@wix/stores 1.0.976 → 1.0.978
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_sdk-exports/context-category-by-id/runtime.js +2 -2
- package/_sdk-exports/context-category-by-slug/runtime.js +2 -2
- package/_sdk-exports/context-category-info/runtime.js +2 -2
- 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-category-by-id.js +218 -207
- package/build/cjs/context-category-by-id.js.map +1 -1
- package/build/cjs/context-category-by-slug.js +1202 -1191
- package/build/cjs/context-category-by-slug.js.map +1 -1
- package/build/cjs/context-category-info.js +258 -248
- package/build/cjs/context-category-info.js.map +1 -1
- package/build/cjs/context-product-by-id.js +39 -31
- package/build/cjs/context-product-by-id.js.map +1 -1
- package/build/cjs/context-product-by-slug.js +48 -40
- package/build/cjs/context-product-by-slug.js.map +1 -1
- package/build/cjs/context-product-item.js +1042 -1034
- package/build/cjs/context-product-item.js.map +1 -1
- package/build/es/context-category-by-id.mjs +218 -207
- package/build/es/context-category-by-id.mjs.map +1 -1
- package/build/es/context-category-by-slug.mjs +1202 -1191
- package/build/es/context-category-by-slug.mjs.map +1 -1
- package/build/es/context-category-info.mjs +262 -252
- package/build/es/context-category-info.mjs.map +1 -1
- package/build/es/context-product-by-id.mjs +39 -31
- package/build/es/context-product-by-id.mjs.map +1 -1
- package/build/es/context-product-by-slug.mjs +48 -40
- package/build/es/context-product-by-slug.mjs.map +1 -1
- package/build/es/context-product-item.mjs +1042 -1034
- package/build/es/context-product-item.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -532,143 +532,143 @@ 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
|
|
535
|
+
function it(e2, t2 = []) {
|
|
536
536
|
return nt(e2, qe, t2);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function j(e2, t2 = []) {
|
|
539
539
|
return nt(e2, Je, t2);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function at(e2) {
|
|
542
542
|
return e2?.toISOString();
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function M(e2) {
|
|
545
545
|
return e2 ? new Date(e2) : void 0;
|
|
546
546
|
}
|
|
547
|
-
var
|
|
548
|
-
function
|
|
547
|
+
var ot = /* @__PURE__ */ new WeakMap();
|
|
548
|
+
function st() {
|
|
549
549
|
return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function ct(e2, t2) {
|
|
552
552
|
let n2 = e2.get(t2);
|
|
553
|
-
return n2 || (n2 =
|
|
553
|
+
return n2 || (n2 = st(), e2.set(t2, n2)), n2;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return t2 === `*` ? (e2.anyField ??=
|
|
555
|
+
function lt(e2, t2) {
|
|
556
|
+
return t2 === `*` ? (e2.anyField ??= st(), e2.anyField) : t2.endsWith(`{}`) ? (e2.mapFields ??= /* @__PURE__ */ new Map(), ct(e2.mapFields, t2.slice(0, -2))) : (e2.fields ??= /* @__PURE__ */ new Map(), ct(e2.fields, t2));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
let t2 =
|
|
558
|
+
function ut(e2) {
|
|
559
|
+
let t2 = st();
|
|
560
560
|
for (let n2 of e2) {
|
|
561
|
-
let e3 = n2.path.split(`.`).reduce(
|
|
561
|
+
let e3 = n2.path.split(`.`).reduce(lt, t2);
|
|
562
562
|
e3.leaves ??= [], e3.leaves.push(n2);
|
|
563
563
|
}
|
|
564
564
|
return t2;
|
|
565
565
|
}
|
|
566
|
-
function ut(e2) {
|
|
567
|
-
let t2 = at.get(e2);
|
|
568
|
-
return t2 || (t2 = lt(e2), at.set(e2, t2)), t2;
|
|
569
|
-
}
|
|
570
566
|
function dt(e2) {
|
|
571
|
-
|
|
567
|
+
let t2 = ot.get(e2);
|
|
568
|
+
return t2 || (t2 = ut(e2), ot.set(e2, t2)), t2;
|
|
572
569
|
}
|
|
573
|
-
function ft(e2
|
|
574
|
-
return
|
|
570
|
+
function ft(e2) {
|
|
571
|
+
return typeof e2 == `object` && !!e2;
|
|
575
572
|
}
|
|
576
|
-
function pt(e2, t2, n2) {
|
|
577
|
-
|
|
573
|
+
function pt(e2, { isRepeated: t2, isMap: n2 }, r2) {
|
|
574
|
+
return t2 ? Array.isArray(e2) ? e2.map(r2) : e2 : n2 ? ft(e2) ? Object.fromEntries(Object.entries(e2).map(([e3, t3]) => [e3, r2(t3)])) : e2 : r2(e2);
|
|
578
575
|
}
|
|
579
576
|
function mt(e2, t2, n2) {
|
|
577
|
+
ft(e2) && _t(e2, t2, n2);
|
|
578
|
+
}
|
|
579
|
+
function ht(e2, t2, n2) {
|
|
580
580
|
for (let [r2, i2] of t2) {
|
|
581
581
|
if (!(r2 in e2)) continue;
|
|
582
|
-
if (i2.leaves) for (let t4 of i2.leaves) e2[r2] =
|
|
582
|
+
if (i2.leaves) for (let t4 of i2.leaves) e2[r2] = pt(e2[r2], t4, n2);
|
|
583
583
|
let t3 = e2[r2];
|
|
584
|
-
Array.isArray(t3) ? t3.forEach((e3) =>
|
|
584
|
+
Array.isArray(t3) ? t3.forEach((e3) => mt(e3, i2, n2)) : mt(t3, i2, n2);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function gt(e2, t2, n2) {
|
|
588
588
|
for (let [r2, i2] of t2) {
|
|
589
589
|
let t3 = e2[r2];
|
|
590
|
-
|
|
590
|
+
ft(t3) && Object.values(t3).forEach((e3) => mt(e3, i2, n2));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
t2 &&
|
|
593
|
+
function _t(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
|
|
594
|
+
t2 && ht(e2, t2, i2), n2 && gt(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => mt(e3, r2, i2));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
if (!
|
|
598
|
-
for (let { paths: n2, transformFn: r2 } of t2)
|
|
596
|
+
function N(e2, t2) {
|
|
597
|
+
if (!ft(e2)) return e2;
|
|
598
|
+
for (let { paths: n2, transformFn: r2 } of t2) _t(e2, dt(n2), r2);
|
|
599
599
|
return e2;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function vt(e2, t2) {
|
|
602
602
|
let { protocol: n2 } = new URL(e2);
|
|
603
603
|
return n2 === `${t2}:` ? `${Ke}${e2}` : e2;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function yt(e2) {
|
|
606
606
|
return Object.fromEntries(Object.entries(e2).filter(([, e3]) => e3 !== void 0));
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function bt(e2) {
|
|
609
|
+
return Tt(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
var
|
|
613
|
-
var
|
|
614
|
-
var
|
|
615
|
-
function
|
|
611
|
+
var xt = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
612
|
+
var St = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
613
|
+
var Ct = `$1\0$2`;
|
|
614
|
+
var wt = /[^\p{L}\d]+/giu;
|
|
615
|
+
function Tt(e2) {
|
|
616
616
|
let t2 = e2.trim();
|
|
617
|
-
t2 = t2.replace(
|
|
617
|
+
t2 = t2.replace(xt, Ct).replace(St, Ct), t2 = t2.replace(wt, `\0`);
|
|
618
618
|
let n2 = 0, r2 = t2.length;
|
|
619
619
|
for (; t2.charAt(n2) === `\0`; ) n2++;
|
|
620
620
|
if (n2 === r2) return [];
|
|
621
621
|
for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
|
|
622
622
|
return t2.slice(n2, r2).split(/\0/g);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
var
|
|
626
|
-
var
|
|
627
|
-
function
|
|
624
|
+
var Et = (e2) => `validationError` in (e2.response?.data?.details ?? {});
|
|
625
|
+
var Dt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
|
|
626
|
+
var Ot = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
|
|
627
|
+
function P(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
628
628
|
if (typeof e2 != `object` || !e2) throw e2;
|
|
629
|
-
if (
|
|
630
|
-
if (
|
|
631
|
-
if (
|
|
632
|
-
let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code:
|
|
633
|
-
return
|
|
629
|
+
if (Et(e2)) return kt(e2, t2, n2);
|
|
630
|
+
if (Dt(e2)) return jt(e2);
|
|
631
|
+
if (Ot(e2)) {
|
|
632
|
+
let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: bt(n3), data: {} }, requestId: e2.requestId };
|
|
633
|
+
return At(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
634
634
|
}
|
|
635
|
-
return
|
|
635
|
+
return Mt(e2);
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
639
|
-
return
|
|
637
|
+
var kt = (e2, t2, n2) => {
|
|
638
|
+
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Nt(t2, a2, n2)?.sort((e3, t3) => e3.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e3, description: t3 }) => `"${e3}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
|
|
639
|
+
return At(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
|
|
640
640
|
};
|
|
641
|
-
var
|
|
642
|
-
var
|
|
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 ??
|
|
644
|
-
return
|
|
641
|
+
var At = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
|
|
642
|
+
var jt = (e2) => {
|
|
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 ?? bt(n2), o2 = e2.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e2.requestId };
|
|
644
|
+
return At(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
|
|
645
645
|
};
|
|
646
|
-
var
|
|
647
|
-
var
|
|
646
|
+
var Mt = (e2) => At(e2, { message: e2.requestId ? `System error occurred, request-id: ${e2.requestId}` : `System error occurred: ${JSON.stringify(e2)}`, extraProperties: { requestId: e2.requestId, status: e2.response?.status, code: bt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
|
|
647
|
+
var Nt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
|
|
648
648
|
let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
|
|
649
649
|
return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
|
|
650
650
|
let r3 = t2[e3.field];
|
|
651
|
-
if (r3) return { ...e3, field:
|
|
651
|
+
if (r3) return { ...e3, field: Pt(r3, i2) };
|
|
652
652
|
let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
|
|
653
653
|
if (s2) {
|
|
654
654
|
let t3 = a2[s2];
|
|
655
|
-
if (t3) return { ...e3, field: e3.field.replace(s2,
|
|
655
|
+
if (t3) return { ...e3, field: e3.field.replace(s2, Pt(t3, i2)) };
|
|
656
656
|
}
|
|
657
657
|
return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
|
|
658
658
|
});
|
|
659
659
|
};
|
|
660
|
-
var
|
|
661
|
-
let n2 =
|
|
660
|
+
var Pt = (e2, t2) => {
|
|
661
|
+
let n2 = Ft(e2);
|
|
662
662
|
return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
|
|
663
663
|
};
|
|
664
|
-
var
|
|
664
|
+
var Ft = (e2) => {
|
|
665
665
|
let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
|
|
666
666
|
return t2 && t2.groups && Number(t2.groups.argIndex);
|
|
667
667
|
};
|
|
668
|
-
function
|
|
668
|
+
function It() {
|
|
669
669
|
let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
670
670
|
if (e2) return { initWixModules(t3, n3) {
|
|
671
|
-
return
|
|
671
|
+
return Lt(() => e2(t3, n3));
|
|
672
672
|
}, fetchWithAuth() {
|
|
673
673
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
674
674
|
}, graphql() {
|
|
@@ -678,10 +678,10 @@ function Ft() {
|
|
|
678
678
|
if (t2 || n2) return { initWixModules(e3, r2) {
|
|
679
679
|
if (r2) {
|
|
680
680
|
if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
|
|
681
|
-
return
|
|
681
|
+
return Lt(() => n2.use(e3));
|
|
682
682
|
}
|
|
683
683
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
684
|
-
return
|
|
684
|
+
return Lt(() => t2.use(e3));
|
|
685
685
|
}, fetchWithAuth: (e3, n3) => {
|
|
686
686
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
687
687
|
return t2.fetchWithAuth(e3, n3);
|
|
@@ -693,7 +693,7 @@ function Ft() {
|
|
|
693
693
|
return t2.graphql(e3, n3, r2);
|
|
694
694
|
} };
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Lt(e2) {
|
|
697
697
|
let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
|
|
698
698
|
globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
699
699
|
try {
|
|
@@ -702,108 +702,108 @@ function It(e2) {
|
|
|
702
702
|
globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Rt(e2, t2) {
|
|
706
706
|
return (...n2) => {
|
|
707
|
-
let r2 =
|
|
707
|
+
let r2 = It();
|
|
708
708
|
return r2 ? r2.initWixModules(e2, t2).apply(void 0, n2) : e2.apply(void 0, n2);
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function zt(e2) {
|
|
712
712
|
let t2 = (...t3) => {
|
|
713
|
-
let n2 =
|
|
713
|
+
let n2 = It();
|
|
714
714
|
return n2 ? n2.initWixModules(e2).apply(void 0, t3) : () => ({ slug: e2.type });
|
|
715
715
|
};
|
|
716
716
|
return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
718
|
+
function Bt(e2, t2 = false) {
|
|
719
|
+
return Rt(e2, t2);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
let n2 =
|
|
723
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
721
|
+
function Vt(e2, t2) {
|
|
722
|
+
let n2 = Ut(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
|
|
723
|
+
return t2 && r2 ? new URLSearchParams({ ".r": Gt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
724
724
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
|
|
725
725
|
}), e3), new URLSearchParams());
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
let t2 =
|
|
729
|
-
return
|
|
727
|
+
function Ht(e2) {
|
|
728
|
+
let t2 = an(nn(e2.host), e2.domainToMappings);
|
|
729
|
+
return mn(dn(e2.protoPath, e2.data || {}), t2);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Ut(e2, t2 = ``) {
|
|
732
732
|
let n2 = {};
|
|
733
733
|
return Object.entries(e2).forEach(([e3, r2]) => {
|
|
734
|
-
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 =
|
|
734
|
+
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Wt(t2, e3);
|
|
735
735
|
if (i2) {
|
|
736
|
-
let e4 =
|
|
736
|
+
let e4 = Ut(r2, a2);
|
|
737
737
|
Object.assign(n2, e4);
|
|
738
738
|
} else n2[a2] = r2;
|
|
739
739
|
}), n2;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Wt(e2, t2) {
|
|
742
742
|
return `${e2}${e2 ? `.` : ``}${t2}`;
|
|
743
743
|
}
|
|
744
|
-
var
|
|
744
|
+
var Gt = (e2) => {
|
|
745
745
|
let t2 = new TextEncoder().encode(e2);
|
|
746
746
|
return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e2, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
|
|
747
747
|
};
|
|
748
|
-
var
|
|
749
|
-
var
|
|
750
|
-
var
|
|
751
|
-
var
|
|
752
|
-
var
|
|
753
|
-
var
|
|
754
|
-
var
|
|
755
|
-
var
|
|
756
|
-
var
|
|
757
|
-
var
|
|
758
|
-
function tn(e2) {
|
|
759
|
-
return nn(e2).replace(Jt, `._base_domain_`).replace($t, `._api_base_domain_`).replace(en, `*.dev.wix-code.com`);
|
|
760
|
-
}
|
|
748
|
+
var Kt = [`wix.com`, `editorx.com`];
|
|
749
|
+
var qt = `_`;
|
|
750
|
+
var Jt = `*.`;
|
|
751
|
+
var Yt = RegExp(`\\.(${Kt.join(`|`)})$`);
|
|
752
|
+
var Xt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
753
|
+
var Zt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
754
|
+
var Qt = `dev.wix-code.com`;
|
|
755
|
+
var $t = /{(.*)}/;
|
|
756
|
+
var en = RegExp(`\\.(${Xt.join(`|`)})$`);
|
|
757
|
+
var tn = RegExp(`.*\\.${Qt}$`);
|
|
761
758
|
function nn(e2) {
|
|
762
|
-
return
|
|
759
|
+
return rn(e2).replace(Yt, `._base_domain_`).replace(en, `._api_base_domain_`).replace(tn, `*.dev.wix-code.com`);
|
|
763
760
|
}
|
|
764
|
-
function rn(e2
|
|
761
|
+
function rn(e2) {
|
|
762
|
+
return Zt[e2] ?? e2;
|
|
763
|
+
}
|
|
764
|
+
function an(e2, t2) {
|
|
765
765
|
let n2 = t2[e2];
|
|
766
766
|
if (n2) return n2;
|
|
767
|
-
let r2 =
|
|
767
|
+
let r2 = on(e2, t2) ?? sn(e2, t2);
|
|
768
768
|
if (!r2) {
|
|
769
|
-
if (
|
|
770
|
-
let e3 = t2[
|
|
769
|
+
if (ln(e2)) {
|
|
770
|
+
let e3 = t2[un];
|
|
771
771
|
if (e3) return e3;
|
|
772
772
|
}
|
|
773
|
-
let n3 = t2[
|
|
773
|
+
let n3 = t2[qt];
|
|
774
774
|
if (n3) return n3;
|
|
775
775
|
}
|
|
776
776
|
return r2 ?? [];
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function on(e2, t2) {
|
|
779
779
|
return Object.entries(t2).find(([t3]) => {
|
|
780
780
|
let [, ...n2] = e2.split(`.`);
|
|
781
781
|
return n2.join(`.`) === t3;
|
|
782
782
|
})?.[1];
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
let [n2] = Object.entries(t2).filter(([t3]) =>
|
|
784
|
+
function sn(e2, t2) {
|
|
785
|
+
let [n2] = Object.entries(t2).filter(([t3]) => cn(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
|
|
786
786
|
if (!n2) return;
|
|
787
787
|
let [, r2] = n2;
|
|
788
788
|
return r2;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
if (!t2.startsWith(
|
|
790
|
+
function cn(e2, t2) {
|
|
791
|
+
if (!t2.startsWith(Jt)) return false;
|
|
792
792
|
let n2 = t2.slice(1);
|
|
793
793
|
return e2.length > n2.length && e2.endsWith(n2);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function ln(e2) {
|
|
796
796
|
return !!e2.match(/\._base_domain_$/);
|
|
797
797
|
}
|
|
798
|
-
var
|
|
799
|
-
function un(e2, t2) {
|
|
800
|
-
return e2.split(`/`).map((e3) => dn(e3, t2)).join(`/`);
|
|
801
|
-
}
|
|
798
|
+
var un = `www._base_domain_`;
|
|
802
799
|
function dn(e2, t2) {
|
|
803
|
-
|
|
804
|
-
return r2 ? fn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
800
|
+
return e2.split(`/`).map((e3) => fn(e3, t2)).join(`/`);
|
|
805
801
|
}
|
|
806
|
-
function fn(e2, t2
|
|
802
|
+
function fn(e2, t2) {
|
|
803
|
+
let n2 = e2.match($t) || [], r2 = n2[1];
|
|
804
|
+
return r2 ? pn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
805
|
+
}
|
|
806
|
+
function pn(e2, t2, n2, r2) {
|
|
807
807
|
let i2 = e2;
|
|
808
808
|
for (let e3 of t2.split(`.`)) {
|
|
809
809
|
if (!i2) return n2;
|
|
@@ -811,49 +811,49 @@ function fn(e2, t2, n2, r2) {
|
|
|
811
811
|
}
|
|
812
812
|
return `${i2}${r2}`;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function mn(e2, t2) {
|
|
815
815
|
let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
|
|
816
816
|
return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
return
|
|
820
|
-
}
|
|
821
|
-
function mn(e2) {
|
|
822
|
-
return isFinite(e2) ? e2 : e2.toString();
|
|
818
|
+
function F(e2) {
|
|
819
|
+
return zt(e2);
|
|
823
820
|
}
|
|
824
821
|
function hn(e2) {
|
|
825
|
-
return e2
|
|
822
|
+
return isFinite(e2) ? e2 : e2.toString();
|
|
826
823
|
}
|
|
827
824
|
function gn(e2) {
|
|
828
|
-
return e2
|
|
825
|
+
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
829
826
|
}
|
|
830
827
|
function _n(e2) {
|
|
831
|
-
return e2 &&
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
var
|
|
837
|
-
|
|
838
|
-
|
|
828
|
+
return e2 && yt({ city: e2.city, hint: e2.hint, subdivision: e2.subdivision, country: e2.country, postalCode: e2.postalCode, formattedAddress: e2.formatted, geocode: e2.location, addressLine: e2.addressLine1, addressLine2: e2.addressLine2, streetAddress: e2.streetAddress && { name: e2.streetAddress.name, number: e2.streetAddress.number, apt: e2.streetAddress.apt, formattedAddressLine: e2.streetAddress.formattedAddressLine } });
|
|
829
|
+
}
|
|
830
|
+
function vn(e2) {
|
|
831
|
+
return e2 && yt({ formatted: e2.formattedAddress, location: e2.geocode, addressLine1: e2.addressLine, addressLine2: e2.addressLine2, streetAddress: e2.streetAddress && { name: e2.streetAddress.name, number: e2.streetAddress.number, apt: e2.streetAddress.apt, formattedAddressLine: e2.streetAddress.formattedAddressLine }, hint: e2.hint, city: e2.city, subdivision: e2.subdivision, country: e2.country, postalCode: e2.postalCode, countryFullname: e2.countryFullname, subdivisionFullname: e2.subdivisionFullname });
|
|
832
|
+
}
|
|
833
|
+
var yn = `x-wix-linguist`;
|
|
834
|
+
var bn = `00000000-0000-0000-0000-000000000000`;
|
|
835
|
+
var xn = `false`;
|
|
836
|
+
var Sn = () => {
|
|
837
|
+
let e2 = Tn(`language`), t2 = Tn(`locale`);
|
|
838
|
+
if (e2) return { [yn]: [e2, t2 || e2, xn, bn].join(`|`) };
|
|
839
839
|
};
|
|
840
|
-
function
|
|
840
|
+
function Cn() {
|
|
841
841
|
let e2 = null, t2 = null;
|
|
842
842
|
return { promise: new Promise((n2, r2) => {
|
|
843
843
|
e2 = n2, t2 = r2;
|
|
844
844
|
}), resolve: e2, reject: t2 };
|
|
845
845
|
}
|
|
846
|
-
var
|
|
847
|
-
var
|
|
848
|
-
var
|
|
849
|
-
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 =
|
|
850
|
-
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language:
|
|
851
|
-
return
|
|
846
|
+
var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
|
|
847
|
+
var Tn = (e2) => wn()?.[e2];
|
|
848
|
+
var En = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
|
|
849
|
+
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = On();
|
|
850
|
+
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
|
|
851
|
+
return Sn();
|
|
852
852
|
} } };
|
|
853
853
|
}, auth: (e3) => {
|
|
854
854
|
let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
|
|
855
|
-
!e3 &&
|
|
856
|
-
let n2 = false, { resolve: r2, promise: i2 } =
|
|
855
|
+
!e3 && Dn() && (e3 = t2?.getAccessTokenFunction?.());
|
|
856
|
+
let n2 = false, { resolve: r2, promise: i2 } = Cn();
|
|
857
857
|
return { getAuthHeaders: async () => {
|
|
858
858
|
if (!e3 && n2 && (e3 = await i2), !e3) throw Error(`Failed to resolve auth token`);
|
|
859
859
|
return { headers: { Authorization: await e3() } };
|
|
@@ -861,34 +861,34 @@ var Tn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host:
|
|
|
861
861
|
r2(e4);
|
|
862
862
|
}) };
|
|
863
863
|
} });
|
|
864
|
-
function
|
|
864
|
+
function Dn() {
|
|
865
865
|
return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function On() {
|
|
868
868
|
let e2 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
|
|
869
869
|
if (!e2) return;
|
|
870
870
|
let t2 = new URL(e2);
|
|
871
871
|
return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var kn = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
|
|
874
874
|
if (!e2) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
|
|
875
875
|
return e2.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
|
|
876
876
|
}, getAccessToken: () => {
|
|
877
877
|
throw Error(`Not implemented`);
|
|
878
878
|
}, observeState: () => ({ disconnect: () => {
|
|
879
879
|
} }) });
|
|
880
|
-
var
|
|
880
|
+
var An = En({ createHost: function(e2) {
|
|
881
881
|
let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e2?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e2 || {};
|
|
882
882
|
if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
|
|
883
|
-
return { channel:
|
|
883
|
+
return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
|
|
884
884
|
} };
|
|
885
885
|
} });
|
|
886
|
-
var
|
|
887
|
-
let n2 =
|
|
886
|
+
var jn = (e2, t2) => {
|
|
887
|
+
let n2 = An.host({ applicationId: e2, componentId: t2 }), r2 = An.auth();
|
|
888
888
|
return We({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
|
|
889
889
|
};
|
|
890
|
-
var
|
|
891
|
-
var
|
|
890
|
+
var Mn = (e2) => jn(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
|
|
891
|
+
var Nn = class {
|
|
892
892
|
constructor() {
|
|
893
893
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
894
894
|
}
|
|
@@ -905,7 +905,7 @@ var Mn = class {
|
|
|
905
905
|
onUnsubscribe() {
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
var
|
|
908
|
+
var Pn = new class extends Nn {
|
|
909
909
|
#e;
|
|
910
910
|
#t;
|
|
911
911
|
#n;
|
|
@@ -943,9 +943,9 @@ var Nn = new class extends Mn {
|
|
|
943
943
|
return typeof this.#e == `boolean` ? this.#e : globalThis.document?.visibilityState !== `hidden`;
|
|
944
944
|
}
|
|
945
945
|
}();
|
|
946
|
-
var
|
|
947
|
-
var
|
|
948
|
-
#e =
|
|
946
|
+
var Fn = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
|
|
947
|
+
var I = new class {
|
|
948
|
+
#e = Fn;
|
|
949
949
|
setTimeoutProvider(e2) {
|
|
950
950
|
this.#e = e2;
|
|
951
951
|
}
|
|
@@ -962,33 +962,33 @@ var L = new class {
|
|
|
962
962
|
this.#e.clearInterval(e2);
|
|
963
963
|
}
|
|
964
964
|
}();
|
|
965
|
-
function
|
|
965
|
+
function In(e2) {
|
|
966
966
|
setTimeout(e2, 0);
|
|
967
967
|
}
|
|
968
|
-
var
|
|
969
|
-
function
|
|
968
|
+
var Ln = typeof window > `u` || `Deno` in globalThis;
|
|
969
|
+
function L() {
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Rn(e2, t2) {
|
|
972
972
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function zn(e2) {
|
|
975
975
|
return typeof e2 == `number` && e2 >= 0 && e2 !== 1 / 0;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Bn(e2, t2) {
|
|
978
978
|
return Math.max(e2 + (t2 || 0) - Date.now(), 0);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function R(e2, t2) {
|
|
981
981
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function z(e2, t2) {
|
|
984
984
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function Vn(e2, t2) {
|
|
987
987
|
let { type: n2 = `all`, exact: r2, fetchStatus: i2, predicate: a2, queryKey: o2, stale: s2 } = e2;
|
|
988
988
|
if (o2) {
|
|
989
989
|
if (r2) {
|
|
990
|
-
if (t2.queryHash !==
|
|
991
|
-
} else if (!
|
|
990
|
+
if (t2.queryHash !== Un(o2, t2.options)) return false;
|
|
991
|
+
} else if (!Gn(t2.queryKey, o2)) return false;
|
|
992
992
|
}
|
|
993
993
|
if (n2 !== `all`) {
|
|
994
994
|
let e3 = t2.isActive();
|
|
@@ -996,101 +996,101 @@ function Bn(e2, t2) {
|
|
|
996
996
|
}
|
|
997
997
|
return !(typeof s2 == `boolean` && t2.isStale() !== s2 || i2 && i2 !== t2.state.fetchStatus || a2 && !a2(t2));
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Hn(e2, t2) {
|
|
1000
1000
|
let { exact: n2, status: r2, predicate: i2, mutationKey: a2 } = e2;
|
|
1001
1001
|
if (a2) {
|
|
1002
1002
|
if (!t2.options.mutationKey) return false;
|
|
1003
1003
|
if (n2) {
|
|
1004
|
-
if (
|
|
1005
|
-
} else if (!
|
|
1004
|
+
if (Wn(t2.options.mutationKey) !== Wn(a2)) return false;
|
|
1005
|
+
} else if (!Gn(t2.options.mutationKey, a2)) return false;
|
|
1006
1006
|
}
|
|
1007
1007
|
return !(r2 && t2.state.status !== r2 || i2 && !i2(t2));
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
return (t2?.queryKeyHashFn ||
|
|
1009
|
+
function Un(e2, t2) {
|
|
1010
|
+
return (t2?.queryKeyHashFn || Wn)(e2);
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return JSON.stringify(e2, (e3, t2) =>
|
|
1012
|
+
function Wn(e2) {
|
|
1013
|
+
return JSON.stringify(e2, (e3, t2) => Xn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) =>
|
|
1015
|
+
function Gn(e2, t2) {
|
|
1016
|
+
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) => Gn(e2[n2], t2[n2])) : false;
|
|
1017
1017
|
}
|
|
1018
|
-
var
|
|
1019
|
-
function
|
|
1018
|
+
var Kn = Object.prototype.hasOwnProperty;
|
|
1019
|
+
function qn(e2, t2, n2 = 0) {
|
|
1020
1020
|
if (e2 === t2) return e2;
|
|
1021
1021
|
if (n2 > 500) return t2;
|
|
1022
|
-
let r2 =
|
|
1023
|
-
if (!r2 && !(
|
|
1022
|
+
let r2 = Yn(e2) && Yn(t2);
|
|
1023
|
+
if (!r2 && !(Xn(e2) && Xn(t2))) return t2;
|
|
1024
1024
|
let i2 = (r2 ? e2 : Object.keys(e2)).length, a2 = r2 ? t2 : Object.keys(t2), o2 = a2.length, s2 = r2 ? Array(o2) : {}, c2 = 0;
|
|
1025
1025
|
for (let l2 = 0; l2 < o2; l2++) {
|
|
1026
1026
|
let o3 = r2 ? l2 : a2[l2], u2 = e2[o3], d2 = t2[o3];
|
|
1027
1027
|
if (u2 === d2) {
|
|
1028
|
-
s2[o3] = u2, (r2 ? l2 < i2 :
|
|
1028
|
+
s2[o3] = u2, (r2 ? l2 < i2 : Kn.call(e2, o3)) && c2++;
|
|
1029
1029
|
continue;
|
|
1030
1030
|
}
|
|
1031
1031
|
if (u2 === null || d2 === null || typeof u2 != `object` || typeof d2 != `object`) {
|
|
1032
1032
|
s2[o3] = d2;
|
|
1033
1033
|
continue;
|
|
1034
1034
|
}
|
|
1035
|
-
let f2 =
|
|
1035
|
+
let f2 = qn(u2, d2, n2 + 1);
|
|
1036
1036
|
s2[o3] = f2, f2 === u2 && c2++;
|
|
1037
1037
|
}
|
|
1038
1038
|
return i2 === o2 && c2 === i2 ? e2 : s2;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Jn(e2, t2) {
|
|
1041
1041
|
if (!t2 || Object.keys(e2).length !== Object.keys(t2).length) return false;
|
|
1042
1042
|
for (let n2 in e2) if (e2[n2] !== t2[n2]) return false;
|
|
1043
1043
|
return true;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function Yn(e2) {
|
|
1046
1046
|
return Array.isArray(e2) && e2.length === Object.keys(e2).length;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1049
|
-
if (!
|
|
1048
|
+
function Xn(e2) {
|
|
1049
|
+
if (!Zn(e2)) return false;
|
|
1050
1050
|
let t2 = e2.constructor;
|
|
1051
1051
|
if (t2 === void 0) return true;
|
|
1052
1052
|
let n2 = t2.prototype;
|
|
1053
|
-
return !(!
|
|
1053
|
+
return !(!Zn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function Zn(e2) {
|
|
1056
1056
|
return Object.prototype.toString.call(e2) === `[object Object]`;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Qn(e2) {
|
|
1059
1059
|
return new Promise((t2) => {
|
|
1060
|
-
|
|
1060
|
+
I.setTimeout(t2, e2);
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 :
|
|
1063
|
+
function $n(e2, t2, n2) {
|
|
1064
|
+
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : qn(e2, t2);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function er(e2, t2, n2 = 0) {
|
|
1067
1067
|
let r2 = [...e2, t2];
|
|
1068
1068
|
return n2 && r2.length > n2 ? r2.slice(1) : r2;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function tr(e2, t2, n2 = 0) {
|
|
1071
1071
|
let r2 = [t2, ...e2];
|
|
1072
1072
|
return n2 && r2.length > n2 ? r2.slice(0, -1) : r2;
|
|
1073
1073
|
}
|
|
1074
|
-
var
|
|
1075
|
-
function nr(e2, t2) {
|
|
1076
|
-
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === tr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1077
|
-
}
|
|
1074
|
+
var nr = Symbol();
|
|
1078
1075
|
function rr(e2, t2) {
|
|
1076
|
+
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === nr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1077
|
+
}
|
|
1078
|
+
function ir(e2, t2) {
|
|
1079
1079
|
return typeof e2 == `function` ? e2(...t2) : !!e2;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function ar(e2, t2, n2) {
|
|
1082
1082
|
let r2 = false, i2;
|
|
1083
1083
|
return Object.defineProperty(e2, "signal", { enumerable: true, get: () => (i2 ??= t2(), r2 ? i2 : (r2 = true, i2.aborted ? n2() : i2.addEventListener(`abort`, n2, { once: true }), i2)) }), e2;
|
|
1084
1084
|
}
|
|
1085
|
-
var
|
|
1086
|
-
let e2 = () =>
|
|
1085
|
+
var or = /* @__PURE__ */ (() => {
|
|
1086
|
+
let e2 = () => Ln;
|
|
1087
1087
|
return { isServer() {
|
|
1088
1088
|
return e2();
|
|
1089
1089
|
}, setIsServer(t2) {
|
|
1090
1090
|
e2 = t2;
|
|
1091
1091
|
} };
|
|
1092
1092
|
})();
|
|
1093
|
-
function
|
|
1093
|
+
function sr() {
|
|
1094
1094
|
let e2, t2, n2 = new Promise((n3, r3) => {
|
|
1095
1095
|
e2 = n3, t2 = r3;
|
|
1096
1096
|
});
|
|
@@ -1105,13 +1105,13 @@ function or() {
|
|
|
1105
1105
|
r2({ status: `rejected`, reason: e3 }), t2(e3);
|
|
1106
1106
|
}, n2;
|
|
1107
1107
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1108
|
+
var cr = In;
|
|
1109
|
+
function lr() {
|
|
1110
1110
|
let e2 = [], t2 = 0, n2 = (e3) => {
|
|
1111
1111
|
e3();
|
|
1112
1112
|
}, r2 = (e3) => {
|
|
1113
1113
|
e3();
|
|
1114
|
-
}, i2 =
|
|
1114
|
+
}, i2 = cr, a2 = (r3) => {
|
|
1115
1115
|
t2 ? e2.push(r3) : i2(() => {
|
|
1116
1116
|
n2(r3);
|
|
1117
1117
|
});
|
|
@@ -1146,8 +1146,8 @@ function cr() {
|
|
|
1146
1146
|
i2 = e3;
|
|
1147
1147
|
} };
|
|
1148
1148
|
}
|
|
1149
|
-
var
|
|
1150
|
-
var
|
|
1149
|
+
var B = lr();
|
|
1150
|
+
var ur = new class extends Nn {
|
|
1151
1151
|
#e = true;
|
|
1152
1152
|
#t;
|
|
1153
1153
|
#n;
|
|
@@ -1179,28 +1179,28 @@ var lr = new class extends Mn {
|
|
|
1179
1179
|
return this.#e;
|
|
1180
1180
|
}
|
|
1181
1181
|
}();
|
|
1182
|
-
function
|
|
1182
|
+
function dr(e2) {
|
|
1183
1183
|
return Math.min(1e3 * 2 ** e2, 3e4);
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return (e2 ?? `online`) !== `online` ||
|
|
1185
|
+
function fr(e2) {
|
|
1186
|
+
return (e2 ?? `online`) !== `online` || ur.isOnline();
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1188
|
+
var pr = class extends Error {
|
|
1189
1189
|
constructor(e2) {
|
|
1190
1190
|
super(`CancelledError`), this.revert = e2?.revert, this.silent = e2?.silent;
|
|
1191
1191
|
}
|
|
1192
1192
|
};
|
|
1193
|
-
function
|
|
1194
|
-
let t2 = false, n2 = 0, r2, i2 =
|
|
1193
|
+
function mr(e2) {
|
|
1194
|
+
let t2 = false, n2 = 0, r2, i2 = sr(), a2 = () => i2.status !== `pending`, o2 = (t3) => {
|
|
1195
1195
|
if (!a2()) {
|
|
1196
|
-
let n3 = new
|
|
1196
|
+
let n3 = new pr(t3);
|
|
1197
1197
|
f2(n3), e2.onCancel?.(n3);
|
|
1198
1198
|
}
|
|
1199
1199
|
}, s2 = () => {
|
|
1200
1200
|
t2 = true;
|
|
1201
1201
|
}, c2 = () => {
|
|
1202
1202
|
t2 = false;
|
|
1203
|
-
}, l2 = () =>
|
|
1203
|
+
}, l2 = () => Pn.isFocused() && (e2.networkMode === `always` || ur.isOnline()) && e2.canRun(), u2 = () => fr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
|
|
1204
1204
|
a2() || (r2?.(), i2.resolve(e3));
|
|
1205
1205
|
}, f2 = (e3) => {
|
|
1206
1206
|
a2() || (r2?.(), i2.reject(e3));
|
|
@@ -1220,56 +1220,56 @@ function pr(e2) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
Promise.resolve(r3).then(d2).catch((r4) => {
|
|
1222
1222
|
if (a2()) return;
|
|
1223
|
-
let i4 = e2.retry ?? (
|
|
1223
|
+
let i4 = e2.retry ?? (or.isServer() ? 0 : 3), o3 = e2.retryDelay ?? dr, s3 = typeof o3 == `function` ? o3(n2, r4) : o3, c3 = i4 === true || typeof i4 == `number` && n2 < i4 || typeof i4 == `function` && i4(n2, r4);
|
|
1224
1224
|
if (t2 || !c3) {
|
|
1225
1225
|
f2(r4);
|
|
1226
1226
|
return;
|
|
1227
1227
|
}
|
|
1228
|
-
n2++, e2.onFail?.(n2, r4),
|
|
1228
|
+
n2++, e2.onFail?.(n2, r4), Qn(s3).then(() => l2() ? void 0 : p2()).then(() => {
|
|
1229
1229
|
t2 ? f2(r4) : m2();
|
|
1230
1230
|
});
|
|
1231
1231
|
});
|
|
1232
1232
|
};
|
|
1233
1233
|
return { promise: i2, status: () => i2.status, cancel: o2, continue: () => (r2?.(), i2), cancelRetry: s2, continueRetry: c2, canStart: u2, start: () => (u2() ? m2() : p2().then(m2), i2) };
|
|
1234
1234
|
}
|
|
1235
|
-
var
|
|
1235
|
+
var hr = class {
|
|
1236
1236
|
#e;
|
|
1237
1237
|
destroy() {
|
|
1238
1238
|
this.clearGcTimeout();
|
|
1239
1239
|
}
|
|
1240
1240
|
scheduleGc() {
|
|
1241
|
-
this.clearGcTimeout(),
|
|
1241
|
+
this.clearGcTimeout(), zn(this.gcTime) && (this.#e = I.setTimeout(() => {
|
|
1242
1242
|
this.optionalRemove();
|
|
1243
1243
|
}, this.gcTime));
|
|
1244
1244
|
}
|
|
1245
1245
|
updateGcTime(e2) {
|
|
1246
|
-
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (
|
|
1246
|
+
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (or.isServer() ? 1 / 0 : 3e5));
|
|
1247
1247
|
}
|
|
1248
1248
|
clearGcTimeout() {
|
|
1249
|
-
this.#e !== void 0 && (
|
|
1249
|
+
this.#e !== void 0 && (I.clearTimeout(this.#e), this.#e = void 0);
|
|
1250
1250
|
}
|
|
1251
1251
|
};
|
|
1252
|
-
function
|
|
1252
|
+
function gr(e2) {
|
|
1253
1253
|
return { onFetch: (t2, n2) => {
|
|
1254
1254
|
let r2 = t2.options, i2 = t2.fetchOptions?.meta?.fetchMore?.direction, a2 = t2.state.data?.pages || [], o2 = t2.state.data?.pageParams || [], s2 = { pages: [], pageParams: [] }, c2 = 0, l2 = async () => {
|
|
1255
1255
|
let n3 = false, l3 = (e3) => {
|
|
1256
|
-
|
|
1257
|
-
}, u2 =
|
|
1256
|
+
ar(e3, () => t2.signal, () => n3 = true);
|
|
1257
|
+
}, u2 = rr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
|
|
1258
1258
|
if (n3) return Promise.reject(t2.signal.reason);
|
|
1259
1259
|
if (r3 == null && e3.pages.length) return Promise.resolve(e3);
|
|
1260
1260
|
let a3 = (() => {
|
|
1261
1261
|
let e4 = { client: t2.client, queryKey: t2.queryKey, pageParam: r3, direction: i3 ? `backward` : `forward`, meta: t2.options.meta };
|
|
1262
1262
|
return l3(e4), e4;
|
|
1263
|
-
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ?
|
|
1263
|
+
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? tr : er;
|
|
1264
1264
|
return { pages: c3(e3.pages, o3, s3), pageParams: c3(e3.pageParams, r3, s3) };
|
|
1265
1265
|
};
|
|
1266
1266
|
if (i2 && a2.length) {
|
|
1267
|
-
let e3 = i2 === `backward`, t3 = e3 ?
|
|
1267
|
+
let e3 = i2 === `backward`, t3 = e3 ? vr : _r, n4 = { pages: a2, pageParams: o2 };
|
|
1268
1268
|
s2 = await d2(n4, t3(r2, n4), e3);
|
|
1269
1269
|
} else {
|
|
1270
1270
|
let t3 = e2 ?? a2.length;
|
|
1271
1271
|
do {
|
|
1272
|
-
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam :
|
|
1272
|
+
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam : _r(r2, s2);
|
|
1273
1273
|
if (c2 > 0 && e3 == null) break;
|
|
1274
1274
|
s2 = await d2(s2, e3), c2++;
|
|
1275
1275
|
} while (c2 < t3);
|
|
@@ -1279,14 +1279,14 @@ function hr(e2) {
|
|
|
1279
1279
|
t2.fetchFn = t2.options.persister ? () => t2.options.persister?.(l2, { client: t2.client, queryKey: t2.queryKey, meta: t2.options.meta, signal: t2.signal }, n2) : l2;
|
|
1280
1280
|
} };
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function _r(e2, { pages: t2, pageParams: n2 }) {
|
|
1283
1283
|
let r2 = t2.length - 1;
|
|
1284
1284
|
return t2.length > 0 ? e2.getNextPageParam(t2[r2], t2, n2[r2], n2) : void 0;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function vr(e2, { pages: t2, pageParams: n2 }) {
|
|
1287
1287
|
return t2.length > 0 ? e2.getPreviousPageParam?.(t2[0], t2, n2[0], n2) : void 0;
|
|
1288
1288
|
}
|
|
1289
|
-
var
|
|
1289
|
+
var yr = class extends hr {
|
|
1290
1290
|
#e;
|
|
1291
1291
|
#t;
|
|
1292
1292
|
#n;
|
|
@@ -1296,7 +1296,7 @@ var vr = class extends mr {
|
|
|
1296
1296
|
#o;
|
|
1297
1297
|
#s;
|
|
1298
1298
|
constructor(e2) {
|
|
1299
|
-
super(), this.#s = false, this.#o = e2.defaultOptions, this.setOptions(e2.options), this.observers = [], this.#i = e2.client, this.#r = this.#i.getQueryCache(), this.queryKey = e2.queryKey, this.queryHash = e2.queryHash, this.#t =
|
|
1299
|
+
super(), this.#s = false, this.#o = e2.defaultOptions, this.setOptions(e2.options), this.observers = [], this.#i = e2.client, this.#r = this.#i.getQueryCache(), this.queryKey = e2.queryKey, this.queryHash = e2.queryHash, this.#t = Sr(this.options), this.state = e2.state ?? this.#t, this.scheduleGc();
|
|
1300
1300
|
}
|
|
1301
1301
|
get meta() {
|
|
1302
1302
|
return this.options.meta;
|
|
@@ -1309,15 +1309,15 @@ var vr = class extends mr {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
setOptions(e2) {
|
|
1311
1311
|
if (this.options = { ...this.#o, ...e2 }, e2?._type && (this.#e = e2._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
1312
|
-
let e3 =
|
|
1313
|
-
e3.data !== void 0 && (this.setState(
|
|
1312
|
+
let e3 = Sr(this.options);
|
|
1313
|
+
e3.data !== void 0 && (this.setState(xr(e3.data, e3.dataUpdatedAt)), this.#t = e3);
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
1316
|
optionalRemove() {
|
|
1317
1317
|
!this.observers.length && this.state.fetchStatus === `idle` && this.#r.remove(this);
|
|
1318
1318
|
}
|
|
1319
1319
|
setData(e2, t2) {
|
|
1320
|
-
let n2 =
|
|
1320
|
+
let n2 = $n(this.state.data, e2, this.options);
|
|
1321
1321
|
return this.#l({ data: n2, type: `success`, dataUpdatedAt: t2?.updatedAt, manual: t2?.manual }), n2;
|
|
1322
1322
|
}
|
|
1323
1323
|
setState(e2) {
|
|
@@ -1325,7 +1325,7 @@ var vr = class extends mr {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
cancel(e2) {
|
|
1327
1327
|
let t2 = this.#a?.promise;
|
|
1328
|
-
return this.#a?.cancel(e2), t2 ? t2.then(
|
|
1328
|
+
return this.#a?.cancel(e2), t2 ? t2.then(L).catch(L) : Promise.resolve();
|
|
1329
1329
|
}
|
|
1330
1330
|
destroy() {
|
|
1331
1331
|
super.destroy(), this.cancel({ silent: true });
|
|
@@ -1337,22 +1337,22 @@ var vr = class extends mr {
|
|
|
1337
1337
|
this.destroy(), this.setState(this.resetState);
|
|
1338
1338
|
}
|
|
1339
1339
|
isActive() {
|
|
1340
|
-
return this.observers.some((e2) =>
|
|
1340
|
+
return this.observers.some((e2) => z(e2.options.enabled, this) !== false);
|
|
1341
1341
|
}
|
|
1342
1342
|
isDisabled() {
|
|
1343
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
1343
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === nr || !this.isFetched();
|
|
1344
1344
|
}
|
|
1345
1345
|
isFetched() {
|
|
1346
1346
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
1347
1347
|
}
|
|
1348
1348
|
isStatic() {
|
|
1349
|
-
return this.getObserversCount() > 0 && this.observers.some((e2) =>
|
|
1349
|
+
return this.getObserversCount() > 0 && this.observers.some((e2) => R(e2.options.staleTime, this) === `static`);
|
|
1350
1350
|
}
|
|
1351
1351
|
isStale() {
|
|
1352
1352
|
return this.getObserversCount() > 0 ? this.observers.some((e2) => e2.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
1353
1353
|
}
|
|
1354
1354
|
isStaleByTime(e2 = 0) {
|
|
1355
|
-
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !
|
|
1355
|
+
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !Bn(this.state.dataUpdatedAt, e2);
|
|
1356
1356
|
}
|
|
1357
1357
|
onFocus() {
|
|
1358
1358
|
this.observers.find((e2) => e2.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false }), this.#a?.continue();
|
|
@@ -1387,7 +1387,7 @@ var vr = class extends mr {
|
|
|
1387
1387
|
let n2 = new AbortController(), r2 = (e3) => {
|
|
1388
1388
|
Object.defineProperty(e3, "signal", { enumerable: true, get: () => (this.#s = true, n2.signal) });
|
|
1389
1389
|
}, i2 = () => {
|
|
1390
|
-
let e3 =
|
|
1390
|
+
let e3 = rr(this.options, t2), n3 = (() => {
|
|
1391
1391
|
let e4 = { client: this.#i, queryKey: this.queryKey, meta: this.meta };
|
|
1392
1392
|
return r2(e4), e4;
|
|
1393
1393
|
})();
|
|
@@ -1396,8 +1396,8 @@ var vr = class extends mr {
|
|
|
1396
1396
|
let e3 = { fetchOptions: t2, options: this.options, queryKey: this.queryKey, client: this.#i, state: this.state, fetchFn: i2 };
|
|
1397
1397
|
return r2(e3), e3;
|
|
1398
1398
|
})();
|
|
1399
|
-
(this.#e === `infinite` ?
|
|
1400
|
-
e3 instanceof
|
|
1399
|
+
(this.#e === `infinite` ? gr(this.options.pages) : this.options.behavior)?.onFetch(a2, this), this.#n = this.state, (this.state.fetchStatus === `idle` || this.state.fetchMeta !== a2.fetchOptions?.meta) && this.#l({ type: `fetch`, meta: a2.fetchOptions?.meta }), this.#a = mr({ initialPromise: t2?.initialPromise, fn: a2.fetchFn, onCancel: (e3) => {
|
|
1400
|
+
e3 instanceof pr && e3.revert && this.setState({ ...this.#n, fetchStatus: `idle` }), n2.abort();
|
|
1401
1401
|
}, onFail: (e3, t3) => {
|
|
1402
1402
|
this.#l({ type: `failed`, failureCount: e3, error: t3 });
|
|
1403
1403
|
}, onPause: () => {
|
|
@@ -1410,7 +1410,7 @@ var vr = class extends mr {
|
|
|
1410
1410
|
if (e3 === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
1411
1411
|
return this.setData(e3), this.#r.config.onSuccess?.(e3, this), this.#r.config.onSettled?.(e3, this.state.error, this), e3;
|
|
1412
1412
|
} catch (e3) {
|
|
1413
|
-
if (e3 instanceof
|
|
1413
|
+
if (e3 instanceof pr) {
|
|
1414
1414
|
if (e3.silent) return this.#a.promise;
|
|
1415
1415
|
if (e3.revert) {
|
|
1416
1416
|
if (this.state.data === void 0) throw e3;
|
|
@@ -1432,9 +1432,9 @@ var vr = class extends mr {
|
|
|
1432
1432
|
case `continue`:
|
|
1433
1433
|
return { ...t3, fetchStatus: `fetching` };
|
|
1434
1434
|
case `fetch`:
|
|
1435
|
-
return { ...t3, ...
|
|
1435
|
+
return { ...t3, ...br(t3.data, this.options), fetchMeta: e2.meta ?? null };
|
|
1436
1436
|
case `success`:
|
|
1437
|
-
let n2 = { ...t3, ...
|
|
1437
|
+
let n2 = { ...t3, ...xr(e2.data, e2.dataUpdatedAt), dataUpdateCount: t3.dataUpdateCount + 1, ...!e2.manual && { fetchStatus: `idle`, fetchFailureCount: 0, fetchFailureReason: null } };
|
|
1438
1438
|
return this.#n = e2.manual ? n2 : void 0, n2;
|
|
1439
1439
|
case `error`:
|
|
1440
1440
|
let r2 = e2.error;
|
|
@@ -1445,26 +1445,26 @@ var vr = class extends mr {
|
|
|
1445
1445
|
return { ...t3, ...e2.state };
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
this.state = t2(this.state),
|
|
1448
|
+
this.state = t2(this.state), B.batch(() => {
|
|
1449
1449
|
this.observers.forEach((e3) => {
|
|
1450
1450
|
e3.onQueryUpdate();
|
|
1451
1451
|
}), this.#r.notify({ query: this, type: `updated`, action: e2 });
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
|
-
function yr(e2, t2) {
|
|
1456
|
-
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: dr(t2.networkMode) ? `fetching` : `paused`, ...e2 === void 0 && { error: null, status: `pending` } };
|
|
1457
|
-
}
|
|
1458
1455
|
function br(e2, t2) {
|
|
1456
|
+
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: fr(t2.networkMode) ? `fetching` : `paused`, ...e2 === void 0 && { error: null, status: `pending` } };
|
|
1457
|
+
}
|
|
1458
|
+
function xr(e2, t2) {
|
|
1459
1459
|
return { data: e2, dataUpdatedAt: t2 ?? Date.now(), error: null, isInvalidated: false, status: `success` };
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Sr(e2) {
|
|
1462
1462
|
let t2 = typeof e2.initialData == `function` ? e2.initialData() : e2.initialData, n2 = t2 !== void 0, r2 = n2 ? typeof e2.initialDataUpdatedAt == `function` ? e2.initialDataUpdatedAt() : e2.initialDataUpdatedAt : 0;
|
|
1463
1463
|
return { data: t2, dataUpdateCount: 0, dataUpdatedAt: n2 ? r2 ?? Date.now() : 0, error: null, errorUpdateCount: 0, errorUpdatedAt: 0, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: null, isInvalidated: false, status: n2 ? `success` : `pending`, fetchStatus: `idle` };
|
|
1464
1464
|
}
|
|
1465
|
-
var
|
|
1465
|
+
var Cr = class extends Nn {
|
|
1466
1466
|
constructor(e2, t2) {
|
|
1467
|
-
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o =
|
|
1467
|
+
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o = sr(), this.bindMethods(), this.setOptions(t2);
|
|
1468
1468
|
}
|
|
1469
1469
|
#e;
|
|
1470
1470
|
#t = void 0;
|
|
@@ -1485,32 +1485,32 @@ var Sr = class extends Mn {
|
|
|
1485
1485
|
this.refetch = this.refetch.bind(this);
|
|
1486
1486
|
}
|
|
1487
1487
|
onSubscribe() {
|
|
1488
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1488
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Tr(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
1489
1489
|
}
|
|
1490
1490
|
onUnsubscribe() {
|
|
1491
1491
|
this.hasListeners() || this.destroy();
|
|
1492
1492
|
}
|
|
1493
1493
|
shouldFetchOnReconnect() {
|
|
1494
|
-
return
|
|
1494
|
+
return Er(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1495
1495
|
}
|
|
1496
1496
|
shouldFetchOnWindowFocus() {
|
|
1497
|
-
return
|
|
1497
|
+
return Er(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1498
1498
|
}
|
|
1499
1499
|
destroy() {
|
|
1500
1500
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1501
1501
|
}
|
|
1502
1502
|
setOptions(e2) {
|
|
1503
1503
|
let t2 = this.options, n2 = this.#t;
|
|
1504
|
-
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof
|
|
1505
|
-
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !
|
|
1504
|
+
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof z(this.options.enabled, this.#t) != `boolean`) throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);
|
|
1505
|
+
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !Jn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
|
|
1506
1506
|
let r2 = this.hasListeners();
|
|
1507
|
-
r2 &&
|
|
1507
|
+
r2 && Dr(this.#t, n2, this.options, t2) && this.#h(), this.updateResult(), r2 && (this.#t !== n2 || z(this.options.enabled, this.#t) !== z(t2.enabled, this.#t) || R(this.options.staleTime, this.#t) !== R(t2.staleTime, this.#t)) && this.#g();
|
|
1508
1508
|
let i2 = this.#_();
|
|
1509
|
-
r2 && (this.#t !== n2 ||
|
|
1509
|
+
r2 && (this.#t !== n2 || z(this.options.enabled, this.#t) !== z(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
|
|
1510
1510
|
}
|
|
1511
1511
|
getOptimisticResult(e2) {
|
|
1512
1512
|
let t2 = this.#e.getQueryCache().build(this.#e, e2), n2 = this.createResult(t2, e2);
|
|
1513
|
-
return
|
|
1513
|
+
return kr(this, n2) && (this.#r = n2, this.#a = this.options, this.#i = this.#t.state), n2;
|
|
1514
1514
|
}
|
|
1515
1515
|
getCurrentResult() {
|
|
1516
1516
|
return this.#r;
|
|
@@ -1537,14 +1537,14 @@ var Sr = class extends Mn {
|
|
|
1537
1537
|
#h(e2) {
|
|
1538
1538
|
this.#S();
|
|
1539
1539
|
let t2 = this.#t.fetch(this.options, e2);
|
|
1540
|
-
return e2?.throwOnError || (t2 = t2.catch(
|
|
1540
|
+
return e2?.throwOnError || (t2 = t2.catch(L)), t2;
|
|
1541
1541
|
}
|
|
1542
1542
|
#g() {
|
|
1543
1543
|
this.#b();
|
|
1544
|
-
let e2 =
|
|
1545
|
-
if (
|
|
1546
|
-
let t2 =
|
|
1547
|
-
this.#d =
|
|
1544
|
+
let e2 = R(this.options.staleTime, this.#t);
|
|
1545
|
+
if (or.isServer() || this.#r.isStale || !zn(e2)) return;
|
|
1546
|
+
let t2 = Bn(this.#r.dataUpdatedAt, e2) + 1;
|
|
1547
|
+
this.#d = I.setTimeout(() => {
|
|
1548
1548
|
this.#r.isStale || this.updateResult();
|
|
1549
1549
|
}, t2);
|
|
1550
1550
|
}
|
|
@@ -1552,47 +1552,47 @@ var Sr = class extends Mn {
|
|
|
1552
1552
|
return (typeof this.options.refetchInterval == `function` ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? false;
|
|
1553
1553
|
}
|
|
1554
1554
|
#v(e2) {
|
|
1555
|
-
this.#x(), this.#p = e2, !
|
|
1556
|
-
(this.options.refetchIntervalInBackground ||
|
|
1555
|
+
this.#x(), this.#p = e2, !or.isServer() && z(this.options.enabled, this.#t) !== false && zn(this.#p) && this.#p !== 0 && (this.#f = I.setInterval(() => {
|
|
1556
|
+
(this.options.refetchIntervalInBackground || Pn.isFocused()) && this.#h();
|
|
1557
1557
|
}, this.#p));
|
|
1558
1558
|
}
|
|
1559
1559
|
#y() {
|
|
1560
1560
|
this.#g(), this.#v(this.#_());
|
|
1561
1561
|
}
|
|
1562
1562
|
#b() {
|
|
1563
|
-
this.#d !== void 0 && (
|
|
1563
|
+
this.#d !== void 0 && (I.clearTimeout(this.#d), this.#d = void 0);
|
|
1564
1564
|
}
|
|
1565
1565
|
#x() {
|
|
1566
|
-
this.#f !== void 0 && (
|
|
1566
|
+
this.#f !== void 0 && (I.clearInterval(this.#f), this.#f = void 0);
|
|
1567
1567
|
}
|
|
1568
1568
|
createResult(e2, t2) {
|
|
1569
1569
|
let n2 = this.#t, r2 = this.options, i2 = this.#r, a2 = this.#i, o2 = this.#a, s2 = e2 === n2 ? this.#n : e2.state, { state: c2 } = e2, l2 = { ...c2 }, u2 = false, d2;
|
|
1570
1570
|
if (t2._optimisticResults) {
|
|
1571
|
-
let i3 = this.hasListeners(), a3 = !i3 &&
|
|
1572
|
-
(a3 || o3) && (l2 = { ...l2, ...
|
|
1571
|
+
let i3 = this.hasListeners(), a3 = !i3 && Tr(e2, t2), o3 = i3 && Dr(e2, n2, t2, r2);
|
|
1572
|
+
(a3 || o3) && (l2 = { ...l2, ...br(c2.data, e2.options) }), t2._optimisticResults === `isRestoring` && (l2.fetchStatus = `idle`);
|
|
1573
1573
|
}
|
|
1574
1574
|
let { error: f2, errorUpdatedAt: p2, status: m2 } = l2;
|
|
1575
1575
|
d2 = l2.data;
|
|
1576
1576
|
let h2 = false;
|
|
1577
1577
|
if (t2.placeholderData !== void 0 && d2 === void 0 && m2 === `pending`) {
|
|
1578
1578
|
let e3;
|
|
1579
|
-
i2?.isPlaceholderData && t2.placeholderData === o2?.placeholderData ? (e3 = i2.data, h2 = true) : e3 = typeof t2.placeholderData == `function` ? t2.placeholderData(this.#u?.state.data, this.#u) : t2.placeholderData, e3 !== void 0 && (m2 = `success`, d2 =
|
|
1579
|
+
i2?.isPlaceholderData && t2.placeholderData === o2?.placeholderData ? (e3 = i2.data, h2 = true) : e3 = typeof t2.placeholderData == `function` ? t2.placeholderData(this.#u?.state.data, this.#u) : t2.placeholderData, e3 !== void 0 && (m2 = `success`, d2 = $n(i2?.data, e3, t2), u2 = true);
|
|
1580
1580
|
}
|
|
1581
1581
|
if (t2.select && d2 !== void 0 && !h2) {
|
|
1582
1582
|
if (i2 && d2 === a2?.data && t2.select === this.#c) d2 = this.#l;
|
|
1583
1583
|
else try {
|
|
1584
|
-
this.#c = t2.select, d2 = t2.select(d2), d2 =
|
|
1584
|
+
this.#c = t2.select, d2 = t2.select(d2), d2 = $n(i2?.data, d2, t2), this.#l = d2, this.#s = null;
|
|
1585
1585
|
} catch (e3) {
|
|
1586
1586
|
this.#s = e3;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
1589
|
this.#s && (f2 = this.#s, d2 = this.#l, p2 = Date.now(), m2 = `error`);
|
|
1590
|
-
let g2 = l2.fetchStatus === `fetching`, _2 = m2 === `pending`, v2 = m2 === `error`, y2 = _2 && g2, b2 = d2 !== void 0, x2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: _2, isSuccess: m2 === `success`, isError: v2, isInitialLoading: y2, isLoading: y2, data: d2, dataUpdatedAt: l2.dataUpdatedAt, error: f2, errorUpdatedAt: p2, failureCount: l2.fetchFailureCount, failureReason: l2.fetchFailureReason, errorUpdateCount: l2.errorUpdateCount, isFetched: e2.isFetched(), isFetchedAfterMount: l2.dataUpdateCount > s2.dataUpdateCount || l2.errorUpdateCount > s2.errorUpdateCount, isFetching: g2, isRefetching: g2 && !_2, isLoadingError: v2 && !b2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: v2 && b2, isStale:
|
|
1590
|
+
let g2 = l2.fetchStatus === `fetching`, _2 = m2 === `pending`, v2 = m2 === `error`, y2 = _2 && g2, b2 = d2 !== void 0, x2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: _2, isSuccess: m2 === `success`, isError: v2, isInitialLoading: y2, isLoading: y2, data: d2, dataUpdatedAt: l2.dataUpdatedAt, error: f2, errorUpdatedAt: p2, failureCount: l2.fetchFailureCount, failureReason: l2.fetchFailureReason, errorUpdateCount: l2.errorUpdateCount, isFetched: e2.isFetched(), isFetchedAfterMount: l2.dataUpdateCount > s2.dataUpdateCount || l2.errorUpdateCount > s2.errorUpdateCount, isFetching: g2, isRefetching: g2 && !_2, isLoadingError: v2 && !b2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: v2 && b2, isStale: Or(e2, t2), refetch: this.refetch, promise: this.#o, isEnabled: z(t2.enabled, e2) !== false };
|
|
1591
1591
|
if (this.options.experimental_prefetchInRender) {
|
|
1592
1592
|
let t3 = x2.data !== void 0, r3 = x2.status === `error` && !t3, i3 = (e3) => {
|
|
1593
1593
|
r3 ? e3.reject(x2.error) : t3 && e3.resolve(x2.data);
|
|
1594
1594
|
}, a3 = () => {
|
|
1595
|
-
let e3 = this.#o = x2.promise =
|
|
1595
|
+
let e3 = this.#o = x2.promise = sr();
|
|
1596
1596
|
i3(e3);
|
|
1597
1597
|
}, o3 = this.#o;
|
|
1598
1598
|
switch (o3.status) {
|
|
@@ -1610,7 +1610,7 @@ var Sr = class extends Mn {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
updateResult() {
|
|
1612
1612
|
let e2 = this.#r, t2 = this.createResult(this.#t, this.options);
|
|
1613
|
-
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !
|
|
1613
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !Jn(t2, e2) && (this.#r = t2, this.#C({ listeners: (() => {
|
|
1614
1614
|
if (!e2) return true;
|
|
1615
1615
|
let { notifyOnChangeProps: t3 } = this.options, n2 = typeof t3 == `function` ? t3() : t3;
|
|
1616
1616
|
if (n2 === `all` || !n2 && !this.#m.size) return true;
|
|
@@ -1631,42 +1631,42 @@ var Sr = class extends Mn {
|
|
|
1631
1631
|
this.updateResult(), this.hasListeners() && this.#y();
|
|
1632
1632
|
}
|
|
1633
1633
|
#C(e2) {
|
|
1634
|
-
|
|
1634
|
+
B.batch(() => {
|
|
1635
1635
|
e2.listeners && this.listeners.forEach((e3) => {
|
|
1636
1636
|
e3(this.#r);
|
|
1637
1637
|
}), this.#e.getQueryCache().notify({ query: this.#t, type: `observerResultsUpdated` });
|
|
1638
1638
|
});
|
|
1639
1639
|
}
|
|
1640
1640
|
};
|
|
1641
|
-
function Cr(e2, t2) {
|
|
1642
|
-
return B(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || B(t2.retryOnMount, e2) !== false);
|
|
1643
|
-
}
|
|
1644
1641
|
function wr(e2, t2) {
|
|
1645
|
-
return
|
|
1642
|
+
return z(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || z(t2.retryOnMount, e2) !== false);
|
|
1646
1643
|
}
|
|
1647
|
-
function Tr(e2, t2
|
|
1648
|
-
|
|
1644
|
+
function Tr(e2, t2) {
|
|
1645
|
+
return wr(e2, t2) || e2.state.data !== void 0 && Er(e2, t2, t2.refetchOnMount);
|
|
1646
|
+
}
|
|
1647
|
+
function Er(e2, t2, n2) {
|
|
1648
|
+
if (z(t2.enabled, e2) !== false && R(t2.staleTime, e2) !== `static`) {
|
|
1649
1649
|
let r2 = typeof n2 == `function` ? n2(e2) : n2;
|
|
1650
|
-
return r2 === `always` || r2 !== false &&
|
|
1650
|
+
return r2 === `always` || r2 !== false && Or(e2, t2);
|
|
1651
1651
|
}
|
|
1652
1652
|
return false;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1655
|
-
return (e2 !== t2 ||
|
|
1656
|
-
}
|
|
1657
|
-
function Dr(e2, t2) {
|
|
1658
|
-
return B(t2.enabled, e2) !== false && e2.isStaleByTime(z(t2.staleTime, e2));
|
|
1654
|
+
function Dr(e2, t2, n2, r2) {
|
|
1655
|
+
return (e2 !== t2 || z(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && Or(e2, n2);
|
|
1659
1656
|
}
|
|
1660
1657
|
function Or(e2, t2) {
|
|
1661
|
-
return
|
|
1658
|
+
return z(t2.enabled, e2) !== false && e2.isStaleByTime(R(t2.staleTime, e2));
|
|
1659
|
+
}
|
|
1660
|
+
function kr(e2, t2) {
|
|
1661
|
+
return !Jn(e2.getCurrentResult(), t2);
|
|
1662
1662
|
}
|
|
1663
|
-
var
|
|
1663
|
+
var Ar = class extends hr {
|
|
1664
1664
|
#e;
|
|
1665
1665
|
#t;
|
|
1666
1666
|
#n;
|
|
1667
1667
|
#r;
|
|
1668
1668
|
constructor(e2) {
|
|
1669
|
-
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state ||
|
|
1669
|
+
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state || jr(), this.setOptions(e2.options), this.scheduleGc();
|
|
1670
1670
|
}
|
|
1671
1671
|
setOptions(e2) {
|
|
1672
1672
|
this.options = e2, this.updateGcTime(this.options.gcTime);
|
|
@@ -1690,7 +1690,7 @@ var kr = class extends mr {
|
|
|
1690
1690
|
let t2 = () => {
|
|
1691
1691
|
this.#i({ type: `continue` });
|
|
1692
1692
|
}, n2 = { client: this.#e, meta: this.options.meta, mutationKey: this.options.mutationKey };
|
|
1693
|
-
this.#r =
|
|
1693
|
+
this.#r = mr({ fn: () => this.options.mutationFn ? this.options.mutationFn(e2, n2) : Promise.reject(Error(`No mutationFn found`)), onFail: (e3, t3) => {
|
|
1694
1694
|
this.#i({ type: `failed`, failureCount: e3, error: t3 });
|
|
1695
1695
|
}, onPause: () => {
|
|
1696
1696
|
this.#i({ type: `pause` });
|
|
@@ -1748,17 +1748,17 @@ var kr = class extends mr {
|
|
|
1748
1748
|
return { ...t3, data: void 0, error: e2.error, failureCount: t3.failureCount + 1, failureReason: e2.error, isPaused: false, status: `error` };
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
|
-
this.state = t2(this.state),
|
|
1751
|
+
this.state = t2(this.state), B.batch(() => {
|
|
1752
1752
|
this.#t.forEach((t3) => {
|
|
1753
1753
|
t3.onMutationUpdate(e2);
|
|
1754
1754
|
}), this.#n.notify({ mutation: this, type: `updated`, action: e2 });
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
1757
|
};
|
|
1758
|
-
function
|
|
1758
|
+
function jr() {
|
|
1759
1759
|
return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: false, status: `idle`, variables: void 0, submittedAt: 0 };
|
|
1760
1760
|
}
|
|
1761
|
-
var
|
|
1761
|
+
var Mr = class extends Nn {
|
|
1762
1762
|
constructor(e2 = {}) {
|
|
1763
1763
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1764
1764
|
}
|
|
@@ -1766,12 +1766,12 @@ var jr = class extends Mn {
|
|
|
1766
1766
|
#t;
|
|
1767
1767
|
#n;
|
|
1768
1768
|
build(e2, t2, n2) {
|
|
1769
|
-
let r2 = new
|
|
1769
|
+
let r2 = new Ar({ client: e2, mutationCache: this, mutationId: ++this.#n, options: e2.defaultMutationOptions(t2), state: n2 });
|
|
1770
1770
|
return this.add(r2), r2;
|
|
1771
1771
|
}
|
|
1772
1772
|
add(e2) {
|
|
1773
1773
|
this.#e.add(e2);
|
|
1774
|
-
let t2 =
|
|
1774
|
+
let t2 = Nr(e2);
|
|
1775
1775
|
if (typeof t2 == `string`) {
|
|
1776
1776
|
let n2 = this.#t.get(t2);
|
|
1777
1777
|
n2 ? n2.push(e2) : this.#t.set(t2, [e2]);
|
|
@@ -1780,7 +1780,7 @@ var jr = class extends Mn {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
remove(e2) {
|
|
1782
1782
|
if (this.#e.delete(e2)) {
|
|
1783
|
-
let t2 =
|
|
1783
|
+
let t2 = Nr(e2);
|
|
1784
1784
|
if (typeof t2 == `string`) {
|
|
1785
1785
|
let n2 = this.#t.get(t2);
|
|
1786
1786
|
if (n2) {
|
|
@@ -1794,7 +1794,7 @@ var jr = class extends Mn {
|
|
|
1794
1794
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1795
1795
|
}
|
|
1796
1796
|
canRun(e2) {
|
|
1797
|
-
let t2 =
|
|
1797
|
+
let t2 = Nr(e2);
|
|
1798
1798
|
if (typeof t2 == `string`) {
|
|
1799
1799
|
let n2 = this.#t.get(t2)?.find((e3) => e3.state.status === `pending`);
|
|
1800
1800
|
return !n2 || n2 === e2;
|
|
@@ -1802,11 +1802,11 @@ var jr = class extends Mn {
|
|
|
1802
1802
|
return true;
|
|
1803
1803
|
}
|
|
1804
1804
|
runNext(e2) {
|
|
1805
|
-
let t2 =
|
|
1805
|
+
let t2 = Nr(e2);
|
|
1806
1806
|
return typeof t2 == `string` ? this.#t.get(t2)?.find((t3) => t3 !== e2 && t3.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1807
1807
|
}
|
|
1808
1808
|
clear() {
|
|
1809
|
-
|
|
1809
|
+
B.batch(() => {
|
|
1810
1810
|
this.#e.forEach((e2) => {
|
|
1811
1811
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1812
1812
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -1817,13 +1817,13 @@ var jr = class extends Mn {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
find(e2) {
|
|
1819
1819
|
let t2 = { exact: true, ...e2 };
|
|
1820
|
-
return this.getAll().find((e3) =>
|
|
1820
|
+
return this.getAll().find((e3) => Hn(t2, e3));
|
|
1821
1821
|
}
|
|
1822
1822
|
findAll(e2 = {}) {
|
|
1823
|
-
return this.getAll().filter((t2) =>
|
|
1823
|
+
return this.getAll().filter((t2) => Hn(e2, t2));
|
|
1824
1824
|
}
|
|
1825
1825
|
notify(e2) {
|
|
1826
|
-
|
|
1826
|
+
B.batch(() => {
|
|
1827
1827
|
this.listeners.forEach((t2) => {
|
|
1828
1828
|
t2(e2);
|
|
1829
1829
|
});
|
|
@@ -1831,20 +1831,20 @@ var jr = class extends Mn {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
resumePausedMutations() {
|
|
1833
1833
|
let e2 = this.getAll().filter((e3) => e3.state.isPaused);
|
|
1834
|
-
return
|
|
1834
|
+
return B.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(L))));
|
|
1835
1835
|
}
|
|
1836
1836
|
};
|
|
1837
|
-
function
|
|
1837
|
+
function Nr(e2) {
|
|
1838
1838
|
return e2.options.scope?.id;
|
|
1839
1839
|
}
|
|
1840
|
-
var
|
|
1840
|
+
var Pr = class extends Nn {
|
|
1841
1841
|
constructor(e2 = {}) {
|
|
1842
1842
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Map();
|
|
1843
1843
|
}
|
|
1844
1844
|
#e;
|
|
1845
1845
|
build(e2, t2, n2) {
|
|
1846
|
-
let r2 = t2.queryKey, i2 = t2.queryHash ??
|
|
1847
|
-
return a2 || (a2 = new
|
|
1846
|
+
let r2 = t2.queryKey, i2 = t2.queryHash ?? Un(r2, t2), a2 = this.get(i2);
|
|
1847
|
+
return a2 || (a2 = new yr({ client: e2, queryKey: r2, queryHash: i2, options: e2.defaultQueryOptions(t2), state: n2, defaultOptions: e2.getQueryDefaults(r2) }), this.add(a2)), a2;
|
|
1848
1848
|
}
|
|
1849
1849
|
add(e2) {
|
|
1850
1850
|
this.#e.has(e2.queryHash) || (this.#e.set(e2.queryHash, e2), this.notify({ type: `added`, query: e2 }));
|
|
@@ -1854,7 +1854,7 @@ var Nr = class extends Mn {
|
|
|
1854
1854
|
t2 && (e2.destroy(), t2 === e2 && this.#e.delete(e2.queryHash), this.notify({ type: `removed`, query: e2 }));
|
|
1855
1855
|
}
|
|
1856
1856
|
clear() {
|
|
1857
|
-
|
|
1857
|
+
B.batch(() => {
|
|
1858
1858
|
this.getAll().forEach((e2) => {
|
|
1859
1859
|
this.remove(e2);
|
|
1860
1860
|
});
|
|
@@ -1868,35 +1868,35 @@ var Nr = class extends Mn {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
find(e2) {
|
|
1870
1870
|
let t2 = { exact: true, ...e2 };
|
|
1871
|
-
return this.getAll().find((e3) =>
|
|
1871
|
+
return this.getAll().find((e3) => Vn(t2, e3));
|
|
1872
1872
|
}
|
|
1873
1873
|
findAll(e2 = {}) {
|
|
1874
1874
|
let t2 = this.getAll();
|
|
1875
|
-
return Object.keys(e2).length > 0 ? t2.filter((t3) =>
|
|
1875
|
+
return Object.keys(e2).length > 0 ? t2.filter((t3) => Vn(e2, t3)) : t2;
|
|
1876
1876
|
}
|
|
1877
1877
|
notify(e2) {
|
|
1878
|
-
|
|
1878
|
+
B.batch(() => {
|
|
1879
1879
|
this.listeners.forEach((t2) => {
|
|
1880
1880
|
t2(e2);
|
|
1881
1881
|
});
|
|
1882
1882
|
});
|
|
1883
1883
|
}
|
|
1884
1884
|
onFocus() {
|
|
1885
|
-
|
|
1885
|
+
B.batch(() => {
|
|
1886
1886
|
this.getAll().forEach((e2) => {
|
|
1887
1887
|
e2.onFocus();
|
|
1888
1888
|
});
|
|
1889
1889
|
});
|
|
1890
1890
|
}
|
|
1891
1891
|
onOnline() {
|
|
1892
|
-
|
|
1892
|
+
B.batch(() => {
|
|
1893
1893
|
this.getAll().forEach((e2) => {
|
|
1894
1894
|
e2.onOnline();
|
|
1895
1895
|
});
|
|
1896
1896
|
});
|
|
1897
1897
|
}
|
|
1898
1898
|
};
|
|
1899
|
-
var
|
|
1899
|
+
var Fr = class {
|
|
1900
1900
|
#e;
|
|
1901
1901
|
#t;
|
|
1902
1902
|
#n;
|
|
@@ -1906,12 +1906,12 @@ var Pr = class {
|
|
|
1906
1906
|
#o;
|
|
1907
1907
|
#s;
|
|
1908
1908
|
constructor(e2 = {}) {
|
|
1909
|
-
this.#e = e2.queryCache || new
|
|
1909
|
+
this.#e = e2.queryCache || new Pr(), this.#t = e2.mutationCache || new Mr(), this.#n = e2.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1910
1910
|
}
|
|
1911
1911
|
mount() {
|
|
1912
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1912
|
+
this.#a++, this.#a === 1 && (this.#o = Pn.subscribe(async (e2) => {
|
|
1913
1913
|
e2 && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1914
|
-
}), this.#s =
|
|
1914
|
+
}), this.#s = ur.subscribe(async (e2) => {
|
|
1915
1915
|
e2 && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1916
1916
|
}));
|
|
1917
1917
|
}
|
|
@@ -1930,17 +1930,17 @@ var Pr = class {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
ensureQueryData(e2) {
|
|
1932
1932
|
let t2 = this.defaultQueryOptions(e2), n2 = this.#e.build(this, t2), r2 = n2.state.data;
|
|
1933
|
-
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(
|
|
1933
|
+
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(R(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
|
|
1934
1934
|
}
|
|
1935
1935
|
getQueriesData(e2) {
|
|
1936
1936
|
return this.#e.findAll(e2).map(({ queryKey: e3, state: t2 }) => [e3, t2.data]);
|
|
1937
1937
|
}
|
|
1938
1938
|
setQueryData(e2, t2, n2) {
|
|
1939
|
-
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 =
|
|
1939
|
+
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = Rn(t2, i2);
|
|
1940
1940
|
if (a2 !== void 0) return this.#e.build(this, r2).setData(a2, { ...n2, manual: true });
|
|
1941
1941
|
}
|
|
1942
1942
|
setQueriesData(e2, t2, n2) {
|
|
1943
|
-
return
|
|
1943
|
+
return B.batch(() => this.#e.findAll(e2).map(({ queryKey: e3 }) => [e3, this.setQueryData(e3, t2, n2)]));
|
|
1944
1944
|
}
|
|
1945
1945
|
getQueryState(e2) {
|
|
1946
1946
|
let t2 = this.defaultQueryOptions({ queryKey: e2 });
|
|
@@ -1948,7 +1948,7 @@ var Pr = class {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
removeQueries(e2) {
|
|
1950
1950
|
let t2 = this.#e;
|
|
1951
|
-
|
|
1951
|
+
B.batch(() => {
|
|
1952
1952
|
t2.findAll(e2).forEach((e3) => {
|
|
1953
1953
|
t2.remove(e3);
|
|
1954
1954
|
});
|
|
@@ -1956,46 +1956,46 @@ var Pr = class {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
resetQueries(e2, t2) {
|
|
1958
1958
|
let n2 = this.#e;
|
|
1959
|
-
return
|
|
1959
|
+
return B.batch(() => (n2.findAll(e2).forEach((e3) => {
|
|
1960
1960
|
e3.reset();
|
|
1961
1961
|
}), this.refetchQueries({ type: `active`, ...e2 }, t2)));
|
|
1962
1962
|
}
|
|
1963
1963
|
cancelQueries(e2, t2 = {}) {
|
|
1964
|
-
let n2 = { revert: true, ...t2 }, r2 =
|
|
1965
|
-
return Promise.all(r2).then(
|
|
1964
|
+
let n2 = { revert: true, ...t2 }, r2 = B.batch(() => this.#e.findAll(e2).map((e3) => e3.cancel(n2)));
|
|
1965
|
+
return Promise.all(r2).then(L).catch(L);
|
|
1966
1966
|
}
|
|
1967
1967
|
invalidateQueries(e2, t2 = {}) {
|
|
1968
|
-
return
|
|
1968
|
+
return B.batch(() => (this.#e.findAll(e2).forEach((e3) => {
|
|
1969
1969
|
e3.invalidate();
|
|
1970
1970
|
}), e2?.refetchType === `none` ? Promise.resolve() : this.refetchQueries({ ...e2, type: e2?.refetchType ?? e2?.type ?? `active` }, t2)));
|
|
1971
1971
|
}
|
|
1972
1972
|
refetchQueries(e2, t2 = {}) {
|
|
1973
|
-
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 =
|
|
1973
|
+
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 = B.batch(() => this.#e.findAll(e2).filter((e3) => !e3.isDisabled() && !e3.isStatic()).map((e3) => {
|
|
1974
1974
|
let t3 = e3.fetch(void 0, n2);
|
|
1975
|
-
return n2.throwOnError || (t3 = t3.catch(
|
|
1975
|
+
return n2.throwOnError || (t3 = t3.catch(L)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
|
|
1976
1976
|
}));
|
|
1977
|
-
return Promise.all(r2).then(
|
|
1977
|
+
return Promise.all(r2).then(L);
|
|
1978
1978
|
}
|
|
1979
1979
|
fetchQuery(e2) {
|
|
1980
1980
|
let t2 = this.defaultQueryOptions(e2);
|
|
1981
1981
|
t2.retry === void 0 && (t2.retry = false);
|
|
1982
1982
|
let n2 = this.#e.build(this, t2);
|
|
1983
|
-
return n2.isStaleByTime(
|
|
1983
|
+
return n2.isStaleByTime(R(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
|
|
1984
1984
|
}
|
|
1985
1985
|
prefetchQuery(e2) {
|
|
1986
|
-
return this.fetchQuery(e2).then(
|
|
1986
|
+
return this.fetchQuery(e2).then(L).catch(L);
|
|
1987
1987
|
}
|
|
1988
1988
|
fetchInfiniteQuery(e2) {
|
|
1989
1989
|
return e2._type = `infinite`, this.fetchQuery(e2);
|
|
1990
1990
|
}
|
|
1991
1991
|
prefetchInfiniteQuery(e2) {
|
|
1992
|
-
return this.fetchInfiniteQuery(e2).then(
|
|
1992
|
+
return this.fetchInfiniteQuery(e2).then(L).catch(L);
|
|
1993
1993
|
}
|
|
1994
1994
|
ensureInfiniteQueryData(e2) {
|
|
1995
1995
|
return e2._type = `infinite`, this.ensureQueryData(e2);
|
|
1996
1996
|
}
|
|
1997
1997
|
resumePausedMutations() {
|
|
1998
|
-
return
|
|
1998
|
+
return ur.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1999
1999
|
}
|
|
2000
2000
|
getQueryCache() {
|
|
2001
2001
|
return this.#e;
|
|
@@ -2010,27 +2010,27 @@ var Pr = class {
|
|
|
2010
2010
|
this.#n = e2;
|
|
2011
2011
|
}
|
|
2012
2012
|
setQueryDefaults(e2, t2) {
|
|
2013
|
-
this.#r.set(
|
|
2013
|
+
this.#r.set(Wn(e2), { queryKey: e2, defaultOptions: t2 });
|
|
2014
2014
|
}
|
|
2015
2015
|
getQueryDefaults(e2) {
|
|
2016
2016
|
let t2 = [...this.#r.values()], n2 = {};
|
|
2017
2017
|
return t2.forEach((t3) => {
|
|
2018
|
-
|
|
2018
|
+
Gn(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
|
|
2019
2019
|
}), n2;
|
|
2020
2020
|
}
|
|
2021
2021
|
setMutationDefaults(e2, t2) {
|
|
2022
|
-
this.#i.set(
|
|
2022
|
+
this.#i.set(Wn(e2), { mutationKey: e2, defaultOptions: t2 });
|
|
2023
2023
|
}
|
|
2024
2024
|
getMutationDefaults(e2) {
|
|
2025
2025
|
let t2 = [...this.#i.values()], n2 = {};
|
|
2026
2026
|
return t2.forEach((t3) => {
|
|
2027
|
-
|
|
2027
|
+
Gn(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
|
|
2028
2028
|
}), n2;
|
|
2029
2029
|
}
|
|
2030
2030
|
defaultQueryOptions(e2) {
|
|
2031
2031
|
if (e2._defaulted) return e2;
|
|
2032
2032
|
let t2 = { ...this.#n.queries, ...this.getQueryDefaults(e2.queryKey), ...e2, _defaulted: true };
|
|
2033
|
-
return t2.queryHash ||=
|
|
2033
|
+
return t2.queryHash ||= Un(t2.queryKey, t2), t2.refetchOnReconnect === void 0 && (t2.refetchOnReconnect = t2.networkMode !== `always`), t2.throwOnError === void 0 && (t2.throwOnError = !!t2.suspense), !t2.networkMode && t2.persister && (t2.networkMode = `offlineFirst`), t2.queryFn === nr && (t2.enabled = false), t2;
|
|
2034
2034
|
}
|
|
2035
2035
|
defaultMutationOptions(e2) {
|
|
2036
2036
|
return e2?._defaulted ? e2 : { ...this.#n.mutations, ...e2?.mutationKey && this.getMutationDefaults(e2.mutationKey), ...e2, _defaulted: true };
|
|
@@ -2039,20 +2039,20 @@ var Pr = class {
|
|
|
2039
2039
|
this.#e.clear(), this.#t.clear();
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
|
-
var
|
|
2043
|
-
var
|
|
2044
|
-
let n2 = e.useContext(
|
|
2042
|
+
var Ir = e.createContext(void 0);
|
|
2043
|
+
var Lr = (t2) => {
|
|
2044
|
+
let n2 = e.useContext(Ir);
|
|
2045
2045
|
if (t2) return t2;
|
|
2046
2046
|
if (!n2) throw Error(`No QueryClient set, use QueryClientProvider to set one`);
|
|
2047
2047
|
return n2;
|
|
2048
2048
|
};
|
|
2049
|
-
var
|
|
2049
|
+
var Rr = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
|
|
2050
2050
|
t2.unmount();
|
|
2051
|
-
}), [t2]), a(
|
|
2052
|
-
var
|
|
2053
|
-
var
|
|
2054
|
-
|
|
2055
|
-
function
|
|
2051
|
+
}), [t2]), a(Ir.Provider, { value: t2, children: n2 }));
|
|
2052
|
+
var zr = e.createContext(false);
|
|
2053
|
+
var Br = () => e.useContext(zr);
|
|
2054
|
+
zr.Provider;
|
|
2055
|
+
function Vr() {
|
|
2056
2056
|
let e2 = false;
|
|
2057
2057
|
return { clearReset: () => {
|
|
2058
2058
|
e2 = false;
|
|
@@ -2060,63 +2060,63 @@ function Br() {
|
|
|
2060
2060
|
e2 = true;
|
|
2061
2061
|
}, isReset: () => e2 };
|
|
2062
2062
|
}
|
|
2063
|
-
var
|
|
2064
|
-
var
|
|
2065
|
-
var
|
|
2066
|
-
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ?
|
|
2063
|
+
var Hr = e.createContext(Vr());
|
|
2064
|
+
var Ur = () => e.useContext(Hr);
|
|
2065
|
+
var Wr = (e2, t2, n2) => {
|
|
2066
|
+
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? ir(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
|
|
2067
2067
|
(e2.suspense || e2.experimental_prefetchInRender || r2) && (t2.isReset() || (e2.retryOnMount = false));
|
|
2068
2068
|
};
|
|
2069
|
-
var
|
|
2069
|
+
var Gr = (t2) => {
|
|
2070
2070
|
e.useEffect(() => {
|
|
2071
2071
|
t2.clearReset();
|
|
2072
2072
|
}, [t2]);
|
|
2073
2073
|
};
|
|
2074
|
-
var
|
|
2075
|
-
var
|
|
2074
|
+
var Kr = ({ result: e2, errorResetBoundary: t2, throwOnError: n2, query: r2, suspense: i2 }) => e2.isError && !t2.isReset() && !e2.isFetching && r2 && (i2 && e2.data === void 0 || ir(n2, [e2.error, r2]));
|
|
2075
|
+
var qr = (e2) => {
|
|
2076
2076
|
if (e2.suspense) {
|
|
2077
2077
|
let t2 = 1e3, n2 = (e3) => e3 === `static` ? e3 : Math.max(e3 ?? t2, t2), r2 = e2.staleTime;
|
|
2078
2078
|
e2.staleTime = typeof r2 == `function` ? (...e3) => n2(r2(...e3)) : n2(r2), typeof e2.gcTime == `number` && (e2.gcTime = Math.max(e2.gcTime, t2));
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
var
|
|
2082
|
-
var
|
|
2083
|
-
var
|
|
2081
|
+
var Jr = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
|
|
2082
|
+
var Yr = (e2, t2) => e2?.suspense && t2.isPending;
|
|
2083
|
+
var Xr = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
|
|
2084
2084
|
n2.clearReset();
|
|
2085
2085
|
});
|
|
2086
|
-
function
|
|
2087
|
-
let i2 =
|
|
2086
|
+
function Zr(t2, n2, r2) {
|
|
2087
|
+
let i2 = Br(), a2 = Ur(), o2 = Lr(r2), s2 = o2.defaultQueryOptions(t2);
|
|
2088
2088
|
o2.getDefaultOptions().queries?._experimental_beforeQuery?.(s2);
|
|
2089
2089
|
let c2 = o2.getQueryCache().get(s2.queryHash), l2 = t2.subscribed !== false;
|
|
2090
|
-
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0,
|
|
2090
|
+
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, qr(s2), Wr(s2, a2, c2), Gr(a2);
|
|
2091
2091
|
let u2 = !o2.getQueryCache().get(s2.queryHash), [d2] = e.useState(() => new n2(o2, s2)), f2 = d2.getOptimisticResult(s2), p2 = !i2 && l2;
|
|
2092
2092
|
if (e.useSyncExternalStore(e.useCallback((e2) => {
|
|
2093
|
-
let t3 = p2 ? d2.subscribe(
|
|
2093
|
+
let t3 = p2 ? d2.subscribe(B.batchCalls(e2)) : L;
|
|
2094
2094
|
return d2.updateResult(), t3;
|
|
2095
2095
|
}, [d2, p2]), () => d2.getCurrentResult(), () => d2.getCurrentResult()), e.useEffect(() => {
|
|
2096
2096
|
d2.setOptions(s2);
|
|
2097
|
-
}, [s2, d2]),
|
|
2098
|
-
if (
|
|
2099
|
-
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !
|
|
2097
|
+
}, [s2, d2]), Yr(s2, f2)) throw Xr(s2, d2, a2);
|
|
2098
|
+
if (Kr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
|
|
2099
|
+
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !or.isServer() && Jr(f2, i2) && (u2 ? Xr(s2, d2, a2) : c2?.promise)?.catch(L).finally(() => {
|
|
2100
2100
|
d2.updateResult();
|
|
2101
2101
|
}), s2.notifyOnChangeProps ? f2 : d2.trackResult(f2);
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2104
|
-
return
|
|
2103
|
+
function Qr(e2, t2) {
|
|
2104
|
+
return Zr(e2, Cr, t2);
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function V(e2) {
|
|
2107
2107
|
return e2;
|
|
2108
2108
|
}
|
|
2109
|
-
var
|
|
2110
|
-
var
|
|
2111
|
-
var
|
|
2112
|
-
`${
|
|
2113
|
-
var
|
|
2109
|
+
var $r = V(`@wix/site-service-url`);
|
|
2110
|
+
var ei = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
|
|
2111
|
+
var ti = `1380b703-ce81-ff05-f115-39571d94dfcd`;
|
|
2112
|
+
`${ei}`, `${ei}`;
|
|
2113
|
+
var H = function(e2) {
|
|
2114
2114
|
return e2.SIDE_CART = `ecom_side_cart`, e2.CART = `shopping_cart`, e2.CHECKOUT = `checkout`, e2.PRODUCT_PAGE = `product-page-builder`, e2.CATEGORY_PAGE = `category-page-builder`, e2;
|
|
2115
2115
|
}({});
|
|
2116
|
-
var
|
|
2117
|
-
var
|
|
2118
|
-
let e2 = l(
|
|
2119
|
-
let r2 = e2.appSectionRelativeUrl(
|
|
2116
|
+
var ni = { ecom_side_cart: `52b042d1-9e32-450e-88b9-b1abee4242f8` };
|
|
2117
|
+
var ri = () => {
|
|
2118
|
+
let e2 = l($r), n2 = t((t2, n3) => {
|
|
2119
|
+
let r2 = e2.appSectionRelativeUrl(ei, t2, true);
|
|
2120
2120
|
if (r2) return `./${r2.replace(/^\//, ``).replace(/\/$/, ``)}/${encodeURIComponent(n3)}`;
|
|
2121
2121
|
}, [e2]);
|
|
2122
2122
|
return { getPageRelativeUrl: n2, getPageAbsoluteUrl: t((t2, r2) => {
|
|
@@ -2124,18 +2124,18 @@ var ni = () => {
|
|
|
2124
2124
|
if (i2) return new URL(i2, `${e2.siteUrl.replace(/\/$/, ``)}/`).href;
|
|
2125
2125
|
}, [n2, e2]) };
|
|
2126
2126
|
};
|
|
2127
|
-
var
|
|
2127
|
+
var ii = g((e2, t2) => {
|
|
2128
2128
|
t2.exports = typeof window == `object` && window && window.Object === Object && window;
|
|
2129
2129
|
});
|
|
2130
|
-
var
|
|
2131
|
-
var n2 =
|
|
2130
|
+
var U = g((e2, t2) => {
|
|
2131
|
+
var n2 = ii(), r2 = typeof self == `object` && self && self.Object === Object && self;
|
|
2132
2132
|
t2.exports = n2 || r2 || Function(`return this`)();
|
|
2133
2133
|
});
|
|
2134
|
-
var ii = g((e2, t2) => {
|
|
2135
|
-
t2.exports = W().Symbol;
|
|
2136
|
-
});
|
|
2137
2134
|
var ai = g((e2, t2) => {
|
|
2138
|
-
|
|
2135
|
+
t2.exports = U().Symbol;
|
|
2136
|
+
});
|
|
2137
|
+
var oi = g((e2, t2) => {
|
|
2138
|
+
var n2 = ai(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
|
|
2139
2139
|
function s2(e3) {
|
|
2140
2140
|
var t3 = i2.call(e3, o2), n3 = e3[o2];
|
|
2141
2141
|
try {
|
|
@@ -2148,35 +2148,35 @@ var ai = g((e2, t2) => {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
t2.exports = s2;
|
|
2150
2150
|
});
|
|
2151
|
-
var
|
|
2151
|
+
var si = g((e2, t2) => {
|
|
2152
2152
|
var n2 = Object.prototype.toString;
|
|
2153
2153
|
function r2(e3) {
|
|
2154
2154
|
return n2.call(e3);
|
|
2155
2155
|
}
|
|
2156
2156
|
t2.exports = r2;
|
|
2157
2157
|
});
|
|
2158
|
-
var
|
|
2159
|
-
var n2 =
|
|
2158
|
+
var ci = g((e2, t2) => {
|
|
2159
|
+
var n2 = ai(), r2 = oi(), i2 = si(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
|
|
2160
2160
|
function c2(e3) {
|
|
2161
2161
|
return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
|
|
2162
2162
|
}
|
|
2163
2163
|
t2.exports = c2;
|
|
2164
2164
|
});
|
|
2165
|
-
var
|
|
2165
|
+
var li = g((e2, t2) => {
|
|
2166
2166
|
function n2(e3) {
|
|
2167
2167
|
return typeof e3 == `object` && !!e3;
|
|
2168
2168
|
}
|
|
2169
2169
|
t2.exports = n2;
|
|
2170
2170
|
});
|
|
2171
|
-
var
|
|
2172
|
-
var n2 =
|
|
2171
|
+
var ui = g((e2, t2) => {
|
|
2172
|
+
var n2 = ci(), r2 = li(), i2 = `[object Symbol]`;
|
|
2173
2173
|
function a2(e3) {
|
|
2174
2174
|
return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
|
|
2175
2175
|
}
|
|
2176
2176
|
t2.exports = a2;
|
|
2177
2177
|
});
|
|
2178
|
-
var
|
|
2179
|
-
var n2 =
|
|
2178
|
+
var di = g((e2, t2) => {
|
|
2179
|
+
var n2 = ui();
|
|
2180
2180
|
function r2(e3, t3, r3) {
|
|
2181
2181
|
for (var i2 = -1, a2 = e3.length; ++i2 < a2; ) {
|
|
2182
2182
|
var o2 = e3[i2], s2 = t3(o2);
|
|
@@ -2186,78 +2186,78 @@ var ui = g((e2, t2) => {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
t2.exports = r2;
|
|
2188
2188
|
});
|
|
2189
|
-
var
|
|
2189
|
+
var fi = g((e2, t2) => {
|
|
2190
2190
|
function n2(e3, t3) {
|
|
2191
2191
|
return e3 > t3;
|
|
2192
2192
|
}
|
|
2193
2193
|
t2.exports = n2;
|
|
2194
2194
|
});
|
|
2195
|
-
var
|
|
2195
|
+
var pi = g((e2, t2) => {
|
|
2196
2196
|
function n2(e3) {
|
|
2197
2197
|
return e3;
|
|
2198
2198
|
}
|
|
2199
2199
|
t2.exports = n2;
|
|
2200
2200
|
});
|
|
2201
|
-
var
|
|
2202
|
-
var n2 =
|
|
2201
|
+
var mi = g((e2, t2) => {
|
|
2202
|
+
var n2 = di(), r2 = fi(), i2 = pi();
|
|
2203
2203
|
function a2(e3) {
|
|
2204
2204
|
return e3 && e3.length ? n2(e3, i2, r2) : void 0;
|
|
2205
2205
|
}
|
|
2206
2206
|
t2.exports = a2;
|
|
2207
2207
|
});
|
|
2208
|
-
var
|
|
2208
|
+
var hi = g((e2, t2) => {
|
|
2209
2209
|
function n2() {
|
|
2210
2210
|
this.__data__ = [], this.size = 0;
|
|
2211
2211
|
}
|
|
2212
2212
|
t2.exports = n2;
|
|
2213
2213
|
});
|
|
2214
|
-
var
|
|
2214
|
+
var gi = g((e2, t2) => {
|
|
2215
2215
|
function n2(e3, t3) {
|
|
2216
2216
|
return e3 === t3 || e3 !== e3 && t3 !== t3;
|
|
2217
2217
|
}
|
|
2218
2218
|
t2.exports = n2;
|
|
2219
2219
|
});
|
|
2220
|
-
var
|
|
2221
|
-
var n2 =
|
|
2220
|
+
var _i = g((e2, t2) => {
|
|
2221
|
+
var n2 = gi();
|
|
2222
2222
|
function r2(e3, t3) {
|
|
2223
2223
|
for (var r3 = e3.length; r3--; ) if (n2(e3[r3][0], t3)) return r3;
|
|
2224
2224
|
return -1;
|
|
2225
2225
|
}
|
|
2226
2226
|
t2.exports = r2;
|
|
2227
2227
|
});
|
|
2228
|
-
var
|
|
2229
|
-
var n2 =
|
|
2228
|
+
var vi = g((e2, t2) => {
|
|
2229
|
+
var n2 = _i(), r2 = Array.prototype.splice;
|
|
2230
2230
|
function i2(e3) {
|
|
2231
2231
|
var t3 = this.__data__, i3 = n2(t3, e3);
|
|
2232
2232
|
return i3 < 0 ? false : (i3 == t3.length - 1 ? t3.pop() : r2.call(t3, i3, 1), --this.size, true);
|
|
2233
2233
|
}
|
|
2234
2234
|
t2.exports = i2;
|
|
2235
2235
|
});
|
|
2236
|
-
var
|
|
2237
|
-
var n2 =
|
|
2236
|
+
var yi = g((e2, t2) => {
|
|
2237
|
+
var n2 = _i();
|
|
2238
2238
|
function r2(e3) {
|
|
2239
2239
|
var t3 = this.__data__, r3 = n2(t3, e3);
|
|
2240
2240
|
return r3 < 0 ? void 0 : t3[r3][1];
|
|
2241
2241
|
}
|
|
2242
2242
|
t2.exports = r2;
|
|
2243
2243
|
});
|
|
2244
|
-
var
|
|
2245
|
-
var n2 =
|
|
2244
|
+
var bi = g((e2, t2) => {
|
|
2245
|
+
var n2 = _i();
|
|
2246
2246
|
function r2(e3) {
|
|
2247
2247
|
return n2(this.__data__, e3) > -1;
|
|
2248
2248
|
}
|
|
2249
2249
|
t2.exports = r2;
|
|
2250
2250
|
});
|
|
2251
|
-
var
|
|
2252
|
-
var n2 =
|
|
2251
|
+
var xi = g((e2, t2) => {
|
|
2252
|
+
var n2 = _i();
|
|
2253
2253
|
function r2(e3, t3) {
|
|
2254
2254
|
var r3 = this.__data__, i2 = n2(r3, e3);
|
|
2255
2255
|
return i2 < 0 ? (++this.size, r3.push([e3, t3])) : r3[i2][1] = t3, this;
|
|
2256
2256
|
}
|
|
2257
2257
|
t2.exports = r2;
|
|
2258
2258
|
});
|
|
2259
|
-
var
|
|
2260
|
-
var n2 =
|
|
2259
|
+
var Si = g((e2, t2) => {
|
|
2260
|
+
var n2 = hi(), r2 = vi(), i2 = yi(), a2 = bi(), o2 = xi();
|
|
2261
2261
|
function s2(e3) {
|
|
2262
2262
|
var t3 = -1, n3 = e3 == null ? 0 : e3.length;
|
|
2263
2263
|
for (this.clear(); ++t3 < n3; ) {
|
|
@@ -2267,41 +2267,41 @@ var xi = g((e2, t2) => {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
s2.prototype.clear = n2, s2.prototype.delete = r2, s2.prototype.get = i2, s2.prototype.has = a2, s2.prototype.set = o2, t2.exports = s2;
|
|
2269
2269
|
});
|
|
2270
|
-
var
|
|
2271
|
-
var n2 =
|
|
2270
|
+
var Ci = g((e2, t2) => {
|
|
2271
|
+
var n2 = Si();
|
|
2272
2272
|
function r2() {
|
|
2273
2273
|
this.__data__ = new n2(), this.size = 0;
|
|
2274
2274
|
}
|
|
2275
2275
|
t2.exports = r2;
|
|
2276
2276
|
});
|
|
2277
|
-
var
|
|
2277
|
+
var wi = g((e2, t2) => {
|
|
2278
2278
|
function n2(e3) {
|
|
2279
2279
|
var t3 = this.__data__, n3 = t3.delete(e3);
|
|
2280
2280
|
return this.size = t3.size, n3;
|
|
2281
2281
|
}
|
|
2282
2282
|
t2.exports = n2;
|
|
2283
2283
|
});
|
|
2284
|
-
var
|
|
2284
|
+
var Ti = g((e2, t2) => {
|
|
2285
2285
|
function n2(e3) {
|
|
2286
2286
|
return this.__data__.get(e3);
|
|
2287
2287
|
}
|
|
2288
2288
|
t2.exports = n2;
|
|
2289
2289
|
});
|
|
2290
|
-
var
|
|
2290
|
+
var Ei = g((e2, t2) => {
|
|
2291
2291
|
function n2(e3) {
|
|
2292
2292
|
return this.__data__.has(e3);
|
|
2293
2293
|
}
|
|
2294
2294
|
t2.exports = n2;
|
|
2295
2295
|
});
|
|
2296
|
-
var
|
|
2296
|
+
var Di = g((e2, t2) => {
|
|
2297
2297
|
function n2(e3) {
|
|
2298
2298
|
var t3 = typeof e3;
|
|
2299
2299
|
return e3 != null && (t3 == `object` || t3 == `function`);
|
|
2300
2300
|
}
|
|
2301
2301
|
t2.exports = n2;
|
|
2302
2302
|
});
|
|
2303
|
-
var
|
|
2304
|
-
var n2 =
|
|
2303
|
+
var Oi = g((e2, t2) => {
|
|
2304
|
+
var n2 = ci(), r2 = Di(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
|
|
2305
2305
|
function c2(e3) {
|
|
2306
2306
|
if (!r2(e3)) return false;
|
|
2307
2307
|
var t3 = n2(e3);
|
|
@@ -2309,11 +2309,11 @@ var Di = g((e2, t2) => {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
t2.exports = c2;
|
|
2311
2311
|
});
|
|
2312
|
-
var Oi = g((e2, t2) => {
|
|
2313
|
-
t2.exports = W()[`__core-js_shared__`];
|
|
2314
|
-
});
|
|
2315
2312
|
var ki = g((e2, t2) => {
|
|
2316
|
-
|
|
2313
|
+
t2.exports = U()[`__core-js_shared__`];
|
|
2314
|
+
});
|
|
2315
|
+
var Ai = g((e2, t2) => {
|
|
2316
|
+
var n2 = ki(), r2 = function() {
|
|
2317
2317
|
var e3 = /[^.]+$/.exec(n2 && n2.keys && n2.keys.IE_PROTO || ``);
|
|
2318
2318
|
return e3 ? `Symbol(src)_1.` + e3 : ``;
|
|
2319
2319
|
}();
|
|
@@ -2322,7 +2322,7 @@ var ki = g((e2, t2) => {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
t2.exports = i2;
|
|
2324
2324
|
});
|
|
2325
|
-
var
|
|
2325
|
+
var ji = g((e2, t2) => {
|
|
2326
2326
|
var n2 = Function.prototype.toString;
|
|
2327
2327
|
function r2(e3) {
|
|
2328
2328
|
if (e3 != null) {
|
|
@@ -2339,49 +2339,49 @@ var Ai = g((e2, t2) => {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
t2.exports = r2;
|
|
2341
2341
|
});
|
|
2342
|
-
var
|
|
2343
|
-
var n2 =
|
|
2342
|
+
var Mi = g((e2, t2) => {
|
|
2343
|
+
var n2 = Oi(), r2 = Ai(), i2 = Di(), a2 = ji(), o2 = /[\\^$.*+?()[\]{}|]/g, s2 = /^\[object .+?Constructor\]$/, c2 = Function.prototype, l2 = Object.prototype, u2 = c2.toString, d2 = l2.hasOwnProperty, f2 = RegExp(`^` + u2.call(d2).replace(o2, `\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, `$1.*?`) + `$`);
|
|
2344
2344
|
function p2(e3) {
|
|
2345
2345
|
return !i2(e3) || r2(e3) ? false : (n2(e3) ? f2 : s2).test(a2(e3));
|
|
2346
2346
|
}
|
|
2347
2347
|
t2.exports = p2;
|
|
2348
2348
|
});
|
|
2349
|
-
var
|
|
2349
|
+
var Ni = g((e2, t2) => {
|
|
2350
2350
|
function n2(e3, t3) {
|
|
2351
2351
|
return e3?.[t3];
|
|
2352
2352
|
}
|
|
2353
2353
|
t2.exports = n2;
|
|
2354
2354
|
});
|
|
2355
|
-
var
|
|
2356
|
-
var n2 =
|
|
2355
|
+
var W = g((e2, t2) => {
|
|
2356
|
+
var n2 = Mi(), r2 = Ni();
|
|
2357
2357
|
function i2(e3, t3) {
|
|
2358
2358
|
var i3 = r2(e3, t3);
|
|
2359
2359
|
return n2(i3) ? i3 : void 0;
|
|
2360
2360
|
}
|
|
2361
2361
|
t2.exports = i2;
|
|
2362
2362
|
});
|
|
2363
|
-
var Ni = g((e2, t2) => {
|
|
2364
|
-
t2.exports = G()(W(), `Map`);
|
|
2365
|
-
});
|
|
2366
2363
|
var Pi = g((e2, t2) => {
|
|
2367
|
-
t2.exports =
|
|
2364
|
+
t2.exports = W()(U(), `Map`);
|
|
2368
2365
|
});
|
|
2369
2366
|
var Fi = g((e2, t2) => {
|
|
2370
|
-
|
|
2367
|
+
t2.exports = W()(Object, `create`);
|
|
2368
|
+
});
|
|
2369
|
+
var Ii = g((e2, t2) => {
|
|
2370
|
+
var n2 = Fi();
|
|
2371
2371
|
function r2() {
|
|
2372
2372
|
this.__data__ = n2 ? n2(null) : {}, this.size = 0;
|
|
2373
2373
|
}
|
|
2374
2374
|
t2.exports = r2;
|
|
2375
2375
|
});
|
|
2376
|
-
var
|
|
2376
|
+
var Li = g((e2, t2) => {
|
|
2377
2377
|
function n2(e3) {
|
|
2378
2378
|
var t3 = this.has(e3) && delete this.__data__[e3];
|
|
2379
2379
|
return this.size -= +!!t3, t3;
|
|
2380
2380
|
}
|
|
2381
2381
|
t2.exports = n2;
|
|
2382
2382
|
});
|
|
2383
|
-
var
|
|
2384
|
-
var n2 =
|
|
2383
|
+
var Ri = g((e2, t2) => {
|
|
2384
|
+
var n2 = Fi(), r2 = `__lodash_hash_undefined__`, i2 = Object.prototype.hasOwnProperty;
|
|
2385
2385
|
function a2(e3) {
|
|
2386
2386
|
var t3 = this.__data__;
|
|
2387
2387
|
if (n2) {
|
|
@@ -2392,24 +2392,24 @@ var Li = g((e2, t2) => {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
t2.exports = a2;
|
|
2394
2394
|
});
|
|
2395
|
-
var
|
|
2396
|
-
var n2 =
|
|
2395
|
+
var zi = g((e2, t2) => {
|
|
2396
|
+
var n2 = Fi(), r2 = Object.prototype.hasOwnProperty;
|
|
2397
2397
|
function i2(e3) {
|
|
2398
2398
|
var t3 = this.__data__;
|
|
2399
2399
|
return n2 ? t3[e3] !== void 0 : r2.call(t3, e3);
|
|
2400
2400
|
}
|
|
2401
2401
|
t2.exports = i2;
|
|
2402
2402
|
});
|
|
2403
|
-
var
|
|
2404
|
-
var n2 =
|
|
2403
|
+
var Bi = g((e2, t2) => {
|
|
2404
|
+
var n2 = Fi(), r2 = `__lodash_hash_undefined__`;
|
|
2405
2405
|
function i2(e3, t3) {
|
|
2406
2406
|
var i3 = this.__data__;
|
|
2407
2407
|
return this.size += +!this.has(e3), i3[e3] = n2 && t3 === void 0 ? r2 : t3, this;
|
|
2408
2408
|
}
|
|
2409
2409
|
t2.exports = i2;
|
|
2410
2410
|
});
|
|
2411
|
-
var
|
|
2412
|
-
var n2 =
|
|
2411
|
+
var Vi = g((e2, t2) => {
|
|
2412
|
+
var n2 = Ii(), r2 = Li(), i2 = Ri(), a2 = zi(), o2 = Bi();
|
|
2413
2413
|
function s2(e3) {
|
|
2414
2414
|
var t3 = -1, n3 = e3 == null ? 0 : e3.length;
|
|
2415
2415
|
for (this.clear(); ++t3 < n3; ) {
|
|
@@ -2419,60 +2419,60 @@ var Bi = g((e2, t2) => {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
s2.prototype.clear = n2, s2.prototype.delete = r2, s2.prototype.get = i2, s2.prototype.has = a2, s2.prototype.set = o2, t2.exports = s2;
|
|
2421
2421
|
});
|
|
2422
|
-
var
|
|
2423
|
-
var n2 =
|
|
2422
|
+
var Hi = g((e2, t2) => {
|
|
2423
|
+
var n2 = Vi(), r2 = Si(), i2 = Pi();
|
|
2424
2424
|
function a2() {
|
|
2425
2425
|
this.size = 0, this.__data__ = { hash: new n2(), map: new (i2 || r2)(), string: new n2() };
|
|
2426
2426
|
}
|
|
2427
2427
|
t2.exports = a2;
|
|
2428
2428
|
});
|
|
2429
|
-
var
|
|
2429
|
+
var Ui = g((e2, t2) => {
|
|
2430
2430
|
function n2(e3) {
|
|
2431
2431
|
var t3 = typeof e3;
|
|
2432
2432
|
return t3 == `string` || t3 == `number` || t3 == `symbol` || t3 == `boolean` ? e3 !== `__proto__` : e3 === null;
|
|
2433
2433
|
}
|
|
2434
2434
|
t2.exports = n2;
|
|
2435
2435
|
});
|
|
2436
|
-
var
|
|
2437
|
-
var n2 =
|
|
2436
|
+
var Wi = g((e2, t2) => {
|
|
2437
|
+
var n2 = Ui();
|
|
2438
2438
|
function r2(e3, t3) {
|
|
2439
2439
|
var r3 = e3.__data__;
|
|
2440
2440
|
return n2(t3) ? r3[typeof t3 == `string` ? `string` : `hash`] : r3.map;
|
|
2441
2441
|
}
|
|
2442
2442
|
t2.exports = r2;
|
|
2443
2443
|
});
|
|
2444
|
-
var
|
|
2445
|
-
var n2 =
|
|
2444
|
+
var Gi = g((e2, t2) => {
|
|
2445
|
+
var n2 = Wi();
|
|
2446
2446
|
function r2(e3) {
|
|
2447
2447
|
var t3 = n2(this, e3).delete(e3);
|
|
2448
2448
|
return this.size -= +!!t3, t3;
|
|
2449
2449
|
}
|
|
2450
2450
|
t2.exports = r2;
|
|
2451
2451
|
});
|
|
2452
|
-
var
|
|
2453
|
-
var n2 =
|
|
2452
|
+
var Ki = g((e2, t2) => {
|
|
2453
|
+
var n2 = Wi();
|
|
2454
2454
|
function r2(e3) {
|
|
2455
2455
|
return n2(this, e3).get(e3);
|
|
2456
2456
|
}
|
|
2457
2457
|
t2.exports = r2;
|
|
2458
2458
|
});
|
|
2459
|
-
var
|
|
2460
|
-
var n2 =
|
|
2459
|
+
var qi = g((e2, t2) => {
|
|
2460
|
+
var n2 = Wi();
|
|
2461
2461
|
function r2(e3) {
|
|
2462
2462
|
return n2(this, e3).has(e3);
|
|
2463
2463
|
}
|
|
2464
2464
|
t2.exports = r2;
|
|
2465
2465
|
});
|
|
2466
|
-
var
|
|
2467
|
-
var n2 =
|
|
2466
|
+
var Ji = g((e2, t2) => {
|
|
2467
|
+
var n2 = Wi();
|
|
2468
2468
|
function r2(e3, t3) {
|
|
2469
2469
|
var r3 = n2(this, e3), i2 = r3.size;
|
|
2470
2470
|
return r3.set(e3, t3), this.size += r3.size == i2 ? 0 : 1, this;
|
|
2471
2471
|
}
|
|
2472
2472
|
t2.exports = r2;
|
|
2473
2473
|
});
|
|
2474
|
-
var
|
|
2475
|
-
var n2 =
|
|
2474
|
+
var Yi = g((e2, t2) => {
|
|
2475
|
+
var n2 = Hi(), r2 = Gi(), i2 = Ki(), a2 = qi(), o2 = Ji();
|
|
2476
2476
|
function s2(e3) {
|
|
2477
2477
|
var t3 = -1, n3 = e3 == null ? 0 : e3.length;
|
|
2478
2478
|
for (this.clear(); ++t3 < n3; ) {
|
|
@@ -2482,8 +2482,8 @@ var Ji = g((e2, t2) => {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
s2.prototype.clear = n2, s2.prototype.delete = r2, s2.prototype.get = i2, s2.prototype.has = a2, s2.prototype.set = o2, t2.exports = s2;
|
|
2484
2484
|
});
|
|
2485
|
-
var
|
|
2486
|
-
var n2 =
|
|
2485
|
+
var Xi = g((e2, t2) => {
|
|
2486
|
+
var n2 = Si(), r2 = Pi(), i2 = Yi(), a2 = 200;
|
|
2487
2487
|
function o2(e3, t3) {
|
|
2488
2488
|
var o3 = this.__data__;
|
|
2489
2489
|
if (o3 instanceof n2) {
|
|
@@ -2495,49 +2495,49 @@ var Yi = g((e2, t2) => {
|
|
|
2495
2495
|
}
|
|
2496
2496
|
t2.exports = o2;
|
|
2497
2497
|
});
|
|
2498
|
-
var
|
|
2499
|
-
var n2 =
|
|
2498
|
+
var Zi = g((e2, t2) => {
|
|
2499
|
+
var n2 = Si(), r2 = Ci(), i2 = wi(), a2 = Ti(), o2 = Ei(), s2 = Xi();
|
|
2500
2500
|
function c2(e3) {
|
|
2501
2501
|
var t3 = this.__data__ = new n2(e3);
|
|
2502
2502
|
this.size = t3.size;
|
|
2503
2503
|
}
|
|
2504
2504
|
c2.prototype.clear = r2, c2.prototype.delete = i2, c2.prototype.get = a2, c2.prototype.has = o2, c2.prototype.set = s2, t2.exports = c2;
|
|
2505
2505
|
});
|
|
2506
|
-
var
|
|
2506
|
+
var Qi = g((e2, t2) => {
|
|
2507
2507
|
function n2(e3) {
|
|
2508
2508
|
return this.__data__.set(e3, `__lodash_hash_undefined__`), this;
|
|
2509
2509
|
}
|
|
2510
2510
|
t2.exports = n2;
|
|
2511
2511
|
});
|
|
2512
|
-
var
|
|
2512
|
+
var $i = g((e2, t2) => {
|
|
2513
2513
|
function n2(e3) {
|
|
2514
2514
|
return this.__data__.has(e3);
|
|
2515
2515
|
}
|
|
2516
2516
|
t2.exports = n2;
|
|
2517
2517
|
});
|
|
2518
|
-
var
|
|
2519
|
-
var n2 =
|
|
2518
|
+
var ea = g((e2, t2) => {
|
|
2519
|
+
var n2 = Yi(), r2 = Qi(), i2 = $i();
|
|
2520
2520
|
function a2(e3) {
|
|
2521
2521
|
var t3 = -1, r3 = e3 == null ? 0 : e3.length;
|
|
2522
2522
|
for (this.__data__ = new n2(); ++t3 < r3; ) this.add(e3[t3]);
|
|
2523
2523
|
}
|
|
2524
2524
|
a2.prototype.add = a2.prototype.push = r2, a2.prototype.has = i2, t2.exports = a2;
|
|
2525
2525
|
});
|
|
2526
|
-
var
|
|
2526
|
+
var ta = g((e2, t2) => {
|
|
2527
2527
|
function n2(e3, t3) {
|
|
2528
2528
|
for (var n3 = -1, r2 = e3 == null ? 0 : e3.length; ++n3 < r2; ) if (t3(e3[n3], n3, e3)) return true;
|
|
2529
2529
|
return false;
|
|
2530
2530
|
}
|
|
2531
2531
|
t2.exports = n2;
|
|
2532
2532
|
});
|
|
2533
|
-
var
|
|
2533
|
+
var na = g((e2, t2) => {
|
|
2534
2534
|
function n2(e3, t3) {
|
|
2535
2535
|
return e3.has(t3);
|
|
2536
2536
|
}
|
|
2537
2537
|
t2.exports = n2;
|
|
2538
2538
|
});
|
|
2539
|
-
var
|
|
2540
|
-
var n2 =
|
|
2539
|
+
var ra = g((e2, t2) => {
|
|
2540
|
+
var n2 = ea(), r2 = ta(), i2 = na(), a2 = 1, o2 = 2;
|
|
2541
2541
|
function s2(e3, t3, s3, c2, l2, u2) {
|
|
2542
2542
|
var d2 = s3 & a2, f2 = e3.length, p2 = t3.length;
|
|
2543
2543
|
if (f2 != p2 && !(d2 && p2 > f2)) return false;
|
|
@@ -2568,10 +2568,10 @@ var na = g((e2, t2) => {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
t2.exports = s2;
|
|
2570
2570
|
});
|
|
2571
|
-
var ra = g((e2, t2) => {
|
|
2572
|
-
t2.exports = W().Uint8Array;
|
|
2573
|
-
});
|
|
2574
2571
|
var ia = g((e2, t2) => {
|
|
2572
|
+
t2.exports = U().Uint8Array;
|
|
2573
|
+
});
|
|
2574
|
+
var aa = g((e2, t2) => {
|
|
2575
2575
|
function n2(e3) {
|
|
2576
2576
|
var t3 = -1, n3 = Array(e3.size);
|
|
2577
2577
|
return e3.forEach(function(e4, r2) {
|
|
@@ -2580,7 +2580,7 @@ var ia = g((e2, t2) => {
|
|
|
2580
2580
|
}
|
|
2581
2581
|
t2.exports = n2;
|
|
2582
2582
|
});
|
|
2583
|
-
var
|
|
2583
|
+
var oa = g((e2, t2) => {
|
|
2584
2584
|
function n2(e3) {
|
|
2585
2585
|
var t3 = -1, n3 = Array(e3.size);
|
|
2586
2586
|
return e3.forEach(function(e4) {
|
|
@@ -2589,8 +2589,8 @@ var aa = g((e2, t2) => {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
t2.exports = n2;
|
|
2591
2591
|
});
|
|
2592
|
-
var
|
|
2593
|
-
var n2 =
|
|
2592
|
+
var sa = g((e2, t2) => {
|
|
2593
|
+
var n2 = ai(), r2 = ia(), i2 = gi(), a2 = ra(), o2 = aa(), s2 = oa(), c2 = 1, l2 = 2, u2 = `[object Boolean]`, d2 = `[object Date]`, f2 = `[object Error]`, p2 = `[object Map]`, m2 = `[object Number]`, h2 = `[object RegExp]`, g2 = `[object Set]`, _2 = `[object String]`, v2 = `[object Symbol]`, y2 = `[object ArrayBuffer]`, b2 = `[object DataView]`, x2 = n2 ? n2.prototype : void 0, S2 = x2 ? x2.valueOf : void 0;
|
|
2594
2594
|
function C2(e3, t3, n3, x3, C3, w2, T2) {
|
|
2595
2595
|
switch (n3) {
|
|
2596
2596
|
case b2:
|
|
@@ -2624,25 +2624,25 @@ var oa = g((e2, t2) => {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
t2.exports = C2;
|
|
2626
2626
|
});
|
|
2627
|
-
var
|
|
2627
|
+
var ca = g((e2, t2) => {
|
|
2628
2628
|
function n2(e3, t3) {
|
|
2629
2629
|
for (var n3 = -1, r2 = t3.length, i2 = e3.length; ++n3 < r2; ) e3[i2 + n3] = t3[n3];
|
|
2630
2630
|
return e3;
|
|
2631
2631
|
}
|
|
2632
2632
|
t2.exports = n2;
|
|
2633
2633
|
});
|
|
2634
|
-
var
|
|
2634
|
+
var G = g((e2, t2) => {
|
|
2635
2635
|
t2.exports = Array.isArray;
|
|
2636
2636
|
});
|
|
2637
|
-
var
|
|
2638
|
-
var n2 =
|
|
2637
|
+
var la = g((e2, t2) => {
|
|
2638
|
+
var n2 = ca(), r2 = G();
|
|
2639
2639
|
function i2(e3, t3, i3) {
|
|
2640
2640
|
var a2 = t3(e3);
|
|
2641
2641
|
return r2(e3) ? a2 : n2(a2, i3(e3));
|
|
2642
2642
|
}
|
|
2643
2643
|
t2.exports = i2;
|
|
2644
2644
|
});
|
|
2645
|
-
var
|
|
2645
|
+
var ua = g((e2, t2) => {
|
|
2646
2646
|
function n2(e3, t3) {
|
|
2647
2647
|
for (var n3 = -1, r2 = e3 == null ? 0 : e3.length, i2 = 0, a2 = []; ++n3 < r2; ) {
|
|
2648
2648
|
var o2 = e3[n3];
|
|
@@ -2652,53 +2652,53 @@ var la = g((e2, t2) => {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
t2.exports = n2;
|
|
2654
2654
|
});
|
|
2655
|
-
var
|
|
2655
|
+
var da = g((e2, t2) => {
|
|
2656
2656
|
function n2() {
|
|
2657
2657
|
return [];
|
|
2658
2658
|
}
|
|
2659
2659
|
t2.exports = n2;
|
|
2660
2660
|
});
|
|
2661
|
-
var
|
|
2662
|
-
var n2 =
|
|
2661
|
+
var fa = g((e2, t2) => {
|
|
2662
|
+
var n2 = ua(), r2 = da(), i2 = Object.prototype.propertyIsEnumerable, a2 = Object.getOwnPropertySymbols;
|
|
2663
2663
|
t2.exports = a2 ? function(e3) {
|
|
2664
2664
|
return e3 == null ? [] : (e3 = Object(e3), n2(a2(e3), function(t3) {
|
|
2665
2665
|
return i2.call(e3, t3);
|
|
2666
2666
|
}));
|
|
2667
2667
|
} : r2;
|
|
2668
2668
|
});
|
|
2669
|
-
var
|
|
2669
|
+
var pa = g((e2, t2) => {
|
|
2670
2670
|
function n2(e3, t3) {
|
|
2671
2671
|
for (var n3 = -1, r2 = Array(e3); ++n3 < e3; ) r2[n3] = t3(n3);
|
|
2672
2672
|
return r2;
|
|
2673
2673
|
}
|
|
2674
2674
|
t2.exports = n2;
|
|
2675
2675
|
});
|
|
2676
|
-
var
|
|
2677
|
-
var n2 =
|
|
2676
|
+
var ma = g((e2, t2) => {
|
|
2677
|
+
var n2 = ci(), r2 = li(), i2 = `[object Arguments]`;
|
|
2678
2678
|
function a2(e3) {
|
|
2679
2679
|
return r2(e3) && n2(e3) == i2;
|
|
2680
2680
|
}
|
|
2681
2681
|
t2.exports = a2;
|
|
2682
2682
|
});
|
|
2683
|
-
var
|
|
2684
|
-
var n2 =
|
|
2683
|
+
var ha = g((e2, t2) => {
|
|
2684
|
+
var n2 = ma(), r2 = li(), i2 = Object.prototype, a2 = i2.hasOwnProperty, o2 = i2.propertyIsEnumerable;
|
|
2685
2685
|
t2.exports = n2(/* @__PURE__ */ function() {
|
|
2686
2686
|
return arguments;
|
|
2687
2687
|
}()) ? n2 : function(e3) {
|
|
2688
2688
|
return r2(e3) && a2.call(e3, `callee`) && !o2.call(e3, `callee`);
|
|
2689
2689
|
};
|
|
2690
2690
|
});
|
|
2691
|
-
var
|
|
2691
|
+
var ga = g((e2, t2) => {
|
|
2692
2692
|
function n2() {
|
|
2693
2693
|
return false;
|
|
2694
2694
|
}
|
|
2695
2695
|
t2.exports = n2;
|
|
2696
2696
|
});
|
|
2697
|
-
var
|
|
2698
|
-
var n2 =
|
|
2697
|
+
var _a = g((e2, t2) => {
|
|
2698
|
+
var n2 = U(), r2 = ga(), i2 = typeof e2 == `object` && e2 && !e2.nodeType && e2, a2 = i2 && typeof t2 == `object` && t2 && !t2.nodeType && t2, o2 = a2 && a2.exports === i2 ? n2.Buffer : void 0;
|
|
2699
2699
|
t2.exports = (o2 ? o2.isBuffer : void 0) || r2;
|
|
2700
2700
|
});
|
|
2701
|
-
var
|
|
2701
|
+
var va = g((e2, t2) => {
|
|
2702
2702
|
var n2 = /^(?:0|[1-9]\d*)$/;
|
|
2703
2703
|
function r2(e3, t3) {
|
|
2704
2704
|
var r3 = typeof e3;
|
|
@@ -2706,21 +2706,21 @@ var _a = g((e2, t2) => {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
t2.exports = r2;
|
|
2708
2708
|
});
|
|
2709
|
-
var
|
|
2709
|
+
var ya = g((e2, t2) => {
|
|
2710
2710
|
function n2(e3) {
|
|
2711
2711
|
return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
|
|
2712
2712
|
}
|
|
2713
2713
|
t2.exports = n2;
|
|
2714
2714
|
});
|
|
2715
|
-
var
|
|
2716
|
-
var n2 =
|
|
2715
|
+
var ba = g((e2, t2) => {
|
|
2716
|
+
var n2 = ci(), r2 = ya(), i2 = li(), a2 = `[object Arguments]`, o2 = `[object Array]`, s2 = `[object Boolean]`, c2 = `[object Date]`, l2 = `[object Error]`, u2 = `[object Function]`, d2 = `[object Map]`, f2 = `[object Number]`, p2 = `[object Object]`, m2 = `[object RegExp]`, h2 = `[object Set]`, g2 = `[object String]`, _2 = `[object WeakMap]`, v2 = `[object ArrayBuffer]`, y2 = `[object DataView]`, b2 = `[object Float32Array]`, x2 = `[object Float64Array]`, S2 = `[object Int8Array]`, C2 = `[object Int16Array]`, w2 = `[object Int32Array]`, T2 = `[object Uint8Array]`, E2 = `[object Uint8ClampedArray]`, D2 = `[object Uint16Array]`, O2 = `[object Uint32Array]`, k2 = {};
|
|
2717
2717
|
k2[b2] = k2[x2] = k2[S2] = k2[C2] = k2[w2] = k2[T2] = k2[E2] = k2[D2] = k2[O2] = true, k2[a2] = k2[o2] = k2[v2] = k2[s2] = k2[y2] = k2[c2] = k2[l2] = k2[u2] = k2[d2] = k2[f2] = k2[p2] = k2[m2] = k2[h2] = k2[g2] = k2[_2] = false;
|
|
2718
2718
|
function ee2(e3) {
|
|
2719
2719
|
return i2(e3) && r2(e3.length) && !!k2[n2(e3)];
|
|
2720
2720
|
}
|
|
2721
2721
|
t2.exports = ee2;
|
|
2722
2722
|
});
|
|
2723
|
-
var
|
|
2723
|
+
var xa = g((e2, t2) => {
|
|
2724
2724
|
function n2(e3) {
|
|
2725
2725
|
return function(t3) {
|
|
2726
2726
|
return e3(t3);
|
|
@@ -2728,8 +2728,8 @@ var ba = g((e2, t2) => {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
t2.exports = n2;
|
|
2730
2730
|
});
|
|
2731
|
-
var
|
|
2732
|
-
var n2 =
|
|
2731
|
+
var Sa = g((e2, t2) => {
|
|
2732
|
+
var n2 = ii(), r2 = typeof e2 == `object` && e2 && !e2.nodeType && e2, i2 = r2 && typeof t2 == `object` && t2 && !t2.nodeType && t2, a2 = i2 && i2.exports === r2 && n2.process;
|
|
2733
2733
|
t2.exports = function() {
|
|
2734
2734
|
try {
|
|
2735
2735
|
return i2 && i2.require && i2.require(`util`).types || a2 && a2.binding && a2.binding(`util`);
|
|
@@ -2737,12 +2737,12 @@ var xa = g((e2, t2) => {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
}();
|
|
2739
2739
|
});
|
|
2740
|
-
var
|
|
2741
|
-
var n2 =
|
|
2740
|
+
var Ca = g((e2, t2) => {
|
|
2741
|
+
var n2 = ba(), r2 = xa(), i2 = Sa(), a2 = i2 && i2.isTypedArray;
|
|
2742
2742
|
t2.exports = a2 ? r2(a2) : n2;
|
|
2743
2743
|
});
|
|
2744
|
-
var
|
|
2745
|
-
var n2 =
|
|
2744
|
+
var wa = g((e2, t2) => {
|
|
2745
|
+
var n2 = pa(), r2 = ha(), i2 = G(), a2 = _a(), o2 = va(), s2 = Ca(), c2 = Object.prototype.hasOwnProperty;
|
|
2746
2746
|
function l2(e3, t3) {
|
|
2747
2747
|
var l3 = i2(e3), u2 = !l3 && r2(e3), d2 = !l3 && !u2 && a2(e3), f2 = !l3 && !u2 && !d2 && s2(e3), p2 = l3 || u2 || d2 || f2, m2 = p2 ? n2(e3.length, String) : [], h2 = m2.length;
|
|
2748
2748
|
for (var g2 in e3) (t3 || c2.call(e3, g2)) && !(p2 && (g2 == `length` || d2 && (g2 == `offset` || g2 == `parent`) || f2 && (g2 == `buffer` || g2 == `byteLength` || g2 == `byteOffset`) || o2(g2, h2))) && m2.push(g2);
|
|
@@ -2750,7 +2750,7 @@ var Ca = g((e2, t2) => {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
t2.exports = l2;
|
|
2752
2752
|
});
|
|
2753
|
-
var
|
|
2753
|
+
var Ta = g((e2, t2) => {
|
|
2754
2754
|
var n2 = Object.prototype;
|
|
2755
2755
|
function r2(e3) {
|
|
2756
2756
|
var t3 = e3 && e3.constructor;
|
|
@@ -2758,7 +2758,7 @@ var wa = g((e2, t2) => {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
t2.exports = r2;
|
|
2760
2760
|
});
|
|
2761
|
-
var
|
|
2761
|
+
var Ea = g((e2, t2) => {
|
|
2762
2762
|
function n2(e3, t3) {
|
|
2763
2763
|
return function(n3) {
|
|
2764
2764
|
return e3(t3(n3));
|
|
@@ -2766,11 +2766,11 @@ var Ta = g((e2, t2) => {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
t2.exports = n2;
|
|
2768
2768
|
});
|
|
2769
|
-
var Ea = g((e2, t2) => {
|
|
2770
|
-
t2.exports = Ta()(Object.keys, Object);
|
|
2771
|
-
});
|
|
2772
2769
|
var Da = g((e2, t2) => {
|
|
2773
|
-
|
|
2770
|
+
t2.exports = Ea()(Object.keys, Object);
|
|
2771
|
+
});
|
|
2772
|
+
var Oa = g((e2, t2) => {
|
|
2773
|
+
var n2 = Ta(), r2 = Da(), i2 = Object.prototype.hasOwnProperty;
|
|
2774
2774
|
function a2(e3) {
|
|
2775
2775
|
if (!n2(e3)) return r2(e3);
|
|
2776
2776
|
var t3 = [];
|
|
@@ -2779,29 +2779,29 @@ var Da = g((e2, t2) => {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
t2.exports = a2;
|
|
2781
2781
|
});
|
|
2782
|
-
var
|
|
2783
|
-
var n2 =
|
|
2782
|
+
var ka = g((e2, t2) => {
|
|
2783
|
+
var n2 = Oi(), r2 = ya();
|
|
2784
2784
|
function i2(e3) {
|
|
2785
2785
|
return e3 != null && r2(e3.length) && !n2(e3);
|
|
2786
2786
|
}
|
|
2787
2787
|
t2.exports = i2;
|
|
2788
2788
|
});
|
|
2789
|
-
var
|
|
2790
|
-
var n2 =
|
|
2789
|
+
var Aa = g((e2, t2) => {
|
|
2790
|
+
var n2 = wa(), r2 = Oa(), i2 = ka();
|
|
2791
2791
|
function a2(e3) {
|
|
2792
2792
|
return i2(e3) ? n2(e3) : r2(e3);
|
|
2793
2793
|
}
|
|
2794
2794
|
t2.exports = a2;
|
|
2795
2795
|
});
|
|
2796
|
-
var
|
|
2797
|
-
var n2 =
|
|
2796
|
+
var ja = g((e2, t2) => {
|
|
2797
|
+
var n2 = la(), r2 = fa(), i2 = Aa();
|
|
2798
2798
|
function a2(e3) {
|
|
2799
2799
|
return n2(e3, i2, r2);
|
|
2800
2800
|
}
|
|
2801
2801
|
t2.exports = a2;
|
|
2802
2802
|
});
|
|
2803
|
-
var
|
|
2804
|
-
var n2 =
|
|
2803
|
+
var Ma = g((e2, t2) => {
|
|
2804
|
+
var n2 = ja(), r2 = 1, i2 = Object.prototype.hasOwnProperty;
|
|
2805
2805
|
function a2(e3, t3, a3, o2, s2, c2) {
|
|
2806
2806
|
var l2 = a3 & r2, u2 = n2(e3), d2 = u2.length;
|
|
2807
2807
|
if (d2 != n2(t3).length && !l2) return false;
|
|
@@ -2831,20 +2831,20 @@ var ja = g((e2, t2) => {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
t2.exports = a2;
|
|
2833
2833
|
});
|
|
2834
|
-
var Ma = g((e2, t2) => {
|
|
2835
|
-
t2.exports = G()(W(), `DataView`);
|
|
2836
|
-
});
|
|
2837
2834
|
var Na = g((e2, t2) => {
|
|
2838
|
-
t2.exports =
|
|
2835
|
+
t2.exports = W()(U(), `DataView`);
|
|
2839
2836
|
});
|
|
2840
2837
|
var Pa = g((e2, t2) => {
|
|
2841
|
-
t2.exports =
|
|
2838
|
+
t2.exports = W()(U(), `Promise`);
|
|
2842
2839
|
});
|
|
2843
2840
|
var Fa = g((e2, t2) => {
|
|
2844
|
-
t2.exports =
|
|
2841
|
+
t2.exports = W()(U(), `Set`);
|
|
2845
2842
|
});
|
|
2846
2843
|
var Ia = g((e2, t2) => {
|
|
2847
|
-
|
|
2844
|
+
t2.exports = W()(U(), `WeakMap`);
|
|
2845
|
+
});
|
|
2846
|
+
var La = g((e2, t2) => {
|
|
2847
|
+
var n2 = Na(), r2 = Pi(), i2 = Pa(), a2 = Fa(), o2 = Ia(), s2 = ci(), c2 = ji(), l2 = `[object Map]`, u2 = `[object Object]`, d2 = `[object Promise]`, f2 = `[object Set]`, p2 = `[object WeakMap]`, m2 = `[object DataView]`, h2 = c2(n2), g2 = c2(r2), _2 = c2(i2), v2 = c2(a2), y2 = c2(o2), b2 = s2;
|
|
2848
2848
|
(n2 && b2(new n2(new ArrayBuffer(1))) != m2 || r2 && b2(new r2()) != l2 || i2 && b2(i2.resolve()) != d2 || a2 && b2(new a2()) != f2 || o2 && b2(new o2()) != p2) && (b2 = function(e3) {
|
|
2849
2849
|
var t3 = s2(e3), n3 = t3 == u2 ? e3.constructor : void 0, r3 = n3 ? c2(n3) : ``;
|
|
2850
2850
|
if (r3) switch (r3) {
|
|
@@ -2862,8 +2862,8 @@ var Ia = g((e2, t2) => {
|
|
|
2862
2862
|
return t3;
|
|
2863
2863
|
}), t2.exports = b2;
|
|
2864
2864
|
});
|
|
2865
|
-
var
|
|
2866
|
-
var n2 =
|
|
2865
|
+
var Ra = g((e2, t2) => {
|
|
2866
|
+
var n2 = Zi(), r2 = ra(), i2 = sa(), a2 = Ma(), o2 = La(), s2 = G(), c2 = _a(), l2 = Ca(), u2 = 1, d2 = `[object Arguments]`, f2 = `[object Array]`, p2 = `[object Object]`, m2 = Object.prototype.hasOwnProperty;
|
|
2867
2867
|
function h2(e3, t3, h3, g2, _2, v2) {
|
|
2868
2868
|
var y2 = s2(e3), b2 = s2(t3), x2 = y2 ? f2 : o2(e3), S2 = b2 ? f2 : o2(t3);
|
|
2869
2869
|
x2 = x2 == d2 ? p2 : x2, S2 = S2 == d2 ? p2 : S2;
|
|
@@ -2884,15 +2884,15 @@ var La = g((e2, t2) => {
|
|
|
2884
2884
|
}
|
|
2885
2885
|
t2.exports = h2;
|
|
2886
2886
|
});
|
|
2887
|
-
var
|
|
2888
|
-
var n2 =
|
|
2887
|
+
var za = g((e2, t2) => {
|
|
2888
|
+
var n2 = Ra(), r2 = li();
|
|
2889
2889
|
function i2(e3, t3, a2, o2, s2) {
|
|
2890
2890
|
return e3 === t3 ? true : e3 == null || t3 == null || !r2(e3) && !r2(t3) ? e3 !== e3 && t3 !== t3 : n2(e3, t3, a2, o2, i2, s2);
|
|
2891
2891
|
}
|
|
2892
2892
|
t2.exports = i2;
|
|
2893
2893
|
});
|
|
2894
|
-
var
|
|
2895
|
-
var n2 =
|
|
2894
|
+
var Ba = g((e2, t2) => {
|
|
2895
|
+
var n2 = Zi(), r2 = za(), i2 = 1, a2 = 2;
|
|
2896
2896
|
function o2(e3, t3, o3, s2) {
|
|
2897
2897
|
var c2 = o3.length, l2 = c2, u2 = !s2;
|
|
2898
2898
|
if (e3 == null) return !l2;
|
|
@@ -2915,15 +2915,15 @@ var za = g((e2, t2) => {
|
|
|
2915
2915
|
}
|
|
2916
2916
|
t2.exports = o2;
|
|
2917
2917
|
});
|
|
2918
|
-
var
|
|
2919
|
-
var n2 =
|
|
2918
|
+
var Va = g((e2, t2) => {
|
|
2919
|
+
var n2 = Di();
|
|
2920
2920
|
function r2(e3) {
|
|
2921
2921
|
return e3 === e3 && !n2(e3);
|
|
2922
2922
|
}
|
|
2923
2923
|
t2.exports = r2;
|
|
2924
2924
|
});
|
|
2925
|
-
var
|
|
2926
|
-
var n2 =
|
|
2925
|
+
var Ha = g((e2, t2) => {
|
|
2926
|
+
var n2 = Va(), r2 = Aa();
|
|
2927
2927
|
function i2(e3) {
|
|
2928
2928
|
for (var t3 = r2(e3), i3 = t3.length; i3--; ) {
|
|
2929
2929
|
var a2 = t3[i3], o2 = e3[a2];
|
|
@@ -2933,7 +2933,7 @@ var Va = g((e2, t2) => {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
t2.exports = i2;
|
|
2935
2935
|
});
|
|
2936
|
-
var
|
|
2936
|
+
var Ua = g((e2, t2) => {
|
|
2937
2937
|
function n2(e3, t3) {
|
|
2938
2938
|
return function(n3) {
|
|
2939
2939
|
return n3 != null && n3[e3] === t3 && (t3 !== void 0 || e3 in Object(n3));
|
|
@@ -2941,8 +2941,8 @@ var Ha = g((e2, t2) => {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
t2.exports = n2;
|
|
2943
2943
|
});
|
|
2944
|
-
var
|
|
2945
|
-
var n2 =
|
|
2944
|
+
var Wa = g((e2, t2) => {
|
|
2945
|
+
var n2 = Ba(), r2 = Ha(), i2 = Ua();
|
|
2946
2946
|
function a2(e3) {
|
|
2947
2947
|
var t3 = r2(e3);
|
|
2948
2948
|
return t3.length == 1 && t3[0][2] ? i2(t3[0][0], t3[0][1]) : function(r3) {
|
|
@@ -2951,8 +2951,8 @@ var Ua = g((e2, t2) => {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
t2.exports = a2;
|
|
2953
2953
|
});
|
|
2954
|
-
var
|
|
2955
|
-
var n2 =
|
|
2954
|
+
var Ga = g((e2, t2) => {
|
|
2955
|
+
var n2 = G(), r2 = ui(), i2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a2 = /^\w*$/;
|
|
2956
2956
|
function o2(e3, t3) {
|
|
2957
2957
|
if (n2(e3)) return false;
|
|
2958
2958
|
var o3 = typeof e3;
|
|
@@ -2960,8 +2960,8 @@ var Wa = g((e2, t2) => {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
t2.exports = o2;
|
|
2962
2962
|
});
|
|
2963
|
-
var
|
|
2964
|
-
var n2 =
|
|
2963
|
+
var Ka = g((e2, t2) => {
|
|
2964
|
+
var n2 = Yi(), r2 = `Expected a function`;
|
|
2965
2965
|
function i2(e3, t3) {
|
|
2966
2966
|
if (typeof e3 != `function` || t3 != null && typeof t3 != `function`) throw TypeError(r2);
|
|
2967
2967
|
var a2 = function() {
|
|
@@ -2974,8 +2974,8 @@ var Ga = g((e2, t2) => {
|
|
|
2974
2974
|
}
|
|
2975
2975
|
i2.Cache = n2, t2.exports = i2;
|
|
2976
2976
|
});
|
|
2977
|
-
var
|
|
2978
|
-
var n2 =
|
|
2977
|
+
var qa = g((e2, t2) => {
|
|
2978
|
+
var n2 = Ka(), r2 = 500;
|
|
2979
2979
|
function i2(e3) {
|
|
2980
2980
|
var t3 = n2(e3, function(e4) {
|
|
2981
2981
|
return i3.size === r2 && i3.clear(), e4;
|
|
@@ -2984,8 +2984,8 @@ var Ka = g((e2, t2) => {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
t2.exports = i2;
|
|
2986
2986
|
});
|
|
2987
|
-
var
|
|
2988
|
-
var n2 =
|
|
2987
|
+
var Ja = g((e2, t2) => {
|
|
2988
|
+
var n2 = qa(), r2 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, i2 = /\\(\\)?/g;
|
|
2989
2989
|
t2.exports = n2(function(e3) {
|
|
2990
2990
|
var t3 = [];
|
|
2991
2991
|
return e3.charCodeAt(0) === 46 && t3.push(``), e3.replace(r2, function(e4, n3, r3, a2) {
|
|
@@ -2993,15 +2993,15 @@ var qa = g((e2, t2) => {
|
|
|
2993
2993
|
}), t3;
|
|
2994
2994
|
});
|
|
2995
2995
|
});
|
|
2996
|
-
var
|
|
2996
|
+
var Ya = g((e2, t2) => {
|
|
2997
2997
|
function n2(e3, t3) {
|
|
2998
2998
|
for (var n3 = -1, r2 = e3 == null ? 0 : e3.length, i2 = Array(r2); ++n3 < r2; ) i2[n3] = t3(e3[n3], n3, e3);
|
|
2999
2999
|
return i2;
|
|
3000
3000
|
}
|
|
3001
3001
|
t2.exports = n2;
|
|
3002
3002
|
});
|
|
3003
|
-
var
|
|
3004
|
-
var n2 =
|
|
3003
|
+
var Xa = g((e2, t2) => {
|
|
3004
|
+
var n2 = ai(), r2 = Ya(), i2 = G(), a2 = ui(), o2 = 1 / 0, s2 = n2 ? n2.prototype : void 0, c2 = s2 ? s2.toString : void 0;
|
|
3005
3005
|
function l2(e3) {
|
|
3006
3006
|
if (typeof e3 == `string`) return e3;
|
|
3007
3007
|
if (i2(e3)) return r2(e3, l2) + ``;
|
|
@@ -3011,22 +3011,22 @@ var Ya = g((e2, t2) => {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
t2.exports = l2;
|
|
3013
3013
|
});
|
|
3014
|
-
var
|
|
3015
|
-
var n2 =
|
|
3014
|
+
var Za = g((e2, t2) => {
|
|
3015
|
+
var n2 = Xa();
|
|
3016
3016
|
function r2(e3) {
|
|
3017
3017
|
return e3 == null ? `` : n2(e3);
|
|
3018
3018
|
}
|
|
3019
3019
|
t2.exports = r2;
|
|
3020
3020
|
});
|
|
3021
|
-
var
|
|
3022
|
-
var n2 =
|
|
3021
|
+
var Qa = g((e2, t2) => {
|
|
3022
|
+
var n2 = G(), r2 = Ga(), i2 = Ja(), a2 = Za();
|
|
3023
3023
|
function o2(e3, t3) {
|
|
3024
3024
|
return n2(e3) ? e3 : r2(e3, t3) ? [e3] : i2(a2(e3));
|
|
3025
3025
|
}
|
|
3026
3026
|
t2.exports = o2;
|
|
3027
3027
|
});
|
|
3028
|
-
var
|
|
3029
|
-
var n2 =
|
|
3028
|
+
var $a = g((e2, t2) => {
|
|
3029
|
+
var n2 = ui(), r2 = 1 / 0;
|
|
3030
3030
|
function i2(e3) {
|
|
3031
3031
|
if (typeof e3 == `string` || n2(e3)) return e3;
|
|
3032
3032
|
var t3 = e3 + ``;
|
|
@@ -3034,8 +3034,8 @@ var Qa = g((e2, t2) => {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
t2.exports = i2;
|
|
3036
3036
|
});
|
|
3037
|
-
var
|
|
3038
|
-
var n2 =
|
|
3037
|
+
var eo = g((e2, t2) => {
|
|
3038
|
+
var n2 = Qa(), r2 = $a();
|
|
3039
3039
|
function i2(e3, t3) {
|
|
3040
3040
|
t3 = n2(t3, e3);
|
|
3041
3041
|
for (var i3 = 0, a2 = t3.length; e3 != null && i3 < a2; ) e3 = e3[r2(t3[i3++])];
|
|
@@ -3043,22 +3043,22 @@ var $a = g((e2, t2) => {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
t2.exports = i2;
|
|
3045
3045
|
});
|
|
3046
|
-
var
|
|
3047
|
-
var n2 =
|
|
3046
|
+
var to = g((e2, t2) => {
|
|
3047
|
+
var n2 = eo();
|
|
3048
3048
|
function r2(e3, t3, r3) {
|
|
3049
3049
|
var i2 = e3 == null ? void 0 : n2(e3, t3);
|
|
3050
3050
|
return i2 === void 0 ? r3 : i2;
|
|
3051
3051
|
}
|
|
3052
3052
|
t2.exports = r2;
|
|
3053
3053
|
});
|
|
3054
|
-
var
|
|
3054
|
+
var no = g((e2, t2) => {
|
|
3055
3055
|
function n2(e3, t3) {
|
|
3056
3056
|
return e3 != null && t3 in Object(e3);
|
|
3057
3057
|
}
|
|
3058
3058
|
t2.exports = n2;
|
|
3059
3059
|
});
|
|
3060
|
-
var
|
|
3061
|
-
var n2 =
|
|
3060
|
+
var ro = g((e2, t2) => {
|
|
3061
|
+
var n2 = Qa(), r2 = ha(), i2 = G(), a2 = va(), o2 = ya(), s2 = $a();
|
|
3062
3062
|
function c2(e3, t3, c3) {
|
|
3063
3063
|
t3 = n2(t3, e3);
|
|
3064
3064
|
for (var l2 = -1, u2 = t3.length, d2 = false; ++l2 < u2; ) {
|
|
@@ -3070,15 +3070,15 @@ var no = g((e2, t2) => {
|
|
|
3070
3070
|
}
|
|
3071
3071
|
t2.exports = c2;
|
|
3072
3072
|
});
|
|
3073
|
-
var
|
|
3074
|
-
var n2 =
|
|
3073
|
+
var io = g((e2, t2) => {
|
|
3074
|
+
var n2 = no(), r2 = ro();
|
|
3075
3075
|
function i2(e3, t3) {
|
|
3076
3076
|
return e3 != null && r2(e3, t3, n2);
|
|
3077
3077
|
}
|
|
3078
3078
|
t2.exports = i2;
|
|
3079
3079
|
});
|
|
3080
|
-
var
|
|
3081
|
-
var n2 =
|
|
3080
|
+
var ao = g((e2, t2) => {
|
|
3081
|
+
var n2 = za(), r2 = to(), i2 = io(), a2 = Ga(), o2 = Va(), s2 = Ua(), c2 = $a(), l2 = 1, u2 = 2;
|
|
3082
3082
|
function d2(e3, t3) {
|
|
3083
3083
|
return a2(e3) && o2(t3) ? s2(c2(e3), t3) : function(a3) {
|
|
3084
3084
|
var o3 = r2(a3, e3);
|
|
@@ -3087,7 +3087,7 @@ var io = g((e2, t2) => {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
t2.exports = d2;
|
|
3089
3089
|
});
|
|
3090
|
-
var
|
|
3090
|
+
var oo = g((e2, t2) => {
|
|
3091
3091
|
function n2(e3) {
|
|
3092
3092
|
return function(t3) {
|
|
3093
3093
|
return t3?.[e3];
|
|
@@ -3095,8 +3095,8 @@ var ao = g((e2, t2) => {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
t2.exports = n2;
|
|
3097
3097
|
});
|
|
3098
|
-
var
|
|
3099
|
-
var n2 =
|
|
3098
|
+
var so = g((e2, t2) => {
|
|
3099
|
+
var n2 = eo();
|
|
3100
3100
|
function r2(e3) {
|
|
3101
3101
|
return function(t3) {
|
|
3102
3102
|
return n2(t3, e3);
|
|
@@ -3104,107 +3104,107 @@ var oo = g((e2, t2) => {
|
|
|
3104
3104
|
}
|
|
3105
3105
|
t2.exports = r2;
|
|
3106
3106
|
});
|
|
3107
|
-
var
|
|
3108
|
-
var n2 =
|
|
3107
|
+
var co = g((e2, t2) => {
|
|
3108
|
+
var n2 = oo(), r2 = so(), i2 = Ga(), a2 = $a();
|
|
3109
3109
|
function o2(e3) {
|
|
3110
3110
|
return i2(e3) ? n2(a2(e3)) : r2(e3);
|
|
3111
3111
|
}
|
|
3112
3112
|
t2.exports = o2;
|
|
3113
3113
|
});
|
|
3114
|
-
var
|
|
3115
|
-
var n2 =
|
|
3114
|
+
var lo = g((e2, t2) => {
|
|
3115
|
+
var n2 = Wa(), r2 = ao(), i2 = pi(), a2 = G(), o2 = co();
|
|
3116
3116
|
function s2(e3) {
|
|
3117
3117
|
return typeof e3 == `function` ? e3 : e3 == null ? i2 : typeof e3 == `object` ? a2(e3) ? r2(e3[0], e3[1]) : n2(e3) : o2(e3);
|
|
3118
3118
|
}
|
|
3119
3119
|
t2.exports = s2;
|
|
3120
3120
|
});
|
|
3121
|
-
var
|
|
3122
|
-
var n2 =
|
|
3121
|
+
var uo = g((e2, t2) => {
|
|
3122
|
+
var n2 = di(), r2 = fi(), i2 = lo();
|
|
3123
3123
|
function a2(e3, t3) {
|
|
3124
3124
|
return e3 && e3.length ? n2(e3, i2(t3, 2), r2) : void 0;
|
|
3125
3125
|
}
|
|
3126
3126
|
t2.exports = a2;
|
|
3127
3127
|
});
|
|
3128
|
-
var
|
|
3128
|
+
var fo = g((e2, t2) => {
|
|
3129
3129
|
function n2(e3, t3) {
|
|
3130
3130
|
return e3 < t3;
|
|
3131
3131
|
}
|
|
3132
3132
|
t2.exports = n2;
|
|
3133
3133
|
});
|
|
3134
|
-
var
|
|
3135
|
-
var n2 =
|
|
3134
|
+
var po = g((e2, t2) => {
|
|
3135
|
+
var n2 = di(), r2 = fo(), i2 = pi();
|
|
3136
3136
|
function a2(e3) {
|
|
3137
3137
|
return e3 && e3.length ? n2(e3, i2, r2) : void 0;
|
|
3138
3138
|
}
|
|
3139
3139
|
t2.exports = a2;
|
|
3140
3140
|
});
|
|
3141
|
-
var
|
|
3142
|
-
var n2 =
|
|
3141
|
+
var mo = g((e2, t2) => {
|
|
3142
|
+
var n2 = di(), r2 = lo(), i2 = fo();
|
|
3143
3143
|
function a2(e3, t3) {
|
|
3144
3144
|
return e3 && e3.length ? n2(e3, r2(t3, 2), i2) : void 0;
|
|
3145
3145
|
}
|
|
3146
3146
|
t2.exports = a2;
|
|
3147
3147
|
});
|
|
3148
|
-
var
|
|
3149
|
-
var
|
|
3150
|
-
var go = v(fo(), 1);
|
|
3148
|
+
var ho = v(mi(), 1);
|
|
3149
|
+
var go = v(uo(), 1);
|
|
3151
3150
|
var _o = v(po(), 1);
|
|
3152
|
-
var vo = (
|
|
3153
|
-
|
|
3151
|
+
var vo = v(mo(), 1);
|
|
3152
|
+
var yo = ({ price: e2 }) => e2.actualPrice;
|
|
3153
|
+
function K(e2) {
|
|
3154
3154
|
return e2.priceAfterDiscount === void 0 ? { currentSellingPrice: e2.actualPrice, priceBeforeDiscount: e2.compareAtPrice, pricePerUnit: e2.pricePerUnit } : { currentSellingPrice: e2.priceAfterDiscount, priceBeforeDiscount: e2.actualPrice, pricePerUnit: e2.pricePerUnit };
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function bo(e2, t2) {
|
|
3157
3157
|
let n2 = e2.subscriptionPrices.find((e3) => e3.subscriptionId === t2);
|
|
3158
3158
|
if (!n2) throw Error(`Missing subscription price for plan ${t2} on variant ${e2.id}`);
|
|
3159
3159
|
let r2 = n2.price;
|
|
3160
3160
|
return { currentSellingPrice: r2, priceBeforeDiscount: r2 < e2.price.actualPrice ? e2.price.actualPrice : void 0 };
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3163
|
-
let t2 = (0,
|
|
3164
|
-
return { minCurrentSellingPrice: i2.currentSellingPrice, maxCurrentSellingPrice: a2.currentSellingPrice, minPriceBeforeDiscount: (0,
|
|
3162
|
+
function xo(e2) {
|
|
3163
|
+
let t2 = (0, vo.default)(e2, yo), n2 = (0, go.default)(e2, yo), r2 = e2.map(({ price: e3 }) => K(e3)), i2 = K(t2.price), a2 = K(n2.price), o2 = r2.flatMap(({ priceBeforeDiscount: e3 }) => e3 === void 0 ? [] : [e3]);
|
|
3164
|
+
return { minCurrentSellingPrice: i2.currentSellingPrice, maxCurrentSellingPrice: a2.currentSellingPrice, minPriceBeforeDiscount: (0, _o.default)(o2), maxPriceBeforeDiscount: (0, ho.default)(o2), minPricePerUnit: i2.pricePerUnit, maxPricePerUnit: a2.pricePerUnit };
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3167
|
-
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price:
|
|
3166
|
+
function So(e2, t2) {
|
|
3167
|
+
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: bo(t2, e3.id) }));
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function Co(e2) {
|
|
3170
3170
|
return { productPrice: { currentSellingPrice: void 0 }, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: { currentSellingPrice: void 0 } })), productPriceRange: { minCurrentSellingPrice: void 0, maxCurrentSellingPrice: void 0 } };
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3173
|
-
if (!e2.minPriceVariant) return
|
|
3174
|
-
let t2 =
|
|
3172
|
+
function wo(e2) {
|
|
3173
|
+
if (!e2.minPriceVariant) return Co(e2);
|
|
3174
|
+
let t2 = K(e2.minPriceVariant.price), n2 = e2.minPriceVariant.price.priceAfterDiscount !== void 0;
|
|
3175
3175
|
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 } };
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3178
|
-
if (!n2) return
|
|
3179
|
-
let r2 = (0,
|
|
3180
|
-
return i2 ? { productPrice:
|
|
3177
|
+
function To(e2, t2, n2) {
|
|
3178
|
+
if (!n2) return wo(e2);
|
|
3179
|
+
let r2 = (0, vo.default)(e2.variants, yo), i2 = t2 ?? r2;
|
|
3180
|
+
return i2 ? { productPrice: K(i2.price), subscriptionPlanPrices: So(e2, i2), productPriceRange: xo(e2.variants) } : Co(e2);
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function Eo(e2, t2) {
|
|
3183
3183
|
let n2 = e2.subscriptionPlanPrices.find(({ subscription: e3 }) => e3.id === t2);
|
|
3184
3184
|
return n2 ? { currentSellingPrice: n2.price.currentSellingPrice, priceBeforeDiscount: n2.price.priceBeforeDiscount, pricePerUnit: e2.productPrice.pricePerUnit } : e2.productPrice;
|
|
3185
3185
|
}
|
|
3186
|
-
function Eo(e2) {
|
|
3187
|
-
return q(e2.price).currentSellingPrice;
|
|
3188
|
-
}
|
|
3189
3186
|
function Do(e2) {
|
|
3190
|
-
return
|
|
3187
|
+
return K(e2.price).currentSellingPrice;
|
|
3191
3188
|
}
|
|
3192
3189
|
function Oo(e2) {
|
|
3193
|
-
return Object.keys(e2).length === 1 && `$
|
|
3190
|
+
return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
|
|
3194
3191
|
}
|
|
3195
3192
|
function ko(e2) {
|
|
3193
|
+
return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
|
|
3194
|
+
}
|
|
3195
|
+
function Ao(e2) {
|
|
3196
3196
|
return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3199
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...
|
|
3198
|
+
function q(e2, t2) {
|
|
3199
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...Oo(e2) ? e2.$and : [e2], ...Oo(t2) ? t2.$and : [t2]] };
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3202
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...
|
|
3201
|
+
function jo(e2, t2) {
|
|
3202
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...ko(e2) ? e2.$or : [e2], ...ko(t2) ? t2.$or : [t2]] };
|
|
3203
3203
|
}
|
|
3204
|
-
function
|
|
3205
|
-
if (e2 !== void 0 && Object.keys(e2).length !== 0) return
|
|
3204
|
+
function Mo(e2) {
|
|
3205
|
+
if (e2 !== void 0 && Object.keys(e2).length !== 0) return Ao(e2) ? e2.$not : { $not: e2 };
|
|
3206
3206
|
}
|
|
3207
|
-
var
|
|
3207
|
+
var No = class {
|
|
3208
3208
|
_items;
|
|
3209
3209
|
_fetchNextPage;
|
|
3210
3210
|
_fetchPrevPage;
|
|
@@ -3234,7 +3234,7 @@ var Mo = class {
|
|
|
3234
3234
|
return await this._fetchPrevPage();
|
|
3235
3235
|
}
|
|
3236
3236
|
};
|
|
3237
|
-
var
|
|
3237
|
+
var Po = class extends No {
|
|
3238
3238
|
_nextCursor;
|
|
3239
3239
|
_prevCursor;
|
|
3240
3240
|
cursors;
|
|
@@ -3248,7 +3248,7 @@ var No = class extends Mo {
|
|
|
3248
3248
|
return !!this._prevCursor;
|
|
3249
3249
|
}
|
|
3250
3250
|
};
|
|
3251
|
-
var
|
|
3251
|
+
var Fo = class extends No {
|
|
3252
3252
|
_totalCount;
|
|
3253
3253
|
_offset;
|
|
3254
3254
|
_tooManyToCount;
|
|
@@ -3271,76 +3271,76 @@ var Po = class extends Mo {
|
|
|
3271
3271
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
3272
3272
|
}
|
|
3273
3273
|
};
|
|
3274
|
-
function
|
|
3274
|
+
function Io(e2) {
|
|
3275
3275
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
3276
3276
|
try {
|
|
3277
3277
|
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);
|
|
3278
3278
|
if (e2.pagingMethod === `OFFSET`) {
|
|
3279
3279
|
let e3 = n2;
|
|
3280
|
-
return new
|
|
3280
|
+
return new Fo({ items: a2 ?? [], fetchNextPage: () => t2({ ...e3, paging: { offset: e3.paging.offset + e3.paging.limit, limit: e3.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e3.paging.offset - e3.paging.limit, 0), limit: e3.paging.limit } }).find(), offset: e3.paging.offset, limit: e3.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
|
|
3281
3281
|
}
|
|
3282
3282
|
let s2 = n2.cursorPaging;
|
|
3283
|
-
return new
|
|
3283
|
+
return new Po({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
|
|
3284
3284
|
} catch (t3) {
|
|
3285
3285
|
throw e2.errorTransformer(t3);
|
|
3286
3286
|
}
|
|
3287
3287
|
}, skipTo(e3) {
|
|
3288
3288
|
return t2({ ...n2, cursorPaging: { cursor: e3, limit: n2.cursorPaging.limit } });
|
|
3289
3289
|
}, eq(r2, i2) {
|
|
3290
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3291
|
-
return t2({ ...n2, filter:
|
|
3290
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [J(e2.transformationPaths, r2)]: a2 };
|
|
3291
|
+
return t2({ ...n2, filter: q(n2.filter, o2) });
|
|
3292
3292
|
}, ne(r2, i2) {
|
|
3293
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3294
|
-
return t2({ ...n2, filter:
|
|
3293
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [J(e2.transformationPaths, r2)]: { $ne: a2 } };
|
|
3294
|
+
return t2({ ...n2, filter: q(n2.filter, o2) });
|
|
3295
3295
|
}, ge(r2, i2) {
|
|
3296
|
-
let a2 = { [
|
|
3297
|
-
return t2({ ...n2, filter:
|
|
3296
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $gte: i2 } };
|
|
3297
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3298
3298
|
}, gt(r2, i2) {
|
|
3299
|
-
let a2 = { [
|
|
3300
|
-
return t2({ ...n2, filter:
|
|
3299
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $gt: i2 } };
|
|
3300
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3301
3301
|
}, le(r2, i2) {
|
|
3302
|
-
let a2 = { [
|
|
3303
|
-
return t2({ ...n2, filter:
|
|
3302
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $lte: i2 } };
|
|
3303
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3304
3304
|
}, lt(r2, i2) {
|
|
3305
|
-
let a2 = { [
|
|
3306
|
-
return t2({ ...n2, filter:
|
|
3305
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $lt: i2 } };
|
|
3306
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3307
3307
|
}, isNotEmpty(e3) {
|
|
3308
3308
|
return this.ne(e3, null);
|
|
3309
3309
|
}, isEmpty(e3) {
|
|
3310
3310
|
return this.eq(e3, null);
|
|
3311
3311
|
}, startsWith(r2, i2) {
|
|
3312
|
-
let a2 = { [
|
|
3313
|
-
return t2({ ...n2, filter:
|
|
3312
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
3313
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3314
3314
|
}, endsWith(r2, i2) {
|
|
3315
|
-
let a2 = { [
|
|
3316
|
-
return t2({ ...n2, filter:
|
|
3315
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
3316
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3317
3317
|
}, contains(r2, i2) {
|
|
3318
|
-
let a2 = { [
|
|
3319
|
-
return t2({ ...n2, filter:
|
|
3318
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $contains: i2 } };
|
|
3319
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3320
3320
|
}, hasSome(r2, ...i2) {
|
|
3321
|
-
let a2 = { [
|
|
3322
|
-
return t2({ ...n2, filter:
|
|
3321
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3322
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3323
3323
|
}, hasAll(r2, ...i2) {
|
|
3324
|
-
let a2 = { [
|
|
3325
|
-
return t2({ ...n2, filter:
|
|
3324
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3325
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3326
3326
|
}, between(e3, t3, n3) {
|
|
3327
3327
|
return this.ge(e3, t3).lt(e3, n3);
|
|
3328
3328
|
}, in(r2, i2) {
|
|
3329
|
-
let a2 = { [
|
|
3330
|
-
return t2({ ...n2, filter:
|
|
3329
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $in: i2 } };
|
|
3330
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3331
3331
|
}, exists(r2, i2 = true) {
|
|
3332
|
-
let a2 = { [
|
|
3333
|
-
return t2({ ...n2, filter:
|
|
3332
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $exists: i2 } };
|
|
3333
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3334
3334
|
}, or(e3) {
|
|
3335
|
-
return t2({ ...n2, filter:
|
|
3335
|
+
return t2({ ...n2, filter: jo(n2.filter, e3.query.filter) });
|
|
3336
3336
|
}, and(e3) {
|
|
3337
|
-
return t2({ ...n2, filter:
|
|
3337
|
+
return t2({ ...n2, filter: q(n2.filter, e3.query.filter) });
|
|
3338
3338
|
}, not(e3) {
|
|
3339
|
-
return t2({ ...n2, filter:
|
|
3339
|
+
return t2({ ...n2, filter: Mo(e3.query.filter) });
|
|
3340
3340
|
}, ascending(...r2) {
|
|
3341
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3341
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e2.transformationPaths, t3), order: `ASC` }))] });
|
|
3342
3342
|
}, descending(...r2) {
|
|
3343
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3343
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e2.transformationPaths, t3), order: `DESC` }))] });
|
|
3344
3344
|
}, skip(e3) {
|
|
3345
3345
|
return t2({ ...n2, paging: { offset: e3, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
3346
3346
|
}, limit(r2) {
|
|
@@ -3353,23 +3353,23 @@ function Fo(e2) {
|
|
|
3353
3353
|
} });
|
|
3354
3354
|
return t2({ filter: {}, ...e2.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3356
|
+
function J(e2, t2) {
|
|
3357
3357
|
let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
|
|
3358
3358
|
return n2 ? t2.replace(n2, e2[n2]) : Qe(t2, { ...e2, ...Ze });
|
|
3359
3359
|
}
|
|
3360
|
-
function
|
|
3361
|
-
let r2 = (r3, i3) =>
|
|
3360
|
+
function Lo(e2, t2, n2 = {}) {
|
|
3361
|
+
let r2 = (r3, i3) => Lo(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [$e(e2, t2)]: n2 };
|
|
3362
3362
|
return { get filter() {
|
|
3363
3363
|
return i2();
|
|
3364
3364
|
}, 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) };
|
|
3365
3365
|
}
|
|
3366
|
-
function Lo(e2) {
|
|
3367
|
-
return Object.assign((t2) => Io(t2, e2), { and: (...e3) => ({ filter: { $and: e3.map((e4) => e4.filter) } }), or: (...e3) => ({ filter: { $or: e3.map((e4) => e4.filter) } }), not: (e3) => ({ filter: { $not: e3.filter } }) });
|
|
3368
|
-
}
|
|
3369
3366
|
function Ro(e2) {
|
|
3370
|
-
return (t2) => ({
|
|
3367
|
+
return Object.assign((t2) => Lo(t2, e2), { and: (...e3) => ({ filter: { $and: e3.map((e4) => e4.filter) } }), or: (...e3) => ({ filter: { $or: e3.map((e4) => e4.filter) } }), not: (e3) => ({ filter: { $not: e3.filter } }) });
|
|
3371
3368
|
}
|
|
3372
3369
|
function zo(e2) {
|
|
3370
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: $e(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: $e(t2, e2), order: `DESC` } }) });
|
|
3371
|
+
}
|
|
3372
|
+
function Bo(e2) {
|
|
3373
3373
|
return () => {
|
|
3374
3374
|
let t2 = {}, n2 = { withFilter(e3) {
|
|
3375
3375
|
return t2 = { ...t2, filter: e3.filter }, n2;
|
|
@@ -3385,58 +3385,58 @@ function zo(e2) {
|
|
|
3385
3385
|
return n2;
|
|
3386
3386
|
};
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3389
|
-
return { QueryBuilder:
|
|
3390
|
-
}
|
|
3391
|
-
var Vo = `filter`;
|
|
3392
|
-
var Ho = `sort`;
|
|
3393
|
-
var Uo = `cursorPaging`;
|
|
3394
|
-
var Wo = `paging`;
|
|
3395
|
-
var Go = [Vo, Ho, Uo];
|
|
3396
|
-
var Ko = [Vo, Ho, Wo];
|
|
3397
|
-
function qo(e2, t2) {
|
|
3398
|
-
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
3388
|
+
function Vo(e2) {
|
|
3389
|
+
return { QueryBuilder: Bo(e2), Filter: Ro(e2), Sort: zo(e2) };
|
|
3399
3390
|
}
|
|
3400
|
-
|
|
3401
|
-
|
|
3391
|
+
var Ho = `filter`;
|
|
3392
|
+
var Uo = `sort`;
|
|
3393
|
+
var Wo = `cursorPaging`;
|
|
3394
|
+
var Go = `paging`;
|
|
3395
|
+
var Ko = [Ho, Uo, Wo];
|
|
3396
|
+
var qo = [Ho, Uo, Go];
|
|
3397
|
+
function Jo(e2, t2) {
|
|
3398
|
+
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
3402
3399
|
}
|
|
3403
3400
|
function Yo(e2) {
|
|
3404
|
-
return
|
|
3401
|
+
return Jo(e2, Ko);
|
|
3405
3402
|
}
|
|
3406
3403
|
function Xo(e2) {
|
|
3404
|
+
return Jo(e2, qo);
|
|
3405
|
+
}
|
|
3406
|
+
function Zo(e2) {
|
|
3407
3407
|
let { hasOptionsParameter: t2 } = e2;
|
|
3408
3408
|
return function(...n2) {
|
|
3409
|
-
return t2 ?
|
|
3409
|
+
return t2 ? $o(n2, e2) : Qo(n2, e2);
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
|
-
function
|
|
3412
|
+
function Qo(e2, t2) {
|
|
3413
3413
|
return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function $o(e2, t2) {
|
|
3416
3416
|
switch (e2.length) {
|
|
3417
3417
|
case 0:
|
|
3418
3418
|
return t2.builderQueryFunction();
|
|
3419
3419
|
case 1:
|
|
3420
|
-
return
|
|
3420
|
+
return Yo(e2[0]) || Xo(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
|
|
3421
3421
|
default:
|
|
3422
3422
|
return t2.typedQueryFunction(e2[0], e2[1]);
|
|
3423
3423
|
}
|
|
3424
3424
|
}
|
|
3425
|
-
function
|
|
3425
|
+
function es(e2) {
|
|
3426
3426
|
if (!e2) return;
|
|
3427
|
-
let t2 =
|
|
3427
|
+
let t2 = vt(e2, `image`), { protocol: n2, hash: r2, pathname: i2 } = new URL(t2), a2 = new URLSearchParams(r2.replace(`#`, ``)), o2 = a2.get(`originHeight`), s2 = a2.get(`originWidth`), [c2, l2] = i2.replace(`image://v1/`, ``).split(`/`), u2 = l2 && decodeURIComponent(l2);
|
|
3428
3428
|
if (n2 === `wix:`) {
|
|
3429
3429
|
let t3 = { id: c2, height: Number(o2), width: Number(s2) };
|
|
3430
3430
|
return u2 ? { ...t3, altText: u2, filename: u2, url: e2 } : t3;
|
|
3431
3431
|
}
|
|
3432
3432
|
return { url: e2 };
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function ts(e2) {
|
|
3435
3435
|
if (!e2) return;
|
|
3436
3436
|
let t2 = ``;
|
|
3437
3437
|
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;
|
|
3438
3438
|
}
|
|
3439
|
-
function
|
|
3439
|
+
function ns(e2) {
|
|
3440
3440
|
let t2 = {}, n2 = { get search() {
|
|
3441
3441
|
return t2;
|
|
3442
3442
|
}, expression(e3) {
|
|
@@ -3450,13 +3450,13 @@ function ts(e2) {
|
|
|
3450
3450
|
} };
|
|
3451
3451
|
return n2;
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function rs(e2) {
|
|
3454
3454
|
return (t2) => {
|
|
3455
|
-
let n2 =
|
|
3455
|
+
let n2 = ns(e2);
|
|
3456
3456
|
return t2 === void 0 ? n2 : n2.expression(t2);
|
|
3457
3457
|
};
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function is(e2) {
|
|
3460
3460
|
let t2 = { ...e2, type: `VALUE`, value: { ...e2.value } }, n2 = { get aggregation() {
|
|
3461
3461
|
return t2;
|
|
3462
3462
|
}, sortBy(e3, r2) {
|
|
@@ -3472,7 +3472,7 @@ function rs(e2) {
|
|
|
3472
3472
|
} };
|
|
3473
3473
|
return n2;
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3475
|
+
function as(e2) {
|
|
3476
3476
|
let t2 = { ...e2, type: `RANGE`, range: { buckets: [] } }, n2 = { get aggregation() {
|
|
3477
3477
|
return t2;
|
|
3478
3478
|
}, withBuckets(...e3) {
|
|
@@ -3480,7 +3480,7 @@ function is(e2) {
|
|
|
3480
3480
|
} };
|
|
3481
3481
|
return n2;
|
|
3482
3482
|
}
|
|
3483
|
-
function
|
|
3483
|
+
function os(e2) {
|
|
3484
3484
|
let t2 = { ...e2, type: `DATE_HISTOGRAM`, dateHistogram: {} }, n2 = { get aggregation() {
|
|
3485
3485
|
return t2;
|
|
3486
3486
|
}, interval(e3) {
|
|
@@ -3488,7 +3488,7 @@ function as(e2) {
|
|
|
3488
3488
|
} };
|
|
3489
3489
|
return n2;
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3491
|
+
function ss(e2) {
|
|
3492
3492
|
let t2 = { ...e2, type: `SCALAR`, scalar: {} }, n2 = { get aggregation() {
|
|
3493
3493
|
return t2;
|
|
3494
3494
|
}, type(e3) {
|
|
@@ -3496,7 +3496,7 @@ function os(e2) {
|
|
|
3496
3496
|
} };
|
|
3497
3497
|
return n2;
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function cs(e2) {
|
|
3500
3500
|
let t2 = { ...e2, type: `NESTED`, nested: { nestedAggregations: [] } }, n2 = { get aggregation() {
|
|
3501
3501
|
return t2;
|
|
3502
3502
|
}, addNestedAggregation(e3) {
|
|
@@ -3505,7 +3505,7 @@ function ss(e2) {
|
|
|
3505
3505
|
} };
|
|
3506
3506
|
return n2;
|
|
3507
3507
|
}
|
|
3508
|
-
function
|
|
3508
|
+
function ls(e2, t2) {
|
|
3509
3509
|
let n2 = { name: e2 }, r2 = { get aggregation() {
|
|
3510
3510
|
return n2;
|
|
3511
3511
|
}, ofType(e3) {
|
|
@@ -3513,22 +3513,22 @@ function cs(e2, t2) {
|
|
|
3513
3513
|
}, onField(e3) {
|
|
3514
3514
|
return n2 = { ...n2, fieldPath: $e(e3, t2) }, r2;
|
|
3515
3515
|
}, asValueAggregation() {
|
|
3516
|
-
return rs(n2);
|
|
3517
|
-
}, asRangeAggregation() {
|
|
3518
3516
|
return is(n2);
|
|
3519
|
-
},
|
|
3517
|
+
}, asRangeAggregation() {
|
|
3520
3518
|
return as(n2);
|
|
3521
|
-
},
|
|
3519
|
+
}, asDateHistogramAggregation() {
|
|
3522
3520
|
return os(n2);
|
|
3523
|
-
},
|
|
3521
|
+
}, asScalarAggregation() {
|
|
3524
3522
|
return ss(n2);
|
|
3523
|
+
}, asNestedAggregation() {
|
|
3524
|
+
return cs(n2);
|
|
3525
3525
|
} };
|
|
3526
3526
|
return r2;
|
|
3527
3527
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return (t2) =>
|
|
3528
|
+
function us(e2) {
|
|
3529
|
+
return (t2) => ls(t2, e2);
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3531
|
+
function ds() {
|
|
3532
3532
|
return () => {
|
|
3533
3533
|
let e2 = {}, t2 = { withFilter(n2) {
|
|
3534
3534
|
return e2 = { ...e2, filter: n2.filter }, t2;
|
|
@@ -3548,158 +3548,158 @@ function us() {
|
|
|
3548
3548
|
return t2;
|
|
3549
3549
|
};
|
|
3550
3550
|
}
|
|
3551
|
-
function ds(e2) {
|
|
3552
|
-
return { SearchBuilder: us(), Filter: Lo(e2), Sort: Ro(e2), SearchParams: ns(e2), Aggregation: ls(e2) };
|
|
3553
|
-
}
|
|
3554
3551
|
function fs(e2) {
|
|
3555
|
-
return
|
|
3552
|
+
return { SearchBuilder: ds(), Filter: Ro(e2), Sort: zo(e2), SearchParams: rs(e2), Aggregation: us(e2) };
|
|
3556
3553
|
}
|
|
3557
|
-
|
|
3558
|
-
|
|
3554
|
+
function ps(e2) {
|
|
3555
|
+
return Ht(Object.assign(e2, { domainToMappings: { "bo._base_domain_": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wixbo.ai": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wix-bo.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], _: [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }], "*.dev.wix-code.com": [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }] } }));
|
|
3556
|
+
}
|
|
3557
|
+
var ms = `@wix/auto_sdk_ecom_back-in-stock-notifications`;
|
|
3558
|
+
function hs(e2) {
|
|
3559
3559
|
function t2({ host: t3 }) {
|
|
3560
|
-
let n2 =
|
|
3561
|
-
return { entityFqdn: `wix.ecom.v1.back_in_stock_notification_request`, method: `POST`, methodFqn: `com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest`, packageName:
|
|
3560
|
+
let n2 = N(e2, [{ transformFn: at, paths: [{ path: `request.createdDate` }, { path: `itemDetails.image.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `itemDetails.image.focalPoint.x` }, { path: `itemDetails.image.focalPoint.y` }] }]);
|
|
3561
|
+
return { entityFqdn: `wix.ecom.v1.back_in_stock_notification_request`, method: `POST`, methodFqn: `com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest`, packageName: ms, migrationOptions: { optInTransformResponse: true }, url: ps({ protoPath: `/v1/back-in-stock-notification-requests`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `request.createdDate` }] }]) };
|
|
3562
3562
|
}
|
|
3563
3563
|
return t2;
|
|
3564
3564
|
}
|
|
3565
|
-
async function
|
|
3566
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
3565
|
+
async function gs(e2, t2) {
|
|
3566
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = hs(N(it({ request: e2, itemDetails: t2 }), [{ transformFn: es, paths: [{ path: `itemDetails.image` }] }]));
|
|
3567
3567
|
r2?.onSiteCall?.();
|
|
3568
3568
|
try {
|
|
3569
3569
|
let e3 = await n2.request(i2);
|
|
3570
|
-
return r2?.onSuccess?.(e3),
|
|
3570
|
+
return r2?.onSuccess?.(e3), j(e3.data)?.request;
|
|
3571
3571
|
} catch (e3) {
|
|
3572
|
-
let t3 =
|
|
3572
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { request: `$[0]`, itemDetails: `$[1]` }, singleArgumentUnchanged: false }, [`request`, `itemDetails`]);
|
|
3573
3573
|
throw r2?.onError?.(e3), t3;
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
({ ...
|
|
3577
|
-
function
|
|
3578
|
-
return (t2, n2) =>
|
|
3576
|
+
({ ...Vo() });
|
|
3577
|
+
function _s(e2) {
|
|
3578
|
+
return (t2, n2) => gs(t2, n2, { httpClient: e2 });
|
|
3579
3579
|
}
|
|
3580
|
-
var
|
|
3581
|
-
var
|
|
3582
|
-
var
|
|
3583
|
-
var
|
|
3584
|
-
|
|
3585
|
-
function
|
|
3580
|
+
var vs = b(`wix.ecom.v1.back_in_stock_notification_request_created`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3581
|
+
var ys = b(`wix.ecom.v1.back_in_stock_notification_request_deleted`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `undefined.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3582
|
+
var bs = b(`wix.ecom.v1.back_in_stock_notification_request_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3583
|
+
var xs = Bt(_s);
|
|
3584
|
+
F(vs), F(ys), F(bs);
|
|
3585
|
+
function Ss(e2) {
|
|
3586
3586
|
if (!e2) return;
|
|
3587
3587
|
let { pathname: t2 } = new URL(e2);
|
|
3588
3588
|
return { relativePath: t2, url: e2 };
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3590
|
+
function Cs(e2) {
|
|
3591
3591
|
if (e2) return e2.url;
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return
|
|
3593
|
+
function ws(e2) {
|
|
3594
|
+
return Ht(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
3595
3595
|
}
|
|
3596
|
-
var
|
|
3597
|
-
function
|
|
3596
|
+
var Ts = `@wix/auto_sdk_ecom_cart-v-2`;
|
|
3597
|
+
function Es(e2) {
|
|
3598
3598
|
function t2({ host: t3 }) {
|
|
3599
|
-
let n2 =
|
|
3600
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName:
|
|
3599
|
+
let n2 = N(e2, [{ transformFn: at, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }, { path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }, { transformFn: hn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }, { path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }]);
|
|
3600
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName: Ts, migrationOptions: { optInTransformResponse: true }, url: ws({ protoPath: `/v2/carts`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: gn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }] }]) };
|
|
3601
3601
|
}
|
|
3602
3602
|
return t2;
|
|
3603
3603
|
}
|
|
3604
|
-
var
|
|
3605
|
-
async function
|
|
3606
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3604
|
+
var Ds = ((e2) => (e2.UNSPECIFIED = `UNSPECIFIED`, e2.WEB = `WEB`, e2.POS = `POS`, e2.EBAY = `EBAY`, e2.AMAZON = `AMAZON`, e2.OTHER_PLATFORM = `OTHER_PLATFORM`, e2.WIX_APP_STORE = `WIX_APP_STORE`, e2.WIX_INVOICES = `WIX_INVOICES`, e2.BACKOFFICE_MERCHANT = `BACKOFFICE_MERCHANT`, e2.WISH = `WISH`, e2.CLASS_PASS = `CLASS_PASS`, e2.GLOBAL_E = `GLOBAL_E`, e2.FACEBOOK = `FACEBOOK`, e2.ETSY = `ETSY`, e2.TIKTOK = `TIKTOK`, e2.FAIRE_COM = `FAIRE_COM`, e2.PAYPAL_AGENTIC_CHECKOUT = `PAYPAL_AGENTIC_CHECKOUT`, e2.STRIPE_AGENTIC_CHECKOUT = `STRIPE_AGENTIC_CHECKOUT`, e2.WIX_INVOICES_PLATFORM = `WIX_INVOICES_PLATFORM`, e2.UCP_AGENTIC_CHECKOUT = `UCP_AGENTIC_CHECKOUT`, e2))(Ds || {});
|
|
3605
|
+
async function Os(e2) {
|
|
3606
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Es(N(it({ cart: e2?.cart, catalogItems: e2?.catalogItems, customItems: e2?.customItems, coupons: e2?.coupons, deliveryMethod: e2?.deliveryMethod, giftCards: e2?.giftCards }), [{ transformFn: es, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }, { path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: Ss, paths: [{ path: `cart.lineItems.attributes.url` }, { path: `customItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3607
3607
|
n2?.onSiteCall?.();
|
|
3608
3608
|
try {
|
|
3609
3609
|
let e3 = await t2.request(r2);
|
|
3610
|
-
return n2?.onSuccess?.(e3),
|
|
3610
|
+
return n2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: ts, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: Cs, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: vn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]))?.cart;
|
|
3611
3611
|
} catch (e3) {
|
|
3612
|
-
let t3 =
|
|
3612
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { cart: `$[0].cart`, catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems`, coupons: `$[0].coupons`, deliveryMethod: `$[0].deliveryMethod`, giftCards: `$[0].giftCards` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3613
3613
|
throw n2?.onError?.(e3), t3;
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3617
|
-
return (t2) =>
|
|
3616
|
+
function ks(e2) {
|
|
3617
|
+
return (t2) => Os(t2, { httpClient: e2 });
|
|
3618
3618
|
}
|
|
3619
|
-
var
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3619
|
+
var As = Bt(ks);
|
|
3620
|
+
function js(e2) {
|
|
3621
|
+
return Ht(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
3622
3622
|
}
|
|
3623
|
-
var
|
|
3624
|
-
function
|
|
3623
|
+
var Ms = `@wix/auto_sdk_ecom_current-cart-v-2`;
|
|
3624
|
+
function Ns(e2) {
|
|
3625
3625
|
function t2({ host: t3 }) {
|
|
3626
|
-
let n2 =
|
|
3627
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName:
|
|
3626
|
+
let n2 = N(e2, [{ transformFn: hn, paths: [{ path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }, { transformFn: at, paths: [{ path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }]);
|
|
3627
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v2/carts/current/add-line-items`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: gn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }] }]) };
|
|
3628
3628
|
}
|
|
3629
3629
|
return t2;
|
|
3630
3630
|
}
|
|
3631
|
-
async function
|
|
3632
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3631
|
+
async function Ps(e2) {
|
|
3632
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ns(N(it({ catalogItems: e2?.catalogItems, customItems: e2?.customItems }), [{ transformFn: es, paths: [{ path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: Ss, paths: [{ path: `customItems.attributes.url` }] }]));
|
|
3633
3633
|
n2?.onSiteCall?.();
|
|
3634
3634
|
try {
|
|
3635
3635
|
let e3 = await t2.request(r2);
|
|
3636
|
-
return n2?.onSuccess?.(e3),
|
|
3636
|
+
return n2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: ts, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: Cs, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: vn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3637
3637
|
} catch (e3) {
|
|
3638
|
-
let t3 =
|
|
3638
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3639
3639
|
throw n2?.onError?.(e3), t3;
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
3642
|
-
function
|
|
3643
|
-
return (t2) =>
|
|
3642
|
+
function Fs(e2) {
|
|
3643
|
+
return (t2) => Ps(t2, { httpClient: e2 });
|
|
3644
3644
|
}
|
|
3645
|
-
var
|
|
3646
|
-
var
|
|
3647
|
-
function
|
|
3645
|
+
var Is = Bt(Fs);
|
|
3646
|
+
var Ls = `BACK_IN_STOCK_NOTIFICATION_REQUEST_ALREADY_EXISTS`;
|
|
3647
|
+
function Rs(e2) {
|
|
3648
3648
|
return e2?.details?.applicationError?.code ?? `UNKNOWN`;
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3651
|
-
return { code:
|
|
3650
|
+
function zs(e2) {
|
|
3651
|
+
return { code: Rs(e2), message: e2?.message };
|
|
3652
3652
|
}
|
|
3653
|
-
async function
|
|
3653
|
+
async function Bs(e2) {
|
|
3654
3654
|
let { productId: t2, variantId: n2, email: r2, name: i2, price: a2, imageUrl: o2 } = e2;
|
|
3655
3655
|
try {
|
|
3656
|
-
return await
|
|
3656
|
+
return await xs({ catalogReference: { catalogItemId: t2, appId: ei, ...n2 ? { options: { variantId: n2 } } : {} }, email: r2 }, { name: i2, price: String(a2), ...o2 ? { image: o2 } : {} }), `created`;
|
|
3657
3657
|
} catch (e3) {
|
|
3658
|
-
if (
|
|
3659
|
-
throw
|
|
3658
|
+
if (Rs(e3) === Ls) return `already-subscribed`;
|
|
3659
|
+
throw zs(e3);
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
|
-
var
|
|
3663
|
-
var
|
|
3664
|
-
function Hs(e2) {
|
|
3665
|
-
return e2 ? e2.match(Vs)?.[1] ?? null : null;
|
|
3666
|
-
}
|
|
3662
|
+
var Vs = `https://static.wixstatic.com/media`;
|
|
3663
|
+
var Hs = /image:\/\/v1\/([^/#]+)/;
|
|
3667
3664
|
function Us(e2) {
|
|
3665
|
+
return e2 ? e2.match(Hs)?.[1] ?? null : null;
|
|
3666
|
+
}
|
|
3667
|
+
function Ws(e2) {
|
|
3668
3668
|
if (!e2) return;
|
|
3669
3669
|
if (/^https?:\/\//i.test(e2)) return e2;
|
|
3670
|
-
let t2 =
|
|
3671
|
-
return t2 ? `${
|
|
3670
|
+
let t2 = Us(e2);
|
|
3671
|
+
return t2 ? `${Vs}/${t2}` : void 0;
|
|
3672
3672
|
}
|
|
3673
|
-
var
|
|
3674
|
-
function
|
|
3673
|
+
var Gs = (e2) => e2.media.type === `image`;
|
|
3674
|
+
function Ks(e2, t2) {
|
|
3675
3675
|
let n2 = t2.choices[e2.id];
|
|
3676
3676
|
return e2.choices.find((e3) => e3.choiceId === n2);
|
|
3677
3677
|
}
|
|
3678
|
-
function
|
|
3679
|
-
let n2 = e2.options.map((e3) =>
|
|
3678
|
+
function qs(e2, t2) {
|
|
3679
|
+
let n2 = e2.options.map((e3) => Ks(e3, t2)?.mediaIds).filter((e3) => !!(e3 && e3.length > 0));
|
|
3680
3680
|
if (n2.length === 0) return;
|
|
3681
3681
|
let r2 = n2.reduce((e3, t3) => e3.filter((e4) => t3.includes(e4))), i2 = r2.length > 0 ? r2 : n2.flat(), a2 = /* @__PURE__ */ new Map();
|
|
3682
|
-
for (let t3 of e2.media ?? [])
|
|
3682
|
+
for (let t3 of e2.media ?? []) Gs(t3) && a2.set(t3.id, t3);
|
|
3683
3683
|
for (let e3 of i2) {
|
|
3684
3684
|
let t3 = a2.get(e3)?.media.src;
|
|
3685
3685
|
if (t3) return t3;
|
|
3686
3686
|
}
|
|
3687
3687
|
}
|
|
3688
|
-
function
|
|
3689
|
-
let n2 = [t2 ?
|
|
3688
|
+
function Js(e2, t2) {
|
|
3689
|
+
let n2 = [t2 ? qs(e2, t2) : void 0, e2.media?.find(Gs)?.media.src];
|
|
3690
3690
|
for (let e3 of n2) {
|
|
3691
|
-
let t3 =
|
|
3691
|
+
let t3 = Ws(e3);
|
|
3692
3692
|
if (t3) return t3;
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
|
-
function
|
|
3696
|
-
let i2 = t((t2) => r2 ?
|
|
3695
|
+
function Ys(e2, r2) {
|
|
3696
|
+
let i2 = t((t2) => r2 ? Bs({ productId: e2.id, variantId: r2.id, email: t2, name: e2.name ?? ``, price: Do(r2), imageUrl: Js(e2, r2) }) : Promise.reject(Error(`Cannot create a back-in-stock notification without a selected variant`)), [e2, r2]);
|
|
3697
3697
|
return n(() => ({ handleNotifyMe: i2 }), [i2]);
|
|
3698
3698
|
}
|
|
3699
|
-
function
|
|
3699
|
+
function Xs(e2, t2) {
|
|
3700
3700
|
return n(() => ({ id: e2.id, name: e2.name, description: e2.description, ribbons: e2.ribbons, breadcrumbs: e2.breadcrumbs, mainCategoryId: e2.mainCategoryId, categories: e2.categories, infoSections: e2.infoSections, sku: t2?.sku, discountRules: e2.discountRuleNames?.map((e3) => ({ name: e3 })) }), [e2, t2]);
|
|
3701
3701
|
}
|
|
3702
|
-
function
|
|
3702
|
+
function Zs(e2) {
|
|
3703
3703
|
if (!e2) return;
|
|
3704
3704
|
let t2 = ``;
|
|
3705
3705
|
e2?.filename && (t2 = `/${encodeURIComponent(e2.filename)}`);
|
|
@@ -3714,21 +3714,21 @@ function Xs(e2) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
|
|
3716
3716
|
}
|
|
3717
|
-
function
|
|
3718
|
-
return
|
|
3717
|
+
function Qs(e2) {
|
|
3718
|
+
return Ht(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/inventory`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/inventory`, destPath: `` }], _: [{ srcPath: `/_api/inventory`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/inventory`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/inventory-items`, destPath: `/v3/inventory-items` }, { srcPath: `/stores/v3/bulk/inventory-items`, destPath: `/v3/bulk/inventory-items` }], "*.dev.wix-code.com": [{ srcPath: `/_api/inventory`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/inventory`, destPath: `` }] } }));
|
|
3719
3719
|
}
|
|
3720
|
-
var
|
|
3721
|
-
function
|
|
3720
|
+
var $s = `@wix/auto_sdk_stores_inventory-items-v-3`;
|
|
3721
|
+
function ec(e2) {
|
|
3722
3722
|
function t2({ host: t3 }) {
|
|
3723
|
-
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName:
|
|
3723
|
+
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName: $s, migrationOptions: { optInTransformResponse: true }, url: Qs({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), params: Vt(e2, true), transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `inventoryItems.createdDate` }, { path: `inventoryItems.updatedDate` }] }]), fallback: [{ method: `POST`, url: Qs({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), data: e2 }] };
|
|
3724
3724
|
}
|
|
3725
3725
|
return t2;
|
|
3726
3726
|
}
|
|
3727
|
-
var
|
|
3728
|
-
function
|
|
3727
|
+
var Y = ((e2) => (e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e2.IN_STOCK = `IN_STOCK`, e2.PREORDER = `PREORDER`, e2))(Y || {});
|
|
3728
|
+
function tc() {
|
|
3729
3729
|
let { httpClient: e2, sideEffects: t2 } = arguments[0];
|
|
3730
|
-
return
|
|
3731
|
-
let r2 =
|
|
3730
|
+
return Io({ func: async (n2) => {
|
|
3731
|
+
let r2 = ec(n2);
|
|
3732
3732
|
t2?.onSiteCall?.();
|
|
3733
3733
|
try {
|
|
3734
3734
|
let n3 = await e2.request(r2);
|
|
@@ -3738,297 +3738,305 @@ function ec() {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
}, requestTransformer: (e3) => {
|
|
3740
3740
|
let t3 = [e3, {}];
|
|
3741
|
-
return
|
|
3741
|
+
return it({ ...t3?.[1], query: t3?.[0] });
|
|
3742
3742
|
}, responseTransformer: ({ data: e3 }) => {
|
|
3743
|
-
let t3 =
|
|
3743
|
+
let t3 = j(N(e3, []));
|
|
3744
3744
|
return { items: t3?.inventoryItems, pagingMetadata: t3?.pagingMetadata };
|
|
3745
3745
|
}, errorTransformer: (e3) => {
|
|
3746
|
-
throw
|
|
3746
|
+
throw P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
3747
3747
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
3748
3748
|
}
|
|
3749
|
-
async function
|
|
3750
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3749
|
+
async function nc(e2) {
|
|
3750
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ec(it({ query: e2 }));
|
|
3751
3751
|
n2?.onSiteCall?.();
|
|
3752
3752
|
try {
|
|
3753
3753
|
let e3 = await t2.request(r2);
|
|
3754
|
-
return n2?.onSuccess?.(e3),
|
|
3754
|
+
return n2?.onSuccess?.(e3), j(e3.data);
|
|
3755
3755
|
} catch (e3) {
|
|
3756
|
-
let t3 =
|
|
3756
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
3757
3757
|
throw n2?.onError?.(e3), t3;
|
|
3758
3758
|
}
|
|
3759
3759
|
}
|
|
3760
|
-
({ ...
|
|
3761
|
-
function nc(e2) {
|
|
3762
|
-
return () => ec({ httpClient: e2 });
|
|
3763
|
-
}
|
|
3760
|
+
({ ...Vo() }, { ...fs() });
|
|
3764
3761
|
function rc(e2) {
|
|
3765
|
-
return (
|
|
3766
|
-
}
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
var
|
|
3771
|
-
var
|
|
3772
|
-
|
|
3773
|
-
|
|
3762
|
+
return () => tc({ httpClient: e2 });
|
|
3763
|
+
}
|
|
3764
|
+
function ic(e2) {
|
|
3765
|
+
return (t2) => nc(t2, { httpClient: e2 });
|
|
3766
|
+
}
|
|
3767
|
+
var ac = b(`wix.stores.catalog.v3.inventory_item_created`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3768
|
+
var oc = b(`wix.stores.catalog.v3.inventory_item_deleted`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3769
|
+
var sc = b(`wix.stores.catalog.v3.inventory_item_stock_status_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3770
|
+
var cc = b(`wix.stores.catalog.v3.inventory_item_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }])))();
|
|
3771
|
+
var lc = b(`wix.stores.catalog.v3.inventory_item_updated_with_reason`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `data.currentEntity.createdDate` }, { path: `data.currentEntity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3772
|
+
function uc(e2) {
|
|
3773
|
+
let t2 = Zo({ builderQueryFunction: () => rc(e2)(), typedQueryFunction: (t3) => ic(e2)(t3), hasOptionsParameter: false });
|
|
3774
3774
|
function n2(e3) {
|
|
3775
3775
|
return t2(...arguments);
|
|
3776
3776
|
}
|
|
3777
3777
|
return n2;
|
|
3778
3778
|
}
|
|
3779
|
-
var
|
|
3780
|
-
|
|
3781
|
-
function
|
|
3782
|
-
return
|
|
3779
|
+
var dc = Bt(uc);
|
|
3780
|
+
F(ac), F(oc), F(sc), F(cc), F(lc);
|
|
3781
|
+
function fc(e2) {
|
|
3782
|
+
return Ht(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/stores-catalog-orchestrator`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/stores`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/products`, destPath: `/v3/products` }, { srcPath: `/stores/v3/bulk/products`, destPath: `/v3/bulk/products` }, { srcPath: `/stores/v3/products-with-inventory`, destPath: `/v3/products-with-inventory` }, { srcPath: `/stores/v3/bulk/products-with-inventory`, destPath: `/v3/bulk/products-with-inventory` }, { srcPath: `/stores/v3/all-products-category`, destPath: `/v3/all-products-category` }], "www._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], _: [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }] } }));
|
|
3783
3783
|
}
|
|
3784
|
-
var
|
|
3785
|
-
function
|
|
3784
|
+
var pc = `@wix/auto_sdk_stores_products-v-3`;
|
|
3785
|
+
function mc(e2) {
|
|
3786
3786
|
function t2({ host: t3 }) {
|
|
3787
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Bt(e2), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3787
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: pc, migrationOptions: { optInTransformResponse: true }, url: fc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Vt(e2), transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: gn, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3788
3788
|
}
|
|
3789
3789
|
return t2;
|
|
3790
3790
|
}
|
|
3791
|
-
var
|
|
3792
|
-
var
|
|
3793
|
-
var
|
|
3794
|
-
var
|
|
3795
|
-
async function
|
|
3796
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
3791
|
+
var hc = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(hc || {});
|
|
3792
|
+
var gc = ((e2) => (e2.IN_STOCK = `IN_STOCK`, e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e2.PARTIALLY_OUT_OF_STOCK = `PARTIALLY_OUT_OF_STOCK`, e2))(gc || {});
|
|
3793
|
+
var _c = ((e2) => (e2.ALL_VARIANTS = `ALL_VARIANTS`, e2.NO_VARIANTS = `NO_VARIANTS`, e2.SOME_VARIANTS = `SOME_VARIANTS`, e2))(_c || {});
|
|
3794
|
+
var vc = ((e2) => (e2.URL = `URL`, e2.CURRENCY = `CURRENCY`, e2.INFO_SECTION = `INFO_SECTION`, e2.MERCHANT_DATA = `MERCHANT_DATA`, e2.PLAIN_DESCRIPTION = `PLAIN_DESCRIPTION`, e2.INFO_SECTION_PLAIN_DESCRIPTION = `INFO_SECTION_PLAIN_DESCRIPTION`, e2.SUBSCRIPTION_PRICES_INFO = `SUBSCRIPTION_PRICES_INFO`, e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.WEIGHT_MEASUREMENT_UNIT_INFO = `WEIGHT_MEASUREMENT_UNIT_INFO`, e2.VARIANT_OPTION_CHOICE_NAMES = `VARIANT_OPTION_CHOICE_NAMES`, e2.MEDIA_ITEMS_INFO = `MEDIA_ITEMS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.DIRECT_CATEGORIES_INFO = `DIRECT_CATEGORIES_INFO`, e2.ALL_CATEGORIES_INFO = `ALL_CATEGORIES_INFO`, e2.INFO_SECTION_DESCRIPTION = `INFO_SECTION_DESCRIPTION`, e2.THUMBNAIL = `THUMBNAIL`, e2.PRODUCT_CHOICES_MEDIA_REFERENCES = `PRODUCT_CHOICES_MEDIA_REFERENCES`, e2.PRODUCT_CHOICES_DISPLAY_IMAGE = `PRODUCT_CHOICES_DISPLAY_IMAGE`, e2.MIN_PRICE_VARIANT = `MIN_PRICE_VARIANT`, e2.DISCOUNT_INFO = `DISCOUNT_INFO`, e2))(vc || {});
|
|
3795
|
+
async function yc(e2, t2) {
|
|
3796
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = mc(it({ productId: e2, fields: t2?.fields }, []));
|
|
3797
3797
|
r2?.onSiteCall?.();
|
|
3798
3798
|
try {
|
|
3799
3799
|
let e3 = await n2.request(i2);
|
|
3800
|
-
return r2?.onSuccess?.(e3),
|
|
3800
|
+
return r2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: Cs, paths: [{ path: `product.url` }] }, { transformFn: ts, paths: [{ path: `product.media.main.image` }, { path: `product.media.itemsInfo.items.image` }, { path: `product.options.choicesSettings.choices.image` }, { path: `product.options.choicesSettings.choices.displayImage` }, { path: `product.options.choicesSettings.choices.linkedMedia.image` }, { path: `product.modifiers.choicesSettings.choices.image` }, { path: `product.modifiers.choicesSettings.choices.displayImage` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `product.variantsInfo.variants.media.image` }, { path: `product.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Zs, paths: [{ path: `product.media.main.video` }, { path: `product.media.itemsInfo.items.video` }, { path: `product.options.choicesSettings.choices.linkedMedia.video` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `product.variantsInfo.variants.media.video` }, { path: `product.variantSummary.minPriceVariant.media.video` }] }]), [`product.description`, `product.infoSections.description`])?.product;
|
|
3801
3801
|
} catch (e3) {
|
|
3802
|
-
let t3 =
|
|
3802
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { productId: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`productId`, `options`]);
|
|
3803
3803
|
throw r2?.onError?.(e3), t3;
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
|
-
({ ...
|
|
3807
|
-
function
|
|
3808
|
-
return (t2, n2) =>
|
|
3806
|
+
({ ...fs() }, { ...Vo() });
|
|
3807
|
+
function bc(e2) {
|
|
3808
|
+
return (t2, n2) => yc(t2, n2, { httpClient: e2 });
|
|
3809
3809
|
}
|
|
3810
|
-
var bc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Ss, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: es, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Xs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3811
|
-
var xc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Ss, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: es, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Xs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3812
|
-
var Sc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: Ss, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: es, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Xs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3813
|
-
var
|
|
3814
|
-
|
|
3815
|
-
function
|
|
3816
|
-
return
|
|
3810
|
+
var xc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Cs, paths: [{ path: `entity.url` }] }, { transformFn: gn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: ts, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Zs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3811
|
+
var Sc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Cs, paths: [{ path: `entity.url` }] }, { transformFn: gn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: ts, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Zs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3812
|
+
var Cc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: Cs, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: gn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: ts, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Zs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3813
|
+
var wc = Bt(bc);
|
|
3814
|
+
F(xc), F(Sc), F(Cc);
|
|
3815
|
+
function Tc(e2) {
|
|
3816
|
+
return Dc(e2) ?? 99999;
|
|
3817
3817
|
}
|
|
3818
|
-
function
|
|
3818
|
+
function Ec(e2, t2) {
|
|
3819
3819
|
return Math.min(e2, Math.max(t2, 1));
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3821
|
+
function Dc(e2) {
|
|
3822
3822
|
if (!e2 || !e2.trackQuantity) return;
|
|
3823
3823
|
let { availabilityStatus: t2, inventoryQuantity: n2, preorderInfo: r2 } = e2, i2 = t2 === `PREORDER` ? r2?.quantity : n2;
|
|
3824
3824
|
if (i2 != null) return Math.max(0, i2);
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3827
|
-
let { availabilityStatus: t2, preorderAvailability: n2 } = e2 ?? {}, r2 = t2 !==
|
|
3828
|
-
return { isInStock: r2, isPreOrderState: n2 ===
|
|
3829
|
-
}
|
|
3830
|
-
function Oc(e2, t2) {
|
|
3831
|
-
return t2 ? { isInStock: t2.availabilityStatus === X.IN_STOCK, isPreOrderState: t2.availabilityStatus === X.PREORDER } : Dc(e2.inventory);
|
|
3826
|
+
function Oc(e2) {
|
|
3827
|
+
let { availabilityStatus: t2, preorderAvailability: n2 } = e2 ?? {}, r2 = t2 !== gc.OUT_OF_STOCK;
|
|
3828
|
+
return { isInStock: r2, isPreOrderState: n2 === _c.ALL_VARIANTS || n2 === _c.SOME_VARIANTS && !r2 };
|
|
3832
3829
|
}
|
|
3833
3830
|
function kc(e2, t2) {
|
|
3831
|
+
return t2 ? { isInStock: t2.availabilityStatus === Y.IN_STOCK, isPreOrderState: t2.availabilityStatus === Y.PREORDER } : Oc(e2.inventory);
|
|
3832
|
+
}
|
|
3833
|
+
function Ac(e2, t2) {
|
|
3834
3834
|
return n(() => {
|
|
3835
|
-
let { isInStock: n2, isPreOrderState: r2 } =
|
|
3836
|
-
return { isInStock: n2, isPreOrderState: r2, preOrderMessage: r2 ? t2?.preorderInfo?.message : void 0, remainingItemCount:
|
|
3835
|
+
let { isInStock: n2, isPreOrderState: r2 } = kc(e2, t2);
|
|
3836
|
+
return { isInStock: n2, isPreOrderState: r2, preOrderMessage: r2 ? t2?.preorderInfo?.message : void 0, remainingItemCount: Dc(t2) };
|
|
3837
3837
|
}, [e2.inventory, t2]);
|
|
3838
3838
|
}
|
|
3839
|
-
function
|
|
3839
|
+
function jc(e2) {
|
|
3840
3840
|
return { type: `image`, src: e2.url, width: e2.width, height: e2.height, ...e2.name === void 0 ? {} : { title: e2.name }, ...e2.alt === void 0 ? {} : { parameters: { alt: e2.alt } } };
|
|
3841
3841
|
}
|
|
3842
|
-
var
|
|
3843
|
-
var
|
|
3844
|
-
var
|
|
3845
|
-
function
|
|
3846
|
-
let r2 =
|
|
3842
|
+
var Mc = `11062b_7b9f1e3756b64285ad5cf5e244b4ae77~mv2.png`;
|
|
3843
|
+
var Nc = { uri: Mc, url: `https://static.wixstatic.com/media/${Mc}`, width: 460, height: 460 };
|
|
3844
|
+
var Pc = [jc(Nc)];
|
|
3845
|
+
function Fc(e2, t2, n2) {
|
|
3846
|
+
let r2 = Rc(e2, Ic(e2, t2, n2));
|
|
3847
3847
|
return r2.length > 0 ? r2 : e2.media ?? [];
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3850
|
-
let r2 = e2.options.flatMap((e3) =>
|
|
3849
|
+
function Ic(e2, t2, n2) {
|
|
3850
|
+
let r2 = e2.options.flatMap((e3) => Lc(e3.choices, t2[e3.id])), i2 = Object.values(e2.modifiers).flatMap((e3) => Lc(e3.choices, n2[e3.id]));
|
|
3851
3851
|
return [.../* @__PURE__ */ new Set([...r2, ...i2])];
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function Lc(e2, t2) {
|
|
3854
3854
|
return e2?.find((e3) => e3.choiceId === t2)?.mediaIds ?? [];
|
|
3855
3855
|
}
|
|
3856
|
-
function
|
|
3856
|
+
function Rc(e2, t2) {
|
|
3857
3857
|
let n2 = new Map((e2.media ?? []).map((e3) => [e3.id, e3]));
|
|
3858
3858
|
return t2.flatMap((e3) => {
|
|
3859
3859
|
let t3 = n2.get(e3);
|
|
3860
3860
|
return t3 ? [t3] : [];
|
|
3861
3861
|
});
|
|
3862
3862
|
}
|
|
3863
|
-
function
|
|
3863
|
+
function zc(e2) {
|
|
3864
3864
|
return e2.map((e3) => e3.id).join(`|`);
|
|
3865
3865
|
}
|
|
3866
|
-
function
|
|
3867
|
-
return e2.length > 0 ? e2.map((e3) => e3.media) :
|
|
3866
|
+
function Bc(e2) {
|
|
3867
|
+
return e2.length > 0 ? e2.map((e3) => e3.media) : Pc;
|
|
3868
3868
|
}
|
|
3869
|
-
function
|
|
3870
|
-
let o2 = n(() =>
|
|
3869
|
+
function Vc({ product: e2, selectedOptions: i2, selectedModifiers: a2 }) {
|
|
3870
|
+
let o2 = n(() => Bc(e2.media ?? []), [e2.media]), s2 = e2.mainMedia ?? Nc, c2 = n(() => Fc(e2, i2, a2), [e2, i2, a2]), l2 = n(() => Bc(c2), [c2]), u2 = zc(c2), [d2, f2] = r(u2), [p2, m2] = r(0);
|
|
3871
3871
|
d2 !== u2 && (f2(u2), m2(0));
|
|
3872
3872
|
let h2 = t((e3) => m2(e3), []);
|
|
3873
3873
|
return n(() => ({ allMedia: o2, mainMedia: s2, media: l2, selectedMediaIndex: p2, selectMedia: h2 }), [o2, s2, l2, p2, h2]);
|
|
3874
3874
|
}
|
|
3875
|
-
function
|
|
3875
|
+
function Hc(e2) {
|
|
3876
3876
|
return Object.entries(e2).map(([e3, t2]) => ({ optionId: e3, choiceId: t2 }));
|
|
3877
3877
|
}
|
|
3878
|
-
function
|
|
3878
|
+
function Uc(e2) {
|
|
3879
3879
|
return Object.entries(e2).map(([e3, t2]) => ({ modifierId: e3, value: t2 }));
|
|
3880
3880
|
}
|
|
3881
|
-
function
|
|
3882
|
-
let { selectedVariant: a2 } = t2, o2 =
|
|
3881
|
+
function Wc(e2, t2, r2, i2 = false) {
|
|
3882
|
+
let { selectedVariant: a2 } = t2, o2 = Xs(e2, a2), s2 = Ac(e2, a2), c2 = Vc({ product: e2, selectedOptions: t2.selectedOptions, selectedModifiers: t2.selectedModifiers }), l2 = Ys(e2, a2), { getPageAbsoluteUrl: u2 } = ri(), d2 = n(() => {
|
|
3883
3883
|
if (!e2.slug) return;
|
|
3884
|
-
let t3 = u2(
|
|
3884
|
+
let t3 = u2(H.PRODUCT_PAGE, e2.slug);
|
|
3885
3885
|
return t3 ? { href: t3 } : void 0;
|
|
3886
3886
|
}, [e2.slug, u2]);
|
|
3887
3887
|
return n(() => {
|
|
3888
3888
|
let { selectedVariant: e3, setHasAttemptedSubmit: n2, isSelectionValid: a3, selectedOptions: u3, selectedModifiers: f2, selectedSubscriptionPlanId: p2, quantity: m2, productGrouping: h2, ...g2 } = t2;
|
|
3889
|
-
return { ...o2, link: d2, ...r2, ...g2, buyerSelections: { options:
|
|
3889
|
+
return { ...o2, link: d2, ...r2, ...g2, buyerSelections: { options: Hc(u3), modifiers: Uc(f2), subscriptionPlanId: p2, quantity: m2 }, ...s2, ...c2, ...l2, isBackInStockEnabled: i2 };
|
|
3890
3890
|
}, [o2, d2, r2, t2, s2, c2, l2, i2]);
|
|
3891
3891
|
}
|
|
3892
|
-
var
|
|
3893
|
-
var
|
|
3894
|
-
var
|
|
3895
|
-
var
|
|
3896
|
-
function
|
|
3897
|
-
let e2 = c(), t2 = l(
|
|
3892
|
+
var Gc = `one-time`;
|
|
3893
|
+
var Kc = V(`@wix/site-service-locale`);
|
|
3894
|
+
var qc = V;
|
|
3895
|
+
var Jc = qc(`@wix/viewer-service-multilingual`);
|
|
3896
|
+
function Yc() {
|
|
3897
|
+
let e2 = c(), t2 = l(Kc), n2;
|
|
3898
3898
|
try {
|
|
3899
|
-
n2 = e2(
|
|
3899
|
+
n2 = e2(Jc);
|
|
3900
3900
|
} catch {
|
|
3901
3901
|
}
|
|
3902
3902
|
return n2?.multilingualEnabled && n2.currentLocale?.regionalFormat || t2.locale;
|
|
3903
3903
|
}
|
|
3904
|
-
var
|
|
3904
|
+
var Xc = (e2) => {
|
|
3905
3905
|
let t2 = e2?.maximumFractionDigits ?? 2;
|
|
3906
3906
|
return (e3) => e3?.toFixed(t2);
|
|
3907
3907
|
};
|
|
3908
|
-
var
|
|
3908
|
+
var Zc = (e2, t2, n2) => {
|
|
3909
3909
|
let r2 = new Intl.NumberFormat(t2, { style: `currency`, currency: e2, ...n2 });
|
|
3910
3910
|
return (e3) => {
|
|
3911
3911
|
if (e3 != null) return r2.format(e3);
|
|
3912
3912
|
};
|
|
3913
3913
|
};
|
|
3914
|
-
function
|
|
3915
|
-
return e2 ?
|
|
3914
|
+
function Qc(e2, t2, n2) {
|
|
3915
|
+
return e2 ? Zc(e2, t2, n2) : Xc(n2);
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3918
|
-
let r2 =
|
|
3919
|
-
return n(() =>
|
|
3917
|
+
function $c(e2, t2) {
|
|
3918
|
+
let r2 = Yc();
|
|
3919
|
+
return n(() => Qc(e2, r2, t2), [e2, r2, t2]);
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function X(e2, t2) {
|
|
3922
3922
|
return e2 === void 0 ? void 0 : { amount: e2, formattedAmount: t2(e2) };
|
|
3923
3923
|
}
|
|
3924
|
-
function
|
|
3925
|
-
return { id: e2.id, name: e2.name, isOneTimePurchase: false, description: e2.description, currentPrice:
|
|
3924
|
+
function el(e2, t2, n2) {
|
|
3925
|
+
return { id: e2.id, name: e2.name, isOneTimePurchase: false, description: e2.description, currentPrice: X(t2.currentSellingPrice, n2), originalPrice: X(t2.priceBeforeDiscount, n2), frequency: e2.frequency, interval: e2.interval, duration: e2.billingCycles };
|
|
3926
3926
|
}
|
|
3927
|
-
function
|
|
3927
|
+
function tl(e2) {
|
|
3928
3928
|
return e2 === void 0 ? void 0 : { description: e2.description };
|
|
3929
3929
|
}
|
|
3930
|
-
function tl(e2, t2) {
|
|
3931
|
-
return { currentSellingPrice: Z(e2.currentSellingPrice, t2), priceBeforeDiscount: Z(e2.priceBeforeDiscount, t2), pricePerUnit: el(e2.pricePerUnit) };
|
|
3932
|
-
}
|
|
3933
3930
|
function nl(e2, t2) {
|
|
3934
|
-
return {
|
|
3931
|
+
return { currentSellingPrice: X(e2.currentSellingPrice, t2), priceBeforeDiscount: X(e2.priceBeforeDiscount, t2), pricePerUnit: tl(e2.pricePerUnit) };
|
|
3935
3932
|
}
|
|
3936
|
-
function rl(e2, t2
|
|
3933
|
+
function rl(e2, t2) {
|
|
3934
|
+
return { minCurrentSellingPrice: X(e2.minCurrentSellingPrice, t2), maxCurrentSellingPrice: X(e2.maxCurrentSellingPrice, t2), minPriceBeforeDiscount: X(e2.minPriceBeforeDiscount, t2), maxPriceBeforeDiscount: X(e2.maxPriceBeforeDiscount, t2), minPricePerUnit: tl(e2.minPricePerUnit), maxPricePerUnit: tl(e2.maxPricePerUnit) };
|
|
3935
|
+
}
|
|
3936
|
+
function il(e2, t2, n2, r2) {
|
|
3937
3937
|
if (e2.length === 0) return [];
|
|
3938
|
-
let i2 = e2.map(({ subscription: e3, price: t3 }) =>
|
|
3939
|
-
return t2 ? [{ id:
|
|
3938
|
+
let i2 = e2.map(({ subscription: e3, price: t3 }) => el(e3, t3, r2));
|
|
3939
|
+
return t2 ? [{ id: Gc, name: `One-time purchase`, isOneTimePurchase: true, currentPrice: X(n2.currentSellingPrice, r2) }, ...i2] : i2;
|
|
3940
3940
|
}
|
|
3941
|
-
function
|
|
3942
|
-
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 =
|
|
3941
|
+
function al({ product: e2, userInputs: t2, hasLoadedVariants: r2 }) {
|
|
3942
|
+
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 = $c(e2.currency);
|
|
3943
3943
|
return n(() => {
|
|
3944
|
-
let t3 =
|
|
3944
|
+
let t3 = To(e2, i2, r2), n2 = { ...nl(Eo(t3, a2), o2), ...rl(t3.productPriceRange, o2) }, s2 = il(t3.subscriptionPlanPrices, e2.subscriptionDetails.allowOneTimePurchases, t3.productPrice, o2);
|
|
3945
3945
|
return { currency: e2.currency, pricing: n2, subscriptionPlans: s2 };
|
|
3946
3946
|
}, [e2, i2, a2, r2, o2]);
|
|
3947
3947
|
}
|
|
3948
|
-
var
|
|
3948
|
+
var ol = function(e2) {
|
|
3949
3949
|
return e2.PRODUCT_BY_SLUG = `product-by-slug`, e2.PRODUCT_BY_ID = `product-by-id`, e2.PRODUCT_ITEM = `product-item`, e2;
|
|
3950
3950
|
}({});
|
|
3951
|
-
function ol(e2) {
|
|
3952
|
-
let { isInStock: t2, isPreOrderState: n2 } = Dc(e2);
|
|
3953
|
-
return n2 ? X.PREORDER : t2 ? X.IN_STOCK : X.OUT_OF_STOCK;
|
|
3954
|
-
}
|
|
3955
3951
|
function sl(e2) {
|
|
3952
|
+
let { isInStock: t2, isPreOrderState: n2 } = Oc(e2);
|
|
3953
|
+
return n2 ? Y.PREORDER : t2 ? Y.IN_STOCK : Y.OUT_OF_STOCK;
|
|
3954
|
+
}
|
|
3955
|
+
function cl(e2) {
|
|
3956
3956
|
let { minPriceVariant: t2 } = e2, n2 = e2.options.length === 0 || e2.options.length === 1 && e2.options[0].choices.length === 1;
|
|
3957
|
-
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus:
|
|
3957
|
+
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus: sl(e2.inventory), trackQuantity: false }] };
|
|
3958
3958
|
}
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
function
|
|
3962
|
-
return e2.filter((e3) => e3.visible !== false).map(
|
|
3959
|
+
var ll = (e2) => Number.parseFloat(e2?.amount);
|
|
3960
|
+
var ul = (e2) => e2?.amount == null ? void 0 : ll(e2);
|
|
3961
|
+
function dl(e2) {
|
|
3962
|
+
return e2.filter((e3) => e3.visible !== false).map(fl);
|
|
3963
3963
|
}
|
|
3964
|
-
var
|
|
3964
|
+
var fl = (e2) => {
|
|
3965
3965
|
let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
|
|
3966
3966
|
let t3 = e3.optionChoiceIds;
|
|
3967
3967
|
return [t3?.optionId, t3?.choiceId];
|
|
3968
3968
|
}));
|
|
3969
|
-
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price:
|
|
3969
|
+
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: ml(e2), subscriptionPrices: hl(e2) };
|
|
3970
3970
|
};
|
|
3971
|
-
function
|
|
3971
|
+
function pl(e2) {
|
|
3972
3972
|
return e2?.description == null ? void 0 : { description: e2.description };
|
|
3973
3973
|
}
|
|
3974
|
-
var
|
|
3974
|
+
var ml = (e2) => {
|
|
3975
3975
|
let t2 = e2.price;
|
|
3976
|
-
return { actualPrice:
|
|
3976
|
+
return { actualPrice: ll(t2?.actualPrice), compareAtPrice: ul(t2?.compareAtPrice), priceAfterDiscount: ul(t2?.priceAfterDiscount), pricePerUnit: pl(e2.physicalProperties?.pricePerUnit) };
|
|
3977
3977
|
};
|
|
3978
|
-
var
|
|
3979
|
-
function
|
|
3978
|
+
var hl = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: ll(e3.price) }));
|
|
3979
|
+
function gl(e2) {
|
|
3980
3980
|
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 }));
|
|
3981
3981
|
}
|
|
3982
|
-
async function
|
|
3983
|
-
return
|
|
3982
|
+
async function _l(e2, t2) {
|
|
3983
|
+
return gl((await dc().eq(`productId`, e2).eq(`locationId`, t2).find()).items ?? []);
|
|
3984
3984
|
}
|
|
3985
|
-
var
|
|
3986
|
-
async function
|
|
3987
|
-
let [n2, r2] = await Promise.all([
|
|
3988
|
-
return { variants:
|
|
3985
|
+
var vl = [vc.SUBSCRIPTION_PRICES_INFO, vc.DISCOUNT_INFO];
|
|
3986
|
+
async function yl(e2, t2) {
|
|
3987
|
+
let [n2, r2] = await Promise.all([wc(e2, { fields: vl }), _l(e2, t2)]);
|
|
3988
|
+
return { variants: dl(n2.variantsInfo?.variants ?? []), inventoryItems: r2 };
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3991
|
-
let
|
|
3992
|
-
|
|
3993
|
-
|
|
3990
|
+
function bl() {
|
|
3991
|
+
let e2 = c(), t2 = l(Kc), n2;
|
|
3992
|
+
try {
|
|
3993
|
+
n2 = e2(Jc);
|
|
3994
|
+
} catch {
|
|
3995
|
+
}
|
|
3996
|
+
return n2?.multilingualEnabled && n2.currentLocale?.languageCode || t2.language;
|
|
3997
|
+
}
|
|
3998
|
+
function xl(e2, n2) {
|
|
3999
|
+
let i2 = bl(), [a2, o2] = r(false), { data: s2, isFetching: c2 } = Qr({ queryKey: [`product-variants`, i2, e2, n2], queryFn: () => yl(e2, n2), enabled: a2, staleTime: 1 / 0, retry: false });
|
|
4000
|
+
return { variantsData: s2, isLoadingVariants: c2, requestVariants: t(() => {
|
|
4001
|
+
o2(true);
|
|
3994
4002
|
}, []) };
|
|
3995
4003
|
}
|
|
3996
|
-
function
|
|
3997
|
-
let { variantsData: i2, isLoadingVariants: a2, requestVariants: o2 } =
|
|
4004
|
+
function Sl(e2, t2, r2) {
|
|
4005
|
+
let { variantsData: i2, isLoadingVariants: a2, requestVariants: o2 } = xl(e2.id, t2), { variants: s2, inventoryItems: c2 } = n(() => i2 ?? cl(e2), [i2, e2]);
|
|
3998
4006
|
return { product: n(() => ({ ...e2, variants: s2 }), [e2, s2]), inventoryItems: c2, productGroupData: r2, hasLoadedVariants: n(() => i2 !== void 0, [i2]), isLoadingVariants: a2, requestVariants: o2 };
|
|
3999
4007
|
}
|
|
4000
|
-
var
|
|
4001
|
-
function
|
|
4008
|
+
var Cl = { type: `invalid-purchase`, message: `This item can't be purchased.` };
|
|
4009
|
+
function wl(e2) {
|
|
4002
4010
|
let t2 = e2;
|
|
4003
4011
|
return { type: `cart`, message: t2?.message, details: t2?.details };
|
|
4004
4012
|
}
|
|
4005
|
-
var
|
|
4006
|
-
var
|
|
4007
|
-
var
|
|
4008
|
-
var
|
|
4009
|
-
var
|
|
4013
|
+
var Tl = V(`@wix/site-service-lightbox`);
|
|
4014
|
+
var El = V(`@wix/site-service-router`);
|
|
4015
|
+
var Dl = V(`@wix/site-service-editor-context`);
|
|
4016
|
+
var Ol = V(`@wix/site-service-pages`);
|
|
4017
|
+
var kl = (e2) => {
|
|
4010
4018
|
if (!e2) return ``;
|
|
4011
4019
|
let t2 = new URLSearchParams(e2).toString();
|
|
4012
4020
|
return t2 ? `?${t2}` : ``;
|
|
4013
4021
|
};
|
|
4014
|
-
var
|
|
4022
|
+
var Al = (e2, t2, n2) => {
|
|
4015
4023
|
let r2 = `./${e2.replace(/^\//, ``)}`;
|
|
4016
4024
|
return n2 ? r2 : new URL(r2, `${t2.replace(/\/$/, ``)}/`).href;
|
|
4017
4025
|
};
|
|
4018
|
-
var
|
|
4019
|
-
let { navigateTo: e2 } = l(
|
|
4026
|
+
var jl = () => {
|
|
4027
|
+
let { navigateTo: e2 } = l(El), { open: n2 } = l(Tl), r2 = l($r), i2 = l(Dl), a2 = l(Ol), { getPageRelativeUrl: o2, getPageAbsoluteUrl: s2 } = ri();
|
|
4020
4028
|
return { navigateToPage: t(async (t2, n3) => {
|
|
4021
4029
|
try {
|
|
4022
|
-
let a3 = r2.appSectionRelativeUrl(
|
|
4030
|
+
let a3 = r2.appSectionRelativeUrl(ti, t2);
|
|
4023
4031
|
if (!a3) return false;
|
|
4024
|
-
let o3 = `${a3}${
|
|
4025
|
-
return await e2({ href:
|
|
4032
|
+
let o3 = `${a3}${kl(n3)}`;
|
|
4033
|
+
return await e2({ href: Al(o3, r2.siteUrl, i2.previewMode) }), true;
|
|
4026
4034
|
} catch {
|
|
4027
4035
|
return false;
|
|
4028
4036
|
}
|
|
4029
4037
|
}, [e2, r2, i2]), navigateToProductPage: t(async (t2) => {
|
|
4030
4038
|
try {
|
|
4031
|
-
let n3 = i2.previewMode ? o2(
|
|
4039
|
+
let n3 = i2.previewMode ? o2(H.PRODUCT_PAGE, t2) : s2(H.PRODUCT_PAGE, t2);
|
|
4032
4040
|
if (!n3) throw Error(`Failed to resolve app section relative URL for the product page`);
|
|
4033
4041
|
await e2({ href: n3 });
|
|
4034
4042
|
} catch (e3) {
|
|
@@ -4036,92 +4044,92 @@ var kl = () => {
|
|
|
4036
4044
|
}
|
|
4037
4045
|
}, [e2, i2, o2, s2]), openLightbox: t(async (e3) => {
|
|
4038
4046
|
try {
|
|
4039
|
-
let t2 =
|
|
4047
|
+
let t2 = ni[e3], r3 = Object.entries(a2.pages).find(([, n3]) => n3.popup && (n3.appPageId === e3 || n3.appPageId === t2))?.[0];
|
|
4040
4048
|
return r3 ? (await n2({ pageId: r3 }), true) : false;
|
|
4041
4049
|
} catch {
|
|
4042
4050
|
return false;
|
|
4043
4051
|
}
|
|
4044
4052
|
}, [n2, a2]) };
|
|
4045
4053
|
};
|
|
4046
|
-
async function
|
|
4047
|
-
await
|
|
4054
|
+
async function Ml(e2) {
|
|
4055
|
+
await Is({ catalogItems: [e2] });
|
|
4048
4056
|
}
|
|
4049
|
-
var
|
|
4050
|
-
var
|
|
4057
|
+
var Nl = qc(`@wix/site-service-public-api-caller`);
|
|
4058
|
+
var Pl = () => {
|
|
4051
4059
|
let e2 = c();
|
|
4052
4060
|
return { reloadCart: t(async () => {
|
|
4053
4061
|
if (typeof window < `u`) try {
|
|
4054
|
-
await e2(
|
|
4062
|
+
await e2(Nl).callPublicApi(ti, `cart.reloadCart`, []);
|
|
4055
4063
|
} catch {
|
|
4056
4064
|
}
|
|
4057
4065
|
}, [e2]) };
|
|
4058
4066
|
};
|
|
4059
|
-
var
|
|
4067
|
+
var Z = function(e2) {
|
|
4060
4068
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2.SUCCESS = `success`, e2;
|
|
4061
4069
|
}({});
|
|
4062
|
-
var
|
|
4070
|
+
var Fl = function(e2) {
|
|
4063
4071
|
return e2.NONE = `none`, e2.NAVIGATE_TO_CART = `navigate-to-cart`, e2.OPEN_SIDE_CART = `open-side-cart`, e2;
|
|
4064
4072
|
}({});
|
|
4065
|
-
var
|
|
4066
|
-
let [e2, n2] = r(
|
|
4073
|
+
var Il = () => {
|
|
4074
|
+
let [e2, n2] = r(Z.IDLE), { navigateToPage: i2, openLightbox: a2 } = jl(), { reloadCart: o2 } = Pl(), s2 = t(async (e3) => {
|
|
4067
4075
|
switch (e3) {
|
|
4068
|
-
case
|
|
4069
|
-
await i2(
|
|
4076
|
+
case Fl.NAVIGATE_TO_CART:
|
|
4077
|
+
await i2(H.CART);
|
|
4070
4078
|
return;
|
|
4071
|
-
case
|
|
4072
|
-
await a2(
|
|
4079
|
+
case Fl.OPEN_SIDE_CART:
|
|
4080
|
+
await a2(H.SIDE_CART);
|
|
4073
4081
|
return;
|
|
4074
|
-
case
|
|
4082
|
+
case Fl.NONE:
|
|
4075
4083
|
default:
|
|
4076
4084
|
return;
|
|
4077
4085
|
}
|
|
4078
4086
|
}, [i2, a2]);
|
|
4079
4087
|
return { addToCart: t(async (e3, t2) => {
|
|
4080
|
-
n2(
|
|
4088
|
+
n2(Z.IN_PROGRESS);
|
|
4081
4089
|
try {
|
|
4082
|
-
await
|
|
4090
|
+
await Ml(e3);
|
|
4083
4091
|
} catch (e4) {
|
|
4084
|
-
return n2(
|
|
4092
|
+
return n2(Z.IDLE), { ok: false, error: wl(e4) };
|
|
4085
4093
|
}
|
|
4086
4094
|
try {
|
|
4087
|
-
await o2(), n2(
|
|
4095
|
+
await o2(), n2(Z.SUCCESS), await s2(t2), setTimeout(() => n2(Z.IDLE), 2e3);
|
|
4088
4096
|
} catch {
|
|
4089
|
-
n2(
|
|
4097
|
+
n2(Z.IDLE);
|
|
4090
4098
|
}
|
|
4091
4099
|
return { ok: true };
|
|
4092
4100
|
}, [o2, s2]), addToCartState: e2, reloadCart: o2 };
|
|
4093
4101
|
};
|
|
4094
|
-
async function
|
|
4095
|
-
let t2 = await
|
|
4102
|
+
async function Ll(e2) {
|
|
4103
|
+
let t2 = await As({ cart: { source: { channelType: Ds.WEB } }, catalogItems: [e2] });
|
|
4096
4104
|
if (!t2._id) throw Error(`missing checkout id`);
|
|
4097
4105
|
return t2._id;
|
|
4098
4106
|
}
|
|
4099
|
-
var
|
|
4107
|
+
var Rl = function(e2) {
|
|
4100
4108
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2;
|
|
4101
4109
|
}({});
|
|
4102
|
-
var
|
|
4103
|
-
let { navigateToPage: e2 } =
|
|
4110
|
+
var zl = () => {
|
|
4111
|
+
let { navigateToPage: e2 } = jl(), [n2, i2] = r(Rl.IDLE);
|
|
4104
4112
|
return { buyNowState: n2, buyNow: t(async (t2) => {
|
|
4105
|
-
i2(
|
|
4113
|
+
i2(Rl.IN_PROGRESS);
|
|
4106
4114
|
try {
|
|
4107
|
-
let n3 = await
|
|
4108
|
-
return await e2(
|
|
4115
|
+
let n3 = await Ll(t2);
|
|
4116
|
+
return await e2(H.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error: wl(Error(`Failed to navigate to checkout`)) };
|
|
4109
4117
|
} catch (e3) {
|
|
4110
|
-
return { ok: false, error:
|
|
4118
|
+
return { ok: false, error: wl(e3) };
|
|
4111
4119
|
} finally {
|
|
4112
|
-
i2(
|
|
4120
|
+
i2(Rl.IDLE);
|
|
4113
4121
|
}
|
|
4114
4122
|
}, [e2]) };
|
|
4115
4123
|
};
|
|
4116
|
-
function
|
|
4124
|
+
function Bl(e2) {
|
|
4117
4125
|
let { product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 } = e2;
|
|
4118
|
-
return { catalogReference: { appId:
|
|
4126
|
+
return { catalogReference: { appId: ei, catalogItemId: t2.id, options: Vl({ product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 }) }, quantity: r2.quantity };
|
|
4119
4127
|
}
|
|
4120
|
-
var
|
|
4121
|
-
let i2 =
|
|
4122
|
-
return Object.keys(o2).length > 0 && (l2.customTextFields = o2),
|
|
4128
|
+
var Vl = ({ product: e2, selectedVariant: t2, userSelections: n2, isPreOrder: r2 }) => {
|
|
4129
|
+
let i2 = Hl(e2, t2.choices), { choiceBasedModifiers: a2, customTextFields: o2 } = Ul(e2, n2.selectedModifiers), s2 = { ...i2, ...a2 }, { selectedSubscriptionPlanId: c2 } = n2, l2 = { variantId: t2.id, options: s2 };
|
|
4130
|
+
return Object.keys(o2).length > 0 && (l2.customTextFields = o2), Wl(c2) && (l2.subscriptionOptionId = c2), r2 && (l2.preOrderRequested = true), l2;
|
|
4123
4131
|
};
|
|
4124
|
-
var
|
|
4132
|
+
var Hl = (e2, t2) => {
|
|
4125
4133
|
let n2 = {};
|
|
4126
4134
|
for (let [r2, i2] of Object.entries(t2)) {
|
|
4127
4135
|
let t3 = e2.options.find((e3) => e3.id === r2), a2 = t3?.choices.find((e3) => e3.choiceId === i2);
|
|
@@ -4129,9 +4137,9 @@ var Vl = (e2, t2) => {
|
|
|
4129
4137
|
}
|
|
4130
4138
|
return n2;
|
|
4131
4139
|
};
|
|
4132
|
-
var
|
|
4140
|
+
var Ul = (e2, t2) => {
|
|
4133
4141
|
let n2 = {}, r2 = {};
|
|
4134
|
-
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType ===
|
|
4142
|
+
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType === hc.FREE_TEXT) {
|
|
4135
4143
|
let e3 = i2.freeTextSettings?.key;
|
|
4136
4144
|
e3 && (r2[e3] = t2[i2.id] ?? ``);
|
|
4137
4145
|
} else {
|
|
@@ -4140,23 +4148,23 @@ var Hl = (e2, t2) => {
|
|
|
4140
4148
|
}
|
|
4141
4149
|
return { choiceBasedModifiers: n2, customTextFields: r2 };
|
|
4142
4150
|
};
|
|
4143
|
-
var
|
|
4144
|
-
function
|
|
4145
|
-
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } =
|
|
4151
|
+
var Wl = (e2) => e2 !== void 0 && e2 !== `one-time`;
|
|
4152
|
+
function Gl(e2, r2, i2) {
|
|
4153
|
+
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } = Il(), { buyNow: p2, buyNowState: m2 } = zl(), h2 = i2.isPreOrderState || i2.isInStock, g2 = t(async (t2) => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: Cl } : d2(Bl({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState }), t2 ?? Fl.NONE), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, d2]), _2 = t(async () => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: Cl } : p2(Bl({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState })), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, p2]);
|
|
4146
4154
|
return n(() => ({ addToCartState: f2, buyNowState: m2, handleAddToCart: g2, handleBuyNow: _2 }), [f2, m2, g2, _2]);
|
|
4147
4155
|
}
|
|
4148
|
-
var
|
|
4149
|
-
var
|
|
4156
|
+
var Kl = (e2, t2) => e2.every((e3) => !e3.mandatory || ql(e3, t2[e3.id]));
|
|
4157
|
+
var ql = (e2, t2) => e2.modifierRenderType === hc.FREE_TEXT ? !!t2 : e2.choices?.some((e3) => e3.choiceId === t2);
|
|
4150
4158
|
var Q = function(e2) {
|
|
4151
4159
|
return e2.DIRECT_ADD = `direct-add`, e2.NAVIGATE_TO_PRODUCT_PAGE = `navigate-to-product-page`, e2;
|
|
4152
4160
|
}({});
|
|
4153
|
-
function
|
|
4154
|
-
return
|
|
4161
|
+
function Jl(e2, t2) {
|
|
4162
|
+
return Yl(e2, t2) ? Q.NAVIGATE_TO_PRODUCT_PAGE : Q.DIRECT_ADD;
|
|
4155
4163
|
}
|
|
4156
|
-
var
|
|
4157
|
-
var
|
|
4158
|
-
function
|
|
4159
|
-
let { navigateToProductPage: i2 } =
|
|
4164
|
+
var Yl = (e2, t2) => e2.subscriptionDetails.subscriptions.length > 0 || !Xl(e2, t2);
|
|
4165
|
+
var Xl = (e2, t2) => e2.options.length === 0 && Object.keys(e2.modifiers).length === 0 || t2.selectedVariant !== null && Kl(Object.values(t2.modifiers), t2.selectedModifiers);
|
|
4166
|
+
function Zl(e2, r2) {
|
|
4167
|
+
let { navigateToProductPage: i2 } = jl(), { addToCartState: a2, buyNowState: o2, handleAddToCart: s2, handleBuyNow: c2 } = Gl(e2, r2, Ac(e2, r2.selectedVariant)), l2 = Jl(e2, r2), u2 = t(async () => e2.slug ? (await i2(e2.slug), { ok: true }) : { ok: false, error: Cl }, [e2.slug, i2]), d2 = t((e3) => {
|
|
4160
4168
|
switch (l2) {
|
|
4161
4169
|
case Q.DIRECT_ADD:
|
|
4162
4170
|
return s2(e3);
|
|
@@ -4173,15 +4181,15 @@ function Xl(e2, r2) {
|
|
|
4173
4181
|
}, [l2, c2, u2]);
|
|
4174
4182
|
return n(() => ({ addToCartState: a2, buyNowState: o2, handleAddToCart: d2, handleBuyNow: f2 }), [a2, o2, d2, f2]);
|
|
4175
4183
|
}
|
|
4176
|
-
function
|
|
4184
|
+
function Ql(e2) {
|
|
4177
4185
|
return Object.values(e2).toSorted().join(`_`);
|
|
4178
4186
|
}
|
|
4179
|
-
function
|
|
4187
|
+
function $l(e2) {
|
|
4180
4188
|
let t2 = /* @__PURE__ */ new Map();
|
|
4181
|
-
for (let n2 of e2) t2.set(
|
|
4189
|
+
for (let n2 of e2) t2.set(Ql(n2.choices), n2);
|
|
4182
4190
|
return t2;
|
|
4183
4191
|
}
|
|
4184
|
-
function
|
|
4192
|
+
function eu(e2, t2, n2) {
|
|
4185
4193
|
let r2 = Object.keys(n2).length > 0, i2 = {};
|
|
4186
4194
|
for (let a2 of e2) {
|
|
4187
4195
|
i2[a2.id] = {};
|
|
@@ -4194,18 +4202,18 @@ function $l(e2, t2, n2) {
|
|
|
4194
4202
|
i2[a2.id][e3.choiceId] = { isInStock: false, isVisible: false };
|
|
4195
4203
|
continue;
|
|
4196
4204
|
}
|
|
4197
|
-
let { isInStock: o2, isVisible: s2 } =
|
|
4205
|
+
let { isInStock: o2, isVisible: s2 } = tu({ ...n2, [a2.id]: e3.choiceId }, t2);
|
|
4198
4206
|
i2[a2.id][e3.choiceId] = { isInStock: o2, isVisible: s2 };
|
|
4199
4207
|
}
|
|
4200
4208
|
}
|
|
4201
4209
|
return i2;
|
|
4202
4210
|
}
|
|
4203
|
-
function
|
|
4211
|
+
function tu(e2, t2) {
|
|
4204
4212
|
let n2 = false, r2 = false;
|
|
4205
|
-
for (let i2 of t2.values()) if (Object.entries(e2).every(([e3, t3]) => i2.choices[e3] === t3) && (r2 = true, (i2.availabilityStatus ===
|
|
4213
|
+
for (let i2 of t2.values()) if (Object.entries(e2).every(([e3, t3]) => i2.choices[e3] === t3) && (r2 = true, (i2.availabilityStatus === Y.IN_STOCK || i2.availabilityStatus === Y.PREORDER) && (n2 = true), n2)) break;
|
|
4206
4214
|
return { isInStock: n2, isVisible: r2 };
|
|
4207
4215
|
}
|
|
4208
|
-
function
|
|
4216
|
+
function nu(e2, t2) {
|
|
4209
4217
|
let n2 = /* @__PURE__ */ new Map();
|
|
4210
4218
|
for (let e3 of t2) n2.set(e3.variantId, e3);
|
|
4211
4219
|
return e2.map((e3) => {
|
|
@@ -4213,34 +4221,34 @@ function tu(e2, t2) {
|
|
|
4213
4221
|
return { ...e3, availabilityStatus: t3?.availabilityStatus, preorderInfo: t3?.preorderInfo, inventoryQuantity: t3?.quantity, trackQuantity: t3?.trackQuantity };
|
|
4214
4222
|
});
|
|
4215
4223
|
}
|
|
4216
|
-
function
|
|
4217
|
-
let r2 = { options:
|
|
4224
|
+
function ru({ product: e2, selections: t2, selectedVariant: n2 }) {
|
|
4225
|
+
let r2 = { options: iu(e2.options, t2.selectedOptions, n2), modifiers: ou(e2.modifiers, t2.selectedModifiers), quantity: au(t2.quantity, n2), subscriptionPlanId: su(e2.subscriptionDetails, t2.selectedSubscriptionPlanId) };
|
|
4218
4226
|
return { valid: Object.values(r2.options).length === 0 && Object.values(r2.modifiers).length === 0 && !r2.quantity && !r2.subscriptionPlanId, fields: r2 };
|
|
4219
4227
|
}
|
|
4220
|
-
function
|
|
4228
|
+
function iu(e2, t2, n2) {
|
|
4221
4229
|
if (n2 !== null) return {};
|
|
4222
4230
|
let r2 = {};
|
|
4223
4231
|
for (let n3 of e2) t2[n3.id] || (r2[n3.id] = `missing`);
|
|
4224
4232
|
return r2;
|
|
4225
4233
|
}
|
|
4226
|
-
function iu(e2, t2) {
|
|
4227
|
-
if (e2 < 1) return `below-min`;
|
|
4228
|
-
if (e2 > wc(t2)) return `above-max`;
|
|
4229
|
-
}
|
|
4230
4234
|
function au(e2, t2) {
|
|
4231
|
-
|
|
4232
|
-
|
|
4235
|
+
if (e2 < 1) return `below-min`;
|
|
4236
|
+
if (e2 > Tc(t2)) return `above-max`;
|
|
4233
4237
|
}
|
|
4234
4238
|
function ou(e2, t2) {
|
|
4235
|
-
|
|
4239
|
+
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !ql(e3, t2[e3.id]));
|
|
4240
|
+
return Object.fromEntries(n2.map((e3) => [e3.id, `missing`]));
|
|
4236
4241
|
}
|
|
4237
4242
|
function su(e2, t2) {
|
|
4243
|
+
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` : cu(e2, t2) ? void 0 : `missing` : `missing`;
|
|
4244
|
+
}
|
|
4245
|
+
function cu(e2, t2) {
|
|
4238
4246
|
return e2.subscriptions.some((e3) => e3.id === t2);
|
|
4239
4247
|
}
|
|
4240
4248
|
var $ = function(e2) {
|
|
4241
4249
|
return e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2;
|
|
4242
4250
|
}({});
|
|
4243
|
-
function
|
|
4251
|
+
function lu(e2, t2) {
|
|
4244
4252
|
if (!t2) return;
|
|
4245
4253
|
let n2 = t2.members.find((t3) => t3.productId === e2.id);
|
|
4246
4254
|
if (!n2) return;
|
|
@@ -4248,43 +4256,43 @@ function cu(e2, t2) {
|
|
|
4248
4256
|
if (t2.customizationType === $.PRODUCT_OPTION) return e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId) ? { ...r2, customizationType: $.PRODUCT_OPTION } : void 0;
|
|
4249
4257
|
if (e2.modifiers[t2.groupingCustomizationId]) return { ...r2, customizationType: $.MODIFIER };
|
|
4250
4258
|
}
|
|
4251
|
-
function
|
|
4259
|
+
function uu(e2, t2) {
|
|
4252
4260
|
return e2.members.find((e3) => e3.choice.choiceId === t2);
|
|
4253
4261
|
}
|
|
4254
|
-
function
|
|
4262
|
+
function du(e2, t2, n2) {
|
|
4255
4263
|
return !!e2 && t2 === e2.groupingCustomizationId && n2 !== e2.currentProductChoiceId;
|
|
4256
4264
|
}
|
|
4257
|
-
function
|
|
4265
|
+
function fu(e2, t2) {
|
|
4258
4266
|
if (!t2) return;
|
|
4259
4267
|
if (t2.customizationType === $.PRODUCT_OPTION) {
|
|
4260
4268
|
let n3 = e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId);
|
|
4261
4269
|
if (!n3) return;
|
|
4262
|
-
let r3 =
|
|
4270
|
+
let r3 = pu(n3, t2);
|
|
4263
4271
|
return { options: e2.options.map((e3) => e3.id === n3.id ? r3 : e3) };
|
|
4264
4272
|
}
|
|
4265
4273
|
let n2 = e2.modifiers[t2.groupingCustomizationId];
|
|
4266
4274
|
if (!n2) return;
|
|
4267
|
-
let r2 =
|
|
4275
|
+
let r2 = mu(n2, t2);
|
|
4268
4276
|
return { modifiers: { ...e2.modifiers, [t2.groupingCustomizationId]: r2 } };
|
|
4269
4277
|
}
|
|
4270
|
-
function
|
|
4278
|
+
function pu(e2, t2) {
|
|
4271
4279
|
return { ...e2, isGroupedOption: true, choices: t2.members.map((e3) => ({ ...e3.choice, inStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK` })) };
|
|
4272
4280
|
}
|
|
4273
|
-
function
|
|
4281
|
+
function mu(e2, t2) {
|
|
4274
4282
|
return { ...e2, choices: t2.members.map(({ choice: e3 }) => e3) };
|
|
4275
4283
|
}
|
|
4276
|
-
function
|
|
4284
|
+
function hu(e2, t2) {
|
|
4277
4285
|
if (!t2 || t2.customizationType !== $.PRODUCT_OPTION) return e2;
|
|
4278
4286
|
let n2 = Object.fromEntries(t2.members.map((e3) => [e3.choice.choiceId, { isInStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK`, isVisible: true }]));
|
|
4279
4287
|
return { ...e2, [t2.groupingCustomizationId]: { ...n2, ...e2[t2.groupingCustomizationId] } };
|
|
4280
4288
|
}
|
|
4281
|
-
function
|
|
4282
|
-
let i2 = n(() =>
|
|
4289
|
+
function gu(e2, r2) {
|
|
4290
|
+
let i2 = n(() => lu(e2, r2?.productGroup), [e2, r2?.productGroup]);
|
|
4283
4291
|
return { productGrouping: i2, selectGroupSiblingChoice: t((e3) => {
|
|
4284
4292
|
if (!i2 || e3 === i2.currentProductChoiceId) return;
|
|
4285
|
-
let t2 =
|
|
4293
|
+
let t2 = uu(i2, e3);
|
|
4286
4294
|
t2 && r2?.selectProductGroupMember(t2.productId);
|
|
4287
|
-
}, [i2, r2?.selectProductGroupMember]), productCustomizations: n(() =>
|
|
4295
|
+
}, [i2, r2?.selectProductGroupMember]), productCustomizations: n(() => fu(e2, i2), [e2, i2]), addGroupChoicesAvailability: t((e3) => hu(e3, i2), [i2]), initialSelection: n(() => {
|
|
4288
4296
|
if (!i2) return { options: {}, modifiers: {} };
|
|
4289
4297
|
let { customizationType: t2, groupingCustomizationId: n2, currentProductChoiceId: r3 } = i2;
|
|
4290
4298
|
if (t2 === $.MODIFIER && e2.modifiers[n2].mandatory === false) return { options: {}, modifiers: {} };
|
|
@@ -4292,25 +4300,25 @@ function hu(e2, r2) {
|
|
|
4292
4300
|
return t2 === $.PRODUCT_OPTION ? { options: a2, modifiers: {} } : { options: {}, modifiers: a2 };
|
|
4293
4301
|
}, [i2, e2.modifiers]) };
|
|
4294
4302
|
}
|
|
4295
|
-
function
|
|
4296
|
-
let s2 =
|
|
4303
|
+
function _u({ product: e2, inventoryItems: i2, productGroupData: a2, hasLoadedVariants: o2 = true }) {
|
|
4304
|
+
let s2 = gu(e2, a2), { productGrouping: c2, selectGroupSiblingChoice: l2, addGroupChoicesAvailability: u2 } = s2, [d2, f2] = r(() => s2.initialSelection.options), [p2, m2] = r(() => s2.initialSelection.modifiers), [h2, g2] = r(void 0), [_2, v2] = r(1), [y2, b2] = r(false), x2 = n(() => $l(nu(e2.variants, i2)), [e2.variants, i2]), S2 = n(() => {
|
|
4297
4305
|
let t2 = /* @__PURE__ */ new Map();
|
|
4298
4306
|
return (n2) => {
|
|
4299
|
-
let r2 =
|
|
4307
|
+
let r2 = Ql(n2), i3 = t2.get(r2);
|
|
4300
4308
|
if (i3) return i3;
|
|
4301
|
-
let a3 = u2(
|
|
4309
|
+
let a3 = u2(eu(e2.options, x2, n2));
|
|
4302
4310
|
return t2.set(r2, a3), a3;
|
|
4303
4311
|
};
|
|
4304
|
-
}, [x2, e2.options, u2])(o2 ? d2 : {}), C2 = n(() => Object.keys(d2).length === e2.options.length ? x2.get(
|
|
4312
|
+
}, [x2, e2.options, u2])(o2 ? d2 : {}), C2 = n(() => Object.keys(d2).length === e2.options.length ? x2.get(Ql(d2)) ?? null : null, [x2, d2, e2.options.length]), w2 = t((e3, t2) => {
|
|
4305
4313
|
if (d2[e3] !== t2) {
|
|
4306
|
-
if (
|
|
4314
|
+
if (du(c2, e3, t2)) {
|
|
4307
4315
|
l2(t2);
|
|
4308
4316
|
return;
|
|
4309
4317
|
}
|
|
4310
4318
|
f2((n2) => ({ ...n2, [e3]: t2 })), v2(1);
|
|
4311
4319
|
}
|
|
4312
4320
|
}, [d2, c2, l2]), T2 = t((e3, t2) => {
|
|
4313
|
-
if (
|
|
4321
|
+
if (du(c2, e3, t2)) {
|
|
4314
4322
|
l2(t2);
|
|
4315
4323
|
return;
|
|
4316
4324
|
}
|
|
@@ -4323,43 +4331,43 @@ function gu({ product: e2, inventoryItems: i2, productGroupData: a2, hasLoadedVa
|
|
|
4323
4331
|
});
|
|
4324
4332
|
}, []), D2 = t((e3) => {
|
|
4325
4333
|
g2(e3);
|
|
4326
|
-
}, []), O2 = n(() =>
|
|
4334
|
+
}, []), O2 = n(() => Tc(C2), [C2]), k2 = n(() => Ec(_2, O2), [_2, O2]), ee2 = t((e3) => {
|
|
4327
4335
|
v2(e3);
|
|
4328
|
-
}, []), te2 = n(() =>
|
|
4336
|
+
}, []), te2 = n(() => ru({ product: e2, selections: { selectedOptions: d2, selectedModifiers: p2, selectedSubscriptionPlanId: h2, quantity: k2 }, selectedVariant: C2 }), [e2, d2, p2, h2, k2, C2]), ne2 = s2.productCustomizations?.options ?? e2.options, re2 = s2.productCustomizations?.modifiers ?? e2.modifiers;
|
|
4329
4337
|
return n(() => ({ options: ne2, modifiers: re2, quantity: k2, selectedOptions: d2, selectedModifiers: p2, selectedSubscriptionPlanId: h2, selectedVariant: C2, selectedVariantId: C2?.id ?? null, selectionsAvailability: S2, maxPurchasableQuantity: O2, isSelectionValid: te2.valid, selectionValidationErrors: te2.fields, hasAttemptedSubmit: y2, setHasAttemptedSubmit: b2, selectOption: w2, selectModifier: T2, clearModifierSelection: E2, selectSubscriptionPlan: D2, selectQuantity: ee2, productGrouping: c2 }), [ne2, re2, k2, d2, p2, h2, C2, S2, O2, te2, y2, w2, T2, E2, D2, ee2, c2]);
|
|
4330
4338
|
}
|
|
4331
|
-
function
|
|
4332
|
-
let s2 =
|
|
4333
|
-
|
|
4339
|
+
function vu({ product: e2, inventoryItems: r2, productGroupData: i2, hasLoadedVariants: a2, requestVariants: o2 }) {
|
|
4340
|
+
let s2 = _u({ product: e2, inventoryItems: r2, productGroupData: i2, hasLoadedVariants: a2 }), { selectOption: c2, selectModifier: l2, selectSubscriptionPlan: u2, selectQuantity: d2, productGrouping: f2, ...p2 } = s2, m2 = t((e3, t2) => {
|
|
4341
|
+
du(f2, e3, t2) || o2(), c2(e3, t2);
|
|
4334
4342
|
}, [o2, c2, f2]), h2 = t((e3, t2) => {
|
|
4335
|
-
|
|
4343
|
+
du(f2, e3, t2) || o2(), l2(e3, t2);
|
|
4336
4344
|
}, [o2, l2, f2]), g2 = t((e3) => {
|
|
4337
4345
|
o2(), d2(e3);
|
|
4338
4346
|
}, [o2, d2]);
|
|
4339
4347
|
return n(() => ({ ...p2, productGrouping: f2, selectOption: m2, selectModifier: h2, selectSubscriptionPlan: u2, selectQuantity: g2 }), [s2, m2, h2, u2, g2]);
|
|
4340
4348
|
}
|
|
4341
|
-
var
|
|
4342
|
-
function
|
|
4349
|
+
var yu = { subscriptionPlans: null, description: null, infoSections: null };
|
|
4350
|
+
function bu() {
|
|
4343
4351
|
return s();
|
|
4344
4352
|
}
|
|
4345
|
-
function
|
|
4346
|
-
let i2 =
|
|
4347
|
-
return n(() => ({ source:
|
|
4353
|
+
function xu({ product: e2, defaultLocationId: t2, productGroupData: r2 }) {
|
|
4354
|
+
let i2 = Sl(e2, t2, r2), a2 = vu(i2), o2 = Zl(i2.product, a2), s2 = al({ product: i2.product, userInputs: a2, hasLoadedVariants: i2.hasLoadedVariants }), c2 = Wc(i2.product, a2, s2);
|
|
4355
|
+
return n(() => ({ source: ol.PRODUCT_ITEM, ...c2, ...o2, ...yu }), [c2, o2]);
|
|
4348
4356
|
}
|
|
4349
|
-
function
|
|
4350
|
-
let n2 =
|
|
4357
|
+
function Su({ productItem: e2, children: t2 }) {
|
|
4358
|
+
let n2 = xu(e2);
|
|
4351
4359
|
return a(o, { value: n2, children: t2 });
|
|
4352
4360
|
}
|
|
4353
|
-
function
|
|
4354
|
-
let [n2] = r(() => new
|
|
4355
|
-
return e2 === void 0 ? a(i, { children: t2 }) : a(
|
|
4361
|
+
function Cu({ productItem: e2, children: t2 }) {
|
|
4362
|
+
let [n2] = r(() => new Fr());
|
|
4363
|
+
return e2 === void 0 ? a(i, { children: t2 }) : a(Rr, { client: n2, children: a(Su, { productItem: e2, children: t2 }, e2.product.id) });
|
|
4356
4364
|
}
|
|
4357
|
-
var
|
|
4365
|
+
var wu = Mn(`890cc5ff-b951-47bc-86ed-4dc139f4ff0d`);
|
|
4358
4366
|
export {
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4367
|
+
Cu as ProductItemContextProvider,
|
|
4368
|
+
Cu as default,
|
|
4369
|
+
wu as injectAccessTokenGetter,
|
|
4370
|
+
bu as useProductItemContext,
|
|
4371
|
+
xu as useProductItemContextValue
|
|
4364
4372
|
};
|
|
4365
4373
|
//# sourceMappingURL=context-product-item.mjs.map
|