@wix/bookings 1.0.1785 → 1.0.1787

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 (51) hide show
  1. package/build/cjs/context-booking-checkout.d.ts +22 -6
  2. package/build/cjs/context-booking-checkout.js +2296 -2253
  3. package/build/cjs/context-booking-checkout.js.map +1 -1
  4. package/build/cjs/context-categories.js +285 -275
  5. package/build/cjs/context-categories.js.map +1 -1
  6. package/build/cjs/context-locations.js +465 -455
  7. package/build/cjs/context-locations.js.map +1 -1
  8. package/build/cjs/context-service-addons.js +964 -917
  9. package/build/cjs/context-service-addons.js.map +1 -1
  10. package/build/cjs/context-service.d.ts +14 -5
  11. package/build/cjs/context-service.js +3514 -3337
  12. package/build/cjs/context-service.js.map +1 -1
  13. package/build/cjs/context-services.js +878 -832
  14. package/build/cjs/context-services.js.map +1 -1
  15. package/build/cjs/context-time-slots.d.ts +10 -0
  16. package/build/cjs/context-time-slots.js +1202 -1159
  17. package/build/cjs/context-time-slots.js.map +1 -1
  18. package/build/es/context-booking-checkout.d.mts +22 -6
  19. package/build/es/context-booking-checkout.mjs +2304 -2261
  20. package/build/es/context-booking-checkout.mjs.map +1 -1
  21. package/build/es/context-categories.mjs +285 -275
  22. package/build/es/context-categories.mjs.map +1 -1
  23. package/build/es/context-locations.mjs +465 -455
  24. package/build/es/context-locations.mjs.map +1 -1
  25. package/build/es/context-service-addons.mjs +971 -924
  26. package/build/es/context-service-addons.mjs.map +1 -1
  27. package/build/es/context-service.d.mts +14 -5
  28. package/build/es/context-service.mjs +3383 -3206
  29. package/build/es/context-service.mjs.map +1 -1
  30. package/build/es/context-services.mjs +878 -832
  31. package/build/es/context-services.mjs.map +1 -1
  32. package/build/es/context-time-slots.d.mts +10 -0
  33. package/build/es/context-time-slots.mjs +1222 -1179
  34. package/build/es/context-time-slots.mjs.map +1 -1
  35. package/build/internal/cjs/context-booking-checkout.d.ts +22 -6
  36. package/build/internal/cjs/context-service.d.ts +14 -5
  37. package/build/internal/cjs/context-time-slots.d.ts +10 -0
  38. package/build/internal/es/context-booking-checkout.d.mts +22 -6
  39. package/build/internal/es/context-service.d.mts +14 -5
  40. package/build/internal/es/context-time-slots.d.mts +10 -0
  41. package/context-runtime/context-booking-checkout/runtime.d.ts +22 -6
  42. package/context-runtime/context-booking-checkout/runtime.js +3 -3
  43. package/context-runtime/context-categories/runtime.js +2 -2
  44. package/context-runtime/context-locations/runtime.js +2 -2
  45. package/context-runtime/context-service/runtime.d.ts +14 -5
  46. package/context-runtime/context-service/runtime.js +3 -3
  47. package/context-runtime/context-service-addons/runtime.js +2 -2
  48. package/context-runtime/context-services/runtime.js +3 -3
  49. package/context-runtime/context-time-slots/runtime.d.ts +10 -0
  50. package/context-runtime/context-time-slots/runtime.js +3 -3
  51. package/package.json +3 -3
@@ -53,7 +53,7 @@ var y = (e5) => (t2) => async (n2) => {
53
53
  var b = (e5) => e5.__isAmbassador ? true : !!e5().__isAmbassador;
54
54
  var x = `__metadata`;
55
55
  var S = `edge.wixapis.com`;
56
- var ee = class extends Error {
56
+ var C = class extends Error {
57
57
  message;
58
58
  response;
59
59
  constructor(e5, t2) {
@@ -61,24 +61,24 @@ var ee = class extends Error {
61
61
  }
62
62
  async details() {
63
63
  let e5 = await this.response.json();
64
- return C(this.response.status, e5?.message, e5?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e5 });
64
+ return w(this.response.status, e5?.message, e5?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e5 });
65
65
  }
66
66
  };
67
- var C = (e5, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
68
- var w = (e5) => e5?.method && [`post`, `put`, `patch`].includes(e5.method.toLocaleLowerCase()) && e5.body ? { "Content-Type": `application/json` } : {};
69
- var T = (e5) => e5 && typeof e5 == `object` && !Array.isArray(e5);
70
- var E = (e5) => e5.__type === `host`;
71
- function D(e5, t2) {
67
+ var w = (e5, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
68
+ var T = (e5) => e5?.method && [`post`, `put`, `patch`].includes(e5.method.toLocaleLowerCase()) && e5.body ? { "Content-Type": `application/json` } : {};
69
+ var E = (e5) => e5 && typeof e5 == `object` && !Array.isArray(e5);
70
+ var D = (e5) => e5.__type === `host`;
71
+ function O(e5, t2) {
72
72
  return e5.create(t2);
73
73
  }
74
- var O = `x-wix-bi-gateway`;
75
- function te(e5, t2, n2) {
76
- return { [O]: ne({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e5.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e5.methodFqn, entity: e5.entityFqdn }) };
74
+ var ee = `x-wix-bi-gateway`;
75
+ function k(e5, t2, n2) {
76
+ return { [ee]: te({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e5.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e5.methodFqn, entity: e5.entityFqdn }) };
77
77
  }
78
- function ne(e5) {
78
+ function te(e5) {
79
79
  return Object.entries(e5).filter(([e6, t2]) => !!t2).map(([e6, t2]) => `${e6}=${t2}`).join(`,`);
80
80
  }
81
- function re(e5) {
81
+ function ne(e5) {
82
82
  let t2 = globalThis.__wix_context__, n2 = { client: g.client, elevatedClient: g.elevatedClient }, r2;
83
83
  globalThis.__wix_context__ = void 0, g.client = void 0, g.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
84
84
  try {
@@ -87,82 +87,82 @@ function re(e5) {
87
87
  globalThis.__wix_context__ = t2, g.client = n2.client, g.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
88
88
  }
89
89
  }
90
- var ie = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
91
- function ae(e5) {
92
- return ue(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
90
+ var re = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
91
+ function A(e5) {
92
+ return ce(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
93
93
  }
94
- var oe = /([\p{Ll}\d])(\p{Lu})/gu;
95
- var se = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
96
- var ce = `$1\0$2`;
97
- var le = /[^\p{L}\d]+/giu;
98
- function ue(e5) {
94
+ var ie = /([\p{Ll}\d])(\p{Lu})/gu;
95
+ var ae = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
96
+ var oe = `$1\0$2`;
97
+ var se = /[^\p{L}\d]+/giu;
98
+ function ce(e5) {
99
99
  let t2 = e5.trim();
100
- t2 = t2.replace(oe, ce).replace(se, ce), t2 = t2.replace(le, `\0`);
100
+ t2 = t2.replace(ie, oe).replace(ae, oe), t2 = t2.replace(se, `\0`);
101
101
  let n2 = 0, r2 = t2.length;
102
102
  for (; t2.charAt(n2) === `\0`; ) n2++;
103
103
  if (n2 === r2) return [];
104
104
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
105
105
  return t2.slice(n2, r2).split(/\0/g);
106
106
  }
107
- var de = (e5) => `validationError` in (e5.response?.data?.details ?? {});
108
- var fe = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
109
- var pe = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
110
- function me(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
107
+ var le = (e5) => `validationError` in (e5.response?.data?.details ?? {});
108
+ var ue = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
109
+ var de = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
110
+ function fe(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
111
111
  if (typeof e5 != `object` || !e5) throw e5;
112
- if (de(e5)) return he(e5, t2, n2);
113
- if (fe(e5)) return _e(e5);
114
- if (pe(e5)) {
115
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ae(n3), data: {} }, requestId: e5.requestId };
116
- return ge(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
112
+ if (le(e5)) return pe(e5, t2, n2);
113
+ if (ue(e5)) return he(e5);
114
+ if (de(e5)) {
115
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: A(n3), data: {} }, requestId: e5.requestId };
116
+ return me(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
117
117
  }
118
- return ve(e5);
118
+ return ge(e5);
119
119
  }
120
- var he = (e5, t2, n2) => {
121
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = ye(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
122
- return ge(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
120
+ var pe = (e5, t2, n2) => {
121
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = _e(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
122
+ return me(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
123
123
  };
124
- var ge = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
125
- var _e = (e5) => {
126
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? ae(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
127
- return ge(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
124
+ var me = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
125
+ var he = (e5) => {
126
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? A(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
127
+ return me(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
128
128
  };
129
- var ve = (e5) => ge(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: ae(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
130
- var ye = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
129
+ var ge = (e5) => me(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: A(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
130
+ var _e = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
131
131
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
132
132
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
133
133
  let r3 = t2[e6.field];
134
- if (r3) return { ...e6, field: be(r3, i2) };
134
+ if (r3) return { ...e6, field: ve(r3, i2) };
135
135
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
136
136
  if (s2) {
137
137
  let t3 = a2[s2];
138
- if (t3) return { ...e6, field: e6.field.replace(s2, be(t3, i2)) };
138
+ if (t3) return { ...e6, field: e6.field.replace(s2, ve(t3, i2)) };
139
139
  }
140
140
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
141
141
  });
142
142
  };
143
- var be = (e5, t2) => {
144
- let n2 = xe(e5);
143
+ var ve = (e5, t2) => {
144
+ let n2 = ye(e5);
145
145
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
146
146
  };
147
- var xe = (e5) => {
147
+ var ye = (e5) => {
148
148
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
149
149
  return t2 && t2.groups && Number(t2.groups.argIndex);
150
150
  };
151
- function Se(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
152
- return re(() => e5({ request: async (e6) => {
151
+ function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
152
+ return ne(() => e5({ request: async (e6) => {
153
153
  let i3 = e6({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
154
154
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
155
155
  let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? S : o3}${a3.url}`;
156
156
  a3.params && a3.params.toString() && (u3 += `?${a3.params.toString()}`);
157
157
  try {
158
- let e7 = te(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e7 } }, s3 = await n2(u3, o4);
158
+ let e7 = k(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e7 } }, s3 = await n2(u3, o4);
159
159
  if (s3.status !== 200) {
160
160
  let e8 = null;
161
161
  try {
162
162
  e8 = await s3.json();
163
163
  } catch {
164
164
  }
165
- let t3 = we(s3.status, e8?.message ?? s3.statusText, e8?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e8 }), n3 = me(t3);
165
+ let t3 = Se(s3.status, e8?.message ?? s3.statusText, e8?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e8 }), n3 = fe(t3);
166
166
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
167
167
  }
168
168
  let l3 = await s3.json();
@@ -172,18 +172,18 @@ function Se(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
172
172
  }
173
173
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
174
174
  }
175
- var Ce = class extends Error {
175
+ var xe = class extends Error {
176
176
  response;
177
177
  requestId;
178
178
  constructor(e5) {
179
179
  super(), this.response = e5.response, this.requestId = e5.requestId;
180
180
  }
181
181
  };
182
- var we = (e5, t2, n2, r2) => new Ce({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2 }, status: e5 }, requestId: r2?.requestId });
183
- var Te = `.`;
184
- function Ee(e5, t2, n2) {
182
+ var Se = (e5, t2, n2, r2) => new xe({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2 }, status: e5 }, requestId: r2?.requestId });
183
+ var Ce = `.`;
184
+ function we(e5, t2, n2) {
185
185
  if (e5 == null) throw Error(`Cannot set value on null or undefined`);
186
- let r2 = De(t2), i2 = e5;
186
+ let r2 = Te(t2), i2 = e5;
187
187
  for (let e6 = 0; e6 < r2.length; e6++) {
188
188
  let t3 = r2[e6];
189
189
  if (e6 === r2.length - 1) {
@@ -195,21 +195,21 @@ function Ee(e5, t2, n2) {
195
195
  }
196
196
  return e5;
197
197
  }
198
- function De(e5) {
199
- return Array.isArray(e5) ? e5 : e5.split(Te).map((e6) => Oe(e6) ? Number(e6) : e6);
198
+ function Te(e5) {
199
+ return Array.isArray(e5) ? e5 : e5.split(Ce).map((e6) => Ee(e6) ? Number(e6) : e6);
200
200
  }
201
- function Oe(e5) {
201
+ function Ee(e5) {
202
202
  return /^\d+$/.test(e5);
203
203
  }
204
- function ke(e5) {
204
+ function De(e5) {
205
205
  let t2 = {};
206
- for (let [n2, r2] of Object.entries(e5)) Ae(n2) || Ee(t2, De(n2), r2);
206
+ for (let [n2, r2] of Object.entries(e5)) Oe(n2) || we(t2, Te(n2), r2);
207
207
  return t2;
208
208
  }
209
- function Ae(e5) {
209
+ function Oe(e5) {
210
210
  return e5 === `__proto__` || e5 === `constructor` || e5 === `prototype`;
211
211
  }
212
- var je = class {
212
+ var ke = class {
213
213
  BRACKET_PATTERN = /\[(\d+)\]/g;
214
214
  NUMERIC_PATTERN = /^\d+$/;
215
215
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -232,7 +232,7 @@ var je = class {
232
232
  return e5.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
233
233
  }
234
234
  unflatten() {
235
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e5, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e5)), t2])), ke(this.cleanedModifiedFields);
235
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e5, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e5)), t2])), De(this.cleanedModifiedFields);
236
236
  }
237
237
  flatten(e5) {
238
238
  let t2 = {};
@@ -252,12 +252,12 @@ var je = class {
252
252
  if (!Array.isArray(n2)) throw Error(`Expected array at path ${this.buildPathString(r2)}, but got ${typeof n2}`);
253
253
  r2.push(`[${e6}]`), n2 = n2[parseInt(e6, 10)];
254
254
  }, a2 = (e6, t3) => {
255
- let i3 = e6 in ie ? ie[e6] : void 0;
255
+ let i3 = e6 in re ? re[e6] : void 0;
256
256
  if (i3 && i3 in t3) {
257
257
  r2.push(i3), n2 = t3[i3];
258
258
  return;
259
259
  }
260
- let a3 = Fe(e6);
260
+ let a3 = Ne(e6);
261
261
  if (a3 && a3 in t3) {
262
262
  r2.push(a3), n2 = t3[a3];
263
263
  return;
@@ -288,28 +288,28 @@ var je = class {
288
288
  return e5.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e5[r2 - 1] === `\\` ? t2 : `.` + n2);
289
289
  }
290
290
  };
291
- function Me(e5, t2) {
291
+ function Ae(e5, t2) {
292
292
  let n2 = e5?.modifiedFields;
293
293
  if (!n2) return null;
294
- let r2 = Ne(n2);
294
+ let r2 = je(n2);
295
295
  if (!r2) return null;
296
296
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
297
297
  e5 = { ...e5, modifiedFields: i2 };
298
298
  let o2 = t2(e5), s2 = o2?.modifiedFields;
299
299
  if (!s2) return null;
300
- let c2 = Pe(s2, a2);
300
+ let c2 = Me(s2, a2);
301
301
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
302
302
  }
303
- function Ne(e5) {
303
+ function je(e5) {
304
304
  if (typeof e5 == `object` && e5 && !Array.isArray(e5)) try {
305
- let t2 = new je(e5);
305
+ let t2 = new ke(e5);
306
306
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
307
307
  } catch {
308
308
  return null;
309
309
  }
310
310
  return null;
311
311
  }
312
- function Pe(e5, t2) {
312
+ function Me(e5, t2) {
313
313
  if (typeof e5 == `object` && e5 && !Array.isArray(e5)) try {
314
314
  return t2.flatten(e5);
315
315
  } catch {
@@ -317,10 +317,10 @@ function Pe(e5, t2) {
317
317
  }
318
318
  return null;
319
319
  }
320
- function Fe(e5) {
320
+ function Ne(e5) {
321
321
  return e5.replace(/[-_\s]+(.)?/g, (e6, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e6) => e6.toLowerCase());
322
322
  }
323
- function Ie() {
323
+ function Pe() {
324
324
  return { emit(e5, ...t2) {
325
325
  for (let n2 = 0, r2 = this.events[e5] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
326
326
  }, events: {}, on(e5, t2) {
@@ -329,8 +329,8 @@ function Ie() {
329
329
  };
330
330
  } };
331
331
  }
332
- var Le = (e5) => e5.__type === `event-definition`;
333
- function Re(e5, t2, n2, r2) {
332
+ var Fe = (e5) => e5.__type === `event-definition`;
333
+ function Ie(e5, t2, n2, r2) {
334
334
  let i2;
335
335
  if (e5.isDomainEvent) {
336
336
  let { deletedEvent: e6, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -341,14 +341,14 @@ function Re(e5, t2, n2, r2) {
341
341
  let e6 = s2.modifiedFields;
342
342
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) {
343
343
  o2 = structuredClone(i2);
344
- let e7 = Me(s2, a2);
344
+ let e7 = Ae(s2, a2);
345
345
  if (e7) return t2(e7);
346
346
  }
347
347
  }
348
348
  return t2(a2(o2));
349
349
  }
350
- function ze(e5) {
351
- let t2 = /* @__PURE__ */ new Map(), n2 = Ie();
350
+ function Le(e5) {
351
+ let t2 = /* @__PURE__ */ new Map(), n2 = Pe();
352
352
  return { initModule(e6) {
353
353
  return (r2) => {
354
354
  let i2 = t2.get(e6.type) ?? [];
@@ -358,7 +358,7 @@ function ze(e5) {
358
358
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e6), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e7) => ({ type: e7 }))];
359
359
  if (c2.length > 0 && !c2.some(({ type: e7 }) => e7 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e7) => e7.type).join(`, `)}`);
360
360
  let l2 = t2.get(r2) ?? [];
361
- return await Promise.all(l2.map(({ eventDefinition: e7, handler: t3 }) => Re(e7, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
361
+ return await Promise.all(l2.map(({ eventDefinition: e7, handler: t3 }) => Ie(e7, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
362
362
  }, async processRequest(e6, t3) {
363
363
  let n3 = await e6.text();
364
364
  return this.process(n3, t3);
@@ -377,12 +377,12 @@ function ze(e5) {
377
377
  let n3 = Array.from(t2.keys()).map((e7) => ({ type: e7 }));
378
378
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e6.eventType)) throw Error(`Unexpected event type: ${e6.eventType}. Expected one of: ${n3.map((e7) => e7.type).join(`, `)}`);
379
379
  let r2 = t2.get(e6.eventType) ?? [];
380
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Re(t3, n4, e6.payload, { instanceId: e6.instanceId, identity: e6.identity })));
380
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ie(t3, n4, e6.payload, { instanceId: e6.instanceId, identity: e6.identity })));
381
381
  }, apps: { AppInstalled: _(`AppInstalled`)(), AppRemoved: _(`AppRemoved`)() } } };
382
382
  }
383
- var Be = (e5) => e5.__type === `service-plugin-definition`;
384
- function Ve(e5) {
385
- let t2 = /* @__PURE__ */ new Map(), n2 = Ie();
383
+ var Re = (e5) => e5.__type === `service-plugin-definition`;
384
+ function ze(e5) {
385
+ let t2 = /* @__PURE__ */ new Map(), n2 = Pe();
386
386
  return { initModule(e6) {
387
387
  return (r2) => {
388
388
  let i2 = t2.get(e6.componentType.toLowerCase()) ?? [];
@@ -423,43 +423,43 @@ function Ve(e5) {
423
423
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e6)));
424
424
  } } };
425
425
  }
426
- var k = `X-Wix-Consistent`;
427
- function He(e5) {
426
+ var j = `X-Wix-Consistent`;
427
+ function Be(e5) {
428
428
  let t2 = e5.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e6) => Promise.resolve({ headers: {} }) }, r2 = e5.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e5.host), o2 = () => e5.fetch ?? fetch, s2 = async (n3, r3) => {
429
- let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [k]: t2[k] } : {} }, l3 = e5.host?.getErrorHandler?.();
429
+ let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [j]: t2[j] } : {} }, l3 = e5.host?.getErrorHandler?.();
430
430
  try {
431
431
  if (typeof n3 == `string` || n3 instanceof URL) {
432
432
  let e6 = await i3(n3, { ...r3, headers: c3 });
433
433
  l3?.handleError(e6, { requestOptions: { url: n3.toString(), method: r3?.method } });
434
- let a3 = Ue(e6);
435
- return a3 && (t2[k] = a3), e6;
434
+ let a3 = Ve(e6);
435
+ return a3 && (t2[j] = a3), e6;
436
436
  }
437
437
  {
438
438
  for (let [e7, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e7, t3);
439
439
  let e6 = await i3(n3, r3);
440
440
  l3?.handleError(e6, { requestOptions: { url: n3.url, method: r3?.method } });
441
- let a3 = Ue(e6);
442
- return a3 && (t2[k] = a3), e6;
441
+ let a3 = Ve(e6);
442
+ return a3 && (t2[j] = a3), e6;
443
443
  }
444
444
  } catch (e6) {
445
445
  throw l3?.handleError(e6, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e6;
446
446
  }
447
- }, { client: c2, initModule: l2 } = Ve(i2), { client: u2, initModule: d2 } = ze(i2), f2 = async (n3, r3) => {
448
- let i3 = o2(), s3 = await a2(), c3 = w(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [k]: t2[k] } : {} } }), u3 = Ue(l3);
449
- return u3 && (t2[k] = u3), l3;
447
+ }, { client: c2, initModule: l2 } = ze(i2), { client: u2, initModule: d2 } = Le(i2), f2 = async (n3, r3) => {
448
+ let i3 = o2(), s3 = await a2(), c3 = T(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [j]: t2[j] } : {} } }), u3 = Ve(l3);
449
+ return u3 && (t2[j] = u3), l3;
450
450
  }, p2 = (t3, n3) => {
451
- if (Le(t3)) return d2(t3);
452
- if (Be(t3)) return l2(t3);
453
- if (E(t3) && e5.host) return D(t3, e5.host);
451
+ if (Fe(t3)) return d2(t3);
452
+ if (Re(t3)) return l2(t3);
453
+ if (D(t3) && e5.host) return O(t3, e5.host);
454
454
  if (typeof t3 == `function`) {
455
455
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
456
456
  let r3 = e5.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e5.useCDN === void 0 ? i2().shouldUseCDN : e5.useCDN;
457
- return Se(re(() => b(t3)) ? y(t3) : t3, n3 ?? {}, f2, e5.host?.getErrorHandler?.(), (e6, t4) => {
457
+ return be(ne(() => b(t3)) ? y(t3) : t3, n3 ?? {}, f2, e5.host?.getErrorHandler?.(), (e6, t4) => {
458
458
  let n4 = new URL(e6, `https://${r3}`);
459
459
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
460
460
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e5.host?.name, o3, e5.validateRequestSchema);
461
461
  }
462
- return T(t3) ? Object.fromEntries(Object.entries(t3).map(([e6, n4]) => [e6, p2(n4, t3[x])])) : t3;
462
+ return E(t3) ? Object.fromEntries(Object.entries(t3).map(([e6, n4]) => [e6, p2(n4, t3[x])])) : t3;
463
463
  }, m2 = (e6) => {
464
464
  for (let n3 in e6) t2[n3] = e6[n3];
465
465
  };
@@ -473,30 +473,30 @@ function He(e5) {
473
473
  return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
474
474
  }, fetchWithAuth: s2, async graphql(t3, n3, r3 = { apiVersion: `alpha` }) {
475
475
  let i3 = e5?.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 }) });
476
- if (a3.status !== 200) throw new ee(`GraphQL request failed with status ${a3.status}`, a3);
476
+ if (a3.status !== 200) throw new C(`GraphQL request failed with status ${a3.status}`, a3);
477
477
  let { data: o3, errors: s3 } = await a3.json();
478
478
  return { data: o3 ?? {}, errors: s3 };
479
479
  }, webhooks: u2, servicePlugins: c2 };
480
480
  }
481
- function Ue(e5) {
481
+ function Ve(e5) {
482
482
  return e5.headers?.get(`X-Wix-Consistent`) ?? e5.headers?.get(`x-wix-consistent`);
483
483
  }
484
- var We = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
485
- var Ge = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
486
- var Ke = `items`;
487
- var qe = `pagingMetadata`;
488
- var Je = We;
489
- function Ye(e5, t2) {
484
+ var He = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
485
+ var Ue = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
486
+ var We = `items`;
487
+ var Ge = `pagingMetadata`;
488
+ var Ke = He;
489
+ function qe(e5, t2) {
490
490
  return e5?.split(`.`).map((e6) => t2?.[e6] ?? e6).join(`.`);
491
491
  }
492
- function Xe(e5, { transformSystemFields: t2 = true } = {}) {
493
- return t2 ? Ye(e5, Je) : e5;
492
+ function Je(e5, { transformSystemFields: t2 = true } = {}) {
493
+ return t2 ? qe(e5, Ke) : e5;
494
494
  }
495
- var Ze = `sort.fieldName`;
496
- function Qe(e5, t2, n2) {
497
- return (e5 === Ze || e5.endsWith(`.${Ze}`)) && typeof t2 == `string` ? Ye(t2, n2) : t2;
495
+ var Ye = `sort.fieldName`;
496
+ function Xe(e5, t2, n2) {
497
+ return (e5 === Ye || e5.endsWith(`.${Ye}`)) && typeof t2 == `string` ? qe(t2, n2) : t2;
498
498
  }
499
- function $e(e5, t2, n2) {
499
+ function Ze(e5, t2, n2) {
500
500
  let r2 = (e6) => n2.includes(e6), i2 = (e6, n3) => {
501
501
  if (Array.isArray(e6)) e6.forEach((e7) => {
502
502
  i2(e7, n3);
@@ -506,147 +506,147 @@ function $e(e5, t2, n2) {
506
506
  Object.keys(a2).forEach((e7) => {
507
507
  let o2 = n3 === `` ? e7 : `${n3}.${e7}`;
508
508
  if (r2(o2)) return;
509
- let s2 = et(e7, t2);
510
- s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Qe(o2, a2[s2], t2), i2(a2[s2], o2);
509
+ let s2 = Qe(e7, t2);
510
+ s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Xe(o2, a2[s2], t2), i2(a2[s2], o2);
511
511
  });
512
512
  }
513
513
  };
514
514
  return i2(e5, ``), e5;
515
515
  }
516
- function et(e5, t2) {
516
+ function Qe(e5, t2) {
517
517
  let n2;
518
518
  return n2 = e5.includes(`.`) ? e5.split(`.`).map((e6) => t2[e6] ?? e6).join(`.`) : t2[e5] ?? e5, n2;
519
519
  }
520
- function A(e5, t2 = []) {
521
- return $e(e5, We, t2);
520
+ function M(e5, t2 = []) {
521
+ return Ze(e5, He, t2);
522
522
  }
523
- function j(e5, t2 = []) {
524
- return $e(e5, Ge, t2);
523
+ function N(e5, t2 = []) {
524
+ return Ze(e5, Ue, t2);
525
525
  }
526
- function M(e5) {
526
+ function P(e5) {
527
527
  return e5 ? new Date(e5) : void 0;
528
528
  }
529
- var tt = /* @__PURE__ */ new WeakMap();
530
- function nt() {
529
+ var $e = /* @__PURE__ */ new WeakMap();
530
+ function et() {
531
531
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
532
532
  }
533
- function rt(e5, t2) {
533
+ function tt(e5, t2) {
534
534
  let n2 = e5.get(t2);
535
- return n2 || (n2 = nt(), e5.set(t2, n2)), n2;
535
+ return n2 || (n2 = et(), e5.set(t2, n2)), n2;
536
536
  }
537
- function it(e5, t2) {
538
- return t2 === `*` ? (e5.anyField ??= nt(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), rt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), rt(e5.fields, t2));
537
+ function nt(e5, t2) {
538
+ return t2 === `*` ? (e5.anyField ??= et(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), tt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), tt(e5.fields, t2));
539
539
  }
540
- function at(e5) {
541
- let t2 = nt();
540
+ function rt(e5) {
541
+ let t2 = et();
542
542
  for (let n2 of e5) {
543
- let e6 = n2.path.split(`.`).reduce(it, t2);
543
+ let e6 = n2.path.split(`.`).reduce(nt, t2);
544
544
  e6.leaves ??= [], e6.leaves.push(n2);
545
545
  }
546
546
  return t2;
547
547
  }
548
- function ot(e5) {
549
- let t2 = tt.get(e5);
550
- return t2 || (t2 = at(e5), tt.set(e5, t2)), t2;
548
+ function it(e5) {
549
+ let t2 = $e.get(e5);
550
+ return t2 || (t2 = rt(e5), $e.set(e5, t2)), t2;
551
551
  }
552
- function st(e5) {
552
+ function at(e5) {
553
553
  return typeof e5 == `object` && !!e5;
554
554
  }
555
- function ct(e5, { isRepeated: t2, isMap: n2 }, r2) {
556
- return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? st(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
555
+ function ot(e5, { isRepeated: t2, isMap: n2 }, r2) {
556
+ return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? at(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
557
557
  }
558
- function lt(e5, t2, n2) {
559
- st(e5) && ft(e5, t2, n2);
558
+ function st(e5, t2, n2) {
559
+ at(e5) && ut(e5, t2, n2);
560
560
  }
561
- function ut(e5, t2, n2) {
561
+ function ct(e5, t2, n2) {
562
562
  for (let [r2, i2] of t2) {
563
563
  if (!(r2 in e5)) continue;
564
- if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = ct(e5[r2], t4, n2);
564
+ if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = ot(e5[r2], t4, n2);
565
565
  let t3 = e5[r2];
566
- Array.isArray(t3) ? t3.forEach((e6) => lt(e6, i2, n2)) : lt(t3, i2, n2);
566
+ Array.isArray(t3) ? t3.forEach((e6) => st(e6, i2, n2)) : st(t3, i2, n2);
567
567
  }
568
568
  }
569
- function dt(e5, t2, n2) {
569
+ function lt(e5, t2, n2) {
570
570
  for (let [r2, i2] of t2) {
571
571
  let t3 = e5[r2];
572
- st(t3) && Object.values(t3).forEach((e6) => lt(e6, i2, n2));
572
+ at(t3) && Object.values(t3).forEach((e6) => st(e6, i2, n2));
573
573
  }
574
574
  }
575
- function ft(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
576
- t2 && ut(e5, t2, i2), n2 && dt(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => lt(e6, r2, i2));
575
+ function ut(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
576
+ t2 && ct(e5, t2, i2), n2 && lt(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => st(e6, r2, i2));
577
577
  }
578
- function N(e5, t2) {
579
- if (!st(e5)) return e5;
580
- for (let { paths: n2, transformFn: r2 } of t2) ft(e5, ot(n2), r2);
578
+ function F(e5, t2) {
579
+ if (!at(e5)) return e5;
580
+ for (let { paths: n2, transformFn: r2 } of t2) ut(e5, it(n2), r2);
581
581
  return e5;
582
582
  }
583
- function pt(e5) {
583
+ function dt(e5) {
584
584
  return Object.fromEntries(Object.entries(e5).filter(([, e6]) => e6 !== void 0));
585
585
  }
586
- function mt(e5) {
587
- return yt(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
586
+ function ft(e5) {
587
+ return _t(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
588
588
  }
589
- var ht = /([\p{Ll}\d])(\p{Lu})/gu;
590
- var gt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
591
- var _t = `$1\0$2`;
592
- var vt = /[^\p{L}\d]+/giu;
593
- function yt(e5) {
589
+ var pt = /([\p{Ll}\d])(\p{Lu})/gu;
590
+ var mt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
591
+ var ht = `$1\0$2`;
592
+ var gt = /[^\p{L}\d]+/giu;
593
+ function _t(e5) {
594
594
  let t2 = e5.trim();
595
- t2 = t2.replace(ht, _t).replace(gt, _t), t2 = t2.replace(vt, `\0`);
595
+ t2 = t2.replace(pt, ht).replace(mt, ht), t2 = t2.replace(gt, `\0`);
596
596
  let n2 = 0, r2 = t2.length;
597
597
  for (; t2.charAt(n2) === `\0`; ) n2++;
598
598
  if (n2 === r2) return [];
599
599
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
600
600
  return t2.slice(n2, r2).split(/\0/g);
601
601
  }
602
- var bt = (e5) => `validationError` in (e5.response?.data?.details ?? {});
603
- var xt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
604
- var St = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
605
- function P(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
602
+ var vt = (e5) => `validationError` in (e5.response?.data?.details ?? {});
603
+ var yt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
604
+ var bt = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
605
+ function I(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
606
606
  if (typeof e5 != `object` || !e5) throw e5;
607
- if (bt(e5)) return Ct(e5, t2, n2);
608
- if (xt(e5)) return Tt(e5);
609
- if (St(e5)) {
610
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: mt(n3), data: {} }, requestId: e5.requestId };
611
- return wt(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
607
+ if (vt(e5)) return xt(e5, t2, n2);
608
+ if (yt(e5)) return Ct(e5);
609
+ if (bt(e5)) {
610
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ft(n3), data: {} }, requestId: e5.requestId };
611
+ return St(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
612
612
  }
613
- return Et(e5);
613
+ return wt(e5);
614
614
  }
615
- var Ct = (e5, t2, n2) => {
616
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Dt(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
617
- return wt(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
615
+ var xt = (e5, t2, n2) => {
616
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Tt(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
617
+ return St(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
618
618
  };
619
- var wt = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
620
- var Tt = (e5) => {
621
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? mt(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
622
- return wt(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
619
+ var St = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
620
+ var Ct = (e5) => {
621
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? ft(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
622
+ return St(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
623
623
  };
624
- var Et = (e5) => wt(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: mt(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
625
- var Dt = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
624
+ var wt = (e5) => St(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: ft(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
625
+ var Tt = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
626
626
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
627
627
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
628
628
  let r3 = t2[e6.field];
629
- if (r3) return { ...e6, field: Ot(r3, i2) };
629
+ if (r3) return { ...e6, field: Et(r3, i2) };
630
630
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
631
631
  if (s2) {
632
632
  let t3 = a2[s2];
633
- if (t3) return { ...e6, field: e6.field.replace(s2, Ot(t3, i2)) };
633
+ if (t3) return { ...e6, field: e6.field.replace(s2, Et(t3, i2)) };
634
634
  }
635
635
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
636
636
  });
637
637
  };
638
- var Ot = (e5, t2) => {
639
- let n2 = kt(e5);
638
+ var Et = (e5, t2) => {
639
+ let n2 = Dt(e5);
640
640
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
641
641
  };
642
- var kt = (e5) => {
642
+ var Dt = (e5) => {
643
643
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
644
644
  return t2 && t2.groups && Number(t2.groups.argIndex);
645
645
  };
646
- function At() {
646
+ function Ot() {
647
647
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
648
648
  if (e5) return { initWixModules(t3, n3) {
649
- return jt(() => e5(t3, n3));
649
+ return kt(() => e5(t3, n3));
650
650
  }, fetchWithAuth() {
651
651
  throw Error(`fetchWithAuth is not available in this context`);
652
652
  }, graphql() {
@@ -656,10 +656,10 @@ function At() {
656
656
  if (t2 || n2) return { initWixModules(e6, r2) {
657
657
  if (r2) {
658
658
  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`);
659
- return jt(() => n2.use(e6));
659
+ return kt(() => n2.use(e6));
660
660
  }
661
661
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
662
- return jt(() => t2.use(e6));
662
+ return kt(() => t2.use(e6));
663
663
  }, fetchWithAuth: (e6, n3) => {
664
664
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
665
665
  return t2.fetchWithAuth(e6, n3);
@@ -671,7 +671,7 @@ function At() {
671
671
  return t2.graphql(e6, n3, r2);
672
672
  } };
673
673
  }
674
- function jt(e5) {
674
+ function kt(e5) {
675
675
  let t2 = globalThis.__wix_context__, n2 = { client: g.client, elevatedClient: g.elevatedClient }, r2;
676
676
  globalThis.__wix_context__ = void 0, g.client = void 0, g.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
677
677
  try {
@@ -680,108 +680,108 @@ function jt(e5) {
680
680
  globalThis.__wix_context__ = t2, g.client = n2.client, g.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
681
681
  }
682
682
  }
683
- function Mt(e5, t2) {
683
+ function At(e5, t2) {
684
684
  return (...n2) => {
685
- let r2 = At();
685
+ let r2 = Ot();
686
686
  return r2 ? r2.initWixModules(e5, t2).apply(void 0, n2) : e5.apply(void 0, n2);
687
687
  };
688
688
  }
689
- function Nt(e5) {
689
+ function jt(e5) {
690
690
  let t2 = (...t3) => {
691
- let n2 = At();
691
+ let n2 = Ot();
692
692
  return n2 ? n2.initWixModules(e5).apply(void 0, t3) : () => ({ slug: e5.type });
693
693
  };
694
694
  return t2.__type = e5.__type, t2.type = e5.type, t2.isDomainEvent = e5.isDomainEvent, t2.transformations = e5.transformations, t2;
695
695
  }
696
- function Pt(e5, t2 = false) {
697
- return Mt(e5, t2);
696
+ function Mt(e5, t2 = false) {
697
+ return At(e5, t2);
698
698
  }
699
- function Ft(e5, t2) {
700
- let n2 = Lt(e5), r2 = Object.entries(n2).some(([e6, t3]) => e6.includes(`.`) || Array.isArray(t3) && t3.some((e7) => typeof e7 == `object`));
701
- return t2 && r2 ? new URLSearchParams({ ".r": zt(JSON.stringify(e5)) }) : Object.entries(n2).reduce((e6, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
699
+ function Nt(e5, t2) {
700
+ let n2 = Ft(e5), r2 = Object.entries(n2).some(([e6, t3]) => e6.includes(`.`) || Array.isArray(t3) && t3.some((e7) => typeof e7 == `object`));
701
+ return t2 && r2 ? new URLSearchParams({ ".r": Lt(JSON.stringify(e5)) }) : Object.entries(n2).reduce((e6, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
702
702
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e6.append(t3, r3);
703
703
  }), e6), new URLSearchParams());
704
704
  }
705
- function It(e5) {
706
- let t2 = Qt(Xt(e5.host), e5.domainToMappings);
707
- return cn(an(e5.protoPath, e5.data || {}), t2);
705
+ function Pt(e5) {
706
+ let t2 = Xt(Jt(e5.host), e5.domainToMappings);
707
+ return on(nn(e5.protoPath, e5.data || {}), t2);
708
708
  }
709
- function Lt(e5, t2 = ``) {
709
+ function Ft(e5, t2 = ``) {
710
710
  let n2 = {};
711
711
  return Object.entries(e5).forEach(([e6, r2]) => {
712
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Rt(t2, e6);
712
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = It(t2, e6);
713
713
  if (i2) {
714
- let e7 = Lt(r2, a2);
714
+ let e7 = Ft(r2, a2);
715
715
  Object.assign(n2, e7);
716
716
  } else n2[a2] = r2;
717
717
  }), n2;
718
718
  }
719
- function Rt(e5, t2) {
719
+ function It(e5, t2) {
720
720
  return `${e5}${e5 ? `.` : ``}${t2}`;
721
721
  }
722
- var zt = (e5) => {
722
+ var Lt = (e5) => {
723
723
  let t2 = new TextEncoder().encode(e5);
724
724
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e5, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
725
725
  };
726
- var Bt = [`wix.com`, `editorx.com`];
727
- var Vt = `_`;
728
- var Ht = `*.`;
729
- var Ut = RegExp(`\\.(${Bt.join(`|`)})$`);
730
- var Wt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
731
- var Gt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
732
- var Kt = `dev.wix-code.com`;
733
- var qt = /{(.*)}/;
734
- var Jt = RegExp(`\\.(${Wt.join(`|`)})$`);
735
- var Yt = RegExp(`.*\\.${Kt}$`);
736
- function Xt(e5) {
737
- return Zt(e5).replace(Ut, `._base_domain_`).replace(Jt, `._api_base_domain_`).replace(Yt, `*.dev.wix-code.com`);
738
- }
739
- function Zt(e5) {
740
- return Gt[e5] ?? e5;
741
- }
742
- function Qt(e5, t2) {
726
+ var Rt = [`wix.com`, `editorx.com`];
727
+ var zt = `_`;
728
+ var Bt = `*.`;
729
+ var Vt = RegExp(`\\.(${Rt.join(`|`)})$`);
730
+ var Ht = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
731
+ var Ut = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
732
+ var Wt = `dev.wix-code.com`;
733
+ var Gt = /{(.*)}/;
734
+ var Kt = RegExp(`\\.(${Ht.join(`|`)})$`);
735
+ var qt = RegExp(`.*\\.${Wt}$`);
736
+ function Jt(e5) {
737
+ return Yt(e5).replace(Vt, `._base_domain_`).replace(Kt, `._api_base_domain_`).replace(qt, `*.dev.wix-code.com`);
738
+ }
739
+ function Yt(e5) {
740
+ return Ut[e5] ?? e5;
741
+ }
742
+ function Xt(e5, t2) {
743
743
  let n2 = t2[e5];
744
744
  if (n2) return n2;
745
- let r2 = $t(e5, t2) ?? en(e5, t2);
745
+ let r2 = Zt(e5, t2) ?? Qt(e5, t2);
746
746
  if (!r2) {
747
- if (nn(e5)) {
748
- let e6 = t2[rn];
747
+ if (en(e5)) {
748
+ let e6 = t2[tn];
749
749
  if (e6) return e6;
750
750
  }
751
- let n3 = t2[Vt];
751
+ let n3 = t2[zt];
752
752
  if (n3) return n3;
753
753
  }
754
754
  return r2 ?? [];
755
755
  }
756
- function $t(e5, t2) {
756
+ function Zt(e5, t2) {
757
757
  return Object.entries(t2).find(([t3]) => {
758
758
  let [, ...n2] = e5.split(`.`);
759
759
  return n2.join(`.`) === t3;
760
760
  })?.[1];
761
761
  }
762
- function en(e5, t2) {
763
- let [n2] = Object.entries(t2).filter(([t3]) => tn(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
762
+ function Qt(e5, t2) {
763
+ let [n2] = Object.entries(t2).filter(([t3]) => $t(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
764
764
  if (!n2) return;
765
765
  let [, r2] = n2;
766
766
  return r2;
767
767
  }
768
- function tn(e5, t2) {
769
- if (!t2.startsWith(Ht)) return false;
768
+ function $t(e5, t2) {
769
+ if (!t2.startsWith(Bt)) return false;
770
770
  let n2 = t2.slice(1);
771
771
  return e5.length > n2.length && e5.endsWith(n2);
772
772
  }
773
- function nn(e5) {
773
+ function en(e5) {
774
774
  return !!e5.match(/\._base_domain_$/);
775
775
  }
776
- var rn = `www._base_domain_`;
777
- function an(e5, t2) {
778
- return e5.split(`/`).map((e6) => on(e6, t2)).join(`/`);
776
+ var tn = `www._base_domain_`;
777
+ function nn(e5, t2) {
778
+ return e5.split(`/`).map((e6) => rn(e6, t2)).join(`/`);
779
779
  }
780
- function on(e5, t2) {
781
- let n2 = e5.match(qt) || [], r2 = n2[1];
782
- return r2 ? sn(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
780
+ function rn(e5, t2) {
781
+ let n2 = e5.match(Gt) || [], r2 = n2[1];
782
+ return r2 ? an(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
783
783
  }
784
- function sn(e5, t2, n2, r2) {
784
+ function an(e5, t2, n2, r2) {
785
785
  let i2 = e5;
786
786
  for (let e6 of t2.split(`.`)) {
787
787
  if (!i2) return n2;
@@ -789,40 +789,40 @@ function sn(e5, t2, n2, r2) {
789
789
  }
790
790
  return `${i2}${r2}`;
791
791
  }
792
- function cn(e5, t2) {
792
+ function on(e5, t2) {
793
793
  let n2 = t2?.find((t3) => e5.startsWith(t3.destPath));
794
794
  return n2 ? n2.srcPath + e5.slice(n2.destPath.length) : e5;
795
795
  }
796
- function ln(e5) {
797
- return Nt(e5);
796
+ function sn(e5) {
797
+ return jt(e5);
798
798
  }
799
- function un(e5) {
799
+ function cn(e5) {
800
800
  return e5 === `NaN` ? NaN : e5 === `Infinity` ? 1 / 0 : e5 === `-Infinity` ? -1 / 0 : e5;
801
801
  }
802
- function dn(e5) {
803
- return e5 && pt({ formatted: e5.formattedAddress, location: e5.geocode, addressLine1: e5.addressLine, addressLine2: e5.addressLine2, streetAddress: e5.streetAddress && { name: e5.streetAddress.name, number: e5.streetAddress.number, apt: e5.streetAddress.apt, formattedAddressLine: e5.streetAddress.formattedAddressLine }, hint: e5.hint, city: e5.city, subdivision: e5.subdivision, country: e5.country, postalCode: e5.postalCode, countryFullname: e5.countryFullname, subdivisionFullname: e5.subdivisionFullname });
802
+ function ln(e5) {
803
+ return e5 && dt({ formatted: e5.formattedAddress, location: e5.geocode, addressLine1: e5.addressLine, addressLine2: e5.addressLine2, streetAddress: e5.streetAddress && { name: e5.streetAddress.name, number: e5.streetAddress.number, apt: e5.streetAddress.apt, formattedAddressLine: e5.streetAddress.formattedAddressLine }, hint: e5.hint, city: e5.city, subdivision: e5.subdivision, country: e5.country, postalCode: e5.postalCode, countryFullname: e5.countryFullname, subdivisionFullname: e5.subdivisionFullname });
804
804
  }
805
- var fn;
805
+ var un;
806
806
  (function(e5) {
807
807
  e5.QUERY_PARAM = `QUERY_PARAM`, e5.SUBDOMAIN = `SUBDOMAIN`, e5.SUBDIRECTORY = `SUBDIRECTORY`;
808
- })(fn ||= {});
809
- var pn = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
810
- var mn = (e5, t2) => {
808
+ })(un ||= {});
809
+ var dn = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
810
+ var fn = (e5, t2) => {
811
811
  e5.searchParams.set(`lang`, t2);
812
812
  };
813
- var hn = (e5, t2) => {
813
+ var pn = (e5, t2) => {
814
814
  let n2 = e5.hostname.split(`.`);
815
815
  n2[0] === `www` && (n2 = n2.slice(1)), n2 = [t2, ...n2], e5.hostname = n2.join(`.`);
816
816
  };
817
- var gn = (e5, t2) => {
817
+ var mn = (e5, t2) => {
818
818
  e5.pathname = `/${t2}${e5.pathname}`;
819
819
  };
820
- var _n = (e5, t2) => {
820
+ var hn = (e5, t2) => {
821
821
  if (!t2.languageCode || !t2?.resolutionMethod) return e5;
822
822
  let n2 = new URL(e5);
823
- return (t2?.resolutionMethod === `QUERY_PARAM` ? mn : t2?.resolutionMethod === `SUBDOMAIN` ? hn : gn)(n2, t2.languageCode), n2.href;
823
+ return (t2?.resolutionMethod === `QUERY_PARAM` ? fn : t2?.resolutionMethod === `SUBDOMAIN` ? pn : mn)(n2, t2.languageCode), n2.href;
824
824
  };
825
- var vn = (e5, t2) => {
825
+ var gn = (e5, t2) => {
826
826
  if (!e5?.length) return e5;
827
827
  let n2;
828
828
  try {
@@ -843,67 +843,72 @@ var vn = (e5, t2) => {
843
843
  }
844
844
  return n2.href;
845
845
  };
846
- function yn() {
847
- let e5 = bn();
848
- return e5 ? xn(e5) : [];
846
+ function _n() {
847
+ let e5 = vn();
848
+ return e5 ? yn(e5) : [];
849
849
  }
850
- function bn() {
850
+ function vn() {
851
851
  let e5 = typeof globals < `u` ? globals?.$ns?.[`wix-window`]?.multilingual : void 0, t2 = typeof window < `u` ? window?.essentials?.multilingual : void 0;
852
852
  return e5 ?? t2 ?? globalThis?.__wix_site_metadata__?.multilingual;
853
853
  }
854
- function xn(e5) {
854
+ function yn(e5) {
855
855
  try {
856
856
  if (e5?.supportedLanguages?.length) {
857
- let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? Tn(n2);
858
- return t2.map((e6) => ({ id: e6.languageCode, displayName: Sn(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: Cn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
857
+ let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? Cn(n2);
858
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: bn(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: xn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
859
859
  }
860
860
  if (e5?.siteLanguages?.length) {
861
- let t2 = e5.siteLanguages, n2 = Tn(t2.map((e6) => e6.languageCode).filter(Boolean));
862
- return t2.map((e6) => ({ id: e6.languageCode, displayName: Sn(e6), regionalFormat: e6.locale, url: Cn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? wn(e6.resolutionMethod) : void 0 }));
861
+ let t2 = e5.siteLanguages, n2 = Cn(t2.map((e6) => e6.languageCode).filter(Boolean));
862
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: bn(e6), regionalFormat: e6.locale, url: xn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? Sn(e6.resolutionMethod) : void 0 }));
863
863
  }
864
864
  } catch (e6) {
865
865
  return console.warn(`[Multilingual Manager] listSupportedLanguages failed`, e6), [];
866
866
  }
867
867
  return console.warn(`[Multilingual Manager] listSupportedLanguages is not available`), [];
868
868
  }
869
- function Sn(e5) {
870
- let t2 = pn[e5.languageCode];
869
+ function bn(e5) {
870
+ let t2 = dn[e5.languageCode];
871
871
  if (t2) return t2;
872
872
  let n2 = e5.name ?? e5.countryCode;
873
873
  if (n2) return n2;
874
874
  }
875
- function Cn(e5, t2) {
875
+ function xn(e5, t2) {
876
876
  if (e5.url || !t2 || !e5.resolutionMethod) return e5.url;
877
877
  if (e5.languageCode) try {
878
- return _n(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: wn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
878
+ return hn(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: Sn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
879
879
  } catch (e6) {
880
880
  console.warn(`[Multilingual Manager] buildUrlForLanguage failed`, e6);
881
881
  return;
882
882
  }
883
883
  }
884
- function wn(e5) {
884
+ function Sn(e5) {
885
885
  switch (e5) {
886
886
  case `QUERY_PARAM`:
887
887
  case `QueryParam`:
888
- return fn.QUERY_PARAM;
888
+ return un.QUERY_PARAM;
889
889
  case `SUBDOMAIN`:
890
890
  case `Subdomain`:
891
- return fn.SUBDOMAIN;
891
+ return un.SUBDOMAIN;
892
892
  case `SUBDIRECTORY`:
893
893
  case `Subdirectory`:
894
- return fn.SUBDIRECTORY;
894
+ return un.SUBDIRECTORY;
895
895
  default:
896
896
  return;
897
897
  }
898
898
  }
899
- function Tn(e5) {
899
+ function Cn(e5) {
900
900
  let t2 = typeof window < `u` && window.location?.href ? window.location.href : ``;
901
901
  try {
902
- return vn(t2, e5);
902
+ return gn(t2, e5);
903
903
  } catch (e6) {
904
904
  return console.warn(`[Multilingual Manager] cleanCurrentUrl failed`, e6), t2;
905
905
  }
906
906
  }
907
+ var wn = `x-wix-currency`;
908
+ var Tn = () => {
909
+ let e5 = Mn(`currency`);
910
+ if (e5) return { [wn]: e5 };
911
+ };
907
912
  var En = `x-wix-linguist`;
908
913
  var Dn = `00000000-0000-0000-0000-000000000000`;
909
914
  var On = `false`;
@@ -922,7 +927,8 @@ var Mn = (e5) => jn()?.[e5];
922
927
  var Nn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
923
928
  let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = Fn();
924
929
  return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Mn(`language`), locale: Mn(`locale`), get passThroughHeaders() {
925
- return kn();
930
+ let e6 = { ...kn(), ...Tn() };
931
+ return Object.keys(e6).length > 0 ? e6 : void 0;
926
932
  } } };
927
933
  }, auth: (e6) => {
928
934
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
@@ -959,7 +965,7 @@ var Ln = Nn({ createHost: function(e5) {
959
965
  } });
960
966
  var Rn = (e5, t2) => {
961
967
  let n2 = Ln.host({ applicationId: e5, componentId: t2 }), r2 = Ln.auth();
962
- return He({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
968
+ return Be({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
963
969
  };
964
970
  var zn = (e5) => Rn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
965
971
  function Bn() {
@@ -1009,7 +1015,7 @@ function Hn(e5, t2) {
1009
1015
  function Un(e5) {
1010
1016
  return Hn({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1011
1017
  }
1012
- var F = (e5) => typeof e5 == `string`;
1018
+ var L = (e5) => typeof e5 == `string`;
1013
1019
  var Wn = () => {
1014
1020
  let e5, t2, n2 = new Promise((n3, r2) => {
1015
1021
  e5 = n3, t2 = r2;
@@ -1024,9 +1030,9 @@ var Kn = (e5, t2, n2) => {
1024
1030
  };
1025
1031
  var qn = /###/g;
1026
1032
  var Jn = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(qn, `.`) : e5;
1027
- var Yn = (e5) => !e5 || F(e5);
1033
+ var Yn = (e5) => !e5 || L(e5);
1028
1034
  var Xn = (e5, t2, n2) => {
1029
- let r2 = F(t2) ? t2.split(`.`) : t2, i2 = 0;
1035
+ let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1030
1036
  for (; i2 < r2.length - 1; ) {
1031
1037
  if (Yn(e5)) return {};
1032
1038
  let t3 = Jn(r2[i2]);
@@ -1057,12 +1063,12 @@ var er = (e5, t2, n2) => {
1057
1063
  return r2 === void 0 ? $n(t2, n2) : r2;
1058
1064
  };
1059
1065
  var tr = (e5, t2, n2) => {
1060
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? F(e5[r2]) || e5[r2] instanceof String || F(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : tr(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1066
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? L(e5[r2]) || e5[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : tr(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1061
1067
  return e5;
1062
1068
  };
1063
- var I = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1069
+ var R = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1064
1070
  var nr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1065
- var rr = (e5) => F(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => nr[e6]) : e5;
1071
+ var rr = (e5) => L(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => nr[e6]) : e5;
1066
1072
  var ir = class {
1067
1073
  constructor(e5) {
1068
1074
  this.capacity = e5, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
@@ -1113,7 +1119,7 @@ var ur = { type: `logger`, log(e5) {
1113
1119
  }, output(e5, t2) {
1114
1120
  console?.[e5]?.apply?.(console, t2);
1115
1121
  } };
1116
- var L = new class e2 {
1122
+ var z = new class e2 {
1117
1123
  constructor(e5, t2 = {}) {
1118
1124
  this.init(e5, t2);
1119
1125
  }
@@ -1133,7 +1139,7 @@ var L = new class e2 {
1133
1139
  return this.forward(e5, `warn`, `WARNING DEPRECATED: `, true);
1134
1140
  }
1135
1141
  forward(e5, t2, n2, r2) {
1136
- return r2 && !this.debug ? null : (F(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1142
+ return r2 && !this.debug ? null : (L(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1137
1143
  }
1138
1144
  create(t2) {
1139
1145
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1183,16 +1189,16 @@ var fr = class extends dr {
1183
1189
  }
1184
1190
  getResource(e5, t2, n2, r2 = {}) {
1185
1191
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1186
- e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : F(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1192
+ e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : L(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1187
1193
  let s2 = $n(this.data, o2);
1188
- return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 : cr(this.data?.[e5]?.[t2], n2, i2);
1194
+ return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : cr(this.data?.[e5]?.[t2], n2, i2);
1189
1195
  }
1190
1196
  addResource(e5, t2, n2, r2, i2 = { silent: false }) {
1191
1197
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e5, t2];
1192
1198
  n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Zn(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1193
1199
  }
1194
1200
  addResources(e5, t2, n2, r2 = { silent: false }) {
1195
- for (let r3 in n2) (F(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1201
+ for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1196
1202
  r2.silent || this.emit(`added`, e5, t2, n2);
1197
1203
  }
1198
1204
  addResourceBundle(e5, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
@@ -1233,7 +1239,7 @@ function hr() {
1233
1239
  let e5 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1234
1240
  return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === mr ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1235
1241
  }
1236
- function R(e5, t2) {
1242
+ function B(e5, t2) {
1237
1243
  let { [mr]: n2 } = e5(hr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1238
1244
  if (n2.length > 1 && i2) {
1239
1245
  let e6 = t2?.ns, a2 = Array.isArray(e6) ? e6 : null;
@@ -1242,10 +1248,10 @@ function R(e5, t2) {
1242
1248
  return n2.join(r2);
1243
1249
  }
1244
1250
  var gr = {};
1245
- var _r = (e5) => !F(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1251
+ var _r = (e5) => !L(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1246
1252
  var vr = class e3 extends dr {
1247
1253
  constructor(e5, t2 = {}) {
1248
- super(), Kn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = L.create(`translator`);
1254
+ super(), Kn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = z.create(`translator`);
1249
1255
  }
1250
1256
  changeLanguage(e5) {
1251
1257
  e5 && (this.language = e5);
@@ -1264,44 +1270,44 @@ var vr = class e3 extends dr {
1264
1270
  let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !sr(e5, n2, r2);
1265
1271
  if (a2 && !o2) {
1266
1272
  let t3 = e5.match(this.interpolator.nestingRegexp);
1267
- if (t3 && t3.length > 0) return { key: e5, namespaces: F(i2) ? [i2] : i2 };
1273
+ if (t3 && t3.length > 0) return { key: e5, namespaces: L(i2) ? [i2] : i2 };
1268
1274
  let a3 = e5.split(n2);
1269
1275
  (n2 !== r2 || n2 === r2 && this.options.ns.indexOf(a3[0]) > -1) && (i2 = a3.shift()), e5 = a3.join(r2);
1270
1276
  }
1271
- return { key: e5, namespaces: F(i2) ? [i2] : i2 };
1277
+ return { key: e5, namespaces: L(i2) ? [i2] : i2 };
1272
1278
  }
1273
1279
  translate(t2, n2, r2) {
1274
1280
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1275
1281
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1276
- typeof t2 == `function` && (t2 = R(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? R(e5, { ...this.options, ...i2 }) : String(e5));
1282
+ typeof t2 == `function` && (t2 = B(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? B(e5, { ...this.options, ...i2 }) : String(e5));
1277
1283
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1278
1284
  u2 === void 0 && (u2 = `:`);
1279
1285
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1280
1286
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1281
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !F(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, ee2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, C2 = b2 && !i2.ordinal && i2.count === 0, w2 = C2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${ee2}`] || i2.defaultValue, T2 = m2;
1282
- y2 && !m2 && x2 && (T2 = w2);
1283
- let E2 = _r(T2), D2 = Object.prototype.toString.apply(T2);
1284
- if (y2 && T2 && E2 && _2.indexOf(D2) < 0 && !(F(v2) && Array.isArray(T2))) {
1287
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !L(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
1288
+ y2 && !m2 && x2 && (E2 = T2);
1289
+ let D2 = _r(E2), O2 = Object.prototype.toString.apply(E2);
1290
+ if (y2 && E2 && D2 && _2.indexOf(O2) < 0 && !(L(v2) && Array.isArray(E2))) {
1285
1291
  if (!i2.returnObjects && !this.options.returnObjects) {
1286
1292
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1287
- let e5 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, T2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
1293
+ let e5 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, E2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
1288
1294
  return a2 ? (p2.res = e5, p2.usedParams = this.getUsedParamsDetails(i2), p2) : e5;
1289
1295
  }
1290
1296
  if (o2) {
1291
- let e5 = Array.isArray(T2), t3 = e5 ? [] : {}, n3 = e5 ? g2 : h2;
1292
- for (let e6 in T2) if (Object.prototype.hasOwnProperty.call(T2, e6)) {
1297
+ let e5 = Array.isArray(E2), t3 = e5 ? [] : {}, n3 = e5 ? g2 : h2;
1298
+ for (let e6 in E2) if (Object.prototype.hasOwnProperty.call(E2, e6)) {
1293
1299
  let r3 = `${n3}${o2}${e6}`;
1294
- t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: _r(w2) ? w2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = T2[e6]);
1300
+ t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: _r(T2) ? T2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = E2[e6]);
1295
1301
  }
1296
1302
  m2 = t3;
1297
1303
  }
1298
- } else if (y2 && F(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1304
+ } else if (y2 && L(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1299
1305
  else {
1300
1306
  let e5 = false, n3 = false;
1301
- !this.isValidLookup(m2) && x2 && (e5 = true, m2 = w2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
1302
- let a3 = (i2.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n3 ? void 0 : m2, c3 = x2 && w2 !== m2 && this.options.updateMissing;
1307
+ !this.isValidLookup(m2) && x2 && (e5 = true, m2 = T2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
1308
+ let a3 = (i2.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n3 ? void 0 : m2, c3 = x2 && T2 !== m2 && this.options.updateMissing;
1303
1309
  if (n3 || e5 || c3) {
1304
- if (this.logger.log(c3 ? `updateKey` : `missingKey`, d2, l2, s2, c3 ? w2 : m2), o2) {
1310
+ if (this.logger.log(c3 ? `updateKey` : `missingKey`, d2, l2, s2, c3 ? T2 : m2), o2) {
1305
1311
  let e7 = this.resolve(s2, { ...i2, keySeparator: false });
1306
1312
  e7 && e7.res && this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`);
1307
1313
  }
@@ -1314,10 +1320,10 @@ var vr = class e3 extends dr {
1314
1320
  };
1315
1321
  this.options.saveMissing && (this.options.saveMissingPlurals && b2 ? e6.forEach((e7) => {
1316
1322
  let t4 = this.pluralResolver.getSuffixes(e7, i2);
1317
- C2 && i2[`defaultValue${this.options.pluralSeparator}zero`] && t4.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t4.push(`${this.options.pluralSeparator}zero`), t4.forEach((t5) => {
1318
- n4([e7], s2 + t5, i2[`defaultValue${t5}`] || w2);
1323
+ w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] && t4.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t4.push(`${this.options.pluralSeparator}zero`), t4.forEach((t5) => {
1324
+ n4([e7], s2 + t5, i2[`defaultValue${t5}`] || T2);
1319
1325
  });
1320
- }) : n4(e6, s2, w2));
1326
+ }) : n4(e6, s2, T2));
1321
1327
  }
1322
1328
  m2 = this.extendTranslation(m2, t2, i2, p2, r2), n3 && m2 === s2 && this.options.appendNamespaceToMissingKey && (m2 = `${l2}${u2}${s2}`), (n3 || e5) && this.options.parseMissingKeyHandler && (m2 = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l2}${u2}${s2}` : s2, e5 ? m2 : void 0, i2));
1323
1329
  }
@@ -1327,30 +1333,30 @@ var vr = class e3 extends dr {
1327
1333
  if (this.i18nFormat?.parse) e5 = this.i18nFormat.parse(e5, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1328
1334
  else if (!n2.skipInterpolation) {
1329
1335
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1330
- let a3 = F(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1336
+ let a3 = L(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1331
1337
  if (a3) {
1332
1338
  let t3 = e5.match(this.interpolator.nestingRegexp);
1333
1339
  o3 = t3 && t3.length;
1334
1340
  }
1335
- let s2 = n2.replace && !F(n2.replace) ? n2.replace : n2;
1341
+ let s2 = n2.replace && !L(n2.replace) ? n2.replace : n2;
1336
1342
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e5 = this.interpolator.interpolate(e5, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1337
1343
  let t3 = e5.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1338
1344
  o3 < r3 && (n2.nest = false);
1339
1345
  }
1340
1346
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e5 = this.interpolator.nest(e5, (...e6) => i2?.[0] === e6[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e6[0]} in key: ${t2[0]}`), null) : this.translate(...e6, t2), n2)), n2.interpolation && this.interpolator.reset();
1341
1347
  }
1342
- let a2 = n2.postProcess || this.options.postProcess, o2 = F(a2) ? [a2] : a2;
1348
+ let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1343
1349
  return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = pr.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1344
1350
  }
1345
1351
  resolve(e5, t2 = {}) {
1346
1352
  let n2, r2, i2, a2, o2;
1347
- return F(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? R(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1353
+ return L(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? B(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1348
1354
  if (this.isValidLookup(n2)) return;
1349
1355
  let s2 = this.extractFromKey(e6, t2), c2 = s2.key;
1350
1356
  r2 = c2;
1351
1357
  let l2 = s2.namespaces;
1352
1358
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1353
- let u2 = t2.count !== void 0 && !F(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (F(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1359
+ let u2 = t2.count !== void 0 && !L(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (L(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1354
1360
  l2.forEach((e7) => {
1355
1361
  this.isValidLookup(n2) || (o2 = e7, !gr[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (gr[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1356
1362
  if (this.isValidLookup(n2)) return;
@@ -1379,7 +1385,7 @@ var vr = class e3 extends dr {
1379
1385
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e5, t2, n2, r2) : this.resourceStore.getResource(e5, t2, n2, r2);
1380
1386
  }
1381
1387
  getUsedParamsDetails(e5 = {}) {
1382
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !F(e5.replace), r2 = n2 ? e5.replace : e5;
1388
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !L(e5.replace), r2 = n2 ? e5.replace : e5;
1383
1389
  if (n2 && e5.count !== void 0 && (r2.count = e5.count), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1384
1390
  r2 = { ...r2 };
1385
1391
  for (let e6 of t2) delete r2[e6];
@@ -1393,7 +1399,7 @@ var vr = class e3 extends dr {
1393
1399
  };
1394
1400
  var yr = class {
1395
1401
  constructor(e5) {
1396
- this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = L.create(`languageUtils`);
1402
+ this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = z.create(`languageUtils`);
1397
1403
  }
1398
1404
  getScriptPartFromCode(e5) {
1399
1405
  if (e5 = lr(e5), !e5 || e5.indexOf(`-`) < 0) return null;
@@ -1406,7 +1412,7 @@ var yr = class {
1406
1412
  return this.formatLanguageCode(t2[0]);
1407
1413
  }
1408
1414
  formatLanguageCode(e5) {
1409
- if (F(e5) && e5.indexOf(`-`) > -1) {
1415
+ if (L(e5) && e5.indexOf(`-`) > -1) {
1410
1416
  let t2;
1411
1417
  try {
1412
1418
  t2 = Intl.getCanonicalLocales(e5)[0];
@@ -1439,7 +1445,7 @@ var yr = class {
1439
1445
  }
1440
1446
  getFallbackCodes(e5, t2) {
1441
1447
  if (!e5) return [];
1442
- if (typeof e5 == `function` && (e5 = e5(t2)), F(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1448
+ if (typeof e5 == `function` && (e5 = e5(t2)), L(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1443
1449
  if (!t2) return e5.default || [];
1444
1450
  let n2 = e5[t2];
1445
1451
  return n2 ||= e5[this.getScriptPartFromCode(t2)], n2 ||= e5[this.formatLanguageCode(t2)], n2 ||= e5[this.getLanguagePartFromCode(t2)], n2 ||= e5.default, n2 || [];
@@ -1448,7 +1454,7 @@ var yr = class {
1448
1454
  let n2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e5), r2 = [], i2 = (e6) => {
1449
1455
  e6 && (this.isSupportedCode(e6) ? r2.push(e6) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e6}`));
1450
1456
  };
1451
- return F(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : F(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1457
+ return L(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : L(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1452
1458
  r2.indexOf(e6) < 0 && i2(this.formatLanguageCode(e6));
1453
1459
  }), r2;
1454
1460
  }
@@ -1457,7 +1463,7 @@ var br = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1457
1463
  var xr = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1458
1464
  var Sr = class {
1459
1465
  constructor(e5, t2 = {}) {
1460
- this.languageUtils = e5, this.options = t2, this.logger = L.create(`pluralResolver`), this.pluralRulesCache = {};
1466
+ this.languageUtils = e5, this.options = t2, this.logger = z.create(`pluralResolver`), this.pluralRulesCache = {};
1461
1467
  }
1462
1468
  clearCache() {
1463
1469
  this.pluralRulesCache = {};
@@ -1494,17 +1500,17 @@ var Sr = class {
1494
1500
  };
1495
1501
  var Cr = (e5, t2, n2, r2 = `.`, i2 = true) => {
1496
1502
  let a2 = er(e5, t2, n2);
1497
- return !a2 && i2 && F(n2) && (a2 = cr(e5, n2, r2), a2 === void 0 && (a2 = cr(t2, n2, r2))), a2;
1503
+ return !a2 && i2 && L(n2) && (a2 = cr(e5, n2, r2), a2 === void 0 && (a2 = cr(t2, n2, r2))), a2;
1498
1504
  };
1499
1505
  var wr = (e5) => e5.replace(/\$/g, `$$$$`);
1500
1506
  var Tr = class {
1501
1507
  constructor(e5 = {}) {
1502
- this.logger = L.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1508
+ this.logger = z.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1503
1509
  }
1504
1510
  init(e5 = {}) {
1505
1511
  e5.interpolation ||= { escapeValue: true };
1506
1512
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e5.interpolation;
1507
- this.escape = t2 === void 0 ? rr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? I(i2) : a2 || `{{`, this.suffix = o2 ? I(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? I(d2) : f2 || I(`$t(`), this.nestingSuffix = p2 ? I(p2) : m2 || I(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1513
+ this.escape = t2 === void 0 ? rr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? R(i2) : a2 || `{{`, this.suffix = o2 ? R(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? R(d2) : f2 || R(`$t(`), this.nestingSuffix = p2 ? R(p2) : m2 || R(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1508
1514
  }
1509
1515
  reset() {
1510
1516
  this.options && this.init(this.options);
@@ -1530,13 +1536,13 @@ var Tr = class {
1530
1536
  if (a2 = c2(n3), a2 === void 0) {
1531
1537
  if (typeof l2 == `function`) {
1532
1538
  let t4 = l2(e5, i2, r2);
1533
- a2 = F(t4) ? t4 : ``;
1539
+ a2 = L(t4) ? t4 : ``;
1534
1540
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1535
1541
  else if (u2) {
1536
1542
  a2 = i2[0];
1537
1543
  continue;
1538
1544
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e5}`), a2 = ``;
1539
- } else !F(a2) && !this.useRawValueToEscape && (a2 = Gn(a2));
1545
+ } else !L(a2) && !this.useRawValueToEscape && (a2 = Gn(a2));
1540
1546
  let s3 = t3.safeValue(a2);
1541
1547
  if (e5 = e5.replace(i2[0], s3), u2 ? (t3.regex.lastIndex += a2.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1542
1548
  }
@@ -1546,7 +1552,7 @@ var Tr = class {
1546
1552
  let r2, i2, a2, o2 = (e6, t3) => {
1547
1553
  let n3 = this.nestingOptionsSeparator;
1548
1554
  if (e6.indexOf(n3) < 0) return e6;
1549
- let r3 = e6.split(RegExp(`${I(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1555
+ let r3 = e6.split(RegExp(`${R(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1550
1556
  e6 = r3[0], i3 = this.interpolate(i3, a2);
1551
1557
  let o3 = i3.match(/'/g), s2 = i3.match(/"/g);
1552
1558
  ((o3?.length ?? 0) % 2 == 0 && !s2 || (s2?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1559,10 +1565,10 @@ var Tr = class {
1559
1565
  };
1560
1566
  for (; r2 = this.nestingRegexp.exec(e5); ) {
1561
1567
  let s2 = [];
1562
- a2 = { ...n2 }, a2 = a2.replace && !F(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1568
+ a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1563
1569
  let c2 = /{.*}/.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1564
- if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !F(i2)) return i2;
1565
- F(i2) || (i2 = Gn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1570
+ if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !L(i2)) return i2;
1571
+ L(i2) || (i2 = Gn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1566
1572
  }
1567
1573
  return e5;
1568
1574
  }
@@ -1594,7 +1600,7 @@ var Dr = (e5) => {
1594
1600
  var Or = (e5) => (t2, n2, r2) => e5(lr(n2), r2)(t2);
1595
1601
  var kr = class {
1596
1602
  constructor(e5 = {}) {
1597
- this.logger = L.create(`formatter`), this.options = e5, this.init(e5);
1603
+ this.logger = z.create(`formatter`), this.options = e5, this.init(e5);
1598
1604
  }
1599
1605
  init(e5, t2 = { interpolation: {} }) {
1600
1606
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
@@ -1649,7 +1655,7 @@ var Ar = (e5, t2) => {
1649
1655
  };
1650
1656
  var jr = class extends dr {
1651
1657
  constructor(e5, t2, n2, r2 = {}) {
1652
- super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = L.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1658
+ super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = z.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1653
1659
  }
1654
1660
  queueLoad(e5, t2, n2, r2) {
1655
1661
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1708,7 +1714,7 @@ var jr = class extends dr {
1708
1714
  }
1709
1715
  prepareLoading(e5, t2, n2 = {}, r2) {
1710
1716
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1711
- F(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), F(t2) && (t2 = [t2]);
1717
+ L(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), L(t2) && (t2 = [t2]);
1712
1718
  let i2 = this.queueLoad(e5, t2, n2, r2);
1713
1719
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1714
1720
  i2.toLoad.forEach((e6) => {
@@ -1750,7 +1756,7 @@ var jr = class extends dr {
1750
1756
  };
1751
1757
  var Mr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
1752
1758
  let t2 = {};
1753
- if (typeof e5[1] == `object` && (t2 = e5[1]), F(e5[1]) && (t2.defaultValue = e5[1]), F(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1759
+ if (typeof e5[1] == `object` && (t2 = e5[1]), L(e5[1]) && (t2.defaultValue = e5[1]), L(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1754
1760
  let n2 = e5[3] || e5[2];
1755
1761
  Object.keys(n2).forEach((e6) => {
1756
1762
  t2[e6] = n2[e6];
@@ -1758,7 +1764,7 @@ var Mr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1758
1764
  }
1759
1765
  return t2;
1760
1766
  }, interpolation: { escapeValue: true, format: (e5) => e5, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1761
- var Nr = (e5) => (F(e5.ns) && (e5.ns = [e5.ns]), F(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), F(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1767
+ var Nr = (e5) => (L(e5.ns) && (e5.ns = [e5.ns]), L(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), L(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1762
1768
  var Pr = () => {
1763
1769
  };
1764
1770
  var Fr = (e5) => {
@@ -1772,9 +1778,9 @@ var Rr = () => {
1772
1778
  typeof globalThis < `u` && (globalThis[Ir] = true);
1773
1779
  };
1774
1780
  var zr = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
1775
- var z = class e4 extends dr {
1781
+ var V = class e4 extends dr {
1776
1782
  constructor(e5 = {}, t2) {
1777
- if (super(), this.options = Nr(e5), this.services = {}, this.logger = L, this.modules = { external: [] }, Fr(this), t2 && !this.isInitialized && !e5.isClone) {
1783
+ if (super(), this.options = Nr(e5), this.services = {}, this.logger = z, this.modules = { external: [] }, Fr(this), t2 && !this.isInitialized && !e5.isClone) {
1778
1784
  if (!this.options.initAsync) return this.init(e5, t2), this;
1779
1785
  setTimeout(() => {
1780
1786
  this.init(e5, t2);
@@ -1782,18 +1788,18 @@ var z = class e4 extends dr {
1782
1788
  }
1783
1789
  }
1784
1790
  init(e5 = {}, t2) {
1785
- this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (F(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1791
+ this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (L(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1786
1792
  let n2 = Mr();
1787
1793
  this.options = { ...n2, ...this.options, ...Nr(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !zr(this) && !Lr() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), Rr());
1788
1794
  let r2 = (e6) => e6 ? typeof e6 == `function` ? new e6() : e6 : null;
1789
1795
  if (!this.options.isClone) {
1790
- this.modules.logger ? L.init(r2(this.modules.logger), this.options) : L.init(null, this.options);
1796
+ this.modules.logger ? z.init(r2(this.modules.logger), this.options) : z.init(null, this.options);
1791
1797
  let e6;
1792
1798
  e6 = this.modules.formatter ? this.modules.formatter : kr;
1793
1799
  let t3 = new yr(this.options);
1794
1800
  this.store = new fr(this.options.resources, this.options);
1795
1801
  let i3 = this.services;
1796
- i3.logger = L, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Sr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Tr(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new jr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1802
+ i3.logger = z, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Sr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Tr(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new jr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1797
1803
  this.emit(e7, ...t4);
1798
1804
  }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new vr(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
1799
1805
  this.emit(e7, ...t4);
@@ -1820,7 +1826,7 @@ var z = class e4 extends dr {
1820
1826
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
1821
1827
  }
1822
1828
  loadResources(e5, t2 = Pr) {
1823
- let n2 = t2, r2 = F(e5) ? e5 : this.language;
1829
+ let n2 = t2, r2 = L(e5) ? e5 : this.language;
1824
1830
  if (typeof e5 == `function` && (n2 = e5), !this.options.resources || this.options.partialBundledLanguages) {
1825
1831
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
1826
1832
  let e6 = [], t3 = (t4) => {
@@ -1866,7 +1872,7 @@ var z = class e4 extends dr {
1866
1872
  a3 ? this.isLanguageChangingTo === e5 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e6) => this.t(...e6)), t2 && t2(i3, (...e6) => this.t(...e6));
1867
1873
  }, a2 = (t3) => {
1868
1874
  !e5 && !t3 && this.services.languageDetector && (t3 = []);
1869
- let n3 = F(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(F(t3) ? [t3] : t3);
1875
+ let n3 = L(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(L(t3) ? [t3] : t3);
1870
1876
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e6) => {
1871
1877
  i2(e6, a3);
1872
1878
  });
@@ -1878,11 +1884,11 @@ var z = class e4 extends dr {
1878
1884
  let a2;
1879
1885
  a2 = typeof t3 == `object` ? { ...t3 } : this.options.overloadTranslationOptionHandler([e6, t3].concat(i2)), a2.lng = a2.lng || r2.lng, a2.lngs = a2.lngs || r2.lngs, a2.ns = a2.ns || r2.ns, a2.keyPrefix !== `` && (a2.keyPrefix = a2.keyPrefix || n2 || r2.keyPrefix);
1880
1886
  let o2 = { ...this.options, ...a2 };
1881
- typeof a2.keyPrefix == `function` && (a2.keyPrefix = R(a2.keyPrefix, o2));
1887
+ typeof a2.keyPrefix == `function` && (a2.keyPrefix = B(a2.keyPrefix, o2));
1882
1888
  let s2 = this.options.keySeparator || `.`, c2;
1883
- return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = R(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = R(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1889
+ return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = B(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = B(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1884
1890
  };
1885
- return F(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1891
+ return L(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1886
1892
  }
1887
1893
  t(...e5) {
1888
1894
  return this.translator?.translate(...e5);
@@ -1910,7 +1916,7 @@ var z = class e4 extends dr {
1910
1916
  }
1911
1917
  loadNamespaces(e5, t2) {
1912
1918
  let n2 = Wn();
1913
- return this.options.ns ? (F(e5) && (e5 = [e5]), e5.forEach((e6) => {
1919
+ return this.options.ns ? (L(e5) && (e5 = [e5]), e5.forEach((e6) => {
1914
1920
  this.options.ns.indexOf(e6) < 0 && this.options.ns.push(e6);
1915
1921
  }), this.loadResources((e6) => {
1916
1922
  n2.resolve(), t2 && t2(e6);
@@ -1918,7 +1924,7 @@ var z = class e4 extends dr {
1918
1924
  }
1919
1925
  loadLanguages(e5, t2) {
1920
1926
  let n2 = Wn();
1921
- F(e5) && (e5 = [e5]);
1927
+ L(e5) && (e5 = [e5]);
1922
1928
  let r2 = this.options.preload || [], i2 = e5.filter((e6) => r2.indexOf(e6) < 0 && this.services.languageUtils.isSupportedCode(e6));
1923
1929
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e6) => {
1924
1930
  n2.resolve(), t2 && t2(e6);
@@ -1959,7 +1965,7 @@ var z = class e4 extends dr {
1959
1965
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
1960
1966
  }
1961
1967
  }.createInstance();
1962
- z.createInstance, z.dir, z.init, z.loadResources, z.reloadResources, z.use, z.changeLanguage, z.getFixedT, z.t, z.exists, z.setDefaultNamespace, z.hasLoadedNamespace, z.loadNamespaces, z.loadLanguages;
1968
+ V.createInstance, V.dir, V.init, V.loadResources, V.reloadResources, V.use, V.changeLanguage, V.getFixedT, V.t, V.exists, V.setDefaultNamespace, V.hasLoadedNamespace, V.loadNamespaces, V.loadLanguages;
1963
1969
  var Br = function() {
1964
1970
  return Br = Object.assign || function(e5) {
1965
1971
  for (var t2, n2 = 1, r2 = arguments.length; n2 < r2; n2++) for (var i2 in t2 = arguments[n2], t2) Object.prototype.hasOwnProperty.call(t2, i2) && (e5[i2] = t2[i2]);
@@ -1974,7 +1980,7 @@ function Vr(e5) {
1974
1980
  } };
1975
1981
  throw TypeError(t2 ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
1976
1982
  }
1977
- function B(e5, t2) {
1983
+ function H(e5, t2) {
1978
1984
  var n2 = typeof Symbol == `function` && e5[Symbol.iterator];
1979
1985
  if (!n2) return e5;
1980
1986
  var r2 = n2.call(e5), i2, a2 = [], o2;
@@ -2034,7 +2040,7 @@ function ii(e5, { value: t2, currency: n2 }, r2 = {}) {
2034
2040
  return ei(t2), ni(e5, n2, r2).formatToParts(t2);
2035
2041
  }
2036
2042
  function ai(e5) {
2037
- return yn().find((e6) => e6.primary)?.id ?? e5;
2043
+ return _n().find((e6) => e6.primary)?.id ?? e5;
2038
2044
  }
2039
2045
  function oi(e5, t2) {
2040
2046
  let { locale: n2, ...r2 } = t2 ?? {}, i2 = n2 ?? e5.essentials?.locale;
@@ -2058,7 +2064,7 @@ var si = Un({ getLanguage: (e5) => () => {
2058
2064
  }, getTranslationFunction: (e5) => () => {
2059
2065
  let t2 = e5.translations?.();
2060
2066
  if (!t2) throw Error(`Host translation resources are not available.`);
2061
- let n2 = z.createInstance(), r2 = ai(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2067
+ let n2 = V.createInstance(), r2 = ai(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2062
2068
  return n2.use(Jr).init(i2, (e6) => {
2063
2069
  if (e6) throw e6;
2064
2070
  }), n2.t.bind(n2);
@@ -2080,7 +2086,7 @@ var ci = class {
2080
2086
  };
2081
2087
  var li = (e5) => new ci(e5);
2082
2088
  var ui = Un({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : li(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2083
- var V = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2089
+ var U = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2084
2090
  function di(e5) {
2085
2091
  try {
2086
2092
  let t2 = ui.getMonitoringClient?.();
@@ -2089,70 +2095,74 @@ function di(e5) {
2089
2095
  return null;
2090
2096
  }
2091
2097
  }
2092
- function H(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2098
+ function fi(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2093
2099
  let a2 = di(`captureException`);
2094
2100
  if (!a2) return;
2095
2101
  let o2 = e5 instanceof Error ? e5 : Error(String(e5));
2096
2102
  a2.captureException(o2, { level: r2, tags: { feature: t2, action: n2 }, ...i2 ? { contexts: i2 } : {} });
2097
2103
  }
2098
- function fi(e5, { feature: t2, tags: n2 }, r2) {
2104
+ function pi(e5, { feature: t2, tags: n2 }, r2) {
2099
2105
  let i2 = di(`startSpanManual`);
2100
2106
  if (!i2) return r2;
2101
2107
  let a2 = i2.startSpanManual({ name: e5, tags: { feature: t2, ...n2 } });
2102
2108
  return r2.then(() => a2.end(), (e6) => a2.fail(e6)), r2;
2103
2109
  }
2104
- var pi = class extends e {
2110
+ var mi = class extends e {
2105
2111
  state = { hasError: false };
2106
2112
  static getDerivedStateFromError() {
2107
2113
  return { hasError: true };
2108
2114
  }
2109
2115
  componentDidCatch(e5, t2) {
2110
- H(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2116
+ fi(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2111
2117
  }
2112
2118
  render() {
2113
2119
  return this.state.hasError ? this.props.fallback : this.props.children;
2114
2120
  }
2115
2121
  };
2116
- function mi(e5) {
2122
+ function hi(e5) {
2117
2123
  let t2 = e5;
2118
- if (t2.__state || (t2.__state = { status: `pending` }, t2.then((e6) => {
2124
+ return t2.__state || (t2.__state = { status: `pending` }, t2.then((e6) => {
2119
2125
  t2.__state = { status: `fulfilled`, value: e6 };
2120
2126
  }, (e6) => {
2121
2127
  t2.__state = { status: `rejected`, reason: e6 };
2122
- })), t2.__state.status === `fulfilled`) return t2.__state.value;
2123
- throw t2.__state.status === `rejected` ? t2.__state.reason : t2;
2128
+ })), t2.__state;
2124
2129
  }
2125
- function hi(e5) {
2130
+ function gi(e5) {
2131
+ let t2 = hi(e5);
2132
+ if (t2.status === `fulfilled`) return t2.value;
2133
+ throw t2.status === `rejected` ? t2.reason : e5;
2134
+ }
2135
+ function _i(e5) {
2126
2136
  let t2 = Promise.resolve(e5);
2127
2137
  return t2.__state = { status: `fulfilled`, value: e5 }, t2;
2128
2138
  }
2129
- var gi = /* @__PURE__ */ new WeakMap();
2130
- function _i(e5, t2, n2) {
2131
- let r2 = gi.get(e5);
2132
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), gi.set(e5, r2));
2139
+ var vi = /* @__PURE__ */ new WeakMap();
2140
+ function yi(e5, t2, n2) {
2141
+ let r2 = vi.get(e5);
2142
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), vi.set(e5, r2));
2133
2143
  let i2 = r2.get(t2);
2134
2144
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
2135
2145
  let a2 = i2.get(n2);
2136
2146
  if (!a2) {
2137
2147
  let r3 = e5;
2138
- a2 = r3.__state?.status === `fulfilled` ? hi(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? hi(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2148
+ a2 = r3.__state?.status === `fulfilled` ? _i(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? _i(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2139
2149
  }
2140
2150
  return a2;
2141
2151
  }
2142
- function U(e5) {
2152
+ function W(e5) {
2143
2153
  return e5;
2144
2154
  }
2145
- var vi = U(`@wix/site-service-url`);
2146
- var yi = `appSectionParams`;
2147
- function bi(e5) {
2148
- let t2 = e5.searchParams.get(yi);
2155
+ var bi = W(`@wix/site-service-url`);
2156
+ var xi = `appSectionParams`;
2157
+ function Si(e5) {
2158
+ let t2 = e5.searchParams.get(xi);
2149
2159
  if (t2 === null) return e5;
2150
2160
  let n2 = new URL(e5);
2151
- n2.searchParams.delete(yi);
2152
- for (let [e6, r2] of Object.entries(xi(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2161
+ n2.searchParams.delete(xi);
2162
+ for (let [e6, r2] of Object.entries(Ci(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2153
2163
  return n2;
2154
2164
  }
2155
- function xi(e5) {
2165
+ function Ci(e5) {
2156
2166
  try {
2157
2167
  let t2 = JSON.parse(e5);
2158
2168
  return t2 && typeof t2 == `object` && !Array.isArray(t2) ? t2 : {};
@@ -2160,16 +2170,16 @@ function xi(e5) {
2160
2170
  return {};
2161
2171
  }
2162
2172
  }
2163
- var Si = `bookings-uou:url-change`;
2164
- var Ci = (e5) => {
2173
+ var wi = `bookings-uou:url-change`;
2174
+ var Ti = (e5) => {
2165
2175
  let t2 = new URL(e5);
2166
2176
  return t2.searchParams.sort(), t2.href;
2167
2177
  };
2168
- function wi(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2178
+ function Ei(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2169
2179
  let r2 = globalThis.window;
2170
2180
  if (!r2?.history) return;
2171
2181
  let i2 = new URL(r2.location.href);
2172
- if (Ci(i2) === Ci(e5)) return;
2182
+ if (Ti(i2) === Ti(e5)) return;
2173
2183
  let a2 = { scrollY: r2.scrollY };
2174
2184
  if (n2) r2.history.replaceState(a2, ``, e5.href);
2175
2185
  else {
@@ -2180,251 +2190,251 @@ function wi(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2180
2190
  return;
2181
2191
  }
2182
2192
  }
2183
- r2.dispatchEvent(new Event(Si));
2193
+ r2.dispatchEvent(new Event(wi));
2184
2194
  }
2185
- function Ti(e5) {
2195
+ function Di(e5) {
2186
2196
  let t2 = globalThis.window;
2187
- return t2 ? (t2.addEventListener(Si, e5), t2.addEventListener(`popstate`, e5), () => {
2188
- t2.removeEventListener(Si, e5), t2.removeEventListener(`popstate`, e5);
2197
+ return t2 ? (t2.addEventListener(wi, e5), t2.addEventListener(`popstate`, e5), () => {
2198
+ t2.removeEventListener(wi, e5), t2.removeEventListener(`popstate`, e5);
2189
2199
  }) : () => {
2190
2200
  };
2191
2201
  }
2192
- var Ei = (e5) => {
2202
+ var Oi = (e5) => {
2193
2203
  try {
2194
2204
  return decodeURIComponent(e5);
2195
2205
  } catch {
2196
2206
  return e5;
2197
2207
  }
2198
2208
  };
2199
- function Di(e5, t2) {
2209
+ function ki(e5, t2) {
2200
2210
  let n2 = t2 ? new URL(t2).pathname : `/`;
2201
- return `./${Ei(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2202
- }
2203
- function Oi() {
2204
- let e5 = p(vi), t2 = i(() => e5.currentUrl, [e5]), n2 = d(Ti, t2, t2), r2 = c(() => bi(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2205
- return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => bi(new URL(e5.currentUrl)), getRelativeUrl: () => Di(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: wi };
2206
- }
2207
- var ki = U(`@wix/site-service-editor-context`);
2208
- var Ai = U(`@wix/site-service-pages`);
2209
- var ji = U(`@wix/site-service-router`);
2210
- var Mi = U(`@wix/site-service-renderer-configuration`);
2211
- var Ni = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
2212
- var Pi = `shopping_cart`;
2213
- var Fi = `thank_you_page`;
2214
- var W = function(e5) {
2211
+ return `./${Oi(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2212
+ }
2213
+ function Ai() {
2214
+ let e5 = p(bi), t2 = i(() => e5.currentUrl, [e5]), n2 = d(Di, t2, t2), r2 = c(() => Si(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2215
+ return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Si(new URL(e5.currentUrl)), getRelativeUrl: () => ki(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Ei };
2216
+ }
2217
+ var ji = W(`@wix/site-service-editor-context`);
2218
+ var Mi = W(`@wix/site-service-pages`);
2219
+ var Ni = W(`@wix/site-service-router`);
2220
+ var Pi = W(`@wix/site-service-renderer-configuration`);
2221
+ var Fi = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
2222
+ var Ii = `shopping_cart`;
2223
+ var Li = `thank_you_page`;
2224
+ var G = function(e5) {
2215
2225
  return e5.BOOK_ONLINE = `bookingsBookOnline`, e5.SERVICE_PAGE = `bookingsServicePage`, e5.CALENDAR_PAGE = `bookingsCalendar`, e5.FORM_PAGE = `bookingsForm`, e5;
2216
2226
  }({});
2217
- var Ii = `{{(.*?)}}`;
2218
- var Li = `[{{}}]`;
2219
- var Ri = `([^/]+)`;
2220
- var G;
2227
+ var Ri = `{{(.*?)}}`;
2228
+ var zi = `[{{}}]`;
2229
+ var Bi = `([^/]+)`;
2230
+ var K;
2221
2231
  (function(e5) {
2222
2232
  e5.product_page = `product_page`, e5.blog = `blog`, e5.post = `post`, e5.forum = `forum`, e5.group = `group`, e5.bookings = `Booking Service Page`, e5.challenges = `challenge_page`;
2223
- })(G ||= {});
2224
- var K;
2233
+ })(K ||= {});
2234
+ var q;
2225
2235
  (function(e5) {
2226
2236
  e5.PRODUCT_PAGE = `wix.stores.sub_pages.product`, e5.BLOG_POST = `wix.blog.sub_pages.post`, e5.BLOG_POST_EDIT = `wix.blog.sub_pages.post.edit`, e5.BLOG_POST_PREVIEW = `wix.blog.sub_pages.post.preview`, e5.BLOG_CATEGORY = `wix.blog.sub_pages.category`, e5.FORUM_CATEGORY = `wix.forum.sub_pages.category`, e5.FORUM_CATEGORY_PAGINATION = `wix.forum.sub_pages.category.pagination`, e5.FORUM_CATEGORY_CREATE_POST = `wix.forum.sub_pages.category.create-post`, e5.FORUM_CATEGORY_CREATE_QUESTION = `wix.forum.sub_pages.category.create-question`, e5.FORUM_POST = `wix.forum.sub_pages.post`, e5.FORUM_POST_EDIT = `wix.forum.sub_pages.post.edit`, e5.FORUM_POST_PAGINATION = `wix.forum.sub_pages.post.pagination`, e5.FORUM_POST_DEEP_LINK_DATA = `wix.forum.sub_pages.post.deep-link-data`, e5.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA = `wix.forum.sub_pages.post.pagination-and-deep-link-data`, e5.GROUP = `wix.groups.sub_pages.group`, e5.GROUP_POST = `wix.groups.sub_pages.post`, e5.BOOKINGS_SERVICE = `wix.bookings.sub_pages.service_page`, e5.CHALLENGES_PAGE = `wix.online_programs.sub_pages.online_program`;
2227
- })(K ||= {});
2228
- var zi = {};
2229
- var Bi = (zi[K.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, zi);
2230
- var q = `{{main-mapping}}`;
2237
+ })(q ||= {});
2231
2238
  var Vi = {};
2232
- var Hi;
2233
- var Ui = (Vi[K.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (Hi = {}, Hi[K.BLOG_POST_EDIT] = { defaultMapping: `${q}/edit` }, Hi[K.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${q}/preview/{{instance}}` }, Hi) }, Vi);
2234
- var Wi = {};
2235
- var Gi = (Wi[K.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, Wi);
2239
+ var Hi = (Vi[q.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, Vi);
2240
+ var J = `{{main-mapping}}`;
2241
+ var Ui = {};
2242
+ var Wi;
2243
+ var Gi = (Ui[q.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (Wi = {}, Wi[q.BLOG_POST_EDIT] = { defaultMapping: `${J}/edit` }, Wi[q.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${J}/preview/{{instance}}` }, Wi) }, Ui);
2236
2244
  var Ki = {};
2237
- var J;
2238
- var qi;
2239
- var Ji = (Ki[K.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (J = {}, J[K.FORUM_POST_EDIT] = { defaultMapping: `${q}/edit` }, J[K.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${q}/p-{{page}}` }, J[K.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${q}/dl-{{deepLinkData}}` }, J[K.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${q}/p-{{page}}/dl-{{deepLinkData}}` }, J) }, Ki[K.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (qi = {}, qi[K.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${q}/create-post` }, qi[K.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${q}/create-question` }, qi[K.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${q}/p-{{page}}` }, qi) }, Ki);
2240
- var Yi = {};
2241
- var Xi = (Yi[K.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, Yi[K.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, Yi);
2242
- var Zi = {};
2243
- var Qi = (Zi[K.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, Zi);
2244
- var $i = {};
2245
- var ea = ($i[K.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, $i);
2245
+ var qi = (Ki[q.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, Ki);
2246
+ var Ji = {};
2247
+ var Yi;
2248
+ var Xi;
2249
+ var Zi = (Ji[q.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (Yi = {}, Yi[q.FORUM_POST_EDIT] = { defaultMapping: `${J}/edit` }, Yi[q.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${J}/p-{{page}}` }, Yi[q.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${J}/dl-{{deepLinkData}}` }, Yi[q.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${J}/p-{{page}}/dl-{{deepLinkData}}` }, Yi) }, Ji[q.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (Xi = {}, Xi[q.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${J}/create-post` }, Xi[q.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${J}/create-question` }, Xi[q.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${J}/p-{{page}}` }, Xi) }, Ji);
2250
+ var Qi = {};
2251
+ var $i = (Qi[q.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, Qi[q.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, Qi);
2252
+ var ea = {};
2253
+ var ta = (ea[q.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, ea);
2254
+ var na = {};
2255
+ var ra = (na[q.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, na);
2246
2256
  var Y = {};
2247
- var ta = (Y[G.product_page] = Bi, Y[G.post] = Ui, Y[G.blog] = Gi, Y[G.forum] = Ji, Y[G.group] = Xi, Y[G.bookings] = Qi, Y[G.challenges] = ea, Y);
2248
- var na = function(e5) {
2249
- return Object.values(ra()).some(function(t2) {
2257
+ var ia = (Y[K.product_page] = Hi, Y[K.post] = Gi, Y[K.blog] = qi, Y[K.forum] = Zi, Y[K.group] = $i, Y[K.bookings] = ta, Y[K.challenges] = ra, Y);
2258
+ var aa = function(e5) {
2259
+ return Object.values(oa()).some(function(t2) {
2250
2260
  return !!t2?.subMappings?.[e5];
2251
2261
  });
2252
2262
  };
2253
- var ra = function() {
2254
- return Object.values(ta).reduce(function(e5, t2) {
2263
+ var oa = function() {
2264
+ return Object.values(ia).reduce(function(e5, t2) {
2255
2265
  return Br(Br({}, e5), t2);
2256
2266
  }, {}) || {};
2257
2267
  };
2258
- var ia = function(e5) {
2259
- var t2 = ra()[e5];
2260
- return !t2 && na(e5) && console.warn(`You cannot get variables schema for subMappings key (${e5}).`), t2;
2268
+ var sa = function(e5) {
2269
+ var t2 = oa()[e5];
2270
+ return !t2 && aa(e5) && console.warn(`You cannot get variables schema for subMappings key (${e5}).`), t2;
2261
2271
  };
2262
- var aa = function(e5) {
2263
- return Object.entries(ta).filter(function(t2) {
2264
- var n2 = B(t2, 2)[1];
2272
+ var ca = function(e5) {
2273
+ return Object.entries(ia).filter(function(t2) {
2274
+ var n2 = H(t2, 2)[1];
2265
2275
  return Object.keys(n2).includes(e5);
2266
2276
  }).map(function(e6) {
2267
- return B(e6, 1)[0];
2277
+ return H(e6, 1)[0];
2268
2278
  })[0];
2269
2279
  };
2270
- var oa = function(e5) {
2271
- return Object.entries(ra()).find(function(t2) {
2272
- var n2 = B(t2, 2);
2280
+ var la = function(e5) {
2281
+ return Object.entries(oa()).find(function(t2) {
2282
+ var n2 = H(t2, 2);
2273
2283
  return n2[0], !!n2[1]?.subMappings?.[e5];
2274
2284
  });
2275
2285
  };
2276
- var sa = function(e5) {
2286
+ var ua = function(e5) {
2277
2287
  var t2 = [];
2278
- if (na(e5)) {
2279
- var n2 = B(oa(e5), 2);
2288
+ if (aa(e5)) {
2289
+ var n2 = H(la(e5), 2);
2280
2290
  n2[0];
2281
2291
  var r2 = n2[1];
2282
- t2.push.apply(t2, Hr(Hr([], B(r2?.required || []), false), B(r2?.subMappings?.[e5]?.required || []), false));
2283
- } else t2.push.apply(t2, Hr([], B(ia(e5)?.required || []), false));
2292
+ t2.push.apply(t2, Hr(Hr([], H(r2?.required || []), false), H(r2?.subMappings?.[e5]?.required || []), false));
2293
+ } else t2.push.apply(t2, Hr([], H(sa(e5)?.required || []), false));
2284
2294
  return t2;
2285
2295
  };
2286
- var ca = function(e5, t2) {
2296
+ var da = function(e5, t2) {
2287
2297
  var n2;
2288
2298
  return t2 === void 0 && (t2 = ``), (n2 = e5?.main)?.find?.call(n2, function(e6) {
2289
2299
  return e6.key === t2;
2290
2300
  });
2291
2301
  };
2292
- var la = function(e5, t2) {
2302
+ var fa = function(e5, t2) {
2293
2303
  return Error(`Url Mappings Error - [${e5}]: ${t2}`);
2294
2304
  };
2295
- var ua = Object.values(K);
2296
- var da = la(`key`, `must be one of: ${ua.toString()}`);
2297
- var fa = function(e5) {
2298
- if (typeof e5 != `string` || !ua.includes(e5)) return da;
2305
+ var pa = Object.values(q);
2306
+ var ma = fa(`key`, `must be one of: ${pa.toString()}`);
2307
+ var ha = function(e5) {
2308
+ if (typeof e5 != `string` || !pa.includes(e5)) return ma;
2299
2309
  };
2300
- var pa = la(`itemData`, `must be on object with string as value, for example: { "slug": "shoes" }`);
2301
- var ma = function(e5) {
2310
+ var ga = fa(`itemData`, `must be on object with string as value, for example: { "slug": "shoes" }`);
2311
+ var _a = function(e5) {
2302
2312
  if (typeof e5 != `object` || !e5 || !Object.values(e5).every(function(e6) {
2303
2313
  return typeof e6 == `string`;
2304
- }) || Array.isArray(e5)) return pa;
2314
+ }) || Array.isArray(e5)) return ga;
2305
2315
  };
2306
- var ha = la(`itemData`, `must have required variables, for example: { "slug": "shoes" }`);
2307
- var ga = function(e5, t2) {
2316
+ var va = fa(`itemData`, `must have required variables, for example: { "slug": "shoes" }`);
2317
+ var ya = function(e5, t2) {
2308
2318
  try {
2309
- var n2 = sa(e5);
2319
+ var n2 = ua(e5);
2310
2320
  if (!n2.every(function(e6) {
2311
2321
  return !!t2[e6];
2312
2322
  }) || !n2.length) throw Error();
2313
2323
  } catch {
2314
- return ha;
2324
+ return va;
2315
2325
  }
2316
2326
  };
2317
- var _a = function(e5) {
2327
+ var ba = function(e5) {
2318
2328
  var t2 = e5.key, n2 = e5.itemData;
2319
- return [fa(t2), ma(n2), ga(t2, n2)].find(Boolean);
2329
+ return [ha(t2), _a(n2), ya(t2, n2)].find(Boolean);
2320
2330
  };
2321
- var va = function(e5) {
2331
+ var xa = function(e5) {
2322
2332
  return function(t2) {
2323
- var n2 = new RegExp(Li, `g`), r2 = t2.replace(n2, ``);
2333
+ var n2 = new RegExp(zi, `g`), r2 = t2.replace(n2, ``);
2324
2334
  return e5?.[r2];
2325
2335
  };
2326
2336
  };
2327
- var ya = function(e5, t2, n2, r2) {
2337
+ var Sa = function(e5, t2, n2, r2) {
2328
2338
  e5 === void 0 && (e5 = { main: [] }), r2 === void 0 && (r2 = {});
2329
- var i2 = _a({ key: t2, itemData: n2 });
2339
+ var i2 = ba({ key: t2, itemData: n2 });
2330
2340
  if (i2) throw i2;
2331
- var a2 = (ca(e5, t2) || {}).mapping, o2 = (r2 || {}).baseUrl;
2341
+ var a2 = (da(e5, t2) || {}).mapping, o2 = (r2 || {}).baseUrl;
2332
2342
  if (o2 ??= ``, o2 = o2.endsWith(`/`) ? o2?.slice(0, -1) : o2, a2 && typeof a2 == `string`) {
2333
- var s2 = new RegExp(Ii, `g`), c2 = a2.replace(s2, va(n2));
2343
+ var s2 = new RegExp(Ri, `g`), c2 = a2.replace(s2, xa(n2));
2334
2344
  return o2.concat(`/${c2}`);
2335
2345
  }
2336
2346
  };
2337
- var ba = /[.*+?^$()|]/g;
2338
- var xa = function(e5) {
2339
- var t2 = e5.replace(ba, `\\$&`).replace(new RegExp(Ii, `g`), Ri);
2347
+ var Ca = /[.*+?^$()|]/g;
2348
+ var wa = function(e5) {
2349
+ var t2 = e5.replace(Ca, `\\$&`).replace(new RegExp(Ri, `g`), Bi);
2340
2350
  return RegExp(`^${t2}$`);
2341
2351
  };
2342
- var Sa = function(e5, t2) {
2352
+ var Ta = function(e5, t2) {
2343
2353
  return e5 === void 0 && (e5 = []), e5.find(function(e6) {
2344
- return xa(e6).test(t2);
2354
+ return wa(e6).test(t2);
2345
2355
  });
2346
2356
  };
2347
- la(`url`, `Url must be a string`);
2348
- var Ca = function(e5) {
2357
+ fa(`url`, `Url must be a string`);
2358
+ var Ea = function(e5) {
2349
2359
  return [` `, ` `, `
2350
2360
  `].every(function(t2) {
2351
2361
  return !e5?.includes?.call(e5, t2);
2352
2362
  });
2353
2363
  };
2354
- var wa = function(e5) {
2355
- return e5?.length <= Ia.MAX_URL_MAPPING_LENGTH;
2364
+ var Da = function(e5) {
2365
+ return e5?.length <= za.MAX_URL_MAPPING_LENGTH;
2356
2366
  };
2357
- var Ta = function(e5) {
2367
+ var Oa = function(e5) {
2358
2368
  return e5?.split(`/`).every(Boolean);
2359
2369
  };
2360
- var Ea = function(e5, t2) {
2370
+ var ka = function(e5, t2) {
2361
2371
  var n2 = t2.urlMappingKey;
2362
- return sa(n2)?.every(function(t3) {
2372
+ return ua(n2)?.every(function(t3) {
2363
2373
  return e5?.includes(`{{${t3}}}`);
2364
2374
  });
2365
2375
  };
2366
- var Da = function(e5) {
2367
- return (e5.match(new RegExp(Ii, `g`))?.length || 0) <= 1;
2376
+ var Aa = function(e5) {
2377
+ return (e5.match(new RegExp(Ri, `g`))?.length || 0) <= 1;
2368
2378
  };
2369
- var Oa = function(e5) {
2370
- return e5?.split(`/`).every(Da);
2379
+ var ja = function(e5) {
2380
+ return e5?.split(`/`).every(Aa);
2371
2381
  };
2372
- var ka = function(e5) {
2382
+ var Ma = function(e5) {
2373
2383
  return [e5.publishedPrefix, e5.savedPrefix].filter(Boolean);
2374
2384
  };
2375
- var Aa = function(e5, t2) {
2385
+ var Na = function(e5, t2) {
2376
2386
  return t2 === void 0 && (t2 = []), function(n2, r2) {
2377
2387
  var i2 = n2.split(`/`), a2 = n2 === r2;
2378
2388
  if (i2.length < 1 || a2) return true;
2379
- var o2 = B(r2.split(`/`), 1)[0], s2 = B(i2, 1)[0];
2389
+ var o2 = H(r2.split(`/`), 1)[0], s2 = H(i2, 1)[0];
2380
2390
  return t2.includes(s2) ? true : e5.every(function(e6) {
2381
2391
  return e6 === o2 || e6 !== s2;
2382
2392
  });
2383
2393
  };
2384
2394
  };
2385
- var ja = function(e5, t2) {
2395
+ var Pa = function(e5, t2) {
2386
2396
  var n2 = t2.pathPrefixes;
2387
- return Aa(Object.values(n2).map(function(e6) {
2397
+ return Na(Object.values(n2).map(function(e6) {
2388
2398
  return e6.publishedPrefix;
2389
- }).filter(Boolean), ka(t2.pathPrefix))(e5, t2.defaultMapping.defaultPublished);
2399
+ }).filter(Boolean), Ma(t2.pathPrefix))(e5, t2.defaultMapping.defaultPublished);
2390
2400
  };
2391
- var Ma = function(e5, t2) {
2401
+ var Fa = function(e5, t2) {
2392
2402
  var n2 = t2.urlMappingKey, r2 = t2.urlMappings;
2393
- return !Sa(r2.main?.filter(function(e6) {
2403
+ return !Ta(r2.main?.filter(function(e6) {
2394
2404
  return n2 !== e6.key;
2395
2405
  }).map(function(e6) {
2396
2406
  return e6.mapping;
2397
2407
  }), e5);
2398
2408
  };
2399
- var Na = function(e5) {
2400
- e5 = e5.replace(new RegExp(Ii, `ig`), ``);
2409
+ var Ia = function(e5) {
2410
+ e5 = e5.replace(new RegExp(Ri, `ig`), ``);
2401
2411
  var t2 = new RegExp(/[^\]_.~!*'();:@&=+$,<>\\#^%?`"]/, `g`), n2 = !/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g.test(e5), r2 = !e5.replace(t2, ``);
2402
2412
  return n2 && r2;
2403
2413
  };
2404
- var Pa = function(e5) {
2405
- var t2 = B(e5, 1)[0], n2 = e5.slice(-1);
2414
+ var La = function(e5) {
2415
+ var t2 = H(e5, 1)[0], n2 = e5.slice(-1);
2406
2416
  return t2 !== `/` && n2 !== `/`;
2407
2417
  };
2408
- var Fa = function(e5, t2) {
2418
+ var Ra = function(e5, t2) {
2409
2419
  var n2 = t2.pathPrefixes;
2410
- return Aa(Object.values(n2).map(function(e6) {
2420
+ return Na(Object.values(n2).map(function(e6) {
2411
2421
  return e6.savedPrefix;
2412
- }).filter(Boolean), ka(t2.pathPrefix))(e5, t2.defaultMapping.defaultSaved);
2422
+ }).filter(Boolean), Ma(t2.pathPrefix))(e5, t2.defaultMapping.defaultSaved);
2413
2423
  };
2414
2424
  var X;
2415
2425
  (function(e5) {
2416
2426
  e5.MAX_LENGTH_ERROR = `MAX_LENGTH_ERROR`, e5.NO_SPACES_ERROR = `NO_SPACES_ERROR`, e5.NO_EMPTY_SEGMENT_ERROR = `NO_EMPTY_SEGMENT_ERROR`, e5.CONTAIN_MAIN_VARIABLE_ERROR = `CONTAIN_MAIN_VARIABLE_ERROR`, e5.ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR = `ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR`, e5.ONLY_UNIQUE_PUBLISHED_URL_ERROR = `ONLY_UNIQUE_PUBLISHED_URL_ERROR`, e5.ONLY_UNIQUE_SAVED_URL_ERROR = `ONLY_UNIQUE_SAVED_URL_ERROR`, e5.ONLY_UNIQUE_MAPPING_ERROR = `ONLY_UNIQUE_MAPPING_ERROR`, e5.NO_INVALID_CHARACTERS_ERROR = `NO_INVALID_CHARACTERS_ERROR`, e5.NO_STARTING_OR_ENDING_SLASH_ERROR = `NO_STARTING_OR_ENDING_SLASH_ERROR`;
2417
2427
  })(X ||= {});
2418
- var Ia = function() {
2428
+ var za = function() {
2419
2429
  function e5(e6) {
2420
2430
  var t2 = e6.urlMappingKey, n2 = e6.pathPrefixes, r2 = e6.urlMappings, i2 = this;
2421
2431
  this.initValidators = function() {
2422
- i2.validators = [[wa, X.MAX_LENGTH_ERROR], [Ca, X.NO_SPACES_ERROR], [Pa, X.NO_STARTING_OR_ENDING_SLASH_ERROR], [Ta, X.NO_EMPTY_SEGMENT_ERROR], [Na, X.NO_INVALID_CHARACTERS_ERROR], [Ea, X.CONTAIN_MAIN_VARIABLE_ERROR], [Oa, X.ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR], [ja, X.ONLY_UNIQUE_PUBLISHED_URL_ERROR], [Fa, X.ONLY_UNIQUE_SAVED_URL_ERROR], [Ma, X.ONLY_UNIQUE_MAPPING_ERROR]];
2423
- }, this.urlMappings = r2, this.pathPrefixes = n2, this.urlMappingKey = t2, this.pathPrefix = this.getPathPrefix(), this.defaultMapping = La(t2, this.pathPrefix), this.initValidators();
2432
+ i2.validators = [[Da, X.MAX_LENGTH_ERROR], [Ea, X.NO_SPACES_ERROR], [La, X.NO_STARTING_OR_ENDING_SLASH_ERROR], [Oa, X.NO_EMPTY_SEGMENT_ERROR], [Ia, X.NO_INVALID_CHARACTERS_ERROR], [ka, X.CONTAIN_MAIN_VARIABLE_ERROR], [ja, X.ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR], [Pa, X.ONLY_UNIQUE_PUBLISHED_URL_ERROR], [Ra, X.ONLY_UNIQUE_SAVED_URL_ERROR], [Fa, X.ONLY_UNIQUE_MAPPING_ERROR]];
2433
+ }, this.urlMappings = r2, this.pathPrefixes = n2, this.urlMappingKey = t2, this.pathPrefix = this.getPathPrefix(), this.defaultMapping = Ba(t2, this.pathPrefix), this.initValidators();
2424
2434
  }
2425
2435
  return e5.prototype.getPathPrefix = function() {
2426
- var t2 = aa(this.urlMappingKey);
2427
- if (!t2) throw na(this.urlMappingKey) ? Error(`Url Mapper Validator Error: Validator does not support sub mapping, please use the main url mapping key`) : Error(`Url Mapper Validator Error: Url mapping key is not supported (${this.urlMappingKey})`);
2436
+ var t2 = ca(this.urlMappingKey);
2437
+ if (!t2) throw aa(this.urlMappingKey) ? Error(`Url Mapper Validator Error: Validator does not support sub mapping, please use the main url mapping key`) : Error(`Url Mapper Validator Error: Url mapping key is not supported (${this.urlMappingKey})`);
2428
2438
  return this.pathPrefixes[t2] || e5.FALLBACK_PATH_PREFIX;
2429
2439
  }, Object.defineProperty(e5.prototype, "validatorProps", { get: function() {
2430
2440
  var e6 = this;
@@ -2433,7 +2443,7 @@ var Ia = function() {
2433
2443
  var t2, n2;
2434
2444
  try {
2435
2445
  for (var r2 = Vr(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
2436
- var a2 = B(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e6, this.validatorProps);
2446
+ var a2 = H(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e6, this.validatorProps);
2437
2447
  if (!c2) return { isValid: c2, error: s2 };
2438
2448
  }
2439
2449
  } catch (e7) {
@@ -2448,41 +2458,41 @@ var Ia = function() {
2448
2458
  return { isValid: true };
2449
2459
  }, e5.errorArray = Object.values(X), e5.MAX_URL_MAPPING_LENGTH = 1e3, e5.FALLBACK_PATH_PREFIX = `unknown`, e5;
2450
2460
  }();
2451
- var La = function(e5, t2) {
2452
- var n2 = ra()[e5] || { required: [`slug`] }, r2 = n2.required, i2 = n2.defaultPrefix, a2 = {};
2453
- return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = Ia.FALLBACK_PATH_PREFIX, a2.publishedPrefix = Ia.FALLBACK_PATH_PREFIX), { defaultSaved: Hr([a2.savedPrefix, i2], B(r2?.map(function(e6) {
2461
+ var Ba = function(e5, t2) {
2462
+ var n2 = oa()[e5] || { required: [`slug`] }, r2 = n2.required, i2 = n2.defaultPrefix, a2 = {};
2463
+ return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = za.FALLBACK_PATH_PREFIX, a2.publishedPrefix = za.FALLBACK_PATH_PREFIX), { defaultSaved: Hr([a2.savedPrefix, i2], H(r2?.map(function(e6) {
2454
2464
  return `{{${e6}}}`;
2455
- })), false).filter(Boolean).join(`/`), defaultPublished: Hr([a2.publishedPrefix, i2], B(r2?.map(function(e6) {
2465
+ })), false).filter(Boolean).join(`/`), defaultPublished: Hr([a2.publishedPrefix, i2], H(r2?.map(function(e6) {
2456
2466
  return `{{${e6}}}`;
2457
2467
  })), false).filter(Boolean).join(`/`) };
2458
2468
  };
2459
- function Ra(e5, t2) {
2460
- return t2 ? ya(e5, K.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
2469
+ function Va(e5, t2) {
2470
+ return t2 ? Sa(e5, q.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
2461
2471
  }
2462
- function za(e5) {
2472
+ function Ha(e5) {
2463
2473
  if (!e5) return;
2464
2474
  let t2 = ``;
2465
2475
  return (e5.filename || e5.altText) && (t2 = `/${encodeURIComponent(e5.filename || e5.altText)}`), e5.id ? `wix:image://v1/${e5.id}${t2}#originWidth=${e5.width}&originHeight=${e5.height}` : e5.url;
2466
2476
  }
2467
- function Ba(e5) {
2477
+ function Ua(e5) {
2468
2478
  return Object.keys(e5).length === 1 && `$and` in e5 && Array.isArray(e5.$and);
2469
2479
  }
2470
- function Va(e5) {
2480
+ function Wa(e5) {
2471
2481
  return Object.keys(e5).length === 1 && `$or` in e5 && Array.isArray(e5.$or);
2472
2482
  }
2473
- function Ha(e5) {
2483
+ function Ga(e5) {
2474
2484
  return Object.keys(e5).length === 1 && `$not` in e5 && typeof e5.$not == `object`;
2475
2485
  }
2476
2486
  function Z(e5, t2) {
2477
- return e5 === void 0 || Object.keys(e5).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e5 : { $and: [...Ba(e5) ? e5.$and : [e5], ...Ba(t2) ? t2.$and : [t2]] };
2487
+ return e5 === void 0 || Object.keys(e5).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e5 : { $and: [...Ua(e5) ? e5.$and : [e5], ...Ua(t2) ? t2.$and : [t2]] };
2478
2488
  }
2479
- function Ua(e5, t2) {
2480
- return e5 === void 0 || Object.keys(e5).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e5 : { $or: [...Va(e5) ? e5.$or : [e5], ...Va(t2) ? t2.$or : [t2]] };
2489
+ function Ka(e5, t2) {
2490
+ return e5 === void 0 || Object.keys(e5).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e5 : { $or: [...Wa(e5) ? e5.$or : [e5], ...Wa(t2) ? t2.$or : [t2]] };
2481
2491
  }
2482
- function Wa(e5) {
2483
- if (e5 !== void 0 && Object.keys(e5).length !== 0) return Ha(e5) ? e5.$not : { $not: e5 };
2492
+ function qa(e5) {
2493
+ if (e5 !== void 0 && Object.keys(e5).length !== 0) return Ga(e5) ? e5.$not : { $not: e5 };
2484
2494
  }
2485
- var Ga = class {
2495
+ var Ja = class {
2486
2496
  _items;
2487
2497
  _fetchNextPage;
2488
2498
  _fetchPrevPage;
@@ -2512,7 +2522,7 @@ var Ga = class {
2512
2522
  return await this._fetchPrevPage();
2513
2523
  }
2514
2524
  };
2515
- var Ka = class extends Ga {
2525
+ var Ya = class extends Ja {
2516
2526
  _nextCursor;
2517
2527
  _prevCursor;
2518
2528
  cursors;
@@ -2526,7 +2536,7 @@ var Ka = class extends Ga {
2526
2536
  return !!this._prevCursor;
2527
2537
  }
2528
2538
  };
2529
- var qa = class extends Ga {
2539
+ var Xa = class extends Ja {
2530
2540
  _totalCount;
2531
2541
  _offset;
2532
2542
  _tooManyToCount;
@@ -2549,16 +2559,16 @@ var qa = class extends Ga {
2549
2559
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
2550
2560
  }
2551
2561
  };
2552
- function Ja(e5) {
2562
+ function Za(e5) {
2553
2563
  let t2 = (n2) => ({ query: n2, async find() {
2554
2564
  try {
2555
- let r2 = e5.requestTransformer(e5.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e5.func(r2), { [Ke]: a2, [qe]: o2 } = e5.responseTransformer(i2);
2565
+ let r2 = e5.requestTransformer(e5.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e5.func(r2), { [We]: a2, [Ge]: o2 } = e5.responseTransformer(i2);
2556
2566
  if (e5.pagingMethod === `OFFSET`) {
2557
2567
  let e6 = n2;
2558
- return new qa({ items: a2 ?? [], fetchNextPage: () => t2({ ...e6, paging: { offset: e6.paging.offset + e6.paging.limit, limit: e6.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e6.paging.offset - e6.paging.limit, 0), limit: e6.paging.limit } }).find(), offset: e6.paging.offset, limit: e6.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
2568
+ return new Xa({ items: a2 ?? [], fetchNextPage: () => t2({ ...e6, paging: { offset: e6.paging.offset + e6.paging.limit, limit: e6.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e6.paging.offset - e6.paging.limit, 0), limit: e6.paging.limit } }).find(), offset: e6.paging.offset, limit: e6.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
2559
2569
  }
2560
2570
  let s2 = n2.cursorPaging;
2561
- return new Ka({ 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 });
2571
+ return new Ya({ 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 });
2562
2572
  } catch (t3) {
2563
2573
  throw e5.errorTransformer(t3);
2564
2574
  }
@@ -2610,11 +2620,11 @@ function Ja(e5) {
2610
2620
  let a2 = { [Q(e5.transformationPaths, r2)]: { $exists: i2 } };
2611
2621
  return t2({ ...n2, filter: Z(n2.filter, a2) });
2612
2622
  }, or(e6) {
2613
- return t2({ ...n2, filter: Ua(n2.filter, e6.query.filter) });
2623
+ return t2({ ...n2, filter: Ka(n2.filter, e6.query.filter) });
2614
2624
  }, and(e6) {
2615
2625
  return t2({ ...n2, filter: Z(n2.filter, e6.query.filter) });
2616
2626
  }, not(e6) {
2617
- return t2({ ...n2, filter: Wa(e6.query.filter) });
2627
+ return t2({ ...n2, filter: qa(e6.query.filter) });
2618
2628
  }, ascending(...r2) {
2619
2629
  return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Q(e5.transformationPaths, t3), order: `ASC` }))] });
2620
2630
  }, descending(...r2) {
@@ -2633,26 +2643,26 @@ function Ja(e5) {
2633
2643
  }
2634
2644
  function Q(e5, t2) {
2635
2645
  let n2 = Object.entries(e5).find(([e6]) => e6 === t2 || t2.startsWith(`${e6}.`))?.[0];
2636
- return n2 ? t2.replace(n2, e5[n2]) : Ye(t2, { ...e5, ...Je });
2646
+ return n2 ? t2.replace(n2, e5[n2]) : qe(t2, { ...e5, ...Ke });
2637
2647
  }
2638
- function Ya(e5, t2, n2 = {}) {
2639
- let r2 = (r3, i3) => Ya(e5, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Xe(e5, t2)]: n2 };
2648
+ function Qa(e5, t2, n2 = {}) {
2649
+ let r2 = (r3, i3) => Qa(e5, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Je(e5, t2)]: n2 };
2640
2650
  return { get filter() {
2641
2651
  return i2();
2642
2652
  }, eq: (e6) => r2(`$eq`, e6), ne: (e6) => r2(`$ne`, e6), gt: (e6) => r2(`$gt`, e6), gte: (e6) => r2(`$gte`, e6), lt: (e6) => r2(`$lt`, e6), lte: (e6) => r2(`$lte`, e6), startsWith: (e6) => r2(`$startsWith`, e6), endsWith: (e6) => r2(`$endsWith`, e6), contains: (e6) => r2(`$contains`, e6), in: (e6) => r2(`$in`, e6), nin: (e6) => r2(`$nin`, e6), hasSome: (e6) => r2(`$hasSome`, e6), hasAll: (e6) => r2(`$hasAll`, e6), exists: (e6 = true) => r2(`$exists`, e6), isEmpty: (e6 = true) => r2(`$isEmpty`, e6), isNotEmpty: () => r2(`$ne`, null) };
2643
2653
  }
2644
- function Xa(e5) {
2645
- return Object.assign((t2) => Ya(t2, e5), { and: (...e6) => ({ filter: { $and: e6.map((e7) => e7.filter) } }), or: (...e6) => ({ filter: { $or: e6.map((e7) => e7.filter) } }), not: (e6) => ({ filter: { $not: e6.filter } }) });
2654
+ function $a(e5) {
2655
+ return Object.assign((t2) => Qa(t2, e5), { and: (...e6) => ({ filter: { $and: e6.map((e7) => e7.filter) } }), or: (...e6) => ({ filter: { $or: e6.map((e7) => e7.filter) } }), not: (e6) => ({ filter: { $not: e6.filter } }) });
2646
2656
  }
2647
- function Za(e5) {
2648
- return (t2) => ({ asc: () => ({ sort: { fieldName: Xe(t2, e5), order: `ASC` } }), desc: () => ({ sort: { fieldName: Xe(t2, e5), order: `DESC` } }) });
2657
+ function eo(e5) {
2658
+ return (t2) => ({ asc: () => ({ sort: { fieldName: Je(t2, e5), order: `ASC` } }), desc: () => ({ sort: { fieldName: Je(t2, e5), order: `DESC` } }) });
2649
2659
  }
2650
- function Qa(e5) {
2660
+ function to(e5) {
2651
2661
  return () => {
2652
2662
  let t2 = {}, n2 = { withFilter(e6) {
2653
2663
  return t2 = { ...t2, filter: e6.filter }, n2;
2654
2664
  }, withFields(...r2) {
2655
- return t2 = { ...t2, fields: r2.map((t3) => Xe(t3, e5)) }, n2;
2665
+ return t2 = { ...t2, fields: r2.map((t3) => Je(t3, e5)) }, n2;
2656
2666
  }, withSorting(...e6) {
2657
2667
  return t2 = { ...t2, sort: e6.map((e7) => e7.sort) }, n2;
2658
2668
  }, withPaging(e6) {
@@ -2663,57 +2673,57 @@ function Qa(e5) {
2663
2673
  return n2;
2664
2674
  };
2665
2675
  }
2666
- function $a(e5) {
2667
- return { QueryBuilder: Qa(e5), Filter: Xa(e5), Sort: Za(e5) };
2668
- }
2669
- var eo = `filter`;
2670
- var to = `sort`;
2671
- var no = `cursorPaging`;
2672
- var ro = `paging`;
2673
- var io = [eo, to, no];
2674
- var ao = [eo, to, ro];
2675
- function oo(e5, t2) {
2676
+ function no(e5) {
2677
+ return { QueryBuilder: to(e5), Filter: $a(e5), Sort: eo(e5) };
2678
+ }
2679
+ var ro = `filter`;
2680
+ var io = `sort`;
2681
+ var ao = `cursorPaging`;
2682
+ var oo = `paging`;
2683
+ var so = [ro, io, ao];
2684
+ var co = [ro, io, oo];
2685
+ function lo(e5, t2) {
2676
2686
  return !e5 || typeof e5 != `object` ? false : t2.some((t3) => e5.hasOwnProperty(t3));
2677
2687
  }
2678
- function so(e5) {
2679
- return oo(e5, io);
2688
+ function uo(e5) {
2689
+ return lo(e5, so);
2680
2690
  }
2681
- function co(e5) {
2682
- return oo(e5, ao);
2691
+ function fo(e5) {
2692
+ return lo(e5, co);
2683
2693
  }
2684
- function lo(e5) {
2694
+ function po(e5) {
2685
2695
  let { hasOptionsParameter: t2 } = e5;
2686
2696
  return function(...n2) {
2687
- return t2 ? fo(n2, e5) : uo(n2, e5);
2697
+ return t2 ? ho(n2, e5) : mo(n2, e5);
2688
2698
  };
2689
2699
  }
2690
- function uo(e5, t2) {
2700
+ function mo(e5, t2) {
2691
2701
  return e5.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e5[0]);
2692
2702
  }
2693
- function fo(e5, t2) {
2703
+ function ho(e5, t2) {
2694
2704
  switch (e5.length) {
2695
2705
  case 0:
2696
2706
  return t2.builderQueryFunction();
2697
2707
  case 1:
2698
- return so(e5[0]) || co(e5[0]) ? t2.typedQueryFunction(e5[0]) : t2.builderQueryFunction(e5[0]);
2708
+ return uo(e5[0]) || fo(e5[0]) ? t2.typedQueryFunction(e5[0]) : t2.builderQueryFunction(e5[0]);
2699
2709
  default:
2700
2710
  return t2.typedQueryFunction(e5[0], e5[1]);
2701
2711
  }
2702
2712
  }
2703
- function po(e5) {
2704
- return It(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], _: [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "*.dev.wix-code.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "editor._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/bookings/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "bo._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wixbo.ai": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wix-bo.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "www._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/service-options-and-variants` }] } }));
2713
+ function go(e5) {
2714
+ return Pt(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], _: [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "*.dev.wix-code.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "editor._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/bookings/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "bo._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wixbo.ai": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wix-bo.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "www._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/service-options-and-variants` }] } }));
2705
2715
  }
2706
- var mo = `@wix/auto_sdk_bookings_service-options-and-variants`;
2707
- function ho(e5) {
2716
+ var _o = `@wix/auto_sdk_bookings_service-options-and-variants`;
2717
+ function vo(e5) {
2708
2718
  function t2({ host: t3 }) {
2709
- return { entityFqdn: `wix.bookings.catalog.v1.service_options_and_variants`, method: `POST`, methodFqn: `wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.QueryServiceOptionsAndVariants`, packageName: mo, migrationOptions: { optInTransformResponse: true }, url: po({ protoPath: `/v1/serviceOptionsAndVariants/query`, data: e5, host: t3 }), data: e5 };
2719
+ return { entityFqdn: `wix.bookings.catalog.v1.service_options_and_variants`, method: `POST`, methodFqn: `wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.QueryServiceOptionsAndVariants`, packageName: _o, migrationOptions: { optInTransformResponse: true }, url: go({ protoPath: `/v1/serviceOptionsAndVariants/query`, data: e5, host: t3 }), data: e5 };
2710
2720
  }
2711
2721
  return t2;
2712
2722
  }
2713
- function go() {
2723
+ function yo() {
2714
2724
  let { httpClient: e5, sideEffects: t2 } = arguments[0];
2715
- return Ja({ func: async (n2) => {
2716
- let r2 = ho(n2);
2725
+ return Za({ func: async (n2) => {
2726
+ let r2 = vo(n2);
2717
2727
  t2?.onSiteCall?.();
2718
2728
  try {
2719
2729
  let n3 = await e5.request(r2);
@@ -2723,64 +2733,64 @@ function go() {
2723
2733
  }
2724
2734
  }, requestTransformer: (e6) => {
2725
2735
  let t3 = [e6, {}];
2726
- return A({ ...t3?.[1], query: t3?.[0] });
2736
+ return M({ ...t3?.[1], query: t3?.[0] });
2727
2737
  }, responseTransformer: ({ data: e6 }) => {
2728
- let t3 = j(N(e6, []));
2738
+ let t3 = N(F(e6, []));
2729
2739
  return { items: t3?.serviceOptionsAndVariantsList, pagingMetadata: t3?.pagingMetadata };
2730
2740
  }, errorTransformer: (e6) => {
2731
- throw P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2741
+ throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2732
2742
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2733
2743
  }
2734
- async function _o(e5) {
2735
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ho(A({ query: e5 }));
2744
+ async function bo(e5) {
2745
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(M({ query: e5 }));
2736
2746
  n2?.onSiteCall?.();
2737
2747
  try {
2738
2748
  let e6 = await t2.request(r2);
2739
- return n2?.onSuccess?.(e6), j(e6.data);
2749
+ return n2?.onSuccess?.(e6), N(e6.data);
2740
2750
  } catch (e6) {
2741
- let t3 = P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2751
+ let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2742
2752
  throw n2?.onError?.(e6), t3;
2743
2753
  }
2744
2754
  }
2745
- function vo(e5) {
2746
- return () => go({ httpClient: e5 });
2755
+ function xo(e5) {
2756
+ return () => yo({ httpClient: e5 });
2747
2757
  }
2748
- function yo(e5) {
2749
- return (t2) => _o(t2, { httpClient: e5 });
2758
+ function So(e5) {
2759
+ return (t2) => bo(t2, { httpClient: e5 });
2750
2760
  }
2751
- function bo(e5) {
2752
- let t2 = lo({ builderQueryFunction: () => vo(e5)(), typedQueryFunction: (t3) => yo(e5)(t3), hasOptionsParameter: false });
2761
+ function Co(e5) {
2762
+ let t2 = po({ builderQueryFunction: () => xo(e5)(), typedQueryFunction: (t3) => So(e5)(t3), hasOptionsParameter: false });
2753
2763
  function n2(e6) {
2754
2764
  return t2(...arguments);
2755
2765
  }
2756
2766
  return n2;
2757
2767
  }
2758
- var xo = Pt(bo);
2759
- function So(e5) {
2768
+ var wo = Mt(Co);
2769
+ function To(e5) {
2760
2770
  if (e5) return e5.url;
2761
2771
  }
2762
- var Co = [{ path: `services.createdDate` }, { path: `services.updatedDate` }, { path: `services.media.items.image.urlExpirationDate` }, { path: `services.media.mainMedia.image.urlExpirationDate` }, { path: `services.media.coverMedia.image.urlExpirationDate` }, { path: `services.payment.subscription.recurringStartDate` }, { path: `services.bookingPolicy.createdDate` }, { path: `services.bookingPolicy.updatedDate` }, { path: `services.schedule.firstSessionStart` }, { path: `services.schedule.lastSessionEnd` }, { path: `services.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.supportedSlugs.createdDate` }, { path: `services.mainSlug.createdDate` }];
2763
- var wo = [{ path: `services.locations.business.address.geocode.latitude` }, { path: `services.locations.business.address.geocode.longitude` }, { path: `services.locations.custom.address.geocode.latitude` }, { path: `services.locations.custom.address.geocode.longitude` }, { path: `services.locations.calculatedAddress.geocode.latitude` }, { path: `services.locations.calculatedAddress.geocode.longitude` }];
2764
- function To(e5) {
2765
- return It(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2772
+ var Eo = [{ path: `services.createdDate` }, { path: `services.updatedDate` }, { path: `services.media.items.image.urlExpirationDate` }, { path: `services.media.mainMedia.image.urlExpirationDate` }, { path: `services.media.coverMedia.image.urlExpirationDate` }, { path: `services.payment.subscription.recurringStartDate` }, { path: `services.bookingPolicy.createdDate` }, { path: `services.bookingPolicy.updatedDate` }, { path: `services.schedule.firstSessionStart` }, { path: `services.schedule.lastSessionEnd` }, { path: `services.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.supportedSlugs.createdDate` }, { path: `services.mainSlug.createdDate` }];
2773
+ var Do = [{ path: `services.locations.business.address.geocode.latitude` }, { path: `services.locations.business.address.geocode.longitude` }, { path: `services.locations.custom.address.geocode.latitude` }, { path: `services.locations.custom.address.geocode.longitude` }, { path: `services.locations.calculatedAddress.geocode.latitude` }, { path: `services.locations.calculatedAddress.geocode.longitude` }];
2774
+ function Oo(e5) {
2775
+ return Pt(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2766
2776
  }
2767
- var Eo = `@wix/auto_sdk_bookings_services`;
2768
- function Do(e5) {
2777
+ var ko = `@wix/auto_sdk_bookings_services`;
2778
+ function Ao(e5) {
2769
2779
  function t2({ host: t3 }) {
2770
- return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: Eo, migrationOptions: { optInTransformResponse: true }, url: To({ protoPath: `/v2/services/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => N(e6, [{ transformFn: M, paths: Co }, { transformFn: un, paths: wo }]) };
2780
+ return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: ko, migrationOptions: { optInTransformResponse: true }, url: Oo({ protoPath: `/v2/services/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => F(e6, [{ transformFn: P, paths: Eo }, { transformFn: cn, paths: Do }]) };
2771
2781
  }
2772
2782
  return t2;
2773
2783
  }
2774
- var Oo = [{ path: `services.media.items.image` }, { path: `services.media.mainMedia.image` }, { path: `services.media.coverMedia.image` }, { path: `services.staffMembers.mainMedia.image` }, { path: `services.staffMemberDetails.staffMembers.mainMedia.image` }];
2775
- var ko = [{ path: `services.locations.calculatedAddress` }, { path: `services.locations.business.address` }, { path: `services.locations.custom.address` }];
2776
- var Ao = [{ path: `services.urls.servicePage` }, { path: `services.urls.bookingPage` }, { path: `services.urls.calendarPage` }];
2777
- var jo = ((e5) => (e5.APPOINTMENT = `APPOINTMENT`, e5.CLASS = `CLASS`, e5.COURSE = `COURSE`, e5))(jo || {});
2778
- var Mo = ((e5) => (e5.FIXED = `FIXED`, e5.CUSTOM = `CUSTOM`, e5.VARIED = `VARIED`, e5.NO_FEE = `NO_FEE`, e5.SUBSCRIPTION = `SUBSCRIPTION`, e5))(Mo || {});
2779
- var No = ((e5) => (e5.CUSTOM = `CUSTOM`, e5.BUSINESS = `BUSINESS`, e5.CUSTOMER = `CUSTOMER`, e5))(No || {});
2780
- function Po(e5) {
2784
+ var jo = [{ path: `services.media.items.image` }, { path: `services.media.mainMedia.image` }, { path: `services.media.coverMedia.image` }, { path: `services.staffMembers.mainMedia.image` }, { path: `services.staffMemberDetails.staffMembers.mainMedia.image` }];
2785
+ var Mo = [{ path: `services.locations.calculatedAddress` }, { path: `services.locations.business.address` }, { path: `services.locations.custom.address` }];
2786
+ var No = [{ path: `services.urls.servicePage` }, { path: `services.urls.bookingPage` }, { path: `services.urls.calendarPage` }];
2787
+ var Po = ((e5) => (e5.APPOINTMENT = `APPOINTMENT`, e5.CLASS = `CLASS`, e5.COURSE = `COURSE`, e5))(Po || {});
2788
+ var Fo = ((e5) => (e5.FIXED = `FIXED`, e5.CUSTOM = `CUSTOM`, e5.VARIED = `VARIED`, e5.NO_FEE = `NO_FEE`, e5.SUBSCRIPTION = `SUBSCRIPTION`, e5))(Fo || {});
2789
+ var Io = ((e5) => (e5.CUSTOM = `CUSTOM`, e5.BUSINESS = `BUSINESS`, e5.CUSTOMER = `CUSTOMER`, e5))(Io || {});
2790
+ function Lo(e5) {
2781
2791
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
2782
- return Ja({ func: async (r2) => {
2783
- let i2 = Do({ ...r2, ...e5 ?? {} });
2792
+ return Za({ func: async (r2) => {
2793
+ let i2 = Ao({ ...r2, ...e5 ?? {} });
2784
2794
  n2?.onSiteCall?.();
2785
2795
  try {
2786
2796
  let e6 = await t2.request(i2);
@@ -2790,146 +2800,146 @@ function Po(e5) {
2790
2800
  }
2791
2801
  }, requestTransformer: (t3) => {
2792
2802
  let n3 = [t3, e5];
2793
- return A({ ...n3?.[1], query: n3?.[0] });
2803
+ return M({ ...n3?.[1], query: n3?.[0] });
2794
2804
  }, responseTransformer: ({ data: e6 }) => {
2795
- let t3 = j(N(e6, [{ transformFn: za, paths: Oo }, { transformFn: dn, paths: ko }, { transformFn: So, paths: Ao }]));
2805
+ let t3 = N(F(e6, [{ transformFn: Ha, paths: jo }, { transformFn: ln, paths: Mo }, { transformFn: To, paths: No }]));
2796
2806
  return { items: t3?.services, pagingMetadata: t3?.pagingMetadata };
2797
2807
  }, errorTransformer: (e6) => {
2798
- throw P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2808
+ throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2799
2809
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
2800
2810
  }
2801
- async function Fo(e5, t2) {
2802
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Do(A({ query: e5, ...t2 }));
2811
+ async function Ro(e5, t2) {
2812
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ao(M({ query: e5, ...t2 }));
2803
2813
  r2?.onSiteCall?.();
2804
2814
  try {
2805
2815
  let e6 = await n2.request(i2);
2806
- return r2?.onSuccess?.(e6), j(N(e6.data, [{ transformFn: za, paths: Oo }, { transformFn: dn, paths: ko }, { transformFn: So, paths: Ao }]));
2816
+ return r2?.onSuccess?.(e6), N(F(e6.data, [{ transformFn: Ha, paths: jo }, { transformFn: ln, paths: Mo }, { transformFn: To, paths: No }]));
2807
2817
  } catch (e6) {
2808
- let t3 = P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2818
+ let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2809
2819
  throw r2?.onError?.(e6), t3;
2810
2820
  }
2811
2821
  }
2812
- function Io(e5) {
2813
- return (t2) => Po(t2, { httpClient: e5 });
2822
+ function zo(e5) {
2823
+ return (t2) => Lo(t2, { httpClient: e5 });
2814
2824
  }
2815
- function Lo(e5) {
2816
- return (t2, n2) => Fo(t2, n2, { httpClient: e5 });
2825
+ function Bo(e5) {
2826
+ return (t2, n2) => Ro(t2, n2, { httpClient: e5 });
2817
2827
  }
2818
- function Ro(e5) {
2819
- let t2 = lo({ builderQueryFunction: (t3) => Io(e5)(t3), typedQueryFunction: (t3, n3) => Lo(e5)(t3, n3), hasOptionsParameter: true });
2828
+ function Vo(e5) {
2829
+ let t2 = po({ builderQueryFunction: (t3) => zo(e5)(t3), typedQueryFunction: (t3, n3) => Bo(e5)(t3, n3), hasOptionsParameter: true });
2820
2830
  function n2(e6, n3) {
2821
2831
  return t2(...arguments);
2822
2832
  }
2823
2833
  return n2;
2824
2834
  }
2825
- var zo = Pt(Ro);
2826
- var Bo = [{ path: `bookingsSettings.createdDate` }, { path: `bookingsSettings.updatedDate` }];
2827
- var Vo = [{ path: `bookingsSettings.siteProperties.address.coordinates.latitude` }, { path: `bookingsSettings.siteProperties.address.coordinates.longitude` }];
2828
- function Ho(e5) {
2829
- return It(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "dev._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], _: [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/bookings-settings`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }] } }));
2835
+ var Ho = Mt(Vo);
2836
+ var Uo = [{ path: `bookingsSettings.createdDate` }, { path: `bookingsSettings.updatedDate` }];
2837
+ var Wo = [{ path: `bookingsSettings.siteProperties.address.coordinates.latitude` }, { path: `bookingsSettings.siteProperties.address.coordinates.longitude` }];
2838
+ function Go(e5) {
2839
+ return Pt(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "dev._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], _: [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/bookings-settings`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }] } }));
2830
2840
  }
2831
- var Uo = `@wix/auto_sdk_bookings_bookings-settings`;
2832
- function Wo(e5) {
2841
+ var Ko = `@wix/auto_sdk_bookings_bookings-settings`;
2842
+ function qo(e5) {
2833
2843
  function t2({ host: t3 }) {
2834
- return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: Uo, migrationOptions: { optInTransformResponse: true }, url: Ho({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Ft(e5), transformResponse: (e6) => N(e6, [{ transformFn: M, paths: Bo }, { transformFn: un, paths: Vo }]), fallback: [{ method: `GET`, url: Ho({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Ft(e5) }] };
2844
+ return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: Ko, migrationOptions: { optInTransformResponse: true }, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Nt(e5), transformResponse: (e6) => F(e6, [{ transformFn: P, paths: Uo }, { transformFn: cn, paths: Wo }]), fallback: [{ method: `GET`, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Nt(e5) }] };
2835
2845
  }
2836
2846
  return t2;
2837
2847
  }
2838
- var Go = ((e5) => (e5.BUSINESS_TIME_ZONE = `BUSINESS_TIME_ZONE`, e5.CUSTOMER_TIME_ZONE = `CUSTOMER_TIME_ZONE`, e5))(Go || {});
2839
- async function Ko() {
2840
- let { httpClient: e5, sideEffects: t2 } = arguments[0], n2 = Wo(A({}));
2848
+ var Jo = ((e5) => (e5.BUSINESS_TIME_ZONE = `BUSINESS_TIME_ZONE`, e5.CUSTOMER_TIME_ZONE = `CUSTOMER_TIME_ZONE`, e5))(Jo || {});
2849
+ async function Yo() {
2850
+ let { httpClient: e5, sideEffects: t2 } = arguments[0], n2 = qo(M({}));
2841
2851
  t2?.onSiteCall?.();
2842
2852
  try {
2843
2853
  let r2 = await e5.request(n2);
2844
- return t2?.onSuccess?.(r2), j(r2.data)?.bookingsSettings;
2854
+ return t2?.onSuccess?.(r2), N(r2.data)?.bookingsSettings;
2845
2855
  } catch (e6) {
2846
- let n3 = P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: {}, singleArgumentUnchanged: false }, []);
2856
+ let n3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: {}, singleArgumentUnchanged: false }, []);
2847
2857
  throw t2?.onError?.(e6), n3;
2848
2858
  }
2849
2859
  }
2850
- function qo(e5) {
2851
- return () => Ko({ httpClient: e5 });
2860
+ function Xo(e5) {
2861
+ return () => Yo({ httpClient: e5 });
2852
2862
  }
2853
- var Jo = Pt(qo);
2854
- var Yo = (e5) => e5 === jo.APPOINTMENT;
2855
- var Xo = (e5) => e5.payment?.rateType === Mo.VARIED;
2856
- var Zo = [`STAFF_MEMBER_DETAILS`, `STAFF_WORKING_HOURS_LOCATIONS`, `DISCOUNT_INFO_DETAILS`];
2857
- function Qo() {
2858
- return zo({ conditionalFields: Zo }).eq(`appId`, Ni).eq(`hidden`, false);
2863
+ var Zo = Mt(Xo);
2864
+ var Qo = (e5) => e5 === Po.APPOINTMENT;
2865
+ var $o = (e5) => e5.payment?.rateType === Fo.VARIED;
2866
+ var es = [`STAFF_MEMBER_DETAILS`, `STAFF_WORKING_HOURS_LOCATIONS`, `DISCOUNT_INFO_DETAILS`];
2867
+ function ts() {
2868
+ return Ho({ conditionalFields: es }).eq(`appId`, Fi).eq(`hidden`, false);
2859
2869
  }
2860
- async function $o({ limit: e5, offset: t2, categoryId: n2, locationId: r2, serviceIds: i2, categoryIds: a2 }) {
2870
+ async function ns({ limit: e5, offset: t2, categoryId: n2, locationId: r2, serviceIds: i2, categoryIds: a2 }) {
2861
2871
  if (n2 && a2?.length && !a2.includes(n2)) return { services: [], hasMore: false, totalPages: 1 };
2862
- let o2 = Qo().limit(e5).skip(t2);
2863
- i2?.length && (o2 = o2.in(`_id`, i2)), n2 ? o2 = o2.eq(`category.id`, n2) : a2?.length && (o2 = o2.in(`category.id`, a2)), r2 === `OTHER_LOCATIONS` ? o2 = o2.hasSome(`locations.type`, [No.CUSTOM, No.CUSTOMER]) : r2 && (o2 = o2.eq(`locations.business.id`, r2));
2872
+ let o2 = ts().limit(e5).skip(t2);
2873
+ i2?.length && (o2 = o2.in(`_id`, i2)), n2 ? o2 = o2.eq(`category.id`, n2) : a2?.length && (o2 = o2.in(`category.id`, a2)), r2 === `OTHER_LOCATIONS` ? o2 = o2.hasSome(`locations.type`, [Io.CUSTOM, Io.CUSTOMER]) : r2 && (o2 = o2.eq(`locations.business.id`, r2));
2864
2874
  let s2 = await o2.find();
2865
2875
  return { services: s2.items ?? [], hasMore: s2.hasNext(), totalPages: s2.totalPages ?? 1 };
2866
2876
  }
2867
- var es = { category: `category`, location: `location`, page: `page`, blob: `b`, resource: `resource`, referral: `referral`, timezone: `timezone`, bookingId: `bookingId`, token: `token`, rescheduleRedirectUrl: `rescheduleRedirectUrl` };
2868
- function ts(e5, t2) {
2877
+ var rs = { category: `category`, location: `location`, page: `page`, blob: `bookingSelection`, legacyBlob: `b`, resource: `resource`, referral: `referral`, timezone: `timezone`, bookingId: `bookingId`, token: `token`, rescheduleRedirectUrl: `rescheduleRedirectUrl` };
2878
+ function is(e5, t2) {
2869
2879
  let n2 = e5(t2);
2870
2880
  return n2 ? n2.replace(/\/$/, ``) || `/` : null;
2871
2881
  }
2872
- function ns(e5, t2, n2) {
2882
+ function as(e5, t2, n2) {
2873
2883
  let r2 = e5(t2);
2874
2884
  return !r2 || !n2 ? null : `${r2.replace(/\/$/, ``)}/${n2}`;
2875
2885
  }
2876
- function rs(e5, t2) {
2886
+ function os(e5, t2) {
2877
2887
  switch (e5) {
2878
2888
  case `servicePage`:
2879
- return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? ns(t2.appSectionUrl, W.SERVICE_PAGE, t2.slug);
2889
+ return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? as(t2.appSectionUrl, G.SERVICE_PAGE, t2.slug);
2880
2890
  case `bookingCalendar`:
2881
- return t2.isMultiService ? ts(t2.appSectionUrl, W.CALENDAR_PAGE) : ns(t2.appSectionUrl, W.CALENDAR_PAGE, t2.slug);
2891
+ return t2.isMultiService ? is(t2.appSectionUrl, G.CALENDAR_PAGE) : as(t2.appSectionUrl, G.CALENDAR_PAGE, t2.slug);
2882
2892
  case `bookingForm`:
2883
- return t2.serviceId ? ns(t2.appSectionUrl, W.FORM_PAGE, t2.slug) : null;
2893
+ return t2.serviceId ? as(t2.appSectionUrl, G.FORM_PAGE, t2.slug) : null;
2884
2894
  default:
2885
2895
  return null;
2886
2896
  }
2887
2897
  }
2888
- var is = (e5) => e5.target === `_blank`;
2889
- var as = (e5, t2) => t2 === `/` ? e5 : new URL(`.${t2}`, `${e5}/`).href;
2890
- var os = (e5, t2, n2) => n2 ? `.${t2}` : ss(e5, t2);
2891
- var ss = (e5, t2) => e5 ? as(e5, t2) : t2;
2892
- var cs = () => {
2893
- let { previewMode: e5 } = p(ki), t2 = p(vi), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = p(ji), a2 = p(Mi), o2 = f(), s2 = i(async (t3) => {
2894
- let i2 = os(n2, t3, e5);
2898
+ var ss = (e5) => e5.target === `_blank`;
2899
+ var cs = (e5, t2) => t2 === `/` ? e5 : new URL(`.${t2}`, `${e5}/`).href;
2900
+ var ls = (e5, t2, n2) => n2 ? `.${t2}` : us(e5, t2);
2901
+ var us = (e5, t2) => e5 ? cs(e5, t2) : t2;
2902
+ var ds = () => {
2903
+ let { previewMode: e5 } = p(ji), t2 = p(bi), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = p(Ni), a2 = p(Pi), o2 = f(), s2 = i(async (t3) => {
2904
+ let i2 = ls(n2, t3, e5);
2895
2905
  await r2({ href: i2 });
2896
2906
  }, [e5, n2, r2]), c2 = i(async (e6) => {
2897
- await r2(is(e6) ? { href: e6.href, type: `ExternalLink`, target: `_blank` } : { href: e6.href });
2898
- }, [r2]), l2 = i((e6) => ss(n2, e6), [n2]), u2 = i((e6) => t2.appSectionRelativeUrl(Ni, e6), [t2]), d2 = i((e6) => Ra(a2.urlMappings, e6), [a2]), m2 = i((e6, t3) => rs(e6, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), h2 = i((e6, t3) => {
2907
+ await r2(ss(e6) ? { href: e6.href, type: `ExternalLink`, target: `_blank` } : { href: e6.href });
2908
+ }, [r2]), l2 = i((e6) => us(n2, e6), [n2]), u2 = i((e6) => t2.appSectionRelativeUrl(Fi, e6), [t2]), d2 = i((e6) => Va(a2.urlMappings, e6), [a2]), m2 = i((e6, t3) => os(e6, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), h2 = i((e6, t3) => {
2899
2909
  let r3 = m2(e6, t3);
2900
- return r3 && n2 ? as(n2, r3) : null;
2910
+ return r3 && n2 ? cs(n2, r3) : null;
2901
2911
  }, [m2, n2]), g2 = i((e6, t3) => {
2902
2912
  let n3 = m2(e6, t3);
2903
2913
  n3 && s2(n3);
2904
- }, [m2, s2]), _2 = i(() => u2(W.FORM_PAGE) || void 0, [u2]), v2 = i((e6) => Object.values(o2(Ai).pages).some((t3) => t3.appPageId === e6 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e6) || void 0, [t2, o2]);
2905
- return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: h2, navigateTo: g2, getBookingFormPath: _2, getCartPagePath: i(() => v2(Pi), [v2]), getThankYouPagePath: i((e6) => {
2906
- let t3 = v2(Fi);
2914
+ }, [m2, s2]), _2 = i(() => u2(G.FORM_PAGE) || void 0, [u2]), v2 = i((e6) => Object.values(o2(Mi).pages).some((t3) => t3.appPageId === e6 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e6) || void 0, [t2, o2]);
2915
+ return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: h2, navigateTo: g2, getBookingFormPath: _2, getCartPagePath: i(() => v2(Ii), [v2]), getThankYouPagePath: i((e6) => {
2916
+ let t3 = v2(Li);
2907
2917
  return t3 ? `${t3}/${e6}?origin=bookings` : void 0;
2908
2918
  }, [v2]) };
2909
2919
  };
2910
- var ls = U(`@wix/site-service-warmup-data`);
2911
- function us() {
2920
+ var fs = W(`@wix/site-service-warmup-data`);
2921
+ function ps() {
2912
2922
  try {
2913
2923
  return f();
2914
2924
  } catch {
2915
2925
  return null;
2916
2926
  }
2917
2927
  }
2918
- function ds(e5) {
2928
+ function ms(e5) {
2919
2929
  try {
2920
- return e5 ? e5(ls) : null;
2930
+ return e5 ? e5(fs) : null;
2921
2931
  } catch {
2922
2932
  return null;
2923
2933
  }
2924
2934
  }
2925
- function fs() {
2926
- let e5 = ds(us()), t2 = typeof window > `u`;
2935
+ function hs() {
2936
+ let e5 = ms(ps()), t2 = typeof window > `u`;
2927
2937
  return { scope: e5 ?? void 0, get: async (n2) => {
2928
2938
  if (t2 || !e5) return null;
2929
2939
  try {
2930
2940
  return await e5.get(n2);
2931
2941
  } catch (e6) {
2932
- return H(e6, { feature: V.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2942
+ return fi(e6, { feature: U.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2933
2943
  }
2934
2944
  }, set: (n2, r2) => {
2935
2945
  if (t2 && e5) try {
@@ -2938,82 +2948,118 @@ function fs() {
2938
2948
  }
2939
2949
  } };
2940
2950
  }
2941
- var ps = U(`@wix/site-service-locale`);
2942
- var ms = U;
2943
- var hs = ms(`@wix/viewer-service-multilingual`);
2944
- function gs() {
2951
+ var gs = W(`@wix/site-service-locale`);
2952
+ var _s = W;
2953
+ var vs = _s(`@wix/viewer-service-multilingual`);
2954
+ function ys() {
2945
2955
  try {
2946
2956
  return si.getLanguage() ?? `en`;
2947
2957
  } catch {
2948
2958
  return `en`;
2949
2959
  }
2950
2960
  }
2951
- function _s(e5) {
2961
+ function bs(e5) {
2952
2962
  try {
2953
2963
  return p(e5);
2954
2964
  } catch {
2955
2965
  return null;
2956
2966
  }
2957
2967
  }
2958
- function vs() {
2959
- let e5 = _s(ps), t2 = _s(hs);
2960
- return t2?.multilingualEnabled && t2.currentLocale?.languageCode || e5?.language || gs();
2968
+ function xs() {
2969
+ let e5 = bs(gs), t2 = bs(vs);
2970
+ return t2?.multilingualEnabled && t2.currentLocale?.languageCode || e5?.language || ys();
2961
2971
  }
2962
- var ys = `bookings-uou`;
2963
- function bs(e5, t2, n2, r2, i2, a2 = [], o2 = []) {
2964
- let s2 = a2.length ? `:ids-${encodeURIComponent(JSON.stringify([...a2].sort()))}` : ``, c2 = o2.length ? `:cats-${encodeURIComponent(JSON.stringify([...o2].sort()))}` : ``;
2965
- return `${ys}:${e5}:services:${t2 ?? `all`}:${n2 ?? `all`}:page-${r2}:limit-${i2}${s2}${c2}`;
2972
+ function Ss() {
2973
+ return p(Pi).currency;
2966
2974
  }
2967
- function xs(e5, t2, n2) {
2968
- return `${ys}:${e5}:services-variants:ids-${encodeURIComponent(JSON.stringify([...t2].sort()))}:refresh-${n2}`;
2975
+ function Cs() {
2976
+ return globalThis.commonConfig?.currency;
2969
2977
  }
2970
- function Ss() {
2971
- return `${ys}:bookings-settings`;
2978
+ function ws(e5) {
2979
+ let t2 = globalThis.window;
2980
+ if (!t2) return () => {
2981
+ };
2982
+ let n2 = t2.navigation, r2 = true, i2 = () => queueMicrotask(() => {
2983
+ r2 && e5();
2984
+ });
2985
+ return n2?.addEventListener(`currententrychange`, i2), t2.addEventListener(`popstate`, e5), () => {
2986
+ r2 = false, n2?.removeEventListener(`currententrychange`, i2), t2.removeEventListener(`popstate`, e5);
2987
+ };
2988
+ }
2989
+ var Ts = /^[A-Z]{3}$/;
2990
+ function Es(e5) {
2991
+ return Ts.test(e5) ? typeof Intl.supportedValuesOf != `function` || Intl.supportedValuesOf(`currency`).includes(e5) : false;
2972
2992
  }
2973
- var Cs = 5e3;
2974
- var ws = 100;
2975
- var Ts = `wix-warmup-data`;
2976
- var Es = null;
2977
2993
  function Ds(e5) {
2994
+ let t2 = e5?.toUpperCase();
2995
+ return t2 && Es(t2) ? t2 : null;
2996
+ }
2997
+ function Os(e5, t2) {
2998
+ let n2 = Ds(e5);
2999
+ return n2 && n2 !== Ds(t2) ? n2 : null;
3000
+ }
3001
+ function ks() {
3002
+ let e5 = d(ws, Cs, Cs), t2 = Ss();
3003
+ return o(Os(e5, t2));
3004
+ }
3005
+ var As = `bookings-uou`;
3006
+ function js(e5) {
3007
+ return e5 ? `:currency-${e5}` : ``;
3008
+ }
3009
+ function Ms(e5, t2, n2, r2, i2, a2, o2 = [], s2 = []) {
3010
+ let c2 = o2.length ? `:ids-${encodeURIComponent(JSON.stringify([...o2].sort()))}` : ``, l2 = s2.length ? `:cats-${encodeURIComponent(JSON.stringify([...s2].sort()))}` : ``;
3011
+ return `${As}:${e5}:services:${n2 ?? `all`}:${r2 ?? `all`}:page-${i2}:limit-${a2}${c2}${l2}${js(t2)}`;
3012
+ }
3013
+ function Ns(e5, t2, n2, r2) {
3014
+ return `${As}:${e5}:services-variants:ids-${encodeURIComponent(JSON.stringify([...n2].sort()))}:refresh-${r2}${js(t2)}`;
3015
+ }
3016
+ function Ps() {
3017
+ return `${As}:bookings-settings`;
3018
+ }
3019
+ var Fs = 5e3;
3020
+ var Is = 100;
3021
+ var Ls = `wix-warmup-data`;
3022
+ var Rs = null;
3023
+ function zs(e5) {
2978
3024
  if (typeof document < `u`) try {
2979
- let t2 = document.getElementById(Ts)?.textContent;
2980
- return t2 ? (Es?.text !== t2 && (Es = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Es.data[e5] ?? void 0) : void 0;
3025
+ let t2 = document.getElementById(Ls)?.textContent;
3026
+ return t2 ? (Rs?.text !== t2 && (Rs = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Rs.data[e5] ?? void 0) : void 0;
2981
3027
  } catch {
2982
3028
  return;
2983
3029
  }
2984
3030
  }
2985
- var Os = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
2986
- var ks = Os();
2987
- var As = /* @__PURE__ */ new WeakMap();
2988
- var js = /* @__PURE__ */ new WeakMap();
2989
- function Ms(e5) {
2990
- if (!e5) return ks;
2991
- let t2 = As.get(e5);
2992
- return t2 || (t2 = Os(), As.set(e5, t2)), t2;
3031
+ var Bs = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
3032
+ var Vs = Bs();
3033
+ var Hs = /* @__PURE__ */ new WeakMap();
3034
+ var Us = /* @__PURE__ */ new WeakMap();
3035
+ function Ws(e5) {
3036
+ if (!e5) return Vs;
3037
+ let t2 = Hs.get(e5);
3038
+ return t2 || (t2 = Bs(), Hs.set(e5, t2)), t2;
2993
3039
  }
2994
- function Ns({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3040
+ function Gs({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
2995
3041
  if (e5 === null) return n2();
2996
3042
  if (typeof window > `u`) {
2997
3043
  let r3 = () => n2().then((n3) => (t2.set(e5, n3), n3)), { scope: i3 } = t2;
2998
3044
  if (!i3) return r3();
2999
- let a3 = js.get(i3);
3000
- a3 || (a3 = /* @__PURE__ */ new Map(), js.set(i3, a3));
3045
+ let a3 = Us.get(i3);
3046
+ a3 || (a3 = /* @__PURE__ */ new Map(), Us.set(i3, a3));
3001
3047
  let o3 = a3.get(e5);
3002
3048
  if (o3) return o3;
3003
3049
  let s3 = r3();
3004
3050
  return a3.set(e5, s3), s3.catch(() => a3.delete(e5)), s3;
3005
3051
  }
3006
- let i2 = Ms(t2.scope), a2 = Date.now();
3052
+ let i2 = Ws(t2.scope), a2 = Date.now();
3007
3053
  for (let [e6, t3] of i2.promises) t3.expiresAt <= a2 && i2.promises.delete(e6);
3008
3054
  let o2 = i2.promises.get(e5);
3009
3055
  if (o2 && !r2) return o2.promise;
3010
3056
  r2 && i2.invalidatedWarmup.add(e5);
3011
3057
  let s2 = !i2.invalidatedWarmup.has(e5);
3012
3058
  if (s2) {
3013
- let t3 = Ds(e5);
3059
+ let t3 = zs(e5);
3014
3060
  if (t3 !== void 0) {
3015
- let n3 = hi(t3);
3016
- return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Cs }), n3;
3061
+ let n3 = _i(t3);
3062
+ return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Fs }), n3;
3017
3063
  }
3018
3064
  }
3019
3065
  let c2 = (async () => {
@@ -3023,62 +3069,62 @@ function Ns({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3023
3069
  }
3024
3070
  return n2();
3025
3071
  })();
3026
- i2.promises.size >= ws && i2.promises.delete(i2.promises.keys().next().value);
3072
+ i2.promises.size >= Is && i2.promises.delete(i2.promises.keys().next().value);
3027
3073
  let l2 = { promise: c2, expiresAt: 1 / 0 };
3028
3074
  return i2.promises.set(e5, l2), c2.then(() => {
3029
- l2.expiresAt = Date.now() + Cs;
3075
+ l2.expiresAt = Date.now() + Fs;
3030
3076
  }, () => {
3031
3077
  i2.promises.get(e5) === l2 && i2.promises.delete(e5);
3032
3078
  }), c2;
3033
3079
  }
3034
- var Ps = 100;
3035
- async function Fs(e5) {
3080
+ var Ks = 100;
3081
+ async function qs(e5) {
3036
3082
  if (e5.length === 0) return {};
3037
3083
  let t2 = [];
3038
- for (let n3 = 0; n3 < e5.length; n3 += Ps) t2.push(e5.slice(n3, n3 + Ps));
3039
- let n2 = await Promise.all(t2.map((e6) => xo().in(`serviceId`, e6).limit(Ps).find())), r2 = {};
3084
+ for (let n3 = 0; n3 < e5.length; n3 += Ks) t2.push(e5.slice(n3, n3 + Ks));
3085
+ let n2 = await Promise.all(t2.map((e6) => wo().in(`serviceId`, e6).limit(Ks).find())), r2 = {};
3040
3086
  for (let e6 of n2.flatMap((e7) => e7.items ?? [])) e6.serviceId && (r2[e6.serviceId] = e6);
3041
3087
  return r2;
3042
3088
  }
3043
- var Is = U(`@wix/site-service-rendering-context`);
3044
- var Ls = () => {
3045
- let { SSR: e5 } = p(Is);
3089
+ var Js = W(`@wix/site-service-rendering-context`);
3090
+ var Ys = () => {
3091
+ let { SSR: e5 } = p(Js);
3046
3092
  return { isSSR: () => e5 };
3047
3093
  };
3048
- var Rs = ms(`@wix/site-service-business-logger`);
3049
- function zs(e5) {
3094
+ var Xs = _s(`@wix/site-service-business-logger`);
3095
+ function Zs(e5) {
3050
3096
  return { evid: 1222, src: 16, endpoint: ``, params: e5 };
3051
3097
  }
3052
- function Bs(e5) {
3098
+ function Qs(e5) {
3053
3099
  return { evid: 32, src: 16, endpoint: ``, params: e5 };
3054
3100
  }
3055
- var Vs = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
3056
- var Hs = W.BOOK_ONLINE;
3057
- var Us = `new_bookings_server`;
3058
- var Ws = `load more`;
3059
- var Gs = (e5) => {
3060
- let { reportBi: t2 } = p(Rs);
3101
+ var $s = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
3102
+ var ec = G.BOOK_ONLINE;
3103
+ var tc = `new_bookings_server`;
3104
+ var nc = `load more`;
3105
+ var rc = (e5) => {
3106
+ let { reportBi: t2 } = p(Xs);
3061
3107
  return i((n2) => {
3062
- t2({ widget_name: e5, bookingsPlatform: Us, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
3108
+ t2({ widget_name: e5, bookingsPlatform: tc, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
3063
3109
  }, [t2, e5]);
3064
3110
  };
3065
- function Ks(e5) {
3111
+ function ic(e5) {
3066
3112
  return { evid: 540, src: 16, endpoint: `wixboost-ugc`, params: e5 };
3067
3113
  }
3068
- var qs = U(`seo/seo-service`);
3069
- function Js() {
3114
+ var ac = W(`seo/seo-service`);
3115
+ function oc() {
3070
3116
  let e5 = f();
3071
3117
  try {
3072
- return e5(qs);
3118
+ return e5(ac);
3073
3119
  } catch {
3074
3120
  return null;
3075
3121
  }
3076
3122
  }
3077
- function Ys() {
3078
- let e5 = Js();
3123
+ function sc() {
3124
+ let e5 = oc();
3079
3125
  return { resolved: !!e5, send: (t2) => {
3080
3126
  if (!e5) return Promise.resolve(`unavailable`);
3081
- let n2 = (e6) => H(e6, { feature: V.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
3127
+ let n2 = (e6) => fi(e6, { feature: U.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
3082
3128
  try {
3083
3129
  return e5.setSeoEntity(t2).then(() => `sent`).catch((e6) => (n2(e6), `failed`));
3084
3130
  } catch (e6) {
@@ -3086,38 +3132,38 @@ function Ys() {
3086
3132
  }
3087
3133
  } };
3088
3134
  }
3089
- var Xs = `SERVICES_COMPONENT`;
3090
- var Zs = `PAGINATED_COMPONENT`;
3091
- function Qs(e5, t2, n2) {
3092
- return { itemType: Xs, itemData: { services: e5.map((e6) => ({ ...e6, urls: { servicePage: { url: t2(e6) ?? `` } } })), pagination: n2 } };
3135
+ var cc = `SERVICES_COMPONENT`;
3136
+ var lc = `PAGINATED_COMPONENT`;
3137
+ function uc(e5, t2, n2) {
3138
+ return { itemType: cc, itemData: { services: e5.map((e6) => ({ ...e6, urls: { servicePage: { url: t2(e6) ?? `` } } })), pagination: n2 } };
3093
3139
  }
3094
- function $s(e5) {
3095
- return { itemType: Zs, itemData: { pagination: e5 } };
3140
+ function dc(e5) {
3141
+ return { itemType: lc, itemData: { pagination: e5 } };
3096
3142
  }
3097
- var ec = /* @__PURE__ */ new WeakSet();
3098
- function tc({ servicesPromise: e5, currentPage: t2, pageQueryParam: n2 }) {
3099
- let { services: r2, totalPages: i2 } = mi(e5), { resolveAbsoluteUrl: a2 } = cs(), { send: o2 } = Ys();
3143
+ var fc = /* @__PURE__ */ new WeakSet();
3144
+ function pc({ servicesPromise: e5, currentPage: t2, pageQueryParam: n2 }) {
3145
+ let { services: r2, totalPages: i2 } = gi(e5), { resolveAbsoluteUrl: a2 } = ds(), { send: o2 } = sc();
3100
3146
  return u(() => {
3101
- if (ec.has(e5)) return true;
3102
- ec.add(e5);
3147
+ if (fc.has(e5)) return true;
3148
+ fc.add(e5);
3103
3149
  let s2 = { currentPage: t2, totalPages: i2, queryParam: n2 };
3104
- return o2(Qs(r2, (e6) => a2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null }), s2)), i2 > 1 && o2($s(s2)), true;
3150
+ return o2(uc(r2, (e6) => a2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null }), s2)), i2 > 1 && o2(dc(s2)), true;
3105
3151
  }), null;
3106
3152
  }
3107
- function nc(e5) {
3108
- return It(Object.assign(e5, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/events-3`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }, { srcPath: `/_api/calendar/v3/ro/events`, destPath: `/v3/events` }], "www.wixapis.com": [{ srcPath: `/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], _: [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "*.dev.wix-code.com": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "editor._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "blocks._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "create.editorx": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }] } }));
3153
+ function mc(e5) {
3154
+ return Pt(Object.assign(e5, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/events-3`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }, { srcPath: `/_api/calendar/v3/ro/events`, destPath: `/v3/events` }], "www.wixapis.com": [{ srcPath: `/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], _: [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "*.dev.wix-code.com": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "editor._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "blocks._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "create.editorx": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }] } }));
3109
3155
  }
3110
- var rc = `@wix/auto_sdk_calendar_events`;
3111
- function ic(e5) {
3156
+ var hc = `@wix/auto_sdk_calendar_events`;
3157
+ function gc(e5) {
3112
3158
  function t2({ host: t3 }) {
3113
- return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: rc, migrationOptions: { optInTransformResponse: true }, url: nc({ protoPath: `/v3/events/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => N(e6, [{ transformFn: M, paths: [{ path: `events.createdDate` }, { path: `events.updatedDate` }, { path: `events.start.utcDate` }, { path: `events.end.utcDate` }, { path: `events.adjustedStart.utcDate` }, { path: `events.adjustedEnd.utcDate` }, { path: `events.recurrenceRule.until.utcDate` }, { path: `events.recurrenceRule.adjustedUntil.utcDate` }] }]) };
3159
+ return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: hc, migrationOptions: { optInTransformResponse: true }, url: mc({ protoPath: `/v3/events/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => F(e6, [{ transformFn: P, paths: [{ path: `events.createdDate` }, { path: `events.updatedDate` }, { path: `events.start.utcDate` }, { path: `events.end.utcDate` }, { path: `events.adjustedStart.utcDate` }, { path: `events.adjustedEnd.utcDate` }, { path: `events.recurrenceRule.until.utcDate` }, { path: `events.recurrenceRule.adjustedUntil.utcDate` }] }]) };
3114
3160
  }
3115
3161
  return t2;
3116
3162
  }
3117
- function ac(e5) {
3163
+ function _c(e5) {
3118
3164
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3119
- return Ja({ func: async (r2) => {
3120
- let i2 = ic({ ...r2, ...e5 ?? {} });
3165
+ return Za({ func: async (r2) => {
3166
+ let i2 = gc({ ...r2, ...e5 ?? {} });
3121
3167
  n2?.onSiteCall?.();
3122
3168
  try {
3123
3169
  let e6 = await t2.request(i2);
@@ -3127,177 +3173,177 @@ function ac(e5) {
3127
3173
  }
3128
3174
  }, requestTransformer: (t3) => {
3129
3175
  let n3 = [t3, e5];
3130
- return A({ ...n3?.[1], query: n3?.[0] });
3176
+ return M({ ...n3?.[1], query: n3?.[0] });
3131
3177
  }, responseTransformer: ({ data: e6 }) => {
3132
- let t3 = j(N(e6, []));
3178
+ let t3 = N(F(e6, []));
3133
3179
  return { items: t3?.events, pagingMetadata: t3?.pagingMetadata };
3134
3180
  }, errorTransformer: (e6) => {
3135
- throw P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3181
+ throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3136
3182
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3137
3183
  }
3138
- async function oc(e5, t2) {
3139
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = ic(A({ query: e5, ...t2 }));
3184
+ async function vc(e5, t2) {
3185
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = gc(M({ query: e5, ...t2 }));
3140
3186
  r2?.onSiteCall?.();
3141
3187
  try {
3142
3188
  let e6 = await n2.request(i2);
3143
- return r2?.onSuccess?.(e6), j(e6.data);
3189
+ return r2?.onSuccess?.(e6), N(e6.data);
3144
3190
  } catch (e6) {
3145
- let t3 = P(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3191
+ let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3146
3192
  throw r2?.onError?.(e6), t3;
3147
3193
  }
3148
3194
  }
3149
- ({ ...$a() });
3150
- function sc(e5) {
3151
- return (t2) => ac(t2, { httpClient: e5 });
3195
+ ({ ...no() });
3196
+ function yc(e5) {
3197
+ return (t2) => _c(t2, { httpClient: e5 });
3152
3198
  }
3153
- function cc(e5) {
3154
- return (t2, n2) => oc(t2, n2, { httpClient: e5 });
3155
- }
3156
- var lc = _(`wix.calendar.v3.event_cancelled`, true, (e5) => j(N(e5, [{ transformFn: M, paths: [{ path: `data.event.createdDate` }, { path: `data.event.updatedDate` }, { path: `data.event.start.utcDate` }, { path: `data.event.end.utcDate` }, { path: `data.event.adjustedStart.utcDate` }, { path: `data.event.adjustedEnd.utcDate` }, { path: `data.event.recurrenceRule.until.utcDate` }, { path: `data.event.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3157
- var uc = _(`wix.calendar.v3.event_created`, true, (e5) => j(N(e5, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3158
- var dc = _(`wix.calendar.v3.event_recurring_split`, true, (e5) => j(N(e5, [{ transformFn: M, paths: [{ path: `data.updatedRecurringEventEndingBeforeSplit.createdDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.updatedDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.start.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.end.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedStart.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedEnd.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.until.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.createdDate` }, { path: `data.newRecurringEventStartingFromSplit.updatedDate` }, { path: `data.newRecurringEventStartingFromSplit.start.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.end.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedStart.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedEnd.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.until.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3159
- var fc = _(`wix.calendar.v3.event_updated`, true, (e5) => j(N(e5, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.start.utcDate` }, { path: `modifiedFields.end.utcDate` }, { path: `modifiedFields.adjustedStart.utcDate` }, { path: `modifiedFields.adjustedEnd.utcDate` }, { path: `modifiedFields.recurrenceRule.until.utcDate` }, { path: `modifiedFields.recurrenceRule.adjustedUntil.utcDate` }] }])))();
3160
- function pc(e5) {
3161
- let t2 = lo({ builderQueryFunction: (t3) => sc(e5)(t3), typedQueryFunction: (t3, n3) => cc(e5)(t3, n3), hasOptionsParameter: true });
3199
+ function bc(e5) {
3200
+ return (t2, n2) => vc(t2, n2, { httpClient: e5 });
3201
+ }
3202
+ var xc = _(`wix.calendar.v3.event_cancelled`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `data.event.createdDate` }, { path: `data.event.updatedDate` }, { path: `data.event.start.utcDate` }, { path: `data.event.end.utcDate` }, { path: `data.event.adjustedStart.utcDate` }, { path: `data.event.adjustedEnd.utcDate` }, { path: `data.event.recurrenceRule.until.utcDate` }, { path: `data.event.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3203
+ var Sc = _(`wix.calendar.v3.event_created`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3204
+ var Cc = _(`wix.calendar.v3.event_recurring_split`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `data.updatedRecurringEventEndingBeforeSplit.createdDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.updatedDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.start.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.end.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedStart.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedEnd.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.until.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.createdDate` }, { path: `data.newRecurringEventStartingFromSplit.updatedDate` }, { path: `data.newRecurringEventStartingFromSplit.start.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.end.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedStart.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedEnd.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.until.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3205
+ var wc = _(`wix.calendar.v3.event_updated`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.start.utcDate` }, { path: `modifiedFields.end.utcDate` }, { path: `modifiedFields.adjustedStart.utcDate` }, { path: `modifiedFields.adjustedEnd.utcDate` }, { path: `modifiedFields.recurrenceRule.until.utcDate` }, { path: `modifiedFields.recurrenceRule.adjustedUntil.utcDate` }] }])))();
3206
+ function Tc(e5) {
3207
+ let t2 = po({ builderQueryFunction: (t3) => yc(e5)(t3), typedQueryFunction: (t3, n3) => bc(e5)(t3, n3), hasOptionsParameter: true });
3162
3208
  function n2(e6, n3) {
3163
3209
  return t2(...arguments);
3164
3210
  }
3165
3211
  return n2;
3166
3212
  }
3167
- var mc = Pt(pc);
3168
- ln(lc), ln(uc), ln(dc), ln(fc);
3169
- var hc = (e5) => {
3213
+ var Ec = Mt(Tc);
3214
+ sn(xc), sn(Sc), sn(Cc), sn(wc);
3215
+ var Dc = (e5) => {
3170
3216
  let t2 = (e6) => e6 < 10 ? `0${e6}` : `${e6}`;
3171
3217
  return `${e5.getFullYear()}-${t2(e5.getMonth() + 1)}-${t2(e5.getDate())}`;
3172
3218
  };
3173
- var gc = (e5) => `${hc(e5)}T00:00:00`;
3174
- var _c = 1e3;
3175
- async function vc(e5, t2) {
3219
+ var Oc = (e5) => `${Dc(e5)}T00:00:00`;
3220
+ var kc = 1e3;
3221
+ async function Ac(e5, t2) {
3176
3222
  let n2 = [], r2;
3177
3223
  do {
3178
- let i2 = await mc({ filter: e5, cursorPaging: { limit: _c, ...r2 ? { cursor: r2 } : {} } }, t2);
3224
+ let i2 = await Ec({ filter: e5, cursorPaging: { limit: kc, ...r2 ? { cursor: r2 } : {} } }, t2);
3179
3225
  n2.push(...i2.events ?? []), r2 = i2.pagingMetadata?.hasNext ? i2.pagingMetadata.cursors?.next ?? void 0 : void 0;
3180
3226
  } while (r2);
3181
3227
  return n2;
3182
3228
  }
3183
- async function yc(e5, t2) {
3184
- return e5.length === 0 ? [] : vc({ appId: Ni, scheduleId: { $in: e5 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: gc(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
3229
+ async function jc(e5, t2) {
3230
+ return e5.length === 0 ? [] : Ac({ appId: Fi, scheduleId: { $in: e5 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Oc(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
3185
3231
  }
3186
- function bc(e5) {
3232
+ function Mc(e5) {
3187
3233
  let t2 = {};
3188
3234
  for (let n2 of e5) n2.scheduleId && (t2[n2.scheduleId] ??= []).push(n2);
3189
3235
  return t2;
3190
3236
  }
3191
- var xc = { displayTimeZonePolicy: { basedOn: Go.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
3192
- async function Sc() {
3237
+ var Nc = { displayTimeZonePolicy: { basedOn: Jo.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
3238
+ async function Pc() {
3193
3239
  try {
3194
- let e5 = await Jo();
3195
- return { displayTimeZonePolicy: { basedOn: e5.displayTimeZone?.basedOn ?? Go.BUSINESS_TIME_ZONE, customerCanChange: e5.displayTimeZone?.customerCanChange ?? false }, multiServiceAppointmentsEnabled: e5.multiServiceAppointments?.enabled ?? false };
3240
+ let e5 = await Zo();
3241
+ return { displayTimeZonePolicy: { basedOn: e5.displayTimeZone?.basedOn ?? Jo.BUSINESS_TIME_ZONE, customerCanChange: e5.displayTimeZone?.customerCanChange ?? false }, multiServiceAppointmentsEnabled: e5.multiServiceAppointments?.enabled ?? false };
3196
3242
  } catch (e5) {
3197
- return H(e5, { feature: V.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), xc;
3243
+ return fi(e5, { feature: U.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), Nc;
3198
3244
  }
3199
3245
  }
3200
3246
  n(null);
3201
- function Cc(e5) {
3202
- return e5.basedOn === Go.CUSTOMER_TIME_ZONE ? Intl.DateTimeFormat().resolvedOptions().timeZone : void 0;
3247
+ function Fc(e5) {
3248
+ return e5.basedOn === Jo.CUSTOMER_TIME_ZONE ? Intl.DateTimeFormat().resolvedOptions().timeZone : void 0;
3203
3249
  }
3204
- function wc({ categoryId: e5, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
3250
+ function Ic({ categoryId: e5, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
3205
3251
  let o2 = { serviceItems: n2, bookingsSettings: null, hasMore: false, isLoading: r2, hasError: i2, categoryId: e5, locationId: t2, loadMore: async () => {
3206
3252
  } };
3207
- return m(Ic.Provider, { value: o2, children: a2 });
3253
+ return m(Jc.Provider, { value: o2, children: a2 });
3208
3254
  }
3209
- function Tc({ categoryId: e5, locationId: t2, children: n2 }) {
3210
- return m(wc, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
3255
+ function Lc({ categoryId: e5, locationId: t2, children: n2 }) {
3256
+ return m(Ic, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
3211
3257
  }
3212
- function Ec({ categoryId: e5, locationId: t2, children: n2 }) {
3213
- return m(wc, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
3258
+ function Rc({ categoryId: e5, locationId: t2, children: n2 }) {
3259
+ return m(Ic, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
3214
3260
  }
3215
- function Dc(e5) {
3261
+ function zc(e5) {
3216
3262
  let t2 = e5?.$in ?? (e5?.$eq == null ? [] : [e5.$eq]);
3217
3263
  return [...new Set(t2.filter((e6) => typeof e6 == `string` && e6 !== ``))].sort().join(`,`);
3218
3264
  }
3219
3265
  function $(e5) {
3220
3266
  return e5 ? e5.split(`,`) : null;
3221
3267
  }
3222
- var Oc = [];
3223
- var kc = [];
3224
- var Ac = {};
3225
- var jc = {};
3226
- function Mc(e5, t2) {
3268
+ var Bc = [];
3269
+ var Vc = [];
3270
+ var Hc = {};
3271
+ var Uc = {};
3272
+ function Wc(e5, t2) {
3227
3273
  return Object.keys(t2).length === 0 ? e5 : { ...e5, ...t2 };
3228
3274
  }
3229
- function Nc(e5, t2, n2, r2, i2) {
3230
- let a2 = [...new Set(e5.filter((e6) => !Yo(e6.type)).map((e6) => e6.schedule?._id).filter((e6) => !!e6))], o2 = e5.filter(Xo).map((e6) => e6._id).filter((e6) => !!e6);
3231
- return Promise.all([a2.length === 0 ? Ac : yc(a2, t2).then(bc).catch(() => Ac), o2.length === 0 ? jc : Ns({ key: xs(r2, o2, n2), warmupData: i2, fetchData: () => Fs(o2) }).catch((e6) => (H(e6, { feature: V.services, action: `fetch-service-variants`, level: `warning` }), null))]);
3275
+ function Gc(e5, t2, n2, r2, i2, a2) {
3276
+ let o2 = [...new Set(e5.filter((e6) => !Qo(e6.type)).map((e6) => e6.schedule?._id).filter((e6) => !!e6))], s2 = e5.filter($o).map((e6) => e6._id).filter((e6) => !!e6);
3277
+ return Promise.all([o2.length === 0 ? Hc : jc(o2, t2).then(Mc).catch(() => Hc), s2.length === 0 ? Uc : Gs({ key: Ns(r2, i2, s2, n2), warmupData: a2, fetchData: () => qs(s2) }).catch((e6) => (fi(e6, { feature: U.services, action: `fetch-service-variants`, level: `warning` }), null))]);
3232
3278
  }
3233
- var Pc = { services: [], hasMore: false, totalPages: 1, hasError: true };
3234
- function Fc(e5) {
3279
+ var Kc = { services: [], hasMore: false, totalPages: 1, hasError: true };
3280
+ function qc(e5) {
3235
3281
  let t2 = Math.floor(Number(e5));
3236
3282
  return !e5 || !Number.isSafeInteger(t2) || t2 < 1 ? 1 : t2;
3237
3283
  }
3238
- var Ic = n(null);
3239
- var Lc = `useServicesContext must be used within ServicesContextProvider`;
3240
- function Rc() {
3241
- let e5 = a(Ic);
3242
- if (!e5) throw Error(Lc);
3284
+ var Jc = n(null);
3285
+ var Yc = `useServicesContext must be used within ServicesContextProvider`;
3286
+ function Xc() {
3287
+ let e5 = a(Jc);
3288
+ if (!e5) throw Error(Yc);
3243
3289
  return e5;
3244
3290
  }
3245
- function zc(e5, t2) {
3291
+ function Zc(e5, t2) {
3246
3292
  return { firstPage: e5, services: e5.services, hasMore: e5.hasMore, isLoadingMore: false, cursor: { offset: (t2.paginationIndex - 1) * t2.safeLimit + e5.services.length, hasMore: e5.hasMore, pending: null, dropped: false } };
3247
3293
  }
3248
- function Bc({ query: e5, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
3249
- let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: h2, categoryIdsKey: g2, refreshSignal: _2, language: v2 } = e5, y2 = mi(f2), b2 = mi(n2), [x2, S2] = u(() => zc(y2, e5)), [ee2, C2] = u({}), [w2, T2] = u({});
3250
- x2.firstPage !== y2 && (S2(zc(y2, e5)), C2({}), T2({}));
3251
- let { cursor: E2 } = x2;
3252
- s(() => (E2.dropped = false, () => {
3253
- E2.dropped = true;
3254
- }), [E2]);
3255
- let D2 = Cc(b2.displayTimeZonePolicy), O2 = Gs(Vs.SERVICES), { getParsedUrl: te2 } = Oi(), ne2 = l(null), re2 = fs(), ie2 = l(re2);
3256
- ie2.current = re2, s(() => {
3257
- ne2.current !== y2 && (ne2.current = y2, O2(Bs({ referralInfo: te2().searchParams.get(es.referral) ?? void 0 })), O2(Ks({ numOfServices: y2.services.length })));
3258
- }, [O2, te2, y2]), s(() => {
3294
+ function Qc({ query: e5, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
3295
+ let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: h2, categoryIdsKey: g2, refreshSignal: _2, language: v2, currency: y2 } = e5, b2 = gi(f2), x2 = gi(n2), [S2, C2] = u(() => Zc(b2, e5)), [w2, T2] = u({}), [E2, D2] = u({});
3296
+ S2.firstPage !== b2 && (C2(Zc(b2, e5)), T2({}), D2({}));
3297
+ let { cursor: O2 } = S2;
3298
+ s(() => (O2.dropped = false, () => {
3299
+ O2.dropped = true;
3300
+ }), [O2]);
3301
+ let ee2 = Fc(x2.displayTimeZonePolicy), k2 = rc($s.SERVICES), { getParsedUrl: te2 } = Ai(), ne2 = l(null), re2 = hs(), A2 = l(re2);
3302
+ A2.current = re2, s(() => {
3303
+ ne2.current !== b2 && (ne2.current = b2, k2(Qs({ referralInfo: te2().searchParams.get(rs.referral) ?? void 0 })), k2(ic({ numOfServices: b2.services.length })));
3304
+ }, [k2, te2, b2]), s(() => {
3259
3305
  let e6 = false;
3260
- return Nc(y2.services, D2, _2, v2, ie2.current).then(([t3, n3]) => {
3306
+ return Gc(b2.services, ee2, _2, v2, y2, A2.current).then(([t3, n3]) => {
3261
3307
  e6 || r(() => {
3262
- C2((e7) => Mc(e7, t3)), n3 && T2((e7) => Mc(e7, n3));
3308
+ T2((e7) => Wc(e7, t3)), n3 && D2((e7) => Wc(e7, n3));
3263
3309
  });
3264
3310
  }), () => {
3265
3311
  e6 = true;
3266
3312
  };
3267
- }, [y2.services, D2, _2, v2]);
3268
- let ae2 = i(async () => {
3269
- if (O2(zs({ pageName: Hs, buttonName: Ws })), E2.pending) return E2.pending;
3270
- if (!E2.hasMore) return;
3271
- let t3 = (e6) => S2((t4) => t4.cursor === E2 ? e6(t4) : t4);
3272
- return t3((e6) => ({ ...e6, isLoadingMore: true })), E2.pending = $o({ limit: p2, offset: E2.offset, categoryId: e5.categoryId, locationId: e5.locationId, serviceIds: $(h2), categoryIds: $(g2) }).then((e6) => {
3273
- E2.dropped || (E2.hasMore = e6.hasMore, E2.offset += e6.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e6.services], hasMore: e6.hasMore })), Nc(e6.services, D2, _2, v2, ie2.current).then(([e7, t4]) => {
3274
- E2.dropped || r(() => {
3275
- C2((t5) => Mc(t5, e7)), t4 && T2((e8) => Mc(e8, t4));
3313
+ }, [b2.services, ee2, _2, v2, y2]);
3314
+ let ie2 = i(async () => {
3315
+ if (k2(Zs({ pageName: ec, buttonName: nc })), O2.pending) return O2.pending;
3316
+ if (!O2.hasMore) return;
3317
+ let t3 = (e6) => C2((t4) => t4.cursor === O2 ? e6(t4) : t4);
3318
+ return t3((e6) => ({ ...e6, isLoadingMore: true })), O2.pending = ns({ limit: p2, offset: O2.offset, categoryId: e5.categoryId, locationId: e5.locationId, serviceIds: $(h2), categoryIds: $(g2) }).then((e6) => {
3319
+ O2.dropped || (O2.hasMore = e6.hasMore, O2.offset += e6.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e6.services], hasMore: e6.hasMore })), Gc(e6.services, ee2, _2, v2, y2, A2.current).then(([e7, t4]) => {
3320
+ O2.dropped || r(() => {
3321
+ T2((t5) => Wc(t5, e7)), t4 && D2((e8) => Wc(e8, t4));
3276
3322
  });
3277
3323
  }));
3278
3324
  }).catch(() => {
3279
3325
  }).finally(() => {
3280
- E2.pending = null, t3((e6) => ({ ...e6, isLoadingMore: false }));
3281
- }), E2.pending;
3282
- }, [E2, p2, e5.categoryId, e5.locationId, h2, g2, O2, D2, _2, v2]), { resolvePath: oe2, toHref: se2 } = cs(), ce2 = c(() => x2.services.map((e6) => {
3283
- let t3 = oe2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null });
3284
- return { serviceId: e6._id ?? null, refreshSignal: _2, service: e6, masterEvents: ee2[e6.schedule?._id ?? ``] ?? Oc, serviceOptionsAndVariants: w2[e6._id ?? ``] ?? null, bookingsSettings: b2, servicePageLink: t3 ? { href: se2(t3), target: `_self` } : null };
3285
- }), [oe2, se2, x2.services, _2, ee2, w2, b2]), le2 = c(() => ({ serviceItems: t2 ? kc : ce2, bookingsSettings: b2, hasMore: !t2 && x2.hasMore, isLoading: t2 || x2.isLoadingMore, hasError: !t2 && y2.hasError, categoryId: a2, locationId: o2, loadMore: ae2 }), [t2, ce2, b2, x2.hasMore, x2.isLoadingMore, y2.hasError, a2, o2, ae2]);
3286
- return m(Ic.Provider, { value: le2, children: d2 });
3287
- }
3288
- var Vc = (e5) => ({ ...e5, hasError: false });
3289
- var Hc = () => ({ ...Pc });
3290
- function Uc({ categoryData: e5, limit: n2 = 9, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
3291
- let l2 = Math.min(n2 ?? 9, 100), { searchParams: d2 } = Oi(), f2 = e5?.categoryId, p2 = !!f2, g2 = f2 || d2.get(es.category), _2 = d2.get(es.location), v2 = p2 ? 1 : Fc(d2.get(es.page)), y2 = Dc(r2?.serviceId), b2 = Dc(i2?.categoryId), x2 = fs(), S2 = vs(), { isSSR: ee2 } = Ls(), [C2] = u(() => ee2()), w2 = c(() => ({ firstPagePromise: _i(Ns({ key: bs(S2, g2, _2, v2, l2, $(y2) ?? [], $(b2) ?? []), refresh: a2 !== 0, warmupData: x2, fetchData: () => fi(`services-context-load`, { feature: V.services }, $o({ limit: l2, offset: (v2 - 1) * l2, categoryId: g2, locationId: _2, serviceIds: $(y2), categoryIds: $(b2) })) }), Vc, Hc), safeLimit: l2, paginationIndex: v2, categoryId: g2, locationId: _2, serviceIdsKey: y2, categoryIdsKey: b2, refreshSignal: a2, language: S2 }), [l2, g2, _2, v2, a2, y2, b2, S2]), [T2] = u(() => Ns({ key: Ss(), warmupData: x2, fetchData: Sc })), E2 = o(w2);
3292
- return m(pi, { fallback: m(Ec, { categoryId: g2, locationId: _2, children: s2 }), feature: V.services, children: h(t, { fallback: m(Tc, { categoryId: g2, locationId: _2, children: s2 }), children: [C2 && !p2 && m(tc, { servicesPromise: w2.firstPagePromise, currentPage: v2, pageQueryParam: es.page }), m(Bc, { query: E2, isQueryPending: E2 !== w2, settingsPromise: T2, categoryId: g2, locationId: _2, children: s2 })] }) });
3293
- }
3294
- var Wc = zn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
3326
+ O2.pending = null, t3((e6) => ({ ...e6, isLoadingMore: false }));
3327
+ }), O2.pending;
3328
+ }, [O2, p2, e5.categoryId, e5.locationId, h2, g2, k2, ee2, _2, v2, y2]), { resolvePath: ae2, toHref: oe2 } = ds(), se2 = c(() => S2.services.map((e6) => {
3329
+ let t3 = ae2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null });
3330
+ return { serviceId: e6._id ?? null, refreshSignal: _2, service: e6, masterEvents: w2[e6.schedule?._id ?? ``] ?? Bc, serviceOptionsAndVariants: E2[e6._id ?? ``] ?? null, bookingsSettings: x2, servicePageLink: t3 ? { href: oe2(t3), target: `_self` } : null };
3331
+ }), [ae2, oe2, S2.services, _2, w2, E2, x2]), ce2 = c(() => ({ serviceItems: t2 ? Vc : se2, bookingsSettings: x2, hasMore: !t2 && S2.hasMore, isLoading: t2 || S2.isLoadingMore, hasError: !t2 && b2.hasError, categoryId: a2, locationId: o2, loadMore: ie2 }), [t2, se2, x2, S2.hasMore, S2.isLoadingMore, b2.hasError, a2, o2, ie2]);
3332
+ return m(Jc.Provider, { value: ce2, children: d2 });
3333
+ }
3334
+ var $c = (e5) => ({ ...e5, hasError: false });
3335
+ var el = () => ({ ...Kc });
3336
+ function tl({ categoryData: e5, limit: n2 = 9, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
3337
+ let l2 = Math.min(n2 ?? 9, 100), { searchParams: d2 } = Ai(), f2 = e5?.categoryId, p2 = !!f2, g2 = f2 || d2.get(rs.category), _2 = d2.get(rs.location), v2 = p2 ? 1 : qc(d2.get(rs.page)), y2 = zc(r2?.serviceId), b2 = zc(i2?.categoryId), x2 = hs(), S2 = xs(), C2 = ks(), { isSSR: w2 } = Ys(), [T2] = u(() => w2()), E2 = c(() => ({ firstPagePromise: yi(Gs({ key: Ms(S2, C2, g2, _2, v2, l2, $(y2) ?? [], $(b2) ?? []), refresh: a2 !== 0, warmupData: x2, fetchData: () => pi(`services-context-load`, { feature: U.services }, ns({ limit: l2, offset: (v2 - 1) * l2, categoryId: g2, locationId: _2, serviceIds: $(y2), categoryIds: $(b2) })) }), $c, el), safeLimit: l2, paginationIndex: v2, categoryId: g2, locationId: _2, serviceIdsKey: y2, categoryIdsKey: b2, refreshSignal: a2, language: S2, currency: C2 }), [l2, g2, _2, v2, a2, y2, b2, S2, C2]), [D2] = u(() => Gs({ key: Ps(), warmupData: x2, fetchData: Pc })), O2 = o(E2);
3338
+ return m(mi, { fallback: m(Rc, { categoryId: g2, locationId: _2, children: s2 }), feature: U.services, children: h(t, { fallback: m(Lc, { categoryId: g2, locationId: _2, children: s2 }), children: [T2 && !p2 && m(pc, { servicesPromise: E2.firstPagePromise, currentPage: v2, pageQueryParam: rs.page }), m(Qc, { query: O2, isQueryPending: O2 !== E2, settingsPromise: D2, categoryId: g2, locationId: _2, children: s2 })] }) });
3339
+ }
3340
+ var nl = zn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
3295
3341
  export {
3296
- Lc as SERVICES_CONTEXT_MISSING_PROVIDER_ERROR,
3297
- Uc as ServicesContextProvider,
3298
- Uc as default,
3299
- Wc as injectAccessTokenGetter,
3300
- Ic as servicesContext,
3301
- Rc as useServicesContext
3342
+ Yc as SERVICES_CONTEXT_MISSING_PROVIDER_ERROR,
3343
+ tl as ServicesContextProvider,
3344
+ tl as default,
3345
+ nl as injectAccessTokenGetter,
3346
+ Jc as servicesContext,
3347
+ Xc as useServicesContext
3302
3348
  };
3303
3349
  //# sourceMappingURL=context-services.mjs.map