@wix/stores 1.0.973 → 1.0.975

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/_sdk-exports/context-category-by-id/runtime.d.ts +33 -4
  2. package/_sdk-exports/context-category-by-id/runtime.js +2 -2
  3. package/_sdk-exports/context-category-by-slug/runtime.d.ts +33 -4
  4. package/_sdk-exports/context-category-by-slug/runtime.js +2 -2
  5. package/_sdk-exports/context-category-info/runtime.d.ts +6 -1
  6. package/_sdk-exports/context-category-list/runtime.d.ts +5 -1
  7. package/_sdk-exports/context-product/runtime.d.ts +13 -13
  8. package/_sdk-exports/context-product-by-id/runtime.d.ts +19 -11
  9. package/_sdk-exports/context-product-by-id/runtime.js +2 -2
  10. package/_sdk-exports/context-product-by-slug/runtime.d.ts +17 -11
  11. package/_sdk-exports/context-product-by-slug/runtime.js +2 -2
  12. package/_sdk-exports/context-product-item/runtime.d.ts +35 -2
  13. package/_sdk-exports/context-product-item/runtime.js +2 -2
  14. package/_sdk-exports/context-product-list/runtime.d.ts +29 -1
  15. package/_sdk-exports/context-promotion-item/runtime.d.ts +5 -1
  16. package/build/cjs/context-category-by-id.d.ts +33 -4
  17. package/build/cjs/context-category-by-id.js +1187 -822
  18. package/build/cjs/context-category-by-id.js.map +1 -1
  19. package/build/cjs/context-category-by-slug.d.ts +33 -4
  20. package/build/cjs/context-category-by-slug.js +1382 -1017
  21. package/build/cjs/context-category-by-slug.js.map +1 -1
  22. package/build/cjs/context-category-info.d.ts +6 -1
  23. package/build/cjs/context-category-list.d.ts +5 -1
  24. package/build/cjs/context-product-by-id.d.ts +19 -11
  25. package/build/cjs/context-product-by-id.js +438 -434
  26. package/build/cjs/context-product-by-id.js.map +1 -1
  27. package/build/cjs/context-product-by-slug.d.ts +17 -11
  28. package/build/cjs/context-product-by-slug.js +449 -445
  29. package/build/cjs/context-product-by-slug.js.map +1 -1
  30. package/build/cjs/context-product-item.d.ts +35 -2
  31. package/build/cjs/context-product-item.js +622 -621
  32. package/build/cjs/context-product-item.js.map +1 -1
  33. package/build/cjs/context-product-list.d.ts +29 -1
  34. package/build/cjs/context-product.d.ts +13 -13
  35. package/build/cjs/context-promotion-item.d.ts +5 -1
  36. package/build/es/context-category-by-id.d.mts +33 -4
  37. package/build/es/context-category-by-id.mjs +1194 -829
  38. package/build/es/context-category-by-id.mjs.map +1 -1
  39. package/build/es/context-category-by-slug.d.mts +33 -4
  40. package/build/es/context-category-by-slug.mjs +1382 -1017
  41. package/build/es/context-category-by-slug.mjs.map +1 -1
  42. package/build/es/context-category-info.d.mts +6 -1
  43. package/build/es/context-category-list.d.mts +5 -1
  44. package/build/es/context-product-by-id.d.mts +19 -11
  45. package/build/es/context-product-by-id.mjs +438 -434
  46. package/build/es/context-product-by-id.mjs.map +1 -1
  47. package/build/es/context-product-by-slug.d.mts +17 -11
  48. package/build/es/context-product-by-slug.mjs +449 -445
  49. package/build/es/context-product-by-slug.mjs.map +1 -1
  50. package/build/es/context-product-item.d.mts +35 -2
  51. package/build/es/context-product-item.mjs +622 -621
  52. package/build/es/context-product-item.mjs.map +1 -1
  53. package/build/es/context-product-list.d.mts +29 -1
  54. package/build/es/context-product.d.mts +13 -13
  55. package/build/es/context-promotion-item.d.mts +5 -1
  56. package/build/internal/cjs/context-category-by-id.d.ts +33 -4
  57. package/build/internal/cjs/context-category-by-slug.d.ts +33 -4
  58. package/build/internal/cjs/context-category-info.d.ts +6 -1
  59. package/build/internal/cjs/context-category-list.d.ts +5 -1
  60. package/build/internal/cjs/context-product-by-id.d.ts +19 -11
  61. package/build/internal/cjs/context-product-by-slug.d.ts +17 -11
  62. package/build/internal/cjs/context-product-item.d.ts +35 -2
  63. package/build/internal/cjs/context-product-list.d.ts +29 -1
  64. package/build/internal/cjs/context-product.d.ts +13 -13
  65. package/build/internal/cjs/context-promotion-item.d.ts +5 -1
  66. package/build/internal/es/context-category-by-id.d.mts +33 -4
  67. package/build/internal/es/context-category-by-slug.d.mts +33 -4
  68. package/build/internal/es/context-category-info.d.mts +6 -1
  69. package/build/internal/es/context-category-list.d.mts +5 -1
  70. package/build/internal/es/context-product-by-id.d.mts +19 -11
  71. package/build/internal/es/context-product-by-slug.d.mts +17 -11
  72. package/build/internal/es/context-product-item.d.mts +35 -2
  73. package/build/internal/es/context-product-list.d.mts +29 -1
  74. package/build/internal/es/context-product.d.mts +13 -13
  75. package/build/internal/es/context-promotion-item.d.mts +5 -1
  76. package/package.json +2 -2
@@ -8,21 +8,21 @@ import u from "@wix/stores/category-list-context-provider";
8
8
  import { useGetService as d, useService as f } from "@wix/services-manager-react";
9
9
  var p = Object.create;
10
10
  var m = Object.defineProperty;
11
- var ee = Object.getOwnPropertyDescriptor;
12
- var te = Object.getOwnPropertyNames;
13
- var ne = Object.getPrototypeOf;
14
- var h = Object.prototype.hasOwnProperty;
15
- var g = (e2, t2) => () => (t2 || (e2((t2 = { exports: {} }).exports, t2), e2 = null), t2.exports);
16
- var re = (e2, t2, n2, r2) => {
17
- if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = te(t2), a2 = 0, o2 = i2.length, s2; a2 < o2; a2++) s2 = i2[a2], !h.call(e2, s2) && s2 !== n2 && m(e2, s2, { get: ((e3) => t2[e3]).bind(null, s2), enumerable: !(r2 = ee(t2, s2)) || r2.enumerable });
11
+ var h = Object.getOwnPropertyDescriptor;
12
+ var ee = Object.getOwnPropertyNames;
13
+ var g = Object.getPrototypeOf;
14
+ var _ = Object.prototype.hasOwnProperty;
15
+ var v = (e2, t2) => () => (t2 || (e2((t2 = { exports: {} }).exports, t2), e2 = null), t2.exports);
16
+ var te = (e2, t2, n2, r2) => {
17
+ if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = ee(t2), a2 = 0, o2 = i2.length, s2; a2 < o2; a2++) s2 = i2[a2], !_.call(e2, s2) && s2 !== n2 && m(e2, s2, { get: ((e3) => t2[e3]).bind(null, s2), enumerable: !(r2 = h(t2, s2)) || r2.enumerable });
18
18
  return e2;
19
19
  };
20
- var _ = (e2, t2, n2) => (n2 = e2 == null ? {} : p(ne(e2)), re(t2 || !e2 || !e2.__esModule || !h.call(e2, `default`) ? m(n2, `default`, { value: e2, enumerable: true }) : n2, e2));
21
- var v = {};
22
- function y(e2, t2 = false, n2 = (e3) => e3) {
20
+ var y = (e2, t2, n2) => (n2 = e2 == null ? {} : p(g(e2)), te(t2 || !e2 || !e2.__esModule || !_.call(e2, `default`) ? m(n2, `default`, { value: e2, enumerable: true }) : n2, e2));
21
+ var b = {};
22
+ function x(e2, t2 = false, n2 = (e3) => e3) {
23
23
  return () => ({ __type: `event-definition`, type: e2, isDomainEvent: t2, transformations: n2 });
24
24
  }
25
- var ie = (e2) => {
25
+ var ne = (e2) => {
26
26
  switch (e2) {
27
27
  case `get`:
28
28
  case `GET`:
@@ -49,11 +49,11 @@ var ie = (e2) => {
49
49
  throw Error(`Unknown method: ${e2}`);
50
50
  }
51
51
  };
52
- var ae = (e2) => (t2) => async (n2) => {
52
+ var re = (e2) => (t2) => async (n2) => {
53
53
  let r2, i2 = (t3) => {
54
54
  if (r2 = e2(n2)(t3), r2.url === void 0) throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);
55
55
  let { method: i3, url: a2, params: o2 } = r2;
56
- return { ...r2, method: ie(i3), url: a2, data: r2.data, params: o2 };
56
+ return { ...r2, method: ne(i3), url: a2, data: r2.data, params: o2 };
57
57
  };
58
58
  try {
59
59
  let e3 = await t2.request(i2);
@@ -66,10 +66,10 @@ var ae = (e2) => (t2) => async (n2) => {
66
66
  throw typeof e3 == `object` && e3 && `response` in e3 && typeof e3.response == `object` && e3.response !== null && `data` in e3.response ? e3.response.data : e3;
67
67
  }
68
68
  };
69
- var oe = (e2) => e2.__isAmbassador ? true : !!e2().__isAmbassador;
70
- var se = `__metadata`;
71
- var ce = `edge.wixapis.com`;
72
- var le = class extends Error {
69
+ var ie = (e2) => e2.__isAmbassador ? true : !!e2().__isAmbassador;
70
+ var ae = `__metadata`;
71
+ var oe = `edge.wixapis.com`;
72
+ var se = class extends Error {
73
73
  message;
74
74
  response;
75
75
  constructor(e2, t2) {
@@ -77,108 +77,108 @@ var le = class extends Error {
77
77
  }
78
78
  async details() {
79
79
  let e2 = await this.response.json();
80
- return ue(this.response.status, e2?.message, e2?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e2 });
80
+ return ce(this.response.status, e2?.message, e2?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e2 });
81
81
  }
82
82
  };
83
- var ue = (e2, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e2, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
84
- var de = (e2) => e2?.method && [`post`, `put`, `patch`].includes(e2.method.toLocaleLowerCase()) && e2.body ? { "Content-Type": `application/json` } : {};
85
- var fe = (e2) => e2 && typeof e2 == `object` && !Array.isArray(e2);
86
- var pe = (e2) => e2.__type === `host`;
87
- function me(e2, t2) {
83
+ var ce = (e2, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e2, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
84
+ var le = (e2) => e2?.method && [`post`, `put`, `patch`].includes(e2.method.toLocaleLowerCase()) && e2.body ? { "Content-Type": `application/json` } : {};
85
+ var ue = (e2) => e2 && typeof e2 == `object` && !Array.isArray(e2);
86
+ var de = (e2) => e2.__type === `host`;
87
+ function fe(e2, t2) {
88
88
  return e2.create(t2);
89
89
  }
90
- var he = `x-wix-bi-gateway`;
91
- function ge(e2, t2, n2) {
92
- return { [he]: _e({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e2.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e2.methodFqn, entity: e2.entityFqdn }) };
90
+ var pe = `x-wix-bi-gateway`;
91
+ function me(e2, t2, n2) {
92
+ return { [pe]: he({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e2.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e2.methodFqn, entity: e2.entityFqdn }) };
93
93
  }
94
- function _e(e2) {
94
+ function he(e2) {
95
95
  return Object.entries(e2).filter(([e3, t2]) => !!t2).map(([e3, t2]) => `${e3}=${t2}`).join(`,`);
96
96
  }
97
- function ve(e2) {
98
- let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
99
- globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
97
+ function ge(e2) {
98
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
99
+ globalThis.__wix_context__ = void 0, b.client = void 0, b.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
100
100
  try {
101
101
  return e2();
102
102
  } finally {
103
- globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
103
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
104
104
  }
105
105
  }
106
- var ye = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
107
- function be(e2) {
108
- return Te(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
106
+ var _e = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
107
+ function ve(e2) {
108
+ return Ce(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
109
109
  }
110
- var xe = /([\p{Ll}\d])(\p{Lu})/gu;
111
- var Se = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
112
- var Ce = `$1\0$2`;
113
- var we = /[^\p{L}\d]+/giu;
114
- function Te(e2) {
110
+ var ye = /([\p{Ll}\d])(\p{Lu})/gu;
111
+ var be = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
112
+ var xe = `$1\0$2`;
113
+ var Se = /[^\p{L}\d]+/giu;
114
+ function Ce(e2) {
115
115
  let t2 = e2.trim();
116
- t2 = t2.replace(xe, Ce).replace(Se, Ce), t2 = t2.replace(we, `\0`);
116
+ t2 = t2.replace(ye, xe).replace(be, xe), t2 = t2.replace(Se, `\0`);
117
117
  let n2 = 0, r2 = t2.length;
118
118
  for (; t2.charAt(n2) === `\0`; ) n2++;
119
119
  if (n2 === r2) return [];
120
120
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
121
121
  return t2.slice(n2, r2).split(/\0/g);
122
122
  }
123
- var Ee = (e2) => `validationError` in (e2.response?.data?.details ?? {});
124
- var De = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
125
- var Oe = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
126
- function ke(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
123
+ var we = (e2) => `validationError` in (e2.response?.data?.details ?? {});
124
+ var Te = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
125
+ var Ee = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
126
+ function De(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
127
127
  if (typeof e2 != `object` || !e2) throw e2;
128
- if (Ee(e2)) return Ae(e2, t2, n2);
129
- if (De(e2)) return Me(e2);
130
- if (Oe(e2)) {
131
- let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: be(n3), data: {} }, requestId: e2.requestId };
132
- return je(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
128
+ if (we(e2)) return Oe(e2, t2, n2);
129
+ if (Te(e2)) return Ae(e2);
130
+ if (Ee(e2)) {
131
+ let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ve(n3), data: {} }, requestId: e2.requestId };
132
+ return ke(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
133
133
  }
134
- return Ne(e2);
134
+ return je(e2);
135
135
  }
136
- var Ae = (e2, t2, n2) => {
137
- let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Pe(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 };
138
- return je(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
136
+ var Oe = (e2, t2, n2) => {
137
+ let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Me(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 };
138
+ return ke(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
139
139
  };
140
- var je = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
141
- var Me = (e2) => {
142
- 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 ?? be(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 };
143
- return je(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
140
+ var ke = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
141
+ var Ae = (e2) => {
142
+ 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 ?? ve(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 };
143
+ return ke(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
144
144
  };
145
- var Ne = (e2) => je(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: be(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
146
- var Pe = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
145
+ var je = (e2) => ke(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: ve(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
146
+ var Me = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
147
147
  let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
148
148
  return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
149
149
  let r3 = t2[e3.field];
150
- if (r3) return { ...e3, field: Fe(r3, i2) };
150
+ if (r3) return { ...e3, field: Ne(r3, i2) };
151
151
  let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
152
152
  if (s2) {
153
153
  let t3 = a2[s2];
154
- if (t3) return { ...e3, field: e3.field.replace(s2, Fe(t3, i2)) };
154
+ if (t3) return { ...e3, field: e3.field.replace(s2, Ne(t3, i2)) };
155
155
  }
156
156
  return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
157
157
  });
158
158
  };
159
- var Fe = (e2, t2) => {
160
- let n2 = Ie(e2);
159
+ var Ne = (e2, t2) => {
160
+ let n2 = Pe(e2);
161
161
  return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
162
162
  };
163
- var Ie = (e2) => {
163
+ var Pe = (e2) => {
164
164
  let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
165
165
  return t2 && t2.groups && Number(t2.groups.argIndex);
166
166
  };
167
- function Le(e2, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
168
- return ve(() => e2({ request: async (e3) => {
167
+ function Fe(e2, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
168
+ return ge(() => e2({ request: async (e3) => {
169
169
  let i3 = e3({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
170
170
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
171
- let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? ce : o3}${a3.url}`;
171
+ let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? oe : o3}${a3.url}`;
172
172
  a3.params && a3.params.toString() && (u3 += `?${a3.params.toString()}`);
173
173
  try {
174
- let e4 = ge(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e4 } }, s3 = await n2(u3, o4);
174
+ let e4 = me(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e4 } }, s3 = await n2(u3, o4);
175
175
  if (s3.status !== 200) {
176
176
  let e5 = null;
177
177
  try {
178
178
  e5 = await s3.json();
179
179
  } catch {
180
180
  }
181
- let t3 = ze(s3.status, e5?.message ?? s3.statusText, e5?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e5 }), n3 = ke(t3);
181
+ let t3 = Le(s3.status, e5?.message ?? s3.statusText, e5?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e5 }), n3 = De(t3);
182
182
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
183
183
  }
184
184
  let l3 = await s3.json();
@@ -188,18 +188,18 @@ function Le(e2, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
188
188
  }
189
189
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
190
190
  }
191
- var Re = class extends Error {
191
+ var Ie = class extends Error {
192
192
  response;
193
193
  requestId;
194
194
  constructor(e2) {
195
195
  super(), this.response = e2.response, this.requestId = e2.requestId;
196
196
  }
197
197
  };
198
- var ze = (e2, t2, n2, r2) => new Re({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e2, data: r2 } }, ...n2 }, message: t2 }, status: e2 }, requestId: r2?.requestId });
199
- var Be = `.`;
200
- function Ve(e2, t2, n2) {
198
+ var Le = (e2, t2, n2, r2) => new Ie({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e2, data: r2 } }, ...n2 }, message: t2 }, status: e2 }, requestId: r2?.requestId });
199
+ var Re = `.`;
200
+ function ze(e2, t2, n2) {
201
201
  if (e2 == null) throw Error(`Cannot set value on null or undefined`);
202
- let r2 = He(t2), i2 = e2;
202
+ let r2 = Be(t2), i2 = e2;
203
203
  for (let e3 = 0; e3 < r2.length; e3++) {
204
204
  let t3 = r2[e3];
205
205
  if (e3 === r2.length - 1) {
@@ -211,21 +211,21 @@ function Ve(e2, t2, n2) {
211
211
  }
212
212
  return e2;
213
213
  }
214
- function He(e2) {
215
- return Array.isArray(e2) ? e2 : e2.split(Be).map((e3) => Ue(e3) ? Number(e3) : e3);
214
+ function Be(e2) {
215
+ return Array.isArray(e2) ? e2 : e2.split(Re).map((e3) => Ve(e3) ? Number(e3) : e3);
216
216
  }
217
- function Ue(e2) {
217
+ function Ve(e2) {
218
218
  return /^\d+$/.test(e2);
219
219
  }
220
- function We(e2) {
220
+ function He(e2) {
221
221
  let t2 = {};
222
- for (let [n2, r2] of Object.entries(e2)) Ge(n2) || Ve(t2, He(n2), r2);
222
+ for (let [n2, r2] of Object.entries(e2)) Ue(n2) || ze(t2, Be(n2), r2);
223
223
  return t2;
224
224
  }
225
- function Ge(e2) {
225
+ function Ue(e2) {
226
226
  return e2 === `__proto__` || e2 === `constructor` || e2 === `prototype`;
227
227
  }
228
- var Ke = class {
228
+ var We = class {
229
229
  BRACKET_PATTERN = /\[(\d+)\]/g;
230
230
  NUMERIC_PATTERN = /^\d+$/;
231
231
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -248,7 +248,7 @@ var Ke = class {
248
248
  return e2.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
249
249
  }
250
250
  unflatten() {
251
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e2, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e2)), t2])), We(this.cleanedModifiedFields);
251
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e2, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e2)), t2])), He(this.cleanedModifiedFields);
252
252
  }
253
253
  flatten(e2) {
254
254
  let t2 = {};
@@ -268,12 +268,12 @@ var Ke = class {
268
268
  if (!Array.isArray(n2)) throw Error(`Expected array at path ${this.buildPathString(r2)}, but got ${typeof n2}`);
269
269
  r2.push(`[${e3}]`), n2 = n2[parseInt(e3, 10)];
270
270
  }, a2 = (e3, t3) => {
271
- let i3 = e3 in ye ? ye[e3] : void 0;
271
+ let i3 = e3 in _e ? _e[e3] : void 0;
272
272
  if (i3 && i3 in t3) {
273
273
  r2.push(i3), n2 = t3[i3];
274
274
  return;
275
275
  }
276
- let a3 = Xe(e3);
276
+ let a3 = Je(e3);
277
277
  if (a3 && a3 in t3) {
278
278
  r2.push(a3), n2 = t3[a3];
279
279
  return;
@@ -304,28 +304,28 @@ var Ke = class {
304
304
  return e2.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e2[r2 - 1] === `\\` ? t2 : `.` + n2);
305
305
  }
306
306
  };
307
- function qe(e2, t2) {
307
+ function Ge(e2, t2) {
308
308
  let n2 = e2?.modifiedFields;
309
309
  if (!n2) return null;
310
- let r2 = Je(n2);
310
+ let r2 = Ke(n2);
311
311
  if (!r2) return null;
312
312
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
313
313
  e2 = { ...e2, modifiedFields: i2 };
314
314
  let o2 = t2(e2), s2 = o2?.modifiedFields;
315
315
  if (!s2) return null;
316
- let c2 = Ye(s2, a2);
316
+ let c2 = qe(s2, a2);
317
317
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
318
318
  }
319
- function Je(e2) {
319
+ function Ke(e2) {
320
320
  if (typeof e2 == `object` && e2 && !Array.isArray(e2)) try {
321
- let t2 = new Ke(e2);
321
+ let t2 = new We(e2);
322
322
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
323
323
  } catch {
324
324
  return null;
325
325
  }
326
326
  return null;
327
327
  }
328
- function Ye(e2, t2) {
328
+ function qe(e2, t2) {
329
329
  if (typeof e2 == `object` && e2 && !Array.isArray(e2)) try {
330
330
  return t2.flatten(e2);
331
331
  } catch {
@@ -333,10 +333,10 @@ function Ye(e2, t2) {
333
333
  }
334
334
  return null;
335
335
  }
336
- function Xe(e2) {
336
+ function Je(e2) {
337
337
  return e2.replace(/[-_\s]+(.)?/g, (e3, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e3) => e3.toLowerCase());
338
338
  }
339
- function Ze() {
339
+ function Ye() {
340
340
  return { emit(e2, ...t2) {
341
341
  for (let n2 = 0, r2 = this.events[e2] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
342
342
  }, events: {}, on(e2, t2) {
@@ -345,8 +345,8 @@ function Ze() {
345
345
  };
346
346
  } };
347
347
  }
348
- var Qe = (e2) => e2.__type === `event-definition`;
349
- function $e(e2, t2, n2, r2) {
348
+ var Xe = (e2) => e2.__type === `event-definition`;
349
+ function Ze(e2, t2, n2, r2) {
350
350
  let i2;
351
351
  if (e2.isDomainEvent) {
352
352
  let { deletedEvent: e3, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -357,14 +357,14 @@ function $e(e2, t2, n2, r2) {
357
357
  let e3 = s2.modifiedFields;
358
358
  if (typeof e3 == `object` && e3 && !Array.isArray(e3)) {
359
359
  o2 = structuredClone(i2);
360
- let e4 = qe(s2, a2);
360
+ let e4 = Ge(s2, a2);
361
361
  if (e4) return t2(e4);
362
362
  }
363
363
  }
364
364
  return t2(a2(o2));
365
365
  }
366
- function et(e2) {
367
- let t2 = /* @__PURE__ */ new Map(), n2 = Ze();
366
+ function Qe(e2) {
367
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ye();
368
368
  return { initModule(e3) {
369
369
  return (r2) => {
370
370
  let i2 = t2.get(e3.type) ?? [];
@@ -374,7 +374,7 @@ function et(e2) {
374
374
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e3), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e4) => ({ type: e4 }))];
375
375
  if (c2.length > 0 && !c2.some(({ type: e4 }) => e4 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e4) => e4.type).join(`, `)}`);
376
376
  let l2 = t2.get(r2) ?? [];
377
- return await Promise.all(l2.map(({ eventDefinition: e4, handler: t3 }) => $e(e4, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
377
+ return await Promise.all(l2.map(({ eventDefinition: e4, handler: t3 }) => Ze(e4, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
378
378
  }, async processRequest(e3, t3) {
379
379
  let n3 = await e3.text();
380
380
  return this.process(n3, t3);
@@ -393,12 +393,12 @@ function et(e2) {
393
393
  let n3 = Array.from(t2.keys()).map((e4) => ({ type: e4 }));
394
394
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e3.eventType)) throw Error(`Unexpected event type: ${e3.eventType}. Expected one of: ${n3.map((e4) => e4.type).join(`, `)}`);
395
395
  let r2 = t2.get(e3.eventType) ?? [];
396
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => $e(t3, n4, e3.payload, { instanceId: e3.instanceId, identity: e3.identity })));
397
- }, apps: { AppInstalled: y(`AppInstalled`)(), AppRemoved: y(`AppRemoved`)() } } };
396
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ze(t3, n4, e3.payload, { instanceId: e3.instanceId, identity: e3.identity })));
397
+ }, apps: { AppInstalled: x(`AppInstalled`)(), AppRemoved: x(`AppRemoved`)() } } };
398
398
  }
399
- var tt = (e2) => e2.__type === `service-plugin-definition`;
400
- function nt(e2) {
401
- let t2 = /* @__PURE__ */ new Map(), n2 = Ze();
399
+ var $e = (e2) => e2.__type === `service-plugin-definition`;
400
+ function et(e2) {
401
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ye();
402
402
  return { initModule(e3) {
403
403
  return (r2) => {
404
404
  let i2 = t2.get(e3.componentType.toLowerCase()) ?? [];
@@ -439,43 +439,43 @@ function nt(e2) {
439
439
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e3)));
440
440
  } } };
441
441
  }
442
- var b = `X-Wix-Consistent`;
443
- function rt(e2) {
442
+ var S = `X-Wix-Consistent`;
443
+ function tt(e2) {
444
444
  let t2 = e2.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e3) => Promise.resolve({ headers: {} }) }, r2 = e2.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e2.host), o2 = () => e2.fetch ?? fetch, s2 = async (n3, r3) => {
445
- let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [b]: t2[b] } : {} }, l3 = e2.host?.getErrorHandler?.();
445
+ let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [S]: t2[S] } : {} }, l3 = e2.host?.getErrorHandler?.();
446
446
  try {
447
447
  if (typeof n3 == `string` || n3 instanceof URL) {
448
448
  let e3 = await i3(n3, { ...r3, headers: c3 });
449
449
  l3?.handleError(e3, { requestOptions: { url: n3.toString(), method: r3?.method } });
450
- let a3 = it(e3);
451
- return a3 && (t2[b] = a3), e3;
450
+ let a3 = nt(e3);
451
+ return a3 && (t2[S] = a3), e3;
452
452
  }
453
453
  {
454
454
  for (let [e4, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e4, t3);
455
455
  let e3 = await i3(n3, r3);
456
456
  l3?.handleError(e3, { requestOptions: { url: n3.url, method: r3?.method } });
457
- let a3 = it(e3);
458
- return a3 && (t2[b] = a3), e3;
457
+ let a3 = nt(e3);
458
+ return a3 && (t2[S] = a3), e3;
459
459
  }
460
460
  } catch (e3) {
461
461
  throw l3?.handleError(e3, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e3;
462
462
  }
463
- }, { client: c2, initModule: l2 } = nt(i2), { client: u2, initModule: d2 } = et(i2), f2 = async (n3, r3) => {
464
- let i3 = o2(), s3 = await a2(), c3 = de(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [b]: t2[b] } : {} } }), u3 = it(l3);
465
- return u3 && (t2[b] = u3), l3;
463
+ }, { client: c2, initModule: l2 } = et(i2), { client: u2, initModule: d2 } = Qe(i2), f2 = async (n3, r3) => {
464
+ let i3 = o2(), s3 = await a2(), c3 = le(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [S]: t2[S] } : {} } }), u3 = nt(l3);
465
+ return u3 && (t2[S] = u3), l3;
466
466
  }, p2 = (t3, n3) => {
467
- if (Qe(t3)) return d2(t3);
468
- if (tt(t3)) return l2(t3);
469
- if (pe(t3) && e2.host) return me(t3, e2.host);
467
+ if (Xe(t3)) return d2(t3);
468
+ if ($e(t3)) return l2(t3);
469
+ if (de(t3) && e2.host) return fe(t3, e2.host);
470
470
  if (typeof t3 == `function`) {
471
471
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
472
472
  let r3 = e2.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e2.useCDN === void 0 ? i2().shouldUseCDN : e2.useCDN;
473
- return Le(ve(() => oe(t3)) ? ae(t3) : t3, n3 ?? {}, f2, e2.host?.getErrorHandler?.(), (e3, t4) => {
473
+ return Fe(ge(() => ie(t3)) ? re(t3) : t3, n3 ?? {}, f2, e2.host?.getErrorHandler?.(), (e3, t4) => {
474
474
  let n4 = new URL(e3, `https://${r3}`);
475
475
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
476
476
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e2.host?.name, o3, e2.validateRequestSchema);
477
477
  }
478
- return fe(t3) ? Object.fromEntries(Object.entries(t3).map(([e3, n4]) => [e3, p2(n4, t3[se])])) : t3;
478
+ return ue(t3) ? Object.fromEntries(Object.entries(t3).map(([e3, n4]) => [e3, p2(n4, t3[ae])])) : t3;
479
479
  }, m2 = (e3) => {
480
480
  for (let n3 in e3) t2[n3] = e3[n3];
481
481
  };
@@ -483,36 +483,36 @@ function rt(e2) {
483
483
  let t3 = i2();
484
484
  return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e2.host), t3;
485
485
  }, setHeaders: m2, use: p2, enableContext(e3, t3 = { elevated: false }) {
486
- e3 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? v.elevatedClient = this : v.client = this;
486
+ e3 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? b.elevatedClient = this : b.client = this;
487
487
  }, fetch: (t3, n3) => {
488
488
  let r3 = e2.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
489
489
  return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
490
490
  }, fetchWithAuth: s2, async graphql(t3, n3, r3 = { apiVersion: `alpha` }) {
491
491
  let i3 = e2?.host?.apiBaseUrl ?? `www.wixapis.com`, a3 = await f2(`https://${i3}/graphql/${r3.apiVersion}`, { method: `POST`, headers: { "Content-Type": `application/json` }, body: JSON.stringify({ query: t3, variables: n3 }) });
492
- if (a3.status !== 200) throw new le(`GraphQL request failed with status ${a3.status}`, a3);
492
+ if (a3.status !== 200) throw new se(`GraphQL request failed with status ${a3.status}`, a3);
493
493
  let { data: o3, errors: s3 } = await a3.json();
494
494
  return { data: o3 ?? {}, errors: s3 };
495
495
  }, webhooks: u2, servicePlugins: c2 };
496
496
  }
497
- function it(e2) {
497
+ function nt(e2) {
498
498
  return e2.headers?.get(`X-Wix-Consistent`) ?? e2.headers?.get(`x-wix-consistent`);
499
499
  }
500
- var at = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
501
- var ot = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
502
- var st = `items`;
503
- var ct = `pagingMetadata`;
504
- var lt = at;
505
- function ut(e2, t2) {
500
+ var rt = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
501
+ var it = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
502
+ var at = `items`;
503
+ var ot = `pagingMetadata`;
504
+ var st = rt;
505
+ function ct(e2, t2) {
506
506
  return e2?.split(`.`).map((e3) => t2?.[e3] ?? e3).join(`.`);
507
507
  }
508
- function x(e2, { transformSystemFields: t2 = true } = {}) {
509
- return t2 ? ut(e2, lt) : e2;
508
+ function C(e2, { transformSystemFields: t2 = true } = {}) {
509
+ return t2 ? ct(e2, st) : e2;
510
510
  }
511
- var dt = `sort.fieldName`;
512
- function ft(e2, t2, n2) {
513
- return (e2 === dt || e2.endsWith(`.${dt}`)) && typeof t2 == `string` ? ut(t2, n2) : t2;
511
+ var lt = `sort.fieldName`;
512
+ function ut(e2, t2, n2) {
513
+ return (e2 === lt || e2.endsWith(`.${lt}`)) && typeof t2 == `string` ? ct(t2, n2) : t2;
514
514
  }
515
- function pt(e2, t2, n2) {
515
+ function dt(e2, t2, n2) {
516
516
  let r2 = (e3) => n2.includes(e3), i2 = (e3, n3) => {
517
517
  if (Array.isArray(e3)) e3.forEach((e4) => {
518
518
  i2(e4, n3);
@@ -522,157 +522,157 @@ function pt(e2, t2, n2) {
522
522
  Object.keys(a2).forEach((e4) => {
523
523
  let o2 = n3 === `` ? e4 : `${n3}.${e4}`;
524
524
  if (r2(o2)) return;
525
- let s2 = mt(e4, t2);
526
- s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = ft(o2, a2[s2], t2), i2(a2[s2], o2);
525
+ let s2 = ft(e4, t2);
526
+ s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = ut(o2, a2[s2], t2), i2(a2[s2], o2);
527
527
  });
528
528
  }
529
529
  };
530
530
  return i2(e2, ``), e2;
531
531
  }
532
- function mt(e2, t2) {
532
+ function ft(e2, t2) {
533
533
  let n2;
534
534
  return n2 = e2.includes(`.`) ? e2.split(`.`).map((e3) => t2[e3] ?? e3).join(`.`) : t2[e2] ?? e2, n2;
535
535
  }
536
- function S(e2, t2 = []) {
537
- return pt(e2, at, t2);
536
+ function w(e2, t2 = []) {
537
+ return dt(e2, rt, t2);
538
538
  }
539
- function C(e2, t2 = []) {
540
- return pt(e2, ot, t2);
539
+ function T(e2, t2 = []) {
540
+ return dt(e2, it, t2);
541
541
  }
542
- function w(e2) {
542
+ function E(e2) {
543
543
  return e2 ? new Date(e2) : void 0;
544
544
  }
545
- var ht = /* @__PURE__ */ new WeakMap();
546
- function gt() {
545
+ var pt = /* @__PURE__ */ new WeakMap();
546
+ function mt() {
547
547
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
548
548
  }
549
- function _t(e2, t2) {
549
+ function ht(e2, t2) {
550
550
  let n2 = e2.get(t2);
551
- return n2 || (n2 = gt(), e2.set(t2, n2)), n2;
551
+ return n2 || (n2 = mt(), e2.set(t2, n2)), n2;
552
552
  }
553
- function vt(e2, t2) {
554
- return t2 === `*` ? (e2.anyField ??= gt(), e2.anyField) : t2.endsWith(`{}`) ? (e2.mapFields ??= /* @__PURE__ */ new Map(), _t(e2.mapFields, t2.slice(0, -2))) : (e2.fields ??= /* @__PURE__ */ new Map(), _t(e2.fields, t2));
553
+ function gt(e2, t2) {
554
+ return t2 === `*` ? (e2.anyField ??= mt(), e2.anyField) : t2.endsWith(`{}`) ? (e2.mapFields ??= /* @__PURE__ */ new Map(), ht(e2.mapFields, t2.slice(0, -2))) : (e2.fields ??= /* @__PURE__ */ new Map(), ht(e2.fields, t2));
555
555
  }
556
- function yt(e2) {
557
- let t2 = gt();
556
+ function _t(e2) {
557
+ let t2 = mt();
558
558
  for (let n2 of e2) {
559
- let e3 = n2.path.split(`.`).reduce(vt, t2);
559
+ let e3 = n2.path.split(`.`).reduce(gt, t2);
560
560
  e3.leaves ??= [], e3.leaves.push(n2);
561
561
  }
562
562
  return t2;
563
563
  }
564
- function bt(e2) {
565
- let t2 = ht.get(e2);
566
- return t2 || (t2 = yt(e2), ht.set(e2, t2)), t2;
564
+ function vt(e2) {
565
+ let t2 = pt.get(e2);
566
+ return t2 || (t2 = _t(e2), pt.set(e2, t2)), t2;
567
567
  }
568
- function xt(e2) {
568
+ function yt(e2) {
569
569
  return typeof e2 == `object` && !!e2;
570
570
  }
571
- function St(e2, { isRepeated: t2, isMap: n2 }, r2) {
572
- return t2 ? Array.isArray(e2) ? e2.map(r2) : e2 : n2 ? xt(e2) ? Object.fromEntries(Object.entries(e2).map(([e3, t3]) => [e3, r2(t3)])) : e2 : r2(e2);
571
+ function bt(e2, { isRepeated: t2, isMap: n2 }, r2) {
572
+ return t2 ? Array.isArray(e2) ? e2.map(r2) : e2 : n2 ? yt(e2) ? Object.fromEntries(Object.entries(e2).map(([e3, t3]) => [e3, r2(t3)])) : e2 : r2(e2);
573
573
  }
574
- function Ct(e2, t2, n2) {
575
- xt(e2) && Et(e2, t2, n2);
574
+ function xt(e2, t2, n2) {
575
+ yt(e2) && wt(e2, t2, n2);
576
576
  }
577
- function wt(e2, t2, n2) {
577
+ function St(e2, t2, n2) {
578
578
  for (let [r2, i2] of t2) {
579
579
  if (!(r2 in e2)) continue;
580
- if (i2.leaves) for (let t4 of i2.leaves) e2[r2] = St(e2[r2], t4, n2);
580
+ if (i2.leaves) for (let t4 of i2.leaves) e2[r2] = bt(e2[r2], t4, n2);
581
581
  let t3 = e2[r2];
582
- Array.isArray(t3) ? t3.forEach((e3) => Ct(e3, i2, n2)) : Ct(t3, i2, n2);
582
+ Array.isArray(t3) ? t3.forEach((e3) => xt(e3, i2, n2)) : xt(t3, i2, n2);
583
583
  }
584
584
  }
585
- function Tt(e2, t2, n2) {
585
+ function Ct(e2, t2, n2) {
586
586
  for (let [r2, i2] of t2) {
587
587
  let t3 = e2[r2];
588
- xt(t3) && Object.values(t3).forEach((e3) => Ct(e3, i2, n2));
588
+ yt(t3) && Object.values(t3).forEach((e3) => xt(e3, i2, n2));
589
589
  }
590
590
  }
591
- function Et(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
592
- t2 && wt(e2, t2, i2), n2 && Tt(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => Ct(e3, r2, i2));
591
+ function wt(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
592
+ t2 && St(e2, t2, i2), n2 && Ct(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => xt(e3, r2, i2));
593
593
  }
594
- function T(e2, t2) {
595
- if (!xt(e2)) return e2;
596
- for (let { paths: n2, transformFn: r2 } of t2) Et(e2, bt(n2), r2);
594
+ function D(e2, t2) {
595
+ if (!yt(e2)) return e2;
596
+ for (let { paths: n2, transformFn: r2 } of t2) wt(e2, vt(n2), r2);
597
597
  return e2;
598
598
  }
599
- function Dt(e2) {
600
- return Mt(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
599
+ function Tt(e2) {
600
+ return At(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
601
601
  }
602
- var Ot = /([\p{Ll}\d])(\p{Lu})/gu;
603
- var kt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
604
- var At = `$1\0$2`;
605
- var jt = /[^\p{L}\d]+/giu;
606
- function Mt(e2) {
602
+ var Et = /([\p{Ll}\d])(\p{Lu})/gu;
603
+ var Dt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
604
+ var Ot = `$1\0$2`;
605
+ var kt = /[^\p{L}\d]+/giu;
606
+ function At(e2) {
607
607
  let t2 = e2.trim();
608
- t2 = t2.replace(Ot, At).replace(kt, At), t2 = t2.replace(jt, `\0`);
608
+ t2 = t2.replace(Et, Ot).replace(Dt, Ot), t2 = t2.replace(kt, `\0`);
609
609
  let n2 = 0, r2 = t2.length;
610
610
  for (; t2.charAt(n2) === `\0`; ) n2++;
611
611
  if (n2 === r2) return [];
612
612
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
613
613
  return t2.slice(n2, r2).split(/\0/g);
614
614
  }
615
- var Nt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
616
- var Pt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
617
- var Ft = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
618
- function E(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
615
+ var jt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
616
+ var Mt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
617
+ var Nt = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
618
+ function O(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
619
619
  if (typeof e2 != `object` || !e2) throw e2;
620
- if (Nt(e2)) return It(e2, t2, n2);
621
- if (Pt(e2)) return Rt(e2);
622
- if (Ft(e2)) {
623
- let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: Dt(n3), data: {} }, requestId: e2.requestId };
624
- return Lt(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
620
+ if (jt(e2)) return Pt(e2, t2, n2);
621
+ if (Mt(e2)) return It(e2);
622
+ if (Nt(e2)) {
623
+ let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: Tt(n3), data: {} }, requestId: e2.requestId };
624
+ return Ft(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
625
625
  }
626
- return zt(e2);
626
+ return Lt(e2);
627
627
  }
628
- var It = (e2, t2, n2) => {
629
- let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Bt(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 };
630
- return Lt(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
628
+ var Pt = (e2, t2, n2) => {
629
+ let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Rt(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 };
630
+ return Ft(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
631
631
  };
632
- var Lt = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
633
- var Rt = (e2) => {
634
- 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 ?? Dt(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 };
635
- return Lt(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
632
+ var Ft = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
633
+ var It = (e2) => {
634
+ 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 ?? Tt(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 };
635
+ return Ft(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
636
636
  };
637
- var zt = (e2) => Lt(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: Dt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
638
- var Bt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
637
+ var Lt = (e2) => Ft(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: Tt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
638
+ var Rt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
639
639
  let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
640
640
  return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
641
641
  let r3 = t2[e3.field];
642
- if (r3) return { ...e3, field: Vt(r3, i2) };
642
+ if (r3) return { ...e3, field: zt(r3, i2) };
643
643
  let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
644
644
  if (s2) {
645
645
  let t3 = a2[s2];
646
- if (t3) return { ...e3, field: e3.field.replace(s2, Vt(t3, i2)) };
646
+ if (t3) return { ...e3, field: e3.field.replace(s2, zt(t3, i2)) };
647
647
  }
648
648
  return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
649
649
  });
650
650
  };
651
- var Vt = (e2, t2) => {
652
- let n2 = Ht(e2);
651
+ var zt = (e2, t2) => {
652
+ let n2 = Bt(e2);
653
653
  return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
654
654
  };
655
- var Ht = (e2) => {
655
+ var Bt = (e2) => {
656
656
  let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
657
657
  return t2 && t2.groups && Number(t2.groups.argIndex);
658
658
  };
659
- function Ut() {
659
+ function Vt() {
660
660
  let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
661
661
  if (e2) return { initWixModules(t3, n3) {
662
- return Wt(() => e2(t3, n3));
662
+ return Ht(() => e2(t3, n3));
663
663
  }, fetchWithAuth() {
664
664
  throw Error(`fetchWithAuth is not available in this context`);
665
665
  }, graphql() {
666
666
  throw Error(`graphql is not available in this context`);
667
667
  } };
668
- let t2 = typeof $wixContext < `u` ? $wixContext.client : v.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : v.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : v.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : v.elevatedClient;
668
+ let t2 = typeof $wixContext < `u` ? $wixContext.client : b.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : b.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : b.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : b.elevatedClient;
669
669
  if (t2 || n2) return { initWixModules(e3, r2) {
670
670
  if (r2) {
671
671
  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`);
672
- return Wt(() => n2.use(e3));
672
+ return Ht(() => n2.use(e3));
673
673
  }
674
674
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
675
- return Wt(() => t2.use(e3));
675
+ return Ht(() => t2.use(e3));
676
676
  }, fetchWithAuth: (e3, n3) => {
677
677
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
678
678
  return t2.fetchWithAuth(e3, n3);
@@ -684,117 +684,117 @@ function Ut() {
684
684
  return t2.graphql(e3, n3, r2);
685
685
  } };
686
686
  }
687
- function Wt(e2) {
688
- let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
689
- globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
687
+ function Ht(e2) {
688
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
689
+ globalThis.__wix_context__ = void 0, b.client = void 0, b.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
690
690
  try {
691
691
  return e2();
692
692
  } finally {
693
- globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
693
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
694
694
  }
695
695
  }
696
- function Gt(e2, t2) {
696
+ function Ut(e2, t2) {
697
697
  return (...n2) => {
698
- let r2 = Ut();
698
+ let r2 = Vt();
699
699
  return r2 ? r2.initWixModules(e2, t2).apply(void 0, n2) : e2.apply(void 0, n2);
700
700
  };
701
701
  }
702
- function Kt(e2) {
702
+ function Wt(e2) {
703
703
  let t2 = (...t3) => {
704
- let n2 = Ut();
704
+ let n2 = Vt();
705
705
  return n2 ? n2.initWixModules(e2).apply(void 0, t3) : () => ({ slug: e2.type });
706
706
  };
707
707
  return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
708
708
  }
709
- function D(e2, t2 = false) {
710
- return Gt(e2, t2);
709
+ function k(e2, t2 = false) {
710
+ return Ut(e2, t2);
711
711
  }
712
- function O(e2, t2) {
713
- let n2 = qt(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
714
- return t2 && r2 ? new URLSearchParams({ ".r": Yt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
712
+ function A(e2, t2) {
713
+ let n2 = Gt(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
714
+ return t2 && r2 ? new URLSearchParams({ ".r": qt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
715
715
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
716
716
  }), e3), new URLSearchParams());
717
717
  }
718
- function k(e2) {
719
- let t2 = ln(sn(e2.host), e2.domainToMappings);
720
- return vn(hn(e2.protoPath, e2.data || {}), t2);
718
+ function j(e2) {
719
+ let t2 = sn(an(e2.host), e2.domainToMappings);
720
+ return gn(pn(e2.protoPath, e2.data || {}), t2);
721
721
  }
722
- function qt(e2, t2 = ``) {
722
+ function Gt(e2, t2 = ``) {
723
723
  let n2 = {};
724
724
  return Object.entries(e2).forEach(([e3, r2]) => {
725
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Jt(t2, e3);
725
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Kt(t2, e3);
726
726
  if (i2) {
727
- let e4 = qt(r2, a2);
727
+ let e4 = Gt(r2, a2);
728
728
  Object.assign(n2, e4);
729
729
  } else n2[a2] = r2;
730
730
  }), n2;
731
731
  }
732
- function Jt(e2, t2) {
732
+ function Kt(e2, t2) {
733
733
  return `${e2}${e2 ? `.` : ``}${t2}`;
734
734
  }
735
- var Yt = (e2) => {
735
+ var qt = (e2) => {
736
736
  let t2 = new TextEncoder().encode(e2);
737
737
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e2, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
738
738
  };
739
- var Xt = [`wix.com`, `editorx.com`];
740
- var Zt = `_`;
741
- var Qt = `*.`;
742
- var $t = RegExp(`\\.(${Xt.join(`|`)})$`);
743
- var en = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
744
- var tn = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
745
- var nn = `dev.wix-code.com`;
746
- var rn = /{(.*)}/;
747
- var an = RegExp(`\\.(${en.join(`|`)})$`);
748
- var on = RegExp(`.*\\.${nn}$`);
749
- function sn(e2) {
750
- return cn(e2).replace($t, `._base_domain_`).replace(an, `._api_base_domain_`).replace(on, `*.dev.wix-code.com`);
751
- }
752
- function cn(e2) {
753
- return tn[e2] ?? e2;
754
- }
755
- function ln(e2, t2) {
739
+ var Jt = [`wix.com`, `editorx.com`];
740
+ var Yt = `_`;
741
+ var Xt = `*.`;
742
+ var Zt = RegExp(`\\.(${Jt.join(`|`)})$`);
743
+ var Qt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
744
+ var $t = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
745
+ var en = `dev.wix-code.com`;
746
+ var tn = /{(.*)}/;
747
+ var nn = RegExp(`\\.(${Qt.join(`|`)})$`);
748
+ var rn = RegExp(`.*\\.${en}$`);
749
+ function an(e2) {
750
+ return on(e2).replace(Zt, `._base_domain_`).replace(nn, `._api_base_domain_`).replace(rn, `*.dev.wix-code.com`);
751
+ }
752
+ function on(e2) {
753
+ return $t[e2] ?? e2;
754
+ }
755
+ function sn(e2, t2) {
756
756
  let n2 = t2[e2];
757
757
  if (n2) return n2;
758
- let r2 = un(e2, t2) ?? dn(e2, t2);
758
+ let r2 = cn(e2, t2) ?? ln(e2, t2);
759
759
  if (!r2) {
760
- if (pn(e2)) {
761
- let e3 = t2[mn];
760
+ if (dn(e2)) {
761
+ let e3 = t2[fn];
762
762
  if (e3) return e3;
763
763
  }
764
- let n3 = t2[Zt];
764
+ let n3 = t2[Yt];
765
765
  if (n3) return n3;
766
766
  }
767
767
  return r2 ?? [];
768
768
  }
769
- function un(e2, t2) {
769
+ function cn(e2, t2) {
770
770
  return Object.entries(t2).find(([t3]) => {
771
771
  let [, ...n2] = e2.split(`.`);
772
772
  return n2.join(`.`) === t3;
773
773
  })?.[1];
774
774
  }
775
- function dn(e2, t2) {
776
- let [n2] = Object.entries(t2).filter(([t3]) => fn(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
775
+ function ln(e2, t2) {
776
+ let [n2] = Object.entries(t2).filter(([t3]) => un(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
777
777
  if (!n2) return;
778
778
  let [, r2] = n2;
779
779
  return r2;
780
780
  }
781
- function fn(e2, t2) {
782
- if (!t2.startsWith(Qt)) return false;
781
+ function un(e2, t2) {
782
+ if (!t2.startsWith(Xt)) return false;
783
783
  let n2 = t2.slice(1);
784
784
  return e2.length > n2.length && e2.endsWith(n2);
785
785
  }
786
- function pn(e2) {
786
+ function dn(e2) {
787
787
  return !!e2.match(/\._base_domain_$/);
788
788
  }
789
- var mn = `www._base_domain_`;
790
- function hn(e2, t2) {
791
- return e2.split(`/`).map((e3) => gn(e3, t2)).join(`/`);
789
+ var fn = `www._base_domain_`;
790
+ function pn(e2, t2) {
791
+ return e2.split(`/`).map((e3) => mn(e3, t2)).join(`/`);
792
792
  }
793
- function gn(e2, t2) {
794
- let n2 = e2.match(rn) || [], r2 = n2[1];
795
- return r2 ? _n(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
793
+ function mn(e2, t2) {
794
+ let n2 = e2.match(tn) || [], r2 = n2[1];
795
+ return r2 ? hn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
796
796
  }
797
- function _n(e2, t2, n2, r2) {
797
+ function hn(e2, t2, n2, r2) {
798
798
  let i2 = e2;
799
799
  for (let e3 of t2.split(`.`)) {
800
800
  if (!i2) return n2;
@@ -802,43 +802,43 @@ function _n(e2, t2, n2, r2) {
802
802
  }
803
803
  return `${i2}${r2}`;
804
804
  }
805
- function vn(e2, t2) {
805
+ function gn(e2, t2) {
806
806
  let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
807
807
  return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
808
808
  }
809
- function A(e2) {
810
- return Kt(e2);
809
+ function M(e2) {
810
+ return Wt(e2);
811
811
  }
812
- function yn(e2) {
812
+ function _n(e2) {
813
813
  return isFinite(e2) ? e2 : e2.toString();
814
814
  }
815
- function j(e2) {
815
+ function N(e2) {
816
816
  return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
817
817
  }
818
- var bn = `x-wix-linguist`;
819
- var xn = `00000000-0000-0000-0000-000000000000`;
820
- var Sn = `false`;
821
- var Cn = () => {
822
- let e2 = En(`language`), t2 = En(`locale`);
823
- if (e2) return { [bn]: [e2, t2 || e2, Sn, xn].join(`|`) };
818
+ var vn = `x-wix-linguist`;
819
+ var yn = `00000000-0000-0000-0000-000000000000`;
820
+ var bn = `false`;
821
+ var xn = () => {
822
+ let e2 = wn(`language`), t2 = wn(`locale`);
823
+ if (e2) return { [vn]: [e2, t2 || e2, bn, yn].join(`|`) };
824
824
  };
825
- function wn() {
825
+ function Sn() {
826
826
  let e2 = null, t2 = null;
827
827
  return { promise: new Promise((n2, r2) => {
828
828
  e2 = n2, t2 = r2;
829
829
  }), resolve: e2, reject: t2 };
830
830
  }
831
- var Tn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
832
- var En = (e2) => Tn()?.[e2];
833
- var Dn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
834
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = kn();
835
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: En(`language`), locale: En(`locale`), get passThroughHeaders() {
836
- return Cn();
831
+ var Cn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
832
+ var wn = (e2) => Cn()?.[e2];
833
+ var Tn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
834
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = Dn();
835
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: wn(`language`), locale: wn(`locale`), get passThroughHeaders() {
836
+ return xn();
837
837
  } } };
838
838
  }, auth: (e3) => {
839
839
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
840
- !e3 && On() && (e3 = t2?.getAccessTokenFunction?.());
841
- let n2 = false, { resolve: r2, promise: i2 } = wn();
840
+ !e3 && En() && (e3 = t2?.getAccessTokenFunction?.());
841
+ let n2 = false, { resolve: r2, promise: i2 } = Sn();
842
842
  return { getAuthHeaders: async () => {
843
843
  if (!e3 && n2 && (e3 = await i2), !e3) throw Error(`Failed to resolve auth token`);
844
844
  return { headers: { Authorization: await e3() } };
@@ -846,34 +846,34 @@ var Dn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host:
846
846
  r2(e4);
847
847
  }) };
848
848
  } });
849
- function On() {
849
+ function En() {
850
850
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
851
851
  }
852
- function kn() {
852
+ function Dn() {
853
853
  let e2 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
854
854
  if (!e2) return;
855
855
  let t2 = new URL(e2);
856
856
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
857
857
  }
858
- var An = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
858
+ var On = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
859
859
  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`);
860
860
  return e2.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
861
861
  }, getAccessToken: () => {
862
862
  throw Error(`Not implemented`);
863
863
  }, observeState: () => ({ disconnect: () => {
864
864
  } }) });
865
- var jn = Dn({ createHost: function(e2) {
865
+ var kn = Tn({ createHost: function(e2) {
866
866
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e2?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e2 || {};
867
867
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
868
- return { channel: An({ clientSdk: t2, applicationId: n2 }), close: () => {
868
+ return { channel: On({ clientSdk: t2, applicationId: n2 }), close: () => {
869
869
  } };
870
870
  } });
871
- var Mn = (e2, t2) => {
872
- let n2 = jn.host({ applicationId: e2, componentId: t2 }), r2 = jn.auth();
873
- return rt({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
871
+ var An = (e2, t2) => {
872
+ let n2 = kn.host({ applicationId: e2, componentId: t2 }), r2 = kn.auth();
873
+ return tt({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
874
874
  };
875
- var Nn = (e2) => Mn(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
876
- var Pn = class {
875
+ var jn = (e2) => An(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
876
+ var P = class {
877
877
  constructor() {
878
878
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
879
879
  }
@@ -890,7 +890,7 @@ var Pn = class {
890
890
  onUnsubscribe() {
891
891
  }
892
892
  };
893
- var Fn = new class extends Pn {
893
+ var Mn = new class extends P {
894
894
  #e;
895
895
  #t;
896
896
  #n;
@@ -928,9 +928,9 @@ var Fn = new class extends Pn {
928
928
  return typeof this.#e == `boolean` ? this.#e : globalThis.document?.visibilityState !== `hidden`;
929
929
  }
930
930
  }();
931
- var In = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
932
- var M = new class {
933
- #e = In;
931
+ var Nn = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
932
+ var F = new class {
933
+ #e = Nn;
934
934
  setTimeoutProvider(e2) {
935
935
  this.#e = e2;
936
936
  }
@@ -947,33 +947,33 @@ var M = new class {
947
947
  this.#e.clearInterval(e2);
948
948
  }
949
949
  }();
950
- function Ln(e2) {
950
+ function Pn(e2) {
951
951
  setTimeout(e2, 0);
952
952
  }
953
- var Rn = typeof window > `u` || `Deno` in globalThis;
954
- function N() {
953
+ var Fn = typeof window > `u` || `Deno` in globalThis;
954
+ function I() {
955
955
  }
956
- function zn(e2, t2) {
956
+ function In(e2, t2) {
957
957
  return typeof e2 == `function` ? e2(t2) : e2;
958
958
  }
959
- function Bn(e2) {
959
+ function Ln(e2) {
960
960
  return typeof e2 == `number` && e2 >= 0 && e2 !== 1 / 0;
961
961
  }
962
- function Vn(e2, t2) {
962
+ function Rn(e2, t2) {
963
963
  return Math.max(e2 + (t2 || 0) - Date.now(), 0);
964
964
  }
965
- function P(e2, t2) {
965
+ function L(e2, t2) {
966
966
  return typeof e2 == `function` ? e2(t2) : e2;
967
967
  }
968
- function F(e2, t2) {
968
+ function R(e2, t2) {
969
969
  return typeof e2 == `function` ? e2(t2) : e2;
970
970
  }
971
- function Hn(e2, t2) {
971
+ function zn(e2, t2) {
972
972
  let { type: n2 = `all`, exact: r2, fetchStatus: i2, predicate: a2, queryKey: o2, stale: s2 } = e2;
973
973
  if (o2) {
974
974
  if (r2) {
975
- if (t2.queryHash !== Wn(o2, t2.options)) return false;
976
- } else if (!L(t2.queryKey, o2)) return false;
975
+ if (t2.queryHash !== Vn(o2, t2.options)) return false;
976
+ } else if (!Un(t2.queryKey, o2)) return false;
977
977
  }
978
978
  if (n2 !== `all`) {
979
979
  let e3 = t2.isActive();
@@ -981,97 +981,97 @@ function Hn(e2, t2) {
981
981
  }
982
982
  return !(typeof s2 == `boolean` && t2.isStale() !== s2 || i2 && i2 !== t2.state.fetchStatus || a2 && !a2(t2));
983
983
  }
984
- function Un(e2, t2) {
984
+ function Bn(e2, t2) {
985
985
  let { exact: n2, status: r2, predicate: i2, mutationKey: a2 } = e2;
986
986
  if (a2) {
987
987
  if (!t2.options.mutationKey) return false;
988
988
  if (n2) {
989
- if (I(t2.options.mutationKey) !== I(a2)) return false;
990
- } else if (!L(t2.options.mutationKey, a2)) return false;
989
+ if (Hn(t2.options.mutationKey) !== Hn(a2)) return false;
990
+ } else if (!Un(t2.options.mutationKey, a2)) return false;
991
991
  }
992
992
  return !(r2 && t2.state.status !== r2 || i2 && !i2(t2));
993
993
  }
994
- function Wn(e2, t2) {
995
- return (t2?.queryKeyHashFn || I)(e2);
994
+ function Vn(e2, t2) {
995
+ return (t2?.queryKeyHashFn || Hn)(e2);
996
996
  }
997
- function I(e2) {
998
- return JSON.stringify(e2, (e3, t2) => Yn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
997
+ function Hn(e2) {
998
+ return JSON.stringify(e2, (e3, t2) => Jn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
999
999
  }
1000
- function L(e2, t2) {
1001
- return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) => L(e2[n2], t2[n2])) : false;
1000
+ function Un(e2, t2) {
1001
+ return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) => Un(e2[n2], t2[n2])) : false;
1002
1002
  }
1003
- var Gn = Object.prototype.hasOwnProperty;
1004
- function Kn(e2, t2, n2 = 0) {
1003
+ var Wn = Object.prototype.hasOwnProperty;
1004
+ function Gn(e2, t2, n2 = 0) {
1005
1005
  if (e2 === t2) return e2;
1006
1006
  if (n2 > 500) return t2;
1007
- let r2 = Jn(e2) && Jn(t2);
1008
- if (!r2 && !(Yn(e2) && Yn(t2))) return t2;
1007
+ let r2 = qn(e2) && qn(t2);
1008
+ if (!r2 && !(Jn(e2) && Jn(t2))) return t2;
1009
1009
  let i2 = (r2 ? e2 : Object.keys(e2)).length, a2 = r2 ? t2 : Object.keys(t2), o2 = a2.length, s2 = r2 ? Array(o2) : {}, c2 = 0;
1010
1010
  for (let l2 = 0; l2 < o2; l2++) {
1011
1011
  let o3 = r2 ? l2 : a2[l2], u2 = e2[o3], d2 = t2[o3];
1012
1012
  if (u2 === d2) {
1013
- s2[o3] = u2, (r2 ? l2 < i2 : Gn.call(e2, o3)) && c2++;
1013
+ s2[o3] = u2, (r2 ? l2 < i2 : Wn.call(e2, o3)) && c2++;
1014
1014
  continue;
1015
1015
  }
1016
1016
  if (u2 === null || d2 === null || typeof u2 != `object` || typeof d2 != `object`) {
1017
1017
  s2[o3] = d2;
1018
1018
  continue;
1019
1019
  }
1020
- let f2 = Kn(u2, d2, n2 + 1);
1020
+ let f2 = Gn(u2, d2, n2 + 1);
1021
1021
  s2[o3] = f2, f2 === u2 && c2++;
1022
1022
  }
1023
1023
  return i2 === o2 && c2 === i2 ? e2 : s2;
1024
1024
  }
1025
- function qn(e2, t2) {
1025
+ function Kn(e2, t2) {
1026
1026
  if (!t2 || Object.keys(e2).length !== Object.keys(t2).length) return false;
1027
1027
  for (let n2 in e2) if (e2[n2] !== t2[n2]) return false;
1028
1028
  return true;
1029
1029
  }
1030
- function Jn(e2) {
1030
+ function qn(e2) {
1031
1031
  return Array.isArray(e2) && e2.length === Object.keys(e2).length;
1032
1032
  }
1033
- function Yn(e2) {
1034
- if (!Xn(e2)) return false;
1033
+ function Jn(e2) {
1034
+ if (!Yn(e2)) return false;
1035
1035
  let t2 = e2.constructor;
1036
1036
  if (t2 === void 0) return true;
1037
1037
  let n2 = t2.prototype;
1038
- return !(!Xn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
1038
+ return !(!Yn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
1039
1039
  }
1040
- function Xn(e2) {
1040
+ function Yn(e2) {
1041
1041
  return Object.prototype.toString.call(e2) === `[object Object]`;
1042
1042
  }
1043
- function Zn(e2) {
1043
+ function Xn(e2) {
1044
1044
  return new Promise((t2) => {
1045
- M.setTimeout(t2, e2);
1045
+ F.setTimeout(t2, e2);
1046
1046
  });
1047
1047
  }
1048
- function Qn(e2, t2, n2) {
1049
- return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : Kn(e2, t2);
1048
+ function Zn(e2, t2, n2) {
1049
+ return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : Gn(e2, t2);
1050
1050
  }
1051
- function $n(e2) {
1051
+ function Qn(e2) {
1052
1052
  return e2;
1053
1053
  }
1054
- function er(e2, t2, n2 = 0) {
1054
+ function $n(e2, t2, n2 = 0) {
1055
1055
  let r2 = [...e2, t2];
1056
1056
  return n2 && r2.length > n2 ? r2.slice(1) : r2;
1057
1057
  }
1058
- function tr(e2, t2, n2 = 0) {
1058
+ function er(e2, t2, n2 = 0) {
1059
1059
  let r2 = [t2, ...e2];
1060
1060
  return n2 && r2.length > n2 ? r2.slice(0, -1) : r2;
1061
1061
  }
1062
- var nr = Symbol();
1063
- function rr(e2, t2) {
1064
- return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === nr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
1062
+ var tr = Symbol();
1063
+ function nr(e2, t2) {
1064
+ return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === tr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
1065
1065
  }
1066
- function ir(e2, t2) {
1066
+ function rr(e2, t2) {
1067
1067
  return typeof e2 == `function` ? e2(...t2) : !!e2;
1068
1068
  }
1069
- function ar(e2, t2, n2) {
1069
+ function ir(e2, t2, n2) {
1070
1070
  let r2 = false, i2;
1071
1071
  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;
1072
1072
  }
1073
- var R = /* @__PURE__ */ (() => {
1074
- let e2 = () => Rn;
1073
+ var ar = /* @__PURE__ */ (() => {
1074
+ let e2 = () => Fn;
1075
1075
  return { isServer() {
1076
1076
  return e2();
1077
1077
  }, setIsServer(t2) {
@@ -1093,7 +1093,7 @@ function or() {
1093
1093
  r2({ status: `rejected`, reason: e3 }), t2(e3);
1094
1094
  }, n2;
1095
1095
  }
1096
- var sr = Ln;
1096
+ var sr = Pn;
1097
1097
  function cr() {
1098
1098
  let e2 = [], t2 = 0, n2 = (e3) => {
1099
1099
  e3();
@@ -1135,7 +1135,7 @@ function cr() {
1135
1135
  } };
1136
1136
  }
1137
1137
  var z = cr();
1138
- var lr = new class extends Pn {
1138
+ var lr = new class extends P {
1139
1139
  #e = true;
1140
1140
  #t;
1141
1141
  #n;
@@ -1188,7 +1188,7 @@ function pr(e2) {
1188
1188
  t2 = true;
1189
1189
  }, c2 = () => {
1190
1190
  t2 = false;
1191
- }, l2 = () => Fn.isFocused() && (e2.networkMode === `always` || lr.isOnline()) && e2.canRun(), u2 = () => dr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
1191
+ }, l2 = () => Mn.isFocused() && (e2.networkMode === `always` || lr.isOnline()) && e2.canRun(), u2 = () => dr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
1192
1192
  a2() || (r2?.(), i2.resolve(e3));
1193
1193
  }, f2 = (e3) => {
1194
1194
  a2() || (r2?.(), i2.reject(e3));
@@ -1208,12 +1208,12 @@ function pr(e2) {
1208
1208
  }
1209
1209
  Promise.resolve(r3).then(d2).catch((r4) => {
1210
1210
  if (a2()) return;
1211
- let i4 = e2.retry ?? (R.isServer() ? 0 : 3), o3 = e2.retryDelay ?? ur, s3 = typeof o3 == `function` ? o3(n2, r4) : o3, c3 = i4 === true || typeof i4 == `number` && n2 < i4 || typeof i4 == `function` && i4(n2, r4);
1211
+ let i4 = e2.retry ?? (ar.isServer() ? 0 : 3), o3 = e2.retryDelay ?? ur, s3 = typeof o3 == `function` ? o3(n2, r4) : o3, c3 = i4 === true || typeof i4 == `number` && n2 < i4 || typeof i4 == `function` && i4(n2, r4);
1212
1212
  if (t2 || !c3) {
1213
1213
  f2(r4);
1214
1214
  return;
1215
1215
  }
1216
- n2++, e2.onFail?.(n2, r4), Zn(s3).then(() => l2() ? void 0 : p2()).then(() => {
1216
+ n2++, e2.onFail?.(n2, r4), Xn(s3).then(() => l2() ? void 0 : p2()).then(() => {
1217
1217
  t2 ? f2(r4) : m2();
1218
1218
  });
1219
1219
  });
@@ -1226,29 +1226,29 @@ var mr = class {
1226
1226
  this.clearGcTimeout();
1227
1227
  }
1228
1228
  scheduleGc() {
1229
- this.clearGcTimeout(), Bn(this.gcTime) && (this.#e = M.setTimeout(() => {
1229
+ this.clearGcTimeout(), Ln(this.gcTime) && (this.#e = F.setTimeout(() => {
1230
1230
  this.optionalRemove();
1231
1231
  }, this.gcTime));
1232
1232
  }
1233
1233
  updateGcTime(e2) {
1234
- this.gcTime = Math.max(this.gcTime || 0, e2 ?? (R.isServer() ? 1 / 0 : 3e5));
1234
+ this.gcTime = Math.max(this.gcTime || 0, e2 ?? (ar.isServer() ? 1 / 0 : 3e5));
1235
1235
  }
1236
1236
  clearGcTimeout() {
1237
- this.#e !== void 0 && (M.clearTimeout(this.#e), this.#e = void 0);
1237
+ this.#e !== void 0 && (F.clearTimeout(this.#e), this.#e = void 0);
1238
1238
  }
1239
1239
  };
1240
1240
  function hr(e2) {
1241
1241
  return { onFetch: (t2, n2) => {
1242
1242
  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 () => {
1243
1243
  let n3 = false, l3 = (e3) => {
1244
- ar(e3, () => t2.signal, () => n3 = true);
1245
- }, u2 = rr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
1244
+ ir(e3, () => t2.signal, () => n3 = true);
1245
+ }, u2 = nr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
1246
1246
  if (n3) return Promise.reject(t2.signal.reason);
1247
1247
  if (r3 == null && e3.pages.length) return Promise.resolve(e3);
1248
1248
  let a3 = (() => {
1249
1249
  let e4 = { client: t2.client, queryKey: t2.queryKey, pageParam: r3, direction: i3 ? `backward` : `forward`, meta: t2.options.meta };
1250
1250
  return l3(e4), e4;
1251
- })(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? tr : er;
1251
+ })(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? er : $n;
1252
1252
  return { pages: c3(e3.pages, o3, s3), pageParams: c3(e3.pageParams, r3, s3) };
1253
1253
  };
1254
1254
  if (i2 && a2.length) {
@@ -1311,7 +1311,7 @@ var br = class extends mr {
1311
1311
  !this.observers.length && this.state.fetchStatus === `idle` && this.#r.remove(this);
1312
1312
  }
1313
1313
  setData(e2, t2) {
1314
- let n2 = Qn(this.state.data, e2, this.options);
1314
+ let n2 = Zn(this.state.data, e2, this.options);
1315
1315
  return this.#l({ data: n2, type: `success`, dataUpdatedAt: t2?.updatedAt, manual: t2?.manual }), n2;
1316
1316
  }
1317
1317
  setState(e2) {
@@ -1319,7 +1319,7 @@ var br = class extends mr {
1319
1319
  }
1320
1320
  cancel(e2) {
1321
1321
  let t2 = this.#a?.promise;
1322
- return this.#a?.cancel(e2), t2 ? t2.then(N).catch(N) : Promise.resolve();
1322
+ return this.#a?.cancel(e2), t2 ? t2.then(I).catch(I) : Promise.resolve();
1323
1323
  }
1324
1324
  destroy() {
1325
1325
  super.destroy(), this.cancel({ silent: true });
@@ -1331,22 +1331,22 @@ var br = class extends mr {
1331
1331
  this.destroy(), this.setState(this.resetState);
1332
1332
  }
1333
1333
  isActive() {
1334
- return this.observers.some((e2) => F(e2.options.enabled, this) !== false);
1334
+ return this.observers.some((e2) => R(e2.options.enabled, this) !== false);
1335
1335
  }
1336
1336
  isDisabled() {
1337
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === nr || !this.isFetched();
1337
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === tr || !this.isFetched();
1338
1338
  }
1339
1339
  isFetched() {
1340
1340
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
1341
1341
  }
1342
1342
  isStatic() {
1343
- return this.getObserversCount() > 0 && this.observers.some((e2) => P(e2.options.staleTime, this) === `static`);
1343
+ return this.getObserversCount() > 0 && this.observers.some((e2) => L(e2.options.staleTime, this) === `static`);
1344
1344
  }
1345
1345
  isStale() {
1346
1346
  return this.getObserversCount() > 0 ? this.observers.some((e2) => e2.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
1347
1347
  }
1348
1348
  isStaleByTime(e2 = 0) {
1349
- return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !Vn(this.state.dataUpdatedAt, e2);
1349
+ return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !Rn(this.state.dataUpdatedAt, e2);
1350
1350
  }
1351
1351
  onFocus() {
1352
1352
  this.observers.find((e2) => e2.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false }), this.#a?.continue();
@@ -1381,7 +1381,7 @@ var br = class extends mr {
1381
1381
  let n2 = new AbortController(), r2 = (e3) => {
1382
1382
  Object.defineProperty(e3, "signal", { enumerable: true, get: () => (this.#s = true, n2.signal) });
1383
1383
  }, i2 = () => {
1384
- let e3 = rr(this.options, t2), n3 = (() => {
1384
+ let e3 = nr(this.options, t2), n3 = (() => {
1385
1385
  let e4 = { client: this.#i, queryKey: this.queryKey, meta: this.meta };
1386
1386
  return r2(e4), e4;
1387
1387
  })();
@@ -1456,7 +1456,7 @@ function Cr(e2) {
1456
1456
  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;
1457
1457
  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` };
1458
1458
  }
1459
- var wr = class extends Pn {
1459
+ var wr = class extends P {
1460
1460
  constructor(e2, t2) {
1461
1461
  super(), this.options = t2, this.#e = e2, this.#s = null, this.#o = or(), this.bindMethods(), this.setOptions(t2);
1462
1462
  }
@@ -1495,12 +1495,12 @@ var wr = class extends Pn {
1495
1495
  }
1496
1496
  setOptions(e2) {
1497
1497
  let t2 = this.options, n2 = this.#t;
1498
- if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof F(this.options.enabled, this.#t) != `boolean`) throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);
1499
- this.#S(), this.#t.setOptions(this.options), t2._defaulted && !qn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
1498
+ if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof R(this.options.enabled, this.#t) != `boolean`) throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);
1499
+ this.#S(), this.#t.setOptions(this.options), t2._defaulted && !Kn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
1500
1500
  let r2 = this.hasListeners();
1501
- r2 && Or(this.#t, n2, this.options, t2) && this.#h(), this.updateResult(), r2 && (this.#t !== n2 || F(this.options.enabled, this.#t) !== F(t2.enabled, this.#t) || P(this.options.staleTime, this.#t) !== P(t2.staleTime, this.#t)) && this.#g();
1501
+ r2 && Or(this.#t, n2, this.options, t2) && this.#h(), this.updateResult(), r2 && (this.#t !== n2 || R(this.options.enabled, this.#t) !== R(t2.enabled, this.#t) || L(this.options.staleTime, this.#t) !== L(t2.staleTime, this.#t)) && this.#g();
1502
1502
  let i2 = this.#_();
1503
- r2 && (this.#t !== n2 || F(this.options.enabled, this.#t) !== F(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
1503
+ r2 && (this.#t !== n2 || R(this.options.enabled, this.#t) !== R(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
1504
1504
  }
1505
1505
  getOptimisticResult(e2) {
1506
1506
  let t2 = this.#e.getQueryCache().build(this.#e, e2), n2 = this.createResult(t2, e2);
@@ -1531,14 +1531,14 @@ var wr = class extends Pn {
1531
1531
  #h(e2) {
1532
1532
  this.#S();
1533
1533
  let t2 = this.#t.fetch(this.options, e2);
1534
- return e2?.throwOnError || (t2 = t2.catch(N)), t2;
1534
+ return e2?.throwOnError || (t2 = t2.catch(I)), t2;
1535
1535
  }
1536
1536
  #g() {
1537
1537
  this.#b();
1538
- let e2 = P(this.options.staleTime, this.#t);
1539
- if (R.isServer() || this.#r.isStale || !Bn(e2)) return;
1540
- let t2 = Vn(this.#r.dataUpdatedAt, e2) + 1;
1541
- this.#d = M.setTimeout(() => {
1538
+ let e2 = L(this.options.staleTime, this.#t);
1539
+ if (ar.isServer() || this.#r.isStale || !Ln(e2)) return;
1540
+ let t2 = Rn(this.#r.dataUpdatedAt, e2) + 1;
1541
+ this.#d = F.setTimeout(() => {
1542
1542
  this.#r.isStale || this.updateResult();
1543
1543
  }, t2);
1544
1544
  }
@@ -1546,18 +1546,18 @@ var wr = class extends Pn {
1546
1546
  return (typeof this.options.refetchInterval == `function` ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? false;
1547
1547
  }
1548
1548
  #v(e2) {
1549
- this.#x(), this.#p = e2, !R.isServer() && F(this.options.enabled, this.#t) !== false && Bn(this.#p) && this.#p !== 0 && (this.#f = M.setInterval(() => {
1550
- (this.options.refetchIntervalInBackground || Fn.isFocused()) && this.#h();
1549
+ this.#x(), this.#p = e2, !ar.isServer() && R(this.options.enabled, this.#t) !== false && Ln(this.#p) && this.#p !== 0 && (this.#f = F.setInterval(() => {
1550
+ (this.options.refetchIntervalInBackground || Mn.isFocused()) && this.#h();
1551
1551
  }, this.#p));
1552
1552
  }
1553
1553
  #y() {
1554
1554
  this.#g(), this.#v(this.#_());
1555
1555
  }
1556
1556
  #b() {
1557
- this.#d !== void 0 && (M.clearTimeout(this.#d), this.#d = void 0);
1557
+ this.#d !== void 0 && (F.clearTimeout(this.#d), this.#d = void 0);
1558
1558
  }
1559
1559
  #x() {
1560
- this.#f !== void 0 && (M.clearInterval(this.#f), this.#f = void 0);
1560
+ this.#f !== void 0 && (F.clearInterval(this.#f), this.#f = void 0);
1561
1561
  }
1562
1562
  createResult(e2, t2) {
1563
1563
  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;
@@ -1567,26 +1567,26 @@ var wr = class extends Pn {
1567
1567
  }
1568
1568
  let { error: f2, errorUpdatedAt: p2, status: m2 } = l2;
1569
1569
  d2 = l2.data;
1570
- let ee2 = false;
1570
+ let h2 = false;
1571
1571
  if (t2.placeholderData !== void 0 && d2 === void 0 && m2 === `pending`) {
1572
1572
  let e3;
1573
- i2?.isPlaceholderData && t2.placeholderData === o2?.placeholderData ? (e3 = i2.data, ee2 = true) : e3 = typeof t2.placeholderData == `function` ? t2.placeholderData(this.#u?.state.data, this.#u) : t2.placeholderData, e3 !== void 0 && (m2 = `success`, d2 = Qn(i2?.data, e3, t2), u2 = true);
1573
+ 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 = Zn(i2?.data, e3, t2), u2 = true);
1574
1574
  }
1575
- if (t2.select && d2 !== void 0 && !ee2) {
1575
+ if (t2.select && d2 !== void 0 && !h2) {
1576
1576
  if (i2 && d2 === a2?.data && t2.select === this.#c) d2 = this.#l;
1577
1577
  else try {
1578
- this.#c = t2.select, d2 = t2.select(d2), d2 = Qn(i2?.data, d2, t2), this.#l = d2, this.#s = null;
1578
+ this.#c = t2.select, d2 = t2.select(d2), d2 = Zn(i2?.data, d2, t2), this.#l = d2, this.#s = null;
1579
1579
  } catch (e3) {
1580
1580
  this.#s = e3;
1581
1581
  }
1582
1582
  }
1583
1583
  this.#s && (f2 = this.#s, d2 = this.#l, p2 = Date.now(), m2 = `error`);
1584
- let te2 = l2.fetchStatus === `fetching`, ne2 = m2 === `pending`, h2 = m2 === `error`, g2 = ne2 && te2, re2 = d2 !== void 0, _2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: ne2, isSuccess: m2 === `success`, isError: h2, isInitialLoading: g2, isLoading: g2, 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: te2, isRefetching: te2 && !ne2, isLoadingError: h2 && !re2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: h2 && re2, isStale: kr(e2, t2), refetch: this.refetch, promise: this.#o, isEnabled: F(t2.enabled, e2) !== false };
1584
+ let ee2 = l2.fetchStatus === `fetching`, g2 = m2 === `pending`, _2 = m2 === `error`, v2 = g2 && ee2, te2 = d2 !== void 0, y2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: g2, isSuccess: m2 === `success`, isError: _2, isInitialLoading: v2, isLoading: v2, data: d2, dataUpdatedAt: l2.dataUpdatedAt, error: f2, errorUpdatedAt: p2, failureCount: l2.fetchFailureCount, failureReason: l2.fetchFailureReason, errorUpdateCount: l2.errorUpdateCount, isFetched: e2.isFetched(), isFetchedAfterMount: l2.dataUpdateCount > s2.dataUpdateCount || l2.errorUpdateCount > s2.errorUpdateCount, isFetching: ee2, isRefetching: ee2 && !g2, isLoadingError: _2 && !te2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: _2 && te2, isStale: kr(e2, t2), refetch: this.refetch, promise: this.#o, isEnabled: R(t2.enabled, e2) !== false };
1585
1585
  if (this.options.experimental_prefetchInRender) {
1586
- let t3 = _2.data !== void 0, r3 = _2.status === `error` && !t3, i3 = (e3) => {
1587
- r3 ? e3.reject(_2.error) : t3 && e3.resolve(_2.data);
1586
+ let t3 = y2.data !== void 0, r3 = y2.status === `error` && !t3, i3 = (e3) => {
1587
+ r3 ? e3.reject(y2.error) : t3 && e3.resolve(y2.data);
1588
1588
  }, a3 = () => {
1589
- let e3 = this.#o = _2.promise = or();
1589
+ let e3 = this.#o = y2.promise = or();
1590
1590
  i3(e3);
1591
1591
  }, o3 = this.#o;
1592
1592
  switch (o3.status) {
@@ -1594,17 +1594,17 @@ var wr = class extends Pn {
1594
1594
  e2.queryHash === n2.queryHash && i3(o3);
1595
1595
  break;
1596
1596
  case `fulfilled`:
1597
- (r3 || _2.data !== o3.value) && a3();
1597
+ (r3 || y2.data !== o3.value) && a3();
1598
1598
  break;
1599
1599
  case `rejected`:
1600
- (!r3 || _2.error !== o3.reason) && a3();
1600
+ (!r3 || y2.error !== o3.reason) && a3();
1601
1601
  }
1602
1602
  }
1603
- return _2;
1603
+ return y2;
1604
1604
  }
1605
1605
  updateResult() {
1606
1606
  let e2 = this.#r, t2 = this.createResult(this.#t, this.options);
1607
- this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !qn(t2, e2) && (this.#r = t2, this.#C({ listeners: (() => {
1607
+ this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !Kn(t2, e2) && (this.#r = t2, this.#C({ listeners: (() => {
1608
1608
  if (!e2) return true;
1609
1609
  let { notifyOnChangeProps: t3 } = this.options, n2 = typeof t3 == `function` ? t3() : t3;
1610
1610
  if (n2 === `all` || !n2 && !this.#m.size) return true;
@@ -1633,26 +1633,26 @@ var wr = class extends Pn {
1633
1633
  }
1634
1634
  };
1635
1635
  function Tr(e2, t2) {
1636
- return F(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || F(t2.retryOnMount, e2) !== false);
1636
+ return R(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || R(t2.retryOnMount, e2) !== false);
1637
1637
  }
1638
1638
  function Er(e2, t2) {
1639
1639
  return Tr(e2, t2) || e2.state.data !== void 0 && Dr(e2, t2, t2.refetchOnMount);
1640
1640
  }
1641
1641
  function Dr(e2, t2, n2) {
1642
- if (F(t2.enabled, e2) !== false && P(t2.staleTime, e2) !== `static`) {
1642
+ if (R(t2.enabled, e2) !== false && L(t2.staleTime, e2) !== `static`) {
1643
1643
  let r2 = typeof n2 == `function` ? n2(e2) : n2;
1644
1644
  return r2 === `always` || r2 !== false && kr(e2, t2);
1645
1645
  }
1646
1646
  return false;
1647
1647
  }
1648
1648
  function Or(e2, t2, n2, r2) {
1649
- return (e2 !== t2 || F(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && kr(e2, n2);
1649
+ return (e2 !== t2 || R(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && kr(e2, n2);
1650
1650
  }
1651
1651
  function kr(e2, t2) {
1652
- return F(t2.enabled, e2) !== false && e2.isStaleByTime(P(t2.staleTime, e2));
1652
+ return R(t2.enabled, e2) !== false && e2.isStaleByTime(L(t2.staleTime, e2));
1653
1653
  }
1654
1654
  function Ar(e2, t2) {
1655
- return !qn(e2.getCurrentResult(), t2);
1655
+ return !Kn(e2.getCurrentResult(), t2);
1656
1656
  }
1657
1657
  var jr = class extends wr {
1658
1658
  constructor(e2, t2) {
@@ -1776,7 +1776,7 @@ var Mr = class extends mr {
1776
1776
  function Nr() {
1777
1777
  return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: false, status: `idle`, variables: void 0, submittedAt: 0 };
1778
1778
  }
1779
- var Pr = class extends Pn {
1779
+ var Pr = class extends P {
1780
1780
  constructor(e2 = {}) {
1781
1781
  super(), this.config = e2, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
1782
1782
  }
@@ -1835,10 +1835,10 @@ var Pr = class extends Pn {
1835
1835
  }
1836
1836
  find(e2) {
1837
1837
  let t2 = { exact: true, ...e2 };
1838
- return this.getAll().find((e3) => Un(t2, e3));
1838
+ return this.getAll().find((e3) => Bn(t2, e3));
1839
1839
  }
1840
1840
  findAll(e2 = {}) {
1841
- return this.getAll().filter((t2) => Un(e2, t2));
1841
+ return this.getAll().filter((t2) => Bn(e2, t2));
1842
1842
  }
1843
1843
  notify(e2) {
1844
1844
  z.batch(() => {
@@ -1849,19 +1849,135 @@ var Pr = class extends Pn {
1849
1849
  }
1850
1850
  resumePausedMutations() {
1851
1851
  let e2 = this.getAll().filter((e3) => e3.state.isPaused);
1852
- return z.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(N))));
1852
+ return z.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(I))));
1853
1853
  }
1854
1854
  };
1855
1855
  function Fr(e2) {
1856
1856
  return e2.options.scope?.id;
1857
1857
  }
1858
- var Ir = class extends Pn {
1858
+ function Ir(e2, t2) {
1859
+ let n2 = new Set(t2);
1860
+ return e2.filter((e3) => !n2.has(e3));
1861
+ }
1862
+ function Lr(e2, t2, n2) {
1863
+ let r2 = e2.slice(0);
1864
+ return r2[t2] = n2, r2;
1865
+ }
1866
+ var Rr = class extends P {
1867
+ #e;
1868
+ #t;
1869
+ #n;
1870
+ #r;
1871
+ #i;
1872
+ #a;
1873
+ #o;
1874
+ #s;
1875
+ #c;
1876
+ #l = [];
1877
+ constructor(e2, t2, n2) {
1878
+ super(), this.#e = e2, this.#r = n2, this.#n = [], this.#i = [], this.#t = [], this.setQueries(t2);
1879
+ }
1880
+ onSubscribe() {
1881
+ this.listeners.size === 1 && this.#i.forEach((e2) => {
1882
+ e2.subscribe((t2) => {
1883
+ this.#m(e2, t2);
1884
+ });
1885
+ });
1886
+ }
1887
+ onUnsubscribe() {
1888
+ this.listeners.size || this.destroy();
1889
+ }
1890
+ destroy() {
1891
+ this.listeners = /* @__PURE__ */ new Set(), this.#i.forEach((e2) => {
1892
+ e2.destroy();
1893
+ });
1894
+ }
1895
+ setQueries(e2, t2) {
1896
+ this.#n = e2, this.#r = t2, z.batch(() => {
1897
+ let e3 = this.#i, t3 = this.#p(this.#n);
1898
+ t3.forEach((e4) => e4.observer.setOptions(e4.defaultedQueryOptions));
1899
+ let n2 = t3.map((e4) => e4.observer), r2 = n2.map((e4) => e4.getCurrentResult()), i2 = e3.length !== n2.length, a2 = n2.some((t4, n3) => t4 !== e3[n3]), o2 = i2 || a2, s2 = o2 ? true : r2.some((e4, t4) => {
1900
+ let n3 = this.#t[t4];
1901
+ return !n3 || !Kn(e4, n3);
1902
+ });
1903
+ (o2 || s2) && (o2 && (this.#l = t3, this.#i = n2), this.#t = r2, this.hasListeners() && (o2 && (Ir(e3, n2).forEach((e4) => {
1904
+ e4.destroy();
1905
+ }), Ir(n2, e3).forEach((e4) => {
1906
+ e4.subscribe((t4) => {
1907
+ this.#m(e4, t4);
1908
+ });
1909
+ })), this.#h()));
1910
+ });
1911
+ }
1912
+ getCurrentResult() {
1913
+ return this.#t;
1914
+ }
1915
+ getQueries() {
1916
+ return this.#i.map((e2) => e2.getCurrentQuery());
1917
+ }
1918
+ getObservers() {
1919
+ return this.#i;
1920
+ }
1921
+ getOptimisticResult(e2, t2) {
1922
+ let n2 = this.#p(e2), r2 = n2.map((e3) => e3.observer.getOptimisticResult(e3.defaultedQueryOptions)), i2 = n2.map((e3) => e3.defaultedQueryOptions.queryHash);
1923
+ return [r2, (e3) => this.#d(e3 ?? r2, t2, i2), () => this.#u(r2, n2)];
1924
+ }
1925
+ #u(e2, t2) {
1926
+ return t2.map((n2, r2) => {
1927
+ let i2 = e2[r2];
1928
+ return n2.defaultedQueryOptions.notifyOnChangeProps ? i2 : n2.observer.trackResult(i2, (e3) => {
1929
+ t2.forEach((t3) => {
1930
+ t3.observer.trackProp(e3);
1931
+ });
1932
+ });
1933
+ });
1934
+ }
1935
+ #d(e2, t2, n2) {
1936
+ if (t2) {
1937
+ let r2 = this.#c, i2 = n2 !== void 0 && r2 !== void 0 && (r2.length !== n2.length || n2.some((e3, t3) => e3 !== r2[t3]));
1938
+ return (!this.#a || this.#t !== this.#s || i2 || t2 !== this.#o) && (this.#o = t2, this.#s = this.#t, n2 !== void 0 && (this.#c = n2), this.#a = Gn(this.#a, t2(e2))), this.#a;
1939
+ }
1940
+ return e2;
1941
+ }
1942
+ #f() {
1943
+ return this.#r?.combine !== void 0 && this.#i.some((e2, t2) => e2.options.suspense && this.#t[t2]?.data === void 0);
1944
+ }
1945
+ #p(e2) {
1946
+ let t2 = /* @__PURE__ */ new Map();
1947
+ this.#i.forEach((e3) => {
1948
+ let n3 = e3.options.queryHash;
1949
+ if (!n3) return;
1950
+ let r2 = t2.get(n3);
1951
+ r2 ? r2.push(e3) : t2.set(n3, [e3]);
1952
+ });
1953
+ let n2 = [];
1954
+ return e2.forEach((e3) => {
1955
+ let r2 = this.#e.defaultQueryOptions(e3), i2 = t2.get(r2.queryHash)?.shift() ?? new wr(this.#e, r2);
1956
+ n2.push({ defaultedQueryOptions: r2, observer: i2 });
1957
+ }), n2;
1958
+ }
1959
+ #m(e2, t2) {
1960
+ let n2 = this.#i.indexOf(e2);
1961
+ n2 !== -1 && (this.#t = Lr(this.#t, n2, t2), this.#h());
1962
+ }
1963
+ #h() {
1964
+ if (this.hasListeners()) {
1965
+ let e2 = this.#u(this.#t, this.#l), t2 = this.#f(), n2 = this.#a, r2 = t2 ? n2 : this.#d(e2, this.#r?.combine);
1966
+ (t2 || n2 !== r2) && z.batch(() => {
1967
+ this.listeners.forEach((e3) => {
1968
+ e3(this.#t);
1969
+ });
1970
+ });
1971
+ }
1972
+ }
1973
+ };
1974
+ var zr = class extends P {
1859
1975
  constructor(e2 = {}) {
1860
1976
  super(), this.config = e2, this.#e = /* @__PURE__ */ new Map();
1861
1977
  }
1862
1978
  #e;
1863
1979
  build(e2, t2, n2) {
1864
- let r2 = t2.queryKey, i2 = t2.queryHash ?? Wn(r2, t2), a2 = this.get(i2);
1980
+ let r2 = t2.queryKey, i2 = t2.queryHash ?? Vn(r2, t2), a2 = this.get(i2);
1865
1981
  return a2 || (a2 = new br({ client: e2, queryKey: r2, queryHash: i2, options: e2.defaultQueryOptions(t2), state: n2, defaultOptions: e2.getQueryDefaults(r2) }), this.add(a2)), a2;
1866
1982
  }
1867
1983
  add(e2) {
@@ -1886,11 +2002,11 @@ var Ir = class extends Pn {
1886
2002
  }
1887
2003
  find(e2) {
1888
2004
  let t2 = { exact: true, ...e2 };
1889
- return this.getAll().find((e3) => Hn(t2, e3));
2005
+ return this.getAll().find((e3) => zn(t2, e3));
1890
2006
  }
1891
2007
  findAll(e2 = {}) {
1892
2008
  let t2 = this.getAll();
1893
- return Object.keys(e2).length > 0 ? t2.filter((t3) => Hn(e2, t3)) : t2;
2009
+ return Object.keys(e2).length > 0 ? t2.filter((t3) => zn(e2, t3)) : t2;
1894
2010
  }
1895
2011
  notify(e2) {
1896
2012
  z.batch(() => {
@@ -1914,7 +2030,7 @@ var Ir = class extends Pn {
1914
2030
  });
1915
2031
  }
1916
2032
  };
1917
- var Lr = class {
2033
+ var Br = class {
1918
2034
  #e;
1919
2035
  #t;
1920
2036
  #n;
@@ -1924,10 +2040,10 @@ var Lr = class {
1924
2040
  #o;
1925
2041
  #s;
1926
2042
  constructor(e2 = {}) {
1927
- this.#e = e2.queryCache || new Ir(), this.#t = e2.mutationCache || new Pr(), this.#n = e2.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
2043
+ this.#e = e2.queryCache || new zr(), this.#t = e2.mutationCache || new Pr(), this.#n = e2.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1928
2044
  }
1929
2045
  mount() {
1930
- this.#a++, this.#a === 1 && (this.#o = Fn.subscribe(async (e2) => {
2046
+ this.#a++, this.#a === 1 && (this.#o = Mn.subscribe(async (e2) => {
1931
2047
  e2 && (await this.resumePausedMutations(), this.#e.onFocus());
1932
2048
  }), this.#s = lr.subscribe(async (e2) => {
1933
2049
  e2 && (await this.resumePausedMutations(), this.#e.onOnline());
@@ -1948,13 +2064,13 @@ var Lr = class {
1948
2064
  }
1949
2065
  ensureQueryData(e2) {
1950
2066
  let t2 = this.defaultQueryOptions(e2), n2 = this.#e.build(this, t2), r2 = n2.state.data;
1951
- return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(P(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
2067
+ return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(L(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
1952
2068
  }
1953
2069
  getQueriesData(e2) {
1954
2070
  return this.#e.findAll(e2).map(({ queryKey: e3, state: t2 }) => [e3, t2.data]);
1955
2071
  }
1956
2072
  setQueryData(e2, t2, n2) {
1957
- let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = zn(t2, i2);
2073
+ let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = In(t2, i2);
1958
2074
  if (a2 !== void 0) return this.#e.build(this, r2).setData(a2, { ...n2, manual: true });
1959
2075
  }
1960
2076
  setQueriesData(e2, t2, n2) {
@@ -1980,7 +2096,7 @@ var Lr = class {
1980
2096
  }
1981
2097
  cancelQueries(e2, t2 = {}) {
1982
2098
  let n2 = { revert: true, ...t2 }, r2 = z.batch(() => this.#e.findAll(e2).map((e3) => e3.cancel(n2)));
1983
- return Promise.all(r2).then(N).catch(N);
2099
+ return Promise.all(r2).then(I).catch(I);
1984
2100
  }
1985
2101
  invalidateQueries(e2, t2 = {}) {
1986
2102
  return z.batch(() => (this.#e.findAll(e2).forEach((e3) => {
@@ -1990,24 +2106,24 @@ var Lr = class {
1990
2106
  refetchQueries(e2, t2 = {}) {
1991
2107
  let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 = z.batch(() => this.#e.findAll(e2).filter((e3) => !e3.isDisabled() && !e3.isStatic()).map((e3) => {
1992
2108
  let t3 = e3.fetch(void 0, n2);
1993
- return n2.throwOnError || (t3 = t3.catch(N)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
2109
+ return n2.throwOnError || (t3 = t3.catch(I)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
1994
2110
  }));
1995
- return Promise.all(r2).then(N);
2111
+ return Promise.all(r2).then(I);
1996
2112
  }
1997
2113
  fetchQuery(e2) {
1998
2114
  let t2 = this.defaultQueryOptions(e2);
1999
2115
  t2.retry === void 0 && (t2.retry = false);
2000
2116
  let n2 = this.#e.build(this, t2);
2001
- return n2.isStaleByTime(P(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
2117
+ return n2.isStaleByTime(L(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
2002
2118
  }
2003
2119
  prefetchQuery(e2) {
2004
- return this.fetchQuery(e2).then(N).catch(N);
2120
+ return this.fetchQuery(e2).then(I).catch(I);
2005
2121
  }
2006
2122
  fetchInfiniteQuery(e2) {
2007
2123
  return e2._type = `infinite`, this.fetchQuery(e2);
2008
2124
  }
2009
2125
  prefetchInfiniteQuery(e2) {
2010
- return this.fetchInfiniteQuery(e2).then(N).catch(N);
2126
+ return this.fetchInfiniteQuery(e2).then(I).catch(I);
2011
2127
  }
2012
2128
  ensureInfiniteQueryData(e2) {
2013
2129
  return e2._type = `infinite`, this.ensureQueryData(e2);
@@ -2028,27 +2144,27 @@ var Lr = class {
2028
2144
  this.#n = e2;
2029
2145
  }
2030
2146
  setQueryDefaults(e2, t2) {
2031
- this.#r.set(I(e2), { queryKey: e2, defaultOptions: t2 });
2147
+ this.#r.set(Hn(e2), { queryKey: e2, defaultOptions: t2 });
2032
2148
  }
2033
2149
  getQueryDefaults(e2) {
2034
2150
  let t2 = [...this.#r.values()], n2 = {};
2035
2151
  return t2.forEach((t3) => {
2036
- L(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
2152
+ Un(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
2037
2153
  }), n2;
2038
2154
  }
2039
2155
  setMutationDefaults(e2, t2) {
2040
- this.#i.set(I(e2), { mutationKey: e2, defaultOptions: t2 });
2156
+ this.#i.set(Hn(e2), { mutationKey: e2, defaultOptions: t2 });
2041
2157
  }
2042
2158
  getMutationDefaults(e2) {
2043
2159
  let t2 = [...this.#i.values()], n2 = {};
2044
2160
  return t2.forEach((t3) => {
2045
- L(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
2161
+ Un(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
2046
2162
  }), n2;
2047
2163
  }
2048
2164
  defaultQueryOptions(e2) {
2049
2165
  if (e2._defaulted) return e2;
2050
2166
  let t2 = { ...this.#n.queries, ...this.getQueryDefaults(e2.queryKey), ...e2, _defaulted: true };
2051
- return t2.queryHash ||= Wn(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;
2167
+ return t2.queryHash ||= Vn(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 === tr && (t2.enabled = false), t2;
2052
2168
  }
2053
2169
  defaultMutationOptions(e2) {
2054
2170
  return e2?._defaulted ? e2 : { ...this.#n.mutations, ...e2?.mutationKey && this.getMutationDefaults(e2.mutationKey), ...e2, _defaulted: true };
@@ -2057,20 +2173,20 @@ var Lr = class {
2057
2173
  this.#e.clear(), this.#t.clear();
2058
2174
  }
2059
2175
  };
2060
- var Rr = e.createContext(void 0);
2061
- var zr = (t2) => {
2062
- let n2 = e.useContext(Rr);
2176
+ var Vr = e.createContext(void 0);
2177
+ var Hr = (t2) => {
2178
+ let n2 = e.useContext(Vr);
2063
2179
  if (t2) return t2;
2064
2180
  if (!n2) throw Error(`No QueryClient set, use QueryClientProvider to set one`);
2065
2181
  return n2;
2066
2182
  };
2067
- var Br = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
2183
+ var Ur = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
2068
2184
  t2.unmount();
2069
- }), [t2]), s(Rr.Provider, { value: t2, children: n2 }));
2070
- var Vr = e.createContext(false);
2071
- var Hr = () => e.useContext(Vr);
2072
- Vr.Provider;
2073
- function Ur() {
2185
+ }), [t2]), s(Vr.Provider, { value: t2, children: n2 }));
2186
+ var Wr = e.createContext(false);
2187
+ var Gr = () => e.useContext(Wr);
2188
+ Wr.Provider;
2189
+ function Kr() {
2074
2190
  let e2 = false;
2075
2191
  return { clearReset: () => {
2076
2192
  e2 = false;
@@ -2078,61 +2194,87 @@ function Ur() {
2078
2194
  e2 = true;
2079
2195
  }, isReset: () => e2 };
2080
2196
  }
2081
- var Wr = e.createContext(Ur());
2082
- var Gr = () => e.useContext(Wr);
2083
- var Kr = (e2, t2, n2) => {
2084
- let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? ir(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
2197
+ var qr = e.createContext(Kr());
2198
+ var Jr = () => e.useContext(qr);
2199
+ var Yr = (e2, t2, n2) => {
2200
+ let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? rr(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
2085
2201
  (e2.suspense || e2.experimental_prefetchInRender || r2) && (t2.isReset() || (e2.retryOnMount = false));
2086
2202
  };
2087
- var qr = (t2) => {
2203
+ var Xr = (t2) => {
2088
2204
  e.useEffect(() => {
2089
2205
  t2.clearReset();
2090
2206
  }, [t2]);
2091
2207
  };
2092
- var Jr = ({ 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]));
2093
- var Yr = (e2) => {
2208
+ var Zr = ({ result: e2, errorResetBoundary: t2, throwOnError: n2, query: r2, suspense: i2 }) => e2.isError && !t2.isReset() && !e2.isFetching && r2 && (i2 && e2.data === void 0 || rr(n2, [e2.error, r2]));
2209
+ var Qr = (e2) => {
2094
2210
  if (e2.suspense) {
2095
2211
  let t2 = 1e3, n2 = (e3) => e3 === `static` ? e3 : Math.max(e3 ?? t2, t2), r2 = e2.staleTime;
2096
2212
  e2.staleTime = typeof r2 == `function` ? (...e3) => n2(r2(...e3)) : n2(r2), typeof e2.gcTime == `number` && (e2.gcTime = Math.max(e2.gcTime, t2));
2097
2213
  }
2098
2214
  };
2099
- var Xr = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
2100
- var Zr = (e2, t2) => e2?.suspense && t2.isPending;
2101
- var Qr = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
2215
+ var $r = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
2216
+ var ei = (e2, t2) => e2?.suspense && t2.isPending;
2217
+ var ti = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
2102
2218
  n2.clearReset();
2103
2219
  });
2104
- function $r(t2, n2, r2) {
2105
- let i2 = Hr(), a2 = Gr(), o2 = zr(r2), s2 = o2.defaultQueryOptions(t2);
2220
+ function ni({ queries: t2, ...n2 }, r2) {
2221
+ let i2 = Hr(r2), a2 = Gr(), o2 = Jr(), s2 = e.useMemo(() => t2.map((e2) => {
2222
+ let t3 = i2.defaultQueryOptions(e2);
2223
+ return t3._optimisticResults = a2 ? `isRestoring` : `optimistic`, t3;
2224
+ }), [t2, i2, a2]);
2225
+ s2.forEach((e2) => {
2226
+ Qr(e2);
2227
+ let t3 = i2.getQueryCache().get(e2.queryHash);
2228
+ Yr(e2, o2, t3);
2229
+ }), Xr(o2);
2230
+ let [c2] = e.useState(() => new Rr(i2, s2, n2)), [l2, u2, d2] = c2.getOptimisticResult(s2, n2.combine), f2 = !a2 && n2.subscribed !== false;
2231
+ e.useSyncExternalStore(e.useCallback((e2) => f2 ? c2.subscribe(z.batchCalls(e2)) : I, [c2, f2]), () => c2.getCurrentResult(), () => c2.getCurrentResult()), e.useEffect(() => {
2232
+ c2.setQueries(s2, n2);
2233
+ }, [s2, n2, c2]);
2234
+ let p2 = l2.some((e2, t3) => ei(s2[t3], e2)) ? l2.flatMap((e2, t3) => {
2235
+ let n3 = s2[t3];
2236
+ return n3 && ei(n3, e2) ? ti(n3, new wr(i2, n3), o2) : [];
2237
+ }) : [];
2238
+ if (p2.length > 0) throw Promise.all(p2);
2239
+ let m2 = l2.find((e2, t3) => {
2240
+ let n3 = s2[t3];
2241
+ return n3 && Zr({ result: e2, errorResetBoundary: o2, throwOnError: n3.throwOnError, query: i2.getQueryCache().get(n3.queryHash), suspense: n3.suspense });
2242
+ });
2243
+ if (m2?.error) throw m2.error;
2244
+ return u2(d2());
2245
+ }
2246
+ function ri(t2, n2, r2) {
2247
+ let i2 = Gr(), a2 = Jr(), o2 = Hr(r2), s2 = o2.defaultQueryOptions(t2);
2106
2248
  o2.getDefaultOptions().queries?._experimental_beforeQuery?.(s2);
2107
2249
  let c2 = o2.getQueryCache().get(s2.queryHash), l2 = t2.subscribed !== false;
2108
- s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, Yr(s2), Kr(s2, a2, c2), qr(a2);
2250
+ s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, Qr(s2), Yr(s2, a2, c2), Xr(a2);
2109
2251
  let u2 = !o2.getQueryCache().get(s2.queryHash), [d2] = e.useState(() => new n2(o2, s2)), f2 = d2.getOptimisticResult(s2), p2 = !i2 && l2;
2110
2252
  if (e.useSyncExternalStore(e.useCallback((e2) => {
2111
- let t3 = p2 ? d2.subscribe(z.batchCalls(e2)) : N;
2253
+ let t3 = p2 ? d2.subscribe(z.batchCalls(e2)) : I;
2112
2254
  return d2.updateResult(), t3;
2113
2255
  }, [d2, p2]), () => d2.getCurrentResult(), () => d2.getCurrentResult()), e.useEffect(() => {
2114
2256
  d2.setOptions(s2);
2115
- }, [s2, d2]), Zr(s2, f2)) throw Qr(s2, d2, a2);
2116
- if (Jr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
2117
- return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !R.isServer() && Xr(f2, i2) && (u2 ? Qr(s2, d2, a2) : c2?.promise)?.catch(N).finally(() => {
2257
+ }, [s2, d2]), ei(s2, f2)) throw ti(s2, d2, a2);
2258
+ if (Zr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
2259
+ return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !ar.isServer() && $r(f2, i2) && (u2 ? ti(s2, d2, a2) : c2?.promise)?.catch(I).finally(() => {
2118
2260
  d2.updateResult();
2119
2261
  }), s2.notifyOnChangeProps ? f2 : d2.trackResult(f2);
2120
2262
  }
2121
- function ei(e2, t2) {
2122
- return $r(e2, jr, t2);
2263
+ function ii(e2, t2) {
2264
+ return ri(e2, jr, t2);
2123
2265
  }
2124
- function ti(e2) {
2266
+ function ai(e2) {
2125
2267
  return e2;
2126
2268
  }
2127
- var ni = ti(`@wix/site-service-url`);
2128
- var ri = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
2129
- `${ri}`, `${ri}`;
2130
- var ii = function(e2) {
2269
+ var oi = ai(`@wix/site-service-url`);
2270
+ var si = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
2271
+ `${si}`, `${si}`;
2272
+ var ci = function(e2) {
2131
2273
  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;
2132
2274
  }({});
2133
- var ai = () => {
2134
- let e2 = f(ni), t2 = n((t3, n2) => {
2135
- let r2 = e2.appSectionRelativeUrl(ri, t3, true);
2275
+ var li = () => {
2276
+ let e2 = f(oi), t2 = n((t3, n2) => {
2277
+ let r2 = e2.appSectionRelativeUrl(si, t3, true);
2136
2278
  if (r2) return `./${r2.replace(/^\//, ``).replace(/\/$/, ``)}/${encodeURIComponent(n2)}`;
2137
2279
  }, [e2]);
2138
2280
  return { getPageRelativeUrl: t2, getPageAbsoluteUrl: n((n2, r2) => {
@@ -2140,38 +2282,38 @@ var ai = () => {
2140
2282
  if (i2) return new URL(i2, `${e2.siteUrl.replace(/\/$/, ``)}/`).href;
2141
2283
  }, [t2, e2]) };
2142
2284
  };
2143
- function oi(e2) {
2144
- let { getPageAbsoluteUrl: t2 } = ai(), n2 = r(() => {
2285
+ function ui(e2) {
2286
+ let { getPageAbsoluteUrl: t2 } = li(), n2 = r(() => {
2145
2287
  if (!e2.slug) return;
2146
- let n3 = t2(ii.CATEGORY_PAGE, e2.slug);
2288
+ let n3 = t2(ci.CATEGORY_PAGE, e2.slug);
2147
2289
  return n3 ? { href: n3 } : void 0;
2148
2290
  }, [e2.slug, t2]);
2149
2291
  return r(() => ({ id: e2.id, name: e2.name, slug: e2.slug, link: n2, description: e2.description, richContentDescription: e2.richContentDescription, image: e2.image, breadcrumbs: e2.breadcrumbs }), [e2, n2]);
2150
2292
  }
2151
- function si(e2) {
2293
+ function di(e2) {
2152
2294
  let { category: t2 } = e2;
2153
- return oi(t2);
2295
+ return ui(t2);
2154
2296
  }
2155
- function ci(e2, t2) {
2297
+ function fi(e2, t2) {
2156
2298
  return r(() => ({ categories: e2, currentCategoryId: t2 }), [e2, t2]);
2157
2299
  }
2158
- var li = ti(`seo/seo-service`);
2159
- var ui = ti(`@wix/site-service-rendering-context`);
2160
- function di(e2) {
2300
+ var pi = ai(`seo/seo-service`);
2301
+ var mi = ai(`@wix/site-service-rendering-context`);
2302
+ function hi(e2) {
2161
2303
  return e2.breadcrumbs.map(({ id: e3, name: t2, slug: n2 }) => ({ categoryId: e3, categoryName: t2, categorySlug: n2 }));
2162
2304
  }
2163
- function fi(e2) {
2305
+ function gi(e2) {
2164
2306
  return e2 ? { id: e2 } : void 0;
2165
2307
  }
2166
- function pi(e2) {
2167
- return { itemType: e2.parentCategoryId ? `STORES_SUB_CATEGORY` : `STORES_CATEGORY`, itemData: { category: { id: e2.id, name: e2.name, slug: e2.slug, description: e2.description, itemCounter: e2.itemCounter, image: e2.image, parentCategory: fi(e2.parentCategoryId), breadcrumbsInfo: { breadcrumbs: di(e2) } } }, ...e2.seoData ? { seoData: e2.seoData } : {} };
2308
+ function _i(e2) {
2309
+ return { itemType: e2.parentCategoryId ? `STORES_SUB_CATEGORY` : `STORES_CATEGORY`, itemData: { category: { id: e2.id, name: e2.name, slug: e2.slug, description: e2.description, itemCounter: e2.itemCounter, image: e2.image, parentCategory: gi(e2.parentCategoryId), breadcrumbsInfo: { breadcrumbs: hi(e2) } } }, ...e2.seoData ? { seoData: e2.seoData } : {} };
2168
2310
  }
2169
- function mi(e2) {
2170
- let t2 = f(li), { SSR: n2 } = f(ui), r2 = i(false);
2171
- !r2.current && e2.id && n2 && (r2.current = true, t2.setSeoEntity(pi(e2)).catch(() => {
2311
+ function vi(e2) {
2312
+ let t2 = f(pi), { SSR: n2 } = f(mi), r2 = i(false);
2313
+ !r2.current && e2.id && n2 && (r2.current = true, t2.setSeoEntity(_i(e2)).catch(() => {
2172
2314
  }));
2173
2315
  }
2174
- function hi(e2) {
2316
+ function yi(e2) {
2175
2317
  if (e2.status === `fulfilled`) return e2.value;
2176
2318
  throw e2.status === `rejected` ? e2.reason : e2.status === `pending` ? e2 : (e2.status = `pending`, e2.then((t2) => {
2177
2319
  e2.status = `fulfilled`, e2.value = t2;
@@ -2179,61 +2321,61 @@ function hi(e2) {
2179
2321
  e2.status = `rejected`, e2.reason = t2;
2180
2322
  }), e2);
2181
2323
  }
2182
- var gi = /* @__PURE__ */ new Set();
2183
- function _i(e2) {
2184
- return gi.add(e2), () => {
2185
- gi.delete(e2);
2324
+ var bi = /* @__PURE__ */ new Set();
2325
+ function xi(e2) {
2326
+ return bi.add(e2), () => {
2327
+ bi.delete(e2);
2186
2328
  };
2187
2329
  }
2188
- function vi(e2) {
2330
+ function Si(e2) {
2189
2331
  let t2 = globalThis.window;
2190
2332
  if (!t2?.history) return;
2191
2333
  let n2 = t2.location.href;
2192
- t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 && gi.forEach((e3) => e3());
2334
+ t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 && bi.forEach((e3) => e3());
2193
2335
  }
2194
- function yi() {
2195
- let e2 = f(ni), t2 = n(() => e2.currentUrl, [e2]), i2 = o(_i, t2, t2), a2 = r(() => new URL(i2), [i2]), s2 = n((t3) => {
2336
+ function Ci() {
2337
+ let e2 = f(oi), t2 = n(() => e2.currentUrl, [e2]), i2 = o(xi, t2, t2), a2 = r(() => new URL(i2), [i2]), s2 = n((t3) => {
2196
2338
  let n2 = new URL(e2.currentUrl);
2197
- n2.search = t3, vi(n2);
2339
+ n2.search = t3, Si(n2);
2198
2340
  }, [e2]);
2199
2341
  return { url: a2, siteUrl: e2.siteUrl.replace(/\/$/, ``), search: a2.search, pushSearch: s2 };
2200
2342
  }
2201
- function bi(e2) {
2343
+ function wi(e2) {
2202
2344
  return e2.priceMin === void 0 && e2.priceMax === void 0 && Object.values(e2.customizationIdToChoiceIds ?? {}).every((e3) => e3.length === 0);
2203
2345
  }
2204
- function xi(e2, t2, n2) {
2346
+ function Ti(e2, t2, n2) {
2205
2347
  let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
2206
2348
  return i2.includes(n2) ? e2 : { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: [...i2, n2] } };
2207
2349
  }
2208
- function Si(e2, t2, n2) {
2350
+ function Ei(e2, t2, n2) {
2209
2351
  let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
2210
2352
  return i2.includes(n2) ? { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: i2.filter((e3) => e3 !== n2) } } : e2;
2211
2353
  }
2212
- function Ci(e2, t2, n2) {
2354
+ function Di(e2, t2, n2) {
2213
2355
  return e2.priceMin === t2 && e2.priceMax === n2 ? e2 : { ...e2, priceMin: t2, priceMax: n2 };
2214
2356
  }
2215
- function wi(e2) {
2357
+ function Oi(e2) {
2216
2358
  return e2.priceMin === void 0 && e2.priceMax === void 0 ? e2 : { ...e2, priceMin: void 0, priceMax: void 0 };
2217
2359
  }
2218
- function Ti(e2) {
2360
+ function ki(e2) {
2219
2361
  return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
2220
2362
  }
2221
- function Ei(e2) {
2363
+ function Ai(e2) {
2222
2364
  return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
2223
2365
  }
2224
- function Di(e2) {
2366
+ function ji(e2) {
2225
2367
  return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
2226
2368
  }
2227
2369
  function B(e2, t2) {
2228
- return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...Ti(e2) ? e2.$and : [e2], ...Ti(t2) ? t2.$and : [t2]] };
2370
+ return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...ki(e2) ? e2.$and : [e2], ...ki(t2) ? t2.$and : [t2]] };
2229
2371
  }
2230
- function Oi(e2, t2) {
2231
- return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...Ei(e2) ? e2.$or : [e2], ...Ei(t2) ? t2.$or : [t2]] };
2372
+ function Mi(e2, t2) {
2373
+ return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...Ai(e2) ? e2.$or : [e2], ...Ai(t2) ? t2.$or : [t2]] };
2232
2374
  }
2233
- function ki(e2) {
2234
- if (e2 !== void 0 && Object.keys(e2).length !== 0) return Di(e2) ? e2.$not : { $not: e2 };
2375
+ function Ni(e2) {
2376
+ if (e2 !== void 0 && Object.keys(e2).length !== 0) return ji(e2) ? e2.$not : { $not: e2 };
2235
2377
  }
2236
- var Ai = class {
2378
+ var Pi = class {
2237
2379
  _items;
2238
2380
  _fetchNextPage;
2239
2381
  _fetchPrevPage;
@@ -2263,7 +2405,7 @@ var Ai = class {
2263
2405
  return await this._fetchPrevPage();
2264
2406
  }
2265
2407
  };
2266
- var ji = class extends Ai {
2408
+ var Fi = class extends Pi {
2267
2409
  _nextCursor;
2268
2410
  _prevCursor;
2269
2411
  cursors;
@@ -2277,7 +2419,7 @@ var ji = class extends Ai {
2277
2419
  return !!this._prevCursor;
2278
2420
  }
2279
2421
  };
2280
- var Mi = class extends Ai {
2422
+ var Ii = class extends Pi {
2281
2423
  _totalCount;
2282
2424
  _offset;
2283
2425
  _tooManyToCount;
@@ -2300,16 +2442,16 @@ var Mi = class extends Ai {
2300
2442
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
2301
2443
  }
2302
2444
  };
2303
- function Ni(e2) {
2445
+ function Li(e2) {
2304
2446
  let t2 = (n2) => ({ query: n2, async find() {
2305
2447
  try {
2306
- let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [st]: a2, [ct]: o2 } = e2.responseTransformer(i2);
2448
+ let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [at]: a2, [ot]: o2 } = e2.responseTransformer(i2);
2307
2449
  if (e2.pagingMethod === `OFFSET`) {
2308
2450
  let e3 = n2;
2309
- return new Mi({ 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 });
2451
+ return new Ii({ 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 });
2310
2452
  }
2311
2453
  let s2 = n2.cursorPaging;
2312
- return new ji({ 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 });
2454
+ return new Fi({ 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 });
2313
2455
  } catch (t3) {
2314
2456
  throw e2.errorTransformer(t3);
2315
2457
  }
@@ -2361,11 +2503,11 @@ function Ni(e2) {
2361
2503
  let a2 = { [V(e2.transformationPaths, r2)]: { $exists: i2 } };
2362
2504
  return t2({ ...n2, filter: B(n2.filter, a2) });
2363
2505
  }, or(e3) {
2364
- return t2({ ...n2, filter: Oi(n2.filter, e3.query.filter) });
2506
+ return t2({ ...n2, filter: Mi(n2.filter, e3.query.filter) });
2365
2507
  }, and(e3) {
2366
2508
  return t2({ ...n2, filter: B(n2.filter, e3.query.filter) });
2367
2509
  }, not(e3) {
2368
- return t2({ ...n2, filter: ki(e3.query.filter) });
2510
+ return t2({ ...n2, filter: Ni(e3.query.filter) });
2369
2511
  }, ascending(...r2) {
2370
2512
  return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: V(e2.transformationPaths, t3), order: `ASC` }))] });
2371
2513
  }, descending(...r2) {
@@ -2384,26 +2526,26 @@ function Ni(e2) {
2384
2526
  }
2385
2527
  function V(e2, t2) {
2386
2528
  let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
2387
- return n2 ? t2.replace(n2, e2[n2]) : ut(t2, { ...e2, ...lt });
2529
+ return n2 ? t2.replace(n2, e2[n2]) : ct(t2, { ...e2, ...st });
2388
2530
  }
2389
- function Pi(e2, t2, n2 = {}) {
2390
- let r2 = (r3, i3) => Pi(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [x(e2, t2)]: n2 };
2531
+ function Ri(e2, t2, n2 = {}) {
2532
+ let r2 = (r3, i3) => Ri(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [C(e2, t2)]: n2 };
2391
2533
  return { get filter() {
2392
2534
  return i2();
2393
2535
  }, 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) };
2394
2536
  }
2395
- function Fi(e2) {
2396
- return Object.assign((t2) => Pi(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 } }) });
2537
+ function zi(e2) {
2538
+ return Object.assign((t2) => Ri(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 } }) });
2397
2539
  }
2398
- function Ii(e2) {
2399
- return (t2) => ({ asc: () => ({ sort: { fieldName: x(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: x(t2, e2), order: `DESC` } }) });
2540
+ function Bi(e2) {
2541
+ return (t2) => ({ asc: () => ({ sort: { fieldName: C(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: C(t2, e2), order: `DESC` } }) });
2400
2542
  }
2401
- function Li(e2) {
2543
+ function Vi(e2) {
2402
2544
  return () => {
2403
2545
  let t2 = {}, n2 = { withFilter(e3) {
2404
2546
  return t2 = { ...t2, filter: e3.filter }, n2;
2405
2547
  }, withFields(...r2) {
2406
- return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
2548
+ return t2 = { ...t2, fields: r2.map((t3) => C(t3, e2)) }, n2;
2407
2549
  }, withSorting(...e3) {
2408
2550
  return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
2409
2551
  }, withPaging(e3) {
@@ -2415,38 +2557,38 @@ function Li(e2) {
2415
2557
  };
2416
2558
  }
2417
2559
  function H(e2) {
2418
- return { QueryBuilder: Li(e2), Filter: Fi(e2), Sort: Ii(e2) };
2419
- }
2420
- var Ri = `filter`;
2421
- var zi = `sort`;
2422
- var Bi = `cursorPaging`;
2423
- var Vi = `paging`;
2424
- var Hi = [Ri, zi, Bi];
2425
- var Ui = [Ri, zi, Vi];
2426
- function Wi(e2, t2) {
2560
+ return { QueryBuilder: Vi(e2), Filter: zi(e2), Sort: Bi(e2) };
2561
+ }
2562
+ var Hi = `filter`;
2563
+ var Ui = `sort`;
2564
+ var Wi = `cursorPaging`;
2565
+ var Gi = `paging`;
2566
+ var Ki = [Hi, Ui, Wi];
2567
+ var qi = [Hi, Ui, Gi];
2568
+ function Ji(e2, t2) {
2427
2569
  return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
2428
2570
  }
2429
- function Gi(e2) {
2430
- return Wi(e2, Hi);
2571
+ function Yi(e2) {
2572
+ return Ji(e2, Ki);
2431
2573
  }
2432
- function Ki(e2) {
2433
- return Wi(e2, Ui);
2574
+ function Xi(e2) {
2575
+ return Ji(e2, qi);
2434
2576
  }
2435
- function qi(e2) {
2577
+ function Zi(e2) {
2436
2578
  let { hasOptionsParameter: t2 } = e2;
2437
2579
  return function(...n2) {
2438
- return t2 ? Yi(n2, e2) : Ji(n2, e2);
2580
+ return t2 ? $i(n2, e2) : Qi(n2, e2);
2439
2581
  };
2440
2582
  }
2441
- function Ji(e2, t2) {
2583
+ function Qi(e2, t2) {
2442
2584
  return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
2443
2585
  }
2444
- function Yi(e2, t2) {
2586
+ function $i(e2, t2) {
2445
2587
  switch (e2.length) {
2446
2588
  case 0:
2447
2589
  return t2.builderQueryFunction();
2448
2590
  case 1:
2449
- return Gi(e2[0]) || Ki(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
2591
+ return Yi(e2[0]) || Xi(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
2450
2592
  default:
2451
2593
  return t2.typedQueryFunction(e2[0], e2[1]);
2452
2594
  }
@@ -2456,7 +2598,7 @@ function U(e2) {
2456
2598
  let t2 = ``;
2457
2599
  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;
2458
2600
  }
2459
- function Xi(e2) {
2601
+ function W(e2) {
2460
2602
  if (!e2) return;
2461
2603
  let t2 = ``;
2462
2604
  e2?.filename && (t2 = `/${encodeURIComponent(e2.filename)}`);
@@ -2471,24 +2613,24 @@ function Xi(e2) {
2471
2613
  }
2472
2614
  return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
2473
2615
  }
2474
- function Zi(e2) {
2475
- return k(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/customization`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/customizations`, destPath: `/v3/customizations` }, { srcPath: `/stores/v3/bulk/customizations`, destPath: `/v3/bulk/customizations` }], "editor._base_domain_": [{ srcPath: `/_api/customization`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/customization`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/customization`, destPath: `` }], _: [{ srcPath: `/_api/customization`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/customization`, destPath: `` }] } }));
2616
+ function ea(e2) {
2617
+ return j(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/customization`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/customizations`, destPath: `/v3/customizations` }, { srcPath: `/stores/v3/bulk/customizations`, destPath: `/v3/bulk/customizations` }], "editor._base_domain_": [{ srcPath: `/_api/customization`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/customization`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/customization`, destPath: `` }], _: [{ srcPath: `/_api/customization`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/customization`, destPath: `` }] } }));
2476
2618
  }
2477
- var Qi = `@wix/auto_sdk_stores_customizations-v-3`;
2478
- function $i(e2) {
2619
+ var ta = `@wix/auto_sdk_stores_customizations-v-3`;
2620
+ function na(e2) {
2479
2621
  function t2({ host: t3 }) {
2480
- return { entityFqdn: `wix.stores.catalog.v3.customization`, method: `GET`, methodFqn: `wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations`, packageName: Qi, migrationOptions: { optInTransformResponse: true }, url: Zi({ protoPath: `/v3/customizations/query`, data: e2, host: t3 }), params: O(e2, true), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `customizations.createdDate` }, { path: `customizations.updatedDate` }, { path: `customizations.choicesSettings.choices.image.urlExpirationDate` }, { path: `customizations.choicesSettings.choices.displayImage.urlExpirationDate` }] }, { transformFn: j, paths: [{ path: `customizations.choicesSettings.choices.image.focalPoint.x` }, { path: `customizations.choicesSettings.choices.image.focalPoint.y` }] }]), fallback: [{ method: `POST`, url: Zi({ protoPath: `/v3/customizations/query`, data: e2, host: t3 }), data: e2 }] };
2622
+ return { entityFqdn: `wix.stores.catalog.v3.customization`, method: `GET`, methodFqn: `wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations`, packageName: ta, migrationOptions: { optInTransformResponse: true }, url: ea({ protoPath: `/v3/customizations/query`, data: e2, host: t3 }), params: A(e2, true), transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `customizations.createdDate` }, { path: `customizations.updatedDate` }, { path: `customizations.choicesSettings.choices.image.urlExpirationDate` }, { path: `customizations.choicesSettings.choices.displayImage.urlExpirationDate` }] }, { transformFn: N, paths: [{ path: `customizations.choicesSettings.choices.image.focalPoint.x` }, { path: `customizations.choicesSettings.choices.image.focalPoint.y` }] }]), fallback: [{ method: `POST`, url: ea({ protoPath: `/v3/customizations/query`, data: e2, host: t3 }), data: e2 }] };
2481
2623
  }
2482
2624
  return t2;
2483
2625
  }
2484
- var ea = ((e2) => (e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2))(ea || {});
2485
- var W = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(W || {});
2486
- var G = ((e2) => (e2.DEFAULT = `DEFAULT`, e2.BY_NAME = `BY_NAME`, e2.BY_PRODUCT_COUNT = `BY_PRODUCT_COUNT`, e2.MANUAL = `MANUAL`, e2))(G || {});
2487
- var ta = ((e2) => (e2.ASSIGNED_PRODUCTS_COUNT = `ASSIGNED_PRODUCTS_COUNT`, e2.CHOICE_DISPLAY_IMAGE = `CHOICE_DISPLAY_IMAGE`, e2))(ta || {});
2488
- function na(e2) {
2626
+ var ra = ((e2) => (e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2))(ra || {});
2627
+ var G = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(G || {});
2628
+ var ia = ((e2) => (e2.DEFAULT = `DEFAULT`, e2.BY_NAME = `BY_NAME`, e2.BY_PRODUCT_COUNT = `BY_PRODUCT_COUNT`, e2.MANUAL = `MANUAL`, e2))(ia || {});
2629
+ var aa = ((e2) => (e2.ASSIGNED_PRODUCTS_COUNT = `ASSIGNED_PRODUCTS_COUNT`, e2.CHOICE_DISPLAY_IMAGE = `CHOICE_DISPLAY_IMAGE`, e2))(aa || {});
2630
+ function oa(e2) {
2489
2631
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
2490
- return Ni({ func: async (r2) => {
2491
- let i2 = $i({ ...r2, ...e2 ?? {} });
2632
+ return Li({ func: async (r2) => {
2633
+ let i2 = na({ ...r2, ...e2 ?? {} });
2492
2634
  n2?.onSiteCall?.();
2493
2635
  try {
2494
2636
  let e3 = await t2.request(i2);
@@ -2498,45 +2640,45 @@ function na(e2) {
2498
2640
  }
2499
2641
  }, requestTransformer: (t3) => {
2500
2642
  let n3 = [t3, e2];
2501
- return S({ ...n3?.[1], query: n3?.[0] });
2643
+ return w({ ...n3?.[1], query: n3?.[0] });
2502
2644
  }, responseTransformer: ({ data: e3 }) => {
2503
- let t3 = C(T(e3, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2645
+ let t3 = T(D(e3, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2504
2646
  return { items: t3?.customizations, pagingMetadata: t3?.pagingMetadata };
2505
2647
  }, errorTransformer: (e3) => {
2506
- throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2648
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2507
2649
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2508
2650
  }
2509
- async function ra(e2, t2) {
2510
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = $i(S({ query: e2, ...t2 }));
2651
+ async function sa(e2, t2) {
2652
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = na(w({ query: e2, ...t2 }));
2511
2653
  r2?.onSiteCall?.();
2512
2654
  try {
2513
2655
  let e3 = await n2.request(i2);
2514
- return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2656
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2515
2657
  } catch (e3) {
2516
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2658
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2517
2659
  throw r2?.onError?.(e3), t3;
2518
2660
  }
2519
2661
  }
2520
2662
  ({ ...H() });
2521
- function ia(e2) {
2522
- return (t2) => na(t2, { httpClient: e2 });
2523
- }
2524
- function aa(e2) {
2525
- return (t2, n2) => ra(t2, n2, { httpClient: e2 });
2663
+ function ca(e2) {
2664
+ return (t2) => oa(t2, { httpClient: e2 });
2526
2665
  }
2527
- var oa = y(`wix.stores.catalog.v3.customization_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }] }])))();
2528
- var sa = y(`wix.stores.catalog.v3.customization_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }] }])))();
2529
- var ca = y(`wix.stores.catalog.v3.customization_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }, { transformFn: U, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }, { path: `modifiedFields.choicesSettings.choices.image` }, { path: `modifiedFields.choicesSettings.choices.displayImage` }] }])))();
2530
2666
  function la(e2) {
2531
- let t2 = qi({ builderQueryFunction: (t3) => ia(e2)(t3), typedQueryFunction: (t3, n3) => aa(e2)(t3, n3), hasOptionsParameter: true });
2667
+ return (t2, n2) => sa(t2, n2, { httpClient: e2 });
2668
+ }
2669
+ var ua = x(`wix.stores.catalog.v3.customization_created`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }] }])))();
2670
+ var da = x(`wix.stores.catalog.v3.customization_deleted`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }] }])))();
2671
+ var fa = x(`wix.stores.catalog.v3.customization_updated`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }, { transformFn: U, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }, { path: `modifiedFields.choicesSettings.choices.image` }, { path: `modifiedFields.choicesSettings.choices.displayImage` }] }])))();
2672
+ function pa(e2) {
2673
+ let t2 = Zi({ builderQueryFunction: (t3) => ca(e2)(t3), typedQueryFunction: (t3, n3) => la(e2)(t3, n3), hasOptionsParameter: true });
2532
2674
  function n2(e3, n3) {
2533
2675
  return t2(...arguments);
2534
2676
  }
2535
2677
  return n2;
2536
2678
  }
2537
- var ua = D(la);
2538
- A(oa), A(sa), A(ca);
2539
- function da(e2) {
2679
+ var ma = k(pa);
2680
+ M(ua), M(da), M(fa);
2681
+ function ha(e2) {
2540
2682
  let t2 = {}, n2 = { get search() {
2541
2683
  return t2;
2542
2684
  }, expression(e3) {
@@ -2544,19 +2686,19 @@ function da(e2) {
2544
2686
  }, mode(e3) {
2545
2687
  return t2 = { ...t2, mode: e3 }, n2;
2546
2688
  }, fields(r2) {
2547
- return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
2689
+ return t2 = { ...t2, fields: r2.map((t3) => C(t3, e2)) }, n2;
2548
2690
  }, fuzzy(e3 = true) {
2549
2691
  return t2 = { ...t2, fuzzy: e3 }, n2;
2550
2692
  } };
2551
2693
  return n2;
2552
2694
  }
2553
- function fa(e2) {
2695
+ function ga(e2) {
2554
2696
  return (t2) => {
2555
- let n2 = da(e2);
2697
+ let n2 = ha(e2);
2556
2698
  return t2 === void 0 ? n2 : n2.expression(t2);
2557
2699
  };
2558
2700
  }
2559
- function pa(e2) {
2701
+ function _a(e2) {
2560
2702
  let t2 = { ...e2, type: `VALUE`, value: { ...e2.value } }, n2 = { get aggregation() {
2561
2703
  return t2;
2562
2704
  }, sortBy(e3, r2) {
@@ -2572,7 +2714,7 @@ function pa(e2) {
2572
2714
  } };
2573
2715
  return n2;
2574
2716
  }
2575
- function ma(e2) {
2717
+ function va(e2) {
2576
2718
  let t2 = { ...e2, type: `RANGE`, range: { buckets: [] } }, n2 = { get aggregation() {
2577
2719
  return t2;
2578
2720
  }, withBuckets(...e3) {
@@ -2580,7 +2722,7 @@ function ma(e2) {
2580
2722
  } };
2581
2723
  return n2;
2582
2724
  }
2583
- function ha(e2) {
2725
+ function ya(e2) {
2584
2726
  let t2 = { ...e2, type: `DATE_HISTOGRAM`, dateHistogram: {} }, n2 = { get aggregation() {
2585
2727
  return t2;
2586
2728
  }, interval(e3) {
@@ -2588,7 +2730,7 @@ function ha(e2) {
2588
2730
  } };
2589
2731
  return n2;
2590
2732
  }
2591
- function ga(e2) {
2733
+ function ba(e2) {
2592
2734
  let t2 = { ...e2, type: `SCALAR`, scalar: {} }, n2 = { get aggregation() {
2593
2735
  return t2;
2594
2736
  }, type(e3) {
@@ -2596,7 +2738,7 @@ function ga(e2) {
2596
2738
  } };
2597
2739
  return n2;
2598
2740
  }
2599
- function _a(e2) {
2741
+ function xa(e2) {
2600
2742
  let t2 = { ...e2, type: `NESTED`, nested: { nestedAggregations: [] } }, n2 = { get aggregation() {
2601
2743
  return t2;
2602
2744
  }, addNestedAggregation(e3) {
@@ -2605,30 +2747,30 @@ function _a(e2) {
2605
2747
  } };
2606
2748
  return n2;
2607
2749
  }
2608
- function va(e2, t2) {
2750
+ function Sa(e2, t2) {
2609
2751
  let n2 = { name: e2 }, r2 = { get aggregation() {
2610
2752
  return n2;
2611
2753
  }, ofType(e3) {
2612
2754
  return n2 = { ...n2, type: e3 }, r2;
2613
2755
  }, onField(e3) {
2614
- return n2 = { ...n2, fieldPath: x(e3, t2) }, r2;
2756
+ return n2 = { ...n2, fieldPath: C(e3, t2) }, r2;
2615
2757
  }, asValueAggregation() {
2616
- return pa(n2);
2758
+ return _a(n2);
2617
2759
  }, asRangeAggregation() {
2618
- return ma(n2);
2760
+ return va(n2);
2619
2761
  }, asDateHistogramAggregation() {
2620
- return ha(n2);
2762
+ return ya(n2);
2621
2763
  }, asScalarAggregation() {
2622
- return ga(n2);
2764
+ return ba(n2);
2623
2765
  }, asNestedAggregation() {
2624
- return _a(n2);
2766
+ return xa(n2);
2625
2767
  } };
2626
2768
  return r2;
2627
2769
  }
2628
- function ya(e2) {
2629
- return (t2) => va(t2, e2);
2770
+ function Ca(e2) {
2771
+ return (t2) => Sa(t2, e2);
2630
2772
  }
2631
- function ba() {
2773
+ function wa() {
2632
2774
  return () => {
2633
2775
  let e2 = {}, t2 = { withFilter(n2) {
2634
2776
  return e2 = { ...e2, filter: n2.filter }, t2;
@@ -2648,85 +2790,195 @@ function ba() {
2648
2790
  return t2;
2649
2791
  };
2650
2792
  }
2651
- function xa(e2) {
2652
- return { SearchBuilder: ba(), Filter: Fi(e2), Sort: Ii(e2), SearchParams: fa(e2), Aggregation: ya(e2) };
2793
+ function Ta(e2) {
2794
+ return { SearchBuilder: wa(), Filter: zi(e2), Sort: Bi(e2), SearchParams: ga(e2), Aggregation: Ca(e2) };
2653
2795
  }
2654
- function Sa(e2) {
2796
+ function K(e2) {
2655
2797
  if (e2) return e2.url;
2656
2798
  }
2657
- function Ca(e2) {
2658
- return k(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/stores-catalog-orchestrator`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/stores`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/products`, destPath: `/v3/products` }, { srcPath: `/stores/v3/bulk/products`, destPath: `/v3/bulk/products` }, { srcPath: `/stores/v3/products-with-inventory`, destPath: `/v3/products-with-inventory` }, { srcPath: `/stores/v3/bulk/products-with-inventory`, destPath: `/v3/bulk/products-with-inventory` }, { srcPath: `/stores/v3/all-products-category`, destPath: `/v3/all-products-category` }], "www._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], _: [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }] } }));
2799
+ function q(e2) {
2800
+ return j(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: `` }] } }));
2659
2801
  }
2660
- var wa = `@wix/auto_sdk_stores_products-v-3`;
2661
- function Ta(e2) {
2802
+ var Ea = `@wix/auto_sdk_stores_products-v-3`;
2803
+ function Da(e2) {
2804
+ function t2({ host: t3 }) {
2805
+ let n2 = D(e2, [{ transformFn: _n, paths: [{ path: `search.aggregations.range.buckets.from` }, { path: `search.aggregations.range.buckets.to` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.from` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.to` }] }]);
2806
+ return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.SearchProducts`, packageName: Ea, migrationOptions: { optInTransformResponse: true }, url: q({ protoPath: `/v3/products/search`, data: n2, host: t3 }), params: A(n2, true), transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `products.createdDate` }, { path: `products.updatedDate` }, { path: `products.description.metadata.createdTimestamp` }, { path: `products.description.metadata.updatedTimestamp` }, { path: `products.media.main.image.urlExpirationDate` }, { path: `products.media.main.video.urlExpirationDate` }, { path: `products.media.main.video.resolutions.urlExpirationDate` }, { path: `products.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.main.video.posters.urlExpirationDate` }, { path: `products.media.itemsInfo.items.image.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.infoSections.description.metadata.createdTimestamp` }, { path: `products.infoSections.description.metadata.updatedTimestamp` }, { path: `products.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: N, paths: [{ path: `products.physicalProperties.pricePerUnit.quantity` }, { path: `products.physicalProperties.shippingWeightRange.minValue` }, { path: `products.physicalProperties.shippingWeightRange.maxValue` }, { path: `products.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `products.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `products.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `products.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `aggregationData.results.scalar.value` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.scalar.value` }, { path: `aggregationData.results.nested.results.results.*.scalar.value` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.description.nodes.galleryData.items.image.media.duration` }, { path: `products.description.nodes.galleryData.items.video.media.duration` }, { path: `products.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.description.nodes.galleryData.options.item.ratio` }, { path: `products.description.nodes.imageData.image.duration` }, { path: `products.description.nodes.imageData.crop.x` }, { path: `products.description.nodes.imageData.crop.y` }, { path: `products.description.nodes.imageData.crop.width` }, { path: `products.description.nodes.imageData.crop.height` }, { path: `products.description.nodes.mapData.mapSettings.lat` }, { path: `products.description.nodes.mapData.mapSettings.lng` }, { path: `products.description.nodes.pollData.poll.image.duration` }, { path: `products.description.nodes.pollData.poll.options.image.duration` }, { path: `products.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.description.nodes.appEmbedData.image.duration` }, { path: `products.description.nodes.videoData.video.duration` }, { path: `products.description.nodes.videoData.thumbnail.duration` }, { path: `products.description.nodes.audioData.audio.duration` }, { path: `products.description.nodes.audioData.coverImage.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.description.nodes.shapeData.shape.duration` }, { path: `products.description.nodes.cardData.background.gradient.centerX` }, { path: `products.description.nodes.cardData.background.gradient.centerY` }, { path: `products.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.tocData.fontSize` }, { path: `products.description.nodes.tocData.itemSpacing` }, { path: `products.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `products.infoSections.description.nodes.imageData.image.duration` }, { path: `products.infoSections.description.nodes.imageData.crop.x` }, { path: `products.infoSections.description.nodes.imageData.crop.y` }, { path: `products.infoSections.description.nodes.imageData.crop.width` }, { path: `products.infoSections.description.nodes.imageData.crop.height` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `products.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `products.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `products.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `products.infoSections.description.nodes.videoData.video.duration` }, { path: `products.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `products.infoSections.description.nodes.audioData.audio.duration` }, { path: `products.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.infoSections.description.nodes.shapeData.shape.duration` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.tocData.fontSize` }, { path: `products.infoSections.description.nodes.tocData.itemSpacing` }, { path: `products.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.variantsInfo.variants.physicalProperties.weight` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `products.minVariantPriceInfo.weight` }, { path: `aggregationData.results.ranges.results.from` }, { path: `aggregationData.results.ranges.results.to` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to` }, { path: `aggregationData.results.nested.results.results.*.range.from` }, { path: `aggregationData.results.nested.results.results.*.range.to` }] }]), fallback: [{ method: `POST`, url: q({ protoPath: `/v3/products/search`, data: n2, host: t3 }), data: n2 }] };
2807
+ }
2808
+ return t2;
2809
+ }
2810
+ function Oa(e2) {
2662
2811
  function t2({ host: t3 }) {
2663
- let n2 = T(e2, [{ transformFn: yn, paths: [{ path: `search.aggregations.range.buckets.from` }, { path: `search.aggregations.range.buckets.to` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.from` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.to` }] }]);
2664
- return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.SearchProducts`, packageName: wa, migrationOptions: { optInTransformResponse: true }, url: Ca({ protoPath: `/v3/products/search`, data: n2, host: t3 }), params: O(n2, true), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `products.createdDate` }, { path: `products.updatedDate` }, { path: `products.description.metadata.createdTimestamp` }, { path: `products.description.metadata.updatedTimestamp` }, { path: `products.media.main.image.urlExpirationDate` }, { path: `products.media.main.video.urlExpirationDate` }, { path: `products.media.main.video.resolutions.urlExpirationDate` }, { path: `products.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.main.video.posters.urlExpirationDate` }, { path: `products.media.itemsInfo.items.image.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.infoSections.description.metadata.createdTimestamp` }, { path: `products.infoSections.description.metadata.updatedTimestamp` }, { path: `products.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: j, paths: [{ path: `products.physicalProperties.pricePerUnit.quantity` }, { path: `products.physicalProperties.shippingWeightRange.minValue` }, { path: `products.physicalProperties.shippingWeightRange.maxValue` }, { path: `products.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `products.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `products.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `products.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `aggregationData.results.scalar.value` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.scalar.value` }, { path: `aggregationData.results.nested.results.results.*.scalar.value` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.description.nodes.galleryData.items.image.media.duration` }, { path: `products.description.nodes.galleryData.items.video.media.duration` }, { path: `products.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.description.nodes.galleryData.options.item.ratio` }, { path: `products.description.nodes.imageData.image.duration` }, { path: `products.description.nodes.imageData.crop.x` }, { path: `products.description.nodes.imageData.crop.y` }, { path: `products.description.nodes.imageData.crop.width` }, { path: `products.description.nodes.imageData.crop.height` }, { path: `products.description.nodes.mapData.mapSettings.lat` }, { path: `products.description.nodes.mapData.mapSettings.lng` }, { path: `products.description.nodes.pollData.poll.image.duration` }, { path: `products.description.nodes.pollData.poll.options.image.duration` }, { path: `products.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.description.nodes.appEmbedData.image.duration` }, { path: `products.description.nodes.videoData.video.duration` }, { path: `products.description.nodes.videoData.thumbnail.duration` }, { path: `products.description.nodes.audioData.audio.duration` }, { path: `products.description.nodes.audioData.coverImage.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.description.nodes.shapeData.shape.duration` }, { path: `products.description.nodes.cardData.background.gradient.centerX` }, { path: `products.description.nodes.cardData.background.gradient.centerY` }, { path: `products.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.tocData.fontSize` }, { path: `products.description.nodes.tocData.itemSpacing` }, { path: `products.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `products.infoSections.description.nodes.imageData.image.duration` }, { path: `products.infoSections.description.nodes.imageData.crop.x` }, { path: `products.infoSections.description.nodes.imageData.crop.y` }, { path: `products.infoSections.description.nodes.imageData.crop.width` }, { path: `products.infoSections.description.nodes.imageData.crop.height` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `products.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `products.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `products.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `products.infoSections.description.nodes.videoData.video.duration` }, { path: `products.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `products.infoSections.description.nodes.audioData.audio.duration` }, { path: `products.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.infoSections.description.nodes.shapeData.shape.duration` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.tocData.fontSize` }, { path: `products.infoSections.description.nodes.tocData.itemSpacing` }, { path: `products.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.variantsInfo.variants.physicalProperties.weight` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `products.minVariantPriceInfo.weight` }, { path: `aggregationData.results.ranges.results.from` }, { path: `aggregationData.results.ranges.results.to` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to` }, { path: `aggregationData.results.nested.results.results.*.range.from` }, { path: `aggregationData.results.nested.results.results.*.range.to` }] }]), fallback: [{ method: `POST`, url: Ca({ protoPath: `/v3/products/search`, data: n2, host: t3 }), data: n2 }] };
2812
+ return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.QueryProducts`, packageName: Ea, migrationOptions: { optInTransformResponse: true }, url: q({ protoPath: `/v3/products/query`, data: e2, host: t3 }), params: A(e2, true), transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `products.createdDate` }, { path: `products.updatedDate` }, { path: `products.description.metadata.createdTimestamp` }, { path: `products.description.metadata.updatedTimestamp` }, { path: `products.media.main.image.urlExpirationDate` }, { path: `products.media.main.video.urlExpirationDate` }, { path: `products.media.main.video.resolutions.urlExpirationDate` }, { path: `products.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.main.video.posters.urlExpirationDate` }, { path: `products.media.itemsInfo.items.image.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.infoSections.description.metadata.createdTimestamp` }, { path: `products.infoSections.description.metadata.updatedTimestamp` }, { path: `products.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: N, paths: [{ path: `products.physicalProperties.pricePerUnit.quantity` }, { path: `products.physicalProperties.shippingWeightRange.minValue` }, { path: `products.physicalProperties.shippingWeightRange.maxValue` }, { path: `products.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `products.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `products.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `products.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.description.nodes.galleryData.items.image.media.duration` }, { path: `products.description.nodes.galleryData.items.video.media.duration` }, { path: `products.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.description.nodes.galleryData.options.item.ratio` }, { path: `products.description.nodes.imageData.image.duration` }, { path: `products.description.nodes.imageData.crop.x` }, { path: `products.description.nodes.imageData.crop.y` }, { path: `products.description.nodes.imageData.crop.width` }, { path: `products.description.nodes.imageData.crop.height` }, { path: `products.description.nodes.mapData.mapSettings.lat` }, { path: `products.description.nodes.mapData.mapSettings.lng` }, { path: `products.description.nodes.pollData.poll.image.duration` }, { path: `products.description.nodes.pollData.poll.options.image.duration` }, { path: `products.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.description.nodes.appEmbedData.image.duration` }, { path: `products.description.nodes.videoData.video.duration` }, { path: `products.description.nodes.videoData.thumbnail.duration` }, { path: `products.description.nodes.audioData.audio.duration` }, { path: `products.description.nodes.audioData.coverImage.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.description.nodes.shapeData.shape.duration` }, { path: `products.description.nodes.cardData.background.gradient.centerX` }, { path: `products.description.nodes.cardData.background.gradient.centerY` }, { path: `products.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.tocData.fontSize` }, { path: `products.description.nodes.tocData.itemSpacing` }, { path: `products.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `products.infoSections.description.nodes.imageData.image.duration` }, { path: `products.infoSections.description.nodes.imageData.crop.x` }, { path: `products.infoSections.description.nodes.imageData.crop.y` }, { path: `products.infoSections.description.nodes.imageData.crop.width` }, { path: `products.infoSections.description.nodes.imageData.crop.height` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `products.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `products.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `products.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `products.infoSections.description.nodes.videoData.video.duration` }, { path: `products.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `products.infoSections.description.nodes.audioData.audio.duration` }, { path: `products.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.infoSections.description.nodes.shapeData.shape.duration` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.tocData.fontSize` }, { path: `products.infoSections.description.nodes.tocData.itemSpacing` }, { path: `products.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.variantsInfo.variants.physicalProperties.weight` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `products.minVariantPriceInfo.weight` }] }]), fallback: [{ method: `POST`, url: q({ protoPath: `/v3/products/query`, data: e2, host: t3 }), data: e2 }] };
2665
2813
  }
2666
2814
  return t2;
2667
2815
  }
2668
- function Ea(e2) {
2816
+ function ka(e2) {
2669
2817
  function t2({ host: t3 }) {
2670
- return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.CountProducts`, packageName: wa, migrationOptions: { optInTransformResponse: true }, url: Ca({ protoPath: `/v3/products/count`, data: e2, host: t3 }), params: O(e2, true), fallback: [{ method: `POST`, url: Ca({ protoPath: `/v3/products/count`, data: e2, host: t3 }), data: e2 }] };
2818
+ return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.CountProducts`, packageName: Ea, migrationOptions: { optInTransformResponse: true }, url: q({ protoPath: `/v3/products/count`, data: e2, host: t3 }), params: A(e2, true), fallback: [{ method: `POST`, url: q({ protoPath: `/v3/products/count`, data: e2, host: t3 }), data: e2 }] };
2671
2819
  }
2672
2820
  return t2;
2673
2821
  }
2674
- var Da = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(Da || {});
2675
- var K = ((e2) => (e2.ASC = `ASC`, e2.DESC = `DESC`, e2))(K || {});
2676
- var Oa = ((e2) => (e2.COUNT = `COUNT`, e2.VALUE = `VALUE`, e2))(Oa || {});
2677
- var ka = ((e2) => (e2.DESC = `DESC`, e2.ASC = `ASC`, e2))(ka || {});
2678
- var Aa = ((e2) => (e2.COUNT_DISTINCT = `COUNT_DISTINCT`, e2.MIN = `MIN`, e2.MAX = `MAX`, e2))(Aa || {});
2679
- var ja = ((e2) => (e2.VALUE = `VALUE`, e2.RANGE = `RANGE`, e2.SCALAR = `SCALAR`, e2.DATE_HISTOGRAM = `DATE_HISTOGRAM`, e2.NESTED = `NESTED`, e2))(ja || {});
2680
- var q = ((e2) => (e2.URL = `URL`, e2.CURRENCY = `CURRENCY`, e2.INFO_SECTION = `INFO_SECTION`, e2.MERCHANT_DATA = `MERCHANT_DATA`, e2.PLAIN_DESCRIPTION = `PLAIN_DESCRIPTION`, e2.INFO_SECTION_PLAIN_DESCRIPTION = `INFO_SECTION_PLAIN_DESCRIPTION`, e2.SUBSCRIPTION_PRICES_INFO = `SUBSCRIPTION_PRICES_INFO`, e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.WEIGHT_MEASUREMENT_UNIT_INFO = `WEIGHT_MEASUREMENT_UNIT_INFO`, e2.VARIANT_OPTION_CHOICE_NAMES = `VARIANT_OPTION_CHOICE_NAMES`, e2.MEDIA_ITEMS_INFO = `MEDIA_ITEMS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.DIRECT_CATEGORIES_INFO = `DIRECT_CATEGORIES_INFO`, e2.ALL_CATEGORIES_INFO = `ALL_CATEGORIES_INFO`, e2.INFO_SECTION_DESCRIPTION = `INFO_SECTION_DESCRIPTION`, e2.THUMBNAIL = `THUMBNAIL`, e2.PRODUCT_CHOICES_MEDIA_REFERENCES = `PRODUCT_CHOICES_MEDIA_REFERENCES`, e2.PRODUCT_CHOICES_DISPLAY_IMAGE = `PRODUCT_CHOICES_DISPLAY_IMAGE`, e2.MIN_PRICE_VARIANT = `MIN_PRICE_VARIANT`, e2.DISCOUNT_INFO = `DISCOUNT_INFO`, e2))(q || {});
2681
- async function Ma(e2, t2) {
2682
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ta(S({ search: e2, fields: t2?.fields }, []));
2822
+ var Aa = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(Aa || {});
2823
+ var J = ((e2) => (e2.ASC = `ASC`, e2.DESC = `DESC`, e2))(J || {});
2824
+ var ja = ((e2) => (e2.COUNT = `COUNT`, e2.VALUE = `VALUE`, e2))(ja || {});
2825
+ var Ma = ((e2) => (e2.DESC = `DESC`, e2.ASC = `ASC`, e2))(Ma || {});
2826
+ var Na = ((e2) => (e2.COUNT_DISTINCT = `COUNT_DISTINCT`, e2.MIN = `MIN`, e2.MAX = `MAX`, e2))(Na || {});
2827
+ var Pa = ((e2) => (e2.VALUE = `VALUE`, e2.RANGE = `RANGE`, e2.SCALAR = `SCALAR`, e2.DATE_HISTOGRAM = `DATE_HISTOGRAM`, e2.NESTED = `NESTED`, e2))(Pa || {});
2828
+ var Y = ((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))(Y || {});
2829
+ async function Fa(e2, t2) {
2830
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Da(w({ search: e2, fields: t2?.fields }, []));
2683
2831
  r2?.onSiteCall?.();
2684
2832
  try {
2685
2833
  let e3 = await n2.request(i2);
2686
- return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: Sa, paths: [{ path: `products.url` }] }, { transformFn: U, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Xi, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
2834
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: K, paths: [{ path: `products.url` }] }, { transformFn: U, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: W, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
2687
2835
  } catch (e3) {
2688
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { search: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`search`, `options`]);
2836
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { search: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`search`, `options`]);
2689
2837
  throw r2?.onError?.(e3), t3;
2690
2838
  }
2691
2839
  }
2692
- ({ ...xa() }, { ...H() });
2693
- async function Na(e2) {
2694
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ea(S({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
2840
+ ({ ...Ta() }, { ...H() });
2841
+ function Ia(e2) {
2842
+ let { httpClient: t2, sideEffects: n2 } = arguments[1];
2843
+ return Li({ func: async (r2) => {
2844
+ let i2 = Oa({ ...r2, ...e2 ?? {} });
2845
+ n2?.onSiteCall?.();
2846
+ try {
2847
+ let e3 = await t2.request(i2);
2848
+ return n2?.onSuccess?.(e3), e3;
2849
+ } catch (e3) {
2850
+ throw n2?.onError?.(e3), e3;
2851
+ }
2852
+ }, requestTransformer: (t3) => {
2853
+ let n3 = [t3, e2];
2854
+ return w({ ...n3?.[1], query: n3?.[0] }, []);
2855
+ }, responseTransformer: ({ data: e3 }) => {
2856
+ let t3 = T(D(e3, [{ transformFn: K, paths: [{ path: `products.url` }] }, { transformFn: U, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: W, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
2857
+ return { items: t3?.products, pagingMetadata: t3?.pagingMetadata };
2858
+ }, errorTransformer: (e3) => {
2859
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2860
+ }, pagingMethod: `CURSOR`, transformationPaths: {} });
2861
+ }
2862
+ async function La(e2, t2) {
2863
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oa(w({ query: e2, ...t2 }, []));
2864
+ r2?.onSiteCall?.();
2865
+ try {
2866
+ let e3 = await n2.request(i2);
2867
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: K, paths: [{ path: `products.url` }] }, { transformFn: U, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: W, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
2868
+ } catch (e3) {
2869
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2870
+ throw r2?.onError?.(e3), t3;
2871
+ }
2872
+ }
2873
+ async function Ra(e2) {
2874
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ka(w({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
2695
2875
  n2?.onSiteCall?.();
2696
2876
  try {
2697
2877
  let e3 = await t2.request(r2);
2698
- return n2?.onSuccess?.(e3), C(e3.data, []);
2878
+ return n2?.onSuccess?.(e3), T(e3.data, []);
2699
2879
  } catch (e3) {
2700
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { filter: `$[0].filter`, search: `$[0].search`, returnNonVisibleProducts: `$[0].returnNonVisibleProducts` }, singleArgumentUnchanged: false }, [`options`]);
2880
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { filter: `$[0].filter`, search: `$[0].search`, returnNonVisibleProducts: `$[0].returnNonVisibleProducts` }, singleArgumentUnchanged: false }, [`options`]);
2701
2881
  throw n2?.onError?.(e3), t3;
2702
2882
  }
2703
2883
  }
2704
- function Pa(e2) {
2705
- return (t2, n2) => Ma(t2, n2, { httpClient: e2 });
2884
+ function za(e2) {
2885
+ return (t2, n2) => Fa(t2, n2, { httpClient: e2 });
2706
2886
  }
2707
- function Fa(e2) {
2708
- return (t2) => Na(t2, { httpClient: e2 });
2887
+ function Ba(e2) {
2888
+ return (t2) => Ia(t2, { httpClient: e2 });
2709
2889
  }
2710
- var Ia = y(`wix.stores.catalog.v3.product_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Sa, paths: [{ path: `entity.url` }] }, { transformFn: j, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: U, 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: Xi, 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` }] }])))();
2711
- var La = y(`wix.stores.catalog.v3.product_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Sa, paths: [{ path: `entity.url` }] }, { transformFn: j, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: U, 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: Xi, 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` }] }])))();
2712
- var Ra = y(`wix.stores.catalog.v3.product_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: Sa, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: j, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: U, 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: Xi, 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` }] }])))();
2713
- var za = D(Pa);
2714
- var Ba = D(Fa);
2715
- A(Ia), A(La), A(Ra);
2716
2890
  function Va(e2) {
2717
- return k(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/location`, destPath: `` }], _: [{ srcPath: `/_api/location`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/location`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/locations`, destPath: `/v3/locations` }] } }));
2891
+ return (t2, n2) => La(t2, n2, { httpClient: e2 });
2892
+ }
2893
+ function Ha(e2) {
2894
+ return (t2) => Ra(t2, { httpClient: e2 });
2718
2895
  }
2719
- var Ha = `@wix/auto_sdk_stores_stores-locations-v-3`;
2720
- function Ua(e2) {
2896
+ var Ua = x(`wix.stores.catalog.v3.product_created`, true, (e2) => T(D(e2, [{ transformFn: E, 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: K, paths: [{ path: `entity.url` }] }, { transformFn: N, 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: U, 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: W, 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` }] }])))();
2897
+ var Wa = x(`wix.stores.catalog.v3.product_deleted`, true, (e2) => T(D(e2, [{ transformFn: E, 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: K, paths: [{ path: `entity.url` }] }, { transformFn: N, 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: U, 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: W, 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` }] }])))();
2898
+ var Ga = x(`wix.stores.catalog.v3.product_updated`, true, (e2) => T(D(e2, [{ transformFn: E, 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: K, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: N, 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: U, 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: W, 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` }] }])))();
2899
+ function Ka(e2) {
2900
+ let t2 = Zi({ builderQueryFunction: (t3) => Ba(e2)(t3), typedQueryFunction: (t3, n3) => Va(e2)(t3, n3), hasOptionsParameter: true });
2901
+ function n2(e3, n3) {
2902
+ return t2(...arguments);
2903
+ }
2904
+ return n2;
2905
+ }
2906
+ var qa = k(za);
2907
+ var Ja = k(Ha);
2908
+ var Ya = k(Ka);
2909
+ M(Ua), M(Wa), M(Ga);
2910
+ function Xa(e2) {
2911
+ return j(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/product-group`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/product-group`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/product-group`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/product-group`, destPath: `` }], _: [{ srcPath: `/_api/product-group`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/product-group`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/product-groups`, destPath: `/v3/product-groups` }, { srcPath: `/stores/v3/bulk/product-groups`, destPath: `/v3/bulk/product-groups` }], "*.dev.wix-code.com": [{ srcPath: `/_api/product-group`, destPath: `` }] } }));
2912
+ }
2913
+ var Za = `@wix/auto_sdk_stores_product-groups-v-3`;
2914
+ function Qa(e2) {
2721
2915
  function t2({ host: t3 }) {
2722
- return { entityFqdn: `wix.stores.catalog.v3.stores_location`, method: `POST`, methodFqn: `wix.stores.catalog.location.v3.StoresLocationService.QueryStoresLocations`, packageName: Ha, migrationOptions: { optInTransformResponse: true }, url: Va({ protoPath: `/v3/locations/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `storesLocations.createdDate` }, { path: `storesLocations.updatedDate` }] }]) };
2916
+ return { entityFqdn: `wix.stores.catalog.v3.product_group`, method: `GET`, methodFqn: `wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups`, packageName: Za, migrationOptions: { optInTransformResponse: true }, url: Xa({ protoPath: `/v3/product-groups/query`, data: e2, host: t3 }), params: A(e2, true), transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `productGroups.createdDate` }, { path: `productGroups.updatedDate` }, { path: `productGroups.media.image.urlExpirationDate` }] }]), fallback: [{ method: `POST`, url: Xa({ protoPath: `/v3/product-groups/query`, data: e2, host: t3 }), data: e2 }] };
2723
2917
  }
2724
2918
  return t2;
2725
2919
  }
2726
- function Wa() {
2920
+ var $a = ((e2) => (e2.GROUPING_CUSTOMIZATION = `GROUPING_CUSTOMIZATION`, e2.THUMBNAIL = `THUMBNAIL`, e2))($a || {});
2921
+ function eo(e2) {
2922
+ let { httpClient: t2, sideEffects: n2 } = arguments[1];
2923
+ return Li({ func: async (r2) => {
2924
+ let i2 = Qa({ ...r2, ...e2 ?? {} });
2925
+ n2?.onSiteCall?.();
2926
+ try {
2927
+ let e3 = await t2.request(i2);
2928
+ return n2?.onSuccess?.(e3), e3;
2929
+ } catch (e3) {
2930
+ throw n2?.onError?.(e3), e3;
2931
+ }
2932
+ }, requestTransformer: (t3) => {
2933
+ let n3 = [t3, e2];
2934
+ return w({ ...n3?.[1], query: n3?.[0] });
2935
+ }, responseTransformer: ({ data: e3 }) => {
2936
+ let t3 = T(D(e3, [{ transformFn: U, paths: [{ path: `productGroups.media.image` }] }]));
2937
+ return { items: t3?.productGroups, pagingMetadata: t3?.pagingMetadata };
2938
+ }, errorTransformer: (e3) => {
2939
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2940
+ }, pagingMethod: `CURSOR`, transformationPaths: {} });
2941
+ }
2942
+ async function to(e2, t2) {
2943
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Qa(w({ query: e2, ...t2 }));
2944
+ r2?.onSiteCall?.();
2945
+ try {
2946
+ let e3 = await n2.request(i2);
2947
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `productGroups.media.image` }] }]));
2948
+ } catch (e3) {
2949
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2950
+ throw r2?.onError?.(e3), t3;
2951
+ }
2952
+ }
2953
+ ({ ...H() }, { ...Ta() });
2954
+ function no(e2) {
2955
+ return (t2) => eo(t2, { httpClient: e2 });
2956
+ }
2957
+ function ro(e2) {
2958
+ return (t2, n2) => to(t2, n2, { httpClient: e2 });
2959
+ }
2960
+ function io(e2) {
2961
+ let t2 = Zi({ builderQueryFunction: (t3) => no(e2)(t3), typedQueryFunction: (t3, n3) => ro(e2)(t3, n3), hasOptionsParameter: true });
2962
+ function n2(e3, n3) {
2963
+ return t2(...arguments);
2964
+ }
2965
+ return n2;
2966
+ }
2967
+ var ao = k(io);
2968
+ function oo(e2) {
2969
+ return j(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/location`, destPath: `` }], _: [{ srcPath: `/_api/location`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/location`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/locations`, destPath: `/v3/locations` }] } }));
2970
+ }
2971
+ var so = `@wix/auto_sdk_stores_stores-locations-v-3`;
2972
+ function co(e2) {
2973
+ function t2({ host: t3 }) {
2974
+ return { entityFqdn: `wix.stores.catalog.v3.stores_location`, method: `POST`, methodFqn: `wix.stores.catalog.location.v3.StoresLocationService.QueryStoresLocations`, packageName: so, migrationOptions: { optInTransformResponse: true }, url: oo({ protoPath: `/v3/locations/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `storesLocations.createdDate` }, { path: `storesLocations.updatedDate` }] }]) };
2975
+ }
2976
+ return t2;
2977
+ }
2978
+ function lo() {
2727
2979
  let { httpClient: e2, sideEffects: t2 } = arguments[0];
2728
- return Ni({ func: async (n2) => {
2729
- let r2 = Ua(n2);
2980
+ return Li({ func: async (n2) => {
2981
+ let r2 = co(n2);
2730
2982
  t2?.onSiteCall?.();
2731
2983
  try {
2732
2984
  let n3 = await e2.request(r2);
@@ -2736,359 +2988,472 @@ function Wa() {
2736
2988
  }
2737
2989
  }, requestTransformer: (e3) => {
2738
2990
  let t3 = [e3, {}];
2739
- return S({ ...t3?.[1], query: t3?.[0] });
2991
+ return w({ ...t3?.[1], query: t3?.[0] });
2740
2992
  }, responseTransformer: ({ data: e3 }) => {
2741
- let t3 = C(T(e3, []));
2993
+ let t3 = T(D(e3, []));
2742
2994
  return { items: t3?.storesLocations, pagingMetadata: t3?.pagingMetadata };
2743
2995
  }, errorTransformer: (e3) => {
2744
- throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2996
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2745
2997
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2746
2998
  }
2747
- async function Ga(e2) {
2748
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ua(S({ query: e2 }));
2999
+ async function uo(e2) {
3000
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = co(w({ query: e2 }));
2749
3001
  n2?.onSiteCall?.();
2750
3002
  try {
2751
3003
  let e3 = await t2.request(r2);
2752
- return n2?.onSuccess?.(e3), C(e3.data);
3004
+ return n2?.onSuccess?.(e3), T(e3.data);
2753
3005
  } catch (e3) {
2754
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
3006
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2755
3007
  throw n2?.onError?.(e3), t3;
2756
3008
  }
2757
3009
  }
2758
3010
  ({ ...H() });
2759
- function Ka(e2) {
2760
- return () => Wa({ httpClient: e2 });
3011
+ function fo(e2) {
3012
+ return () => lo({ httpClient: e2 });
2761
3013
  }
2762
- function qa(e2) {
2763
- return (t2) => Ga(t2, { httpClient: e2 });
3014
+ function po(e2) {
3015
+ return (t2) => uo(t2, { httpClient: e2 });
2764
3016
  }
2765
- function Ja(e2) {
2766
- let t2 = qi({ builderQueryFunction: () => Ka(e2)(), typedQueryFunction: (t3) => qa(e2)(t3), hasOptionsParameter: false });
3017
+ function mo(e2) {
3018
+ let t2 = Zi({ builderQueryFunction: () => fo(e2)(), typedQueryFunction: (t3) => po(e2)(t3), hasOptionsParameter: false });
2767
3019
  function n2(e3) {
2768
3020
  return t2(...arguments);
2769
3021
  }
2770
3022
  return n2;
2771
3023
  }
2772
- var Ya = D(Ja);
2773
- function Xa(e2) {
2774
- return k(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/promotion`, destPath: `` }], _: [{ srcPath: `/_api/promotion`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/promotion`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/promotions`, destPath: `/v3/promotions` }, { srcPath: `/stores/v3/bulk/promotions`, destPath: `/v3/bulk/promotions` }], "*.dev.wix-code.com": [{ srcPath: `/_api/promotion`, destPath: `` }] } }));
3024
+ var ho = k(mo);
3025
+ function go(e2) {
3026
+ return j(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/promotion`, destPath: `` }], _: [{ srcPath: `/_api/promotion`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/promotion`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/promotions`, destPath: `/v3/promotions` }, { srcPath: `/stores/v3/bulk/promotions`, destPath: `/v3/bulk/promotions` }], "*.dev.wix-code.com": [{ srcPath: `/_api/promotion`, destPath: `` }] } }));
2775
3027
  }
2776
- var Za = `@wix/auto_sdk_stores_promotions-v-3`;
2777
- function Qa(e2) {
3028
+ var _o = `@wix/auto_sdk_stores_promotions-v-3`;
3029
+ function vo(e2) {
2778
3030
  function t2({ host: t3 }) {
2779
- return { entityFqdn: `wix.stores.catalog.v3.promotion`, method: `GET`, methodFqn: `wix.stores.catalog.promotion.v3.PromotionsService.ResolvePromotions`, packageName: Za, migrationOptions: { optInTransformResponse: true }, url: Xa({ protoPath: `/v3/promotions/resolve`, data: e2, host: t3 }), params: O(e2), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `promotions.promotion.createdDate` }, { path: `promotions.promotion.updatedDate` }, { path: `promotions.promotion.media.image.urlExpirationDate` }] }]) };
3031
+ return { entityFqdn: `wix.stores.catalog.v3.promotion`, method: `GET`, methodFqn: `wix.stores.catalog.promotion.v3.PromotionsService.ResolvePromotions`, packageName: _o, migrationOptions: { optInTransformResponse: true }, url: go({ protoPath: `/v3/promotions/resolve`, data: e2, host: t3 }), params: A(e2), transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `promotions.promotion.createdDate` }, { path: `promotions.promotion.updatedDate` }, { path: `promotions.promotion.media.image.urlExpirationDate` }] }]) };
2780
3032
  }
2781
3033
  return t2;
2782
3034
  }
2783
- ({ ...H() }, { ...xa() });
2784
- async function $a(e2) {
2785
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Qa(S({ categoryId: e2 }));
3035
+ ({ ...H() }, { ...Ta() });
3036
+ async function yo(e2) {
3037
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(w({ categoryId: e2 }));
2786
3038
  n2?.onSiteCall?.();
2787
3039
  try {
2788
3040
  let e3 = await t2.request(r2);
2789
- return n2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `promotions.promotion.media.image` }] }]));
3041
+ return n2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `promotions.promotion.media.image` }] }]));
2790
3042
  } catch (e3) {
2791
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]` }, singleArgumentUnchanged: false }, [`categoryId`]);
3043
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]` }, singleArgumentUnchanged: false }, [`categoryId`]);
2792
3044
  throw n2?.onError?.(e3), t3;
2793
3045
  }
2794
3046
  }
2795
- function eo(e2) {
2796
- return (t2) => $a(t2, { httpClient: e2 });
2797
- }
2798
- var to = y(`wix.stores.catalog.v3.promotion_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.media.image` }] }])))();
2799
- var no = y(`wix.stores.catalog.v3.promotion_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.media.image` }] }])))();
2800
- var ro = y(`wix.stores.catalog.v3.promotion_tags_modified`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `data.promotion.createdDate` }, { path: `data.promotion.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `data.promotion.media.image` }] }])))();
2801
- var io = y(`wix.stores.catalog.v3.promotion_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }, { transformFn: U, paths: [{ path: `entity.media.image` }, { path: `modifiedFields.media.image` }] }])))();
2802
- var ao = D(eo);
2803
- A(to), A(no), A(ro), A(io);
2804
- var J = function(e2) {
2805
- return e2.PRICE = `PRICE`, e2.TEXT_CHOICES = `${W.TEXT_CHOICES}`, e2.SWATCH_CHOICES = `${W.SWATCH_CHOICES}`, e2;
3047
+ function bo(e2) {
3048
+ return (t2) => yo(t2, { httpClient: e2 });
3049
+ }
3050
+ var xo = x(`wix.stores.catalog.v3.promotion_created`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.media.image` }] }])))();
3051
+ var So = x(`wix.stores.catalog.v3.promotion_deleted`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.media.image` }] }])))();
3052
+ var Co = x(`wix.stores.catalog.v3.promotion_tags_modified`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `data.promotion.createdDate` }, { path: `data.promotion.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `data.promotion.media.image` }] }])))();
3053
+ var wo = x(`wix.stores.catalog.v3.promotion_updated`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }, { transformFn: U, paths: [{ path: `entity.media.image` }, { path: `modifiedFields.media.image` }] }])))();
3054
+ var To = k(bo);
3055
+ M(xo), M(So), M(Co), M(wo);
3056
+ var X = function(e2) {
3057
+ return e2.PRICE = `PRICE`, e2.TEXT_CHOICES = `${G.TEXT_CHOICES}`, e2.SWATCH_CHOICES = `${G.SWATCH_CHOICES}`, e2;
2806
3058
  }({});
2807
- var oo = function(e2) {
3059
+ var Eo = function(e2) {
2808
3060
  return e2.TEXT_CHOICES = `Text Choices`, e2.SWATCH_CHOICES = `Swatch Choices`, e2.PRICE = `Price`, e2;
2809
3061
  }({});
2810
- var so = `minPrice`;
2811
- var co = `maxPrice`;
2812
- var lo = (e2, t2) => {
3062
+ var Do = `minPrice`;
3063
+ var Oo = `maxPrice`;
3064
+ var ko = (e2, t2) => {
2813
3065
  let n2 = new Map(e2.values.map((e3) => [e3.name, e3.id]));
2814
3066
  return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
2815
3067
  };
2816
- var uo = (e2) => {
3068
+ var Ao = (e2) => {
2817
3069
  if (e2 === null || e2.trim() === ``) return;
2818
3070
  let t2 = Number(e2);
2819
3071
  return Number.isFinite(t2) ? t2 : void 0;
2820
3072
  };
2821
- var fo = (e2, t2) => {
3073
+ var jo = (e2, t2) => {
2822
3074
  let n2 = {};
2823
3075
  for (let r2 of t2) {
2824
- let t3 = e2.get(r2.name), i2 = lo(r2, t3 ? t3.split(`,`).filter(Boolean) : []);
3076
+ let t3 = e2.get(r2.name), i2 = ko(r2, t3 ? t3.split(`,`).filter(Boolean) : []);
2825
3077
  i2.length > 0 && (n2[r2.id] = i2);
2826
3078
  }
2827
3079
  return n2;
2828
3080
  };
2829
- function po(e2, t2) {
3081
+ function Mo(e2, t2) {
2830
3082
  let n2 = new URLSearchParams(e2);
2831
- return { customizationIdToChoiceIds: fo(n2, t2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES)), priceMin: uo(n2.get(so)), priceMax: uo(n2.get(co)) };
3083
+ return { customizationIdToChoiceIds: jo(n2, t2.filter((e3) => e3.type === X.TEXT_CHOICES || e3.type === X.SWATCH_CHOICES)), priceMin: Ao(n2.get(Do)), priceMax: Ao(n2.get(Oo)) };
2832
3084
  }
2833
- var mo = (e2, t2) => {
3085
+ var No = (e2, t2) => {
2834
3086
  let n2 = new Map(e2.values.map((e3) => [e3.id, e3.name]));
2835
3087
  return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
2836
3088
  };
2837
- var ho = (e2, t2) => {
3089
+ var Po = (e2, t2) => {
2838
3090
  t2.forEach((t3) => {
2839
3091
  e2.delete(t3.name);
2840
- }), e2.delete(so), e2.delete(co);
3092
+ }), e2.delete(Do), e2.delete(Oo);
2841
3093
  };
2842
- var go = (e2) => e2.map(encodeURIComponent).join(`,`);
2843
- var _o = (e2, t2) => {
3094
+ var Fo = (e2) => e2.map(encodeURIComponent).join(`,`);
3095
+ var Io = (e2, t2) => {
2844
3096
  let n2 = new Map(e2.map((e3) => [e3.id, e3]));
2845
3097
  return Object.entries(t2 ?? {}).flatMap(([e3, t3]) => {
2846
3098
  let r2 = n2.get(e3);
2847
3099
  if (!r2) return [];
2848
- let i2 = mo(r2, t3);
2849
- return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${go(i2)}`];
3100
+ let i2 = No(r2, t3);
3101
+ return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${Fo(i2)}`];
2850
3102
  });
2851
3103
  };
2852
- var vo = (e2, t2, n2) => {
2853
- t2.priceMin !== void 0 && t2.priceMin !== n2?.minPrice && e2.set(so, String(t2.priceMin)), t2.priceMax !== void 0 && t2.priceMax !== n2?.maxPrice && e2.set(co, String(t2.priceMax));
3104
+ var Lo = (e2, t2, n2) => {
3105
+ t2.priceMin !== void 0 && t2.priceMin !== n2?.minPrice && e2.set(Do, String(t2.priceMin)), t2.priceMax !== void 0 && t2.priceMax !== n2?.maxPrice && e2.set(Oo, String(t2.priceMax));
2854
3106
  };
2855
- function yo(e2, t2, n2) {
2856
- let r2 = new URLSearchParams(e2), i2 = n2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES), a2 = n2.find((e3) => e3.type === J.PRICE);
2857
- ho(r2, i2), vo(r2, t2, a2);
2858
- let o2 = _o(i2, t2.customizationIdToChoiceIds), s2 = [r2.toString(), ...o2].filter(Boolean).join(`&`);
3107
+ function Ro(e2, t2, n2) {
3108
+ let r2 = new URLSearchParams(e2), i2 = n2.filter((e3) => e3.type === X.TEXT_CHOICES || e3.type === X.SWATCH_CHOICES), a2 = n2.find((e3) => e3.type === X.PRICE);
3109
+ Po(r2, i2), Lo(r2, t2, a2);
3110
+ let o2 = Io(i2, t2.customizationIdToChoiceIds), s2 = [r2.toString(), ...o2].filter(Boolean).join(`&`);
2859
3111
  return s2 ? `?${s2}` : ``;
2860
3112
  }
2861
- function bo(e2) {
2862
- let { search: t2, pushSearch: n2 } = yi(), i2 = r(() => po(t2, e2), [t2, e2]), a2 = (r2) => {
2863
- r2 !== i2 && n2(yo(t2, r2, e2));
3113
+ function zo(e2) {
3114
+ let { search: t2, pushSearch: n2 } = Ci(), i2 = r(() => Mo(t2, e2), [t2, e2]), a2 = (r2) => {
3115
+ r2 !== i2 && n2(Ro(t2, r2, e2));
2864
3116
  };
2865
3117
  return { filterSelection: i2, selectFilterChoice: (e3, t3) => {
2866
- a2(xi(i2, e3, t3));
3118
+ a2(Ti(i2, e3, t3));
2867
3119
  }, deselectFilterChoice: (e3, t3) => {
2868
- a2(Si(i2, e3, t3));
3120
+ a2(Ei(i2, e3, t3));
2869
3121
  }, setPriceRange: (e3, t3) => {
2870
- a2(Ci(i2, e3, t3));
3122
+ a2(Di(i2, e3, t3));
2871
3123
  }, clearPriceRange: () => {
2872
- a2(wi(i2));
3124
+ a2(Oi(i2));
2873
3125
  }, clearAllFilters: () => {
2874
- bi(i2) || a2({});
3126
+ wi(i2) || a2({});
2875
3127
  } };
2876
3128
  }
2877
- var xo = function(e2) {
3129
+ var Bo = function(e2) {
2878
3130
  return e2.createdDate = `createdDate`, e2.actualPriceRangeMinValueAmount = `actualPriceRange.minValue.amount`, e2.name = `name`, e2;
2879
3131
  }({});
2880
- var Y = function(e2) {
3132
+ var Z = function(e2) {
2881
3133
  return e2.recommended = `recommended`, e2.newest = `newest`, e2.price_ascending = `price_ascending`, e2.price_descending = `price_descending`, e2.name_ascending = `name_ascending`, e2.name_descending = `name_descending`, e2;
2882
3134
  }({});
2883
- var So = [{ type: Y.recommended }, { type: Y.newest, fieldName: xo.createdDate, order: K.DESC }, { type: Y.price_ascending, fieldName: xo.actualPriceRangeMinValueAmount, order: K.ASC }, { type: Y.price_descending, fieldName: xo.actualPriceRangeMinValueAmount, order: K.DESC }, { type: Y.name_ascending, fieldName: xo.name, order: K.ASC }, { type: Y.name_descending, fieldName: xo.name, order: K.DESC }];
2884
- function Co(e2) {
2885
- return So.find((t2) => t2.type === e2);
2886
- }
2887
- var wo = Y.recommended;
2888
- var To = So.map(({ type: e2 }) => e2);
2889
- var Eo = `sort`;
2890
- function Do(e2) {
2891
- let t2 = Co(new URLSearchParams(e2).get(Eo));
2892
- return t2 ? t2.type : wo;
2893
- }
2894
- function Oo(e2, t2) {
3135
+ var Vo = [{ type: Z.recommended }, { type: Z.newest, fieldName: Bo.createdDate, order: J.DESC }, { type: Z.price_ascending, fieldName: Bo.actualPriceRangeMinValueAmount, order: J.ASC }, { type: Z.price_descending, fieldName: Bo.actualPriceRangeMinValueAmount, order: J.DESC }, { type: Z.name_ascending, fieldName: Bo.name, order: J.ASC }, { type: Z.name_descending, fieldName: Bo.name, order: J.DESC }];
3136
+ function Ho(e2) {
3137
+ return Vo.find((t2) => t2.type === e2);
3138
+ }
3139
+ var Uo = Z.recommended;
3140
+ var Wo = Vo.map(({ type: e2 }) => e2);
3141
+ var Go = `sort`;
3142
+ function Ko(e2) {
3143
+ let t2 = Ho(new URLSearchParams(e2).get(Go));
3144
+ return t2 ? t2.type : Uo;
3145
+ }
3146
+ function qo(e2, t2) {
2895
3147
  let n2 = new URLSearchParams(e2);
2896
- return t2 === wo ? n2.delete(Eo) : n2.set(Eo, t2), n2.toString();
3148
+ return t2 === Uo ? n2.delete(Go) : n2.set(Go, t2), n2.toString();
2897
3149
  }
2898
- function ko() {
2899
- let { search: e2, pushSearch: t2 } = yi(), n2 = r(() => Do(e2), [e2]);
2900
- return { sortTypes: To, selectedSortType: n2, selectSortType: (r2) => {
2901
- r2 !== n2 && t2(Oo(e2, r2));
3150
+ function Jo() {
3151
+ let { search: e2, pushSearch: t2 } = Ci(), n2 = r(() => Ko(e2), [e2]);
3152
+ return { sortTypes: Wo, selectedSortType: n2, selectSortType: (r2) => {
3153
+ r2 !== n2 && t2(qo(e2, r2));
2902
3154
  } };
2903
3155
  }
2904
- var Ao = `https://static.wixstatic.com/media`;
2905
- var jo = `https://video.wixstatic.com/video`;
2906
- var Mo = /image:\/\/v1\/([^/#]+)/;
2907
- var No = /^(?:wix:)?video:\/\/v1\/([^/#]+)(?:\/[^#]*)?(?:#(.*))?$/;
2908
- function Po(e2) {
2909
- let t2 = e2?.match(No);
3156
+ var Yo = `https://static.wixstatic.com/media`;
3157
+ var Xo = `https://video.wixstatic.com/video`;
3158
+ var Zo = /image:\/\/v1\/([^/#]+)/;
3159
+ var Qo = /^(?:wix:)?video:\/\/v1\/([^/#]+)(?:\/[^#]*)?(?:#(.*))?$/;
3160
+ function $o(e2) {
3161
+ let t2 = e2?.match(Qo);
2910
3162
  if (!t2) return null;
2911
3163
  let [, n2, r2] = t2, i2 = new URLSearchParams(r2 ?? ``), a2 = i2.get(`posterUri`);
2912
- return { id: n2, url: `${jo}/${n2}/file`, ...a2 ? { poster: { uri: a2, url: `${Ao}/${a2}`, width: Number(i2.get(`posterWidth`)) || 0, height: Number(i2.get(`posterHeight`)) || 0 } } : {} };
3164
+ return { id: n2, url: `${Xo}/${n2}/file`, ...a2 ? { poster: { uri: a2, url: `${Yo}/${a2}`, width: Number(i2.get(`posterWidth`)) || 0, height: Number(i2.get(`posterHeight`)) || 0 } } : {} };
2913
3165
  }
2914
- function Fo(e2) {
2915
- return e2 ? e2.match(Mo)?.[1] ?? null : null;
3166
+ function es(e2) {
3167
+ return e2 ? e2.match(Zo)?.[1] ?? null : null;
2916
3168
  }
2917
- function Io(e2) {
3169
+ function ts(e2) {
2918
3170
  if (!e2) return null;
2919
3171
  let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
2920
3172
  return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
2921
3173
  }
2922
- function Lo(e2) {
3174
+ function ns(e2) {
2923
3175
  return e2.map((e3) => ({ id: e3._id, key: e3.key, name: e3.name ?? void 0, optionRenderType: e3.optionRenderType, choices: (e3.choicesSettings?.choices ?? []).map((e4) => {
2924
- let t2 = Fo(e4.displayImage) ?? void 0;
2925
- return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t2 ? { displayImageUri: t2 } : {}, inStock: e4.inStock, visible: e4.visible ?? void 0, mediaIds: Ro(e4.media) };
3176
+ let t2 = es(e4.displayImage) ?? void 0;
3177
+ return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t2 ? { displayImageUri: t2 } : {}, inStock: e4.inStock, visible: e4.visible ?? void 0, mediaIds: rs(e4.media) };
2926
3178
  }) }));
2927
3179
  }
2928
- var Ro = (e2) => {
3180
+ var rs = (e2) => {
2929
3181
  let t2 = (e2?.items ?? []).map((e3) => e3.mediaId);
2930
3182
  return t2.length > 0 ? t2 : void 0;
2931
3183
  };
2932
- function zo(e2) {
3184
+ function is(e2) {
2933
3185
  let t2 = e2.map((e3) => {
2934
- let t3 = e3._id, n2 = e3.modifierRenderType === Da.FREE_TEXT;
3186
+ let t3 = e3._id, n2 = e3.modifierRenderType === Aa.FREE_TEXT;
2935
3187
  return [t3, { id: t3, key: e3.key, name: e3.name ?? void 0, mandatory: e3.mandatory !== false, modifierRenderType: e3.modifierRenderType, freeTextSettings: n2 ? e3.freeTextSettings : void 0, choices: n2 ? void 0 : (e3.choicesSettings?.choices ?? []).map((e4) => {
2936
- let t4 = Fo(e4.displayImage) ?? void 0;
2937
- return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds: Ro(e4.media) };
3188
+ let t4 = es(e4.displayImage) ?? void 0;
3189
+ return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds: rs(e4.media) };
2938
3190
  }) }];
2939
3191
  });
2940
3192
  return Object.fromEntries(t2);
2941
3193
  }
2942
- function Bo(e2) {
2943
- return e2.filter((e3) => e3.visible !== false).map(Vo);
3194
+ function as(e2) {
3195
+ return e2.filter((e3) => e3.visible !== false).map(os);
2944
3196
  }
2945
- var Vo = (e2) => {
3197
+ var os = (e2) => {
2946
3198
  let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
2947
3199
  let t3 = e3.optionChoiceIds;
2948
3200
  return [t3?.optionId, t3?.choiceId];
2949
3201
  }));
2950
- return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: Uo(e2), subscriptionPrices: Wo(e2) };
3202
+ return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: cs(e2), subscriptionPrices: ls(e2) };
2951
3203
  };
2952
- function Ho(e2) {
3204
+ function ss(e2) {
2953
3205
  return e2?.description == null ? void 0 : { description: e2.description };
2954
3206
  }
2955
- var Uo = (e2) => {
3207
+ var cs = (e2) => {
2956
3208
  let t2 = e2.price;
2957
- return { actualPrice: cs(t2?.actualPrice), compareAtPrice: X(t2?.compareAtPrice), priceAfterDiscount: X(t2?.priceAfterDiscount), pricePerUnit: Ho(e2.physicalProperties?.pricePerUnit) };
3209
+ return { actualPrice: Ds(t2?.actualPrice), compareAtPrice: Os(t2?.compareAtPrice), priceAfterDiscount: Os(t2?.priceAfterDiscount), pricePerUnit: ss(e2.physicalProperties?.pricePerUnit) };
2958
3210
  };
2959
- var Wo = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: cs(e3.price) }));
2960
- var Go = { nodes: [] };
2961
- var Ko = `@stores/product-groups`;
2962
- function qo(e2) {
2963
- let t2 = Lo(e2.options ?? []), n2 = zo(e2.modifiers ?? []), r2 = Zo(e2.subscriptionDetails?.subscriptions ?? []), i2 = Bo(e2.variantsInfo?.variants ?? []), a2 = { subscriptions: r2, allowOneTimePurchases: e2.subscriptionDetails?.allowOneTimePurchases ?? false }, o2 = e2.additionalRibbons ?? [], s2 = { primary: e2.ribbon?.name ?? void 0, additional: o2.map((e3) => e3.name ?? void 0).filter((e3) => !!e3) }, c2 = e2.description ? Qo(e2.description) : Go, l2 = e2.discountInfo?.discountRuleNames, u2 = Yo(e2);
2964
- return { id: e2._id, slug: e2.slug ?? void 0, url: e2.url ? { href: e2.url } : void 0, name: e2.name, description: c2, media: ss(e2), mainMedia: os(e2.media?.main), ribbons: s2, breadcrumbs: $o(e2), mainCategoryId: e2.mainCategoryId ?? void 0, categories: es(e2), infoSections: Jo(e2), currency: e2.currency, options: t2, modifiers: n2, variants: i2, minPriceVariant: is(e2), priceRange: as(e2), subscriptionDetails: a2, inventory: { availabilityStatus: e2.inventory?.availabilityStatus, preorderAvailability: e2.inventory?.preorderAvailability }, discountRuleNames: l2, productGroupId: u2 };
3211
+ var ls = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: Ds(e3.price) }));
3212
+ var us = { nodes: [] };
3213
+ var ds = `@stores/product-groups`;
3214
+ function fs(e2) {
3215
+ let t2 = ns(e2.options ?? []), n2 = is(e2.modifiers ?? []), r2 = gs(e2.subscriptionDetails?.subscriptions ?? []), i2 = as(e2.variantsInfo?.variants ?? []), a2 = { subscriptions: r2, allowOneTimePurchases: e2.subscriptionDetails?.allowOneTimePurchases ?? false }, o2 = e2.additionalRibbons ?? [], s2 = { primary: e2.ribbon?.name ?? void 0, additional: o2.map((e3) => e3.name ?? void 0).filter((e3) => !!e3) }, c2 = e2.description ? _s(e2.description) : us, l2 = e2.discountInfo?.discountRuleNames, u2 = ms(e2);
3216
+ return { id: e2._id, slug: e2.slug ?? void 0, url: e2.url ? { href: e2.url } : void 0, name: e2.name, description: c2, media: Es(e2), mainMedia: Ts(e2.media?.main), ribbons: s2, breadcrumbs: vs(e2), mainCategoryId: e2.mainCategoryId ?? void 0, categories: ys(e2), infoSections: ps(e2), currency: e2.currency, options: t2, modifiers: n2, variants: i2, minPriceVariant: Cs(e2), priceRange: ws(e2), subscriptionDetails: a2, inventory: { availabilityStatus: e2.inventory?.availabilityStatus, preorderAvailability: e2.inventory?.preorderAvailability }, discountRuleNames: l2, productGroupId: u2 };
2965
3217
  }
2966
- function Jo(e2) {
2967
- return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ? Qo(e3.description) : void 0 }));
3218
+ function ps(e2) {
3219
+ return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ? _s(e3.description) : void 0 }));
2968
3220
  }
2969
- function Yo(e2) {
2970
- let t2 = e2.extendedFields?.namespaces?.[Ko]?.productGroupId;
3221
+ function ms(e2) {
3222
+ let t2 = e2.extendedFields?.namespaces?.[ds]?.productGroupId;
2971
3223
  return typeof t2 == `string` ? t2 : void 0;
2972
3224
  }
2973
- function Xo(e2) {
3225
+ function hs(e2) {
2974
3226
  return e2 === `WEEK` || e2 === `MONTH` || e2 === `YEAR` ? e2 : void 0;
2975
3227
  }
2976
- function Zo(e2) {
2977
- return e2.filter((e3) => e3.visible !== false).map((e3) => ({ id: e3._id, name: e3.title, description: e3.description ?? void 0, frequency: Xo(e3.frequency), interval: e3.interval, billingCycles: e3.billingCycles ?? void 0 }));
3228
+ function gs(e2) {
3229
+ return e2.filter((e3) => e3.visible !== false).map((e3) => ({ id: e3._id, name: e3.title, description: e3.description ?? void 0, frequency: hs(e3.frequency), interval: e3.interval, billingCycles: e3.billingCycles ?? void 0 }));
2978
3230
  }
2979
- function Qo(e2) {
3231
+ function _s(e2) {
2980
3232
  return { ...e2, nodes: e2.nodes ?? [] };
2981
3233
  }
2982
- function $o(e2) {
3234
+ function vs(e2) {
2983
3235
  return (e2.breadcrumbsInfo?.breadcrumbs ?? []).map((e3) => ({ id: e3.categoryId, name: e3.categoryName, slug: e3.categorySlug }));
2984
3236
  }
2985
- function es(e2) {
3237
+ function ys(e2) {
2986
3238
  return (e2.directCategoriesInfo?.categories ?? []).flatMap((e3) => e3._id ? [{ id: e3._id }] : []);
2987
3239
  }
2988
- function ts(e2) {
3240
+ function bs(e2) {
2989
3241
  return { ...e2.displayName ? { title: e2.displayName } : {}, ...e2.altText ? { alt: e2.altText } : {} };
2990
3242
  }
2991
- function ns(e2, t2) {
3243
+ function xs(e2, t2) {
2992
3244
  let n2 = e2.image ?? e2.url;
2993
3245
  if (!n2) return;
2994
- let r2 = Io(e2.image), { title: i2, alt: a2 } = ts(e2);
2995
- return { id: Fo(e2.image) ?? e2._id ?? t2, media: { type: `image`, src: n2, ...r2 ? { width: r2.width, height: r2.height } : {}, ...i2 ? { title: i2 } : {}, ...a2 ? { parameters: { alt: a2 } } : {} } };
3246
+ let r2 = ts(e2.image), { title: i2, alt: a2 } = bs(e2);
3247
+ return { id: es(e2.image) ?? e2._id ?? t2, media: { type: `image`, src: n2, ...r2 ? { width: r2.width, height: r2.height } : {}, ...i2 ? { title: i2 } : {}, ...a2 ? { parameters: { alt: a2 } } : {} } };
2996
3248
  }
2997
- function rs(e2, t2) {
2998
- let n2 = Po(e2.video), r2 = n2?.url ?? e2.url;
3249
+ function Ss(e2, t2) {
3250
+ let n2 = $o(e2.video), r2 = n2?.url ?? e2.url;
2999
3251
  if (!r2) return;
3000
- let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } = ts(e2);
3252
+ let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } = bs(e2);
3001
3253
  return { id: n2?.id ?? e2._id ?? t2, media: { type: `video`, src: r2, ...a2 === void 0 ? {} : { width: a2 }, ...o2 === void 0 ? {} : { height: o2 }, ...s2 ? { title: s2 } : {}, ...c2 || i2 ? { parameters: { ...c2 ? { alt: c2 } : {}, ...i2 ? { thumbnail: i2 } : {} } } : {} } };
3002
3254
  }
3003
- function is(e2) {
3255
+ function Cs(e2) {
3004
3256
  let t2 = e2.variantSummary?.minPriceVariant;
3005
- return t2 ? Bo([t2])[0] : void 0;
3257
+ return t2 ? as([t2])[0] : void 0;
3006
3258
  }
3007
- function as(e2) {
3008
- return { minActualPrice: X(e2.actualPriceRange?.minValue), maxActualPrice: X(e2.actualPriceRange?.maxValue), minCompareAtPrice: X(e2.compareAtPriceRange?.minValue), maxCompareAtPrice: X(e2.compareAtPriceRange?.maxValue) };
3259
+ function ws(e2) {
3260
+ return { minActualPrice: Os(e2.actualPriceRange?.minValue), maxActualPrice: Os(e2.actualPriceRange?.maxValue), minCompareAtPrice: Os(e2.compareAtPriceRange?.minValue), maxCompareAtPrice: Os(e2.compareAtPriceRange?.maxValue) };
3009
3261
  }
3010
- function os(e2) {
3262
+ function Ts(e2) {
3011
3263
  if (!e2) return;
3012
- let { title: t2, alt: n2 } = ts(e2);
3264
+ let { title: t2, alt: n2 } = bs(e2);
3013
3265
  if (e2.mediaType === `VIDEO`) {
3014
- let r3 = Po(e2.video)?.poster;
3266
+ let r3 = $o(e2.video)?.poster;
3015
3267
  return r3 ? { ...r3, name: t2, alt: n2 } : void 0;
3016
3268
  }
3017
3269
  let r2 = e2.image ?? e2.url;
3018
3270
  if (!r2) return;
3019
- let i2 = Io(e2.image);
3020
- return { uri: Fo(e2.image) ?? void 0, url: r2, width: i2?.width, height: i2?.height, name: t2, alt: n2 };
3271
+ let i2 = ts(e2.image);
3272
+ return { uri: es(e2.image) ?? void 0, url: r2, width: i2?.width, height: i2?.height, name: t2, alt: n2 };
3021
3273
  }
3022
- function ss(e2) {
3274
+ function Es(e2) {
3023
3275
  return (e2.media?.itemsInfo?.items ?? (e2.media?.main ? [e2.media.main] : [])).flatMap((e3, t2) => {
3024
- let n2 = e3.mediaType === `VIDEO` ? rs(e3, String(t2)) : ns(e3, String(t2));
3276
+ let n2 = e3.mediaType === `VIDEO` ? Ss(e3, String(t2)) : xs(e3, String(t2));
3025
3277
  return n2 ? [n2] : [];
3026
3278
  });
3027
3279
  }
3028
- var cs = (e2) => Number.parseFloat(e2?.amount);
3029
- var X = (e2) => e2?.amount == null ? void 0 : cs(e2);
3030
- var Z = function(e2) {
3280
+ var Ds = (e2) => Number.parseFloat(e2?.amount);
3281
+ var Os = (e2) => e2?.amount == null ? void 0 : Ds(e2);
3282
+ var ks = function(e2) {
3031
3283
  return e2.PRICE = `PRICE`, e2.OPTIONS = `OPTIONS`, e2.MODIFIERS = `MODIFIERS`, e2;
3032
3284
  }({});
3033
- var ls = `allCategoriesInfo.categories`;
3285
+ var As = `allCategoriesInfo.categories`;
3034
3286
  var Q = { minPrice: `min_price`, maxPrice: `max_price`, optionsWithChoice: `options_with_choice`, modifiersWithChoice: `modifiers_with_choice`, options: `options`, modifiers: `modifiers` };
3035
3287
  var $ = { minPrice: `actualPriceRange.minValue.amount`, maxPrice: `actualPriceRange.maxValue.amount`, option: `options.id`, optionChoice: `options.choicesSettings.choices.choiceId`, modifier: `modifiers.id`, modifierChoice: `modifiers.choicesSettings.choices.choiceId` };
3036
- var us = { options: 1e3, modifiers: 1e3, choices: 2e4 };
3037
- var ds = ({ priceMin: e2, priceMax: t2 }) => {
3288
+ var js = { options: 1e3, modifiers: 1e3, choices: 2e4 };
3289
+ var Ms = ({ priceMin: e2, priceMax: t2 }) => {
3038
3290
  let n2 = [];
3039
3291
  return e2 !== void 0 && n2.push({ [$.minPrice]: { $gte: e2 } }), t2 !== void 0 && n2.push({ [$.maxPrice]: { $lte: t2 } }), n2;
3040
3292
  };
3041
- var fs = (e2, t2) => {
3293
+ var Ns = (e2, t2) => {
3042
3294
  let n2 = new Map(e2.values.map((e3) => [e3.id, e3]));
3043
3295
  return t2.flatMap((e3) => {
3044
3296
  let t3 = n2.get(e3);
3045
3297
  return t3 ? [t3.id, ...t3.childIds ?? []] : [e3];
3046
3298
  });
3047
3299
  };
3048
- var ps = (e2, t2) => ({ [e2.customizationType === ea.MODIFIER ? $.modifierChoice : $.optionChoice]: { $hasSome: fs(e2, t2) } });
3049
- var ms = (e2, t2) => {
3050
- let n2 = new Map(e2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES).map((e3) => [e3.id, e3]));
3300
+ var Ps = (e2, t2) => ({ [e2.customizationType === ra.MODIFIER ? $.modifierChoice : $.optionChoice]: { $hasSome: Ns(e2, t2) } });
3301
+ var Fs = (e2, t2) => {
3302
+ let n2 = new Map(e2.filter((e3) => e3.type === X.TEXT_CHOICES || e3.type === X.SWATCH_CHOICES).map((e3) => [e3.id, e3]));
3051
3303
  return Object.entries(t2.customizationIdToChoiceIds ?? {}).flatMap(([e3, t3]) => {
3052
3304
  let r2 = n2.get(e3);
3053
- return !r2 || t3.length === 0 ? [] : [ps(r2, t3)];
3305
+ return !r2 || t3.length === 0 ? [] : [Ps(r2, t3)];
3054
3306
  });
3055
3307
  };
3056
- function hs(e2, t2, n2) {
3057
- let r2 = [{ [ls]: { $matchItems: [{ id: e2 }] } }, ...ds(n2), ...ms(t2, n2)];
3308
+ function Is(e2, t2, n2) {
3309
+ let r2 = [{ [As]: { $matchItems: [{ id: e2 }] } }, ...Ms(n2), ...Fs(t2, n2)];
3058
3310
  return r2.length === 1 ? r2[0] : { $and: r2 };
3059
3311
  }
3060
- function gs(e2) {
3061
- let t2 = Co(e2);
3312
+ function Ls(e2) {
3313
+ let t2 = Ho(e2);
3062
3314
  if (t2?.fieldName) return [{ fieldName: t2.fieldName, order: t2.order }];
3063
3315
  }
3064
- var _s = [q.URL, q.CURRENCY, q.MEDIA_ITEMS_INFO, q.MIN_PRICE_VARIANT, q.DISCOUNT_INFO, q.PRODUCT_CHOICES_MEDIA_REFERENCES, q.BREADCRUMBS_INFO];
3065
- var vs = async (e2, t2) => {
3066
- let n2 = await za({ cursorPaging: { limit: t2, cursor: e2 } }, { fields: _s });
3067
- return { products: (n2.products ?? []).map(qo), nextCursor: n2.pagingMetadata?.cursors?.next ?? void 0, hasNext: n2.pagingMetadata?.hasNext ?? false };
3316
+ var Rs = [Y.URL, Y.CURRENCY, Y.MEDIA_ITEMS_INFO, Y.MIN_PRICE_VARIANT, Y.DISCOUNT_INFO, Y.PRODUCT_CHOICES_MEDIA_REFERENCES, Y.BREADCRUMBS_INFO];
3317
+ async function zs(e2) {
3318
+ let t2 = (await Ya({ fields: Rs }).eq(`_id`, e2).limit(1).find()).items[0];
3319
+ return t2 ? fs(t2) : null;
3320
+ }
3321
+ var Bs = async (e2, t2) => {
3322
+ let n2 = await qa({ cursorPaging: { limit: t2, cursor: e2 } }, { fields: Rs });
3323
+ return { products: (n2.products ?? []).map(fs), nextCursor: n2.pagingMetadata?.cursors?.next ?? void 0, hasNext: n2.pagingMetadata?.hasNext ?? false };
3068
3324
  };
3069
- async function ys({ categoryId: e2, filters: t2, filterSelection: n2, sortType: r2, productsPerPage: i2, cursor: a2 }) {
3070
- if (a2 !== void 0) return vs(a2, i2);
3071
- let o2 = hs(e2, t2, n2), s2 = gs(r2), c2 = { filter: o2, cursorPaging: { limit: i2 }, ...s2 && { sort: s2 } }, [l2, u2] = await Promise.all([za(c2, { fields: _s }), Ba({ filter: o2 })]);
3072
- return { products: (l2.products ?? []).map(qo), productCount: u2?.count ?? 0, nextCursor: l2.pagingMetadata?.cursors?.next ?? void 0, hasNext: l2.pagingMetadata?.hasNext ?? false };
3325
+ async function Vs({ categoryId: e2, filters: t2, filterSelection: n2, sortType: r2, productsPerPage: i2, cursor: a2 }) {
3326
+ if (a2 !== void 0) return Bs(a2, i2);
3327
+ let o2 = Is(e2, t2, n2), s2 = Ls(r2), c2 = { filter: o2, cursorPaging: { limit: i2 }, ...s2 && { sort: s2 } }, [l2, u2] = await Promise.all([qa(c2, { fields: Rs }), Ja({ filter: o2 })]);
3328
+ return { products: (l2.products ?? []).map(fs), productCount: u2?.count ?? 0, nextCursor: l2.pagingMetadata?.cursors?.next ?? void 0, hasNext: l2.pagingMetadata?.hasNext ?? false };
3329
+ }
3330
+ function Hs(e2) {
3331
+ if (e2 === `IN_STOCK` || e2 === `OUT_OF_STOCK` || e2 === `PARTIALLY_OUT_OF_STOCK`) return e2;
3332
+ }
3333
+ function Us(e2) {
3334
+ if (!(!e2 || e2.customizationRenderType !== `TEXT_CHOICES` && e2.customizationRenderType !== `SWATCH_CHOICES`)) {
3335
+ if (e2.customizationType === `PRODUCT_OPTION`) return `PRODUCT_OPTION`;
3336
+ if (e2.customizationType === `MODIFIER`) return `MODIFIER`;
3337
+ }
3338
+ }
3339
+ function Ws(e2) {
3340
+ return !e2._id || !e2.key ? null : { choiceId: e2._id, key: e2.key, name: e2.name, colorCode: e2.colorCode };
3341
+ }
3342
+ function Gs(e2) {
3343
+ if (e2.status !== `ACTIVE` || !e2.productId || !e2.slug || !e2.choice) return null;
3344
+ let t2 = Ws(e2.choice);
3345
+ return t2 ? { productId: e2.productId, choice: t2, slug: e2.slug, inventoryAvailabilityStatus: Hs(e2.inventoryAvailabilityStatus) } : null;
3346
+ }
3347
+ function Ks(e2) {
3348
+ let t2 = e2.groupingCustomizationId, n2 = Us(e2.groupingCustomization);
3349
+ if (!t2 || !n2) return;
3350
+ let r2 = (e2.members ?? []).map((e3) => Gs(e3)).filter((e3) => e3 !== null);
3351
+ if (r2.length !== 0) return { groupingCustomizationId: t2, customizationType: n2, members: r2 };
3352
+ }
3353
+ function qs(e2) {
3354
+ let t2 = /* @__PURE__ */ new Map();
3355
+ for (let n2 of e2) {
3356
+ let e3 = n2._id;
3357
+ if (!e3) continue;
3358
+ let r2 = Ks(n2);
3359
+ r2 && t2.set(e3, r2);
3360
+ }
3361
+ return t2;
3362
+ }
3363
+ async function Js(e2) {
3364
+ if (e2.length === 0) return /* @__PURE__ */ new Map();
3365
+ try {
3366
+ return qs((await ao({ fields: [$a.GROUPING_CUSTOMIZATION] }).in(`_id`, e2).limit(100).find()).items);
3367
+ } catch {
3368
+ return /* @__PURE__ */ new Map();
3369
+ }
3073
3370
  }
3074
- var bs = (e2, t2) => `${e2}:${[...t2].toSorted().join(`,`)}`;
3075
- function xs(e2) {
3076
- if (bi(e2)) return ``;
3077
- let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => bs(e3, t3)).toSorted().join(`;`), n2 = [];
3371
+ function Ys(e2, t2) {
3372
+ let n2 = /* @__PURE__ */ new Set();
3373
+ for (let r2 of e2) {
3374
+ let e3 = r2.productGroupId;
3375
+ e3 && !t2.has(e3) && n2.add(e3);
3376
+ }
3377
+ return n2;
3378
+ }
3379
+ async function Xs(e2, t2) {
3380
+ let n2 = Ys(e2, t2);
3381
+ return n2.size === 0 ? /* @__PURE__ */ new Map() : Js([...n2]);
3382
+ }
3383
+ var Zs = (e2, t2) => `${e2}:${[...t2].toSorted().join(`,`)}`;
3384
+ function Qs(e2) {
3385
+ if (wi(e2)) return ``;
3386
+ let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => Zs(e3, t3)).toSorted().join(`;`), n2 = [];
3078
3387
  return e2.priceMin !== void 0 && n2.push(`min:${e2.priceMin}`), e2.priceMax !== void 0 && n2.push(`max:${e2.priceMax}`), t2 && n2.push(t2), n2.join(`&`);
3079
3388
  }
3080
- function Ss(e2, t2, i2, a2, o2, s2) {
3081
- let c2 = xs(i2), l2 = c2 === s2.filterSelectionKey && a2 === s2.sortType && o2 === s2.productsPerPage ? { pages: [s2.page], pageParams: [void 0] } : void 0, { data: u2, isFetching: d2, isError: f2, hasNextPage: p2, fetchNextPage: m2 } = ei({ queryKey: [`category-products`, e2, c2, a2, o2], queryFn: ({ pageParam: n2 }) => ys({ categoryId: e2, filters: t2, filterSelection: i2, sortType: a2, productsPerPage: o2, cursor: n2 }), initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: l2, staleTime: 1 / 0, placeholderData: $n, retry: false }), ee2 = n(async () => {
3082
- await m2({ cancelRefetch: false });
3083
- }, [m2]);
3084
- return { products: r(() => (u2?.pages ?? []).flatMap((e3) => e3.products), [u2]), productCount: u2?.pages[0]?.productCount ?? 0, isLoadingProducts: d2, hasProductsError: f2, hasMoreProducts: p2, loadMoreProducts: ee2 };
3389
+ function $s(e2, t2, a2, o2, s2, c2) {
3390
+ let l2 = Qs(a2), u2 = `${l2}:${o2}:${s2}`, d2 = l2 === c2.filterSelectionKey && o2 === c2.sortType && s2 === c2.productsPerPage ? { pages: [c2.page], pageParams: [void 0] } : void 0, f2 = i(new Map(Object.entries(c2.productGroupByGroupId))), { data: p2, isFetching: m2, isError: h2, hasNextPage: ee2, fetchNextPage: g2 } = ii({ queryKey: [`category-products`, e2, l2, o2, s2], queryFn: async ({ pageParam: n2 }) => {
3391
+ let r2 = await Vs({ categoryId: e2, filters: t2, filterSelection: a2, sortType: o2, productsPerPage: s2, cursor: n2 });
3392
+ return (await Xs(r2.products, f2.current)).forEach((e3, t3) => f2.current.set(t3, e3)), r2;
3393
+ }, initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: d2, staleTime: 1 / 0, placeholderData: Qn, retry: false }), _2 = n(async () => {
3394
+ await g2({ cancelRefetch: false });
3395
+ }, [g2]);
3396
+ return { products: r(() => (p2?.pages ?? []).flatMap((e3) => e3.products), [p2]), productGroupByGroupId: f2.current, productListKey: u2, productCount: p2?.pages[0]?.productCount ?? 0, isLoadingProducts: m2, hasProductsError: h2, hasMoreProducts: ee2, loadMoreProducts: _2 };
3397
+ }
3398
+ function ec(e2, t2) {
3399
+ let n2 = new Set(e2.map((e3) => e3.id));
3400
+ return [...new Set(t2.values())].filter((e3) => !n2.has(e3));
3401
+ }
3402
+ function tc(e2, t2, n2) {
3403
+ let r2 = new Map([...e2, ...t2].map((e3) => [e3.id, e3])), i2 = /* @__PURE__ */ new Map();
3404
+ return n2.forEach((e3, t3) => {
3405
+ let n3 = r2.get(e3);
3406
+ n3 && i2.set(t3, n3);
3407
+ }), i2;
3408
+ }
3409
+ function nc(e2) {
3410
+ return ni({ queries: e2.map((e3) => ({ queryKey: [`sibling-product`, e3], queryFn: () => zs(e3), staleTime: 1 / 0, retry: false })) }).flatMap(({ data: e3 }) => e3 ? [e3] : []);
3411
+ }
3412
+ function rc(e2, t2) {
3413
+ return tc(e2, nc(r(() => ec(e2, t2), [e2, t2])), t2);
3414
+ }
3415
+ function ic({ products: e2, productListKey: t2 }) {
3416
+ let [i2, o2] = a(() => /* @__PURE__ */ new Map()), [s2, c2] = a(t2);
3417
+ s2 !== t2 && (c2(t2), o2(/* @__PURE__ */ new Map()));
3418
+ let l2 = rc(e2, i2);
3419
+ return { displayedProducts: r(() => e2.map((e3, t3) => l2.get(t3) ?? e3), [e2, l2]), selectProductGroupMember: n((t3, n2) => {
3420
+ let r2 = e2[t3];
3421
+ r2 && o2((e3) => ac(e3, t3, n2, r2.id));
3422
+ }, [e2]) };
3423
+ }
3424
+ function ac(e2, t2, n2, r2) {
3425
+ let i2 = new Map(e2);
3426
+ return n2 === r2 ? i2.delete(t2) : i2.set(t2, n2), i2;
3427
+ }
3428
+ function oc({ products: e2, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 }) {
3429
+ let o2 = i([]);
3430
+ return r(() => {
3431
+ if (t2.size === 0) return e2.map((e3) => ({ product: e3, defaultLocationId: n2 }));
3432
+ let r2 = sc({ displayedProducts: e2, previousProductItems: o2.current, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 });
3433
+ return o2.current = r2, r2;
3434
+ }, [e2, t2, n2, a2]);
3435
+ }
3436
+ function sc({ displayedProducts: e2, previousProductItems: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3437
+ return e2.map((e3, a2) => {
3438
+ let o2 = t2[a2];
3439
+ return o2?.product === e3 ? o2 : cc({ product: e3, productItemIndex: a2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 });
3440
+ });
3085
3441
  }
3086
- function Cs(e2, t2) {
3087
- let { category: n2, filters: i2, currency: a2, promotions: o2, initialProductList: s2, defaultLocationId: c2 } = e2, l2 = bo(i2), u2 = ko(), { products: d2, ...f2 } = Ss(n2.id, i2, l2.filterSelection, u2.selectedSortType, t2, s2);
3088
- return { filters: i2, currency: a2, productItems: r(() => d2.map((e3) => ({ product: e3, defaultLocationId: c2 })), [d2, c2]), promotionItems: r(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...f2 };
3442
+ function cc({ product: e2, productItemIndex: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3443
+ let a2 = lc({ productGroup: e2.productGroupId ? n2.get(e2.productGroupId) : void 0, productItemIndex: t2, selectProductGroupMember: i2 });
3444
+ return { product: e2, defaultLocationId: r2, ...a2 && { productGroupData: a2 } };
3445
+ }
3446
+ function lc({ productGroup: e2, productItemIndex: t2, selectProductGroupMember: n2 }) {
3447
+ if (e2) return { productGroup: e2, selectProductGroupMember: (r2) => {
3448
+ e2.members.some((e3) => e3.productId === r2) && n2(t2, r2);
3449
+ } };
3089
3450
  }
3090
- var ws = ti(`@wix/site-service-warmup-data`);
3091
- async function Ts(e2, t2, n2) {
3451
+ function uc(e2, t2) {
3452
+ let { category: n2, filters: i2, currency: a2, promotions: o2, initialProductList: s2, defaultLocationId: c2 } = e2, l2 = zo(i2), u2 = Jo(), { products: d2, productGroupByGroupId: f2, productListKey: p2, ...m2 } = $s(n2.id, i2, l2.filterSelection, u2.selectedSortType, t2, s2), h2 = ic({ products: d2, productListKey: p2 });
3453
+ return { filters: i2, currency: a2, productItems: oc({ products: f2.size > 0 ? h2.displayedProducts : d2, productGroupByGroupId: f2, defaultLocationId: c2, selectProductGroupMember: h2.selectProductGroupMember }), promotionItems: r(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...m2 };
3454
+ }
3455
+ var dc = ai(`@wix/site-service-warmup-data`);
3456
+ async function fc(e2, t2, n2) {
3092
3457
  let r2 = typeof window > `u`;
3093
3458
  if (!r2 && e2) try {
3094
3459
  let n3 = await e2.get(t2);
@@ -3102,58 +3467,58 @@ async function Ts(e2, t2, n2) {
3102
3467
  }
3103
3468
  return i2;
3104
3469
  }
3105
- function Es(e2, t2) {
3470
+ function pc(e2, t2) {
3106
3471
  let n2 = d(), [r2] = a(() => {
3107
3472
  let r3;
3108
3473
  try {
3109
- r3 = n2(ws);
3474
+ r3 = n2(dc);
3110
3475
  } catch {
3111
3476
  r3 = null;
3112
3477
  }
3113
- return Ts(r3, e2, t2);
3478
+ return fc(r3, e2, t2);
3114
3479
  });
3115
3480
  return r2;
3116
3481
  }
3117
- var Ds = (e2) => {
3482
+ var mc = (e2) => {
3118
3483
  let t2 = e2.pathname.split(`/`).filter(Boolean).at(-1);
3119
3484
  return t2 ? decodeURIComponent(t2) : void 0;
3120
3485
  };
3121
- function Os() {
3122
- let { url: e2 } = yi();
3123
- return Ds(e2);
3486
+ function hc() {
3487
+ let { url: e2 } = Ci();
3488
+ return mc(e2);
3124
3489
  }
3125
- function ks(e2) {
3126
- return k(Object.assign(e2, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/categories`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }], "manage._base_domain_": [{ srcPath: `/_api/categories`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/categories-service`, destPath: `` }], _: [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }] } }));
3490
+ function gc(e2) {
3491
+ return j(Object.assign(e2, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/categories`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }], "manage._base_domain_": [{ srcPath: `/_api/categories`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/categories-service`, destPath: `` }], _: [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }] } }));
3127
3492
  }
3128
- var As = `@wix/auto_sdk_categories_categories`;
3129
- function js(e2) {
3493
+ var _c = `@wix/auto_sdk_categories_categories`;
3494
+ function vc(e2) {
3130
3495
  function t2({ host: t3 }) {
3131
- return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategoryBySlug`, packageName: As, migrationOptions: { optInTransformResponse: true }, url: ks({ protoPath: `/v1/categories/slug/{slug}`, data: e2, host: t3 }), params: O(e2), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `category.createdDate` }, { path: `category.updatedDate` }, { path: `category.image.urlExpirationDate` }, { path: `category.richContentDescription.metadata.createdTimestamp` }, { path: `category.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: j, paths: [{ path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `category.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `category.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `category.richContentDescription.nodes.imageData.image.duration` }, { path: `category.richContentDescription.nodes.imageData.crop.x` }, { path: `category.richContentDescription.nodes.imageData.crop.y` }, { path: `category.richContentDescription.nodes.imageData.crop.width` }, { path: `category.richContentDescription.nodes.imageData.crop.height` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `category.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `category.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `category.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `category.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `category.richContentDescription.nodes.videoData.video.duration` }, { path: `category.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `category.richContentDescription.nodes.audioData.audio.duration` }, { path: `category.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `category.richContentDescription.nodes.shapeData.shape.duration` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.tocData.fontSize` }, { path: `category.richContentDescription.nodes.tocData.itemSpacing` }, { path: `category.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
3496
+ return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategoryBySlug`, packageName: _c, migrationOptions: { optInTransformResponse: true }, url: gc({ protoPath: `/v1/categories/slug/{slug}`, data: e2, host: t3 }), params: A(e2), transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `category.createdDate` }, { path: `category.updatedDate` }, { path: `category.image.urlExpirationDate` }, { path: `category.richContentDescription.metadata.createdTimestamp` }, { path: `category.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: N, paths: [{ path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `category.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `category.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `category.richContentDescription.nodes.imageData.image.duration` }, { path: `category.richContentDescription.nodes.imageData.crop.x` }, { path: `category.richContentDescription.nodes.imageData.crop.y` }, { path: `category.richContentDescription.nodes.imageData.crop.width` }, { path: `category.richContentDescription.nodes.imageData.crop.height` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `category.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `category.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `category.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `category.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `category.richContentDescription.nodes.videoData.video.duration` }, { path: `category.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `category.richContentDescription.nodes.audioData.audio.duration` }, { path: `category.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `category.richContentDescription.nodes.shapeData.shape.duration` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.tocData.fontSize` }, { path: `category.richContentDescription.nodes.tocData.itemSpacing` }, { path: `category.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
3132
3497
  }
3133
3498
  return t2;
3134
3499
  }
3135
- function Ms(e2) {
3500
+ function yc(e2) {
3136
3501
  function t2({ host: t3 }) {
3137
- return { entityFqdn: `wix.categories.v1.category`, method: `POST`, methodFqn: `com.wix.categories.api.v1.CategoriesService.QueryCategories`, packageName: As, migrationOptions: { optInTransformResponse: true }, url: ks({ protoPath: `/v1/categories/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `categories.createdDate` }, { path: `categories.updatedDate` }, { path: `categories.image.urlExpirationDate` }, { path: `categories.richContentDescription.metadata.createdTimestamp` }, { path: `categories.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: j, paths: [{ path: `categories.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `categories.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `categories.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `categories.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `categories.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `categories.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `categories.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `categories.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `categories.richContentDescription.nodes.imageData.image.duration` }, { path: `categories.richContentDescription.nodes.imageData.crop.x` }, { path: `categories.richContentDescription.nodes.imageData.crop.y` }, { path: `categories.richContentDescription.nodes.imageData.crop.width` }, { path: `categories.richContentDescription.nodes.imageData.crop.height` }, { path: `categories.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `categories.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `categories.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `categories.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `categories.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `categories.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `categories.richContentDescription.nodes.videoData.video.duration` }, { path: `categories.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `categories.richContentDescription.nodes.audioData.audio.duration` }, { path: `categories.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.shapeData.shape.duration` }, { path: `categories.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `categories.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `categories.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.tocData.fontSize` }, { path: `categories.richContentDescription.nodes.tocData.itemSpacing` }, { path: `categories.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
3502
+ return { entityFqdn: `wix.categories.v1.category`, method: `POST`, methodFqn: `com.wix.categories.api.v1.CategoriesService.QueryCategories`, packageName: _c, migrationOptions: { optInTransformResponse: true }, url: gc({ protoPath: `/v1/categories/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => D(e3, [{ transformFn: E, paths: [{ path: `categories.createdDate` }, { path: `categories.updatedDate` }, { path: `categories.image.urlExpirationDate` }, { path: `categories.richContentDescription.metadata.createdTimestamp` }, { path: `categories.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: N, paths: [{ path: `categories.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `categories.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `categories.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `categories.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `categories.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `categories.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `categories.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `categories.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `categories.richContentDescription.nodes.imageData.image.duration` }, { path: `categories.richContentDescription.nodes.imageData.crop.x` }, { path: `categories.richContentDescription.nodes.imageData.crop.y` }, { path: `categories.richContentDescription.nodes.imageData.crop.width` }, { path: `categories.richContentDescription.nodes.imageData.crop.height` }, { path: `categories.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `categories.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `categories.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `categories.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `categories.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `categories.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `categories.richContentDescription.nodes.videoData.video.duration` }, { path: `categories.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `categories.richContentDescription.nodes.audioData.audio.duration` }, { path: `categories.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `categories.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `categories.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.shapeData.shape.duration` }, { path: `categories.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `categories.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `categories.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `categories.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `categories.richContentDescription.nodes.tocData.fontSize` }, { path: `categories.richContentDescription.nodes.tocData.itemSpacing` }, { path: `categories.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
3138
3503
  }
3139
3504
  return t2;
3140
3505
  }
3141
- var Ns = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(Ns || {});
3142
- async function Ps(e2, t2, n2) {
3143
- let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = js(S({ slug: e2, treeReference: t2, fields: n2?.fields }, []));
3506
+ var bc = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(bc || {});
3507
+ async function xc(e2, t2, n2) {
3508
+ let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = vc(w({ slug: e2, treeReference: t2, fields: n2?.fields }, []));
3144
3509
  i2?.onSiteCall?.();
3145
3510
  try {
3146
3511
  let e3 = await r2.request(a2);
3147
- return i2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `category.image` }] }]), [`category.richContentDescription`]);
3512
+ return i2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `category.image` }] }]), [`category.richContentDescription`]);
3148
3513
  } catch (e3) {
3149
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, treeReference: `$[1]`, fields: `$[2].fields` }, singleArgumentUnchanged: false }, [`slug`, `treeReference`, `options`]);
3514
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, treeReference: `$[1]`, fields: `$[2].fields` }, singleArgumentUnchanged: false }, [`slug`, `treeReference`, `options`]);
3150
3515
  throw i2?.onError?.(e3), t3;
3151
3516
  }
3152
3517
  }
3153
- function Fs(e2) {
3518
+ function Sc(e2) {
3154
3519
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3155
- return Ni({ func: async (r2) => {
3156
- let i2 = Ms({ ...r2, ...e2 });
3520
+ return Li({ func: async (r2) => {
3521
+ let i2 = yc({ ...r2, ...e2 });
3157
3522
  n2?.onSiteCall?.();
3158
3523
  try {
3159
3524
  let e3 = await t2.request(i2);
@@ -3163,110 +3528,110 @@ function Fs(e2) {
3163
3528
  }
3164
3529
  }, requestTransformer: (t3) => {
3165
3530
  let n3 = [t3, e2];
3166
- return S({ ...n3?.[1], query: n3?.[0] }, []);
3531
+ return w({ ...n3?.[1], query: n3?.[0] }, []);
3167
3532
  }, responseTransformer: ({ data: e3 }) => {
3168
- let t3 = C(T(e3, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3533
+ let t3 = T(D(e3, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3169
3534
  return { items: t3?.categories, pagingMetadata: t3?.pagingMetadata };
3170
3535
  }, errorTransformer: (e3) => {
3171
- throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3536
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3172
3537
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3173
3538
  }
3174
- async function Is(e2, t2) {
3175
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ms(S({ query: e2, ...t2 }, []));
3539
+ async function Cc(e2, t2) {
3540
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = yc(w({ query: e2, ...t2 }, []));
3176
3541
  r2?.onSiteCall?.();
3177
3542
  try {
3178
3543
  let e3 = await n2.request(i2);
3179
- return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3544
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3180
3545
  } catch (e3) {
3181
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3546
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3182
3547
  throw r2?.onError?.(e3), t3;
3183
3548
  }
3184
3549
  }
3185
- ({ ...H() }, { ...xa() });
3186
- function Ls(e2) {
3187
- return (t2, n2, r2) => Ps(t2, n2, r2, { httpClient: e2 });
3550
+ ({ ...H() }, { ...Ta() });
3551
+ function wc(e2) {
3552
+ return (t2, n2, r2) => xc(t2, n2, r2, { httpClient: e2 });
3188
3553
  }
3189
- function Rs(e2) {
3190
- return (t2) => Fs(t2, { httpClient: e2 });
3554
+ function Tc(e2) {
3555
+ return (t2) => Sc(t2, { httpClient: e2 });
3191
3556
  }
3192
- function zs(e2) {
3193
- return (t2, n2) => Is(t2, n2, { httpClient: e2 });
3557
+ function Ec(e2) {
3558
+ return (t2, n2) => Cc(t2, n2, { httpClient: e2 });
3194
3559
  }
3195
- var Bs = y(`wix.categories.v1.category_category_moved`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3196
- var Vs = y(`wix.categories.v1.category_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3197
- var Hs = y(`wix.categories.v1.category_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `undefined.createdDate` }, { path: `undefined.updatedDate` }, { path: `undefined.richContentDescription.metadata.createdTimestamp` }, { path: `undefined.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `undefined.image` }] }, { transformFn: j, paths: [{ path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `undefined.richContentDescription.nodes.imageData.image.duration` }, { path: `undefined.richContentDescription.nodes.imageData.crop.x` }, { path: `undefined.richContentDescription.nodes.imageData.crop.y` }, { path: `undefined.richContentDescription.nodes.imageData.crop.width` }, { path: `undefined.richContentDescription.nodes.imageData.crop.height` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `undefined.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `undefined.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `undefined.richContentDescription.nodes.videoData.video.duration` }, { path: `undefined.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.audioData.audio.duration` }, { path: `undefined.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.shapeData.shape.duration` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.tocData.fontSize` }, { path: `undefined.richContentDescription.nodes.tocData.itemSpacing` }, { path: `undefined.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3198
- var Us = y(`wix.categories.v1.category_item_added_to_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3199
- var Ws = y(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3200
- var Gs = y(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3201
- var Ks = y(`wix.categories.v1.category_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.richContentDescription.metadata.createdTimestamp` }, { path: `modifiedFields.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: U, paths: [{ path: `entity.image` }, { path: `modifiedFields.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.richContentDescription.nodes.imageData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.x` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.y` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.width` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.height` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.video.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.audio.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.shapeData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.tocData.fontSize` }, { path: `modifiedFields.richContentDescription.nodes.tocData.itemSpacing` }, { path: `modifiedFields.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3202
- function qs(e2) {
3203
- let t2 = qi({ builderQueryFunction: (t3) => Rs(e2)(t3), typedQueryFunction: (t3, n3) => zs(e2)(t3, n3), hasOptionsParameter: true });
3560
+ var Dc = x(`wix.categories.v1.category_category_moved`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3561
+ var Oc = x(`wix.categories.v1.category_created`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `entity.image` }] }, { transformFn: N, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3562
+ var kc = x(`wix.categories.v1.category_deleted`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `undefined.createdDate` }, { path: `undefined.updatedDate` }, { path: `undefined.richContentDescription.metadata.createdTimestamp` }, { path: `undefined.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: U, paths: [{ path: `undefined.image` }] }, { transformFn: N, paths: [{ path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `undefined.richContentDescription.nodes.imageData.image.duration` }, { path: `undefined.richContentDescription.nodes.imageData.crop.x` }, { path: `undefined.richContentDescription.nodes.imageData.crop.y` }, { path: `undefined.richContentDescription.nodes.imageData.crop.width` }, { path: `undefined.richContentDescription.nodes.imageData.crop.height` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `undefined.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `undefined.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `undefined.richContentDescription.nodes.videoData.video.duration` }, { path: `undefined.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.audioData.audio.duration` }, { path: `undefined.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.shapeData.shape.duration` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.tocData.fontSize` }, { path: `undefined.richContentDescription.nodes.tocData.itemSpacing` }, { path: `undefined.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3563
+ var Ac = x(`wix.categories.v1.category_item_added_to_category`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3564
+ var jc = x(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3565
+ var Mc = x(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3566
+ var Nc = x(`wix.categories.v1.category_updated`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.richContentDescription.metadata.createdTimestamp` }, { path: `modifiedFields.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: U, paths: [{ path: `entity.image` }, { path: `modifiedFields.image` }] }, { transformFn: N, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.richContentDescription.nodes.imageData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.x` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.y` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.width` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.height` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.video.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.audio.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.shapeData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.tocData.fontSize` }, { path: `modifiedFields.richContentDescription.nodes.tocData.itemSpacing` }, { path: `modifiedFields.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3567
+ function Pc(e2) {
3568
+ let t2 = Zi({ builderQueryFunction: (t3) => Tc(e2)(t3), typedQueryFunction: (t3, n3) => Ec(e2)(t3, n3), hasOptionsParameter: true });
3204
3569
  function n2(e3, n3) {
3205
3570
  return t2(...arguments);
3206
3571
  }
3207
3572
  return n2;
3208
3573
  }
3209
- var Js = D(Ls);
3210
- var Ys = D(qs);
3211
- A(Bs), A(Vs), A(Hs), A(Us), A(Ws), A(Gs), A(Ks);
3212
- function Xs(e2) {
3574
+ var Fc = k(wc);
3575
+ var Ic = k(Pc);
3576
+ M(Dc), M(Oc), M(kc), M(Ac), M(jc), M(Mc), M(Nc);
3577
+ function Lc(e2) {
3213
3578
  if (!e2) return null;
3214
3579
  let t2 = e2.match(/image:\/\/v1\/([^/#]+)/);
3215
3580
  return t2?.[1] ? t2[1] : e2.match(/\/media\/([^/]+)/)?.[1] ?? null;
3216
3581
  }
3217
- function Zs(e2) {
3582
+ function Rc(e2) {
3218
3583
  return `https://static.wixstatic.com/media/${e2}`;
3219
3584
  }
3220
- function Qs(e2) {
3585
+ function zc(e2) {
3221
3586
  if (!e2) return null;
3222
3587
  let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
3223
3588
  return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
3224
3589
  }
3225
- var $s = (e2) => `/category/${e2}`;
3226
- var ec = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
3227
- var tc = (e2) => {
3590
+ var Bc = (e2) => `/category/${e2}`;
3591
+ var Vc = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
3592
+ var Hc = (e2) => {
3228
3593
  if (!e2) return;
3229
- let t2 = Qs(e2);
3230
- return { uri: Xs(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
3594
+ let t2 = zc(e2);
3595
+ return { uri: Lc(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
3231
3596
  };
3232
- var nc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
3597
+ var Uc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
3233
3598
  let t2 = e3.categorySlug ?? ``;
3234
- return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: $s(t2) };
3599
+ return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: Bc(t2) };
3235
3600
  });
3236
- var rc = (e2) => ({ type: e2.type, props: e2.props ?? void 0, meta: e2.meta ?? void 0, children: e2.children, custom: e2.custom, disabled: e2.disabled });
3237
- var ic = (e2) => {
3601
+ var Wc = (e2) => ({ type: e2.type, props: e2.props ?? void 0, meta: e2.meta ?? void 0, children: e2.children, custom: e2.custom, disabled: e2.disabled });
3602
+ var Gc = (e2) => {
3238
3603
  if (e2) return { preventAutoRedirect: e2.preventAutoRedirect, keywords: e2.keywords?.map((e3) => ({ term: e3.term, isMain: e3.isMain, origin: e3.origin ?? void 0 })) };
3239
3604
  };
3240
- var ac = (e2) => {
3241
- if (e2) return { tags: e2.tags?.map(rc), settings: ic(e2.settings) };
3605
+ var Kc = (e2) => {
3606
+ if (e2) return { tags: e2.tags?.map(Wc), settings: Gc(e2.settings) };
3242
3607
  };
3243
- function oc(e2) {
3244
- return { id: e2._id ?? ``, name: e2.name ?? ``, slug: e2.slug ?? ``, description: e2.description ?? void 0, itemCounter: e2.itemCounter, parentCategoryId: e2.parentCategory?._id ?? void 0, seoData: ac(e2.seoData), richContentDescription: e2.richContentDescription ? ec(e2.richContentDescription) : void 0, image: tc(e2.image), breadcrumbs: nc(e2.breadcrumbsInfo?.breadcrumbs ?? []) };
3608
+ function qc(e2) {
3609
+ return { id: e2._id ?? ``, name: e2.name ?? ``, slug: e2.slug ?? ``, description: e2.description ?? void 0, itemCounter: e2.itemCounter, parentCategoryId: e2.parentCategory?._id ?? void 0, seoData: Kc(e2.seoData), richContentDescription: e2.richContentDescription ? Vc(e2.richContentDescription) : void 0, image: Hc(e2.image), breadcrumbs: Uc(e2.breadcrumbsInfo?.breadcrumbs ?? []) };
3245
3610
  }
3246
- var sc = { appNamespace: `@wix/stores`, treeKey: null };
3247
- var cc = [Ns.BREADCRUMBS_INFO, Ns.DESCRIPTION, Ns.RICH_CONTENT_DESCRIPTION];
3248
- var lc = `No category slug is available for the category context`;
3249
- var uc = (e2, t2) => {
3611
+ var Jc = { appNamespace: `@wix/stores`, treeKey: null };
3612
+ var Yc = [bc.BREADCRUMBS_INFO, bc.DESCRIPTION, bc.RICH_CONTENT_DESCRIPTION];
3613
+ var Xc = `No category slug is available for the category context`;
3614
+ var Zc = (e2, t2) => {
3250
3615
  if (!e2?._id || e2.visible === false) throw Error(t2);
3251
- return oc(e2);
3616
+ return qc(e2);
3252
3617
  };
3253
- async function dc(e2) {
3254
- if (!e2) throw Error(lc);
3255
- let { category: t2 } = await Js(e2, sc, { fields: cc });
3256
- return uc(t2, `Category not found for slug: ${e2}`);
3618
+ async function Qc(e2) {
3619
+ if (!e2) throw Error(Xc);
3620
+ let { category: t2 } = await Fc(e2, Jc, { fields: Yc });
3621
+ return Zc(t2, `Category not found for slug: ${e2}`);
3257
3622
  }
3258
- async function fc() {
3259
- return (await Ya().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
3623
+ async function $c() {
3624
+ return (await ho().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
3260
3625
  }
3261
- var pc = (e2, t2, n2) => {
3626
+ var el = (e2, t2, n2) => {
3262
3627
  let r2 = [];
3263
3628
  for (let i2 of e2.keys()) if (!t2.has(i2)) {
3264
3629
  let e3 = n2.find((e4) => e4._id === i2);
3265
- e3 && r2.push(Cc(e3, 0));
3630
+ e3 && r2.push(ul(e3, 0));
3266
3631
  }
3267
3632
  return r2;
3268
3633
  };
3269
- var mc = (e2) => {
3634
+ var tl = (e2) => {
3270
3635
  let t2 = /* @__PURE__ */ new Map();
3271
3636
  for (let { _id: n2, primaryChoiceIds: r2 } of e2) if (n2) for (let e3 of r2 ?? []) {
3272
3637
  let r3 = t2.get(e3) ?? [];
@@ -3274,8 +3639,8 @@ var mc = (e2) => {
3274
3639
  }
3275
3640
  return t2;
3276
3641
  };
3277
- var hc = (e2, t2, n2) => {
3278
- let r2 = pc(t2, new Set(e2.map((e3) => e3.id)), n2), i2 = [...e2, ...r2], a2 = new Map(i2.map((e3) => [e3.id, e3])), o2 = new Set([...t2.values()].flat());
3642
+ var nl = (e2, t2, n2) => {
3643
+ let r2 = el(t2, new Set(e2.map((e3) => e3.id)), n2), i2 = [...e2, ...r2], a2 = new Map(i2.map((e3) => [e3.id, e3])), o2 = new Set([...t2.values()].flat());
3279
3644
  return i2.flatMap((e3) => {
3280
3645
  if (o2.has(e3.id)) return [];
3281
3646
  let n3 = t2.get(e3.id);
@@ -3286,77 +3651,77 @@ var hc = (e2, t2, n2) => {
3286
3651
  return [{ ...e3, count: e3.count + i3, linkedChoiceIds: r3 }];
3287
3652
  });
3288
3653
  };
3289
- function gc(e2, t2) {
3290
- return hc(e2, mc(t2), t2);
3654
+ function rl(e2, t2) {
3655
+ return nl(e2, tl(t2), t2);
3291
3656
  }
3292
- var _c = (e2) => {
3657
+ var il = (e2) => {
3293
3658
  let t2 = e2.trim();
3294
3659
  if (t2 === ``) return null;
3295
3660
  let n2 = Number(t2);
3296
3661
  return Number.isFinite(n2) ? n2 : null;
3297
3662
  };
3298
- var vc = (e2, t2) => {
3663
+ var al = (e2, t2) => {
3299
3664
  let n2 = t2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3, t3) => [e3._id ?? ``, t3])), i2 = (e3) => r2.get(e3.id) ?? 2 ** 53 - 1;
3300
3665
  return e2.toSorted((e3, t3) => i2(e3) - i2(t3));
3301
3666
  };
3302
- var yc = (e2, t2, n2) => t2 === W.TEXT_CHOICES ? xc(e2, (e3) => e3.name) : n2 ? bc(e2, (e3) => e3.count) : [...e2];
3303
- var bc = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
3304
- var xc = (e2, t2) => e2.toSorted((e3, n2) => {
3305
- let r2 = _c(t2(e3)), i2 = _c(t2(n2));
3667
+ var ol = (e2, t2, n2) => t2 === G.TEXT_CHOICES ? cl(e2, (e3) => e3.name) : n2 ? sl(e2, (e3) => e3.count) : [...e2];
3668
+ var sl = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
3669
+ var cl = (e2, t2) => e2.toSorted((e3, n2) => {
3670
+ let r2 = il(t2(e3)), i2 = il(t2(n2));
3306
3671
  return r2 !== null && i2 !== null ? r2 - i2 : r2 === null ? i2 === null ? t2(e3).toLowerCase().localeCompare(t2(n2).toLowerCase()) : 1 : -1;
3307
3672
  });
3308
- function Sc(e2, t2, n2) {
3673
+ function ll(e2, t2, n2) {
3309
3674
  switch (t2.choicesSettings?.sortOrder) {
3310
- case G.BY_NAME:
3311
- return xc(e2, (e3) => e3.name);
3312
- case G.BY_PRODUCT_COUNT:
3313
- return bc(e2, (e3) => e3.count);
3314
- case G.MANUAL:
3315
- return vc(e2, t2);
3316
- case G.DEFAULT:
3675
+ case ia.BY_NAME:
3676
+ return cl(e2, (e3) => e3.name);
3677
+ case ia.BY_PRODUCT_COUNT:
3678
+ return sl(e2, (e3) => e3.count);
3679
+ case ia.MANUAL:
3680
+ return al(e2, t2);
3681
+ case ia.DEFAULT:
3317
3682
  default:
3318
- return yc(e2, t2.customizationRenderType, n2);
3683
+ return ol(e2, t2.customizationRenderType, n2);
3319
3684
  }
3320
3685
  }
3321
- var Cc = (e2, t2) => ({ id: e2._id ?? ``, name: e2.name ?? ``, type: e2.choiceType, values: e2.colorCode === void 0 ? [] : [e2.colorCode], count: t2, linkedChoiceIds: [], displayImage: e2.displayImage });
3322
- function wc(e2, t2) {
3686
+ var ul = (e2, t2) => ({ id: e2._id ?? ``, name: e2.name ?? ``, type: e2.choiceType, values: e2.colorCode === void 0 ? [] : [e2.colorCode], count: t2, linkedChoiceIds: [], displayImage: e2.displayImage });
3687
+ function dl(e2, t2) {
3323
3688
  let n2 = e2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3) => [e3._id, e3])), i2 = [...t2].flatMap(([e3, t3]) => {
3324
3689
  let n3 = r2.get(e3);
3325
- return n3 ? [Cc(n3, t3)] : [];
3690
+ return n3 ? [ul(n3, t3)] : [];
3326
3691
  }), a2 = n2.some((e3) => (e3.primaryChoiceIds?.length ?? 0) > 0);
3327
- return Sc(a2 ? gc(i2, n2) : i2, e2, a2);
3692
+ return ll(a2 ? rl(i2, n2) : i2, e2, a2);
3328
3693
  }
3329
- var Tc = (e2) => {
3330
- let t2 = Xs(e2);
3694
+ var fl = (e2) => {
3695
+ let t2 = Lc(e2);
3331
3696
  if (!t2) return;
3332
- let n2 = Qs(e2);
3333
- return { id: t2, url: Zs(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3697
+ let n2 = zc(e2);
3698
+ return { id: t2, url: Rc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3334
3699
  };
3335
- var Ec = (e2) => {
3336
- let t2 = e2.displayImage === void 0 ? void 0 : Tc(e2.displayImage);
3337
- return { ...Oc(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
3700
+ var pl = (e2) => {
3701
+ let t2 = e2.displayImage === void 0 ? void 0 : fl(e2.displayImage);
3702
+ return { ...hl(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
3338
3703
  };
3339
- var Dc = (e2) => ({ type: J.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Ec) });
3340
- var Oc = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
3341
- var kc = (e2) => ({ type: J.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Oc) });
3342
- var Ac = (e2, t2, n2, r2) => {
3704
+ var ml = (e2) => ({ type: X.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(pl) });
3705
+ var hl = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
3706
+ var gl = (e2) => ({ type: X.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(hl) });
3707
+ var _l = (e2, t2, n2, r2) => {
3343
3708
  let i2 = new Map(t2.map((e3) => [e3._id, e3]));
3344
3709
  return n2.flatMap((t3) => {
3345
3710
  let n3 = i2.get(t3);
3346
- return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: wc(n3, r2) }] : [];
3711
+ return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: dl(n3, r2) }] : [];
3347
3712
  });
3348
3713
  };
3349
- var jc = (e2) => xc(e2.filter((e3) => e3.renderType === W.SWATCH_CHOICES).map(Dc), (e3) => e3.name);
3350
- var Mc = (e2) => xc(e2.filter((e3) => e3.renderType === W.TEXT_CHOICES).map(kc), (e3) => e3.name);
3351
- function Nc(e2, t2, n2, r2) {
3714
+ var vl = (e2) => cl(e2.filter((e3) => e3.renderType === G.SWATCH_CHOICES).map(ml), (e3) => e3.name);
3715
+ var yl = (e2) => cl(e2.filter((e3) => e3.renderType === G.TEXT_CHOICES).map(gl), (e3) => e3.name);
3716
+ function bl(e2, t2, n2, r2) {
3352
3717
  if (n2.length === 0) return [];
3353
- let i2 = Ac(e2, t2, n2, r2);
3354
- return [...jc(i2), ...Mc(i2)];
3718
+ let i2 = _l(e2, t2, n2, r2);
3719
+ return [...vl(i2), ...yl(i2)];
3355
3720
  }
3356
- function Pc(e2, t2) {
3357
- if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: J.PRICE, name: oo.PRICE, minPrice: e2, maxPrice: t2 };
3721
+ function xl(e2, t2) {
3722
+ if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: X.PRICE, name: Eo.PRICE, minPrice: e2, maxPrice: t2 };
3358
3723
  }
3359
- var Fc = g((e2, t2) => {
3724
+ var Sl = v((e2, t2) => {
3360
3725
  function n2(e3, t3, n3) {
3361
3726
  var r2 = -1, i2 = e3.length;
3362
3727
  t3 < 0 && (t3 = -t3 > i2 ? 0 : i2 + t3), n3 = n3 > i2 ? i2 : n3, n3 < 0 && (n3 += i2), i2 = t3 > n3 ? 0 : n3 - t3 >>> 0, t3 >>>= 0;
@@ -3365,24 +3730,24 @@ var Fc = g((e2, t2) => {
3365
3730
  }
3366
3731
  t2.exports = n2;
3367
3732
  });
3368
- var Ic = g((e2, t2) => {
3733
+ var Cl = v((e2, t2) => {
3369
3734
  function n2(e3, t3) {
3370
3735
  return e3 === t3 || e3 !== e3 && t3 !== t3;
3371
3736
  }
3372
3737
  t2.exports = n2;
3373
3738
  });
3374
- var Lc = g((e2, t2) => {
3739
+ var wl = v((e2, t2) => {
3375
3740
  t2.exports = typeof window == `object` && window && window.Object === Object && window;
3376
3741
  });
3377
- var Rc = g((e2, t2) => {
3378
- var n2 = Lc(), r2 = typeof self == `object` && self && self.Object === Object && self;
3742
+ var Tl = v((e2, t2) => {
3743
+ var n2 = wl(), r2 = typeof self == `object` && self && self.Object === Object && self;
3379
3744
  t2.exports = n2 || r2 || Function(`return this`)();
3380
3745
  });
3381
- var zc = g((e2, t2) => {
3382
- t2.exports = Rc().Symbol;
3746
+ var El = v((e2, t2) => {
3747
+ t2.exports = Tl().Symbol;
3383
3748
  });
3384
- var Bc = g((e2, t2) => {
3385
- var n2 = zc(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
3749
+ var Dl = v((e2, t2) => {
3750
+ var n2 = El(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
3386
3751
  function s2(e3) {
3387
3752
  var t3 = i2.call(e3, o2), n3 = e3[o2];
3388
3753
  try {
@@ -3395,29 +3760,29 @@ var Bc = g((e2, t2) => {
3395
3760
  }
3396
3761
  t2.exports = s2;
3397
3762
  });
3398
- var Vc = g((e2, t2) => {
3763
+ var Ol = v((e2, t2) => {
3399
3764
  var n2 = Object.prototype.toString;
3400
3765
  function r2(e3) {
3401
3766
  return n2.call(e3);
3402
3767
  }
3403
3768
  t2.exports = r2;
3404
3769
  });
3405
- var Hc = g((e2, t2) => {
3406
- var n2 = zc(), r2 = Bc(), i2 = Vc(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
3770
+ var kl = v((e2, t2) => {
3771
+ var n2 = El(), r2 = Dl(), i2 = Ol(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
3407
3772
  function c2(e3) {
3408
3773
  return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
3409
3774
  }
3410
3775
  t2.exports = c2;
3411
3776
  });
3412
- var Uc = g((e2, t2) => {
3777
+ var Al = v((e2, t2) => {
3413
3778
  function n2(e3) {
3414
3779
  var t3 = typeof e3;
3415
3780
  return e3 != null && (t3 == `object` || t3 == `function`);
3416
3781
  }
3417
3782
  t2.exports = n2;
3418
3783
  });
3419
- var Wc = g((e2, t2) => {
3420
- var n2 = Hc(), r2 = Uc(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
3784
+ var jl = v((e2, t2) => {
3785
+ var n2 = kl(), r2 = Al(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
3421
3786
  function c2(e3) {
3422
3787
  if (!r2(e3)) return false;
3423
3788
  var t3 = n2(e3);
@@ -3425,20 +3790,20 @@ var Wc = g((e2, t2) => {
3425
3790
  }
3426
3791
  t2.exports = c2;
3427
3792
  });
3428
- var Gc = g((e2, t2) => {
3793
+ var Ml = v((e2, t2) => {
3429
3794
  function n2(e3) {
3430
3795
  return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
3431
3796
  }
3432
3797
  t2.exports = n2;
3433
3798
  });
3434
- var Kc = g((e2, t2) => {
3435
- var n2 = Wc(), r2 = Gc();
3799
+ var Nl = v((e2, t2) => {
3800
+ var n2 = jl(), r2 = Ml();
3436
3801
  function i2(e3) {
3437
3802
  return e3 != null && r2(e3.length) && !n2(e3);
3438
3803
  }
3439
3804
  t2.exports = i2;
3440
3805
  });
3441
- var qc = g((e2, t2) => {
3806
+ var Pl = v((e2, t2) => {
3442
3807
  var n2 = /^(?:0|[1-9]\d*)$/;
3443
3808
  function r2(e3, t3) {
3444
3809
  var r3 = typeof e3;
@@ -3446,8 +3811,8 @@ var qc = g((e2, t2) => {
3446
3811
  }
3447
3812
  t2.exports = r2;
3448
3813
  });
3449
- var Jc = g((e2, t2) => {
3450
- var n2 = Ic(), r2 = Kc(), i2 = qc(), a2 = Uc();
3814
+ var Fl = v((e2, t2) => {
3815
+ var n2 = Cl(), r2 = Nl(), i2 = Pl(), a2 = Al();
3451
3816
  function o2(e3, t3, o3) {
3452
3817
  if (!a2(o3)) return false;
3453
3818
  var s2 = typeof t3;
@@ -3455,7 +3820,7 @@ var Jc = g((e2, t2) => {
3455
3820
  }
3456
3821
  t2.exports = o2;
3457
3822
  });
3458
- var Yc = g((e2, t2) => {
3823
+ var Il = v((e2, t2) => {
3459
3824
  var n2 = /\s/;
3460
3825
  function r2(e3) {
3461
3826
  for (var t3 = e3.length; t3-- && n2.test(e3.charAt(t3)); ) ;
@@ -3463,28 +3828,28 @@ var Yc = g((e2, t2) => {
3463
3828
  }
3464
3829
  t2.exports = r2;
3465
3830
  });
3466
- var Xc = g((e2, t2) => {
3467
- var n2 = Yc(), r2 = /^\s+/;
3831
+ var Ll = v((e2, t2) => {
3832
+ var n2 = Il(), r2 = /^\s+/;
3468
3833
  function i2(e3) {
3469
3834
  return e3 && e3.slice(0, n2(e3) + 1).replace(r2, ``);
3470
3835
  }
3471
3836
  t2.exports = i2;
3472
3837
  });
3473
- var Zc = g((e2, t2) => {
3838
+ var Rl = v((e2, t2) => {
3474
3839
  function n2(e3) {
3475
3840
  return typeof e3 == `object` && !!e3;
3476
3841
  }
3477
3842
  t2.exports = n2;
3478
3843
  });
3479
- var Qc = g((e2, t2) => {
3480
- var n2 = Hc(), r2 = Zc(), i2 = `[object Symbol]`;
3844
+ var zl = v((e2, t2) => {
3845
+ var n2 = kl(), r2 = Rl(), i2 = `[object Symbol]`;
3481
3846
  function a2(e3) {
3482
3847
  return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
3483
3848
  }
3484
3849
  t2.exports = a2;
3485
3850
  });
3486
- var $c = g((e2, t2) => {
3487
- var n2 = Xc(), r2 = Uc(), i2 = Qc(), a2 = NaN, o2 = /^[-+]0x[0-9a-f]+$/i, s2 = /^0b[01]+$/i, c2 = /^0o[0-7]+$/i, l2 = parseInt;
3851
+ var Bl = v((e2, t2) => {
3852
+ var n2 = Ll(), r2 = Al(), i2 = zl(), a2 = NaN, o2 = /^[-+]0x[0-9a-f]+$/i, s2 = /^0b[01]+$/i, c2 = /^0o[0-7]+$/i, l2 = parseInt;
3488
3853
  function u2(e3) {
3489
3854
  if (typeof e3 == `number`) return e3;
3490
3855
  if (i2(e3)) return a2;
@@ -3499,23 +3864,23 @@ var $c = g((e2, t2) => {
3499
3864
  }
3500
3865
  t2.exports = u2;
3501
3866
  });
3502
- var el = g((e2, t2) => {
3503
- var n2 = $c(), r2 = 1 / 0, i2 = 17976931348623157e292;
3867
+ var Vl = v((e2, t2) => {
3868
+ var n2 = Bl(), r2 = 1 / 0, i2 = 17976931348623157e292;
3504
3869
  function a2(e3) {
3505
3870
  return e3 ? (e3 = n2(e3), e3 === r2 || e3 === -r2 ? (e3 < 0 ? -1 : 1) * i2 : e3 === e3 ? e3 : 0) : e3 === 0 ? e3 : 0;
3506
3871
  }
3507
3872
  t2.exports = a2;
3508
3873
  });
3509
- var tl = g((e2, t2) => {
3510
- var n2 = el();
3874
+ var Hl = v((e2, t2) => {
3875
+ var n2 = Vl();
3511
3876
  function r2(e3) {
3512
3877
  var t3 = n2(e3), r3 = t3 % 1;
3513
3878
  return t3 === t3 ? r3 ? t3 - r3 : t3 : 0;
3514
3879
  }
3515
3880
  t2.exports = r2;
3516
3881
  });
3517
- var nl = _(g((e2, t2) => {
3518
- var n2 = Fc(), r2 = Jc(), i2 = tl(), a2 = Math.ceil, o2 = Math.max;
3882
+ var Ul = y(v((e2, t2) => {
3883
+ var n2 = Sl(), r2 = Fl(), i2 = Hl(), a2 = Math.ceil, o2 = Math.max;
3519
3884
  function s2(e3, t3, s3) {
3520
3885
  t3 = (s3 ? r2(e3, t3, s3) : t3 === void 0) ? 1 : o2(i2(t3), 0);
3521
3886
  var c2 = e3 == null ? 0 : e3.length;
@@ -3525,110 +3890,110 @@ var nl = _(g((e2, t2) => {
3525
3890
  }
3526
3891
  t2.exports = s2;
3527
3892
  })(), 1);
3528
- var rl = [ta.CHOICE_DISPLAY_IMAGE];
3529
- var il = `customizationRenderType`;
3530
- async function al(e2) {
3531
- let t2 = (0, nl.default)(e2, 100);
3532
- return (await Promise.all(t2.map(ol))).flat();
3533
- }
3534
- var ol = async (e2) => (await ua({ fields: rl }).hasSome(`_id`, e2).ne(il, W.FREE_TEXT).limit(100).find()).items;
3535
- var sl = (e2, t2, n2) => ({ name: e2, type: ja.SCALAR, fieldPath: t2, scalar: { type: n2 } });
3536
- var cl = (e2, t2, n2) => ({ name: e2, type: ja.VALUE, fieldPath: t2, value: { limit: n2, sortType: Oa.COUNT, sortDirection: ka.DESC } });
3537
- function ll(e2) {
3893
+ var Wl = [aa.CHOICE_DISPLAY_IMAGE];
3894
+ var Gl = `customizationRenderType`;
3895
+ async function Kl(e2) {
3896
+ let t2 = (0, Ul.default)(e2, 100);
3897
+ return (await Promise.all(t2.map(ql))).flat();
3898
+ }
3899
+ var ql = async (e2) => (await ma({ fields: Wl }).hasSome(`_id`, e2).ne(Gl, G.FREE_TEXT).limit(100).find()).items;
3900
+ var Jl = (e2, t2, n2) => ({ name: e2, type: Pa.SCALAR, fieldPath: t2, scalar: { type: n2 } });
3901
+ var Yl = (e2, t2, n2) => ({ name: e2, type: Pa.VALUE, fieldPath: t2, value: { limit: n2, sortType: ja.COUNT, sortDirection: Ma.DESC } });
3902
+ function Xl(e2) {
3538
3903
  let t2 = [];
3539
- return e2.includes(Z.PRICE) && t2.push(sl(Q.minPrice, $.minPrice, Aa.MIN), sl(Q.maxPrice, $.maxPrice, Aa.MAX)), e2.includes(Z.OPTIONS) && t2.push(cl(Q.options, $.option, us.options), cl(Q.optionsWithChoice, $.optionChoice, us.choices)), e2.includes(Z.MODIFIERS) && t2.push(cl(Q.modifiers, $.modifier, us.modifiers), cl(Q.modifiersWithChoice, $.modifierChoice, us.choices)), t2;
3904
+ return e2.includes(ks.PRICE) && t2.push(Jl(Q.minPrice, $.minPrice, Na.MIN), Jl(Q.maxPrice, $.maxPrice, Na.MAX)), e2.includes(ks.OPTIONS) && t2.push(Yl(Q.options, $.option, js.options), Yl(Q.optionsWithChoice, $.optionChoice, js.choices)), e2.includes(ks.MODIFIERS) && t2.push(Yl(Q.modifiers, $.modifier, js.modifiers), Yl(Q.modifiersWithChoice, $.modifierChoice, js.choices)), t2;
3540
3905
  }
3541
- var ul = (e2) => {
3906
+ var Zl = (e2) => {
3542
3907
  let t2 = e2?.values?.results ?? [], n2 = /* @__PURE__ */ new Map();
3543
3908
  for (let e3 of t2) e3.value !== void 0 && e3.count !== void 0 && n2.set(e3.value, e3.count);
3544
3909
  return n2;
3545
3910
  };
3546
- var dl = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
3547
- var fl = (e2) => {
3911
+ var Ql = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
3912
+ var $l = (e2) => {
3548
3913
  let t2 = /* @__PURE__ */ new Map();
3549
3914
  for (let n2 of e2) n2.name !== void 0 && t2.set(n2.name, n2);
3550
3915
  return t2;
3551
3916
  };
3552
- async function pl(e2, t2) {
3553
- let n2 = await za({ filter: { [ls]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: ll(t2) }, { fields: [q.CURRENCY] }), r2 = fl(n2.aggregationData?.results ?? []);
3554
- return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds: dl(r2.get(Q.options)), optionChoiceIdToCount: ul(r2.get(Q.optionsWithChoice)), modifierIds: dl(r2.get(Q.modifiers)), modifierChoiceIdToCount: ul(r2.get(Q.modifiersWithChoice)), currency: n2.products?.[0]?.currency ?? void 0 };
3917
+ async function eu(e2, t2) {
3918
+ let n2 = await qa({ filter: { [As]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: Xl(t2) }, { fields: [Y.CURRENCY] }), r2 = $l(n2.aggregationData?.results ?? []);
3919
+ return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds: Ql(r2.get(Q.options)), optionChoiceIdToCount: Zl(r2.get(Q.optionsWithChoice)), modifierIds: Ql(r2.get(Q.modifiers)), modifierChoiceIdToCount: Zl(r2.get(Q.modifiersWithChoice)), currency: n2.products?.[0]?.currency ?? void 0 };
3555
3920
  }
3556
- var ml = [Z.PRICE, Z.OPTIONS, Z.MODIFIERS];
3557
- async function hl(e2, t2 = ml) {
3558
- let n2 = await pl(e2, t2), r2 = await al([...n2.optionIds, ...n2.modifierIds]);
3559
- return { filters: [Pc(n2.minPrice, n2.maxPrice), ...Nc(ea.PRODUCT_OPTION, r2, n2.optionIds, n2.optionChoiceIdToCount), ...Nc(ea.MODIFIER, r2, n2.modifierIds, n2.modifierChoiceIdToCount)].filter((e3) => e3 !== void 0), currency: n2.currency };
3921
+ var tu = [ks.PRICE, ks.OPTIONS, ks.MODIFIERS];
3922
+ async function nu(e2, t2 = tu) {
3923
+ let n2 = await eu(e2, t2), r2 = await Kl([...n2.optionIds, ...n2.modifierIds]);
3924
+ return { filters: [xl(n2.minPrice, n2.maxPrice), ...bl(ra.PRODUCT_OPTION, r2, n2.optionIds, n2.optionChoiceIdToCount), ...bl(ra.MODIFIER, r2, n2.modifierIds, n2.modifierChoiceIdToCount)].filter((e3) => e3 !== void 0), currency: n2.currency };
3560
3925
  }
3561
- var gl = (e2) => {
3562
- let t2 = Xs(e2 ?? void 0);
3926
+ var ru = (e2) => {
3927
+ let t2 = Lc(e2 ?? void 0);
3563
3928
  if (!t2) return;
3564
- let n2 = Qs(e2);
3565
- return { id: t2, url: Zs(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3929
+ let n2 = zc(e2);
3930
+ return { id: t2, url: Rc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3566
3931
  };
3567
- var _l = ({ promotion: e2, position: t2 }) => {
3568
- if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image: gl(e2.media?.image), altText: e2.media?.altText ?? void 0, position: t2 };
3932
+ var iu = ({ promotion: e2, position: t2 }) => {
3933
+ if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image: ru(e2.media?.image), altText: e2.media?.altText ?? void 0, position: t2 };
3569
3934
  };
3570
- async function vl(e2) {
3571
- return ((await ao(e2)).promotions ?? []).map(_l).filter((e3) => e3 !== void 0);
3935
+ async function au(e2) {
3936
+ return ((await To(e2)).promotions ?? []).map(iu).filter((e3) => e3 !== void 0);
3572
3937
  }
3573
- var yl = async (e2, t2, n2, r2) => {
3574
- let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 = po(n2, i2), o2 = Do(n2);
3575
- return { page: await ys({ categoryId: e2, filters: i2, filterSelection: a2, sortType: o2, productsPerPage: r2 }), filterSelectionKey: xs(a2), sortType: o2, productsPerPage: r2 };
3938
+ var ou = async (e2, t2, n2, r2) => {
3939
+ let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 = Mo(n2, i2), o2 = Ko(n2), s2 = await Vs({ categoryId: e2, filters: i2, filterSelection: a2, sortType: o2, productsPerPage: r2 }), c2 = await Xs(s2.products, /* @__PURE__ */ new Map());
3940
+ return { page: s2, productGroupByGroupId: Object.fromEntries(c2), filterSelectionKey: Qs(a2), sortType: o2, productsPerPage: r2 };
3576
3941
  };
3577
- async function bl(e2, t2, n2) {
3578
- let r2 = hl(e2), [i2, a2, o2] = await Promise.all([yl(e2, r2, t2, n2), r2, vl(e2)]), { filters: s2, currency: c2 } = a2;
3942
+ async function su(e2, t2, n2) {
3943
+ let r2 = nu(e2), [i2, a2, o2] = await Promise.all([ou(e2, r2, t2, n2), r2, au(e2)]), { filters: s2, currency: c2 } = a2;
3579
3944
  return { filters: s2, currency: c2, promotions: o2, initialProductList: i2 };
3580
3945
  }
3581
- var xl = async (e2, t2, n2) => {
3582
- let [r2, i2] = await Promise.all([dc(e2), fc()]);
3583
- return { category: r2, defaultLocationId: i2, ...await bl(r2.id, t2, n2) };
3946
+ var cu = async (e2, t2, n2) => {
3947
+ let [r2, i2] = await Promise.all([Qc(e2), $c()]);
3948
+ return { category: r2, defaultLocationId: i2, ...await su(r2.id, t2, n2) };
3584
3949
  };
3585
- var Sl = (e2, t2, n2) => `wixstores-storefront-builder:category-by-slug-context-data:${e2}:${n2}:${t2}`;
3586
- function Cl(e2) {
3587
- let { search: t2 } = yi(), n2 = Os();
3588
- return Es(Sl(n2, t2, e2), () => xl(n2, t2, e2));
3950
+ var lu = (e2, t2, n2) => `wixstores-storefront-builder:category-by-slug-context-data:${e2}:${n2}:${t2}`;
3951
+ function uu(e2) {
3952
+ let { search: t2 } = Ci(), n2 = hc();
3953
+ return pc(lu(n2, t2, e2), () => cu(n2, t2, e2));
3589
3954
  }
3590
- function wl(e2) {
3955
+ function du(e2) {
3591
3956
  return { id: e2._id, name: e2.name, slug: e2.slug, href: e2.slug ? `/category/${e2.slug}` : ``, parentCategoryId: e2.parentCategory?._id, sortIndex: e2.parentCategory?.index, childCategoryIds: [] };
3592
3957
  }
3593
- function Tl(e2) {
3958
+ function fu(e2) {
3594
3959
  let t2 = {};
3595
3960
  for (let n2 of e2) {
3596
3961
  if (n2.visible === false || !n2._id) continue;
3597
- let e3 = wl(n2);
3962
+ let e3 = du(n2);
3598
3963
  t2[e3.id ?? ``] = e3;
3599
3964
  }
3600
3965
  for (let e3 of Object.values(t2)) e3?.parentCategoryId && t2[e3.parentCategoryId]?.childCategoryIds.push(e3.id ?? ``);
3601
3966
  return t2;
3602
3967
  }
3603
- var El = { appNamespace: `@wix/stores`, treeKey: null };
3604
- var Dl = 1e3;
3605
- async function Ol() {
3606
- return Tl((await Ys({ treeReference: El }).eq(`visible`, true).limit(Dl).find()).items);
3968
+ var pu = { appNamespace: `@wix/stores`, treeKey: null };
3969
+ var mu = 1e3;
3970
+ async function hu() {
3971
+ return fu((await Ic({ treeReference: pu }).eq(`visible`, true).limit(mu).find()).items);
3607
3972
  }
3608
- var kl = `wixstores-storefront-builder:category-list-context-data`;
3609
- function Al() {
3610
- return Es(kl, () => Ol());
3973
+ var gu = `wixstores-storefront-builder:category-list-context-data`;
3974
+ function _u() {
3975
+ return pc(gu, () => hu());
3611
3976
  }
3612
- function jl() {
3977
+ function vu() {
3613
3978
  throw Error(`useCategoryBySlugContext must not be used directly`);
3614
3979
  }
3615
- function Ml({ categoryValue: e2, categoryListValue: t2, productListValue: n2, children: r2 }) {
3980
+ function yu({ categoryValue: e2, categoryListValue: t2, productListValue: n2, children: r2 }) {
3616
3981
  return s(u, { value: t2, children: s(l, { value: e2, children: s(c, { value: n2, children: r2 }) }) });
3617
3982
  }
3618
- var Nl = ({ children: e2, dataPromise: t2, categoryListPromise: n2, productsPerPage: r2 }) => {
3619
- let i2 = hi(t2), a2 = hi(n2), o2 = si(i2), c2 = ci(a2, i2.category.id), l2 = Cs(i2, r2);
3620
- return mi(i2.category), s(Ml, { categoryValue: o2, categoryListValue: c2, productListValue: l2, children: e2 });
3983
+ var bu = ({ children: e2, dataPromise: t2, categoryListPromise: n2, productsPerPage: r2 }) => {
3984
+ let i2 = yi(t2), a2 = yi(n2), o2 = di(i2), c2 = fi(a2, i2.category.id), l2 = uc(i2, r2);
3985
+ return vi(i2.category), s(yu, { categoryValue: o2, categoryListValue: c2, productListValue: l2, children: e2 });
3621
3986
  };
3622
- function Pl({ children: e2, productsPerPage: n2 = 20 }) {
3623
- let [r2] = a(() => new Lr()), i2 = Cl(n2), o2 = Al();
3624
- return s(Br, { client: r2, children: s(t, { fallback: null, children: s(Nl, { dataPromise: i2, categoryListPromise: o2, productsPerPage: n2, children: e2 }) }) });
3987
+ function xu({ children: e2, productsPerPage: n2 = 20 }) {
3988
+ let [r2] = a(() => new Br()), i2 = uu(n2), o2 = _u();
3989
+ return s(Ur, { client: r2, children: s(t, { fallback: null, children: s(bu, { dataPromise: i2, categoryListPromise: o2, productsPerPage: n2, children: e2 }) }) });
3625
3990
  }
3626
- var Fl = Nn(`404b3ed8-9b27-4342-9451-17ae43ebdebb`);
3991
+ var Su = jn(`404b3ed8-9b27-4342-9451-17ae43ebdebb`);
3627
3992
  export {
3628
- Pl as CategoryBySlugContextProvider,
3629
- Ml as CategoryBySlugContextValues,
3630
- Pl as default,
3631
- Fl as injectAccessTokenGetter,
3632
- jl as useCategoryBySlugContext
3993
+ xu as CategoryBySlugContextProvider,
3994
+ yu as CategoryBySlugContextValues,
3995
+ xu as default,
3996
+ Su as injectAccessTokenGetter,
3997
+ vu as useCategoryBySlugContext
3633
3998
  };
3634
3999
  //# sourceMappingURL=context-category-by-slug.mjs.map