@wix/stores 1.0.973 → 1.0.974

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 +39 -36
  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 +37 -34
  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 +287 -287
  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 +39 -36
  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 +37 -34
  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 +287 -287
  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
@@ -30,11 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // context-category-by-slug.ts
31
31
  var context_category_by_slug_exports = {};
32
32
  __export(context_category_by_slug_exports, {
33
- CategoryBySlugContextProvider: () => Pl,
34
- CategoryBySlugContextValues: () => Ml,
35
- default: () => Pl,
36
- injectAccessTokenGetter: () => Fl,
37
- useCategoryBySlugContext: () => jl
33
+ CategoryBySlugContextProvider: () => xu,
34
+ CategoryBySlugContextValues: () => yu,
35
+ default: () => xu,
36
+ injectAccessTokenGetter: () => Su,
37
+ useCategoryBySlugContext: () => vu
38
38
  });
39
39
  module.exports = __toCommonJS(context_category_by_slug_exports);
40
40
 
@@ -48,21 +48,21 @@ var import_category_list_context_provider = __toESM(require("@wix/stores/categor
48
48
  var import_services_manager_react = require("@wix/services-manager-react");
49
49
  var p = Object.create;
50
50
  var m = Object.defineProperty;
51
- var ee = Object.getOwnPropertyDescriptor;
52
- var te = Object.getOwnPropertyNames;
53
- var ne = Object.getPrototypeOf;
54
- var h = Object.prototype.hasOwnProperty;
55
- var g = (e2, t2) => () => (t2 || (e2((t2 = { exports: {} }).exports, t2), e2 = null), t2.exports);
56
- var re = (e2, t2, n2, r2) => {
57
- 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 });
51
+ var h = Object.getOwnPropertyDescriptor;
52
+ var ee = Object.getOwnPropertyNames;
53
+ var g = Object.getPrototypeOf;
54
+ var _ = Object.prototype.hasOwnProperty;
55
+ var v = (e2, t2) => () => (t2 || (e2((t2 = { exports: {} }).exports, t2), e2 = null), t2.exports);
56
+ var te = (e2, t2, n2, r2) => {
57
+ 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 });
58
58
  return e2;
59
59
  };
60
- 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));
61
- var v = {};
62
- function y(e2, t2 = false, n2 = (e3) => e3) {
60
+ 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));
61
+ var b = {};
62
+ function x(e2, t2 = false, n2 = (e3) => e3) {
63
63
  return () => ({ __type: `event-definition`, type: e2, isDomainEvent: t2, transformations: n2 });
64
64
  }
65
- var ie = (e2) => {
65
+ var ne = (e2) => {
66
66
  switch (e2) {
67
67
  case `get`:
68
68
  case `GET`:
@@ -89,11 +89,11 @@ var ie = (e2) => {
89
89
  throw Error(`Unknown method: ${e2}`);
90
90
  }
91
91
  };
92
- var ae = (e2) => (t2) => async (n2) => {
92
+ var re = (e2) => (t2) => async (n2) => {
93
93
  let r2, i2 = (t3) => {
94
94
  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.`);
95
95
  let { method: i3, url: a2, params: o2 } = r2;
96
- return { ...r2, method: ie(i3), url: a2, data: r2.data, params: o2 };
96
+ return { ...r2, method: ne(i3), url: a2, data: r2.data, params: o2 };
97
97
  };
98
98
  try {
99
99
  let e3 = await t2.request(i2);
@@ -106,10 +106,10 @@ var ae = (e2) => (t2) => async (n2) => {
106
106
  throw typeof e3 == `object` && e3 && `response` in e3 && typeof e3.response == `object` && e3.response !== null && `data` in e3.response ? e3.response.data : e3;
107
107
  }
108
108
  };
109
- var oe = (e2) => e2.__isAmbassador ? true : !!e2().__isAmbassador;
110
- var se = `__metadata`;
111
- var ce = `edge.wixapis.com`;
112
- var le = class extends Error {
109
+ var ie = (e2) => e2.__isAmbassador ? true : !!e2().__isAmbassador;
110
+ var ae = `__metadata`;
111
+ var oe = `edge.wixapis.com`;
112
+ var se = class extends Error {
113
113
  message;
114
114
  response;
115
115
  constructor(e2, t2) {
@@ -117,108 +117,108 @@ var le = class extends Error {
117
117
  }
118
118
  async details() {
119
119
  let e2 = await this.response.json();
120
- return ue(this.response.status, e2?.message, e2?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e2 });
120
+ return ce(this.response.status, e2?.message, e2?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e2 });
121
121
  }
122
122
  };
123
- var ue = (e2, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e2, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
124
- var de = (e2) => e2?.method && [`post`, `put`, `patch`].includes(e2.method.toLocaleLowerCase()) && e2.body ? { "Content-Type": `application/json` } : {};
125
- var fe = (e2) => e2 && typeof e2 == `object` && !Array.isArray(e2);
126
- var pe = (e2) => e2.__type === `host`;
127
- function me(e2, t2) {
123
+ var ce = (e2, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e2, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
124
+ var le = (e2) => e2?.method && [`post`, `put`, `patch`].includes(e2.method.toLocaleLowerCase()) && e2.body ? { "Content-Type": `application/json` } : {};
125
+ var ue = (e2) => e2 && typeof e2 == `object` && !Array.isArray(e2);
126
+ var de = (e2) => e2.__type === `host`;
127
+ function fe(e2, t2) {
128
128
  return e2.create(t2);
129
129
  }
130
- var he = `x-wix-bi-gateway`;
131
- function ge(e2, t2, n2) {
132
- return { [he]: _e({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e2.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e2.methodFqn, entity: e2.entityFqdn }) };
130
+ var pe = `x-wix-bi-gateway`;
131
+ function me(e2, t2, n2) {
132
+ return { [pe]: he({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e2.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e2.methodFqn, entity: e2.entityFqdn }) };
133
133
  }
134
- function _e(e2) {
134
+ function he(e2) {
135
135
  return Object.entries(e2).filter(([e3, t2]) => !!t2).map(([e3, t2]) => `${e3}=${t2}`).join(`,`);
136
136
  }
137
- function ve(e2) {
138
- let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
139
- 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);
137
+ function ge(e2) {
138
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
139
+ 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);
140
140
  try {
141
141
  return e2();
142
142
  } finally {
143
- globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
143
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
144
144
  }
145
145
  }
146
- var ye = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
147
- function be(e2) {
148
- return Te(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
146
+ var _e = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
147
+ function ve(e2) {
148
+ return Ce(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
149
149
  }
150
- var xe = /([\p{Ll}\d])(\p{Lu})/gu;
151
- var Se = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
152
- var Ce = `$1\0$2`;
153
- var we = /[^\p{L}\d]+/giu;
154
- function Te(e2) {
150
+ var ye = /([\p{Ll}\d])(\p{Lu})/gu;
151
+ var be = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
152
+ var xe = `$1\0$2`;
153
+ var Se = /[^\p{L}\d]+/giu;
154
+ function Ce(e2) {
155
155
  let t2 = e2.trim();
156
- t2 = t2.replace(xe, Ce).replace(Se, Ce), t2 = t2.replace(we, `\0`);
156
+ t2 = t2.replace(ye, xe).replace(be, xe), t2 = t2.replace(Se, `\0`);
157
157
  let n2 = 0, r2 = t2.length;
158
158
  for (; t2.charAt(n2) === `\0`; ) n2++;
159
159
  if (n2 === r2) return [];
160
160
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
161
161
  return t2.slice(n2, r2).split(/\0/g);
162
162
  }
163
- var Ee = (e2) => `validationError` in (e2.response?.data?.details ?? {});
164
- var De = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
165
- var Oe = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
166
- function ke(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
163
+ var we = (e2) => `validationError` in (e2.response?.data?.details ?? {});
164
+ var Te = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
165
+ var Ee = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
166
+ function De(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
167
167
  if (typeof e2 != `object` || !e2) throw e2;
168
- if (Ee(e2)) return Ae(e2, t2, n2);
169
- if (De(e2)) return Me(e2);
170
- if (Oe(e2)) {
171
- 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 };
172
- return je(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
168
+ if (we(e2)) return Oe(e2, t2, n2);
169
+ if (Te(e2)) return Ae(e2);
170
+ if (Ee(e2)) {
171
+ 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 };
172
+ return ke(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
173
173
  }
174
- return Ne(e2);
174
+ return je(e2);
175
175
  }
176
- var Ae = (e2, t2, n2) => {
177
- 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 };
178
- return je(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
176
+ var Oe = (e2, t2, n2) => {
177
+ 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 };
178
+ return ke(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
179
179
  };
180
- var je = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
181
- var Me = (e2) => {
182
- 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 };
183
- return je(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
180
+ var ke = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
181
+ var Ae = (e2) => {
182
+ 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 };
183
+ return ke(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
184
184
  };
185
- 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 } } });
186
- var Pe = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
185
+ 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 } } });
186
+ var Me = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
187
187
  let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
188
188
  return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
189
189
  let r3 = t2[e3.field];
190
- if (r3) return { ...e3, field: Fe(r3, i2) };
190
+ if (r3) return { ...e3, field: Ne(r3, i2) };
191
191
  let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
192
192
  if (s2) {
193
193
  let t3 = a2[s2];
194
- if (t3) return { ...e3, field: e3.field.replace(s2, Fe(t3, i2)) };
194
+ if (t3) return { ...e3, field: e3.field.replace(s2, Ne(t3, i2)) };
195
195
  }
196
196
  return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
197
197
  });
198
198
  };
199
- var Fe = (e2, t2) => {
200
- let n2 = Ie(e2);
199
+ var Ne = (e2, t2) => {
200
+ let n2 = Pe(e2);
201
201
  return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
202
202
  };
203
- var Ie = (e2) => {
203
+ var Pe = (e2) => {
204
204
  let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
205
205
  return t2 && t2.groups && Number(t2.groups.argIndex);
206
206
  };
207
- function Le(e2, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
208
- return ve(() => e2({ request: async (e3) => {
207
+ function Fe(e2, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
208
+ return ge(() => e2({ request: async (e3) => {
209
209
  let i3 = e3({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
210
210
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
211
- let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? ce : o3}${a3.url}`;
211
+ let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? oe : o3}${a3.url}`;
212
212
  a3.params && a3.params.toString() && (u3 += `?${a3.params.toString()}`);
213
213
  try {
214
- let e4 = ge(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e4 } }, s3 = await n2(u3, o4);
214
+ let e4 = me(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e4 } }, s3 = await n2(u3, o4);
215
215
  if (s3.status !== 200) {
216
216
  let e5 = null;
217
217
  try {
218
218
  e5 = await s3.json();
219
219
  } catch {
220
220
  }
221
- let t3 = ze(s3.status, e5?.message ?? s3.statusText, e5?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e5 }), n3 = ke(t3);
221
+ let t3 = Le(s3.status, e5?.message ?? s3.statusText, e5?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e5 }), n3 = De(t3);
222
222
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
223
223
  }
224
224
  let l3 = await s3.json();
@@ -228,18 +228,18 @@ function Le(e2, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
228
228
  }
229
229
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
230
230
  }
231
- var Re = class extends Error {
231
+ var Ie = class extends Error {
232
232
  response;
233
233
  requestId;
234
234
  constructor(e2) {
235
235
  super(), this.response = e2.response, this.requestId = e2.requestId;
236
236
  }
237
237
  };
238
- 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 });
239
- var Be = `.`;
240
- function Ve(e2, t2, n2) {
238
+ 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 });
239
+ var Re = `.`;
240
+ function ze(e2, t2, n2) {
241
241
  if (e2 == null) throw Error(`Cannot set value on null or undefined`);
242
- let r2 = He(t2), i2 = e2;
242
+ let r2 = Be(t2), i2 = e2;
243
243
  for (let e3 = 0; e3 < r2.length; e3++) {
244
244
  let t3 = r2[e3];
245
245
  if (e3 === r2.length - 1) {
@@ -251,21 +251,21 @@ function Ve(e2, t2, n2) {
251
251
  }
252
252
  return e2;
253
253
  }
254
- function He(e2) {
255
- return Array.isArray(e2) ? e2 : e2.split(Be).map((e3) => Ue(e3) ? Number(e3) : e3);
254
+ function Be(e2) {
255
+ return Array.isArray(e2) ? e2 : e2.split(Re).map((e3) => Ve(e3) ? Number(e3) : e3);
256
256
  }
257
- function Ue(e2) {
257
+ function Ve(e2) {
258
258
  return /^\d+$/.test(e2);
259
259
  }
260
- function We(e2) {
260
+ function He(e2) {
261
261
  let t2 = {};
262
- for (let [n2, r2] of Object.entries(e2)) Ge(n2) || Ve(t2, He(n2), r2);
262
+ for (let [n2, r2] of Object.entries(e2)) Ue(n2) || ze(t2, Be(n2), r2);
263
263
  return t2;
264
264
  }
265
- function Ge(e2) {
265
+ function Ue(e2) {
266
266
  return e2 === `__proto__` || e2 === `constructor` || e2 === `prototype`;
267
267
  }
268
- var Ke = class {
268
+ var We = class {
269
269
  BRACKET_PATTERN = /\[(\d+)\]/g;
270
270
  NUMERIC_PATTERN = /^\d+$/;
271
271
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -288,7 +288,7 @@ var Ke = class {
288
288
  return e2.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
289
289
  }
290
290
  unflatten() {
291
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e2, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e2)), t2])), We(this.cleanedModifiedFields);
291
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e2, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e2)), t2])), He(this.cleanedModifiedFields);
292
292
  }
293
293
  flatten(e2) {
294
294
  let t2 = {};
@@ -308,12 +308,12 @@ var Ke = class {
308
308
  if (!Array.isArray(n2)) throw Error(`Expected array at path ${this.buildPathString(r2)}, but got ${typeof n2}`);
309
309
  r2.push(`[${e3}]`), n2 = n2[parseInt(e3, 10)];
310
310
  }, a2 = (e3, t3) => {
311
- let i3 = e3 in ye ? ye[e3] : void 0;
311
+ let i3 = e3 in _e ? _e[e3] : void 0;
312
312
  if (i3 && i3 in t3) {
313
313
  r2.push(i3), n2 = t3[i3];
314
314
  return;
315
315
  }
316
- let a3 = Xe(e3);
316
+ let a3 = Je(e3);
317
317
  if (a3 && a3 in t3) {
318
318
  r2.push(a3), n2 = t3[a3];
319
319
  return;
@@ -344,28 +344,28 @@ var Ke = class {
344
344
  return e2.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e2[r2 - 1] === `\\` ? t2 : `.` + n2);
345
345
  }
346
346
  };
347
- function qe(e2, t2) {
347
+ function Ge(e2, t2) {
348
348
  let n2 = e2?.modifiedFields;
349
349
  if (!n2) return null;
350
- let r2 = Je(n2);
350
+ let r2 = Ke(n2);
351
351
  if (!r2) return null;
352
352
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
353
353
  e2 = { ...e2, modifiedFields: i2 };
354
354
  let o2 = t2(e2), s2 = o2?.modifiedFields;
355
355
  if (!s2) return null;
356
- let c2 = Ye(s2, a2);
356
+ let c2 = qe(s2, a2);
357
357
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
358
358
  }
359
- function Je(e2) {
359
+ function Ke(e2) {
360
360
  if (typeof e2 == `object` && e2 && !Array.isArray(e2)) try {
361
- let t2 = new Ke(e2);
361
+ let t2 = new We(e2);
362
362
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
363
363
  } catch {
364
364
  return null;
365
365
  }
366
366
  return null;
367
367
  }
368
- function Ye(e2, t2) {
368
+ function qe(e2, t2) {
369
369
  if (typeof e2 == `object` && e2 && !Array.isArray(e2)) try {
370
370
  return t2.flatten(e2);
371
371
  } catch {
@@ -373,10 +373,10 @@ function Ye(e2, t2) {
373
373
  }
374
374
  return null;
375
375
  }
376
- function Xe(e2) {
376
+ function Je(e2) {
377
377
  return e2.replace(/[-_\s]+(.)?/g, (e3, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e3) => e3.toLowerCase());
378
378
  }
379
- function Ze() {
379
+ function Ye() {
380
380
  return { emit(e2, ...t2) {
381
381
  for (let n2 = 0, r2 = this.events[e2] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
382
382
  }, events: {}, on(e2, t2) {
@@ -385,8 +385,8 @@ function Ze() {
385
385
  };
386
386
  } };
387
387
  }
388
- var Qe = (e2) => e2.__type === `event-definition`;
389
- function $e(e2, t2, n2, r2) {
388
+ var Xe = (e2) => e2.__type === `event-definition`;
389
+ function Ze(e2, t2, n2, r2) {
390
390
  let i2;
391
391
  if (e2.isDomainEvent) {
392
392
  let { deletedEvent: e3, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -397,14 +397,14 @@ function $e(e2, t2, n2, r2) {
397
397
  let e3 = s2.modifiedFields;
398
398
  if (typeof e3 == `object` && e3 && !Array.isArray(e3)) {
399
399
  o2 = structuredClone(i2);
400
- let e4 = qe(s2, a2);
400
+ let e4 = Ge(s2, a2);
401
401
  if (e4) return t2(e4);
402
402
  }
403
403
  }
404
404
  return t2(a2(o2));
405
405
  }
406
- function et(e2) {
407
- let t2 = /* @__PURE__ */ new Map(), n2 = Ze();
406
+ function Qe(e2) {
407
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ye();
408
408
  return { initModule(e3) {
409
409
  return (r2) => {
410
410
  let i2 = t2.get(e3.type) ?? [];
@@ -414,7 +414,7 @@ function et(e2) {
414
414
  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 }))];
415
415
  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(`, `)}`);
416
416
  let l2 = t2.get(r2) ?? [];
417
- 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 };
417
+ 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 };
418
418
  }, async processRequest(e3, t3) {
419
419
  let n3 = await e3.text();
420
420
  return this.process(n3, t3);
@@ -433,12 +433,12 @@ function et(e2) {
433
433
  let n3 = Array.from(t2.keys()).map((e4) => ({ type: e4 }));
434
434
  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(`, `)}`);
435
435
  let r2 = t2.get(e3.eventType) ?? [];
436
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => $e(t3, n4, e3.payload, { instanceId: e3.instanceId, identity: e3.identity })));
437
- }, apps: { AppInstalled: y(`AppInstalled`)(), AppRemoved: y(`AppRemoved`)() } } };
436
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ze(t3, n4, e3.payload, { instanceId: e3.instanceId, identity: e3.identity })));
437
+ }, apps: { AppInstalled: x(`AppInstalled`)(), AppRemoved: x(`AppRemoved`)() } } };
438
438
  }
439
- var tt = (e2) => e2.__type === `service-plugin-definition`;
440
- function nt(e2) {
441
- let t2 = /* @__PURE__ */ new Map(), n2 = Ze();
439
+ var $e = (e2) => e2.__type === `service-plugin-definition`;
440
+ function et(e2) {
441
+ let t2 = /* @__PURE__ */ new Map(), n2 = Ye();
442
442
  return { initModule(e3) {
443
443
  return (r2) => {
444
444
  let i2 = t2.get(e3.componentType.toLowerCase()) ?? [];
@@ -479,43 +479,43 @@ function nt(e2) {
479
479
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e3)));
480
480
  } } };
481
481
  }
482
- var b = `X-Wix-Consistent`;
483
- function rt(e2) {
482
+ var S = `X-Wix-Consistent`;
483
+ function tt(e2) {
484
484
  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) => {
485
- 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?.();
485
+ 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?.();
486
486
  try {
487
487
  if (typeof n3 == `string` || n3 instanceof URL) {
488
488
  let e3 = await i3(n3, { ...r3, headers: c3 });
489
489
  l3?.handleError(e3, { requestOptions: { url: n3.toString(), method: r3?.method } });
490
- let a3 = it(e3);
491
- return a3 && (t2[b] = a3), e3;
490
+ let a3 = nt(e3);
491
+ return a3 && (t2[S] = a3), e3;
492
492
  }
493
493
  {
494
494
  for (let [e4, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e4, t3);
495
495
  let e3 = await i3(n3, r3);
496
496
  l3?.handleError(e3, { requestOptions: { url: n3.url, method: r3?.method } });
497
- let a3 = it(e3);
498
- return a3 && (t2[b] = a3), e3;
497
+ let a3 = nt(e3);
498
+ return a3 && (t2[S] = a3), e3;
499
499
  }
500
500
  } catch (e3) {
501
501
  throw l3?.handleError(e3, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e3;
502
502
  }
503
- }, { client: c2, initModule: l2 } = nt(i2), { client: u2, initModule: d2 } = et(i2), f2 = async (n3, r3) => {
504
- 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);
505
- return u3 && (t2[b] = u3), l3;
503
+ }, { client: c2, initModule: l2 } = et(i2), { client: u2, initModule: d2 } = Qe(i2), f2 = async (n3, r3) => {
504
+ 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);
505
+ return u3 && (t2[S] = u3), l3;
506
506
  }, p2 = (t3, n3) => {
507
- if (Qe(t3)) return d2(t3);
508
- if (tt(t3)) return l2(t3);
509
- if (pe(t3) && e2.host) return me(t3, e2.host);
507
+ if (Xe(t3)) return d2(t3);
508
+ if ($e(t3)) return l2(t3);
509
+ if (de(t3) && e2.host) return fe(t3, e2.host);
510
510
  if (typeof t3 == `function`) {
511
511
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
512
512
  let r3 = e2.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e2.useCDN === void 0 ? i2().shouldUseCDN : e2.useCDN;
513
- return Le(ve(() => oe(t3)) ? ae(t3) : t3, n3 ?? {}, f2, e2.host?.getErrorHandler?.(), (e3, t4) => {
513
+ return Fe(ge(() => ie(t3)) ? re(t3) : t3, n3 ?? {}, f2, e2.host?.getErrorHandler?.(), (e3, t4) => {
514
514
  let n4 = new URL(e3, `https://${r3}`);
515
515
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
516
516
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e2.host?.name, o3, e2.validateRequestSchema);
517
517
  }
518
- return fe(t3) ? Object.fromEntries(Object.entries(t3).map(([e3, n4]) => [e3, p2(n4, t3[se])])) : t3;
518
+ return ue(t3) ? Object.fromEntries(Object.entries(t3).map(([e3, n4]) => [e3, p2(n4, t3[ae])])) : t3;
519
519
  }, m2 = (e3) => {
520
520
  for (let n3 in e3) t2[n3] = e3[n3];
521
521
  };
@@ -523,36 +523,36 @@ function rt(e2) {
523
523
  let t3 = i2();
524
524
  return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e2.host), t3;
525
525
  }, setHeaders: m2, use: p2, enableContext(e3, t3 = { elevated: false }) {
526
- 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;
526
+ 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;
527
527
  }, fetch: (t3, n3) => {
528
528
  let r3 = e2.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
529
529
  return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
530
530
  }, fetchWithAuth: s2, async graphql(t3, n3, r3 = { apiVersion: `alpha` }) {
531
531
  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 }) });
532
- if (a3.status !== 200) throw new le(`GraphQL request failed with status ${a3.status}`, a3);
532
+ if (a3.status !== 200) throw new se(`GraphQL request failed with status ${a3.status}`, a3);
533
533
  let { data: o3, errors: s3 } = await a3.json();
534
534
  return { data: o3 ?? {}, errors: s3 };
535
535
  }, webhooks: u2, servicePlugins: c2 };
536
536
  }
537
- function it(e2) {
537
+ function nt(e2) {
538
538
  return e2.headers?.get(`X-Wix-Consistent`) ?? e2.headers?.get(`x-wix-consistent`);
539
539
  }
540
- var at = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
541
- var ot = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
542
- var st = `items`;
543
- var ct = `pagingMetadata`;
544
- var lt = at;
545
- function ut(e2, t2) {
540
+ var rt = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
541
+ var it = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
542
+ var at = `items`;
543
+ var ot = `pagingMetadata`;
544
+ var st = rt;
545
+ function ct(e2, t2) {
546
546
  return e2?.split(`.`).map((e3) => t2?.[e3] ?? e3).join(`.`);
547
547
  }
548
- function x(e2, { transformSystemFields: t2 = true } = {}) {
549
- return t2 ? ut(e2, lt) : e2;
548
+ function C(e2, { transformSystemFields: t2 = true } = {}) {
549
+ return t2 ? ct(e2, st) : e2;
550
550
  }
551
- var dt = `sort.fieldName`;
552
- function ft(e2, t2, n2) {
553
- return (e2 === dt || e2.endsWith(`.${dt}`)) && typeof t2 == `string` ? ut(t2, n2) : t2;
551
+ var lt = `sort.fieldName`;
552
+ function ut(e2, t2, n2) {
553
+ return (e2 === lt || e2.endsWith(`.${lt}`)) && typeof t2 == `string` ? ct(t2, n2) : t2;
554
554
  }
555
- function pt(e2, t2, n2) {
555
+ function dt(e2, t2, n2) {
556
556
  let r2 = (e3) => n2.includes(e3), i2 = (e3, n3) => {
557
557
  if (Array.isArray(e3)) e3.forEach((e4) => {
558
558
  i2(e4, n3);
@@ -562,157 +562,157 @@ function pt(e2, t2, n2) {
562
562
  Object.keys(a2).forEach((e4) => {
563
563
  let o2 = n3 === `` ? e4 : `${n3}.${e4}`;
564
564
  if (r2(o2)) return;
565
- let s2 = mt(e4, t2);
566
- s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = ft(o2, a2[s2], t2), i2(a2[s2], o2);
565
+ let s2 = ft(e4, t2);
566
+ s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = ut(o2, a2[s2], t2), i2(a2[s2], o2);
567
567
  });
568
568
  }
569
569
  };
570
570
  return i2(e2, ``), e2;
571
571
  }
572
- function mt(e2, t2) {
572
+ function ft(e2, t2) {
573
573
  let n2;
574
574
  return n2 = e2.includes(`.`) ? e2.split(`.`).map((e3) => t2[e3] ?? e3).join(`.`) : t2[e2] ?? e2, n2;
575
575
  }
576
- function S(e2, t2 = []) {
577
- return pt(e2, at, t2);
576
+ function w(e2, t2 = []) {
577
+ return dt(e2, rt, t2);
578
578
  }
579
- function C(e2, t2 = []) {
580
- return pt(e2, ot, t2);
579
+ function T(e2, t2 = []) {
580
+ return dt(e2, it, t2);
581
581
  }
582
- function w(e2) {
582
+ function E(e2) {
583
583
  return e2 ? new Date(e2) : void 0;
584
584
  }
585
- var ht = /* @__PURE__ */ new WeakMap();
586
- function gt() {
585
+ var pt = /* @__PURE__ */ new WeakMap();
586
+ function mt() {
587
587
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
588
588
  }
589
- function _t(e2, t2) {
589
+ function ht(e2, t2) {
590
590
  let n2 = e2.get(t2);
591
- return n2 || (n2 = gt(), e2.set(t2, n2)), n2;
591
+ return n2 || (n2 = mt(), e2.set(t2, n2)), n2;
592
592
  }
593
- function vt(e2, t2) {
594
- 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));
593
+ function gt(e2, t2) {
594
+ 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));
595
595
  }
596
- function yt(e2) {
597
- let t2 = gt();
596
+ function _t(e2) {
597
+ let t2 = mt();
598
598
  for (let n2 of e2) {
599
- let e3 = n2.path.split(`.`).reduce(vt, t2);
599
+ let e3 = n2.path.split(`.`).reduce(gt, t2);
600
600
  e3.leaves ??= [], e3.leaves.push(n2);
601
601
  }
602
602
  return t2;
603
603
  }
604
- function bt(e2) {
605
- let t2 = ht.get(e2);
606
- return t2 || (t2 = yt(e2), ht.set(e2, t2)), t2;
604
+ function vt(e2) {
605
+ let t2 = pt.get(e2);
606
+ return t2 || (t2 = _t(e2), pt.set(e2, t2)), t2;
607
607
  }
608
- function xt(e2) {
608
+ function yt(e2) {
609
609
  return typeof e2 == `object` && !!e2;
610
610
  }
611
- function St(e2, { isRepeated: t2, isMap: n2 }, r2) {
612
- 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);
611
+ function bt(e2, { isRepeated: t2, isMap: n2 }, r2) {
612
+ 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);
613
613
  }
614
- function Ct(e2, t2, n2) {
615
- xt(e2) && Et(e2, t2, n2);
614
+ function xt(e2, t2, n2) {
615
+ yt(e2) && wt(e2, t2, n2);
616
616
  }
617
- function wt(e2, t2, n2) {
617
+ function St(e2, t2, n2) {
618
618
  for (let [r2, i2] of t2) {
619
619
  if (!(r2 in e2)) continue;
620
- if (i2.leaves) for (let t4 of i2.leaves) e2[r2] = St(e2[r2], t4, n2);
620
+ if (i2.leaves) for (let t4 of i2.leaves) e2[r2] = bt(e2[r2], t4, n2);
621
621
  let t3 = e2[r2];
622
- Array.isArray(t3) ? t3.forEach((e3) => Ct(e3, i2, n2)) : Ct(t3, i2, n2);
622
+ Array.isArray(t3) ? t3.forEach((e3) => xt(e3, i2, n2)) : xt(t3, i2, n2);
623
623
  }
624
624
  }
625
- function Tt(e2, t2, n2) {
625
+ function Ct(e2, t2, n2) {
626
626
  for (let [r2, i2] of t2) {
627
627
  let t3 = e2[r2];
628
- xt(t3) && Object.values(t3).forEach((e3) => Ct(e3, i2, n2));
628
+ yt(t3) && Object.values(t3).forEach((e3) => xt(e3, i2, n2));
629
629
  }
630
630
  }
631
- function Et(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
632
- t2 && wt(e2, t2, i2), n2 && Tt(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => Ct(e3, r2, i2));
631
+ function wt(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
632
+ t2 && St(e2, t2, i2), n2 && Ct(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => xt(e3, r2, i2));
633
633
  }
634
- function T(e2, t2) {
635
- if (!xt(e2)) return e2;
636
- for (let { paths: n2, transformFn: r2 } of t2) Et(e2, bt(n2), r2);
634
+ function D(e2, t2) {
635
+ if (!yt(e2)) return e2;
636
+ for (let { paths: n2, transformFn: r2 } of t2) wt(e2, vt(n2), r2);
637
637
  return e2;
638
638
  }
639
- function Dt(e2) {
640
- return Mt(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
639
+ function Tt(e2) {
640
+ return At(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
641
641
  }
642
- var Ot = /([\p{Ll}\d])(\p{Lu})/gu;
643
- var kt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
644
- var At = `$1\0$2`;
645
- var jt = /[^\p{L}\d]+/giu;
646
- function Mt(e2) {
642
+ var Et = /([\p{Ll}\d])(\p{Lu})/gu;
643
+ var Dt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
644
+ var Ot = `$1\0$2`;
645
+ var kt = /[^\p{L}\d]+/giu;
646
+ function At(e2) {
647
647
  let t2 = e2.trim();
648
- t2 = t2.replace(Ot, At).replace(kt, At), t2 = t2.replace(jt, `\0`);
648
+ t2 = t2.replace(Et, Ot).replace(Dt, Ot), t2 = t2.replace(kt, `\0`);
649
649
  let n2 = 0, r2 = t2.length;
650
650
  for (; t2.charAt(n2) === `\0`; ) n2++;
651
651
  if (n2 === r2) return [];
652
652
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
653
653
  return t2.slice(n2, r2).split(/\0/g);
654
654
  }
655
- var Nt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
656
- var Pt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
657
- var Ft = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
658
- function E(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
655
+ var jt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
656
+ var Mt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
657
+ var Nt = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
658
+ function O(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
659
659
  if (typeof e2 != `object` || !e2) throw e2;
660
- if (Nt(e2)) return It(e2, t2, n2);
661
- if (Pt(e2)) return Rt(e2);
662
- if (Ft(e2)) {
663
- 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 };
664
- return Lt(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
660
+ if (jt(e2)) return Pt(e2, t2, n2);
661
+ if (Mt(e2)) return It(e2);
662
+ if (Nt(e2)) {
663
+ 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 };
664
+ return Ft(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
665
665
  }
666
- return zt(e2);
666
+ return Lt(e2);
667
667
  }
668
- var It = (e2, t2, n2) => {
669
- 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 };
670
- return Lt(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
668
+ var Pt = (e2, t2, n2) => {
669
+ 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 };
670
+ return Ft(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
671
671
  };
672
- var Lt = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
673
- var Rt = (e2) => {
674
- 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 };
675
- return Lt(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
672
+ var Ft = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
673
+ var It = (e2) => {
674
+ 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 };
675
+ return Ft(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
676
676
  };
677
- 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 } } });
678
- var Bt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
677
+ 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 } } });
678
+ var Rt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
679
679
  let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
680
680
  return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
681
681
  let r3 = t2[e3.field];
682
- if (r3) return { ...e3, field: Vt(r3, i2) };
682
+ if (r3) return { ...e3, field: zt(r3, i2) };
683
683
  let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
684
684
  if (s2) {
685
685
  let t3 = a2[s2];
686
- if (t3) return { ...e3, field: e3.field.replace(s2, Vt(t3, i2)) };
686
+ if (t3) return { ...e3, field: e3.field.replace(s2, zt(t3, i2)) };
687
687
  }
688
688
  return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
689
689
  });
690
690
  };
691
- var Vt = (e2, t2) => {
692
- let n2 = Ht(e2);
691
+ var zt = (e2, t2) => {
692
+ let n2 = Bt(e2);
693
693
  return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
694
694
  };
695
- var Ht = (e2) => {
695
+ var Bt = (e2) => {
696
696
  let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
697
697
  return t2 && t2.groups && Number(t2.groups.argIndex);
698
698
  };
699
- function Ut() {
699
+ function Vt() {
700
700
  let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
701
701
  if (e2) return { initWixModules(t3, n3) {
702
- return Wt(() => e2(t3, n3));
702
+ return Ht(() => e2(t3, n3));
703
703
  }, fetchWithAuth() {
704
704
  throw Error(`fetchWithAuth is not available in this context`);
705
705
  }, graphql() {
706
706
  throw Error(`graphql is not available in this context`);
707
707
  } };
708
- 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;
708
+ 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;
709
709
  if (t2 || n2) return { initWixModules(e3, r2) {
710
710
  if (r2) {
711
711
  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`);
712
- return Wt(() => n2.use(e3));
712
+ return Ht(() => n2.use(e3));
713
713
  }
714
714
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
715
- return Wt(() => t2.use(e3));
715
+ return Ht(() => t2.use(e3));
716
716
  }, fetchWithAuth: (e3, n3) => {
717
717
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
718
718
  return t2.fetchWithAuth(e3, n3);
@@ -724,117 +724,117 @@ function Ut() {
724
724
  return t2.graphql(e3, n3, r2);
725
725
  } };
726
726
  }
727
- function Wt(e2) {
728
- let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
729
- 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);
727
+ function Ht(e2) {
728
+ let t2 = globalThis.__wix_context__, n2 = { client: b.client, elevatedClient: b.elevatedClient }, r2;
729
+ 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);
730
730
  try {
731
731
  return e2();
732
732
  } finally {
733
- globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
733
+ globalThis.__wix_context__ = t2, b.client = n2.client, b.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
734
734
  }
735
735
  }
736
- function Gt(e2, t2) {
736
+ function Ut(e2, t2) {
737
737
  return (...n2) => {
738
- let r2 = Ut();
738
+ let r2 = Vt();
739
739
  return r2 ? r2.initWixModules(e2, t2).apply(void 0, n2) : e2.apply(void 0, n2);
740
740
  };
741
741
  }
742
- function Kt(e2) {
742
+ function Wt(e2) {
743
743
  let t2 = (...t3) => {
744
- let n2 = Ut();
744
+ let n2 = Vt();
745
745
  return n2 ? n2.initWixModules(e2).apply(void 0, t3) : () => ({ slug: e2.type });
746
746
  };
747
747
  return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
748
748
  }
749
- function D(e2, t2 = false) {
750
- return Gt(e2, t2);
749
+ function k(e2, t2 = false) {
750
+ return Ut(e2, t2);
751
751
  }
752
- function O(e2, t2) {
753
- let n2 = qt(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
754
- return t2 && r2 ? new URLSearchParams({ ".r": Yt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
752
+ function A(e2, t2) {
753
+ let n2 = Gt(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
754
+ return t2 && r2 ? new URLSearchParams({ ".r": qt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
755
755
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
756
756
  }), e3), new URLSearchParams());
757
757
  }
758
- function k(e2) {
759
- let t2 = ln(sn(e2.host), e2.domainToMappings);
760
- return vn(hn(e2.protoPath, e2.data || {}), t2);
758
+ function j(e2) {
759
+ let t2 = sn(an(e2.host), e2.domainToMappings);
760
+ return gn(pn(e2.protoPath, e2.data || {}), t2);
761
761
  }
762
- function qt(e2, t2 = ``) {
762
+ function Gt(e2, t2 = ``) {
763
763
  let n2 = {};
764
764
  return Object.entries(e2).forEach(([e3, r2]) => {
765
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Jt(t2, e3);
765
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Kt(t2, e3);
766
766
  if (i2) {
767
- let e4 = qt(r2, a2);
767
+ let e4 = Gt(r2, a2);
768
768
  Object.assign(n2, e4);
769
769
  } else n2[a2] = r2;
770
770
  }), n2;
771
771
  }
772
- function Jt(e2, t2) {
772
+ function Kt(e2, t2) {
773
773
  return `${e2}${e2 ? `.` : ``}${t2}`;
774
774
  }
775
- var Yt = (e2) => {
775
+ var qt = (e2) => {
776
776
  let t2 = new TextEncoder().encode(e2);
777
777
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e2, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
778
778
  };
779
- var Xt = [`wix.com`, `editorx.com`];
780
- var Zt = `_`;
781
- var Qt = `*.`;
782
- var $t = RegExp(`\\.(${Xt.join(`|`)})$`);
783
- var en = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
784
- var tn = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
785
- var nn = `dev.wix-code.com`;
786
- var rn = /{(.*)}/;
787
- var an = RegExp(`\\.(${en.join(`|`)})$`);
788
- var on = RegExp(`.*\\.${nn}$`);
789
- function sn(e2) {
790
- return cn(e2).replace($t, `._base_domain_`).replace(an, `._api_base_domain_`).replace(on, `*.dev.wix-code.com`);
791
- }
792
- function cn(e2) {
793
- return tn[e2] ?? e2;
794
- }
795
- function ln(e2, t2) {
779
+ var Jt = [`wix.com`, `editorx.com`];
780
+ var Yt = `_`;
781
+ var Xt = `*.`;
782
+ var Zt = RegExp(`\\.(${Jt.join(`|`)})$`);
783
+ var Qt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
784
+ var $t = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
785
+ var en = `dev.wix-code.com`;
786
+ var tn = /{(.*)}/;
787
+ var nn = RegExp(`\\.(${Qt.join(`|`)})$`);
788
+ var rn = RegExp(`.*\\.${en}$`);
789
+ function an(e2) {
790
+ return on(e2).replace(Zt, `._base_domain_`).replace(nn, `._api_base_domain_`).replace(rn, `*.dev.wix-code.com`);
791
+ }
792
+ function on(e2) {
793
+ return $t[e2] ?? e2;
794
+ }
795
+ function sn(e2, t2) {
796
796
  let n2 = t2[e2];
797
797
  if (n2) return n2;
798
- let r2 = un(e2, t2) ?? dn(e2, t2);
798
+ let r2 = cn(e2, t2) ?? ln(e2, t2);
799
799
  if (!r2) {
800
- if (pn(e2)) {
801
- let e3 = t2[mn];
800
+ if (dn(e2)) {
801
+ let e3 = t2[fn];
802
802
  if (e3) return e3;
803
803
  }
804
- let n3 = t2[Zt];
804
+ let n3 = t2[Yt];
805
805
  if (n3) return n3;
806
806
  }
807
807
  return r2 ?? [];
808
808
  }
809
- function un(e2, t2) {
809
+ function cn(e2, t2) {
810
810
  return Object.entries(t2).find(([t3]) => {
811
811
  let [, ...n2] = e2.split(`.`);
812
812
  return n2.join(`.`) === t3;
813
813
  })?.[1];
814
814
  }
815
- function dn(e2, t2) {
816
- let [n2] = Object.entries(t2).filter(([t3]) => fn(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
815
+ function ln(e2, t2) {
816
+ let [n2] = Object.entries(t2).filter(([t3]) => un(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
817
817
  if (!n2) return;
818
818
  let [, r2] = n2;
819
819
  return r2;
820
820
  }
821
- function fn(e2, t2) {
822
- if (!t2.startsWith(Qt)) return false;
821
+ function un(e2, t2) {
822
+ if (!t2.startsWith(Xt)) return false;
823
823
  let n2 = t2.slice(1);
824
824
  return e2.length > n2.length && e2.endsWith(n2);
825
825
  }
826
- function pn(e2) {
826
+ function dn(e2) {
827
827
  return !!e2.match(/\._base_domain_$/);
828
828
  }
829
- var mn = `www._base_domain_`;
830
- function hn(e2, t2) {
831
- return e2.split(`/`).map((e3) => gn(e3, t2)).join(`/`);
829
+ var fn = `www._base_domain_`;
830
+ function pn(e2, t2) {
831
+ return e2.split(`/`).map((e3) => mn(e3, t2)).join(`/`);
832
832
  }
833
- function gn(e2, t2) {
834
- let n2 = e2.match(rn) || [], r2 = n2[1];
835
- return r2 ? _n(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
833
+ function mn(e2, t2) {
834
+ let n2 = e2.match(tn) || [], r2 = n2[1];
835
+ return r2 ? hn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
836
836
  }
837
- function _n(e2, t2, n2, r2) {
837
+ function hn(e2, t2, n2, r2) {
838
838
  let i2 = e2;
839
839
  for (let e3 of t2.split(`.`)) {
840
840
  if (!i2) return n2;
@@ -842,43 +842,43 @@ function _n(e2, t2, n2, r2) {
842
842
  }
843
843
  return `${i2}${r2}`;
844
844
  }
845
- function vn(e2, t2) {
845
+ function gn(e2, t2) {
846
846
  let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
847
847
  return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
848
848
  }
849
- function A(e2) {
850
- return Kt(e2);
849
+ function M(e2) {
850
+ return Wt(e2);
851
851
  }
852
- function yn(e2) {
852
+ function _n(e2) {
853
853
  return isFinite(e2) ? e2 : e2.toString();
854
854
  }
855
- function j(e2) {
855
+ function N(e2) {
856
856
  return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
857
857
  }
858
- var bn = `x-wix-linguist`;
859
- var xn = `00000000-0000-0000-0000-000000000000`;
860
- var Sn = `false`;
861
- var Cn = () => {
862
- let e2 = En(`language`), t2 = En(`locale`);
863
- if (e2) return { [bn]: [e2, t2 || e2, Sn, xn].join(`|`) };
858
+ var vn = `x-wix-linguist`;
859
+ var yn = `00000000-0000-0000-0000-000000000000`;
860
+ var bn = `false`;
861
+ var xn = () => {
862
+ let e2 = wn(`language`), t2 = wn(`locale`);
863
+ if (e2) return { [vn]: [e2, t2 || e2, bn, yn].join(`|`) };
864
864
  };
865
- function wn() {
865
+ function Sn() {
866
866
  let e2 = null, t2 = null;
867
867
  return { promise: new Promise((n2, r2) => {
868
868
  e2 = n2, t2 = r2;
869
869
  }), resolve: e2, reject: t2 };
870
870
  }
871
- var Tn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
872
- var En = (e2) => Tn()?.[e2];
873
- var Dn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
874
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = kn();
875
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: En(`language`), locale: En(`locale`), get passThroughHeaders() {
876
- return Cn();
871
+ var Cn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
872
+ var wn = (e2) => Cn()?.[e2];
873
+ var Tn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
874
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = Dn();
875
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: wn(`language`), locale: wn(`locale`), get passThroughHeaders() {
876
+ return xn();
877
877
  } } };
878
878
  }, auth: (e3) => {
879
879
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
880
- !e3 && On() && (e3 = t2?.getAccessTokenFunction?.());
881
- let n2 = false, { resolve: r2, promise: i2 } = wn();
880
+ !e3 && En() && (e3 = t2?.getAccessTokenFunction?.());
881
+ let n2 = false, { resolve: r2, promise: i2 } = Sn();
882
882
  return { getAuthHeaders: async () => {
883
883
  if (!e3 && n2 && (e3 = await i2), !e3) throw Error(`Failed to resolve auth token`);
884
884
  return { headers: { Authorization: await e3() } };
@@ -886,34 +886,34 @@ var Dn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host:
886
886
  r2(e4);
887
887
  }) };
888
888
  } });
889
- function On() {
889
+ function En() {
890
890
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
891
891
  }
892
- function kn() {
892
+ function Dn() {
893
893
  let e2 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
894
894
  if (!e2) return;
895
895
  let t2 = new URL(e2);
896
896
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
897
897
  }
898
- var An = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
898
+ var On = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
899
899
  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`);
900
900
  return e2.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
901
901
  }, getAccessToken: () => {
902
902
  throw Error(`Not implemented`);
903
903
  }, observeState: () => ({ disconnect: () => {
904
904
  } }) });
905
- var jn = Dn({ createHost: function(e2) {
905
+ var kn = Tn({ createHost: function(e2) {
906
906
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e2?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e2 || {};
907
907
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
908
- return { channel: An({ clientSdk: t2, applicationId: n2 }), close: () => {
908
+ return { channel: On({ clientSdk: t2, applicationId: n2 }), close: () => {
909
909
  } };
910
910
  } });
911
- var Mn = (e2, t2) => {
912
- let n2 = jn.host({ applicationId: e2, componentId: t2 }), r2 = jn.auth();
913
- return rt({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
911
+ var An = (e2, t2) => {
912
+ let n2 = kn.host({ applicationId: e2, componentId: t2 }), r2 = kn.auth();
913
+ return tt({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
914
914
  };
915
- var Nn = (e2) => Mn(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
916
- var Pn = class {
915
+ var jn = (e2) => An(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
916
+ var P = class {
917
917
  constructor() {
918
918
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
919
919
  }
@@ -930,7 +930,7 @@ var Pn = class {
930
930
  onUnsubscribe() {
931
931
  }
932
932
  };
933
- var Fn = new class extends Pn {
933
+ var Mn = new class extends P {
934
934
  #e;
935
935
  #t;
936
936
  #n;
@@ -968,9 +968,9 @@ var Fn = new class extends Pn {
968
968
  return typeof this.#e == `boolean` ? this.#e : globalThis.document?.visibilityState !== `hidden`;
969
969
  }
970
970
  }();
971
- var In = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
972
- var M = new class {
973
- #e = In;
971
+ var Nn = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
972
+ var F = new class {
973
+ #e = Nn;
974
974
  setTimeoutProvider(e2) {
975
975
  this.#e = e2;
976
976
  }
@@ -987,33 +987,33 @@ var M = new class {
987
987
  this.#e.clearInterval(e2);
988
988
  }
989
989
  }();
990
- function Ln(e2) {
990
+ function Pn(e2) {
991
991
  setTimeout(e2, 0);
992
992
  }
993
- var Rn = typeof window > `u` || `Deno` in globalThis;
994
- function N() {
993
+ var Fn = typeof window > `u` || `Deno` in globalThis;
994
+ function I() {
995
995
  }
996
- function zn(e2, t2) {
996
+ function In(e2, t2) {
997
997
  return typeof e2 == `function` ? e2(t2) : e2;
998
998
  }
999
- function Bn(e2) {
999
+ function Ln(e2) {
1000
1000
  return typeof e2 == `number` && e2 >= 0 && e2 !== 1 / 0;
1001
1001
  }
1002
- function Vn(e2, t2) {
1002
+ function Rn(e2, t2) {
1003
1003
  return Math.max(e2 + (t2 || 0) - Date.now(), 0);
1004
1004
  }
1005
- function P(e2, t2) {
1005
+ function L(e2, t2) {
1006
1006
  return typeof e2 == `function` ? e2(t2) : e2;
1007
1007
  }
1008
- function F(e2, t2) {
1008
+ function R(e2, t2) {
1009
1009
  return typeof e2 == `function` ? e2(t2) : e2;
1010
1010
  }
1011
- function Hn(e2, t2) {
1011
+ function zn(e2, t2) {
1012
1012
  let { type: n2 = `all`, exact: r2, fetchStatus: i2, predicate: a2, queryKey: o2, stale: s2 } = e2;
1013
1013
  if (o2) {
1014
1014
  if (r2) {
1015
- if (t2.queryHash !== Wn(o2, t2.options)) return false;
1016
- } else if (!L(t2.queryKey, o2)) return false;
1015
+ if (t2.queryHash !== Vn(o2, t2.options)) return false;
1016
+ } else if (!Un(t2.queryKey, o2)) return false;
1017
1017
  }
1018
1018
  if (n2 !== `all`) {
1019
1019
  let e3 = t2.isActive();
@@ -1021,97 +1021,97 @@ function Hn(e2, t2) {
1021
1021
  }
1022
1022
  return !(typeof s2 == `boolean` && t2.isStale() !== s2 || i2 && i2 !== t2.state.fetchStatus || a2 && !a2(t2));
1023
1023
  }
1024
- function Un(e2, t2) {
1024
+ function Bn(e2, t2) {
1025
1025
  let { exact: n2, status: r2, predicate: i2, mutationKey: a2 } = e2;
1026
1026
  if (a2) {
1027
1027
  if (!t2.options.mutationKey) return false;
1028
1028
  if (n2) {
1029
- if (I(t2.options.mutationKey) !== I(a2)) return false;
1030
- } else if (!L(t2.options.mutationKey, a2)) return false;
1029
+ if (Hn(t2.options.mutationKey) !== Hn(a2)) return false;
1030
+ } else if (!Un(t2.options.mutationKey, a2)) return false;
1031
1031
  }
1032
1032
  return !(r2 && t2.state.status !== r2 || i2 && !i2(t2));
1033
1033
  }
1034
- function Wn(e2, t2) {
1035
- return (t2?.queryKeyHashFn || I)(e2);
1034
+ function Vn(e2, t2) {
1035
+ return (t2?.queryKeyHashFn || Hn)(e2);
1036
1036
  }
1037
- function I(e2) {
1038
- return JSON.stringify(e2, (e3, t2) => Yn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
1037
+ function Hn(e2) {
1038
+ return JSON.stringify(e2, (e3, t2) => Jn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
1039
1039
  }
1040
- function L(e2, t2) {
1041
- 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;
1040
+ function Un(e2, t2) {
1041
+ 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;
1042
1042
  }
1043
- var Gn = Object.prototype.hasOwnProperty;
1044
- function Kn(e2, t2, n2 = 0) {
1043
+ var Wn = Object.prototype.hasOwnProperty;
1044
+ function Gn(e2, t2, n2 = 0) {
1045
1045
  if (e2 === t2) return e2;
1046
1046
  if (n2 > 500) return t2;
1047
- let r2 = Jn(e2) && Jn(t2);
1048
- if (!r2 && !(Yn(e2) && Yn(t2))) return t2;
1047
+ let r2 = qn(e2) && qn(t2);
1048
+ if (!r2 && !(Jn(e2) && Jn(t2))) return t2;
1049
1049
  let i2 = (r2 ? e2 : Object.keys(e2)).length, a2 = r2 ? t2 : Object.keys(t2), o2 = a2.length, s2 = r2 ? Array(o2) : {}, c2 = 0;
1050
1050
  for (let l2 = 0; l2 < o2; l2++) {
1051
1051
  let o3 = r2 ? l2 : a2[l2], u2 = e2[o3], d2 = t2[o3];
1052
1052
  if (u2 === d2) {
1053
- s2[o3] = u2, (r2 ? l2 < i2 : Gn.call(e2, o3)) && c2++;
1053
+ s2[o3] = u2, (r2 ? l2 < i2 : Wn.call(e2, o3)) && c2++;
1054
1054
  continue;
1055
1055
  }
1056
1056
  if (u2 === null || d2 === null || typeof u2 != `object` || typeof d2 != `object`) {
1057
1057
  s2[o3] = d2;
1058
1058
  continue;
1059
1059
  }
1060
- let f2 = Kn(u2, d2, n2 + 1);
1060
+ let f2 = Gn(u2, d2, n2 + 1);
1061
1061
  s2[o3] = f2, f2 === u2 && c2++;
1062
1062
  }
1063
1063
  return i2 === o2 && c2 === i2 ? e2 : s2;
1064
1064
  }
1065
- function qn(e2, t2) {
1065
+ function Kn(e2, t2) {
1066
1066
  if (!t2 || Object.keys(e2).length !== Object.keys(t2).length) return false;
1067
1067
  for (let n2 in e2) if (e2[n2] !== t2[n2]) return false;
1068
1068
  return true;
1069
1069
  }
1070
- function Jn(e2) {
1070
+ function qn(e2) {
1071
1071
  return Array.isArray(e2) && e2.length === Object.keys(e2).length;
1072
1072
  }
1073
- function Yn(e2) {
1074
- if (!Xn(e2)) return false;
1073
+ function Jn(e2) {
1074
+ if (!Yn(e2)) return false;
1075
1075
  let t2 = e2.constructor;
1076
1076
  if (t2 === void 0) return true;
1077
1077
  let n2 = t2.prototype;
1078
- return !(!Xn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
1078
+ return !(!Yn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
1079
1079
  }
1080
- function Xn(e2) {
1080
+ function Yn(e2) {
1081
1081
  return Object.prototype.toString.call(e2) === `[object Object]`;
1082
1082
  }
1083
- function Zn(e2) {
1083
+ function Xn(e2) {
1084
1084
  return new Promise((t2) => {
1085
- M.setTimeout(t2, e2);
1085
+ F.setTimeout(t2, e2);
1086
1086
  });
1087
1087
  }
1088
- function Qn(e2, t2, n2) {
1089
- return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : Kn(e2, t2);
1088
+ function Zn(e2, t2, n2) {
1089
+ return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : Gn(e2, t2);
1090
1090
  }
1091
- function $n(e2) {
1091
+ function Qn(e2) {
1092
1092
  return e2;
1093
1093
  }
1094
- function er(e2, t2, n2 = 0) {
1094
+ function $n(e2, t2, n2 = 0) {
1095
1095
  let r2 = [...e2, t2];
1096
1096
  return n2 && r2.length > n2 ? r2.slice(1) : r2;
1097
1097
  }
1098
- function tr(e2, t2, n2 = 0) {
1098
+ function er(e2, t2, n2 = 0) {
1099
1099
  let r2 = [t2, ...e2];
1100
1100
  return n2 && r2.length > n2 ? r2.slice(0, -1) : r2;
1101
1101
  }
1102
- var nr = Symbol();
1103
- function rr(e2, t2) {
1104
- return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === nr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
1102
+ var tr = Symbol();
1103
+ function nr(e2, t2) {
1104
+ return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === tr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
1105
1105
  }
1106
- function ir(e2, t2) {
1106
+ function rr(e2, t2) {
1107
1107
  return typeof e2 == `function` ? e2(...t2) : !!e2;
1108
1108
  }
1109
- function ar(e2, t2, n2) {
1109
+ function ir(e2, t2, n2) {
1110
1110
  let r2 = false, i2;
1111
1111
  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;
1112
1112
  }
1113
- var R = /* @__PURE__ */ (() => {
1114
- let e2 = () => Rn;
1113
+ var ar = /* @__PURE__ */ (() => {
1114
+ let e2 = () => Fn;
1115
1115
  return { isServer() {
1116
1116
  return e2();
1117
1117
  }, setIsServer(t2) {
@@ -1133,7 +1133,7 @@ function or() {
1133
1133
  r2({ status: `rejected`, reason: e3 }), t2(e3);
1134
1134
  }, n2;
1135
1135
  }
1136
- var sr = Ln;
1136
+ var sr = Pn;
1137
1137
  function cr() {
1138
1138
  let e2 = [], t2 = 0, n2 = (e3) => {
1139
1139
  e3();
@@ -1175,7 +1175,7 @@ function cr() {
1175
1175
  } };
1176
1176
  }
1177
1177
  var z = cr();
1178
- var lr = new class extends Pn {
1178
+ var lr = new class extends P {
1179
1179
  #e = true;
1180
1180
  #t;
1181
1181
  #n;
@@ -1228,7 +1228,7 @@ function pr(e2) {
1228
1228
  t2 = true;
1229
1229
  }, c2 = () => {
1230
1230
  t2 = false;
1231
- }, l2 = () => Fn.isFocused() && (e2.networkMode === `always` || lr.isOnline()) && e2.canRun(), u2 = () => dr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
1231
+ }, l2 = () => Mn.isFocused() && (e2.networkMode === `always` || lr.isOnline()) && e2.canRun(), u2 = () => dr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
1232
1232
  a2() || (r2?.(), i2.resolve(e3));
1233
1233
  }, f2 = (e3) => {
1234
1234
  a2() || (r2?.(), i2.reject(e3));
@@ -1248,12 +1248,12 @@ function pr(e2) {
1248
1248
  }
1249
1249
  Promise.resolve(r3).then(d2).catch((r4) => {
1250
1250
  if (a2()) return;
1251
- 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);
1251
+ 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);
1252
1252
  if (t2 || !c3) {
1253
1253
  f2(r4);
1254
1254
  return;
1255
1255
  }
1256
- n2++, e2.onFail?.(n2, r4), Zn(s3).then(() => l2() ? void 0 : p2()).then(() => {
1256
+ n2++, e2.onFail?.(n2, r4), Xn(s3).then(() => l2() ? void 0 : p2()).then(() => {
1257
1257
  t2 ? f2(r4) : m2();
1258
1258
  });
1259
1259
  });
@@ -1266,29 +1266,29 @@ var mr = class {
1266
1266
  this.clearGcTimeout();
1267
1267
  }
1268
1268
  scheduleGc() {
1269
- this.clearGcTimeout(), Bn(this.gcTime) && (this.#e = M.setTimeout(() => {
1269
+ this.clearGcTimeout(), Ln(this.gcTime) && (this.#e = F.setTimeout(() => {
1270
1270
  this.optionalRemove();
1271
1271
  }, this.gcTime));
1272
1272
  }
1273
1273
  updateGcTime(e2) {
1274
- this.gcTime = Math.max(this.gcTime || 0, e2 ?? (R.isServer() ? 1 / 0 : 3e5));
1274
+ this.gcTime = Math.max(this.gcTime || 0, e2 ?? (ar.isServer() ? 1 / 0 : 3e5));
1275
1275
  }
1276
1276
  clearGcTimeout() {
1277
- this.#e !== void 0 && (M.clearTimeout(this.#e), this.#e = void 0);
1277
+ this.#e !== void 0 && (F.clearTimeout(this.#e), this.#e = void 0);
1278
1278
  }
1279
1279
  };
1280
1280
  function hr(e2) {
1281
1281
  return { onFetch: (t2, n2) => {
1282
1282
  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 () => {
1283
1283
  let n3 = false, l3 = (e3) => {
1284
- ar(e3, () => t2.signal, () => n3 = true);
1285
- }, u2 = rr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
1284
+ ir(e3, () => t2.signal, () => n3 = true);
1285
+ }, u2 = nr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
1286
1286
  if (n3) return Promise.reject(t2.signal.reason);
1287
1287
  if (r3 == null && e3.pages.length) return Promise.resolve(e3);
1288
1288
  let a3 = (() => {
1289
1289
  let e4 = { client: t2.client, queryKey: t2.queryKey, pageParam: r3, direction: i3 ? `backward` : `forward`, meta: t2.options.meta };
1290
1290
  return l3(e4), e4;
1291
- })(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? tr : er;
1291
+ })(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? er : $n;
1292
1292
  return { pages: c3(e3.pages, o3, s3), pageParams: c3(e3.pageParams, r3, s3) };
1293
1293
  };
1294
1294
  if (i2 && a2.length) {
@@ -1351,7 +1351,7 @@ var br = class extends mr {
1351
1351
  !this.observers.length && this.state.fetchStatus === `idle` && this.#r.remove(this);
1352
1352
  }
1353
1353
  setData(e2, t2) {
1354
- let n2 = Qn(this.state.data, e2, this.options);
1354
+ let n2 = Zn(this.state.data, e2, this.options);
1355
1355
  return this.#l({ data: n2, type: `success`, dataUpdatedAt: t2?.updatedAt, manual: t2?.manual }), n2;
1356
1356
  }
1357
1357
  setState(e2) {
@@ -1359,7 +1359,7 @@ var br = class extends mr {
1359
1359
  }
1360
1360
  cancel(e2) {
1361
1361
  let t2 = this.#a?.promise;
1362
- return this.#a?.cancel(e2), t2 ? t2.then(N).catch(N) : Promise.resolve();
1362
+ return this.#a?.cancel(e2), t2 ? t2.then(I).catch(I) : Promise.resolve();
1363
1363
  }
1364
1364
  destroy() {
1365
1365
  super.destroy(), this.cancel({ silent: true });
@@ -1371,22 +1371,22 @@ var br = class extends mr {
1371
1371
  this.destroy(), this.setState(this.resetState);
1372
1372
  }
1373
1373
  isActive() {
1374
- return this.observers.some((e2) => F(e2.options.enabled, this) !== false);
1374
+ return this.observers.some((e2) => R(e2.options.enabled, this) !== false);
1375
1375
  }
1376
1376
  isDisabled() {
1377
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === nr || !this.isFetched();
1377
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === tr || !this.isFetched();
1378
1378
  }
1379
1379
  isFetched() {
1380
1380
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
1381
1381
  }
1382
1382
  isStatic() {
1383
- return this.getObserversCount() > 0 && this.observers.some((e2) => P(e2.options.staleTime, this) === `static`);
1383
+ return this.getObserversCount() > 0 && this.observers.some((e2) => L(e2.options.staleTime, this) === `static`);
1384
1384
  }
1385
1385
  isStale() {
1386
1386
  return this.getObserversCount() > 0 ? this.observers.some((e2) => e2.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
1387
1387
  }
1388
1388
  isStaleByTime(e2 = 0) {
1389
- return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !Vn(this.state.dataUpdatedAt, e2);
1389
+ return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !Rn(this.state.dataUpdatedAt, e2);
1390
1390
  }
1391
1391
  onFocus() {
1392
1392
  this.observers.find((e2) => e2.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false }), this.#a?.continue();
@@ -1421,7 +1421,7 @@ var br = class extends mr {
1421
1421
  let n2 = new AbortController(), r2 = (e3) => {
1422
1422
  Object.defineProperty(e3, "signal", { enumerable: true, get: () => (this.#s = true, n2.signal) });
1423
1423
  }, i2 = () => {
1424
- let e3 = rr(this.options, t2), n3 = (() => {
1424
+ let e3 = nr(this.options, t2), n3 = (() => {
1425
1425
  let e4 = { client: this.#i, queryKey: this.queryKey, meta: this.meta };
1426
1426
  return r2(e4), e4;
1427
1427
  })();
@@ -1496,7 +1496,7 @@ function Cr(e2) {
1496
1496
  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;
1497
1497
  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` };
1498
1498
  }
1499
- var wr = class extends Pn {
1499
+ var wr = class extends P {
1500
1500
  constructor(e2, t2) {
1501
1501
  super(), this.options = t2, this.#e = e2, this.#s = null, this.#o = or(), this.bindMethods(), this.setOptions(t2);
1502
1502
  }
@@ -1535,12 +1535,12 @@ var wr = class extends Pn {
1535
1535
  }
1536
1536
  setOptions(e2) {
1537
1537
  let t2 = this.options, n2 = this.#t;
1538
- 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`);
1539
- this.#S(), this.#t.setOptions(this.options), t2._defaulted && !qn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
1538
+ 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`);
1539
+ this.#S(), this.#t.setOptions(this.options), t2._defaulted && !Kn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
1540
1540
  let r2 = this.hasListeners();
1541
- 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();
1541
+ 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();
1542
1542
  let i2 = this.#_();
1543
- r2 && (this.#t !== n2 || F(this.options.enabled, this.#t) !== F(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
1543
+ r2 && (this.#t !== n2 || R(this.options.enabled, this.#t) !== R(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
1544
1544
  }
1545
1545
  getOptimisticResult(e2) {
1546
1546
  let t2 = this.#e.getQueryCache().build(this.#e, e2), n2 = this.createResult(t2, e2);
@@ -1571,14 +1571,14 @@ var wr = class extends Pn {
1571
1571
  #h(e2) {
1572
1572
  this.#S();
1573
1573
  let t2 = this.#t.fetch(this.options, e2);
1574
- return e2?.throwOnError || (t2 = t2.catch(N)), t2;
1574
+ return e2?.throwOnError || (t2 = t2.catch(I)), t2;
1575
1575
  }
1576
1576
  #g() {
1577
1577
  this.#b();
1578
- let e2 = P(this.options.staleTime, this.#t);
1579
- if (R.isServer() || this.#r.isStale || !Bn(e2)) return;
1580
- let t2 = Vn(this.#r.dataUpdatedAt, e2) + 1;
1581
- this.#d = M.setTimeout(() => {
1578
+ let e2 = L(this.options.staleTime, this.#t);
1579
+ if (ar.isServer() || this.#r.isStale || !Ln(e2)) return;
1580
+ let t2 = Rn(this.#r.dataUpdatedAt, e2) + 1;
1581
+ this.#d = F.setTimeout(() => {
1582
1582
  this.#r.isStale || this.updateResult();
1583
1583
  }, t2);
1584
1584
  }
@@ -1586,18 +1586,18 @@ var wr = class extends Pn {
1586
1586
  return (typeof this.options.refetchInterval == `function` ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? false;
1587
1587
  }
1588
1588
  #v(e2) {
1589
- this.#x(), this.#p = e2, !R.isServer() && F(this.options.enabled, this.#t) !== false && Bn(this.#p) && this.#p !== 0 && (this.#f = M.setInterval(() => {
1590
- (this.options.refetchIntervalInBackground || Fn.isFocused()) && this.#h();
1589
+ this.#x(), this.#p = e2, !ar.isServer() && R(this.options.enabled, this.#t) !== false && Ln(this.#p) && this.#p !== 0 && (this.#f = F.setInterval(() => {
1590
+ (this.options.refetchIntervalInBackground || Mn.isFocused()) && this.#h();
1591
1591
  }, this.#p));
1592
1592
  }
1593
1593
  #y() {
1594
1594
  this.#g(), this.#v(this.#_());
1595
1595
  }
1596
1596
  #b() {
1597
- this.#d !== void 0 && (M.clearTimeout(this.#d), this.#d = void 0);
1597
+ this.#d !== void 0 && (F.clearTimeout(this.#d), this.#d = void 0);
1598
1598
  }
1599
1599
  #x() {
1600
- this.#f !== void 0 && (M.clearInterval(this.#f), this.#f = void 0);
1600
+ this.#f !== void 0 && (F.clearInterval(this.#f), this.#f = void 0);
1601
1601
  }
1602
1602
  createResult(e2, t2) {
1603
1603
  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;
@@ -1607,26 +1607,26 @@ var wr = class extends Pn {
1607
1607
  }
1608
1608
  let { error: f2, errorUpdatedAt: p2, status: m2 } = l2;
1609
1609
  d2 = l2.data;
1610
- let ee2 = false;
1610
+ let h2 = false;
1611
1611
  if (t2.placeholderData !== void 0 && d2 === void 0 && m2 === `pending`) {
1612
1612
  let e3;
1613
- 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);
1613
+ 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);
1614
1614
  }
1615
- if (t2.select && d2 !== void 0 && !ee2) {
1615
+ if (t2.select && d2 !== void 0 && !h2) {
1616
1616
  if (i2 && d2 === a2?.data && t2.select === this.#c) d2 = this.#l;
1617
1617
  else try {
1618
- this.#c = t2.select, d2 = t2.select(d2), d2 = Qn(i2?.data, d2, t2), this.#l = d2, this.#s = null;
1618
+ this.#c = t2.select, d2 = t2.select(d2), d2 = Zn(i2?.data, d2, t2), this.#l = d2, this.#s = null;
1619
1619
  } catch (e3) {
1620
1620
  this.#s = e3;
1621
1621
  }
1622
1622
  }
1623
1623
  this.#s && (f2 = this.#s, d2 = this.#l, p2 = Date.now(), m2 = `error`);
1624
- 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 };
1624
+ 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 };
1625
1625
  if (this.options.experimental_prefetchInRender) {
1626
- let t3 = _2.data !== void 0, r3 = _2.status === `error` && !t3, i3 = (e3) => {
1627
- r3 ? e3.reject(_2.error) : t3 && e3.resolve(_2.data);
1626
+ let t3 = y2.data !== void 0, r3 = y2.status === `error` && !t3, i3 = (e3) => {
1627
+ r3 ? e3.reject(y2.error) : t3 && e3.resolve(y2.data);
1628
1628
  }, a3 = () => {
1629
- let e3 = this.#o = _2.promise = or();
1629
+ let e3 = this.#o = y2.promise = or();
1630
1630
  i3(e3);
1631
1631
  }, o3 = this.#o;
1632
1632
  switch (o3.status) {
@@ -1634,17 +1634,17 @@ var wr = class extends Pn {
1634
1634
  e2.queryHash === n2.queryHash && i3(o3);
1635
1635
  break;
1636
1636
  case `fulfilled`:
1637
- (r3 || _2.data !== o3.value) && a3();
1637
+ (r3 || y2.data !== o3.value) && a3();
1638
1638
  break;
1639
1639
  case `rejected`:
1640
- (!r3 || _2.error !== o3.reason) && a3();
1640
+ (!r3 || y2.error !== o3.reason) && a3();
1641
1641
  }
1642
1642
  }
1643
- return _2;
1643
+ return y2;
1644
1644
  }
1645
1645
  updateResult() {
1646
1646
  let e2 = this.#r, t2 = this.createResult(this.#t, this.options);
1647
- 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: (() => {
1647
+ 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: (() => {
1648
1648
  if (!e2) return true;
1649
1649
  let { notifyOnChangeProps: t3 } = this.options, n2 = typeof t3 == `function` ? t3() : t3;
1650
1650
  if (n2 === `all` || !n2 && !this.#m.size) return true;
@@ -1673,26 +1673,26 @@ var wr = class extends Pn {
1673
1673
  }
1674
1674
  };
1675
1675
  function Tr(e2, t2) {
1676
- return F(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || F(t2.retryOnMount, e2) !== false);
1676
+ return R(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || R(t2.retryOnMount, e2) !== false);
1677
1677
  }
1678
1678
  function Er(e2, t2) {
1679
1679
  return Tr(e2, t2) || e2.state.data !== void 0 && Dr(e2, t2, t2.refetchOnMount);
1680
1680
  }
1681
1681
  function Dr(e2, t2, n2) {
1682
- if (F(t2.enabled, e2) !== false && P(t2.staleTime, e2) !== `static`) {
1682
+ if (R(t2.enabled, e2) !== false && L(t2.staleTime, e2) !== `static`) {
1683
1683
  let r2 = typeof n2 == `function` ? n2(e2) : n2;
1684
1684
  return r2 === `always` || r2 !== false && kr(e2, t2);
1685
1685
  }
1686
1686
  return false;
1687
1687
  }
1688
1688
  function Or(e2, t2, n2, r2) {
1689
- return (e2 !== t2 || F(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && kr(e2, n2);
1689
+ return (e2 !== t2 || R(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && kr(e2, n2);
1690
1690
  }
1691
1691
  function kr(e2, t2) {
1692
- return F(t2.enabled, e2) !== false && e2.isStaleByTime(P(t2.staleTime, e2));
1692
+ return R(t2.enabled, e2) !== false && e2.isStaleByTime(L(t2.staleTime, e2));
1693
1693
  }
1694
1694
  function Ar(e2, t2) {
1695
- return !qn(e2.getCurrentResult(), t2);
1695
+ return !Kn(e2.getCurrentResult(), t2);
1696
1696
  }
1697
1697
  var jr = class extends wr {
1698
1698
  constructor(e2, t2) {
@@ -1816,7 +1816,7 @@ var Mr = class extends mr {
1816
1816
  function Nr() {
1817
1817
  return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: false, status: `idle`, variables: void 0, submittedAt: 0 };
1818
1818
  }
1819
- var Pr = class extends Pn {
1819
+ var Pr = class extends P {
1820
1820
  constructor(e2 = {}) {
1821
1821
  super(), this.config = e2, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
1822
1822
  }
@@ -1875,10 +1875,10 @@ var Pr = class extends Pn {
1875
1875
  }
1876
1876
  find(e2) {
1877
1877
  let t2 = { exact: true, ...e2 };
1878
- return this.getAll().find((e3) => Un(t2, e3));
1878
+ return this.getAll().find((e3) => Bn(t2, e3));
1879
1879
  }
1880
1880
  findAll(e2 = {}) {
1881
- return this.getAll().filter((t2) => Un(e2, t2));
1881
+ return this.getAll().filter((t2) => Bn(e2, t2));
1882
1882
  }
1883
1883
  notify(e2) {
1884
1884
  z.batch(() => {
@@ -1889,19 +1889,135 @@ var Pr = class extends Pn {
1889
1889
  }
1890
1890
  resumePausedMutations() {
1891
1891
  let e2 = this.getAll().filter((e3) => e3.state.isPaused);
1892
- return z.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(N))));
1892
+ return z.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(I))));
1893
1893
  }
1894
1894
  };
1895
1895
  function Fr(e2) {
1896
1896
  return e2.options.scope?.id;
1897
1897
  }
1898
- var Ir = class extends Pn {
1898
+ function Ir(e2, t2) {
1899
+ let n2 = new Set(t2);
1900
+ return e2.filter((e3) => !n2.has(e3));
1901
+ }
1902
+ function Lr(e2, t2, n2) {
1903
+ let r2 = e2.slice(0);
1904
+ return r2[t2] = n2, r2;
1905
+ }
1906
+ var Rr = class extends P {
1907
+ #e;
1908
+ #t;
1909
+ #n;
1910
+ #r;
1911
+ #i;
1912
+ #a;
1913
+ #o;
1914
+ #s;
1915
+ #c;
1916
+ #l = [];
1917
+ constructor(e2, t2, n2) {
1918
+ super(), this.#e = e2, this.#r = n2, this.#n = [], this.#i = [], this.#t = [], this.setQueries(t2);
1919
+ }
1920
+ onSubscribe() {
1921
+ this.listeners.size === 1 && this.#i.forEach((e2) => {
1922
+ e2.subscribe((t2) => {
1923
+ this.#m(e2, t2);
1924
+ });
1925
+ });
1926
+ }
1927
+ onUnsubscribe() {
1928
+ this.listeners.size || this.destroy();
1929
+ }
1930
+ destroy() {
1931
+ this.listeners = /* @__PURE__ */ new Set(), this.#i.forEach((e2) => {
1932
+ e2.destroy();
1933
+ });
1934
+ }
1935
+ setQueries(e2, t2) {
1936
+ this.#n = e2, this.#r = t2, z.batch(() => {
1937
+ let e3 = this.#i, t3 = this.#p(this.#n);
1938
+ t3.forEach((e4) => e4.observer.setOptions(e4.defaultedQueryOptions));
1939
+ 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) => {
1940
+ let n3 = this.#t[t4];
1941
+ return !n3 || !Kn(e4, n3);
1942
+ });
1943
+ (o2 || s2) && (o2 && (this.#l = t3, this.#i = n2), this.#t = r2, this.hasListeners() && (o2 && (Ir(e3, n2).forEach((e4) => {
1944
+ e4.destroy();
1945
+ }), Ir(n2, e3).forEach((e4) => {
1946
+ e4.subscribe((t4) => {
1947
+ this.#m(e4, t4);
1948
+ });
1949
+ })), this.#h()));
1950
+ });
1951
+ }
1952
+ getCurrentResult() {
1953
+ return this.#t;
1954
+ }
1955
+ getQueries() {
1956
+ return this.#i.map((e2) => e2.getCurrentQuery());
1957
+ }
1958
+ getObservers() {
1959
+ return this.#i;
1960
+ }
1961
+ getOptimisticResult(e2, t2) {
1962
+ let n2 = this.#p(e2), r2 = n2.map((e3) => e3.observer.getOptimisticResult(e3.defaultedQueryOptions)), i2 = n2.map((e3) => e3.defaultedQueryOptions.queryHash);
1963
+ return [r2, (e3) => this.#d(e3 ?? r2, t2, i2), () => this.#u(r2, n2)];
1964
+ }
1965
+ #u(e2, t2) {
1966
+ return t2.map((n2, r2) => {
1967
+ let i2 = e2[r2];
1968
+ return n2.defaultedQueryOptions.notifyOnChangeProps ? i2 : n2.observer.trackResult(i2, (e3) => {
1969
+ t2.forEach((t3) => {
1970
+ t3.observer.trackProp(e3);
1971
+ });
1972
+ });
1973
+ });
1974
+ }
1975
+ #d(e2, t2, n2) {
1976
+ if (t2) {
1977
+ let r2 = this.#c, i2 = n2 !== void 0 && r2 !== void 0 && (r2.length !== n2.length || n2.some((e3, t3) => e3 !== r2[t3]));
1978
+ 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;
1979
+ }
1980
+ return e2;
1981
+ }
1982
+ #f() {
1983
+ return this.#r?.combine !== void 0 && this.#i.some((e2, t2) => e2.options.suspense && this.#t[t2]?.data === void 0);
1984
+ }
1985
+ #p(e2) {
1986
+ let t2 = /* @__PURE__ */ new Map();
1987
+ this.#i.forEach((e3) => {
1988
+ let n3 = e3.options.queryHash;
1989
+ if (!n3) return;
1990
+ let r2 = t2.get(n3);
1991
+ r2 ? r2.push(e3) : t2.set(n3, [e3]);
1992
+ });
1993
+ let n2 = [];
1994
+ return e2.forEach((e3) => {
1995
+ let r2 = this.#e.defaultQueryOptions(e3), i2 = t2.get(r2.queryHash)?.shift() ?? new wr(this.#e, r2);
1996
+ n2.push({ defaultedQueryOptions: r2, observer: i2 });
1997
+ }), n2;
1998
+ }
1999
+ #m(e2, t2) {
2000
+ let n2 = this.#i.indexOf(e2);
2001
+ n2 !== -1 && (this.#t = Lr(this.#t, n2, t2), this.#h());
2002
+ }
2003
+ #h() {
2004
+ if (this.hasListeners()) {
2005
+ let e2 = this.#u(this.#t, this.#l), t2 = this.#f(), n2 = this.#a, r2 = t2 ? n2 : this.#d(e2, this.#r?.combine);
2006
+ (t2 || n2 !== r2) && z.batch(() => {
2007
+ this.listeners.forEach((e3) => {
2008
+ e3(this.#t);
2009
+ });
2010
+ });
2011
+ }
2012
+ }
2013
+ };
2014
+ var zr = class extends P {
1899
2015
  constructor(e2 = {}) {
1900
2016
  super(), this.config = e2, this.#e = /* @__PURE__ */ new Map();
1901
2017
  }
1902
2018
  #e;
1903
2019
  build(e2, t2, n2) {
1904
- let r2 = t2.queryKey, i2 = t2.queryHash ?? Wn(r2, t2), a2 = this.get(i2);
2020
+ let r2 = t2.queryKey, i2 = t2.queryHash ?? Vn(r2, t2), a2 = this.get(i2);
1905
2021
  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;
1906
2022
  }
1907
2023
  add(e2) {
@@ -1926,11 +2042,11 @@ var Ir = class extends Pn {
1926
2042
  }
1927
2043
  find(e2) {
1928
2044
  let t2 = { exact: true, ...e2 };
1929
- return this.getAll().find((e3) => Hn(t2, e3));
2045
+ return this.getAll().find((e3) => zn(t2, e3));
1930
2046
  }
1931
2047
  findAll(e2 = {}) {
1932
2048
  let t2 = this.getAll();
1933
- return Object.keys(e2).length > 0 ? t2.filter((t3) => Hn(e2, t3)) : t2;
2049
+ return Object.keys(e2).length > 0 ? t2.filter((t3) => zn(e2, t3)) : t2;
1934
2050
  }
1935
2051
  notify(e2) {
1936
2052
  z.batch(() => {
@@ -1954,7 +2070,7 @@ var Ir = class extends Pn {
1954
2070
  });
1955
2071
  }
1956
2072
  };
1957
- var Lr = class {
2073
+ var Br = class {
1958
2074
  #e;
1959
2075
  #t;
1960
2076
  #n;
@@ -1964,10 +2080,10 @@ var Lr = class {
1964
2080
  #o;
1965
2081
  #s;
1966
2082
  constructor(e2 = {}) {
1967
- 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;
2083
+ 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;
1968
2084
  }
1969
2085
  mount() {
1970
- this.#a++, this.#a === 1 && (this.#o = Fn.subscribe(async (e2) => {
2086
+ this.#a++, this.#a === 1 && (this.#o = Mn.subscribe(async (e2) => {
1971
2087
  e2 && (await this.resumePausedMutations(), this.#e.onFocus());
1972
2088
  }), this.#s = lr.subscribe(async (e2) => {
1973
2089
  e2 && (await this.resumePausedMutations(), this.#e.onOnline());
@@ -1988,13 +2104,13 @@ var Lr = class {
1988
2104
  }
1989
2105
  ensureQueryData(e2) {
1990
2106
  let t2 = this.defaultQueryOptions(e2), n2 = this.#e.build(this, t2), r2 = n2.state.data;
1991
- return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(P(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
2107
+ return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(L(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
1992
2108
  }
1993
2109
  getQueriesData(e2) {
1994
2110
  return this.#e.findAll(e2).map(({ queryKey: e3, state: t2 }) => [e3, t2.data]);
1995
2111
  }
1996
2112
  setQueryData(e2, t2, n2) {
1997
- let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = zn(t2, i2);
2113
+ let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = In(t2, i2);
1998
2114
  if (a2 !== void 0) return this.#e.build(this, r2).setData(a2, { ...n2, manual: true });
1999
2115
  }
2000
2116
  setQueriesData(e2, t2, n2) {
@@ -2020,7 +2136,7 @@ var Lr = class {
2020
2136
  }
2021
2137
  cancelQueries(e2, t2 = {}) {
2022
2138
  let n2 = { revert: true, ...t2 }, r2 = z.batch(() => this.#e.findAll(e2).map((e3) => e3.cancel(n2)));
2023
- return Promise.all(r2).then(N).catch(N);
2139
+ return Promise.all(r2).then(I).catch(I);
2024
2140
  }
2025
2141
  invalidateQueries(e2, t2 = {}) {
2026
2142
  return z.batch(() => (this.#e.findAll(e2).forEach((e3) => {
@@ -2030,24 +2146,24 @@ var Lr = class {
2030
2146
  refetchQueries(e2, t2 = {}) {
2031
2147
  let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 = z.batch(() => this.#e.findAll(e2).filter((e3) => !e3.isDisabled() && !e3.isStatic()).map((e3) => {
2032
2148
  let t3 = e3.fetch(void 0, n2);
2033
- return n2.throwOnError || (t3 = t3.catch(N)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
2149
+ return n2.throwOnError || (t3 = t3.catch(I)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
2034
2150
  }));
2035
- return Promise.all(r2).then(N);
2151
+ return Promise.all(r2).then(I);
2036
2152
  }
2037
2153
  fetchQuery(e2) {
2038
2154
  let t2 = this.defaultQueryOptions(e2);
2039
2155
  t2.retry === void 0 && (t2.retry = false);
2040
2156
  let n2 = this.#e.build(this, t2);
2041
- return n2.isStaleByTime(P(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
2157
+ return n2.isStaleByTime(L(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
2042
2158
  }
2043
2159
  prefetchQuery(e2) {
2044
- return this.fetchQuery(e2).then(N).catch(N);
2160
+ return this.fetchQuery(e2).then(I).catch(I);
2045
2161
  }
2046
2162
  fetchInfiniteQuery(e2) {
2047
2163
  return e2._type = `infinite`, this.fetchQuery(e2);
2048
2164
  }
2049
2165
  prefetchInfiniteQuery(e2) {
2050
- return this.fetchInfiniteQuery(e2).then(N).catch(N);
2166
+ return this.fetchInfiniteQuery(e2).then(I).catch(I);
2051
2167
  }
2052
2168
  ensureInfiniteQueryData(e2) {
2053
2169
  return e2._type = `infinite`, this.ensureQueryData(e2);
@@ -2068,27 +2184,27 @@ var Lr = class {
2068
2184
  this.#n = e2;
2069
2185
  }
2070
2186
  setQueryDefaults(e2, t2) {
2071
- this.#r.set(I(e2), { queryKey: e2, defaultOptions: t2 });
2187
+ this.#r.set(Hn(e2), { queryKey: e2, defaultOptions: t2 });
2072
2188
  }
2073
2189
  getQueryDefaults(e2) {
2074
2190
  let t2 = [...this.#r.values()], n2 = {};
2075
2191
  return t2.forEach((t3) => {
2076
- L(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
2192
+ Un(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
2077
2193
  }), n2;
2078
2194
  }
2079
2195
  setMutationDefaults(e2, t2) {
2080
- this.#i.set(I(e2), { mutationKey: e2, defaultOptions: t2 });
2196
+ this.#i.set(Hn(e2), { mutationKey: e2, defaultOptions: t2 });
2081
2197
  }
2082
2198
  getMutationDefaults(e2) {
2083
2199
  let t2 = [...this.#i.values()], n2 = {};
2084
2200
  return t2.forEach((t3) => {
2085
- L(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
2201
+ Un(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
2086
2202
  }), n2;
2087
2203
  }
2088
2204
  defaultQueryOptions(e2) {
2089
2205
  if (e2._defaulted) return e2;
2090
2206
  let t2 = { ...this.#n.queries, ...this.getQueryDefaults(e2.queryKey), ...e2, _defaulted: true };
2091
- 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;
2207
+ 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;
2092
2208
  }
2093
2209
  defaultMutationOptions(e2) {
2094
2210
  return e2?._defaulted ? e2 : { ...this.#n.mutations, ...e2?.mutationKey && this.getMutationDefaults(e2.mutationKey), ...e2, _defaulted: true };
@@ -2097,20 +2213,20 @@ var Lr = class {
2097
2213
  this.#e.clear(), this.#t.clear();
2098
2214
  }
2099
2215
  };
2100
- var Rr = e.createContext(void 0);
2101
- var zr = (t2) => {
2102
- let n2 = e.useContext(Rr);
2216
+ var Vr = e.createContext(void 0);
2217
+ var Hr = (t2) => {
2218
+ let n2 = e.useContext(Vr);
2103
2219
  if (t2) return t2;
2104
2220
  if (!n2) throw Error(`No QueryClient set, use QueryClientProvider to set one`);
2105
2221
  return n2;
2106
2222
  };
2107
- var Br = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
2223
+ var Ur = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
2108
2224
  t2.unmount();
2109
- }), [t2]), (0, import_jsx_runtime.jsx)(Rr.Provider, { value: t2, children: n2 }));
2110
- var Vr = e.createContext(false);
2111
- var Hr = () => e.useContext(Vr);
2112
- Vr.Provider;
2113
- function Ur() {
2225
+ }), [t2]), (0, import_jsx_runtime.jsx)(Vr.Provider, { value: t2, children: n2 }));
2226
+ var Wr = e.createContext(false);
2227
+ var Gr = () => e.useContext(Wr);
2228
+ Wr.Provider;
2229
+ function Kr() {
2114
2230
  let e2 = false;
2115
2231
  return { clearReset: () => {
2116
2232
  e2 = false;
@@ -2118,61 +2234,87 @@ function Ur() {
2118
2234
  e2 = true;
2119
2235
  }, isReset: () => e2 };
2120
2236
  }
2121
- var Wr = e.createContext(Ur());
2122
- var Gr = () => e.useContext(Wr);
2123
- var Kr = (e2, t2, n2) => {
2124
- let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? ir(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
2237
+ var qr = e.createContext(Kr());
2238
+ var Jr = () => e.useContext(qr);
2239
+ var Yr = (e2, t2, n2) => {
2240
+ let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? rr(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
2125
2241
  (e2.suspense || e2.experimental_prefetchInRender || r2) && (t2.isReset() || (e2.retryOnMount = false));
2126
2242
  };
2127
- var qr = (t2) => {
2243
+ var Xr = (t2) => {
2128
2244
  e.useEffect(() => {
2129
2245
  t2.clearReset();
2130
2246
  }, [t2]);
2131
2247
  };
2132
- 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]));
2133
- var Yr = (e2) => {
2248
+ 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]));
2249
+ var Qr = (e2) => {
2134
2250
  if (e2.suspense) {
2135
2251
  let t2 = 1e3, n2 = (e3) => e3 === `static` ? e3 : Math.max(e3 ?? t2, t2), r2 = e2.staleTime;
2136
2252
  e2.staleTime = typeof r2 == `function` ? (...e3) => n2(r2(...e3)) : n2(r2), typeof e2.gcTime == `number` && (e2.gcTime = Math.max(e2.gcTime, t2));
2137
2253
  }
2138
2254
  };
2139
- var Xr = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
2140
- var Zr = (e2, t2) => e2?.suspense && t2.isPending;
2141
- var Qr = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
2255
+ var $r = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
2256
+ var ei = (e2, t2) => e2?.suspense && t2.isPending;
2257
+ var ti = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
2142
2258
  n2.clearReset();
2143
2259
  });
2144
- function $r(t2, n2, r2) {
2145
- let i2 = Hr(), a2 = Gr(), o2 = zr(r2), s2 = o2.defaultQueryOptions(t2);
2260
+ function ni({ queries: t2, ...n2 }, r2) {
2261
+ let i2 = Hr(r2), a2 = Gr(), o2 = Jr(), s2 = e.useMemo(() => t2.map((e2) => {
2262
+ let t3 = i2.defaultQueryOptions(e2);
2263
+ return t3._optimisticResults = a2 ? `isRestoring` : `optimistic`, t3;
2264
+ }), [t2, i2, a2]);
2265
+ s2.forEach((e2) => {
2266
+ Qr(e2);
2267
+ let t3 = i2.getQueryCache().get(e2.queryHash);
2268
+ Yr(e2, o2, t3);
2269
+ }), Xr(o2);
2270
+ let [c2] = e.useState(() => new Rr(i2, s2, n2)), [l2, u2, d2] = c2.getOptimisticResult(s2, n2.combine), f2 = !a2 && n2.subscribed !== false;
2271
+ e.useSyncExternalStore(e.useCallback((e2) => f2 ? c2.subscribe(z.batchCalls(e2)) : I, [c2, f2]), () => c2.getCurrentResult(), () => c2.getCurrentResult()), e.useEffect(() => {
2272
+ c2.setQueries(s2, n2);
2273
+ }, [s2, n2, c2]);
2274
+ let p2 = l2.some((e2, t3) => ei(s2[t3], e2)) ? l2.flatMap((e2, t3) => {
2275
+ let n3 = s2[t3];
2276
+ return n3 && ei(n3, e2) ? ti(n3, new wr(i2, n3), o2) : [];
2277
+ }) : [];
2278
+ if (p2.length > 0) throw Promise.all(p2);
2279
+ let m2 = l2.find((e2, t3) => {
2280
+ let n3 = s2[t3];
2281
+ return n3 && Zr({ result: e2, errorResetBoundary: o2, throwOnError: n3.throwOnError, query: i2.getQueryCache().get(n3.queryHash), suspense: n3.suspense });
2282
+ });
2283
+ if (m2?.error) throw m2.error;
2284
+ return u2(d2());
2285
+ }
2286
+ function ri(t2, n2, r2) {
2287
+ let i2 = Gr(), a2 = Jr(), o2 = Hr(r2), s2 = o2.defaultQueryOptions(t2);
2146
2288
  o2.getDefaultOptions().queries?._experimental_beforeQuery?.(s2);
2147
2289
  let c2 = o2.getQueryCache().get(s2.queryHash), l2 = t2.subscribed !== false;
2148
- s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, Yr(s2), Kr(s2, a2, c2), qr(a2);
2290
+ s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, Qr(s2), Yr(s2, a2, c2), Xr(a2);
2149
2291
  let u2 = !o2.getQueryCache().get(s2.queryHash), [d2] = e.useState(() => new n2(o2, s2)), f2 = d2.getOptimisticResult(s2), p2 = !i2 && l2;
2150
2292
  if (e.useSyncExternalStore(e.useCallback((e2) => {
2151
- let t3 = p2 ? d2.subscribe(z.batchCalls(e2)) : N;
2293
+ let t3 = p2 ? d2.subscribe(z.batchCalls(e2)) : I;
2152
2294
  return d2.updateResult(), t3;
2153
2295
  }, [d2, p2]), () => d2.getCurrentResult(), () => d2.getCurrentResult()), e.useEffect(() => {
2154
2296
  d2.setOptions(s2);
2155
- }, [s2, d2]), Zr(s2, f2)) throw Qr(s2, d2, a2);
2156
- if (Jr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
2157
- 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(() => {
2297
+ }, [s2, d2]), ei(s2, f2)) throw ti(s2, d2, a2);
2298
+ if (Zr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
2299
+ 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(() => {
2158
2300
  d2.updateResult();
2159
2301
  }), s2.notifyOnChangeProps ? f2 : d2.trackResult(f2);
2160
2302
  }
2161
- function ei(e2, t2) {
2162
- return $r(e2, jr, t2);
2303
+ function ii(e2, t2) {
2304
+ return ri(e2, jr, t2);
2163
2305
  }
2164
- function ti(e2) {
2306
+ function ai(e2) {
2165
2307
  return e2;
2166
2308
  }
2167
- var ni = ti(`@wix/site-service-url`);
2168
- var ri = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
2169
- `${ri}`, `${ri}`;
2170
- var ii = function(e2) {
2309
+ var oi = ai(`@wix/site-service-url`);
2310
+ var si = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
2311
+ `${si}`, `${si}`;
2312
+ var ci = function(e2) {
2171
2313
  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;
2172
2314
  }({});
2173
- var ai = () => {
2174
- let e2 = (0, import_services_manager_react.useService)(ni), t2 = (0, import_react.useCallback)((t3, n2) => {
2175
- let r2 = e2.appSectionRelativeUrl(ri, t3, true);
2315
+ var li = () => {
2316
+ let e2 = (0, import_services_manager_react.useService)(oi), t2 = (0, import_react.useCallback)((t3, n2) => {
2317
+ let r2 = e2.appSectionRelativeUrl(si, t3, true);
2176
2318
  if (r2) return `./${r2.replace(/^\//, ``).replace(/\/$/, ``)}/${encodeURIComponent(n2)}`;
2177
2319
  }, [e2]);
2178
2320
  return { getPageRelativeUrl: t2, getPageAbsoluteUrl: (0, import_react.useCallback)((n2, r2) => {
@@ -2180,38 +2322,38 @@ var ai = () => {
2180
2322
  if (i2) return new URL(i2, `${e2.siteUrl.replace(/\/$/, ``)}/`).href;
2181
2323
  }, [t2, e2]) };
2182
2324
  };
2183
- function oi(e2) {
2184
- let { getPageAbsoluteUrl: t2 } = ai(), n2 = (0, import_react.useMemo)(() => {
2325
+ function ui(e2) {
2326
+ let { getPageAbsoluteUrl: t2 } = li(), n2 = (0, import_react.useMemo)(() => {
2185
2327
  if (!e2.slug) return;
2186
- let n3 = t2(ii.CATEGORY_PAGE, e2.slug);
2328
+ let n3 = t2(ci.CATEGORY_PAGE, e2.slug);
2187
2329
  return n3 ? { href: n3 } : void 0;
2188
2330
  }, [e2.slug, t2]);
2189
2331
  return (0, import_react.useMemo)(() => ({ 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]);
2190
2332
  }
2191
- function si(e2) {
2333
+ function di(e2) {
2192
2334
  let { category: t2 } = e2;
2193
- return oi(t2);
2335
+ return ui(t2);
2194
2336
  }
2195
- function ci(e2, t2) {
2337
+ function fi(e2, t2) {
2196
2338
  return (0, import_react.useMemo)(() => ({ categories: e2, currentCategoryId: t2 }), [e2, t2]);
2197
2339
  }
2198
- var li = ti(`seo/seo-service`);
2199
- var ui = ti(`@wix/site-service-rendering-context`);
2200
- function di(e2) {
2340
+ var pi = ai(`seo/seo-service`);
2341
+ var mi = ai(`@wix/site-service-rendering-context`);
2342
+ function hi(e2) {
2201
2343
  return e2.breadcrumbs.map(({ id: e3, name: t2, slug: n2 }) => ({ categoryId: e3, categoryName: t2, categorySlug: n2 }));
2202
2344
  }
2203
- function fi(e2) {
2345
+ function gi(e2) {
2204
2346
  return e2 ? { id: e2 } : void 0;
2205
2347
  }
2206
- function pi(e2) {
2207
- 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 } : {} };
2348
+ function _i(e2) {
2349
+ 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 } : {} };
2208
2350
  }
2209
- function mi(e2) {
2210
- let t2 = (0, import_services_manager_react.useService)(li), { SSR: n2 } = (0, import_services_manager_react.useService)(ui), r2 = (0, import_react.useRef)(false);
2211
- !r2.current && e2.id && n2 && (r2.current = true, t2.setSeoEntity(pi(e2)).catch(() => {
2351
+ function vi(e2) {
2352
+ let t2 = (0, import_services_manager_react.useService)(pi), { SSR: n2 } = (0, import_services_manager_react.useService)(mi), r2 = (0, import_react.useRef)(false);
2353
+ !r2.current && e2.id && n2 && (r2.current = true, t2.setSeoEntity(_i(e2)).catch(() => {
2212
2354
  }));
2213
2355
  }
2214
- function hi(e2) {
2356
+ function yi(e2) {
2215
2357
  if (e2.status === `fulfilled`) return e2.value;
2216
2358
  throw e2.status === `rejected` ? e2.reason : e2.status === `pending` ? e2 : (e2.status = `pending`, e2.then((t2) => {
2217
2359
  e2.status = `fulfilled`, e2.value = t2;
@@ -2219,61 +2361,61 @@ function hi(e2) {
2219
2361
  e2.status = `rejected`, e2.reason = t2;
2220
2362
  }), e2);
2221
2363
  }
2222
- var gi = /* @__PURE__ */ new Set();
2223
- function _i(e2) {
2224
- return gi.add(e2), () => {
2225
- gi.delete(e2);
2364
+ var bi = /* @__PURE__ */ new Set();
2365
+ function xi(e2) {
2366
+ return bi.add(e2), () => {
2367
+ bi.delete(e2);
2226
2368
  };
2227
2369
  }
2228
- function vi(e2) {
2370
+ function Si(e2) {
2229
2371
  let t2 = globalThis.window;
2230
2372
  if (!t2?.history) return;
2231
2373
  let n2 = t2.location.href;
2232
- t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 && gi.forEach((e3) => e3());
2374
+ t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 && bi.forEach((e3) => e3());
2233
2375
  }
2234
- function yi() {
2235
- let e2 = (0, import_services_manager_react.useService)(ni), t2 = (0, import_react.useCallback)(() => e2.currentUrl, [e2]), i2 = (0, import_react.useSyncExternalStore)(_i, t2, t2), a2 = (0, import_react.useMemo)(() => new URL(i2), [i2]), s2 = (0, import_react.useCallback)((t3) => {
2376
+ function Ci() {
2377
+ let e2 = (0, import_services_manager_react.useService)(oi), t2 = (0, import_react.useCallback)(() => e2.currentUrl, [e2]), i2 = (0, import_react.useSyncExternalStore)(xi, t2, t2), a2 = (0, import_react.useMemo)(() => new URL(i2), [i2]), s2 = (0, import_react.useCallback)((t3) => {
2236
2378
  let n2 = new URL(e2.currentUrl);
2237
- n2.search = t3, vi(n2);
2379
+ n2.search = t3, Si(n2);
2238
2380
  }, [e2]);
2239
2381
  return { url: a2, siteUrl: e2.siteUrl.replace(/\/$/, ``), search: a2.search, pushSearch: s2 };
2240
2382
  }
2241
- function bi(e2) {
2383
+ function wi(e2) {
2242
2384
  return e2.priceMin === void 0 && e2.priceMax === void 0 && Object.values(e2.customizationIdToChoiceIds ?? {}).every((e3) => e3.length === 0);
2243
2385
  }
2244
- function xi(e2, t2, n2) {
2386
+ function Ti(e2, t2, n2) {
2245
2387
  let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
2246
2388
  return i2.includes(n2) ? e2 : { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: [...i2, n2] } };
2247
2389
  }
2248
- function Si(e2, t2, n2) {
2390
+ function Ei(e2, t2, n2) {
2249
2391
  let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
2250
2392
  return i2.includes(n2) ? { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: i2.filter((e3) => e3 !== n2) } } : e2;
2251
2393
  }
2252
- function Ci(e2, t2, n2) {
2394
+ function Di(e2, t2, n2) {
2253
2395
  return e2.priceMin === t2 && e2.priceMax === n2 ? e2 : { ...e2, priceMin: t2, priceMax: n2 };
2254
2396
  }
2255
- function wi(e2) {
2397
+ function Oi(e2) {
2256
2398
  return e2.priceMin === void 0 && e2.priceMax === void 0 ? e2 : { ...e2, priceMin: void 0, priceMax: void 0 };
2257
2399
  }
2258
- function Ti(e2) {
2400
+ function ki(e2) {
2259
2401
  return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
2260
2402
  }
2261
- function Ei(e2) {
2403
+ function Ai(e2) {
2262
2404
  return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
2263
2405
  }
2264
- function Di(e2) {
2406
+ function ji(e2) {
2265
2407
  return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
2266
2408
  }
2267
2409
  function B(e2, t2) {
2268
- 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]] };
2410
+ 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]] };
2269
2411
  }
2270
- function Oi(e2, t2) {
2271
- 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]] };
2412
+ function Mi(e2, t2) {
2413
+ 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]] };
2272
2414
  }
2273
- function ki(e2) {
2274
- if (e2 !== void 0 && Object.keys(e2).length !== 0) return Di(e2) ? e2.$not : { $not: e2 };
2415
+ function Ni(e2) {
2416
+ if (e2 !== void 0 && Object.keys(e2).length !== 0) return ji(e2) ? e2.$not : { $not: e2 };
2275
2417
  }
2276
- var Ai = class {
2418
+ var Pi = class {
2277
2419
  _items;
2278
2420
  _fetchNextPage;
2279
2421
  _fetchPrevPage;
@@ -2303,7 +2445,7 @@ var Ai = class {
2303
2445
  return await this._fetchPrevPage();
2304
2446
  }
2305
2447
  };
2306
- var ji = class extends Ai {
2448
+ var Fi = class extends Pi {
2307
2449
  _nextCursor;
2308
2450
  _prevCursor;
2309
2451
  cursors;
@@ -2317,7 +2459,7 @@ var ji = class extends Ai {
2317
2459
  return !!this._prevCursor;
2318
2460
  }
2319
2461
  };
2320
- var Mi = class extends Ai {
2462
+ var Ii = class extends Pi {
2321
2463
  _totalCount;
2322
2464
  _offset;
2323
2465
  _tooManyToCount;
@@ -2340,16 +2482,16 @@ var Mi = class extends Ai {
2340
2482
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
2341
2483
  }
2342
2484
  };
2343
- function Ni(e2) {
2485
+ function Li(e2) {
2344
2486
  let t2 = (n2) => ({ query: n2, async find() {
2345
2487
  try {
2346
- 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);
2488
+ 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);
2347
2489
  if (e2.pagingMethod === `OFFSET`) {
2348
2490
  let e3 = n2;
2349
- 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 });
2491
+ 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 });
2350
2492
  }
2351
2493
  let s2 = n2.cursorPaging;
2352
- 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 });
2494
+ 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 });
2353
2495
  } catch (t3) {
2354
2496
  throw e2.errorTransformer(t3);
2355
2497
  }
@@ -2401,11 +2543,11 @@ function Ni(e2) {
2401
2543
  let a2 = { [V(e2.transformationPaths, r2)]: { $exists: i2 } };
2402
2544
  return t2({ ...n2, filter: B(n2.filter, a2) });
2403
2545
  }, or(e3) {
2404
- return t2({ ...n2, filter: Oi(n2.filter, e3.query.filter) });
2546
+ return t2({ ...n2, filter: Mi(n2.filter, e3.query.filter) });
2405
2547
  }, and(e3) {
2406
2548
  return t2({ ...n2, filter: B(n2.filter, e3.query.filter) });
2407
2549
  }, not(e3) {
2408
- return t2({ ...n2, filter: ki(e3.query.filter) });
2550
+ return t2({ ...n2, filter: Ni(e3.query.filter) });
2409
2551
  }, ascending(...r2) {
2410
2552
  return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: V(e2.transformationPaths, t3), order: `ASC` }))] });
2411
2553
  }, descending(...r2) {
@@ -2424,26 +2566,26 @@ function Ni(e2) {
2424
2566
  }
2425
2567
  function V(e2, t2) {
2426
2568
  let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
2427
- return n2 ? t2.replace(n2, e2[n2]) : ut(t2, { ...e2, ...lt });
2569
+ return n2 ? t2.replace(n2, e2[n2]) : ct(t2, { ...e2, ...st });
2428
2570
  }
2429
- function Pi(e2, t2, n2 = {}) {
2430
- let r2 = (r3, i3) => Pi(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [x(e2, t2)]: n2 };
2571
+ function Ri(e2, t2, n2 = {}) {
2572
+ let r2 = (r3, i3) => Ri(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [C(e2, t2)]: n2 };
2431
2573
  return { get filter() {
2432
2574
  return i2();
2433
2575
  }, 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) };
2434
2576
  }
2435
- function Fi(e2) {
2436
- 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 } }) });
2577
+ function zi(e2) {
2578
+ 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 } }) });
2437
2579
  }
2438
- function Ii(e2) {
2439
- return (t2) => ({ asc: () => ({ sort: { fieldName: x(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: x(t2, e2), order: `DESC` } }) });
2580
+ function Bi(e2) {
2581
+ return (t2) => ({ asc: () => ({ sort: { fieldName: C(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: C(t2, e2), order: `DESC` } }) });
2440
2582
  }
2441
- function Li(e2) {
2583
+ function Vi(e2) {
2442
2584
  return () => {
2443
2585
  let t2 = {}, n2 = { withFilter(e3) {
2444
2586
  return t2 = { ...t2, filter: e3.filter }, n2;
2445
2587
  }, withFields(...r2) {
2446
- return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
2588
+ return t2 = { ...t2, fields: r2.map((t3) => C(t3, e2)) }, n2;
2447
2589
  }, withSorting(...e3) {
2448
2590
  return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
2449
2591
  }, withPaging(e3) {
@@ -2455,38 +2597,38 @@ function Li(e2) {
2455
2597
  };
2456
2598
  }
2457
2599
  function H(e2) {
2458
- return { QueryBuilder: Li(e2), Filter: Fi(e2), Sort: Ii(e2) };
2459
- }
2460
- var Ri = `filter`;
2461
- var zi = `sort`;
2462
- var Bi = `cursorPaging`;
2463
- var Vi = `paging`;
2464
- var Hi = [Ri, zi, Bi];
2465
- var Ui = [Ri, zi, Vi];
2466
- function Wi(e2, t2) {
2600
+ return { QueryBuilder: Vi(e2), Filter: zi(e2), Sort: Bi(e2) };
2601
+ }
2602
+ var Hi = `filter`;
2603
+ var Ui = `sort`;
2604
+ var Wi = `cursorPaging`;
2605
+ var Gi = `paging`;
2606
+ var Ki = [Hi, Ui, Wi];
2607
+ var qi = [Hi, Ui, Gi];
2608
+ function Ji(e2, t2) {
2467
2609
  return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
2468
2610
  }
2469
- function Gi(e2) {
2470
- return Wi(e2, Hi);
2611
+ function Yi(e2) {
2612
+ return Ji(e2, Ki);
2471
2613
  }
2472
- function Ki(e2) {
2473
- return Wi(e2, Ui);
2614
+ function Xi(e2) {
2615
+ return Ji(e2, qi);
2474
2616
  }
2475
- function qi(e2) {
2617
+ function Zi(e2) {
2476
2618
  let { hasOptionsParameter: t2 } = e2;
2477
2619
  return function(...n2) {
2478
- return t2 ? Yi(n2, e2) : Ji(n2, e2);
2620
+ return t2 ? $i(n2, e2) : Qi(n2, e2);
2479
2621
  };
2480
2622
  }
2481
- function Ji(e2, t2) {
2623
+ function Qi(e2, t2) {
2482
2624
  return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
2483
2625
  }
2484
- function Yi(e2, t2) {
2626
+ function $i(e2, t2) {
2485
2627
  switch (e2.length) {
2486
2628
  case 0:
2487
2629
  return t2.builderQueryFunction();
2488
2630
  case 1:
2489
- return Gi(e2[0]) || Ki(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
2631
+ return Yi(e2[0]) || Xi(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
2490
2632
  default:
2491
2633
  return t2.typedQueryFunction(e2[0], e2[1]);
2492
2634
  }
@@ -2496,7 +2638,7 @@ function U(e2) {
2496
2638
  let t2 = ``;
2497
2639
  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;
2498
2640
  }
2499
- function Xi(e2) {
2641
+ function W(e2) {
2500
2642
  if (!e2) return;
2501
2643
  let t2 = ``;
2502
2644
  e2?.filename && (t2 = `/${encodeURIComponent(e2.filename)}`);
@@ -2511,24 +2653,24 @@ function Xi(e2) {
2511
2653
  }
2512
2654
  return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
2513
2655
  }
2514
- function Zi(e2) {
2515
- 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: `` }] } }));
2656
+ function ea(e2) {
2657
+ 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: `` }] } }));
2516
2658
  }
2517
- var Qi = `@wix/auto_sdk_stores_customizations-v-3`;
2518
- function $i(e2) {
2659
+ var ta = `@wix/auto_sdk_stores_customizations-v-3`;
2660
+ function na(e2) {
2519
2661
  function t2({ host: t3 }) {
2520
- 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 }] };
2662
+ 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 }] };
2521
2663
  }
2522
2664
  return t2;
2523
2665
  }
2524
- var ea = ((e2) => (e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2))(ea || {});
2525
- var W = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(W || {});
2526
- var G = ((e2) => (e2.DEFAULT = `DEFAULT`, e2.BY_NAME = `BY_NAME`, e2.BY_PRODUCT_COUNT = `BY_PRODUCT_COUNT`, e2.MANUAL = `MANUAL`, e2))(G || {});
2527
- var ta = ((e2) => (e2.ASSIGNED_PRODUCTS_COUNT = `ASSIGNED_PRODUCTS_COUNT`, e2.CHOICE_DISPLAY_IMAGE = `CHOICE_DISPLAY_IMAGE`, e2))(ta || {});
2528
- function na(e2) {
2666
+ var ra = ((e2) => (e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2))(ra || {});
2667
+ var G = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(G || {});
2668
+ var ia = ((e2) => (e2.DEFAULT = `DEFAULT`, e2.BY_NAME = `BY_NAME`, e2.BY_PRODUCT_COUNT = `BY_PRODUCT_COUNT`, e2.MANUAL = `MANUAL`, e2))(ia || {});
2669
+ var aa = ((e2) => (e2.ASSIGNED_PRODUCTS_COUNT = `ASSIGNED_PRODUCTS_COUNT`, e2.CHOICE_DISPLAY_IMAGE = `CHOICE_DISPLAY_IMAGE`, e2))(aa || {});
2670
+ function oa(e2) {
2529
2671
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
2530
- return Ni({ func: async (r2) => {
2531
- let i2 = $i({ ...r2, ...e2 ?? {} });
2672
+ return Li({ func: async (r2) => {
2673
+ let i2 = na({ ...r2, ...e2 ?? {} });
2532
2674
  n2?.onSiteCall?.();
2533
2675
  try {
2534
2676
  let e3 = await t2.request(i2);
@@ -2538,45 +2680,45 @@ function na(e2) {
2538
2680
  }
2539
2681
  }, requestTransformer: (t3) => {
2540
2682
  let n3 = [t3, e2];
2541
- return S({ ...n3?.[1], query: n3?.[0] });
2683
+ return w({ ...n3?.[1], query: n3?.[0] });
2542
2684
  }, responseTransformer: ({ data: e3 }) => {
2543
- let t3 = C(T(e3, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2685
+ let t3 = T(D(e3, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2544
2686
  return { items: t3?.customizations, pagingMetadata: t3?.pagingMetadata };
2545
2687
  }, errorTransformer: (e3) => {
2546
- throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2688
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2547
2689
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2548
2690
  }
2549
- async function ra(e2, t2) {
2550
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = $i(S({ query: e2, ...t2 }));
2691
+ async function sa(e2, t2) {
2692
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = na(w({ query: e2, ...t2 }));
2551
2693
  r2?.onSiteCall?.();
2552
2694
  try {
2553
2695
  let e3 = await n2.request(i2);
2554
- return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2696
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
2555
2697
  } catch (e3) {
2556
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2698
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2557
2699
  throw r2?.onError?.(e3), t3;
2558
2700
  }
2559
2701
  }
2560
2702
  ({ ...H() });
2561
- function ia(e2) {
2562
- return (t2) => na(t2, { httpClient: e2 });
2563
- }
2564
- function aa(e2) {
2565
- return (t2, n2) => ra(t2, n2, { httpClient: e2 });
2703
+ function ca(e2) {
2704
+ return (t2) => oa(t2, { httpClient: e2 });
2566
2705
  }
2567
- 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` }] }])))();
2568
- 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` }] }])))();
2569
- 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` }] }])))();
2570
2706
  function la(e2) {
2571
- let t2 = qi({ builderQueryFunction: (t3) => ia(e2)(t3), typedQueryFunction: (t3, n3) => aa(e2)(t3, n3), hasOptionsParameter: true });
2707
+ return (t2, n2) => sa(t2, n2, { httpClient: e2 });
2708
+ }
2709
+ 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` }] }])))();
2710
+ 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` }] }])))();
2711
+ 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` }] }])))();
2712
+ function pa(e2) {
2713
+ let t2 = Zi({ builderQueryFunction: (t3) => ca(e2)(t3), typedQueryFunction: (t3, n3) => la(e2)(t3, n3), hasOptionsParameter: true });
2572
2714
  function n2(e3, n3) {
2573
2715
  return t2(...arguments);
2574
2716
  }
2575
2717
  return n2;
2576
2718
  }
2577
- var ua = D(la);
2578
- A(oa), A(sa), A(ca);
2579
- function da(e2) {
2719
+ var ma = k(pa);
2720
+ M(ua), M(da), M(fa);
2721
+ function ha(e2) {
2580
2722
  let t2 = {}, n2 = { get search() {
2581
2723
  return t2;
2582
2724
  }, expression(e3) {
@@ -2584,19 +2726,19 @@ function da(e2) {
2584
2726
  }, mode(e3) {
2585
2727
  return t2 = { ...t2, mode: e3 }, n2;
2586
2728
  }, fields(r2) {
2587
- return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
2729
+ return t2 = { ...t2, fields: r2.map((t3) => C(t3, e2)) }, n2;
2588
2730
  }, fuzzy(e3 = true) {
2589
2731
  return t2 = { ...t2, fuzzy: e3 }, n2;
2590
2732
  } };
2591
2733
  return n2;
2592
2734
  }
2593
- function fa(e2) {
2735
+ function ga(e2) {
2594
2736
  return (t2) => {
2595
- let n2 = da(e2);
2737
+ let n2 = ha(e2);
2596
2738
  return t2 === void 0 ? n2 : n2.expression(t2);
2597
2739
  };
2598
2740
  }
2599
- function pa(e2) {
2741
+ function _a(e2) {
2600
2742
  let t2 = { ...e2, type: `VALUE`, value: { ...e2.value } }, n2 = { get aggregation() {
2601
2743
  return t2;
2602
2744
  }, sortBy(e3, r2) {
@@ -2612,7 +2754,7 @@ function pa(e2) {
2612
2754
  } };
2613
2755
  return n2;
2614
2756
  }
2615
- function ma(e2) {
2757
+ function va(e2) {
2616
2758
  let t2 = { ...e2, type: `RANGE`, range: { buckets: [] } }, n2 = { get aggregation() {
2617
2759
  return t2;
2618
2760
  }, withBuckets(...e3) {
@@ -2620,7 +2762,7 @@ function ma(e2) {
2620
2762
  } };
2621
2763
  return n2;
2622
2764
  }
2623
- function ha(e2) {
2765
+ function ya(e2) {
2624
2766
  let t2 = { ...e2, type: `DATE_HISTOGRAM`, dateHistogram: {} }, n2 = { get aggregation() {
2625
2767
  return t2;
2626
2768
  }, interval(e3) {
@@ -2628,7 +2770,7 @@ function ha(e2) {
2628
2770
  } };
2629
2771
  return n2;
2630
2772
  }
2631
- function ga(e2) {
2773
+ function ba(e2) {
2632
2774
  let t2 = { ...e2, type: `SCALAR`, scalar: {} }, n2 = { get aggregation() {
2633
2775
  return t2;
2634
2776
  }, type(e3) {
@@ -2636,7 +2778,7 @@ function ga(e2) {
2636
2778
  } };
2637
2779
  return n2;
2638
2780
  }
2639
- function _a(e2) {
2781
+ function xa(e2) {
2640
2782
  let t2 = { ...e2, type: `NESTED`, nested: { nestedAggregations: [] } }, n2 = { get aggregation() {
2641
2783
  return t2;
2642
2784
  }, addNestedAggregation(e3) {
@@ -2645,30 +2787,30 @@ function _a(e2) {
2645
2787
  } };
2646
2788
  return n2;
2647
2789
  }
2648
- function va(e2, t2) {
2790
+ function Sa(e2, t2) {
2649
2791
  let n2 = { name: e2 }, r2 = { get aggregation() {
2650
2792
  return n2;
2651
2793
  }, ofType(e3) {
2652
2794
  return n2 = { ...n2, type: e3 }, r2;
2653
2795
  }, onField(e3) {
2654
- return n2 = { ...n2, fieldPath: x(e3, t2) }, r2;
2796
+ return n2 = { ...n2, fieldPath: C(e3, t2) }, r2;
2655
2797
  }, asValueAggregation() {
2656
- return pa(n2);
2798
+ return _a(n2);
2657
2799
  }, asRangeAggregation() {
2658
- return ma(n2);
2800
+ return va(n2);
2659
2801
  }, asDateHistogramAggregation() {
2660
- return ha(n2);
2802
+ return ya(n2);
2661
2803
  }, asScalarAggregation() {
2662
- return ga(n2);
2804
+ return ba(n2);
2663
2805
  }, asNestedAggregation() {
2664
- return _a(n2);
2806
+ return xa(n2);
2665
2807
  } };
2666
2808
  return r2;
2667
2809
  }
2668
- function ya(e2) {
2669
- return (t2) => va(t2, e2);
2810
+ function Ca(e2) {
2811
+ return (t2) => Sa(t2, e2);
2670
2812
  }
2671
- function ba() {
2813
+ function wa() {
2672
2814
  return () => {
2673
2815
  let e2 = {}, t2 = { withFilter(n2) {
2674
2816
  return e2 = { ...e2, filter: n2.filter }, t2;
@@ -2688,85 +2830,195 @@ function ba() {
2688
2830
  return t2;
2689
2831
  };
2690
2832
  }
2691
- function xa(e2) {
2692
- return { SearchBuilder: ba(), Filter: Fi(e2), Sort: Ii(e2), SearchParams: fa(e2), Aggregation: ya(e2) };
2833
+ function Ta(e2) {
2834
+ return { SearchBuilder: wa(), Filter: zi(e2), Sort: Bi(e2), SearchParams: ga(e2), Aggregation: Ca(e2) };
2693
2835
  }
2694
- function Sa(e2) {
2836
+ function K(e2) {
2695
2837
  if (e2) return e2.url;
2696
2838
  }
2697
- function Ca(e2) {
2698
- 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: `` }] } }));
2839
+ function q(e2) {
2840
+ 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: `` }] } }));
2699
2841
  }
2700
- var wa = `@wix/auto_sdk_stores_products-v-3`;
2701
- function Ta(e2) {
2842
+ var Ea = `@wix/auto_sdk_stores_products-v-3`;
2843
+ function Da(e2) {
2844
+ function t2({ host: t3 }) {
2845
+ 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` }] }]);
2846
+ 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 }] };
2847
+ }
2848
+ return t2;
2849
+ }
2850
+ function Oa(e2) {
2702
2851
  function t2({ host: t3 }) {
2703
- 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` }] }]);
2704
- 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 }] };
2852
+ 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 }] };
2705
2853
  }
2706
2854
  return t2;
2707
2855
  }
2708
- function Ea(e2) {
2856
+ function ka(e2) {
2709
2857
  function t2({ host: t3 }) {
2710
- 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 }] };
2858
+ 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 }] };
2711
2859
  }
2712
2860
  return t2;
2713
2861
  }
2714
- var Da = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(Da || {});
2715
- var K = ((e2) => (e2.ASC = `ASC`, e2.DESC = `DESC`, e2))(K || {});
2716
- var Oa = ((e2) => (e2.COUNT = `COUNT`, e2.VALUE = `VALUE`, e2))(Oa || {});
2717
- var ka = ((e2) => (e2.DESC = `DESC`, e2.ASC = `ASC`, e2))(ka || {});
2718
- var Aa = ((e2) => (e2.COUNT_DISTINCT = `COUNT_DISTINCT`, e2.MIN = `MIN`, e2.MAX = `MAX`, e2))(Aa || {});
2719
- var ja = ((e2) => (e2.VALUE = `VALUE`, e2.RANGE = `RANGE`, e2.SCALAR = `SCALAR`, e2.DATE_HISTOGRAM = `DATE_HISTOGRAM`, e2.NESTED = `NESTED`, e2))(ja || {});
2720
- 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 || {});
2721
- async function Ma(e2, t2) {
2722
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ta(S({ search: e2, fields: t2?.fields }, []));
2862
+ var Aa = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(Aa || {});
2863
+ var J = ((e2) => (e2.ASC = `ASC`, e2.DESC = `DESC`, e2))(J || {});
2864
+ var ja = ((e2) => (e2.COUNT = `COUNT`, e2.VALUE = `VALUE`, e2))(ja || {});
2865
+ var Ma = ((e2) => (e2.DESC = `DESC`, e2.ASC = `ASC`, e2))(Ma || {});
2866
+ var Na = ((e2) => (e2.COUNT_DISTINCT = `COUNT_DISTINCT`, e2.MIN = `MIN`, e2.MAX = `MAX`, e2))(Na || {});
2867
+ var Pa = ((e2) => (e2.VALUE = `VALUE`, e2.RANGE = `RANGE`, e2.SCALAR = `SCALAR`, e2.DATE_HISTOGRAM = `DATE_HISTOGRAM`, e2.NESTED = `NESTED`, e2))(Pa || {});
2868
+ 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 || {});
2869
+ async function Fa(e2, t2) {
2870
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Da(w({ search: e2, fields: t2?.fields }, []));
2723
2871
  r2?.onSiteCall?.();
2724
2872
  try {
2725
2873
  let e3 = await n2.request(i2);
2726
- 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`]);
2874
+ 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`]);
2727
2875
  } catch (e3) {
2728
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { search: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`search`, `options`]);
2876
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { search: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`search`, `options`]);
2729
2877
  throw r2?.onError?.(e3), t3;
2730
2878
  }
2731
2879
  }
2732
- ({ ...xa() }, { ...H() });
2733
- async function Na(e2) {
2734
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ea(S({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
2880
+ ({ ...Ta() }, { ...H() });
2881
+ function Ia(e2) {
2882
+ let { httpClient: t2, sideEffects: n2 } = arguments[1];
2883
+ return Li({ func: async (r2) => {
2884
+ let i2 = Oa({ ...r2, ...e2 ?? {} });
2885
+ n2?.onSiteCall?.();
2886
+ try {
2887
+ let e3 = await t2.request(i2);
2888
+ return n2?.onSuccess?.(e3), e3;
2889
+ } catch (e3) {
2890
+ throw n2?.onError?.(e3), e3;
2891
+ }
2892
+ }, requestTransformer: (t3) => {
2893
+ let n3 = [t3, e2];
2894
+ return w({ ...n3?.[1], query: n3?.[0] }, []);
2895
+ }, responseTransformer: ({ data: e3 }) => {
2896
+ 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`]);
2897
+ return { items: t3?.products, pagingMetadata: t3?.pagingMetadata };
2898
+ }, errorTransformer: (e3) => {
2899
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2900
+ }, pagingMethod: `CURSOR`, transformationPaths: {} });
2901
+ }
2902
+ async function La(e2, t2) {
2903
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oa(w({ query: e2, ...t2 }, []));
2904
+ r2?.onSiteCall?.();
2905
+ try {
2906
+ let e3 = await n2.request(i2);
2907
+ 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`]);
2908
+ } catch (e3) {
2909
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2910
+ throw r2?.onError?.(e3), t3;
2911
+ }
2912
+ }
2913
+ async function Ra(e2) {
2914
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ka(w({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
2735
2915
  n2?.onSiteCall?.();
2736
2916
  try {
2737
2917
  let e3 = await t2.request(r2);
2738
- return n2?.onSuccess?.(e3), C(e3.data, []);
2918
+ return n2?.onSuccess?.(e3), T(e3.data, []);
2739
2919
  } catch (e3) {
2740
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { filter: `$[0].filter`, search: `$[0].search`, returnNonVisibleProducts: `$[0].returnNonVisibleProducts` }, singleArgumentUnchanged: false }, [`options`]);
2920
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { filter: `$[0].filter`, search: `$[0].search`, returnNonVisibleProducts: `$[0].returnNonVisibleProducts` }, singleArgumentUnchanged: false }, [`options`]);
2741
2921
  throw n2?.onError?.(e3), t3;
2742
2922
  }
2743
2923
  }
2744
- function Pa(e2) {
2745
- return (t2, n2) => Ma(t2, n2, { httpClient: e2 });
2924
+ function za(e2) {
2925
+ return (t2, n2) => Fa(t2, n2, { httpClient: e2 });
2746
2926
  }
2747
- function Fa(e2) {
2748
- return (t2) => Na(t2, { httpClient: e2 });
2927
+ function Ba(e2) {
2928
+ return (t2) => Ia(t2, { httpClient: e2 });
2749
2929
  }
2750
- 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` }] }])))();
2751
- 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` }] }])))();
2752
- 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` }] }])))();
2753
- var za = D(Pa);
2754
- var Ba = D(Fa);
2755
- A(Ia), A(La), A(Ra);
2756
2930
  function Va(e2) {
2757
- 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` }] } }));
2931
+ return (t2, n2) => La(t2, n2, { httpClient: e2 });
2932
+ }
2933
+ function Ha(e2) {
2934
+ return (t2) => Ra(t2, { httpClient: e2 });
2758
2935
  }
2759
- var Ha = `@wix/auto_sdk_stores_stores-locations-v-3`;
2760
- function Ua(e2) {
2936
+ 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` }] }])))();
2937
+ 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` }] }])))();
2938
+ 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` }] }])))();
2939
+ function Ka(e2) {
2940
+ let t2 = Zi({ builderQueryFunction: (t3) => Ba(e2)(t3), typedQueryFunction: (t3, n3) => Va(e2)(t3, n3), hasOptionsParameter: true });
2941
+ function n2(e3, n3) {
2942
+ return t2(...arguments);
2943
+ }
2944
+ return n2;
2945
+ }
2946
+ var qa = k(za);
2947
+ var Ja = k(Ha);
2948
+ var Ya = k(Ka);
2949
+ M(Ua), M(Wa), M(Ga);
2950
+ function Xa(e2) {
2951
+ 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: `` }] } }));
2952
+ }
2953
+ var Za = `@wix/auto_sdk_stores_product-groups-v-3`;
2954
+ function Qa(e2) {
2761
2955
  function t2({ host: t3 }) {
2762
- 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` }] }]) };
2956
+ 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 }] };
2763
2957
  }
2764
2958
  return t2;
2765
2959
  }
2766
- function Wa() {
2960
+ var $a = ((e2) => (e2.GROUPING_CUSTOMIZATION = `GROUPING_CUSTOMIZATION`, e2.THUMBNAIL = `THUMBNAIL`, e2))($a || {});
2961
+ function eo(e2) {
2962
+ let { httpClient: t2, sideEffects: n2 } = arguments[1];
2963
+ return Li({ func: async (r2) => {
2964
+ let i2 = Qa({ ...r2, ...e2 ?? {} });
2965
+ n2?.onSiteCall?.();
2966
+ try {
2967
+ let e3 = await t2.request(i2);
2968
+ return n2?.onSuccess?.(e3), e3;
2969
+ } catch (e3) {
2970
+ throw n2?.onError?.(e3), e3;
2971
+ }
2972
+ }, requestTransformer: (t3) => {
2973
+ let n3 = [t3, e2];
2974
+ return w({ ...n3?.[1], query: n3?.[0] });
2975
+ }, responseTransformer: ({ data: e3 }) => {
2976
+ let t3 = T(D(e3, [{ transformFn: U, paths: [{ path: `productGroups.media.image` }] }]));
2977
+ return { items: t3?.productGroups, pagingMetadata: t3?.pagingMetadata };
2978
+ }, errorTransformer: (e3) => {
2979
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2980
+ }, pagingMethod: `CURSOR`, transformationPaths: {} });
2981
+ }
2982
+ async function to(e2, t2) {
2983
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Qa(w({ query: e2, ...t2 }));
2984
+ r2?.onSiteCall?.();
2985
+ try {
2986
+ let e3 = await n2.request(i2);
2987
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `productGroups.media.image` }] }]));
2988
+ } catch (e3) {
2989
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2990
+ throw r2?.onError?.(e3), t3;
2991
+ }
2992
+ }
2993
+ ({ ...H() }, { ...Ta() });
2994
+ function no(e2) {
2995
+ return (t2) => eo(t2, { httpClient: e2 });
2996
+ }
2997
+ function ro(e2) {
2998
+ return (t2, n2) => to(t2, n2, { httpClient: e2 });
2999
+ }
3000
+ function io(e2) {
3001
+ let t2 = Zi({ builderQueryFunction: (t3) => no(e2)(t3), typedQueryFunction: (t3, n3) => ro(e2)(t3, n3), hasOptionsParameter: true });
3002
+ function n2(e3, n3) {
3003
+ return t2(...arguments);
3004
+ }
3005
+ return n2;
3006
+ }
3007
+ var ao = k(io);
3008
+ function oo(e2) {
3009
+ 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` }] } }));
3010
+ }
3011
+ var so = `@wix/auto_sdk_stores_stores-locations-v-3`;
3012
+ function co(e2) {
3013
+ function t2({ host: t3 }) {
3014
+ 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` }] }]) };
3015
+ }
3016
+ return t2;
3017
+ }
3018
+ function lo() {
2767
3019
  let { httpClient: e2, sideEffects: t2 } = arguments[0];
2768
- return Ni({ func: async (n2) => {
2769
- let r2 = Ua(n2);
3020
+ return Li({ func: async (n2) => {
3021
+ let r2 = co(n2);
2770
3022
  t2?.onSiteCall?.();
2771
3023
  try {
2772
3024
  let n3 = await e2.request(r2);
@@ -2776,359 +3028,472 @@ function Wa() {
2776
3028
  }
2777
3029
  }, requestTransformer: (e3) => {
2778
3030
  let t3 = [e3, {}];
2779
- return S({ ...t3?.[1], query: t3?.[0] });
3031
+ return w({ ...t3?.[1], query: t3?.[0] });
2780
3032
  }, responseTransformer: ({ data: e3 }) => {
2781
- let t3 = C(T(e3, []));
3033
+ let t3 = T(D(e3, []));
2782
3034
  return { items: t3?.storesLocations, pagingMetadata: t3?.pagingMetadata };
2783
3035
  }, errorTransformer: (e3) => {
2784
- throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3036
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2785
3037
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2786
3038
  }
2787
- async function Ga(e2) {
2788
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ua(S({ query: e2 }));
3039
+ async function uo(e2) {
3040
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = co(w({ query: e2 }));
2789
3041
  n2?.onSiteCall?.();
2790
3042
  try {
2791
3043
  let e3 = await t2.request(r2);
2792
- return n2?.onSuccess?.(e3), C(e3.data);
3044
+ return n2?.onSuccess?.(e3), T(e3.data);
2793
3045
  } catch (e3) {
2794
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
3046
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2795
3047
  throw n2?.onError?.(e3), t3;
2796
3048
  }
2797
3049
  }
2798
3050
  ({ ...H() });
2799
- function Ka(e2) {
2800
- return () => Wa({ httpClient: e2 });
3051
+ function fo(e2) {
3052
+ return () => lo({ httpClient: e2 });
2801
3053
  }
2802
- function qa(e2) {
2803
- return (t2) => Ga(t2, { httpClient: e2 });
3054
+ function po(e2) {
3055
+ return (t2) => uo(t2, { httpClient: e2 });
2804
3056
  }
2805
- function Ja(e2) {
2806
- let t2 = qi({ builderQueryFunction: () => Ka(e2)(), typedQueryFunction: (t3) => qa(e2)(t3), hasOptionsParameter: false });
3057
+ function mo(e2) {
3058
+ let t2 = Zi({ builderQueryFunction: () => fo(e2)(), typedQueryFunction: (t3) => po(e2)(t3), hasOptionsParameter: false });
2807
3059
  function n2(e3) {
2808
3060
  return t2(...arguments);
2809
3061
  }
2810
3062
  return n2;
2811
3063
  }
2812
- var Ya = D(Ja);
2813
- function Xa(e2) {
2814
- 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: `` }] } }));
3064
+ var ho = k(mo);
3065
+ function go(e2) {
3066
+ 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: `` }] } }));
2815
3067
  }
2816
- var Za = `@wix/auto_sdk_stores_promotions-v-3`;
2817
- function Qa(e2) {
3068
+ var _o = `@wix/auto_sdk_stores_promotions-v-3`;
3069
+ function vo(e2) {
2818
3070
  function t2({ host: t3 }) {
2819
- 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` }] }]) };
3071
+ 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` }] }]) };
2820
3072
  }
2821
3073
  return t2;
2822
3074
  }
2823
- ({ ...H() }, { ...xa() });
2824
- async function $a(e2) {
2825
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Qa(S({ categoryId: e2 }));
3075
+ ({ ...H() }, { ...Ta() });
3076
+ async function yo(e2) {
3077
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(w({ categoryId: e2 }));
2826
3078
  n2?.onSiteCall?.();
2827
3079
  try {
2828
3080
  let e3 = await t2.request(r2);
2829
- return n2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `promotions.promotion.media.image` }] }]));
3081
+ return n2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `promotions.promotion.media.image` }] }]));
2830
3082
  } catch (e3) {
2831
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]` }, singleArgumentUnchanged: false }, [`categoryId`]);
3083
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]` }, singleArgumentUnchanged: false }, [`categoryId`]);
2832
3084
  throw n2?.onError?.(e3), t3;
2833
3085
  }
2834
3086
  }
2835
- function eo(e2) {
2836
- return (t2) => $a(t2, { httpClient: e2 });
2837
- }
2838
- 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` }] }])))();
2839
- 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` }] }])))();
2840
- 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` }] }])))();
2841
- 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` }] }])))();
2842
- var ao = D(eo);
2843
- A(to), A(no), A(ro), A(io);
2844
- var J = function(e2) {
2845
- return e2.PRICE = `PRICE`, e2.TEXT_CHOICES = `${W.TEXT_CHOICES}`, e2.SWATCH_CHOICES = `${W.SWATCH_CHOICES}`, e2;
3087
+ function bo(e2) {
3088
+ return (t2) => yo(t2, { httpClient: e2 });
3089
+ }
3090
+ 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` }] }])))();
3091
+ 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` }] }])))();
3092
+ 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` }] }])))();
3093
+ 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` }] }])))();
3094
+ var To = k(bo);
3095
+ M(xo), M(So), M(Co), M(wo);
3096
+ var X = function(e2) {
3097
+ return e2.PRICE = `PRICE`, e2.TEXT_CHOICES = `${G.TEXT_CHOICES}`, e2.SWATCH_CHOICES = `${G.SWATCH_CHOICES}`, e2;
2846
3098
  }({});
2847
- var oo = function(e2) {
3099
+ var Eo = function(e2) {
2848
3100
  return e2.TEXT_CHOICES = `Text Choices`, e2.SWATCH_CHOICES = `Swatch Choices`, e2.PRICE = `Price`, e2;
2849
3101
  }({});
2850
- var so = `minPrice`;
2851
- var co = `maxPrice`;
2852
- var lo = (e2, t2) => {
3102
+ var Do = `minPrice`;
3103
+ var Oo = `maxPrice`;
3104
+ var ko = (e2, t2) => {
2853
3105
  let n2 = new Map(e2.values.map((e3) => [e3.name, e3.id]));
2854
3106
  return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
2855
3107
  };
2856
- var uo = (e2) => {
3108
+ var Ao = (e2) => {
2857
3109
  if (e2 === null || e2.trim() === ``) return;
2858
3110
  let t2 = Number(e2);
2859
3111
  return Number.isFinite(t2) ? t2 : void 0;
2860
3112
  };
2861
- var fo = (e2, t2) => {
3113
+ var jo = (e2, t2) => {
2862
3114
  let n2 = {};
2863
3115
  for (let r2 of t2) {
2864
- let t3 = e2.get(r2.name), i2 = lo(r2, t3 ? t3.split(`,`).filter(Boolean) : []);
3116
+ let t3 = e2.get(r2.name), i2 = ko(r2, t3 ? t3.split(`,`).filter(Boolean) : []);
2865
3117
  i2.length > 0 && (n2[r2.id] = i2);
2866
3118
  }
2867
3119
  return n2;
2868
3120
  };
2869
- function po(e2, t2) {
3121
+ function Mo(e2, t2) {
2870
3122
  let n2 = new URLSearchParams(e2);
2871
- 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)) };
3123
+ 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)) };
2872
3124
  }
2873
- var mo = (e2, t2) => {
3125
+ var No = (e2, t2) => {
2874
3126
  let n2 = new Map(e2.values.map((e3) => [e3.id, e3.name]));
2875
3127
  return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
2876
3128
  };
2877
- var ho = (e2, t2) => {
3129
+ var Po = (e2, t2) => {
2878
3130
  t2.forEach((t3) => {
2879
3131
  e2.delete(t3.name);
2880
- }), e2.delete(so), e2.delete(co);
3132
+ }), e2.delete(Do), e2.delete(Oo);
2881
3133
  };
2882
- var go = (e2) => e2.map(encodeURIComponent).join(`,`);
2883
- var _o = (e2, t2) => {
3134
+ var Fo = (e2) => e2.map(encodeURIComponent).join(`,`);
3135
+ var Io = (e2, t2) => {
2884
3136
  let n2 = new Map(e2.map((e3) => [e3.id, e3]));
2885
3137
  return Object.entries(t2 ?? {}).flatMap(([e3, t3]) => {
2886
3138
  let r2 = n2.get(e3);
2887
3139
  if (!r2) return [];
2888
- let i2 = mo(r2, t3);
2889
- return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${go(i2)}`];
3140
+ let i2 = No(r2, t3);
3141
+ return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${Fo(i2)}`];
2890
3142
  });
2891
3143
  };
2892
- var vo = (e2, t2, n2) => {
2893
- 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));
3144
+ var Lo = (e2, t2, n2) => {
3145
+ 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));
2894
3146
  };
2895
- function yo(e2, t2, n2) {
2896
- 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);
2897
- ho(r2, i2), vo(r2, t2, a2);
2898
- let o2 = _o(i2, t2.customizationIdToChoiceIds), s2 = [r2.toString(), ...o2].filter(Boolean).join(`&`);
3147
+ function Ro(e2, t2, n2) {
3148
+ 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);
3149
+ Po(r2, i2), Lo(r2, t2, a2);
3150
+ let o2 = Io(i2, t2.customizationIdToChoiceIds), s2 = [r2.toString(), ...o2].filter(Boolean).join(`&`);
2899
3151
  return s2 ? `?${s2}` : ``;
2900
3152
  }
2901
- function bo(e2) {
2902
- let { search: t2, pushSearch: n2 } = yi(), i2 = (0, import_react.useMemo)(() => po(t2, e2), [t2, e2]), a2 = (r2) => {
2903
- r2 !== i2 && n2(yo(t2, r2, e2));
3153
+ function zo(e2) {
3154
+ let { search: t2, pushSearch: n2 } = Ci(), i2 = (0, import_react.useMemo)(() => Mo(t2, e2), [t2, e2]), a2 = (r2) => {
3155
+ r2 !== i2 && n2(Ro(t2, r2, e2));
2904
3156
  };
2905
3157
  return { filterSelection: i2, selectFilterChoice: (e3, t3) => {
2906
- a2(xi(i2, e3, t3));
3158
+ a2(Ti(i2, e3, t3));
2907
3159
  }, deselectFilterChoice: (e3, t3) => {
2908
- a2(Si(i2, e3, t3));
3160
+ a2(Ei(i2, e3, t3));
2909
3161
  }, setPriceRange: (e3, t3) => {
2910
- a2(Ci(i2, e3, t3));
3162
+ a2(Di(i2, e3, t3));
2911
3163
  }, clearPriceRange: () => {
2912
- a2(wi(i2));
3164
+ a2(Oi(i2));
2913
3165
  }, clearAllFilters: () => {
2914
- bi(i2) || a2({});
3166
+ wi(i2) || a2({});
2915
3167
  } };
2916
3168
  }
2917
- var xo = function(e2) {
3169
+ var Bo = function(e2) {
2918
3170
  return e2.createdDate = `createdDate`, e2.actualPriceRangeMinValueAmount = `actualPriceRange.minValue.amount`, e2.name = `name`, e2;
2919
3171
  }({});
2920
- var Y = function(e2) {
3172
+ var Z = function(e2) {
2921
3173
  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;
2922
3174
  }({});
2923
- 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 }];
2924
- function Co(e2) {
2925
- return So.find((t2) => t2.type === e2);
2926
- }
2927
- var wo = Y.recommended;
2928
- var To = So.map(({ type: e2 }) => e2);
2929
- var Eo = `sort`;
2930
- function Do(e2) {
2931
- let t2 = Co(new URLSearchParams(e2).get(Eo));
2932
- return t2 ? t2.type : wo;
2933
- }
2934
- function Oo(e2, t2) {
3175
+ 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 }];
3176
+ function Ho(e2) {
3177
+ return Vo.find((t2) => t2.type === e2);
3178
+ }
3179
+ var Uo = Z.recommended;
3180
+ var Wo = Vo.map(({ type: e2 }) => e2);
3181
+ var Go = `sort`;
3182
+ function Ko(e2) {
3183
+ let t2 = Ho(new URLSearchParams(e2).get(Go));
3184
+ return t2 ? t2.type : Uo;
3185
+ }
3186
+ function qo(e2, t2) {
2935
3187
  let n2 = new URLSearchParams(e2);
2936
- return t2 === wo ? n2.delete(Eo) : n2.set(Eo, t2), n2.toString();
3188
+ return t2 === Uo ? n2.delete(Go) : n2.set(Go, t2), n2.toString();
2937
3189
  }
2938
- function ko() {
2939
- let { search: e2, pushSearch: t2 } = yi(), n2 = (0, import_react.useMemo)(() => Do(e2), [e2]);
2940
- return { sortTypes: To, selectedSortType: n2, selectSortType: (r2) => {
2941
- r2 !== n2 && t2(Oo(e2, r2));
3190
+ function Jo() {
3191
+ let { search: e2, pushSearch: t2 } = Ci(), n2 = (0, import_react.useMemo)(() => Ko(e2), [e2]);
3192
+ return { sortTypes: Wo, selectedSortType: n2, selectSortType: (r2) => {
3193
+ r2 !== n2 && t2(qo(e2, r2));
2942
3194
  } };
2943
3195
  }
2944
- var Ao = `https://static.wixstatic.com/media`;
2945
- var jo = `https://video.wixstatic.com/video`;
2946
- var Mo = /image:\/\/v1\/([^/#]+)/;
2947
- var No = /^(?:wix:)?video:\/\/v1\/([^/#]+)(?:\/[^#]*)?(?:#(.*))?$/;
2948
- function Po(e2) {
2949
- let t2 = e2?.match(No);
3196
+ var Yo = `https://static.wixstatic.com/media`;
3197
+ var Xo = `https://video.wixstatic.com/video`;
3198
+ var Zo = /image:\/\/v1\/([^/#]+)/;
3199
+ var Qo = /^(?:wix:)?video:\/\/v1\/([^/#]+)(?:\/[^#]*)?(?:#(.*))?$/;
3200
+ function $o(e2) {
3201
+ let t2 = e2?.match(Qo);
2950
3202
  if (!t2) return null;
2951
3203
  let [, n2, r2] = t2, i2 = new URLSearchParams(r2 ?? ``), a2 = i2.get(`posterUri`);
2952
- 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 } } : {} };
3204
+ 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 } } : {} };
2953
3205
  }
2954
- function Fo(e2) {
2955
- return e2 ? e2.match(Mo)?.[1] ?? null : null;
3206
+ function es(e2) {
3207
+ return e2 ? e2.match(Zo)?.[1] ?? null : null;
2956
3208
  }
2957
- function Io(e2) {
3209
+ function ts(e2) {
2958
3210
  if (!e2) return null;
2959
3211
  let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
2960
3212
  return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
2961
3213
  }
2962
- function Lo(e2) {
3214
+ function ns(e2) {
2963
3215
  return e2.map((e3) => ({ id: e3._id, key: e3.key, name: e3.name ?? void 0, optionRenderType: e3.optionRenderType, choices: (e3.choicesSettings?.choices ?? []).map((e4) => {
2964
- let t2 = Fo(e4.displayImage) ?? void 0;
2965
- 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) };
3216
+ let t2 = es(e4.displayImage) ?? void 0;
3217
+ 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) };
2966
3218
  }) }));
2967
3219
  }
2968
- var Ro = (e2) => {
3220
+ var rs = (e2) => {
2969
3221
  let t2 = (e2?.items ?? []).map((e3) => e3.mediaId);
2970
3222
  return t2.length > 0 ? t2 : void 0;
2971
3223
  };
2972
- function zo(e2) {
3224
+ function is(e2) {
2973
3225
  let t2 = e2.map((e3) => {
2974
- let t3 = e3._id, n2 = e3.modifierRenderType === Da.FREE_TEXT;
3226
+ let t3 = e3._id, n2 = e3.modifierRenderType === Aa.FREE_TEXT;
2975
3227
  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) => {
2976
- let t4 = Fo(e4.displayImage) ?? void 0;
2977
- return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds: Ro(e4.media) };
3228
+ let t4 = es(e4.displayImage) ?? void 0;
3229
+ return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds: rs(e4.media) };
2978
3230
  }) }];
2979
3231
  });
2980
3232
  return Object.fromEntries(t2);
2981
3233
  }
2982
- function Bo(e2) {
2983
- return e2.filter((e3) => e3.visible !== false).map(Vo);
3234
+ function as(e2) {
3235
+ return e2.filter((e3) => e3.visible !== false).map(os);
2984
3236
  }
2985
- var Vo = (e2) => {
3237
+ var os = (e2) => {
2986
3238
  let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
2987
3239
  let t3 = e3.optionChoiceIds;
2988
3240
  return [t3?.optionId, t3?.choiceId];
2989
3241
  }));
2990
- return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: Uo(e2), subscriptionPrices: Wo(e2) };
3242
+ return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: cs(e2), subscriptionPrices: ls(e2) };
2991
3243
  };
2992
- function Ho(e2) {
3244
+ function ss(e2) {
2993
3245
  return e2?.description == null ? void 0 : { description: e2.description };
2994
3246
  }
2995
- var Uo = (e2) => {
3247
+ var cs = (e2) => {
2996
3248
  let t2 = e2.price;
2997
- return { actualPrice: cs(t2?.actualPrice), compareAtPrice: X(t2?.compareAtPrice), priceAfterDiscount: X(t2?.priceAfterDiscount), pricePerUnit: Ho(e2.physicalProperties?.pricePerUnit) };
3249
+ return { actualPrice: Ds(t2?.actualPrice), compareAtPrice: Os(t2?.compareAtPrice), priceAfterDiscount: Os(t2?.priceAfterDiscount), pricePerUnit: ss(e2.physicalProperties?.pricePerUnit) };
2998
3250
  };
2999
- var Wo = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: cs(e3.price) }));
3000
- var Go = { nodes: [] };
3001
- var Ko = `@stores/product-groups`;
3002
- function qo(e2) {
3003
- 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);
3004
- 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 };
3251
+ var ls = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: Ds(e3.price) }));
3252
+ var us = { nodes: [] };
3253
+ var ds = `@stores/product-groups`;
3254
+ function fs(e2) {
3255
+ 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);
3256
+ 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 };
3005
3257
  }
3006
- function Jo(e2) {
3007
- return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ? Qo(e3.description) : void 0 }));
3258
+ function ps(e2) {
3259
+ return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ? _s(e3.description) : void 0 }));
3008
3260
  }
3009
- function Yo(e2) {
3010
- let t2 = e2.extendedFields?.namespaces?.[Ko]?.productGroupId;
3261
+ function ms(e2) {
3262
+ let t2 = e2.extendedFields?.namespaces?.[ds]?.productGroupId;
3011
3263
  return typeof t2 == `string` ? t2 : void 0;
3012
3264
  }
3013
- function Xo(e2) {
3265
+ function hs(e2) {
3014
3266
  return e2 === `WEEK` || e2 === `MONTH` || e2 === `YEAR` ? e2 : void 0;
3015
3267
  }
3016
- function Zo(e2) {
3017
- 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 }));
3268
+ function gs(e2) {
3269
+ 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 }));
3018
3270
  }
3019
- function Qo(e2) {
3271
+ function _s(e2) {
3020
3272
  return { ...e2, nodes: e2.nodes ?? [] };
3021
3273
  }
3022
- function $o(e2) {
3274
+ function vs(e2) {
3023
3275
  return (e2.breadcrumbsInfo?.breadcrumbs ?? []).map((e3) => ({ id: e3.categoryId, name: e3.categoryName, slug: e3.categorySlug }));
3024
3276
  }
3025
- function es(e2) {
3277
+ function ys(e2) {
3026
3278
  return (e2.directCategoriesInfo?.categories ?? []).flatMap((e3) => e3._id ? [{ id: e3._id }] : []);
3027
3279
  }
3028
- function ts(e2) {
3280
+ function bs(e2) {
3029
3281
  return { ...e2.displayName ? { title: e2.displayName } : {}, ...e2.altText ? { alt: e2.altText } : {} };
3030
3282
  }
3031
- function ns(e2, t2) {
3283
+ function xs(e2, t2) {
3032
3284
  let n2 = e2.image ?? e2.url;
3033
3285
  if (!n2) return;
3034
- let r2 = Io(e2.image), { title: i2, alt: a2 } = ts(e2);
3035
- 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 } } : {} } };
3286
+ let r2 = ts(e2.image), { title: i2, alt: a2 } = bs(e2);
3287
+ 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 } } : {} } };
3036
3288
  }
3037
- function rs(e2, t2) {
3038
- let n2 = Po(e2.video), r2 = n2?.url ?? e2.url;
3289
+ function Ss(e2, t2) {
3290
+ let n2 = $o(e2.video), r2 = n2?.url ?? e2.url;
3039
3291
  if (!r2) return;
3040
- let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } = ts(e2);
3292
+ let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } = bs(e2);
3041
3293
  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 } : {} } } : {} } };
3042
3294
  }
3043
- function is(e2) {
3295
+ function Cs(e2) {
3044
3296
  let t2 = e2.variantSummary?.minPriceVariant;
3045
- return t2 ? Bo([t2])[0] : void 0;
3297
+ return t2 ? as([t2])[0] : void 0;
3046
3298
  }
3047
- function as(e2) {
3048
- return { minActualPrice: X(e2.actualPriceRange?.minValue), maxActualPrice: X(e2.actualPriceRange?.maxValue), minCompareAtPrice: X(e2.compareAtPriceRange?.minValue), maxCompareAtPrice: X(e2.compareAtPriceRange?.maxValue) };
3299
+ function ws(e2) {
3300
+ return { minActualPrice: Os(e2.actualPriceRange?.minValue), maxActualPrice: Os(e2.actualPriceRange?.maxValue), minCompareAtPrice: Os(e2.compareAtPriceRange?.minValue), maxCompareAtPrice: Os(e2.compareAtPriceRange?.maxValue) };
3049
3301
  }
3050
- function os(e2) {
3302
+ function Ts(e2) {
3051
3303
  if (!e2) return;
3052
- let { title: t2, alt: n2 } = ts(e2);
3304
+ let { title: t2, alt: n2 } = bs(e2);
3053
3305
  if (e2.mediaType === `VIDEO`) {
3054
- let r3 = Po(e2.video)?.poster;
3306
+ let r3 = $o(e2.video)?.poster;
3055
3307
  return r3 ? { ...r3, name: t2, alt: n2 } : void 0;
3056
3308
  }
3057
3309
  let r2 = e2.image ?? e2.url;
3058
3310
  if (!r2) return;
3059
- let i2 = Io(e2.image);
3060
- return { uri: Fo(e2.image) ?? void 0, url: r2, width: i2?.width, height: i2?.height, name: t2, alt: n2 };
3311
+ let i2 = ts(e2.image);
3312
+ return { uri: es(e2.image) ?? void 0, url: r2, width: i2?.width, height: i2?.height, name: t2, alt: n2 };
3061
3313
  }
3062
- function ss(e2) {
3314
+ function Es(e2) {
3063
3315
  return (e2.media?.itemsInfo?.items ?? (e2.media?.main ? [e2.media.main] : [])).flatMap((e3, t2) => {
3064
- let n2 = e3.mediaType === `VIDEO` ? rs(e3, String(t2)) : ns(e3, String(t2));
3316
+ let n2 = e3.mediaType === `VIDEO` ? Ss(e3, String(t2)) : xs(e3, String(t2));
3065
3317
  return n2 ? [n2] : [];
3066
3318
  });
3067
3319
  }
3068
- var cs = (e2) => Number.parseFloat(e2?.amount);
3069
- var X = (e2) => e2?.amount == null ? void 0 : cs(e2);
3070
- var Z = function(e2) {
3320
+ var Ds = (e2) => Number.parseFloat(e2?.amount);
3321
+ var Os = (e2) => e2?.amount == null ? void 0 : Ds(e2);
3322
+ var ks = function(e2) {
3071
3323
  return e2.PRICE = `PRICE`, e2.OPTIONS = `OPTIONS`, e2.MODIFIERS = `MODIFIERS`, e2;
3072
3324
  }({});
3073
- var ls = `allCategoriesInfo.categories`;
3325
+ var As = `allCategoriesInfo.categories`;
3074
3326
  var Q = { minPrice: `min_price`, maxPrice: `max_price`, optionsWithChoice: `options_with_choice`, modifiersWithChoice: `modifiers_with_choice`, options: `options`, modifiers: `modifiers` };
3075
3327
  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` };
3076
- var us = { options: 1e3, modifiers: 1e3, choices: 2e4 };
3077
- var ds = ({ priceMin: e2, priceMax: t2 }) => {
3328
+ var js = { options: 1e3, modifiers: 1e3, choices: 2e4 };
3329
+ var Ms = ({ priceMin: e2, priceMax: t2 }) => {
3078
3330
  let n2 = [];
3079
3331
  return e2 !== void 0 && n2.push({ [$.minPrice]: { $gte: e2 } }), t2 !== void 0 && n2.push({ [$.maxPrice]: { $lte: t2 } }), n2;
3080
3332
  };
3081
- var fs = (e2, t2) => {
3333
+ var Ns = (e2, t2) => {
3082
3334
  let n2 = new Map(e2.values.map((e3) => [e3.id, e3]));
3083
3335
  return t2.flatMap((e3) => {
3084
3336
  let t3 = n2.get(e3);
3085
3337
  return t3 ? [t3.id, ...t3.childIds ?? []] : [e3];
3086
3338
  });
3087
3339
  };
3088
- var ps = (e2, t2) => ({ [e2.customizationType === ea.MODIFIER ? $.modifierChoice : $.optionChoice]: { $hasSome: fs(e2, t2) } });
3089
- var ms = (e2, t2) => {
3090
- let n2 = new Map(e2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES).map((e3) => [e3.id, e3]));
3340
+ var Ps = (e2, t2) => ({ [e2.customizationType === ra.MODIFIER ? $.modifierChoice : $.optionChoice]: { $hasSome: Ns(e2, t2) } });
3341
+ var Fs = (e2, t2) => {
3342
+ let n2 = new Map(e2.filter((e3) => e3.type === X.TEXT_CHOICES || e3.type === X.SWATCH_CHOICES).map((e3) => [e3.id, e3]));
3091
3343
  return Object.entries(t2.customizationIdToChoiceIds ?? {}).flatMap(([e3, t3]) => {
3092
3344
  let r2 = n2.get(e3);
3093
- return !r2 || t3.length === 0 ? [] : [ps(r2, t3)];
3345
+ return !r2 || t3.length === 0 ? [] : [Ps(r2, t3)];
3094
3346
  });
3095
3347
  };
3096
- function hs(e2, t2, n2) {
3097
- let r2 = [{ [ls]: { $matchItems: [{ id: e2 }] } }, ...ds(n2), ...ms(t2, n2)];
3348
+ function Is(e2, t2, n2) {
3349
+ let r2 = [{ [As]: { $matchItems: [{ id: e2 }] } }, ...Ms(n2), ...Fs(t2, n2)];
3098
3350
  return r2.length === 1 ? r2[0] : { $and: r2 };
3099
3351
  }
3100
- function gs(e2) {
3101
- let t2 = Co(e2);
3352
+ function Ls(e2) {
3353
+ let t2 = Ho(e2);
3102
3354
  if (t2?.fieldName) return [{ fieldName: t2.fieldName, order: t2.order }];
3103
3355
  }
3104
- 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];
3105
- var vs = async (e2, t2) => {
3106
- let n2 = await za({ cursorPaging: { limit: t2, cursor: e2 } }, { fields: _s });
3107
- return { products: (n2.products ?? []).map(qo), nextCursor: n2.pagingMetadata?.cursors?.next ?? void 0, hasNext: n2.pagingMetadata?.hasNext ?? false };
3356
+ 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];
3357
+ async function zs(e2) {
3358
+ let t2 = (await Ya({ fields: Rs }).eq(`_id`, e2).limit(1).find()).items[0];
3359
+ return t2 ? fs(t2) : null;
3360
+ }
3361
+ var Bs = async (e2, t2) => {
3362
+ let n2 = await qa({ cursorPaging: { limit: t2, cursor: e2 } }, { fields: Rs });
3363
+ return { products: (n2.products ?? []).map(fs), nextCursor: n2.pagingMetadata?.cursors?.next ?? void 0, hasNext: n2.pagingMetadata?.hasNext ?? false };
3108
3364
  };
3109
- async function ys({ categoryId: e2, filters: t2, filterSelection: n2, sortType: r2, productsPerPage: i2, cursor: a2 }) {
3110
- if (a2 !== void 0) return vs(a2, i2);
3111
- 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 })]);
3112
- return { products: (l2.products ?? []).map(qo), productCount: u2?.count ?? 0, nextCursor: l2.pagingMetadata?.cursors?.next ?? void 0, hasNext: l2.pagingMetadata?.hasNext ?? false };
3365
+ async function Vs({ categoryId: e2, filters: t2, filterSelection: n2, sortType: r2, productsPerPage: i2, cursor: a2 }) {
3366
+ if (a2 !== void 0) return Bs(a2, i2);
3367
+ 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 })]);
3368
+ return { products: (l2.products ?? []).map(fs), productCount: u2?.count ?? 0, nextCursor: l2.pagingMetadata?.cursors?.next ?? void 0, hasNext: l2.pagingMetadata?.hasNext ?? false };
3369
+ }
3370
+ function Hs(e2) {
3371
+ if (e2 === `IN_STOCK` || e2 === `OUT_OF_STOCK` || e2 === `PARTIALLY_OUT_OF_STOCK`) return e2;
3372
+ }
3373
+ function Us(e2) {
3374
+ if (!(!e2 || e2.customizationRenderType !== `TEXT_CHOICES` && e2.customizationRenderType !== `SWATCH_CHOICES`)) {
3375
+ if (e2.customizationType === `PRODUCT_OPTION`) return `PRODUCT_OPTION`;
3376
+ if (e2.customizationType === `MODIFIER`) return `MODIFIER`;
3377
+ }
3378
+ }
3379
+ function Ws(e2) {
3380
+ return !e2._id || !e2.key ? null : { choiceId: e2._id, key: e2.key, name: e2.name, colorCode: e2.colorCode };
3381
+ }
3382
+ function Gs(e2) {
3383
+ if (e2.status !== `ACTIVE` || !e2.productId || !e2.slug || !e2.choice) return null;
3384
+ let t2 = Ws(e2.choice);
3385
+ return t2 ? { productId: e2.productId, choice: t2, slug: e2.slug, inventoryAvailabilityStatus: Hs(e2.inventoryAvailabilityStatus) } : null;
3386
+ }
3387
+ function Ks(e2) {
3388
+ let t2 = e2.groupingCustomizationId, n2 = Us(e2.groupingCustomization);
3389
+ if (!t2 || !n2) return;
3390
+ let r2 = (e2.members ?? []).map((e3) => Gs(e3)).filter((e3) => e3 !== null);
3391
+ if (r2.length !== 0) return { groupingCustomizationId: t2, customizationType: n2, members: r2 };
3392
+ }
3393
+ function qs(e2) {
3394
+ let t2 = /* @__PURE__ */ new Map();
3395
+ for (let n2 of e2) {
3396
+ let e3 = n2._id;
3397
+ if (!e3) continue;
3398
+ let r2 = Ks(n2);
3399
+ r2 && t2.set(e3, r2);
3400
+ }
3401
+ return t2;
3402
+ }
3403
+ async function Js(e2) {
3404
+ if (e2.length === 0) return /* @__PURE__ */ new Map();
3405
+ try {
3406
+ return qs((await ao({ fields: [$a.GROUPING_CUSTOMIZATION] }).in(`_id`, e2).limit(100).find()).items);
3407
+ } catch {
3408
+ return /* @__PURE__ */ new Map();
3409
+ }
3113
3410
  }
3114
- var bs = (e2, t2) => `${e2}:${[...t2].toSorted().join(`,`)}`;
3115
- function xs(e2) {
3116
- if (bi(e2)) return ``;
3117
- let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => bs(e3, t3)).toSorted().join(`;`), n2 = [];
3411
+ function Ys(e2, t2) {
3412
+ let n2 = /* @__PURE__ */ new Set();
3413
+ for (let r2 of e2) {
3414
+ let e3 = r2.productGroupId;
3415
+ e3 && !t2.has(e3) && n2.add(e3);
3416
+ }
3417
+ return n2;
3418
+ }
3419
+ async function Xs(e2, t2) {
3420
+ let n2 = Ys(e2, t2);
3421
+ return n2.size === 0 ? /* @__PURE__ */ new Map() : Js([...n2]);
3422
+ }
3423
+ var Zs = (e2, t2) => `${e2}:${[...t2].toSorted().join(`,`)}`;
3424
+ function Qs(e2) {
3425
+ if (wi(e2)) return ``;
3426
+ let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => Zs(e3, t3)).toSorted().join(`;`), n2 = [];
3118
3427
  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(`&`);
3119
3428
  }
3120
- function Ss(e2, t2, i2, a2, o2, s2) {
3121
- 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 = (0, import_react.useCallback)(async () => {
3122
- await m2({ cancelRefetch: false });
3123
- }, [m2]);
3124
- return { products: (0, import_react.useMemo)(() => (u2?.pages ?? []).flatMap((e3) => e3.products), [u2]), productCount: u2?.pages[0]?.productCount ?? 0, isLoadingProducts: d2, hasProductsError: f2, hasMoreProducts: p2, loadMoreProducts: ee2 };
3429
+ function $s(e2, t2, a2, o2, s2, c2) {
3430
+ 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 = (0, import_react.useRef)(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 }) => {
3431
+ let r2 = await Vs({ categoryId: e2, filters: t2, filterSelection: a2, sortType: o2, productsPerPage: s2, cursor: n2 });
3432
+ return (await Xs(r2.products, f2.current)).forEach((e3, t3) => f2.current.set(t3, e3)), r2;
3433
+ }, initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: d2, staleTime: 1 / 0, placeholderData: Qn, retry: false }), _2 = (0, import_react.useCallback)(async () => {
3434
+ await g2({ cancelRefetch: false });
3435
+ }, [g2]);
3436
+ return { products: (0, import_react.useMemo)(() => (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 };
3437
+ }
3438
+ function ec(e2, t2) {
3439
+ let n2 = new Set(e2.map((e3) => e3.id));
3440
+ return [...new Set(t2.values())].filter((e3) => !n2.has(e3));
3441
+ }
3442
+ function tc(e2, t2, n2) {
3443
+ let r2 = new Map([...e2, ...t2].map((e3) => [e3.id, e3])), i2 = /* @__PURE__ */ new Map();
3444
+ return n2.forEach((e3, t3) => {
3445
+ let n3 = r2.get(e3);
3446
+ n3 && i2.set(t3, n3);
3447
+ }), i2;
3448
+ }
3449
+ function nc(e2) {
3450
+ return ni({ queries: e2.map((e3) => ({ queryKey: [`sibling-product`, e3], queryFn: () => zs(e3), staleTime: 1 / 0, retry: false })) }).flatMap(({ data: e3 }) => e3 ? [e3] : []);
3451
+ }
3452
+ function rc(e2, t2) {
3453
+ return tc(e2, nc((0, import_react.useMemo)(() => ec(e2, t2), [e2, t2])), t2);
3454
+ }
3455
+ function ic({ products: e2, productListKey: t2 }) {
3456
+ let [i2, o2] = (0, import_react.useState)(() => /* @__PURE__ */ new Map()), [s2, c2] = (0, import_react.useState)(t2);
3457
+ s2 !== t2 && (c2(t2), o2(/* @__PURE__ */ new Map()));
3458
+ let l2 = rc(e2, i2);
3459
+ return { displayedProducts: (0, import_react.useMemo)(() => e2.map((e3, t3) => l2.get(t3) ?? e3), [e2, l2]), selectProductGroupMember: (0, import_react.useCallback)((t3, n2) => {
3460
+ let r2 = e2[t3];
3461
+ r2 && o2((e3) => ac(e3, t3, n2, r2.id));
3462
+ }, [e2]) };
3463
+ }
3464
+ function ac(e2, t2, n2, r2) {
3465
+ let i2 = new Map(e2);
3466
+ return n2 === r2 ? i2.delete(t2) : i2.set(t2, n2), i2;
3467
+ }
3468
+ function oc({ products: e2, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 }) {
3469
+ let o2 = (0, import_react.useRef)([]);
3470
+ return (0, import_react.useMemo)(() => {
3471
+ if (t2.size === 0) return e2.map((e3) => ({ product: e3, defaultLocationId: n2 }));
3472
+ let r2 = sc({ displayedProducts: e2, previousProductItems: o2.current, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 });
3473
+ return o2.current = r2, r2;
3474
+ }, [e2, t2, n2, a2]);
3475
+ }
3476
+ function sc({ displayedProducts: e2, previousProductItems: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3477
+ return e2.map((e3, a2) => {
3478
+ let o2 = t2[a2];
3479
+ return o2?.product === e3 ? o2 : cc({ product: e3, productItemIndex: a2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 });
3480
+ });
3125
3481
  }
3126
- function Cs(e2, t2) {
3127
- 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);
3128
- return { filters: i2, currency: a2, productItems: (0, import_react.useMemo)(() => d2.map((e3) => ({ product: e3, defaultLocationId: c2 })), [d2, c2]), promotionItems: (0, import_react.useMemo)(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...f2 };
3482
+ function cc({ product: e2, productItemIndex: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3483
+ let a2 = lc({ productGroup: e2.productGroupId ? n2.get(e2.productGroupId) : void 0, productItemIndex: t2, selectProductGroupMember: i2 });
3484
+ return { product: e2, defaultLocationId: r2, ...a2 && { productGroupData: a2 } };
3485
+ }
3486
+ function lc({ productGroup: e2, productItemIndex: t2, selectProductGroupMember: n2 }) {
3487
+ if (e2) return { productGroup: e2, selectProductGroupMember: (r2) => {
3488
+ e2.members.some((e3) => e3.productId === r2) && n2(t2, r2);
3489
+ } };
3129
3490
  }
3130
- var ws = ti(`@wix/site-service-warmup-data`);
3131
- async function Ts(e2, t2, n2) {
3491
+ function uc(e2, t2) {
3492
+ 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 });
3493
+ return { filters: i2, currency: a2, productItems: oc({ products: f2.size > 0 ? h2.displayedProducts : d2, productGroupByGroupId: f2, defaultLocationId: c2, selectProductGroupMember: h2.selectProductGroupMember }), promotionItems: (0, import_react.useMemo)(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...m2 };
3494
+ }
3495
+ var dc = ai(`@wix/site-service-warmup-data`);
3496
+ async function fc(e2, t2, n2) {
3132
3497
  let r2 = typeof window > `u`;
3133
3498
  if (!r2 && e2) try {
3134
3499
  let n3 = await e2.get(t2);
@@ -3142,58 +3507,58 @@ async function Ts(e2, t2, n2) {
3142
3507
  }
3143
3508
  return i2;
3144
3509
  }
3145
- function Es(e2, t2) {
3510
+ function pc(e2, t2) {
3146
3511
  let n2 = (0, import_services_manager_react.useGetService)(), [r2] = (0, import_react.useState)(() => {
3147
3512
  let r3;
3148
3513
  try {
3149
- r3 = n2(ws);
3514
+ r3 = n2(dc);
3150
3515
  } catch {
3151
3516
  r3 = null;
3152
3517
  }
3153
- return Ts(r3, e2, t2);
3518
+ return fc(r3, e2, t2);
3154
3519
  });
3155
3520
  return r2;
3156
3521
  }
3157
- var Ds = (e2) => {
3522
+ var mc = (e2) => {
3158
3523
  let t2 = e2.pathname.split(`/`).filter(Boolean).at(-1);
3159
3524
  return t2 ? decodeURIComponent(t2) : void 0;
3160
3525
  };
3161
- function Os() {
3162
- let { url: e2 } = yi();
3163
- return Ds(e2);
3526
+ function hc() {
3527
+ let { url: e2 } = Ci();
3528
+ return mc(e2);
3164
3529
  }
3165
- function ks(e2) {
3166
- 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` }] } }));
3530
+ function gc(e2) {
3531
+ 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` }] } }));
3167
3532
  }
3168
- var As = `@wix/auto_sdk_categories_categories`;
3169
- function js(e2) {
3533
+ var _c = `@wix/auto_sdk_categories_categories`;
3534
+ function vc(e2) {
3170
3535
  function t2({ host: t3 }) {
3171
- 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` }] }]) };
3536
+ 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` }] }]) };
3172
3537
  }
3173
3538
  return t2;
3174
3539
  }
3175
- function Ms(e2) {
3540
+ function yc(e2) {
3176
3541
  function t2({ host: t3 }) {
3177
- 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` }] }]) };
3542
+ 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` }] }]) };
3178
3543
  }
3179
3544
  return t2;
3180
3545
  }
3181
- var Ns = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(Ns || {});
3182
- async function Ps(e2, t2, n2) {
3183
- let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = js(S({ slug: e2, treeReference: t2, fields: n2?.fields }, []));
3546
+ var bc = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(bc || {});
3547
+ async function xc(e2, t2, n2) {
3548
+ let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = vc(w({ slug: e2, treeReference: t2, fields: n2?.fields }, []));
3184
3549
  i2?.onSiteCall?.();
3185
3550
  try {
3186
3551
  let e3 = await r2.request(a2);
3187
- return i2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `category.image` }] }]), [`category.richContentDescription`]);
3552
+ return i2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `category.image` }] }]), [`category.richContentDescription`]);
3188
3553
  } catch (e3) {
3189
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, treeReference: `$[1]`, fields: `$[2].fields` }, singleArgumentUnchanged: false }, [`slug`, `treeReference`, `options`]);
3554
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, treeReference: `$[1]`, fields: `$[2].fields` }, singleArgumentUnchanged: false }, [`slug`, `treeReference`, `options`]);
3190
3555
  throw i2?.onError?.(e3), t3;
3191
3556
  }
3192
3557
  }
3193
- function Fs(e2) {
3558
+ function Sc(e2) {
3194
3559
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3195
- return Ni({ func: async (r2) => {
3196
- let i2 = Ms({ ...r2, ...e2 });
3560
+ return Li({ func: async (r2) => {
3561
+ let i2 = yc({ ...r2, ...e2 });
3197
3562
  n2?.onSiteCall?.();
3198
3563
  try {
3199
3564
  let e3 = await t2.request(i2);
@@ -3203,110 +3568,110 @@ function Fs(e2) {
3203
3568
  }
3204
3569
  }, requestTransformer: (t3) => {
3205
3570
  let n3 = [t3, e2];
3206
- return S({ ...n3?.[1], query: n3?.[0] }, []);
3571
+ return w({ ...n3?.[1], query: n3?.[0] }, []);
3207
3572
  }, responseTransformer: ({ data: e3 }) => {
3208
- let t3 = C(T(e3, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3573
+ let t3 = T(D(e3, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3209
3574
  return { items: t3?.categories, pagingMetadata: t3?.pagingMetadata };
3210
3575
  }, errorTransformer: (e3) => {
3211
- throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3576
+ throw O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3212
3577
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3213
3578
  }
3214
- async function Is(e2, t2) {
3215
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ms(S({ query: e2, ...t2 }, []));
3579
+ async function Cc(e2, t2) {
3580
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = yc(w({ query: e2, ...t2 }, []));
3216
3581
  r2?.onSiteCall?.();
3217
3582
  try {
3218
3583
  let e3 = await n2.request(i2);
3219
- return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3584
+ return r2?.onSuccess?.(e3), T(D(e3.data, [{ transformFn: U, paths: [{ path: `categories.image` }] }]), [`categories.richContentDescription`]);
3220
3585
  } catch (e3) {
3221
- let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3586
+ let t3 = O(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3222
3587
  throw r2?.onError?.(e3), t3;
3223
3588
  }
3224
3589
  }
3225
- ({ ...H() }, { ...xa() });
3226
- function Ls(e2) {
3227
- return (t2, n2, r2) => Ps(t2, n2, r2, { httpClient: e2 });
3590
+ ({ ...H() }, { ...Ta() });
3591
+ function wc(e2) {
3592
+ return (t2, n2, r2) => xc(t2, n2, r2, { httpClient: e2 });
3228
3593
  }
3229
- function Rs(e2) {
3230
- return (t2) => Fs(t2, { httpClient: e2 });
3594
+ function Tc(e2) {
3595
+ return (t2) => Sc(t2, { httpClient: e2 });
3231
3596
  }
3232
- function zs(e2) {
3233
- return (t2, n2) => Is(t2, n2, { httpClient: e2 });
3597
+ function Ec(e2) {
3598
+ return (t2, n2) => Cc(t2, n2, { httpClient: e2 });
3234
3599
  }
3235
- var Bs = y(`wix.categories.v1.category_category_moved`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3236
- 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` }] }])))();
3237
- 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` }] }])))();
3238
- var Us = y(`wix.categories.v1.category_item_added_to_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3239
- var Ws = y(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3240
- var Gs = y(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3241
- 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` }] }])))();
3242
- function qs(e2) {
3243
- let t2 = qi({ builderQueryFunction: (t3) => Rs(e2)(t3), typedQueryFunction: (t3, n3) => zs(e2)(t3, n3), hasOptionsParameter: true });
3600
+ var Dc = x(`wix.categories.v1.category_category_moved`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3601
+ 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` }] }])))();
3602
+ 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` }] }])))();
3603
+ var Ac = x(`wix.categories.v1.category_item_added_to_category`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3604
+ var jc = x(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3605
+ var Mc = x(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => T(D(e2, [{ transformFn: E, paths: [{ path: `metadata.eventTime` }] }])))();
3606
+ 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` }] }])))();
3607
+ function Pc(e2) {
3608
+ let t2 = Zi({ builderQueryFunction: (t3) => Tc(e2)(t3), typedQueryFunction: (t3, n3) => Ec(e2)(t3, n3), hasOptionsParameter: true });
3244
3609
  function n2(e3, n3) {
3245
3610
  return t2(...arguments);
3246
3611
  }
3247
3612
  return n2;
3248
3613
  }
3249
- var Js = D(Ls);
3250
- var Ys = D(qs);
3251
- A(Bs), A(Vs), A(Hs), A(Us), A(Ws), A(Gs), A(Ks);
3252
- function Xs(e2) {
3614
+ var Fc = k(wc);
3615
+ var Ic = k(Pc);
3616
+ M(Dc), M(Oc), M(kc), M(Ac), M(jc), M(Mc), M(Nc);
3617
+ function Lc(e2) {
3253
3618
  if (!e2) return null;
3254
3619
  let t2 = e2.match(/image:\/\/v1\/([^/#]+)/);
3255
3620
  return t2?.[1] ? t2[1] : e2.match(/\/media\/([^/]+)/)?.[1] ?? null;
3256
3621
  }
3257
- function Zs(e2) {
3622
+ function Rc(e2) {
3258
3623
  return `https://static.wixstatic.com/media/${e2}`;
3259
3624
  }
3260
- function Qs(e2) {
3625
+ function zc(e2) {
3261
3626
  if (!e2) return null;
3262
3627
  let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
3263
3628
  return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
3264
3629
  }
3265
- var $s = (e2) => `/category/${e2}`;
3266
- var ec = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
3267
- var tc = (e2) => {
3630
+ var Bc = (e2) => `/category/${e2}`;
3631
+ var Vc = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
3632
+ var Hc = (e2) => {
3268
3633
  if (!e2) return;
3269
- let t2 = Qs(e2);
3270
- return { uri: Xs(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
3634
+ let t2 = zc(e2);
3635
+ return { uri: Lc(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
3271
3636
  };
3272
- var nc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
3637
+ var Uc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
3273
3638
  let t2 = e3.categorySlug ?? ``;
3274
- return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: $s(t2) };
3639
+ return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: Bc(t2) };
3275
3640
  });
3276
- 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 });
3277
- var ic = (e2) => {
3641
+ 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 });
3642
+ var Gc = (e2) => {
3278
3643
  if (e2) return { preventAutoRedirect: e2.preventAutoRedirect, keywords: e2.keywords?.map((e3) => ({ term: e3.term, isMain: e3.isMain, origin: e3.origin ?? void 0 })) };
3279
3644
  };
3280
- var ac = (e2) => {
3281
- if (e2) return { tags: e2.tags?.map(rc), settings: ic(e2.settings) };
3645
+ var Kc = (e2) => {
3646
+ if (e2) return { tags: e2.tags?.map(Wc), settings: Gc(e2.settings) };
3282
3647
  };
3283
- function oc(e2) {
3284
- 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 ?? []) };
3648
+ function qc(e2) {
3649
+ 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 ?? []) };
3285
3650
  }
3286
- var sc = { appNamespace: `@wix/stores`, treeKey: null };
3287
- var cc = [Ns.BREADCRUMBS_INFO, Ns.DESCRIPTION, Ns.RICH_CONTENT_DESCRIPTION];
3288
- var lc = `No category slug is available for the category context`;
3289
- var uc = (e2, t2) => {
3651
+ var Jc = { appNamespace: `@wix/stores`, treeKey: null };
3652
+ var Yc = [bc.BREADCRUMBS_INFO, bc.DESCRIPTION, bc.RICH_CONTENT_DESCRIPTION];
3653
+ var Xc = `No category slug is available for the category context`;
3654
+ var Zc = (e2, t2) => {
3290
3655
  if (!e2?._id || e2.visible === false) throw Error(t2);
3291
- return oc(e2);
3656
+ return qc(e2);
3292
3657
  };
3293
- async function dc(e2) {
3294
- if (!e2) throw Error(lc);
3295
- let { category: t2 } = await Js(e2, sc, { fields: cc });
3296
- return uc(t2, `Category not found for slug: ${e2}`);
3658
+ async function Qc(e2) {
3659
+ if (!e2) throw Error(Xc);
3660
+ let { category: t2 } = await Fc(e2, Jc, { fields: Yc });
3661
+ return Zc(t2, `Category not found for slug: ${e2}`);
3297
3662
  }
3298
- async function fc() {
3299
- return (await Ya().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
3663
+ async function $c() {
3664
+ return (await ho().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
3300
3665
  }
3301
- var pc = (e2, t2, n2) => {
3666
+ var el = (e2, t2, n2) => {
3302
3667
  let r2 = [];
3303
3668
  for (let i2 of e2.keys()) if (!t2.has(i2)) {
3304
3669
  let e3 = n2.find((e4) => e4._id === i2);
3305
- e3 && r2.push(Cc(e3, 0));
3670
+ e3 && r2.push(ul(e3, 0));
3306
3671
  }
3307
3672
  return r2;
3308
3673
  };
3309
- var mc = (e2) => {
3674
+ var tl = (e2) => {
3310
3675
  let t2 = /* @__PURE__ */ new Map();
3311
3676
  for (let { _id: n2, primaryChoiceIds: r2 } of e2) if (n2) for (let e3 of r2 ?? []) {
3312
3677
  let r3 = t2.get(e3) ?? [];
@@ -3314,8 +3679,8 @@ var mc = (e2) => {
3314
3679
  }
3315
3680
  return t2;
3316
3681
  };
3317
- var hc = (e2, t2, n2) => {
3318
- 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());
3682
+ var nl = (e2, t2, n2) => {
3683
+ 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());
3319
3684
  return i2.flatMap((e3) => {
3320
3685
  if (o2.has(e3.id)) return [];
3321
3686
  let n3 = t2.get(e3.id);
@@ -3326,77 +3691,77 @@ var hc = (e2, t2, n2) => {
3326
3691
  return [{ ...e3, count: e3.count + i3, linkedChoiceIds: r3 }];
3327
3692
  });
3328
3693
  };
3329
- function gc(e2, t2) {
3330
- return hc(e2, mc(t2), t2);
3694
+ function rl(e2, t2) {
3695
+ return nl(e2, tl(t2), t2);
3331
3696
  }
3332
- var _c = (e2) => {
3697
+ var il = (e2) => {
3333
3698
  let t2 = e2.trim();
3334
3699
  if (t2 === ``) return null;
3335
3700
  let n2 = Number(t2);
3336
3701
  return Number.isFinite(n2) ? n2 : null;
3337
3702
  };
3338
- var vc = (e2, t2) => {
3703
+ var al = (e2, t2) => {
3339
3704
  let n2 = t2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3, t3) => [e3._id ?? ``, t3])), i2 = (e3) => r2.get(e3.id) ?? 2 ** 53 - 1;
3340
3705
  return e2.toSorted((e3, t3) => i2(e3) - i2(t3));
3341
3706
  };
3342
- var yc = (e2, t2, n2) => t2 === W.TEXT_CHOICES ? xc(e2, (e3) => e3.name) : n2 ? bc(e2, (e3) => e3.count) : [...e2];
3343
- var bc = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
3344
- var xc = (e2, t2) => e2.toSorted((e3, n2) => {
3345
- let r2 = _c(t2(e3)), i2 = _c(t2(n2));
3707
+ var ol = (e2, t2, n2) => t2 === G.TEXT_CHOICES ? cl(e2, (e3) => e3.name) : n2 ? sl(e2, (e3) => e3.count) : [...e2];
3708
+ var sl = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
3709
+ var cl = (e2, t2) => e2.toSorted((e3, n2) => {
3710
+ let r2 = il(t2(e3)), i2 = il(t2(n2));
3346
3711
  return r2 !== null && i2 !== null ? r2 - i2 : r2 === null ? i2 === null ? t2(e3).toLowerCase().localeCompare(t2(n2).toLowerCase()) : 1 : -1;
3347
3712
  });
3348
- function Sc(e2, t2, n2) {
3713
+ function ll(e2, t2, n2) {
3349
3714
  switch (t2.choicesSettings?.sortOrder) {
3350
- case G.BY_NAME:
3351
- return xc(e2, (e3) => e3.name);
3352
- case G.BY_PRODUCT_COUNT:
3353
- return bc(e2, (e3) => e3.count);
3354
- case G.MANUAL:
3355
- return vc(e2, t2);
3356
- case G.DEFAULT:
3715
+ case ia.BY_NAME:
3716
+ return cl(e2, (e3) => e3.name);
3717
+ case ia.BY_PRODUCT_COUNT:
3718
+ return sl(e2, (e3) => e3.count);
3719
+ case ia.MANUAL:
3720
+ return al(e2, t2);
3721
+ case ia.DEFAULT:
3357
3722
  default:
3358
- return yc(e2, t2.customizationRenderType, n2);
3723
+ return ol(e2, t2.customizationRenderType, n2);
3359
3724
  }
3360
3725
  }
3361
- 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 });
3362
- function wc(e2, t2) {
3726
+ 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 });
3727
+ function dl(e2, t2) {
3363
3728
  let n2 = e2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3) => [e3._id, e3])), i2 = [...t2].flatMap(([e3, t3]) => {
3364
3729
  let n3 = r2.get(e3);
3365
- return n3 ? [Cc(n3, t3)] : [];
3730
+ return n3 ? [ul(n3, t3)] : [];
3366
3731
  }), a2 = n2.some((e3) => (e3.primaryChoiceIds?.length ?? 0) > 0);
3367
- return Sc(a2 ? gc(i2, n2) : i2, e2, a2);
3732
+ return ll(a2 ? rl(i2, n2) : i2, e2, a2);
3368
3733
  }
3369
- var Tc = (e2) => {
3370
- let t2 = Xs(e2);
3734
+ var fl = (e2) => {
3735
+ let t2 = Lc(e2);
3371
3736
  if (!t2) return;
3372
- let n2 = Qs(e2);
3373
- return { id: t2, url: Zs(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3737
+ let n2 = zc(e2);
3738
+ return { id: t2, url: Rc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3374
3739
  };
3375
- var Ec = (e2) => {
3376
- let t2 = e2.displayImage === void 0 ? void 0 : Tc(e2.displayImage);
3377
- return { ...Oc(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
3740
+ var pl = (e2) => {
3741
+ let t2 = e2.displayImage === void 0 ? void 0 : fl(e2.displayImage);
3742
+ return { ...hl(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
3378
3743
  };
3379
- var Dc = (e2) => ({ type: J.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Ec) });
3380
- var Oc = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
3381
- var kc = (e2) => ({ type: J.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Oc) });
3382
- var Ac = (e2, t2, n2, r2) => {
3744
+ var ml = (e2) => ({ type: X.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(pl) });
3745
+ var hl = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
3746
+ var gl = (e2) => ({ type: X.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(hl) });
3747
+ var _l = (e2, t2, n2, r2) => {
3383
3748
  let i2 = new Map(t2.map((e3) => [e3._id, e3]));
3384
3749
  return n2.flatMap((t3) => {
3385
3750
  let n3 = i2.get(t3);
3386
- return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: wc(n3, r2) }] : [];
3751
+ return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: dl(n3, r2) }] : [];
3387
3752
  });
3388
3753
  };
3389
- var jc = (e2) => xc(e2.filter((e3) => e3.renderType === W.SWATCH_CHOICES).map(Dc), (e3) => e3.name);
3390
- var Mc = (e2) => xc(e2.filter((e3) => e3.renderType === W.TEXT_CHOICES).map(kc), (e3) => e3.name);
3391
- function Nc(e2, t2, n2, r2) {
3754
+ var vl = (e2) => cl(e2.filter((e3) => e3.renderType === G.SWATCH_CHOICES).map(ml), (e3) => e3.name);
3755
+ var yl = (e2) => cl(e2.filter((e3) => e3.renderType === G.TEXT_CHOICES).map(gl), (e3) => e3.name);
3756
+ function bl(e2, t2, n2, r2) {
3392
3757
  if (n2.length === 0) return [];
3393
- let i2 = Ac(e2, t2, n2, r2);
3394
- return [...jc(i2), ...Mc(i2)];
3758
+ let i2 = _l(e2, t2, n2, r2);
3759
+ return [...vl(i2), ...yl(i2)];
3395
3760
  }
3396
- function Pc(e2, t2) {
3397
- if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: J.PRICE, name: oo.PRICE, minPrice: e2, maxPrice: t2 };
3761
+ function xl(e2, t2) {
3762
+ if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: X.PRICE, name: Eo.PRICE, minPrice: e2, maxPrice: t2 };
3398
3763
  }
3399
- var Fc = g((e2, t2) => {
3764
+ var Sl = v((e2, t2) => {
3400
3765
  function n2(e3, t3, n3) {
3401
3766
  var r2 = -1, i2 = e3.length;
3402
3767
  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;
@@ -3405,24 +3770,24 @@ var Fc = g((e2, t2) => {
3405
3770
  }
3406
3771
  t2.exports = n2;
3407
3772
  });
3408
- var Ic = g((e2, t2) => {
3773
+ var Cl = v((e2, t2) => {
3409
3774
  function n2(e3, t3) {
3410
3775
  return e3 === t3 || e3 !== e3 && t3 !== t3;
3411
3776
  }
3412
3777
  t2.exports = n2;
3413
3778
  });
3414
- var Lc = g((e2, t2) => {
3779
+ var wl = v((e2, t2) => {
3415
3780
  t2.exports = typeof window == `object` && window && window.Object === Object && window;
3416
3781
  });
3417
- var Rc = g((e2, t2) => {
3418
- var n2 = Lc(), r2 = typeof self == `object` && self && self.Object === Object && self;
3782
+ var Tl = v((e2, t2) => {
3783
+ var n2 = wl(), r2 = typeof self == `object` && self && self.Object === Object && self;
3419
3784
  t2.exports = n2 || r2 || Function(`return this`)();
3420
3785
  });
3421
- var zc = g((e2, t2) => {
3422
- t2.exports = Rc().Symbol;
3786
+ var El = v((e2, t2) => {
3787
+ t2.exports = Tl().Symbol;
3423
3788
  });
3424
- var Bc = g((e2, t2) => {
3425
- var n2 = zc(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
3789
+ var Dl = v((e2, t2) => {
3790
+ var n2 = El(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
3426
3791
  function s2(e3) {
3427
3792
  var t3 = i2.call(e3, o2), n3 = e3[o2];
3428
3793
  try {
@@ -3435,29 +3800,29 @@ var Bc = g((e2, t2) => {
3435
3800
  }
3436
3801
  t2.exports = s2;
3437
3802
  });
3438
- var Vc = g((e2, t2) => {
3803
+ var Ol = v((e2, t2) => {
3439
3804
  var n2 = Object.prototype.toString;
3440
3805
  function r2(e3) {
3441
3806
  return n2.call(e3);
3442
3807
  }
3443
3808
  t2.exports = r2;
3444
3809
  });
3445
- var Hc = g((e2, t2) => {
3446
- var n2 = zc(), r2 = Bc(), i2 = Vc(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
3810
+ var kl = v((e2, t2) => {
3811
+ var n2 = El(), r2 = Dl(), i2 = Ol(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
3447
3812
  function c2(e3) {
3448
3813
  return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
3449
3814
  }
3450
3815
  t2.exports = c2;
3451
3816
  });
3452
- var Uc = g((e2, t2) => {
3817
+ var Al = v((e2, t2) => {
3453
3818
  function n2(e3) {
3454
3819
  var t3 = typeof e3;
3455
3820
  return e3 != null && (t3 == `object` || t3 == `function`);
3456
3821
  }
3457
3822
  t2.exports = n2;
3458
3823
  });
3459
- var Wc = g((e2, t2) => {
3460
- var n2 = Hc(), r2 = Uc(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
3824
+ var jl = v((e2, t2) => {
3825
+ var n2 = kl(), r2 = Al(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
3461
3826
  function c2(e3) {
3462
3827
  if (!r2(e3)) return false;
3463
3828
  var t3 = n2(e3);
@@ -3465,20 +3830,20 @@ var Wc = g((e2, t2) => {
3465
3830
  }
3466
3831
  t2.exports = c2;
3467
3832
  });
3468
- var Gc = g((e2, t2) => {
3833
+ var Ml = v((e2, t2) => {
3469
3834
  function n2(e3) {
3470
3835
  return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
3471
3836
  }
3472
3837
  t2.exports = n2;
3473
3838
  });
3474
- var Kc = g((e2, t2) => {
3475
- var n2 = Wc(), r2 = Gc();
3839
+ var Nl = v((e2, t2) => {
3840
+ var n2 = jl(), r2 = Ml();
3476
3841
  function i2(e3) {
3477
3842
  return e3 != null && r2(e3.length) && !n2(e3);
3478
3843
  }
3479
3844
  t2.exports = i2;
3480
3845
  });
3481
- var qc = g((e2, t2) => {
3846
+ var Pl = v((e2, t2) => {
3482
3847
  var n2 = /^(?:0|[1-9]\d*)$/;
3483
3848
  function r2(e3, t3) {
3484
3849
  var r3 = typeof e3;
@@ -3486,8 +3851,8 @@ var qc = g((e2, t2) => {
3486
3851
  }
3487
3852
  t2.exports = r2;
3488
3853
  });
3489
- var Jc = g((e2, t2) => {
3490
- var n2 = Ic(), r2 = Kc(), i2 = qc(), a2 = Uc();
3854
+ var Fl = v((e2, t2) => {
3855
+ var n2 = Cl(), r2 = Nl(), i2 = Pl(), a2 = Al();
3491
3856
  function o2(e3, t3, o3) {
3492
3857
  if (!a2(o3)) return false;
3493
3858
  var s2 = typeof t3;
@@ -3495,7 +3860,7 @@ var Jc = g((e2, t2) => {
3495
3860
  }
3496
3861
  t2.exports = o2;
3497
3862
  });
3498
- var Yc = g((e2, t2) => {
3863
+ var Il = v((e2, t2) => {
3499
3864
  var n2 = /\s/;
3500
3865
  function r2(e3) {
3501
3866
  for (var t3 = e3.length; t3-- && n2.test(e3.charAt(t3)); ) ;
@@ -3503,28 +3868,28 @@ var Yc = g((e2, t2) => {
3503
3868
  }
3504
3869
  t2.exports = r2;
3505
3870
  });
3506
- var Xc = g((e2, t2) => {
3507
- var n2 = Yc(), r2 = /^\s+/;
3871
+ var Ll = v((e2, t2) => {
3872
+ var n2 = Il(), r2 = /^\s+/;
3508
3873
  function i2(e3) {
3509
3874
  return e3 && e3.slice(0, n2(e3) + 1).replace(r2, ``);
3510
3875
  }
3511
3876
  t2.exports = i2;
3512
3877
  });
3513
- var Zc = g((e2, t2) => {
3878
+ var Rl = v((e2, t2) => {
3514
3879
  function n2(e3) {
3515
3880
  return typeof e3 == `object` && !!e3;
3516
3881
  }
3517
3882
  t2.exports = n2;
3518
3883
  });
3519
- var Qc = g((e2, t2) => {
3520
- var n2 = Hc(), r2 = Zc(), i2 = `[object Symbol]`;
3884
+ var zl = v((e2, t2) => {
3885
+ var n2 = kl(), r2 = Rl(), i2 = `[object Symbol]`;
3521
3886
  function a2(e3) {
3522
3887
  return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
3523
3888
  }
3524
3889
  t2.exports = a2;
3525
3890
  });
3526
- var $c = g((e2, t2) => {
3527
- 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;
3891
+ var Bl = v((e2, t2) => {
3892
+ 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;
3528
3893
  function u2(e3) {
3529
3894
  if (typeof e3 == `number`) return e3;
3530
3895
  if (i2(e3)) return a2;
@@ -3539,23 +3904,23 @@ var $c = g((e2, t2) => {
3539
3904
  }
3540
3905
  t2.exports = u2;
3541
3906
  });
3542
- var el = g((e2, t2) => {
3543
- var n2 = $c(), r2 = 1 / 0, i2 = 17976931348623157e292;
3907
+ var Vl = v((e2, t2) => {
3908
+ var n2 = Bl(), r2 = 1 / 0, i2 = 17976931348623157e292;
3544
3909
  function a2(e3) {
3545
3910
  return e3 ? (e3 = n2(e3), e3 === r2 || e3 === -r2 ? (e3 < 0 ? -1 : 1) * i2 : e3 === e3 ? e3 : 0) : e3 === 0 ? e3 : 0;
3546
3911
  }
3547
3912
  t2.exports = a2;
3548
3913
  });
3549
- var tl = g((e2, t2) => {
3550
- var n2 = el();
3914
+ var Hl = v((e2, t2) => {
3915
+ var n2 = Vl();
3551
3916
  function r2(e3) {
3552
3917
  var t3 = n2(e3), r3 = t3 % 1;
3553
3918
  return t3 === t3 ? r3 ? t3 - r3 : t3 : 0;
3554
3919
  }
3555
3920
  t2.exports = r2;
3556
3921
  });
3557
- var nl = _(g((e2, t2) => {
3558
- var n2 = Fc(), r2 = Jc(), i2 = tl(), a2 = Math.ceil, o2 = Math.max;
3922
+ var Ul = y(v((e2, t2) => {
3923
+ var n2 = Sl(), r2 = Fl(), i2 = Hl(), a2 = Math.ceil, o2 = Math.max;
3559
3924
  function s2(e3, t3, s3) {
3560
3925
  t3 = (s3 ? r2(e3, t3, s3) : t3 === void 0) ? 1 : o2(i2(t3), 0);
3561
3926
  var c2 = e3 == null ? 0 : e3.length;
@@ -3565,105 +3930,105 @@ var nl = _(g((e2, t2) => {
3565
3930
  }
3566
3931
  t2.exports = s2;
3567
3932
  })(), 1);
3568
- var rl = [ta.CHOICE_DISPLAY_IMAGE];
3569
- var il = `customizationRenderType`;
3570
- async function al(e2) {
3571
- let t2 = (0, nl.default)(e2, 100);
3572
- return (await Promise.all(t2.map(ol))).flat();
3573
- }
3574
- var ol = async (e2) => (await ua({ fields: rl }).hasSome(`_id`, e2).ne(il, W.FREE_TEXT).limit(100).find()).items;
3575
- var sl = (e2, t2, n2) => ({ name: e2, type: ja.SCALAR, fieldPath: t2, scalar: { type: n2 } });
3576
- var cl = (e2, t2, n2) => ({ name: e2, type: ja.VALUE, fieldPath: t2, value: { limit: n2, sortType: Oa.COUNT, sortDirection: ka.DESC } });
3577
- function ll(e2) {
3933
+ var Wl = [aa.CHOICE_DISPLAY_IMAGE];
3934
+ var Gl = `customizationRenderType`;
3935
+ async function Kl(e2) {
3936
+ let t2 = (0, Ul.default)(e2, 100);
3937
+ return (await Promise.all(t2.map(ql))).flat();
3938
+ }
3939
+ var ql = async (e2) => (await ma({ fields: Wl }).hasSome(`_id`, e2).ne(Gl, G.FREE_TEXT).limit(100).find()).items;
3940
+ var Jl = (e2, t2, n2) => ({ name: e2, type: Pa.SCALAR, fieldPath: t2, scalar: { type: n2 } });
3941
+ var Yl = (e2, t2, n2) => ({ name: e2, type: Pa.VALUE, fieldPath: t2, value: { limit: n2, sortType: ja.COUNT, sortDirection: Ma.DESC } });
3942
+ function Xl(e2) {
3578
3943
  let t2 = [];
3579
- 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;
3944
+ 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;
3580
3945
  }
3581
- var ul = (e2) => {
3946
+ var Zl = (e2) => {
3582
3947
  let t2 = e2?.values?.results ?? [], n2 = /* @__PURE__ */ new Map();
3583
3948
  for (let e3 of t2) e3.value !== void 0 && e3.count !== void 0 && n2.set(e3.value, e3.count);
3584
3949
  return n2;
3585
3950
  };
3586
- var dl = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
3587
- var fl = (e2) => {
3951
+ var Ql = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
3952
+ var $l = (e2) => {
3588
3953
  let t2 = /* @__PURE__ */ new Map();
3589
3954
  for (let n2 of e2) n2.name !== void 0 && t2.set(n2.name, n2);
3590
3955
  return t2;
3591
3956
  };
3592
- async function pl(e2, t2) {
3593
- let n2 = await za({ filter: { [ls]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: ll(t2) }, { fields: [q.CURRENCY] }), r2 = fl(n2.aggregationData?.results ?? []);
3594
- 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 };
3957
+ async function eu(e2, t2) {
3958
+ let n2 = await qa({ filter: { [As]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: Xl(t2) }, { fields: [Y.CURRENCY] }), r2 = $l(n2.aggregationData?.results ?? []);
3959
+ 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 };
3595
3960
  }
3596
- var ml = [Z.PRICE, Z.OPTIONS, Z.MODIFIERS];
3597
- async function hl(e2, t2 = ml) {
3598
- let n2 = await pl(e2, t2), r2 = await al([...n2.optionIds, ...n2.modifierIds]);
3599
- 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 };
3961
+ var tu = [ks.PRICE, ks.OPTIONS, ks.MODIFIERS];
3962
+ async function nu(e2, t2 = tu) {
3963
+ let n2 = await eu(e2, t2), r2 = await Kl([...n2.optionIds, ...n2.modifierIds]);
3964
+ 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 };
3600
3965
  }
3601
- var gl = (e2) => {
3602
- let t2 = Xs(e2 ?? void 0);
3966
+ var ru = (e2) => {
3967
+ let t2 = Lc(e2 ?? void 0);
3603
3968
  if (!t2) return;
3604
- let n2 = Qs(e2);
3605
- return { id: t2, url: Zs(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3969
+ let n2 = zc(e2);
3970
+ return { id: t2, url: Rc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3606
3971
  };
3607
- var _l = ({ promotion: e2, position: t2 }) => {
3608
- 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 };
3972
+ var iu = ({ promotion: e2, position: t2 }) => {
3973
+ 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 };
3609
3974
  };
3610
- async function vl(e2) {
3611
- return ((await ao(e2)).promotions ?? []).map(_l).filter((e3) => e3 !== void 0);
3975
+ async function au(e2) {
3976
+ return ((await To(e2)).promotions ?? []).map(iu).filter((e3) => e3 !== void 0);
3612
3977
  }
3613
- var yl = async (e2, t2, n2, r2) => {
3614
- let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 = po(n2, i2), o2 = Do(n2);
3615
- return { page: await ys({ categoryId: e2, filters: i2, filterSelection: a2, sortType: o2, productsPerPage: r2 }), filterSelectionKey: xs(a2), sortType: o2, productsPerPage: r2 };
3978
+ var ou = async (e2, t2, n2, r2) => {
3979
+ 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());
3980
+ return { page: s2, productGroupByGroupId: Object.fromEntries(c2), filterSelectionKey: Qs(a2), sortType: o2, productsPerPage: r2 };
3616
3981
  };
3617
- async function bl(e2, t2, n2) {
3618
- let r2 = hl(e2), [i2, a2, o2] = await Promise.all([yl(e2, r2, t2, n2), r2, vl(e2)]), { filters: s2, currency: c2 } = a2;
3982
+ async function su(e2, t2, n2) {
3983
+ let r2 = nu(e2), [i2, a2, o2] = await Promise.all([ou(e2, r2, t2, n2), r2, au(e2)]), { filters: s2, currency: c2 } = a2;
3619
3984
  return { filters: s2, currency: c2, promotions: o2, initialProductList: i2 };
3620
3985
  }
3621
- var xl = async (e2, t2, n2) => {
3622
- let [r2, i2] = await Promise.all([dc(e2), fc()]);
3623
- return { category: r2, defaultLocationId: i2, ...await bl(r2.id, t2, n2) };
3986
+ var cu = async (e2, t2, n2) => {
3987
+ let [r2, i2] = await Promise.all([Qc(e2), $c()]);
3988
+ return { category: r2, defaultLocationId: i2, ...await su(r2.id, t2, n2) };
3624
3989
  };
3625
- var Sl = (e2, t2, n2) => `wixstores-storefront-builder:category-by-slug-context-data:${e2}:${n2}:${t2}`;
3626
- function Cl(e2) {
3627
- let { search: t2 } = yi(), n2 = Os();
3628
- return Es(Sl(n2, t2, e2), () => xl(n2, t2, e2));
3990
+ var lu = (e2, t2, n2) => `wixstores-storefront-builder:category-by-slug-context-data:${e2}:${n2}:${t2}`;
3991
+ function uu(e2) {
3992
+ let { search: t2 } = Ci(), n2 = hc();
3993
+ return pc(lu(n2, t2, e2), () => cu(n2, t2, e2));
3629
3994
  }
3630
- function wl(e2) {
3995
+ function du(e2) {
3631
3996
  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: [] };
3632
3997
  }
3633
- function Tl(e2) {
3998
+ function fu(e2) {
3634
3999
  let t2 = {};
3635
4000
  for (let n2 of e2) {
3636
4001
  if (n2.visible === false || !n2._id) continue;
3637
- let e3 = wl(n2);
4002
+ let e3 = du(n2);
3638
4003
  t2[e3.id ?? ``] = e3;
3639
4004
  }
3640
4005
  for (let e3 of Object.values(t2)) e3?.parentCategoryId && t2[e3.parentCategoryId]?.childCategoryIds.push(e3.id ?? ``);
3641
4006
  return t2;
3642
4007
  }
3643
- var El = { appNamespace: `@wix/stores`, treeKey: null };
3644
- var Dl = 1e3;
3645
- async function Ol() {
3646
- return Tl((await Ys({ treeReference: El }).eq(`visible`, true).limit(Dl).find()).items);
4008
+ var pu = { appNamespace: `@wix/stores`, treeKey: null };
4009
+ var mu = 1e3;
4010
+ async function hu() {
4011
+ return fu((await Ic({ treeReference: pu }).eq(`visible`, true).limit(mu).find()).items);
3647
4012
  }
3648
- var kl = `wixstores-storefront-builder:category-list-context-data`;
3649
- function Al() {
3650
- return Es(kl, () => Ol());
4013
+ var gu = `wixstores-storefront-builder:category-list-context-data`;
4014
+ function _u() {
4015
+ return pc(gu, () => hu());
3651
4016
  }
3652
- function jl() {
4017
+ function vu() {
3653
4018
  throw Error(`useCategoryBySlugContext must not be used directly`);
3654
4019
  }
3655
- function Ml({ categoryValue: e2, categoryListValue: t2, productListValue: n2, children: r2 }) {
4020
+ function yu({ categoryValue: e2, categoryListValue: t2, productListValue: n2, children: r2 }) {
3656
4021
  return (0, import_jsx_runtime.jsx)(import_category_list_context_provider.default, { value: t2, children: (0, import_jsx_runtime.jsx)(import_category_info_context_provider.default, { value: e2, children: (0, import_jsx_runtime.jsx)(import_product_list_context_provider.default, { value: n2, children: r2 }) }) });
3657
4022
  }
3658
- var Nl = ({ children: e2, dataPromise: t2, categoryListPromise: n2, productsPerPage: r2 }) => {
3659
- let i2 = hi(t2), a2 = hi(n2), o2 = si(i2), c2 = ci(a2, i2.category.id), l2 = Cs(i2, r2);
3660
- return mi(i2.category), (0, import_jsx_runtime.jsx)(Ml, { categoryValue: o2, categoryListValue: c2, productListValue: l2, children: e2 });
4023
+ var bu = ({ children: e2, dataPromise: t2, categoryListPromise: n2, productsPerPage: r2 }) => {
4024
+ let i2 = yi(t2), a2 = yi(n2), o2 = di(i2), c2 = fi(a2, i2.category.id), l2 = uc(i2, r2);
4025
+ return vi(i2.category), (0, import_jsx_runtime.jsx)(yu, { categoryValue: o2, categoryListValue: c2, productListValue: l2, children: e2 });
3661
4026
  };
3662
- function Pl({ children: e2, productsPerPage: n2 = 20 }) {
3663
- let [r2] = (0, import_react.useState)(() => new Lr()), i2 = Cl(n2), o2 = Al();
3664
- return (0, import_jsx_runtime.jsx)(Br, { client: r2, children: (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: null, children: (0, import_jsx_runtime.jsx)(Nl, { dataPromise: i2, categoryListPromise: o2, productsPerPage: n2, children: e2 }) }) });
4027
+ function xu({ children: e2, productsPerPage: n2 = 20 }) {
4028
+ let [r2] = (0, import_react.useState)(() => new Br()), i2 = uu(n2), o2 = _u();
4029
+ return (0, import_jsx_runtime.jsx)(Ur, { client: r2, children: (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: null, children: (0, import_jsx_runtime.jsx)(bu, { dataPromise: i2, categoryListPromise: o2, productsPerPage: n2, children: e2 }) }) });
3665
4030
  }
3666
- var Fl = Nn(`404b3ed8-9b27-4342-9451-17ae43ebdebb`);
4031
+ var Su = jn(`404b3ed8-9b27-4342-9451-17ae43ebdebb`);
3667
4032
  // Annotate the CommonJS export names for ESM import in node:
3668
4033
  0 && (module.exports = {
3669
4034
  CategoryBySlugContextProvider,