@wix/bookings 1.0.1755 → 1.0.1756

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 (71) hide show
  1. package/_sdk-exports/context-booking-checkout/runtime.d.ts +42 -1
  2. package/_sdk-exports/context-booking-checkout/runtime.js +3 -2
  3. package/_sdk-exports/context-categories/runtime.d.ts +1 -1
  4. package/_sdk-exports/context-categories/runtime.js +2 -1
  5. package/_sdk-exports/context-locations/runtime.d.ts +1 -1
  6. package/_sdk-exports/context-locations/runtime.js +2 -1
  7. package/_sdk-exports/context-service/runtime.d.ts +42 -1
  8. package/_sdk-exports/context-service/runtime.js +3 -2
  9. package/_sdk-exports/context-service-addons/runtime.d.ts +1 -1
  10. package/_sdk-exports/context-service-addons/runtime.js +2 -1
  11. package/_sdk-exports/context-services/runtime.d.ts +42 -1
  12. package/_sdk-exports/context-services/runtime.js +3 -2
  13. package/_sdk-exports/context-time-slots/runtime.d.ts +22 -9
  14. package/_sdk-exports/context-time-slots/runtime.js +3 -2
  15. package/build/cjs/context-booking-checkout.d.ts +42 -1
  16. package/build/cjs/context-booking-checkout.js +1346 -1344
  17. package/build/cjs/context-booking-checkout.js.map +1 -1
  18. package/build/cjs/context-categories.d.ts +1 -1
  19. package/build/cjs/context-categories.js +116 -114
  20. package/build/cjs/context-categories.js.map +1 -1
  21. package/build/cjs/context-locations.d.ts +1 -1
  22. package/build/cjs/context-locations.js +126 -124
  23. package/build/cjs/context-locations.js.map +1 -1
  24. package/build/cjs/context-service-addons.d.ts +1 -1
  25. package/build/cjs/context-service-addons.js +323 -321
  26. package/build/cjs/context-service-addons.js.map +1 -1
  27. package/build/cjs/context-service.d.ts +42 -1
  28. package/build/cjs/context-service.js +1517 -1515
  29. package/build/cjs/context-service.js.map +1 -1
  30. package/build/cjs/context-services.d.ts +42 -1
  31. package/build/cjs/context-services.js +460 -458
  32. package/build/cjs/context-services.js.map +1 -1
  33. package/build/cjs/context-time-slots.d.ts +22 -9
  34. package/build/cjs/context-time-slots.js +1033 -1000
  35. package/build/cjs/context-time-slots.js.map +1 -1
  36. package/build/es/context-booking-checkout.d.mts +42 -1
  37. package/build/es/context-booking-checkout.mjs +1346 -1344
  38. package/build/es/context-booking-checkout.mjs.map +1 -1
  39. package/build/es/context-categories.d.mts +1 -1
  40. package/build/es/context-categories.mjs +116 -114
  41. package/build/es/context-categories.mjs.map +1 -1
  42. package/build/es/context-locations.d.mts +1 -1
  43. package/build/es/context-locations.mjs +126 -124
  44. package/build/es/context-locations.mjs.map +1 -1
  45. package/build/es/context-service-addons.d.mts +1 -1
  46. package/build/es/context-service-addons.mjs +323 -321
  47. package/build/es/context-service-addons.mjs.map +1 -1
  48. package/build/es/context-service.d.mts +42 -1
  49. package/build/es/context-service.mjs +1517 -1515
  50. package/build/es/context-service.mjs.map +1 -1
  51. package/build/es/context-services.d.mts +42 -1
  52. package/build/es/context-services.mjs +460 -458
  53. package/build/es/context-services.mjs.map +1 -1
  54. package/build/es/context-time-slots.d.mts +22 -9
  55. package/build/es/context-time-slots.mjs +1033 -1000
  56. package/build/es/context-time-slots.mjs.map +1 -1
  57. package/build/internal/cjs/context-booking-checkout.d.ts +42 -1
  58. package/build/internal/cjs/context-categories.d.ts +1 -1
  59. package/build/internal/cjs/context-locations.d.ts +1 -1
  60. package/build/internal/cjs/context-service-addons.d.ts +1 -1
  61. package/build/internal/cjs/context-service.d.ts +42 -1
  62. package/build/internal/cjs/context-services.d.ts +42 -1
  63. package/build/internal/cjs/context-time-slots.d.ts +22 -9
  64. package/build/internal/es/context-booking-checkout.d.mts +42 -1
  65. package/build/internal/es/context-categories.d.mts +1 -1
  66. package/build/internal/es/context-locations.d.mts +1 -1
  67. package/build/internal/es/context-service-addons.d.mts +1 -1
  68. package/build/internal/es/context-service.d.mts +42 -1
  69. package/build/internal/es/context-services.d.mts +42 -1
  70. package/build/internal/es/context-time-slots.d.mts +22 -9
  71. package/package.json +2 -2
@@ -20,12 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // context-services.ts
21
21
  var context_services_exports = {};
22
22
  __export(context_services_exports, {
23
- SERVICES_CONTEXT_MISSING_PROVIDER_ERROR: () => Zo,
24
- ServicesContextProvider: () => rs,
25
- default: () => rs,
26
- injectAccessTokenGetter: () => is,
27
- servicesContext: () => Xo,
28
- useServicesContext: () => Qo
23
+ SERVICES_CONTEXT_MISSING_PROVIDER_ERROR: () => $o,
24
+ ServicesContextProvider: () => as,
25
+ default: () => as,
26
+ injectAccessTokenGetter: () => os,
27
+ servicesContext: () => Qo,
28
+ useServicesContext: () => es
29
29
  });
30
30
  module.exports = __toCommonJS(context_services_exports);
31
31
 
@@ -724,16 +724,16 @@ function Nt(e2) {
724
724
  };
725
725
  return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
726
726
  }
727
- function F(e2, t2 = false) {
727
+ function Pt(e2, t2 = false) {
728
728
  return Mt(e2, t2);
729
729
  }
730
- function Pt(e2, t2) {
730
+ function Ft(e2, t2) {
731
731
  let n2 = It(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
732
732
  return t2 && r2 ? new URLSearchParams({ ".r": Rt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
733
733
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
734
734
  }), e3), new URLSearchParams());
735
735
  }
736
- function Ft(e2) {
736
+ function F(e2) {
737
737
  let t2 = Zt(Yt(e2.host), e2.domainToMappings);
738
738
  return sn(rn(e2.protoPath, e2.data || {}), t2);
739
739
  }
@@ -837,7 +837,7 @@ var un = `x-wix-linguist`;
837
837
  var dn = `00000000-0000-0000-0000-000000000000`;
838
838
  var fn = `false`;
839
839
  var pn = () => {
840
- let e2 = hn(`language`), t2 = hn(`locale`);
840
+ let e2 = gn(`language`), t2 = gn(`locale`);
841
841
  if (e2) return { [un]: [e2, t2 || e2, fn, dn].join(`|`) };
842
842
  };
843
843
  function mn() {
@@ -846,15 +846,16 @@ function mn() {
846
846
  e2 = n2, t2 = r2;
847
847
  }), resolve: e2, reject: t2 };
848
848
  }
849
- var hn = (e2) => typeof window < `u` ? window.commonConfig?.[e2] : void 0;
850
- var gn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
851
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = vn();
852
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: hn(`language`), locale: hn(`locale`), get passThroughHeaders() {
849
+ var hn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
850
+ var gn = (e2) => hn()?.[e2];
851
+ var _n = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
852
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = yn();
853
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: gn(`language`), locale: gn(`locale`), get passThroughHeaders() {
853
854
  return pn();
854
855
  } } };
855
856
  }, auth: (e3) => {
856
857
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
857
- !e3 && _n() && (e3 = t2?.getAccessTokenFunction?.());
858
+ !e3 && vn() && (e3 = t2?.getAccessTokenFunction?.());
858
859
  let n2 = false, { resolve: r2, promise: i2 } = mn();
859
860
  return { getAuthHeaders: async () => {
860
861
  if (!e3 && n2 && (e3 = await i2), !e3) throw Error(`Failed to resolve auth token`);
@@ -863,36 +864,37 @@ var gn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host:
863
864
  r2(e4);
864
865
  }) };
865
866
  } });
866
- function _n() {
867
+ function vn() {
867
868
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
868
869
  }
869
- function vn() {
870
+ function yn() {
870
871
  let e2 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
871
872
  if (!e2) return;
872
873
  let t2 = new URL(e2);
873
874
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
874
875
  }
875
- var yn = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
876
+ var bn = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
876
877
  if (!e2) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
877
878
  return e2.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
878
879
  }, getAccessToken: () => {
879
880
  throw Error(`Not implemented`);
880
881
  }, observeState: () => ({ disconnect: () => {
881
882
  } }) });
882
- var bn = gn({ createHost: function(e2) {
883
+ var xn = _n({ createHost: function(e2) {
883
884
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e2?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e2 || {};
884
885
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
885
- return { channel: yn({ clientSdk: t2, applicationId: n2 }), close: () => {
886
+ return { channel: bn({ clientSdk: t2, applicationId: n2 }), close: () => {
886
887
  } };
887
888
  } });
888
- var xn = ((e2, t2) => {
889
- let n2 = bn.host({ applicationId: e2, componentId: t2 }), r2 = bn.auth();
889
+ var Sn = (e2, t2) => {
890
+ let n2 = xn.host({ applicationId: e2, componentId: t2 }), r2 = xn.auth();
890
891
  return He({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
891
- })(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`);
892
- function Sn() {
892
+ };
893
+ var Cn = (e2) => Sn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e2);
894
+ function wn() {
893
895
  let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
894
896
  if (e2) return { initWixModules(t3, n3) {
895
- return Cn(() => e2(t3, n3));
897
+ return Tn(() => e2(t3, n3));
896
898
  }, fetchWithAuth() {
897
899
  throw Error(`fetchWithAuth is not available in this context`);
898
900
  }, graphql() {
@@ -902,10 +904,10 @@ function Sn() {
902
904
  if (t2 || n2) return { initWixModules(e3, r2) {
903
905
  if (r2) {
904
906
  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`);
905
- return Cn(() => n2.use(e3));
907
+ return Tn(() => n2.use(e3));
906
908
  }
907
909
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
908
- return Cn(() => t2.use(e3));
910
+ return Tn(() => t2.use(e3));
909
911
  }, fetchWithAuth: (e3, n3) => {
910
912
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
911
913
  return t2.fetchWithAuth(e3, n3);
@@ -917,7 +919,7 @@ function Sn() {
917
919
  return t2.graphql(e3, n3, r2);
918
920
  } };
919
921
  }
920
- function Cn(e2) {
922
+ function Tn(e2) {
921
923
  let t2 = globalThis.__wix_context__, n2 = { client: h.client, elevatedClient: h.elevatedClient }, r2;
922
924
  globalThis.__wix_context__ = void 0, h.client = void 0, h.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
923
925
  try {
@@ -926,23 +928,23 @@ function Cn(e2) {
926
928
  globalThis.__wix_context__ = t2, h.client = n2.client, h.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
927
929
  }
928
930
  }
929
- function wn(e2, t2) {
931
+ function En(e2, t2) {
930
932
  return { ...e2, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
931
- let r2 = Sn();
933
+ let r2 = wn();
932
934
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
933
935
  return r2.initWixModules(e2)[t3].apply(void 0, n2);
934
936
  }])) };
935
937
  }
936
- function Tn(e2) {
937
- return wn({ __type: `host`, create: (t2) => Object.entries(e2).reduce((e3, [n2, r2]) => ({ ...e3, [n2]: r2(t2) }), {}) }, Object.keys(e2));
938
+ function Dn(e2) {
939
+ return En({ __type: `host`, create: (t2) => Object.entries(e2).reduce((e3, [n2, r2]) => ({ ...e3, [n2]: r2(t2) }), {}) }, Object.keys(e2));
938
940
  }
939
- var En = function() {
940
- return En = Object.assign || function(e2) {
941
+ var On = function() {
942
+ return On = Object.assign || function(e2) {
941
943
  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) && (e2[i2] = t2[i2]);
942
944
  return e2;
943
- }, En.apply(this, arguments);
945
+ }, On.apply(this, arguments);
944
946
  };
945
- function Dn(e2) {
947
+ function kn(e2) {
946
948
  var t2 = typeof Symbol == `function` && Symbol.iterator, n2 = t2 && e2[t2], r2 = 0;
947
949
  if (n2) return n2.call(e2);
948
950
  if (e2 && typeof e2.length == `number`) return { next: function() {
@@ -971,7 +973,7 @@ function R(e2, t2, n2) {
971
973
  if (n2 || arguments.length === 2) for (var r2 = 0, i2 = t2.length, a2; r2 < i2; r2++) (a2 || !(r2 in t2)) && (a2 ||= Array.prototype.slice.call(t2, 0, r2), a2[r2] = t2[r2]);
972
974
  return e2.concat(a2 || Array.prototype.slice.call(t2));
973
975
  }
974
- var On = class {
976
+ var An = class {
975
977
  constructor(e2) {
976
978
  this.message = e2, this.captureException = () => {
977
979
  console.error(this.message);
@@ -986,30 +988,30 @@ var On = class {
986
988
  };
987
989
  }
988
990
  };
989
- var kn = (e2) => new On(e2);
990
- var An = Tn({ getMonitoringClient: (e2) => () => e2.getMonitoringClient ? e2.getMonitoringClient() : kn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
991
+ var jn = (e2) => new An(e2);
992
+ var Mn = Dn({ getMonitoringClient: (e2) => () => e2.getMonitoringClient ? e2.getMonitoringClient() : jn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
991
993
  var z = { 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` };
992
- function jn(e2) {
994
+ function Nn(e2) {
993
995
  try {
994
- let t2 = An.getMonitoringClient?.();
996
+ let t2 = Mn.getMonitoringClient?.();
995
997
  return t2 && typeof t2[e2] == `function` ? t2 : null;
996
998
  } catch {
997
999
  return null;
998
1000
  }
999
1001
  }
1000
1002
  function B(e2, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
1001
- let a2 = jn(`captureException`);
1003
+ let a2 = Nn(`captureException`);
1002
1004
  if (!a2) return;
1003
1005
  let o2 = e2 instanceof Error ? e2 : Error(String(e2));
1004
1006
  a2.captureException(o2, { level: r2, tags: { feature: t2, action: n2 }, ...i2 ? { contexts: i2 } : {} });
1005
1007
  }
1006
- function Mn(e2, { feature: t2, tags: n2 }, r2) {
1007
- let i2 = jn(`startSpanManual`);
1008
+ function Pn(e2, { feature: t2, tags: n2 }, r2) {
1009
+ let i2 = Nn(`startSpanManual`);
1008
1010
  if (!i2) return r2;
1009
1011
  let a2 = i2.startSpanManual({ name: e2, tags: { feature: t2, ...n2 } });
1010
1012
  return r2.then(() => a2.end(), (e3) => a2.fail(e3)), r2;
1011
1013
  }
1012
- var Nn = class extends import_react.Component {
1014
+ var Fn = class extends import_react.Component {
1013
1015
  state = { hasError: false };
1014
1016
  static getDerivedStateFromError() {
1015
1017
  return { hasError: true };
@@ -1021,7 +1023,7 @@ var Nn = class extends import_react.Component {
1021
1023
  return this.state.hasError ? this.props.fallback : this.props.children;
1022
1024
  }
1023
1025
  };
1024
- function Pn(e2) {
1026
+ function In(e2) {
1025
1027
  let t2 = e2;
1026
1028
  if (t2.__state || (t2.__state = { status: `pending` }, t2.then((e3) => {
1027
1029
  t2.__state = { status: `fulfilled`, value: e3 };
@@ -1030,37 +1032,37 @@ function Pn(e2) {
1030
1032
  })), t2.__state.status === `fulfilled`) return t2.__state.value;
1031
1033
  throw t2.__state.status === `rejected` ? t2.__state.reason : t2;
1032
1034
  }
1033
- function Fn(e2) {
1035
+ function Ln(e2) {
1034
1036
  let t2 = Promise.resolve(e2);
1035
1037
  return t2.__state = { status: `fulfilled`, value: e2 }, t2;
1036
1038
  }
1037
- var In = /* @__PURE__ */ new WeakMap();
1038
- function Ln(e2, t2, n2) {
1039
- let r2 = In.get(e2);
1040
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), In.set(e2, r2));
1039
+ var Rn = /* @__PURE__ */ new WeakMap();
1040
+ function zn(e2, t2, n2) {
1041
+ let r2 = Rn.get(e2);
1042
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Rn.set(e2, r2));
1041
1043
  let i2 = r2.get(t2);
1042
1044
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
1043
1045
  let a2 = i2.get(n2);
1044
1046
  if (!a2) {
1045
1047
  let r3 = e2;
1046
- a2 = r3.__state?.status === `fulfilled` ? Fn(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? Fn(n2(r3.__state.reason)) : e2.then(t2, n2), i2.set(n2, a2);
1048
+ a2 = r3.__state?.status === `fulfilled` ? Ln(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? Ln(n2(r3.__state.reason)) : e2.then(t2, n2), i2.set(n2, a2);
1047
1049
  }
1048
1050
  return a2;
1049
1051
  }
1050
1052
  function V(e2) {
1051
1053
  return e2;
1052
1054
  }
1053
- var Rn = V(`@wix/site-service-url`);
1054
- var zn = `appSectionParams`;
1055
- function Bn(e2) {
1056
- let t2 = e2.searchParams.get(zn);
1055
+ var Bn = V(`@wix/site-service-url`);
1056
+ var Vn = `appSectionParams`;
1057
+ function Hn(e2) {
1058
+ let t2 = e2.searchParams.get(Vn);
1057
1059
  if (t2 === null) return e2;
1058
1060
  let n2 = new URL(e2);
1059
- n2.searchParams.delete(zn);
1060
- for (let [e3, r2] of Object.entries(Vn(t2))) typeof r2 == `string` && !n2.searchParams.has(e3) && n2.searchParams.set(e3, r2);
1061
+ n2.searchParams.delete(Vn);
1062
+ for (let [e3, r2] of Object.entries(Un(t2))) typeof r2 == `string` && !n2.searchParams.has(e3) && n2.searchParams.set(e3, r2);
1061
1063
  return n2;
1062
1064
  }
1063
- function Vn(e2) {
1065
+ function Un(e2) {
1064
1066
  try {
1065
1067
  let t2 = JSON.parse(e2);
1066
1068
  return t2 && typeof t2 == `object` && !Array.isArray(t2) ? t2 : {};
@@ -1068,16 +1070,16 @@ function Vn(e2) {
1068
1070
  return {};
1069
1071
  }
1070
1072
  }
1071
- var Hn = `bookings-uou:url-change`;
1072
- var Un = (e2) => {
1073
+ var Wn = `bookings-uou:url-change`;
1074
+ var Gn = (e2) => {
1073
1075
  let t2 = new URL(e2);
1074
1076
  return t2.searchParams.sort(), t2.href;
1075
1077
  };
1076
- function Wn(e2, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
1078
+ function Kn(e2, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
1077
1079
  let r2 = globalThis.window;
1078
1080
  if (!r2?.history) return;
1079
1081
  let i2 = new URL(r2.location.href);
1080
- if (Un(i2) === Un(e2)) return;
1082
+ if (Gn(i2) === Gn(e2)) return;
1081
1083
  let a2 = { scrollY: r2.scrollY };
1082
1084
  if (n2) r2.history.replaceState(a2, ``, e2.href);
1083
1085
  else {
@@ -1088,43 +1090,43 @@ function Wn(e2, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
1088
1090
  return;
1089
1091
  }
1090
1092
  }
1091
- r2.dispatchEvent(new Event(Hn));
1093
+ r2.dispatchEvent(new Event(Wn));
1092
1094
  }
1093
- function Gn(e2) {
1095
+ function qn(e2) {
1094
1096
  let t2 = globalThis.window;
1095
- return t2 ? (t2.addEventListener(Hn, e2), t2.addEventListener(`popstate`, e2), () => {
1096
- t2.removeEventListener(Hn, e2), t2.removeEventListener(`popstate`, e2);
1097
+ return t2 ? (t2.addEventListener(Wn, e2), t2.addEventListener(`popstate`, e2), () => {
1098
+ t2.removeEventListener(Wn, e2), t2.removeEventListener(`popstate`, e2);
1097
1099
  }) : () => {
1098
1100
  };
1099
1101
  }
1100
- var Kn = (e2) => {
1102
+ var Jn = (e2) => {
1101
1103
  try {
1102
1104
  return decodeURIComponent(e2);
1103
1105
  } catch {
1104
1106
  return e2;
1105
1107
  }
1106
1108
  };
1107
- function qn(e2, t2) {
1109
+ function Yn(e2, t2) {
1108
1110
  let n2 = t2 ? new URL(t2).pathname : `/`;
1109
- return `./${Kn(new URL(e2).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
1110
- }
1111
- function Jn() {
1112
- let e2 = (0, import_services_manager_react.useService)(Rn), t2 = (0, import_react.useCallback)(() => e2.currentUrl, [e2]), n2 = (0, import_react.useSyncExternalStore)(Gn, t2, t2), r2 = (0, import_react.useMemo)(() => Bn(new URL(n2)), [n2]), a2 = e2.siteUrl.replace(/\/$/, ``);
1113
- return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Bn(new URL(e2.currentUrl)), getRelativeUrl: () => qn(e2.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Wn };
1114
- }
1115
- var Yn = V(`@wix/site-service-editor-context`);
1116
- var Xn = V(`@wix/site-service-pages`);
1117
- var Zn = V(`@wix/site-service-router`);
1118
- var Qn = V(`@wix/site-service-renderer-configuration`);
1119
- var $n = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
1120
- var er = `shopping_cart`;
1121
- var tr = `thank_you_page`;
1111
+ return `./${Jn(new URL(e2).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
1112
+ }
1113
+ function Xn() {
1114
+ let e2 = (0, import_services_manager_react.useService)(Bn), t2 = (0, import_react.useCallback)(() => e2.currentUrl, [e2]), n2 = (0, import_react.useSyncExternalStore)(qn, t2, t2), r2 = (0, import_react.useMemo)(() => Hn(new URL(n2)), [n2]), a2 = e2.siteUrl.replace(/\/$/, ``);
1115
+ return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Hn(new URL(e2.currentUrl)), getRelativeUrl: () => Yn(e2.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Kn };
1116
+ }
1117
+ var Zn = V(`@wix/site-service-editor-context`);
1118
+ var Qn = V(`@wix/site-service-pages`);
1119
+ var $n = V(`@wix/site-service-router`);
1120
+ var er = V(`@wix/site-service-renderer-configuration`);
1121
+ var tr = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
1122
+ var nr = `shopping_cart`;
1123
+ var rr = `thank_you_page`;
1122
1124
  var H = function(e2) {
1123
1125
  return e2.BOOK_ONLINE = `bookingsBookOnline`, e2.SERVICE_PAGE = `bookingsServicePage`, e2.CALENDAR_PAGE = `bookingsCalendar`, e2.FORM_PAGE = `bookingsForm`, e2;
1124
1126
  }({});
1125
- var nr = `{{(.*?)}}`;
1126
- var rr = `[{{}}]`;
1127
- var ir = `([^/]+)`;
1127
+ var ir = `{{(.*?)}}`;
1128
+ var ar = `[{{}}]`;
1129
+ var or = `([^/]+)`;
1128
1130
  var U;
1129
1131
  (function(e2) {
1130
1132
  e2.product_page = `product_page`, e2.blog = `blog`, e2.post = `post`, e2.forum = `forum`, e2.group = `group`, e2.bookings = `Booking Service Page`, e2.challenges = `challenge_page`;
@@ -1133,154 +1135,154 @@ var W;
1133
1135
  (function(e2) {
1134
1136
  e2.PRODUCT_PAGE = `wix.stores.sub_pages.product`, e2.BLOG_POST = `wix.blog.sub_pages.post`, e2.BLOG_POST_EDIT = `wix.blog.sub_pages.post.edit`, e2.BLOG_POST_PREVIEW = `wix.blog.sub_pages.post.preview`, e2.BLOG_CATEGORY = `wix.blog.sub_pages.category`, e2.FORUM_CATEGORY = `wix.forum.sub_pages.category`, e2.FORUM_CATEGORY_PAGINATION = `wix.forum.sub_pages.category.pagination`, e2.FORUM_CATEGORY_CREATE_POST = `wix.forum.sub_pages.category.create-post`, e2.FORUM_CATEGORY_CREATE_QUESTION = `wix.forum.sub_pages.category.create-question`, e2.FORUM_POST = `wix.forum.sub_pages.post`, e2.FORUM_POST_EDIT = `wix.forum.sub_pages.post.edit`, e2.FORUM_POST_PAGINATION = `wix.forum.sub_pages.post.pagination`, e2.FORUM_POST_DEEP_LINK_DATA = `wix.forum.sub_pages.post.deep-link-data`, e2.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA = `wix.forum.sub_pages.post.pagination-and-deep-link-data`, e2.GROUP = `wix.groups.sub_pages.group`, e2.GROUP_POST = `wix.groups.sub_pages.post`, e2.BOOKINGS_SERVICE = `wix.bookings.sub_pages.service_page`, e2.CHALLENGES_PAGE = `wix.online_programs.sub_pages.online_program`;
1135
1137
  })(W ||= {});
1136
- var ar = {};
1137
- var or = (ar[W.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, ar);
1138
- var G = `{{main-mapping}}`;
1139
1138
  var sr = {};
1140
- var cr;
1141
- var lr = (sr[W.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (cr = {}, cr[W.BLOG_POST_EDIT] = { defaultMapping: `${G}/edit` }, cr[W.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${G}/preview/{{instance}}` }, cr) }, sr);
1142
- var ur = {};
1143
- var dr = (ur[W.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, ur);
1139
+ var cr = (sr[W.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, sr);
1140
+ var G = `{{main-mapping}}`;
1141
+ var lr = {};
1142
+ var ur;
1143
+ var dr = (lr[W.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (ur = {}, ur[W.BLOG_POST_EDIT] = { defaultMapping: `${G}/edit` }, ur[W.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${G}/preview/{{instance}}` }, ur) }, lr);
1144
1144
  var fr = {};
1145
+ var pr = (fr[W.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, fr);
1146
+ var mr = {};
1145
1147
  var K;
1146
1148
  var q;
1147
- var pr = (fr[W.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (K = {}, K[W.FORUM_POST_EDIT] = { defaultMapping: `${G}/edit` }, K[W.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${G}/p-{{page}}` }, K[W.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${G}/dl-{{deepLinkData}}` }, K[W.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${G}/p-{{page}}/dl-{{deepLinkData}}` }, K) }, fr[W.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (q = {}, q[W.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${G}/create-post` }, q[W.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${G}/create-question` }, q[W.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${G}/p-{{page}}` }, q) }, fr);
1148
- var mr = {};
1149
- var hr = (mr[W.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, mr[W.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, mr);
1149
+ var hr = (mr[W.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (K = {}, K[W.FORUM_POST_EDIT] = { defaultMapping: `${G}/edit` }, K[W.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${G}/p-{{page}}` }, K[W.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${G}/dl-{{deepLinkData}}` }, K[W.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${G}/p-{{page}}/dl-{{deepLinkData}}` }, K) }, mr[W.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (q = {}, q[W.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${G}/create-post` }, q[W.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${G}/create-question` }, q[W.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${G}/p-{{page}}` }, q) }, mr);
1150
1150
  var gr = {};
1151
- var _r = (gr[W.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, gr);
1151
+ var _r = (gr[W.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, gr[W.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, gr);
1152
1152
  var vr = {};
1153
- var yr = (vr[W.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, vr);
1153
+ var yr = (vr[W.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, vr);
1154
+ var br = {};
1155
+ var xr = (br[W.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, br);
1154
1156
  var J = {};
1155
- var br = (J[U.product_page] = or, J[U.post] = lr, J[U.blog] = dr, J[U.forum] = pr, J[U.group] = hr, J[U.bookings] = _r, J[U.challenges] = yr, J);
1156
- var xr = function(e2) {
1157
- return Object.values(Sr()).some(function(t2) {
1157
+ var Sr = (J[U.product_page] = cr, J[U.post] = dr, J[U.blog] = pr, J[U.forum] = hr, J[U.group] = _r, J[U.bookings] = yr, J[U.challenges] = xr, J);
1158
+ var Cr = function(e2) {
1159
+ return Object.values(wr()).some(function(t2) {
1158
1160
  return !!t2?.subMappings?.[e2];
1159
1161
  });
1160
1162
  };
1161
- var Sr = function() {
1162
- return Object.values(br).reduce(function(e2, t2) {
1163
- return En(En({}, e2), t2);
1163
+ var wr = function() {
1164
+ return Object.values(Sr).reduce(function(e2, t2) {
1165
+ return On(On({}, e2), t2);
1164
1166
  }, {}) || {};
1165
1167
  };
1166
- var Cr = function(e2) {
1167
- var t2 = Sr()[e2];
1168
- return !t2 && xr(e2) && console.warn(`You cannot get variables schema for subMappings key (${e2}).`), t2;
1168
+ var Tr = function(e2) {
1169
+ var t2 = wr()[e2];
1170
+ return !t2 && Cr(e2) && console.warn(`You cannot get variables schema for subMappings key (${e2}).`), t2;
1169
1171
  };
1170
- var wr = function(e2) {
1171
- return Object.entries(br).filter(function(t2) {
1172
+ var Er = function(e2) {
1173
+ return Object.entries(Sr).filter(function(t2) {
1172
1174
  var n2 = L(t2, 2)[1];
1173
1175
  return Object.keys(n2).includes(e2);
1174
1176
  }).map(function(e3) {
1175
1177
  return L(e3, 1)[0];
1176
1178
  })[0];
1177
1179
  };
1178
- var Tr = function(e2) {
1179
- return Object.entries(Sr()).find(function(t2) {
1180
+ var Dr = function(e2) {
1181
+ return Object.entries(wr()).find(function(t2) {
1180
1182
  var n2 = L(t2, 2);
1181
1183
  return n2[0], !!n2[1]?.subMappings?.[e2];
1182
1184
  });
1183
1185
  };
1184
- var Er = function(e2) {
1186
+ var Or = function(e2) {
1185
1187
  var t2 = [];
1186
- if (xr(e2)) {
1187
- var n2 = L(Tr(e2), 2);
1188
+ if (Cr(e2)) {
1189
+ var n2 = L(Dr(e2), 2);
1188
1190
  n2[0];
1189
1191
  var r2 = n2[1];
1190
1192
  t2.push.apply(t2, R(R([], L(r2?.required || []), false), L(r2?.subMappings?.[e2]?.required || []), false));
1191
- } else t2.push.apply(t2, R([], L(Cr(e2)?.required || []), false));
1193
+ } else t2.push.apply(t2, R([], L(Tr(e2)?.required || []), false));
1192
1194
  return t2;
1193
1195
  };
1194
- var Dr = function(e2, t2) {
1196
+ var kr = function(e2, t2) {
1195
1197
  var n2;
1196
1198
  return t2 === void 0 && (t2 = ``), (n2 = e2?.main)?.find?.call(n2, function(e3) {
1197
1199
  return e3.key === t2;
1198
1200
  });
1199
1201
  };
1200
- var Or = function(e2, t2) {
1202
+ var Ar = function(e2, t2) {
1201
1203
  return Error(`Url Mappings Error - [${e2}]: ${t2}`);
1202
1204
  };
1203
- var kr = Object.values(W);
1204
- var Ar = Or(`key`, `must be one of: ${kr.toString()}`);
1205
- var jr = function(e2) {
1206
- if (typeof e2 != `string` || !kr.includes(e2)) return Ar;
1207
- };
1208
- var Mr = Or(`itemData`, `must be on object with string as value, for example: { "slug": "shoes" }`);
1205
+ var jr = Object.values(W);
1206
+ var Mr = Ar(`key`, `must be one of: ${jr.toString()}`);
1209
1207
  var Nr = function(e2) {
1208
+ if (typeof e2 != `string` || !jr.includes(e2)) return Mr;
1209
+ };
1210
+ var Pr = Ar(`itemData`, `must be on object with string as value, for example: { "slug": "shoes" }`);
1211
+ var Fr = function(e2) {
1210
1212
  if (typeof e2 != `object` || !e2 || !Object.values(e2).every(function(e3) {
1211
1213
  return typeof e3 == `string`;
1212
- }) || Array.isArray(e2)) return Mr;
1214
+ }) || Array.isArray(e2)) return Pr;
1213
1215
  };
1214
- var Pr = Or(`itemData`, `must have required variables, for example: { "slug": "shoes" }`);
1215
- var Fr = function(e2, t2) {
1216
+ var Ir = Ar(`itemData`, `must have required variables, for example: { "slug": "shoes" }`);
1217
+ var Lr = function(e2, t2) {
1216
1218
  try {
1217
- var n2 = Er(e2);
1219
+ var n2 = Or(e2);
1218
1220
  if (!n2.every(function(e3) {
1219
1221
  return !!t2[e3];
1220
1222
  }) || !n2.length) throw Error();
1221
1223
  } catch {
1222
- return Pr;
1224
+ return Ir;
1223
1225
  }
1224
1226
  };
1225
- var Ir = function(e2) {
1227
+ var Rr = function(e2) {
1226
1228
  var t2 = e2.key, n2 = e2.itemData;
1227
- return [jr(t2), Nr(n2), Fr(t2, n2)].find(Boolean);
1229
+ return [Nr(t2), Fr(n2), Lr(t2, n2)].find(Boolean);
1228
1230
  };
1229
- var Lr = function(e2) {
1231
+ var zr = function(e2) {
1230
1232
  return function(t2) {
1231
- var n2 = new RegExp(rr, `g`), r2 = t2.replace(n2, ``);
1233
+ var n2 = new RegExp(ar, `g`), r2 = t2.replace(n2, ``);
1232
1234
  return e2?.[r2];
1233
1235
  };
1234
1236
  };
1235
- var Rr = function(e2, t2, n2, r2) {
1237
+ var Br = function(e2, t2, n2, r2) {
1236
1238
  e2 === void 0 && (e2 = { main: [] }), r2 === void 0 && (r2 = {});
1237
- var i2 = Ir({ key: t2, itemData: n2 });
1239
+ var i2 = Rr({ key: t2, itemData: n2 });
1238
1240
  if (i2) throw i2;
1239
- var a2 = (Dr(e2, t2) || {}).mapping, o2 = (r2 || {}).baseUrl;
1241
+ var a2 = (kr(e2, t2) || {}).mapping, o2 = (r2 || {}).baseUrl;
1240
1242
  if (o2 ??= ``, o2 = o2.endsWith(`/`) ? o2?.slice(0, -1) : o2, a2 && typeof a2 == `string`) {
1241
- var s2 = new RegExp(nr, `g`), c2 = a2.replace(s2, Lr(n2));
1243
+ var s2 = new RegExp(ir, `g`), c2 = a2.replace(s2, zr(n2));
1242
1244
  return o2.concat(`/${c2}`);
1243
1245
  }
1244
1246
  };
1245
- var zr = /[.*+?^$()|]/g;
1246
- var Br = function(e2) {
1247
- var t2 = e2.replace(zr, `\\$&`).replace(new RegExp(nr, `g`), ir);
1247
+ var Vr = /[.*+?^$()|]/g;
1248
+ var Hr = function(e2) {
1249
+ var t2 = e2.replace(Vr, `\\$&`).replace(new RegExp(ir, `g`), or);
1248
1250
  return RegExp(`^${t2}$`);
1249
1251
  };
1250
- var Vr = function(e2, t2) {
1252
+ var Ur = function(e2, t2) {
1251
1253
  return e2 === void 0 && (e2 = []), e2.find(function(e3) {
1252
- return Br(e3).test(t2);
1254
+ return Hr(e3).test(t2);
1253
1255
  });
1254
1256
  };
1255
- Or(`url`, `Url must be a string`);
1256
- var Hr = function(e2) {
1257
+ Ar(`url`, `Url must be a string`);
1258
+ var Wr = function(e2) {
1257
1259
  return [` `, ` `, `
1258
1260
  `].every(function(t2) {
1259
1261
  return !e2?.includes?.call(e2, t2);
1260
1262
  });
1261
1263
  };
1262
- var Ur = function(e2) {
1263
- return e2?.length <= ti.MAX_URL_MAPPING_LENGTH;
1264
+ var Gr = function(e2) {
1265
+ return e2?.length <= ri.MAX_URL_MAPPING_LENGTH;
1264
1266
  };
1265
- var Wr = function(e2) {
1267
+ var Kr = function(e2) {
1266
1268
  return e2?.split(`/`).every(Boolean);
1267
1269
  };
1268
- var Gr = function(e2, t2) {
1270
+ var qr = function(e2, t2) {
1269
1271
  var n2 = t2.urlMappingKey;
1270
- return Er(n2)?.every(function(t3) {
1272
+ return Or(n2)?.every(function(t3) {
1271
1273
  return e2?.includes(`{{${t3}}}`);
1272
1274
  });
1273
1275
  };
1274
- var Kr = function(e2) {
1275
- return (e2.match(new RegExp(nr, `g`))?.length || 0) <= 1;
1276
+ var Jr = function(e2) {
1277
+ return (e2.match(new RegExp(ir, `g`))?.length || 0) <= 1;
1276
1278
  };
1277
- var qr = function(e2) {
1278
- return e2?.split(`/`).every(Kr);
1279
+ var Yr = function(e2) {
1280
+ return e2?.split(`/`).every(Jr);
1279
1281
  };
1280
- var Jr = function(e2) {
1282
+ var Xr = function(e2) {
1281
1283
  return [e2.publishedPrefix, e2.savedPrefix].filter(Boolean);
1282
1284
  };
1283
- var Yr = function(e2, t2) {
1285
+ var Zr = function(e2, t2) {
1284
1286
  return t2 === void 0 && (t2 = []), function(n2, r2) {
1285
1287
  var i2 = n2.split(`/`), a2 = n2 === r2;
1286
1288
  if (i2.length < 1 || a2) return true;
@@ -1290,49 +1292,49 @@ var Yr = function(e2, t2) {
1290
1292
  });
1291
1293
  };
1292
1294
  };
1293
- var Xr = function(e2, t2) {
1295
+ var Qr = function(e2, t2) {
1294
1296
  var n2 = t2.pathPrefixes;
1295
- return Yr(Object.values(n2).map(function(e3) {
1297
+ return Zr(Object.values(n2).map(function(e3) {
1296
1298
  return e3.publishedPrefix;
1297
- }).filter(Boolean), Jr(t2.pathPrefix))(e2, t2.defaultMapping.defaultPublished);
1299
+ }).filter(Boolean), Xr(t2.pathPrefix))(e2, t2.defaultMapping.defaultPublished);
1298
1300
  };
1299
- var Zr = function(e2, t2) {
1301
+ var $r = function(e2, t2) {
1300
1302
  var n2 = t2.urlMappingKey, r2 = t2.urlMappings;
1301
- return !Vr(r2.main?.filter(function(e3) {
1303
+ return !Ur(r2.main?.filter(function(e3) {
1302
1304
  return n2 !== e3.key;
1303
1305
  }).map(function(e3) {
1304
1306
  return e3.mapping;
1305
1307
  }), e2);
1306
1308
  };
1307
- var Qr = function(e2) {
1308
- e2 = e2.replace(new RegExp(nr, `ig`), ``);
1309
+ var ei = function(e2) {
1310
+ e2 = e2.replace(new RegExp(ir, `ig`), ``);
1309
1311
  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(e2), r2 = !e2.replace(t2, ``);
1310
1312
  return n2 && r2;
1311
1313
  };
1312
- var $r = function(e2) {
1314
+ var ti = function(e2) {
1313
1315
  var t2 = L(e2, 1)[0], n2 = e2.slice(-1);
1314
1316
  return t2 !== `/` && n2 !== `/`;
1315
1317
  };
1316
- var ei = function(e2, t2) {
1318
+ var ni = function(e2, t2) {
1317
1319
  var n2 = t2.pathPrefixes;
1318
- return Yr(Object.values(n2).map(function(e3) {
1320
+ return Zr(Object.values(n2).map(function(e3) {
1319
1321
  return e3.savedPrefix;
1320
- }).filter(Boolean), Jr(t2.pathPrefix))(e2, t2.defaultMapping.defaultSaved);
1322
+ }).filter(Boolean), Xr(t2.pathPrefix))(e2, t2.defaultMapping.defaultSaved);
1321
1323
  };
1322
1324
  var Y;
1323
1325
  (function(e2) {
1324
1326
  e2.MAX_LENGTH_ERROR = `MAX_LENGTH_ERROR`, e2.NO_SPACES_ERROR = `NO_SPACES_ERROR`, e2.NO_EMPTY_SEGMENT_ERROR = `NO_EMPTY_SEGMENT_ERROR`, e2.CONTAIN_MAIN_VARIABLE_ERROR = `CONTAIN_MAIN_VARIABLE_ERROR`, e2.ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR = `ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR`, e2.ONLY_UNIQUE_PUBLISHED_URL_ERROR = `ONLY_UNIQUE_PUBLISHED_URL_ERROR`, e2.ONLY_UNIQUE_SAVED_URL_ERROR = `ONLY_UNIQUE_SAVED_URL_ERROR`, e2.ONLY_UNIQUE_MAPPING_ERROR = `ONLY_UNIQUE_MAPPING_ERROR`, e2.NO_INVALID_CHARACTERS_ERROR = `NO_INVALID_CHARACTERS_ERROR`, e2.NO_STARTING_OR_ENDING_SLASH_ERROR = `NO_STARTING_OR_ENDING_SLASH_ERROR`;
1325
1327
  })(Y ||= {});
1326
- var ti = function() {
1328
+ var ri = function() {
1327
1329
  function e2(e3) {
1328
1330
  var t2 = e3.urlMappingKey, n2 = e3.pathPrefixes, r2 = e3.urlMappings, i2 = this;
1329
1331
  this.initValidators = function() {
1330
- i2.validators = [[Ur, Y.MAX_LENGTH_ERROR], [Hr, Y.NO_SPACES_ERROR], [$r, Y.NO_STARTING_OR_ENDING_SLASH_ERROR], [Wr, Y.NO_EMPTY_SEGMENT_ERROR], [Qr, Y.NO_INVALID_CHARACTERS_ERROR], [Gr, Y.CONTAIN_MAIN_VARIABLE_ERROR], [qr, Y.ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR], [Xr, Y.ONLY_UNIQUE_PUBLISHED_URL_ERROR], [ei, Y.ONLY_UNIQUE_SAVED_URL_ERROR], [Zr, Y.ONLY_UNIQUE_MAPPING_ERROR]];
1331
- }, this.urlMappings = r2, this.pathPrefixes = n2, this.urlMappingKey = t2, this.pathPrefix = this.getPathPrefix(), this.defaultMapping = ni(t2, this.pathPrefix), this.initValidators();
1332
+ i2.validators = [[Gr, Y.MAX_LENGTH_ERROR], [Wr, Y.NO_SPACES_ERROR], [ti, Y.NO_STARTING_OR_ENDING_SLASH_ERROR], [Kr, Y.NO_EMPTY_SEGMENT_ERROR], [ei, Y.NO_INVALID_CHARACTERS_ERROR], [qr, Y.CONTAIN_MAIN_VARIABLE_ERROR], [Yr, Y.ONLY_ONE_VARIABLE_PER_SEGMENT_ERROR], [Qr, Y.ONLY_UNIQUE_PUBLISHED_URL_ERROR], [ni, Y.ONLY_UNIQUE_SAVED_URL_ERROR], [$r, Y.ONLY_UNIQUE_MAPPING_ERROR]];
1333
+ }, this.urlMappings = r2, this.pathPrefixes = n2, this.urlMappingKey = t2, this.pathPrefix = this.getPathPrefix(), this.defaultMapping = ii(t2, this.pathPrefix), this.initValidators();
1332
1334
  }
1333
1335
  return e2.prototype.getPathPrefix = function() {
1334
- var t2 = wr(this.urlMappingKey);
1335
- if (!t2) throw xr(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})`);
1336
+ var t2 = Er(this.urlMappingKey);
1337
+ if (!t2) throw Cr(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})`);
1336
1338
  return this.pathPrefixes[t2] || e2.FALLBACK_PATH_PREFIX;
1337
1339
  }, Object.defineProperty(e2.prototype, "validatorProps", { get: function() {
1338
1340
  var e3 = this;
@@ -1340,7 +1342,7 @@ var ti = function() {
1340
1342
  }, enumerable: false, configurable: true }), e2.prototype.validate = function(e3) {
1341
1343
  var t2, n2;
1342
1344
  try {
1343
- for (var r2 = Dn(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
1345
+ for (var r2 = kn(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
1344
1346
  var a2 = L(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e3, this.validatorProps);
1345
1347
  if (!c2) return { isValid: c2, error: s2 };
1346
1348
  }
@@ -1356,41 +1358,41 @@ var ti = function() {
1356
1358
  return { isValid: true };
1357
1359
  }, e2.errorArray = Object.values(Y), e2.MAX_URL_MAPPING_LENGTH = 1e3, e2.FALLBACK_PATH_PREFIX = `unknown`, e2;
1358
1360
  }();
1359
- var ni = function(e2, t2) {
1360
- var n2 = Sr()[e2] || { required: [`slug`] }, r2 = n2.required, i2 = n2.defaultPrefix, a2 = {};
1361
- return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = ti.FALLBACK_PATH_PREFIX, a2.publishedPrefix = ti.FALLBACK_PATH_PREFIX), { defaultSaved: R([a2.savedPrefix, i2], L(r2?.map(function(e3) {
1361
+ var ii = function(e2, t2) {
1362
+ var n2 = wr()[e2] || { required: [`slug`] }, r2 = n2.required, i2 = n2.defaultPrefix, a2 = {};
1363
+ return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = ri.FALLBACK_PATH_PREFIX, a2.publishedPrefix = ri.FALLBACK_PATH_PREFIX), { defaultSaved: R([a2.savedPrefix, i2], L(r2?.map(function(e3) {
1362
1364
  return `{{${e3}}}`;
1363
1365
  })), false).filter(Boolean).join(`/`), defaultPublished: R([a2.publishedPrefix, i2], L(r2?.map(function(e3) {
1364
1366
  return `{{${e3}}}`;
1365
1367
  })), false).filter(Boolean).join(`/`) };
1366
1368
  };
1367
- function ri(e2, t2) {
1368
- return t2 ? Rr(e2, W.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
1369
+ function ai(e2, t2) {
1370
+ return t2 ? Br(e2, W.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
1369
1371
  }
1370
- function ii(e2) {
1372
+ function oi(e2) {
1371
1373
  if (!e2) return;
1372
1374
  let t2 = ``;
1373
1375
  return (e2.filename || e2.altText) && (t2 = `/${encodeURIComponent(e2.filename || e2.altText)}`), e2.id ? `wix:image://v1/${e2.id}${t2}#originWidth=${e2.width}&originHeight=${e2.height}` : e2.url;
1374
1376
  }
1375
- function ai(e2) {
1377
+ function si(e2) {
1376
1378
  return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
1377
1379
  }
1378
- function oi(e2) {
1380
+ function ci(e2) {
1379
1381
  return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
1380
1382
  }
1381
- function si(e2) {
1383
+ function li(e2) {
1382
1384
  return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
1383
1385
  }
1384
1386
  function X(e2, t2) {
1385
- return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...ai(e2) ? e2.$and : [e2], ...ai(t2) ? t2.$and : [t2]] };
1387
+ return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...si(e2) ? e2.$and : [e2], ...si(t2) ? t2.$and : [t2]] };
1386
1388
  }
1387
- function ci(e2, t2) {
1388
- return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...oi(e2) ? e2.$or : [e2], ...oi(t2) ? t2.$or : [t2]] };
1389
+ function ui(e2, t2) {
1390
+ return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...ci(e2) ? e2.$or : [e2], ...ci(t2) ? t2.$or : [t2]] };
1389
1391
  }
1390
- function li(e2) {
1391
- if (e2 !== void 0 && Object.keys(e2).length !== 0) return si(e2) ? e2.$not : { $not: e2 };
1392
+ function di(e2) {
1393
+ if (e2 !== void 0 && Object.keys(e2).length !== 0) return li(e2) ? e2.$not : { $not: e2 };
1392
1394
  }
1393
- var ui = class {
1395
+ var fi = class {
1394
1396
  _items;
1395
1397
  _fetchNextPage;
1396
1398
  _fetchPrevPage;
@@ -1420,7 +1422,7 @@ var ui = class {
1420
1422
  return await this._fetchPrevPage();
1421
1423
  }
1422
1424
  };
1423
- var di = class extends ui {
1425
+ var pi = class extends fi {
1424
1426
  _nextCursor;
1425
1427
  _prevCursor;
1426
1428
  cursors;
@@ -1434,7 +1436,7 @@ var di = class extends ui {
1434
1436
  return !!this._prevCursor;
1435
1437
  }
1436
1438
  };
1437
- var fi = class extends ui {
1439
+ var mi = class extends fi {
1438
1440
  _totalCount;
1439
1441
  _offset;
1440
1442
  _tooManyToCount;
@@ -1457,16 +1459,16 @@ var fi = class extends ui {
1457
1459
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
1458
1460
  }
1459
1461
  };
1460
- function pi(e2) {
1462
+ function hi(e2) {
1461
1463
  let t2 = (n2) => ({ query: n2, async find() {
1462
1464
  try {
1463
1465
  let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [Ke]: a2, [qe]: o2 } = e2.responseTransformer(i2);
1464
1466
  if (e2.pagingMethod === `OFFSET`) {
1465
1467
  let e3 = n2;
1466
- return new fi({ items: a2 ?? [], fetchNextPage: () => t2({ ...e3, paging: { offset: e3.paging.offset + e3.paging.limit, limit: e3.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e3.paging.offset - e3.paging.limit, 0), limit: e3.paging.limit } }).find(), offset: e3.paging.offset, limit: e3.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
1468
+ return new mi({ items: a2 ?? [], fetchNextPage: () => t2({ ...e3, paging: { offset: e3.paging.offset + e3.paging.limit, limit: e3.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e3.paging.offset - e3.paging.limit, 0), limit: e3.paging.limit } }).find(), offset: e3.paging.offset, limit: e3.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
1467
1469
  }
1468
1470
  let s2 = n2.cursorPaging;
1469
- return new di({ 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 });
1471
+ return new pi({ 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 });
1470
1472
  } catch (t3) {
1471
1473
  throw e2.errorTransformer(t3);
1472
1474
  }
@@ -1518,11 +1520,11 @@ function pi(e2) {
1518
1520
  let a2 = { [Z(e2.transformationPaths, r2)]: { $exists: i2 } };
1519
1521
  return t2({ ...n2, filter: X(n2.filter, a2) });
1520
1522
  }, or(e3) {
1521
- return t2({ ...n2, filter: ci(n2.filter, e3.query.filter) });
1523
+ return t2({ ...n2, filter: ui(n2.filter, e3.query.filter) });
1522
1524
  }, and(e3) {
1523
1525
  return t2({ ...n2, filter: X(n2.filter, e3.query.filter) });
1524
1526
  }, not(e3) {
1525
- return t2({ ...n2, filter: li(e3.query.filter) });
1527
+ return t2({ ...n2, filter: di(e3.query.filter) });
1526
1528
  }, ascending(...r2) {
1527
1529
  return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Z(e2.transformationPaths, t3), order: `ASC` }))] });
1528
1530
  }, descending(...r2) {
@@ -1543,19 +1545,19 @@ function Z(e2, t2) {
1543
1545
  let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
1544
1546
  return n2 ? t2.replace(n2, e2[n2]) : Ye(t2, { ...e2, ...Je });
1545
1547
  }
1546
- function mi(e2, t2, n2 = {}) {
1547
- let r2 = (r3, i3) => mi(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Xe(e2, t2)]: n2 };
1548
+ function gi(e2, t2, n2 = {}) {
1549
+ let r2 = (r3, i3) => gi(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Xe(e2, t2)]: n2 };
1548
1550
  return { get filter() {
1549
1551
  return i2();
1550
1552
  }, eq: (e3) => r2(`$eq`, e3), ne: (e3) => r2(`$ne`, e3), gt: (e3) => r2(`$gt`, e3), gte: (e3) => r2(`$gte`, e3), lt: (e3) => r2(`$lt`, e3), lte: (e3) => r2(`$lte`, e3), startsWith: (e3) => r2(`$startsWith`, e3), endsWith: (e3) => r2(`$endsWith`, e3), contains: (e3) => r2(`$contains`, e3), in: (e3) => r2(`$in`, e3), nin: (e3) => r2(`$nin`, e3), hasSome: (e3) => r2(`$hasSome`, e3), hasAll: (e3) => r2(`$hasAll`, e3), exists: (e3 = true) => r2(`$exists`, e3), isEmpty: (e3 = true) => r2(`$isEmpty`, e3), isNotEmpty: () => r2(`$ne`, null) };
1551
1553
  }
1552
- function hi(e2) {
1553
- return Object.assign((t2) => mi(t2, e2), { and: (...e3) => ({ filter: { $and: e3.map((e4) => e4.filter) } }), or: (...e3) => ({ filter: { $or: e3.map((e4) => e4.filter) } }), not: (e3) => ({ filter: { $not: e3.filter } }) });
1554
+ function _i(e2) {
1555
+ return Object.assign((t2) => gi(t2, e2), { and: (...e3) => ({ filter: { $and: e3.map((e4) => e4.filter) } }), or: (...e3) => ({ filter: { $or: e3.map((e4) => e4.filter) } }), not: (e3) => ({ filter: { $not: e3.filter } }) });
1554
1556
  }
1555
- function gi(e2) {
1557
+ function vi(e2) {
1556
1558
  return (t2) => ({ asc: () => ({ sort: { fieldName: Xe(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: Xe(t2, e2), order: `DESC` } }) });
1557
1559
  }
1558
- function _i(e2) {
1560
+ function yi(e2) {
1559
1561
  return () => {
1560
1562
  let t2 = {}, n2 = { withFilter(e3) {
1561
1563
  return t2 = { ...t2, filter: e3.filter }, n2;
@@ -1571,57 +1573,57 @@ function _i(e2) {
1571
1573
  return n2;
1572
1574
  };
1573
1575
  }
1574
- function vi(e2) {
1575
- return { QueryBuilder: _i(e2), Filter: hi(e2), Sort: gi(e2) };
1576
- }
1577
- var yi = `filter`;
1578
- var bi = `sort`;
1579
- var xi = `cursorPaging`;
1580
- var Si = `paging`;
1581
- var Ci = [yi, bi, xi];
1582
- var wi = [yi, bi, Si];
1583
- function Ti(e2, t2) {
1576
+ function bi(e2) {
1577
+ return { QueryBuilder: yi(e2), Filter: _i(e2), Sort: vi(e2) };
1578
+ }
1579
+ var xi = `filter`;
1580
+ var Si = `sort`;
1581
+ var Ci = `cursorPaging`;
1582
+ var wi = `paging`;
1583
+ var Ti = [xi, Si, Ci];
1584
+ var Ei = [xi, Si, wi];
1585
+ function Di(e2, t2) {
1584
1586
  return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
1585
1587
  }
1586
- function Ei(e2) {
1587
- return Ti(e2, Ci);
1588
+ function Oi(e2) {
1589
+ return Di(e2, Ti);
1588
1590
  }
1589
- function Di(e2) {
1590
- return Ti(e2, wi);
1591
+ function ki(e2) {
1592
+ return Di(e2, Ei);
1591
1593
  }
1592
- function Oi(e2) {
1594
+ function Ai(e2) {
1593
1595
  let { hasOptionsParameter: t2 } = e2;
1594
1596
  return function(...n2) {
1595
- return t2 ? Ai(n2, e2) : ki(n2, e2);
1597
+ return t2 ? Mi(n2, e2) : ji(n2, e2);
1596
1598
  };
1597
1599
  }
1598
- function ki(e2, t2) {
1600
+ function ji(e2, t2) {
1599
1601
  return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
1600
1602
  }
1601
- function Ai(e2, t2) {
1603
+ function Mi(e2, t2) {
1602
1604
  switch (e2.length) {
1603
1605
  case 0:
1604
1606
  return t2.builderQueryFunction();
1605
1607
  case 1:
1606
- return Ei(e2[0]) || Di(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
1608
+ return Oi(e2[0]) || ki(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
1607
1609
  default:
1608
1610
  return t2.typedQueryFunction(e2[0], e2[1]);
1609
1611
  }
1610
1612
  }
1611
- function ji(e2) {
1612
- return Ft(Object.assign(e2, { 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` }] } }));
1613
- }
1614
- var Mi = `@wix/auto_sdk_bookings_service-options-and-variants`;
1615
1613
  function Ni(e2) {
1614
+ return F(Object.assign(e2, { 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` }] } }));
1615
+ }
1616
+ var Pi = `@wix/auto_sdk_bookings_service-options-and-variants`;
1617
+ function Fi(e2) {
1616
1618
  function t2({ host: t3 }) {
1617
- return { entityFqdn: `wix.bookings.catalog.v1.service_options_and_variants`, method: `POST`, methodFqn: `wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.QueryServiceOptionsAndVariants`, packageName: Mi, migrationOptions: { optInTransformResponse: true }, url: ji({ protoPath: `/v1/serviceOptionsAndVariants/query`, data: e2, host: t3 }), data: e2 };
1619
+ return { entityFqdn: `wix.bookings.catalog.v1.service_options_and_variants`, method: `POST`, methodFqn: `wix.bookings.catalog.v1.ServiceOptionsAndVariantsService.QueryServiceOptionsAndVariants`, packageName: Pi, migrationOptions: { optInTransformResponse: true }, url: Ni({ protoPath: `/v1/serviceOptionsAndVariants/query`, data: e2, host: t3 }), data: e2 };
1618
1620
  }
1619
1621
  return t2;
1620
1622
  }
1621
- function Pi() {
1623
+ function Ii() {
1622
1624
  let { httpClient: e2, sideEffects: t2 } = arguments[0];
1623
- return pi({ func: async (n2) => {
1624
- let r2 = Ni(n2);
1625
+ return hi({ func: async (n2) => {
1626
+ let r2 = Fi(n2);
1625
1627
  t2?.onSiteCall?.();
1626
1628
  try {
1627
1629
  let n3 = await e2.request(r2);
@@ -1639,8 +1641,8 @@ function Pi() {
1639
1641
  throw P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
1640
1642
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
1641
1643
  }
1642
- async function Fi(e2) {
1643
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ni(A({ query: e2 }));
1644
+ async function Li(e2) {
1645
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Fi(A({ query: e2 }));
1644
1646
  n2?.onSiteCall?.();
1645
1647
  try {
1646
1648
  let e3 = await t2.request(r2);
@@ -1650,45 +1652,45 @@ async function Fi(e2) {
1650
1652
  throw n2?.onError?.(e3), t3;
1651
1653
  }
1652
1654
  }
1653
- function Ii(e2) {
1654
- return () => Pi({ httpClient: e2 });
1655
+ function Ri(e2) {
1656
+ return () => Ii({ httpClient: e2 });
1655
1657
  }
1656
- function Li(e2) {
1657
- return (t2) => Fi(t2, { httpClient: e2 });
1658
+ function zi(e2) {
1659
+ return (t2) => Li(t2, { httpClient: e2 });
1658
1660
  }
1659
- function Ri(e2) {
1660
- let t2 = Oi({ builderQueryFunction: () => Ii(e2)(), typedQueryFunction: (t3) => Li(e2)(t3), hasOptionsParameter: false });
1661
+ function Bi(e2) {
1662
+ let t2 = Ai({ builderQueryFunction: () => Ri(e2)(), typedQueryFunction: (t3) => zi(e2)(t3), hasOptionsParameter: false });
1661
1663
  function n2(e3) {
1662
1664
  return t2(...arguments);
1663
1665
  }
1664
1666
  return n2;
1665
1667
  }
1666
- var zi = F(Ri);
1667
- function Bi(e2) {
1668
+ var Vi = Pt(Bi);
1669
+ function Hi(e2) {
1668
1670
  if (e2) return e2.url;
1669
1671
  }
1670
- var Vi = [{ 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` }];
1671
- var Hi = [{ 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` }];
1672
- function Ui(e2) {
1673
- return Ft(Object.assign(e2, { 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: `` }] } }));
1674
- }
1675
- var Wi = `@wix/auto_sdk_bookings_services`;
1672
+ var Ui = [{ 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` }];
1673
+ var Wi = [{ 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` }];
1676
1674
  function Gi(e2) {
1675
+ return F(Object.assign(e2, { 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: `` }] } }));
1676
+ }
1677
+ var Ki = `@wix/auto_sdk_bookings_services`;
1678
+ function qi(e2) {
1677
1679
  function t2({ host: t3 }) {
1678
- return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: Wi, migrationOptions: { optInTransformResponse: true }, url: Ui({ protoPath: `/v2/services/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: Vi }, { transformFn: cn, paths: Hi }]) };
1680
+ return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: Ki, migrationOptions: { optInTransformResponse: true }, url: Gi({ protoPath: `/v2/services/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: Ui }, { transformFn: cn, paths: Wi }]) };
1679
1681
  }
1680
1682
  return t2;
1681
1683
  }
1682
- var Ki = [{ 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` }];
1683
- var qi = [{ path: `services.locations.calculatedAddress` }, { path: `services.locations.business.address` }, { path: `services.locations.custom.address` }];
1684
- var Ji = [{ path: `services.urls.servicePage` }, { path: `services.urls.bookingPage` }, { path: `services.urls.calendarPage` }];
1685
- var Yi = ((e2) => (e2.APPOINTMENT = `APPOINTMENT`, e2.CLASS = `CLASS`, e2.COURSE = `COURSE`, e2))(Yi || {});
1686
- var Xi = ((e2) => (e2.FIXED = `FIXED`, e2.CUSTOM = `CUSTOM`, e2.VARIED = `VARIED`, e2.NO_FEE = `NO_FEE`, e2.SUBSCRIPTION = `SUBSCRIPTION`, e2))(Xi || {});
1687
- var Zi = ((e2) => (e2.CUSTOM = `CUSTOM`, e2.BUSINESS = `BUSINESS`, e2.CUSTOMER = `CUSTOMER`, e2))(Zi || {});
1688
- function Qi(e2) {
1684
+ var Ji = [{ 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` }];
1685
+ var Yi = [{ path: `services.locations.calculatedAddress` }, { path: `services.locations.business.address` }, { path: `services.locations.custom.address` }];
1686
+ var Xi = [{ path: `services.urls.servicePage` }, { path: `services.urls.bookingPage` }, { path: `services.urls.calendarPage` }];
1687
+ var Zi = ((e2) => (e2.APPOINTMENT = `APPOINTMENT`, e2.CLASS = `CLASS`, e2.COURSE = `COURSE`, e2))(Zi || {});
1688
+ var Qi = ((e2) => (e2.FIXED = `FIXED`, e2.CUSTOM = `CUSTOM`, e2.VARIED = `VARIED`, e2.NO_FEE = `NO_FEE`, e2.SUBSCRIPTION = `SUBSCRIPTION`, e2))(Qi || {});
1689
+ var $i = ((e2) => (e2.CUSTOM = `CUSTOM`, e2.BUSINESS = `BUSINESS`, e2.CUSTOMER = `CUSTOMER`, e2))($i || {});
1690
+ function ea(e2) {
1689
1691
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
1690
- return pi({ func: async (r2) => {
1691
- let i2 = Gi({ ...r2, ...e2 ?? {} });
1692
+ return hi({ func: async (r2) => {
1693
+ let i2 = qi({ ...r2, ...e2 ?? {} });
1692
1694
  n2?.onSiteCall?.();
1693
1695
  try {
1694
1696
  let e3 = await t2.request(i2);
@@ -1700,52 +1702,52 @@ function Qi(e2) {
1700
1702
  let n3 = [t3, e2];
1701
1703
  return A({ ...n3?.[1], query: n3?.[0] });
1702
1704
  }, responseTransformer: ({ data: e3 }) => {
1703
- let t3 = j(N(e3, [{ transformFn: ii, paths: Ki }, { transformFn: ln, paths: qi }, { transformFn: Bi, paths: Ji }]));
1705
+ let t3 = j(N(e3, [{ transformFn: oi, paths: Ji }, { transformFn: ln, paths: Yi }, { transformFn: Hi, paths: Xi }]));
1704
1706
  return { items: t3?.services, pagingMetadata: t3?.pagingMetadata };
1705
1707
  }, errorTransformer: (e3) => {
1706
1708
  throw P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
1707
1709
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
1708
1710
  }
1709
- async function $i(e2, t2) {
1710
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Gi(A({ query: e2, ...t2 }));
1711
+ async function ta(e2, t2) {
1712
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = qi(A({ query: e2, ...t2 }));
1711
1713
  r2?.onSiteCall?.();
1712
1714
  try {
1713
1715
  let e3 = await n2.request(i2);
1714
- return r2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: ii, paths: Ki }, { transformFn: ln, paths: qi }, { transformFn: Bi, paths: Ji }]));
1716
+ return r2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: oi, paths: Ji }, { transformFn: ln, paths: Yi }, { transformFn: Hi, paths: Xi }]));
1715
1717
  } catch (e3) {
1716
1718
  let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
1717
1719
  throw r2?.onError?.(e3), t3;
1718
1720
  }
1719
1721
  }
1720
- function ea(e2) {
1721
- return (t2) => Qi(t2, { httpClient: e2 });
1722
+ function na(e2) {
1723
+ return (t2) => ea(t2, { httpClient: e2 });
1722
1724
  }
1723
- function ta(e2) {
1724
- return (t2, n2) => $i(t2, n2, { httpClient: e2 });
1725
+ function ra(e2) {
1726
+ return (t2, n2) => ta(t2, n2, { httpClient: e2 });
1725
1727
  }
1726
- function na(e2) {
1727
- let t2 = Oi({ builderQueryFunction: (t3) => ea(e2)(t3), typedQueryFunction: (t3, n3) => ta(e2)(t3, n3), hasOptionsParameter: true });
1728
+ function ia(e2) {
1729
+ let t2 = Ai({ builderQueryFunction: (t3) => na(e2)(t3), typedQueryFunction: (t3, n3) => ra(e2)(t3, n3), hasOptionsParameter: true });
1728
1730
  function n2(e3, n3) {
1729
1731
  return t2(...arguments);
1730
1732
  }
1731
1733
  return n2;
1732
1734
  }
1733
- var ra = F(na);
1734
- var ia = [{ path: `bookingsSettings.createdDate` }, { path: `bookingsSettings.updatedDate` }];
1735
- var aa = [{ path: `bookingsSettings.siteProperties.address.coordinates.latitude` }, { path: `bookingsSettings.siteProperties.address.coordinates.longitude` }];
1736
- function oa(e2) {
1737
- return Ft(Object.assign(e2, { 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: `` }] } }));
1738
- }
1739
- var sa = `@wix/auto_sdk_bookings_bookings-settings`;
1735
+ var aa = Pt(ia);
1736
+ var oa = [{ path: `bookingsSettings.createdDate` }, { path: `bookingsSettings.updatedDate` }];
1737
+ var sa = [{ path: `bookingsSettings.siteProperties.address.coordinates.latitude` }, { path: `bookingsSettings.siteProperties.address.coordinates.longitude` }];
1740
1738
  function ca(e2) {
1739
+ return F(Object.assign(e2, { 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: `` }] } }));
1740
+ }
1741
+ var la = `@wix/auto_sdk_bookings_bookings-settings`;
1742
+ function ua(e2) {
1741
1743
  function t2({ host: t3 }) {
1742
- return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: sa, migrationOptions: { optInTransformResponse: true }, url: oa({ protoPath: `/v2/settings`, data: e2, host: t3 }), params: Pt(e2), transformResponse: (e3) => N(e3, [{ transformFn: M, paths: ia }, { transformFn: cn, paths: aa }]), fallback: [{ method: `GET`, url: oa({ protoPath: `/v2/settings`, data: e2, host: t3 }), params: Pt(e2) }] };
1744
+ return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: la, migrationOptions: { optInTransformResponse: true }, url: ca({ protoPath: `/v2/settings`, data: e2, host: t3 }), params: Ft(e2), transformResponse: (e3) => N(e3, [{ transformFn: M, paths: oa }, { transformFn: cn, paths: sa }]), fallback: [{ method: `GET`, url: ca({ protoPath: `/v2/settings`, data: e2, host: t3 }), params: Ft(e2) }] };
1743
1745
  }
1744
1746
  return t2;
1745
1747
  }
1746
- var la = ((e2) => (e2.BUSINESS_TIME_ZONE = `BUSINESS_TIME_ZONE`, e2.CUSTOMER_TIME_ZONE = `CUSTOMER_TIME_ZONE`, e2))(la || {});
1747
- async function ua() {
1748
- let { httpClient: e2, sideEffects: t2 } = arguments[0], n2 = ca(A({}));
1748
+ var da = ((e2) => (e2.BUSINESS_TIME_ZONE = `BUSINESS_TIME_ZONE`, e2.CUSTOMER_TIME_ZONE = `CUSTOMER_TIME_ZONE`, e2))(da || {});
1749
+ async function fa() {
1750
+ let { httpClient: e2, sideEffects: t2 } = arguments[0], n2 = ua(A({}));
1749
1751
  t2?.onSiteCall?.();
1750
1752
  try {
1751
1753
  let r2 = await e2.request(n2);
@@ -1755,83 +1757,83 @@ async function ua() {
1755
1757
  throw t2?.onError?.(e3), n3;
1756
1758
  }
1757
1759
  }
1758
- function da(e2) {
1759
- return () => ua({ httpClient: e2 });
1760
+ function pa(e2) {
1761
+ return () => fa({ httpClient: e2 });
1760
1762
  }
1761
- var fa = F(da);
1762
- var pa = (e2) => e2 === Yi.APPOINTMENT;
1763
- var ma = (e2) => e2.payment?.rateType === Xi.VARIED;
1764
- var ha = [`STAFF_MEMBER_DETAILS`, `STAFF_WORKING_HOURS_LOCATIONS`, `DISCOUNT_INFO_DETAILS`];
1765
- function ga() {
1766
- return ra({ conditionalFields: ha }).eq(`appId`, $n).eq(`hidden`, false);
1763
+ var ma = Pt(pa);
1764
+ var ha = (e2) => e2 === Zi.APPOINTMENT;
1765
+ var ga = (e2) => e2.payment?.rateType === Qi.VARIED;
1766
+ var _a = [`STAFF_MEMBER_DETAILS`, `STAFF_WORKING_HOURS_LOCATIONS`, `DISCOUNT_INFO_DETAILS`];
1767
+ function va() {
1768
+ return aa({ conditionalFields: _a }).eq(`appId`, tr).eq(`hidden`, false);
1767
1769
  }
1768
- async function _a({ limit: e2, offset: t2, categoryId: n2, locationId: r2, serviceIds: i2, categoryIds: a2 }) {
1770
+ async function ya({ limit: e2, offset: t2, categoryId: n2, locationId: r2, serviceIds: i2, categoryIds: a2 }) {
1769
1771
  if (n2 && a2?.length && !a2.includes(n2)) return { services: [], hasMore: false, totalPages: 1 };
1770
- let o2 = ga().limit(e2).skip(t2);
1771
- 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`, [Zi.CUSTOM, Zi.CUSTOMER]) : r2 && (o2 = o2.eq(`locations.business.id`, r2));
1772
+ let o2 = va().limit(e2).skip(t2);
1773
+ 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`, [$i.CUSTOM, $i.CUSTOMER]) : r2 && (o2 = o2.eq(`locations.business.id`, r2));
1772
1774
  let s2 = await o2.find();
1773
1775
  return { services: s2.items ?? [], hasMore: s2.hasNext(), totalPages: s2.totalPages ?? 1 };
1774
1776
  }
1775
1777
  var Q = { category: `category`, location: `location`, page: `page`, blob: `b`, resource: `resource`, referral: `referral`, timezone: `timezone`, bookingId: `bookingId`, token: `token`, rescheduleRedirectUrl: `rescheduleRedirectUrl` };
1776
- function va(e2, t2) {
1778
+ function ba(e2, t2) {
1777
1779
  let n2 = e2(t2);
1778
1780
  return n2 ? n2.replace(/\/$/, ``) || `/` : null;
1779
1781
  }
1780
- function ya(e2, t2, n2) {
1782
+ function xa(e2, t2, n2) {
1781
1783
  let r2 = e2(t2);
1782
1784
  return !r2 || !n2 ? null : `${r2.replace(/\/$/, ``)}/${n2}`;
1783
1785
  }
1784
- function ba(e2, t2) {
1786
+ function Sa(e2, t2) {
1785
1787
  switch (e2) {
1786
1788
  case `servicePage`:
1787
- return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? ya(t2.appSectionUrl, H.SERVICE_PAGE, t2.slug);
1789
+ return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? xa(t2.appSectionUrl, H.SERVICE_PAGE, t2.slug);
1788
1790
  case `bookingCalendar`:
1789
- return t2.isMultiService ? va(t2.appSectionUrl, H.CALENDAR_PAGE) : ya(t2.appSectionUrl, H.CALENDAR_PAGE, t2.slug);
1791
+ return t2.isMultiService ? ba(t2.appSectionUrl, H.CALENDAR_PAGE) : xa(t2.appSectionUrl, H.CALENDAR_PAGE, t2.slug);
1790
1792
  case `bookingForm`:
1791
- return t2.serviceId ? ya(t2.appSectionUrl, H.FORM_PAGE, t2.slug) : null;
1793
+ return t2.serviceId ? xa(t2.appSectionUrl, H.FORM_PAGE, t2.slug) : null;
1792
1794
  default:
1793
1795
  return null;
1794
1796
  }
1795
1797
  }
1796
- var xa = (e2) => e2.target === `_blank`;
1797
- var Sa = (e2, t2) => t2 === `/` ? e2 : new URL(`.${t2}`, `${e2}/`).href;
1798
- var Ca = (e2, t2, n2) => n2 ? `.${t2}` : wa(e2, t2);
1799
- var wa = (e2, t2) => e2 ? Sa(e2, t2) : t2;
1800
- var Ta = () => {
1801
- let { previewMode: e2 } = (0, import_services_manager_react.useService)(Yn), t2 = (0, import_services_manager_react.useService)(Rn), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = (0, import_services_manager_react.useService)(Zn), a2 = (0, import_services_manager_react.useService)(Qn), o2 = (0, import_services_manager_react.useGetService)(), s2 = (0, import_react.useCallback)(async (t3) => {
1802
- let i2 = Ca(n2, t3, e2);
1798
+ var Ca = (e2) => e2.target === `_blank`;
1799
+ var wa = (e2, t2) => t2 === `/` ? e2 : new URL(`.${t2}`, `${e2}/`).href;
1800
+ var Ta = (e2, t2, n2) => n2 ? `.${t2}` : Ea(e2, t2);
1801
+ var Ea = (e2, t2) => e2 ? wa(e2, t2) : t2;
1802
+ var Da = () => {
1803
+ let { previewMode: e2 } = (0, import_services_manager_react.useService)(Zn), t2 = (0, import_services_manager_react.useService)(Bn), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = (0, import_services_manager_react.useService)($n), a2 = (0, import_services_manager_react.useService)(er), o2 = (0, import_services_manager_react.useGetService)(), s2 = (0, import_react.useCallback)(async (t3) => {
1804
+ let i2 = Ta(n2, t3, e2);
1803
1805
  await r2({ href: i2 });
1804
1806
  }, [e2, n2, r2]), c2 = (0, import_react.useCallback)(async (e3) => {
1805
- await r2(xa(e3) ? { href: e3.href, type: `ExternalLink`, target: `_blank` } : { href: e3.href });
1806
- }, [r2]), l2 = (0, import_react.useCallback)((e3) => wa(n2, e3), [n2]), u2 = (0, import_react.useCallback)((e3) => t2.appSectionRelativeUrl($n, e3), [t2]), d2 = (0, import_react.useCallback)((e3) => ri(a2.urlMappings, e3), [a2]), m2 = (0, import_react.useCallback)((e3, t3) => ba(e3, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), ee2 = (0, import_react.useCallback)((e3, t3) => {
1807
+ await r2(Ca(e3) ? { href: e3.href, type: `ExternalLink`, target: `_blank` } : { href: e3.href });
1808
+ }, [r2]), l2 = (0, import_react.useCallback)((e3) => Ea(n2, e3), [n2]), u2 = (0, import_react.useCallback)((e3) => t2.appSectionRelativeUrl(tr, e3), [t2]), d2 = (0, import_react.useCallback)((e3) => ai(a2.urlMappings, e3), [a2]), m2 = (0, import_react.useCallback)((e3, t3) => Sa(e3, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), ee2 = (0, import_react.useCallback)((e3, t3) => {
1807
1809
  let r3 = m2(e3, t3);
1808
- return r3 && n2 ? Sa(n2, r3) : null;
1810
+ return r3 && n2 ? wa(n2, r3) : null;
1809
1811
  }, [m2, n2]), h2 = (0, import_react.useCallback)((e3, t3) => {
1810
1812
  let n3 = m2(e3, t3);
1811
1813
  n3 && s2(n3);
1812
- }, [m2, s2]), g2 = (0, import_react.useCallback)(() => u2(H.FORM_PAGE) || void 0, [u2]), _2 = (0, import_react.useCallback)((e3) => Object.values(o2(Xn).pages).some((t3) => t3.appPageId === e3 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e3) || void 0, [t2, o2]);
1813
- return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: ee2, navigateTo: h2, getBookingFormPath: g2, getCartPagePath: (0, import_react.useCallback)(() => _2(er), [_2]), getThankYouPagePath: (0, import_react.useCallback)((e3) => {
1814
- let t3 = _2(tr);
1814
+ }, [m2, s2]), g2 = (0, import_react.useCallback)(() => u2(H.FORM_PAGE) || void 0, [u2]), _2 = (0, import_react.useCallback)((e3) => Object.values(o2(Qn).pages).some((t3) => t3.appPageId === e3 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e3) || void 0, [t2, o2]);
1815
+ return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: ee2, navigateTo: h2, getBookingFormPath: g2, getCartPagePath: (0, import_react.useCallback)(() => _2(nr), [_2]), getThankYouPagePath: (0, import_react.useCallback)((e3) => {
1816
+ let t3 = _2(rr);
1815
1817
  return t3 ? `${t3}/${e3}?origin=bookings` : void 0;
1816
1818
  }, [_2]) };
1817
1819
  };
1818
- var Ea = V(`@wix/site-service-warmup-data`);
1819
- function Da() {
1820
+ var Oa = V(`@wix/site-service-warmup-data`);
1821
+ function ka() {
1820
1822
  try {
1821
1823
  return (0, import_services_manager_react.useGetService)();
1822
1824
  } catch {
1823
1825
  return null;
1824
1826
  }
1825
1827
  }
1826
- function Oa(e2) {
1828
+ function Aa(e2) {
1827
1829
  try {
1828
- return e2 ? e2(Ea) : null;
1830
+ return e2 ? e2(Oa) : null;
1829
1831
  } catch {
1830
1832
  return null;
1831
1833
  }
1832
1834
  }
1833
- function ka() {
1834
- let e2 = Oa(Da()), t2 = typeof window > `u`;
1835
+ function ja() {
1836
+ let e2 = Aa(ka()), t2 = typeof window > `u`;
1835
1837
  return { scope: e2 ?? void 0, get: async (n2) => {
1836
1838
  if (t2 || !e2) return null;
1837
1839
  try {
@@ -1846,61 +1848,61 @@ function ka() {
1846
1848
  }
1847
1849
  } };
1848
1850
  }
1849
- var Aa = `bookings-uou`;
1850
- function ja(e2, t2, n2, r2, i2 = [], a2 = []) {
1851
+ var Ma = `bookings-uou`;
1852
+ function Na(e2, t2, n2, r2, i2 = [], a2 = []) {
1851
1853
  let o2 = i2.length ? `:ids-${encodeURIComponent(JSON.stringify([...i2].sort()))}` : ``, s2 = a2.length ? `:cats-${encodeURIComponent(JSON.stringify([...a2].sort()))}` : ``;
1852
- return `${Aa}:services:${e2 ?? `all`}:${t2 ?? `all`}:page-${n2}:limit-${r2}${o2}${s2}`;
1854
+ return `${Ma}:services:${e2 ?? `all`}:${t2 ?? `all`}:page-${n2}:limit-${r2}${o2}${s2}`;
1853
1855
  }
1854
- function Ma(e2, t2) {
1855
- return `${Aa}:services-variants:ids-${encodeURIComponent(JSON.stringify([...e2].sort()))}:refresh-${t2}`;
1856
+ function Pa(e2, t2) {
1857
+ return `${Ma}:services-variants:ids-${encodeURIComponent(JSON.stringify([...e2].sort()))}:refresh-${t2}`;
1856
1858
  }
1857
- function Na() {
1858
- return `${Aa}:bookings-settings`;
1859
+ function Fa() {
1860
+ return `${Ma}:bookings-settings`;
1859
1861
  }
1860
- var Pa = 5e3;
1861
- var Fa = 100;
1862
- var Ia = `wix-warmup-data`;
1863
- var La = null;
1864
- function Ra(e2) {
1862
+ var Ia = 5e3;
1863
+ var La = 100;
1864
+ var Ra = `wix-warmup-data`;
1865
+ var za = null;
1866
+ function Ba(e2) {
1865
1867
  if (typeof document < `u`) try {
1866
- let t2 = document.getElementById(Ia)?.textContent;
1867
- return t2 ? (La?.text !== t2 && (La = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), La.data[e2] ?? void 0) : void 0;
1868
+ let t2 = document.getElementById(Ra)?.textContent;
1869
+ return t2 ? (za?.text !== t2 && (za = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), za.data[e2] ?? void 0) : void 0;
1868
1870
  } catch {
1869
1871
  return;
1870
1872
  }
1871
1873
  }
1872
- var za = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
1873
- var Ba = za();
1874
- var Va = /* @__PURE__ */ new WeakMap();
1875
- var Ha = /* @__PURE__ */ new WeakMap();
1876
- function Ua(e2) {
1877
- if (!e2) return Ba;
1878
- let t2 = Va.get(e2);
1879
- return t2 || (t2 = za(), Va.set(e2, t2)), t2;
1874
+ var Va = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
1875
+ var Ha = Va();
1876
+ var Ua = /* @__PURE__ */ new WeakMap();
1877
+ var Wa = /* @__PURE__ */ new WeakMap();
1878
+ function Ga(e2) {
1879
+ if (!e2) return Ha;
1880
+ let t2 = Ua.get(e2);
1881
+ return t2 || (t2 = Va(), Ua.set(e2, t2)), t2;
1880
1882
  }
1881
- function Wa({ key: e2, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
1883
+ function Ka({ key: e2, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
1882
1884
  if (e2 === null) return n2();
1883
1885
  if (typeof window > `u`) {
1884
1886
  let r3 = () => n2().then((n3) => (t2.set(e2, n3), n3)), { scope: i3 } = t2;
1885
1887
  if (!i3) return r3();
1886
- let a3 = Ha.get(i3);
1887
- a3 || (a3 = /* @__PURE__ */ new Map(), Ha.set(i3, a3));
1888
+ let a3 = Wa.get(i3);
1889
+ a3 || (a3 = /* @__PURE__ */ new Map(), Wa.set(i3, a3));
1888
1890
  let o3 = a3.get(e2);
1889
1891
  if (o3) return o3;
1890
1892
  let s3 = r3();
1891
1893
  return a3.set(e2, s3), s3.catch(() => a3.delete(e2)), s3;
1892
1894
  }
1893
- let i2 = Ua(t2.scope), a2 = Date.now();
1895
+ let i2 = Ga(t2.scope), a2 = Date.now();
1894
1896
  for (let [e3, t3] of i2.promises) t3.expiresAt <= a2 && i2.promises.delete(e3);
1895
1897
  let o2 = i2.promises.get(e2);
1896
1898
  if (o2 && !r2) return o2.promise;
1897
1899
  r2 && i2.invalidatedWarmup.add(e2);
1898
1900
  let s2 = !i2.invalidatedWarmup.has(e2);
1899
1901
  if (s2) {
1900
- let t3 = Ra(e2);
1902
+ let t3 = Ba(e2);
1901
1903
  if (t3 !== void 0) {
1902
- let n3 = Fn(t3);
1903
- return i2.promises.set(e2, { promise: n3, expiresAt: a2 + Pa }), n3;
1904
+ let n3 = Ln(t3);
1905
+ return i2.promises.set(e2, { promise: n3, expiresAt: a2 + Ia }), n3;
1904
1906
  }
1905
1907
  }
1906
1908
  let c2 = (async () => {
@@ -1910,59 +1912,59 @@ function Wa({ key: e2, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
1910
1912
  }
1911
1913
  return n2();
1912
1914
  })();
1913
- i2.promises.size >= Fa && i2.promises.delete(i2.promises.keys().next().value);
1915
+ i2.promises.size >= La && i2.promises.delete(i2.promises.keys().next().value);
1914
1916
  let l2 = { promise: c2, expiresAt: 1 / 0 };
1915
1917
  return i2.promises.set(e2, l2), c2.then(() => {
1916
- l2.expiresAt = Date.now() + Pa;
1918
+ l2.expiresAt = Date.now() + Ia;
1917
1919
  }, () => {
1918
1920
  i2.promises.get(e2) === l2 && i2.promises.delete(e2);
1919
1921
  }), c2;
1920
1922
  }
1921
- var Ga = 100;
1922
- async function Ka(e2) {
1923
+ var qa = 100;
1924
+ async function Ja(e2) {
1923
1925
  if (e2.length === 0) return {};
1924
1926
  let t2 = [];
1925
- for (let n3 = 0; n3 < e2.length; n3 += Ga) t2.push(e2.slice(n3, n3 + Ga));
1926
- let n2 = await Promise.all(t2.map((e3) => zi().in(`serviceId`, e3).limit(Ga).find())), r2 = {};
1927
+ for (let n3 = 0; n3 < e2.length; n3 += qa) t2.push(e2.slice(n3, n3 + qa));
1928
+ let n2 = await Promise.all(t2.map((e3) => Vi().in(`serviceId`, e3).limit(qa).find())), r2 = {};
1927
1929
  for (let e3 of n2.flatMap((e4) => e4.items ?? [])) e3.serviceId && (r2[e3.serviceId] = e3);
1928
1930
  return r2;
1929
1931
  }
1930
- var qa = V(`@wix/site-service-rendering-context`);
1931
- var Ja = () => {
1932
- let { SSR: e2 } = (0, import_services_manager_react.useService)(qa);
1932
+ var Ya = V(`@wix/site-service-rendering-context`);
1933
+ var Xa = () => {
1934
+ let { SSR: e2 } = (0, import_services_manager_react.useService)(Ya);
1933
1935
  return { isSSR: () => e2 };
1934
1936
  };
1935
- var Ya = V(`@wix/site-service-business-logger`);
1936
- function Xa(e2) {
1937
+ var Za = V(`@wix/site-service-business-logger`);
1938
+ function Qa(e2) {
1937
1939
  return { evid: 1222, src: 16, endpoint: ``, params: e2 };
1938
1940
  }
1939
- function Za(e2) {
1941
+ function $a(e2) {
1940
1942
  return { evid: 32, src: 16, endpoint: ``, params: e2 };
1941
1943
  }
1942
- var Qa = { 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` };
1943
- var $a = H.BOOK_ONLINE;
1944
- var eo = `new_bookings_server`;
1945
- var to = `load more`;
1946
- var no = (e2) => {
1947
- let { reportBi: t2 } = (0, import_services_manager_react.useService)(Ya);
1944
+ var eo = { 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` };
1945
+ var to = H.BOOK_ONLINE;
1946
+ var no = `new_bookings_server`;
1947
+ var ro = `load more`;
1948
+ var io = (e2) => {
1949
+ let { reportBi: t2 } = (0, import_services_manager_react.useService)(Za);
1948
1950
  return (0, import_react.useCallback)((n2) => {
1949
- t2({ widget_name: e2, bookingsPlatform: eo, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
1951
+ t2({ widget_name: e2, bookingsPlatform: no, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
1950
1952
  }, [t2, e2]);
1951
1953
  };
1952
- function ro(e2) {
1954
+ function ao(e2) {
1953
1955
  return { evid: 540, src: 16, endpoint: `wixboost-ugc`, params: e2 };
1954
1956
  }
1955
- var io = V(`seo/seo-service`);
1956
- function ao() {
1957
+ var oo = V(`seo/seo-service`);
1958
+ function so() {
1957
1959
  let e2 = (0, import_services_manager_react.useGetService)();
1958
1960
  try {
1959
- return e2(io);
1961
+ return e2(oo);
1960
1962
  } catch {
1961
1963
  return null;
1962
1964
  }
1963
1965
  }
1964
- function oo() {
1965
- let e2 = ao();
1966
+ function co() {
1967
+ let e2 = so();
1966
1968
  return { resolved: !!e2, send: (t2) => {
1967
1969
  if (!e2) return Promise.resolve(`unavailable`);
1968
1970
  let n2 = (e3) => B(e3, { feature: z.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
@@ -1973,38 +1975,38 @@ function oo() {
1973
1975
  }
1974
1976
  } };
1975
1977
  }
1976
- var so = `SERVICES_COMPONENT`;
1977
- var co = `PAGINATED_COMPONENT`;
1978
- function lo(e2, t2, n2) {
1979
- return { itemType: so, itemData: { services: e2.map((e3) => ({ ...e3, urls: { servicePage: { url: t2(e3) ?? `` } } })), pagination: n2 } };
1978
+ var lo = `SERVICES_COMPONENT`;
1979
+ var uo = `PAGINATED_COMPONENT`;
1980
+ function fo(e2, t2, n2) {
1981
+ return { itemType: lo, itemData: { services: e2.map((e3) => ({ ...e3, urls: { servicePage: { url: t2(e3) ?? `` } } })), pagination: n2 } };
1980
1982
  }
1981
- function uo(e2) {
1982
- return { itemType: co, itemData: { pagination: e2 } };
1983
+ function po(e2) {
1984
+ return { itemType: uo, itemData: { pagination: e2 } };
1983
1985
  }
1984
- var fo = /* @__PURE__ */ new WeakSet();
1985
- function po({ servicesPromise: e2, currentPage: t2, pageQueryParam: n2 }) {
1986
- let { services: r2, totalPages: i2 } = Pn(e2), { resolveAbsoluteUrl: a2 } = Ta(), { send: o2 } = oo();
1986
+ var mo = /* @__PURE__ */ new WeakSet();
1987
+ function ho({ servicesPromise: e2, currentPage: t2, pageQueryParam: n2 }) {
1988
+ let { services: r2, totalPages: i2 } = In(e2), { resolveAbsoluteUrl: a2 } = Da(), { send: o2 } = co();
1987
1989
  return (0, import_react.useState)(() => {
1988
- if (fo.has(e2)) return true;
1989
- fo.add(e2);
1990
+ if (mo.has(e2)) return true;
1991
+ mo.add(e2);
1990
1992
  let s2 = { currentPage: t2, totalPages: i2, queryParam: n2 };
1991
- return o2(lo(r2, (e3) => a2(`servicePage`, { slug: e3.mainSlug?.name ?? null, serviceId: e3._id ?? null }), s2)), i2 > 1 && o2(uo(s2)), true;
1993
+ return o2(fo(r2, (e3) => a2(`servicePage`, { slug: e3.mainSlug?.name ?? null, serviceId: e3._id ?? null }), s2)), i2 > 1 && o2(po(s2)), true;
1992
1994
  }), null;
1993
1995
  }
1994
- function mo(e2) {
1995
- return Ft(Object.assign(e2, { 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` }] } }));
1996
- }
1997
- var ho = `@wix/auto_sdk_calendar_events`;
1998
1996
  function go(e2) {
1997
+ return F(Object.assign(e2, { 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` }] } }));
1998
+ }
1999
+ var _o = `@wix/auto_sdk_calendar_events`;
2000
+ function vo(e2) {
1999
2001
  function t2({ host: t3 }) {
2000
- return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: ho, migrationOptions: { optInTransformResponse: true }, url: mo({ protoPath: `/v3/events/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => N(e3, [{ 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` }] }]) };
2002
+ return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: _o, migrationOptions: { optInTransformResponse: true }, url: go({ protoPath: `/v3/events/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => N(e3, [{ 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` }] }]) };
2001
2003
  }
2002
2004
  return t2;
2003
2005
  }
2004
- function _o(e2) {
2006
+ function yo(e2) {
2005
2007
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
2006
- return pi({ func: async (r2) => {
2007
- let i2 = go({ ...r2, ...e2 ?? {} });
2008
+ return hi({ func: async (r2) => {
2009
+ let i2 = vo({ ...r2, ...e2 ?? {} });
2008
2010
  n2?.onSiteCall?.();
2009
2011
  try {
2010
2012
  let e3 = await t2.request(i2);
@@ -2022,8 +2024,8 @@ function _o(e2) {
2022
2024
  throw P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2023
2025
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2024
2026
  }
2025
- async function vo(e2, t2) {
2026
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = go(A({ query: e2, ...t2 }));
2027
+ async function bo(e2, t2) {
2028
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = vo(A({ query: e2, ...t2 }));
2027
2029
  r2?.onSiteCall?.();
2028
2030
  try {
2029
2031
  let e3 = await n2.request(i2);
@@ -2033,154 +2035,154 @@ async function vo(e2, t2) {
2033
2035
  throw r2?.onError?.(e3), t3;
2034
2036
  }
2035
2037
  }
2036
- ({ ...vi() });
2037
- function yo(e2) {
2038
- return (t2) => _o(t2, { httpClient: e2 });
2038
+ ({ ...bi() });
2039
+ function xo(e2) {
2040
+ return (t2) => yo(t2, { httpClient: e2 });
2039
2041
  }
2040
- function bo(e2) {
2041
- return (t2, n2) => vo(t2, n2, { httpClient: e2 });
2042
+ function So(e2) {
2043
+ return (t2, n2) => bo(t2, n2, { httpClient: e2 });
2042
2044
  }
2043
- var xo = g(`wix.calendar.v3.event_cancelled`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2044
- var So = g(`wix.calendar.v3.event_created`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2045
- var Co = g(`wix.calendar.v3.event_recurring_split`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2046
- var wo = g(`wix.calendar.v3.event_updated`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2047
- function To(e2) {
2048
- let t2 = Oi({ builderQueryFunction: (t3) => yo(e2)(t3), typedQueryFunction: (t3, n3) => bo(e2)(t3, n3), hasOptionsParameter: true });
2045
+ var Co = g(`wix.calendar.v3.event_cancelled`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2046
+ var wo = g(`wix.calendar.v3.event_created`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2047
+ var To = g(`wix.calendar.v3.event_recurring_split`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2048
+ var Eo = g(`wix.calendar.v3.event_updated`, true, (e2) => j(N(e2, [{ 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` }] }])))();
2049
+ function Do(e2) {
2050
+ let t2 = Ai({ builderQueryFunction: (t3) => xo(e2)(t3), typedQueryFunction: (t3, n3) => So(e2)(t3, n3), hasOptionsParameter: true });
2049
2051
  function n2(e3, n3) {
2050
2052
  return t2(...arguments);
2051
2053
  }
2052
2054
  return n2;
2053
2055
  }
2054
- var Eo = F(To);
2055
- I(xo), I(So), I(Co), I(wo);
2056
- var Do = (e2) => {
2056
+ var Oo = Pt(Do);
2057
+ I(Co), I(wo), I(To), I(Eo);
2058
+ var ko = (e2) => {
2057
2059
  let t2 = (e3) => e3 < 10 ? `0${e3}` : `${e3}`;
2058
2060
  return `${e2.getFullYear()}-${t2(e2.getMonth() + 1)}-${t2(e2.getDate())}`;
2059
2061
  };
2060
- var Oo = (e2) => `${Do(e2)}T00:00:00`;
2061
- var ko = 1e3;
2062
- async function Ao(e2, t2) {
2062
+ var Ao = (e2) => `${ko(e2)}T00:00:00`;
2063
+ var jo = 1e3;
2064
+ async function Mo(e2, t2) {
2063
2065
  let n2 = [], r2;
2064
2066
  do {
2065
- let i2 = await Eo({ filter: e2, cursorPaging: { limit: ko, ...r2 ? { cursor: r2 } : {} } }, t2);
2067
+ let i2 = await Oo({ filter: e2, cursorPaging: { limit: jo, ...r2 ? { cursor: r2 } : {} } }, t2);
2066
2068
  n2.push(...i2.events ?? []), r2 = i2.pagingMetadata?.hasNext ? i2.pagingMetadata.cursors?.next ?? void 0 : void 0;
2067
2069
  } while (r2);
2068
2070
  return n2;
2069
2071
  }
2070
- async function jo(e2, t2) {
2071
- return e2.length === 0 ? [] : Ao({ appId: $n, scheduleId: { $in: e2 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Oo(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
2072
+ async function No(e2, t2) {
2073
+ return e2.length === 0 ? [] : Mo({ appId: tr, scheduleId: { $in: e2 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Ao(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
2072
2074
  }
2073
- function Mo(e2) {
2075
+ function Po(e2) {
2074
2076
  let t2 = {};
2075
2077
  for (let n2 of e2) n2.scheduleId && (t2[n2.scheduleId] ??= []).push(n2);
2076
2078
  return t2;
2077
2079
  }
2078
- var No = { displayTimeZonePolicy: { basedOn: la.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
2079
- async function Po() {
2080
+ var Fo = { displayTimeZonePolicy: { basedOn: da.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
2081
+ async function Io() {
2080
2082
  try {
2081
- let e2 = await fa();
2082
- return { displayTimeZonePolicy: { basedOn: e2.displayTimeZone?.basedOn ?? la.BUSINESS_TIME_ZONE, customerCanChange: e2.displayTimeZone?.customerCanChange ?? false }, multiServiceAppointmentsEnabled: e2.multiServiceAppointments?.enabled ?? false };
2083
+ let e2 = await ma();
2084
+ return { displayTimeZonePolicy: { basedOn: e2.displayTimeZone?.basedOn ?? da.BUSINESS_TIME_ZONE, customerCanChange: e2.displayTimeZone?.customerCanChange ?? false }, multiServiceAppointmentsEnabled: e2.multiServiceAppointments?.enabled ?? false };
2083
2085
  } catch (e2) {
2084
- return B(e2, { feature: z.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), No;
2086
+ return B(e2, { feature: z.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), Fo;
2085
2087
  }
2086
2088
  }
2087
2089
  (0, import_react.createContext)(null);
2088
- function Fo(e2) {
2089
- return e2.basedOn === la.CUSTOMER_TIME_ZONE ? Intl.DateTimeFormat().resolvedOptions().timeZone : void 0;
2090
+ function Lo(e2) {
2091
+ return e2.basedOn === da.CUSTOMER_TIME_ZONE ? Intl.DateTimeFormat().resolvedOptions().timeZone : void 0;
2090
2092
  }
2091
- function Io({ categoryId: e2, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
2093
+ function Ro({ categoryId: e2, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
2092
2094
  let o2 = { serviceItems: n2, bookingsSettings: null, hasMore: false, isLoading: r2, hasError: i2, categoryId: e2, locationId: t2, loadMore: async () => {
2093
2095
  } };
2094
- return (0, import_jsx_runtime.jsx)(Xo.Provider, { value: o2, children: a2 });
2096
+ return (0, import_jsx_runtime.jsx)(Qo.Provider, { value: o2, children: a2 });
2095
2097
  }
2096
- function Lo({ categoryId: e2, locationId: t2, children: n2 }) {
2097
- return (0, import_jsx_runtime.jsx)(Io, { categoryId: e2, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
2098
+ function zo({ categoryId: e2, locationId: t2, children: n2 }) {
2099
+ return (0, import_jsx_runtime.jsx)(Ro, { categoryId: e2, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
2098
2100
  }
2099
- function Ro({ categoryId: e2, locationId: t2, children: n2 }) {
2100
- return (0, import_jsx_runtime.jsx)(Io, { categoryId: e2, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
2101
+ function Bo({ categoryId: e2, locationId: t2, children: n2 }) {
2102
+ return (0, import_jsx_runtime.jsx)(Ro, { categoryId: e2, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
2101
2103
  }
2102
- function zo(e2) {
2104
+ function Vo(e2) {
2103
2105
  let t2 = e2?.$in ?? (e2?.$eq == null ? [] : [e2.$eq]);
2104
2106
  return [...new Set(t2.filter((e3) => typeof e3 == `string` && e3 !== ``))].sort().join(`,`);
2105
2107
  }
2106
2108
  function $(e2) {
2107
2109
  return e2 ? e2.split(`,`) : null;
2108
2110
  }
2109
- var Bo = 20;
2110
- var Vo = 100;
2111
- var Ho = [];
2112
- var Uo = [];
2113
- var Wo = {};
2114
- var Go = {};
2115
- function Ko(e2, t2) {
2111
+ var Ho = 20;
2112
+ var Uo = 100;
2113
+ var Wo = [];
2114
+ var Go = [];
2115
+ var Ko = {};
2116
+ var qo = {};
2117
+ function Jo(e2, t2) {
2116
2118
  return Object.keys(t2).length === 0 ? e2 : { ...e2, ...t2 };
2117
2119
  }
2118
- function qo(e2, t2, n2, r2) {
2119
- let i2 = [...new Set(e2.filter((e3) => !pa(e3.type)).map((e3) => e3.schedule?._id).filter((e3) => !!e3))], a2 = e2.filter(ma).map((e3) => e3._id).filter((e3) => !!e3);
2120
- return Promise.all([i2.length === 0 ? Wo : jo(i2, t2).then(Mo).catch(() => Wo), a2.length === 0 ? Go : Wa({ key: Ma(a2, n2), warmupData: r2, fetchData: () => Ka(a2) }).catch((e3) => (B(e3, { feature: z.services, action: `fetch-service-variants`, level: `warning` }), null))]);
2120
+ function Yo(e2, t2, n2, r2) {
2121
+ let i2 = [...new Set(e2.filter((e3) => !ha(e3.type)).map((e3) => e3.schedule?._id).filter((e3) => !!e3))], a2 = e2.filter(ga).map((e3) => e3._id).filter((e3) => !!e3);
2122
+ return Promise.all([i2.length === 0 ? Ko : No(i2, t2).then(Po).catch(() => Ko), a2.length === 0 ? qo : Ka({ key: Pa(a2, n2), warmupData: r2, fetchData: () => Ja(a2) }).catch((e3) => (B(e3, { feature: z.services, action: `fetch-service-variants`, level: `warning` }), null))]);
2121
2123
  }
2122
- var Jo = { services: [], hasMore: false, totalPages: 1, hasError: true };
2123
- function Yo(e2) {
2124
+ var Xo = { services: [], hasMore: false, totalPages: 1, hasError: true };
2125
+ function Zo(e2) {
2124
2126
  let t2 = Math.floor(Number(e2));
2125
2127
  return !e2 || !Number.isSafeInteger(t2) || t2 < 1 ? 1 : t2;
2126
2128
  }
2127
- var Xo = (0, import_react.createContext)(null);
2128
- var Zo = `useServicesContext must be used within ServicesContextProvider`;
2129
- function Qo() {
2130
- let e2 = (0, import_react.useContext)(Xo);
2131
- if (!e2) throw Error(Zo);
2129
+ var Qo = (0, import_react.createContext)(null);
2130
+ var $o = `useServicesContext must be used within ServicesContextProvider`;
2131
+ function es() {
2132
+ let e2 = (0, import_react.useContext)(Qo);
2133
+ if (!e2) throw Error($o);
2132
2134
  return e2;
2133
2135
  }
2134
- function $o(e2, t2) {
2136
+ function ts(e2, t2) {
2135
2137
  return { firstPage: e2, services: e2.services, hasMore: e2.hasMore, isLoadingMore: false, cursor: { offset: (t2.paginationIndex - 1) * t2.safeLimit + e2.services.length, hasMore: e2.hasMore, pending: null, dropped: false } };
2136
2138
  }
2137
- function es({ query: e2, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
2138
- let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: ee2, categoryIdsKey: h2, refreshSignal: g2 } = e2, _2 = Pn(f2), v2 = Pn(n2), [y2, b2] = (0, import_react.useState)(() => $o(_2, e2)), [te2, x2] = (0, import_react.useState)({}), [S2, C2] = (0, import_react.useState)({});
2139
- y2.firstPage !== _2 && (b2($o(_2, e2)), x2({}), C2({}));
2139
+ function ns({ query: e2, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
2140
+ let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: ee2, categoryIdsKey: h2, refreshSignal: g2 } = e2, _2 = In(f2), v2 = In(n2), [y2, b2] = (0, import_react.useState)(() => ts(_2, e2)), [te2, x2] = (0, import_react.useState)({}), [S2, C2] = (0, import_react.useState)({});
2141
+ y2.firstPage !== _2 && (b2(ts(_2, e2)), x2({}), C2({}));
2140
2142
  let { cursor: w2 } = y2;
2141
2143
  (0, import_react.useEffect)(() => (w2.dropped = false, () => {
2142
2144
  w2.dropped = true;
2143
2145
  }), [w2]);
2144
- let T2 = Fo(v2.displayTimeZonePolicy), E2 = no(Qa.SERVICES), { getParsedUrl: ne2 } = Jn(), re2 = (0, import_react.useRef)(null), ie2 = ka(), D2 = (0, import_react.useRef)(ie2);
2146
+ let T2 = Lo(v2.displayTimeZonePolicy), E2 = io(eo.SERVICES), { getParsedUrl: ne2 } = Xn(), re2 = (0, import_react.useRef)(null), ie2 = ja(), D2 = (0, import_react.useRef)(ie2);
2145
2147
  D2.current = ie2, (0, import_react.useEffect)(() => {
2146
- re2.current !== _2 && (re2.current = _2, E2(Za({ referralInfo: ne2().searchParams.get(Q.referral) ?? void 0 })), E2(ro({ numOfServices: _2.services.length })));
2148
+ re2.current !== _2 && (re2.current = _2, E2($a({ referralInfo: ne2().searchParams.get(Q.referral) ?? void 0 })), E2(ao({ numOfServices: _2.services.length })));
2147
2149
  }, [E2, ne2, _2]), (0, import_react.useEffect)(() => {
2148
2150
  let e3 = false;
2149
- return qo(_2.services, T2, g2, D2.current).then(([t3, n3]) => {
2151
+ return Yo(_2.services, T2, g2, D2.current).then(([t3, n3]) => {
2150
2152
  e3 || (0, import_react.startTransition)(() => {
2151
- x2((e4) => Ko(e4, t3)), n3 && C2((e4) => Ko(e4, n3));
2153
+ x2((e4) => Jo(e4, t3)), n3 && C2((e4) => Jo(e4, n3));
2152
2154
  });
2153
2155
  }), () => {
2154
2156
  e3 = true;
2155
2157
  };
2156
2158
  }, [_2.services, T2, g2]);
2157
2159
  let ae2 = (0, import_react.useCallback)(async () => {
2158
- if (E2(Xa({ pageName: $a, buttonName: to })), w2.pending) return w2.pending;
2160
+ if (E2(Qa({ pageName: to, buttonName: ro })), w2.pending) return w2.pending;
2159
2161
  if (!w2.hasMore) return;
2160
2162
  let t3 = (e3) => b2((t4) => t4.cursor === w2 ? e3(t4) : t4);
2161
- return t3((e3) => ({ ...e3, isLoadingMore: true })), w2.pending = _a({ limit: p2, offset: w2.offset, categoryId: e2.categoryId, locationId: e2.locationId, serviceIds: $(ee2), categoryIds: $(h2) }).then((e3) => {
2162
- w2.dropped || (w2.hasMore = e3.hasMore, w2.offset += e3.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e3.services], hasMore: e3.hasMore })), qo(e3.services, T2, g2, D2.current).then(([e4, t4]) => {
2163
+ return t3((e3) => ({ ...e3, isLoadingMore: true })), w2.pending = ya({ limit: p2, offset: w2.offset, categoryId: e2.categoryId, locationId: e2.locationId, serviceIds: $(ee2), categoryIds: $(h2) }).then((e3) => {
2164
+ w2.dropped || (w2.hasMore = e3.hasMore, w2.offset += e3.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e3.services], hasMore: e3.hasMore })), Yo(e3.services, T2, g2, D2.current).then(([e4, t4]) => {
2163
2165
  w2.dropped || (0, import_react.startTransition)(() => {
2164
- x2((t5) => Ko(t5, e4)), t4 && C2((e5) => Ko(e5, t4));
2166
+ x2((t5) => Jo(t5, e4)), t4 && C2((e5) => Jo(e5, t4));
2165
2167
  });
2166
2168
  }));
2167
2169
  }).catch(() => {
2168
2170
  }).finally(() => {
2169
2171
  w2.pending = null, t3((e3) => ({ ...e3, isLoadingMore: false }));
2170
2172
  }), w2.pending;
2171
- }, [w2, p2, e2.categoryId, e2.locationId, ee2, h2, E2, T2, g2]), { resolvePath: O2, toHref: oe2 } = Ta(), se2 = (0, import_react.useMemo)(() => y2.services.map((e3) => {
2173
+ }, [w2, p2, e2.categoryId, e2.locationId, ee2, h2, E2, T2, g2]), { resolvePath: O2, toHref: oe2 } = Da(), se2 = (0, import_react.useMemo)(() => y2.services.map((e3) => {
2172
2174
  let t3 = O2(`servicePage`, { slug: e3.mainSlug?.name ?? null, serviceId: e3._id ?? null });
2173
- return { serviceId: e3._id ?? null, refreshSignal: g2, service: e3, masterEvents: te2[e3.schedule?._id ?? ``] ?? Ho, serviceOptionsAndVariants: S2[e3._id ?? ``] ?? null, bookingsSettings: v2, servicePageLink: t3 ? { href: oe2(t3), target: `_self` } : null };
2174
- }), [O2, oe2, y2.services, g2, te2, S2, v2]), ce2 = (0, import_react.useMemo)(() => ({ serviceItems: t2 ? Uo : se2, bookingsSettings: v2, hasMore: !t2 && y2.hasMore, isLoading: t2 || y2.isLoadingMore, hasError: !t2 && _2.hasError, categoryId: a2, locationId: o2, loadMore: ae2 }), [t2, se2, v2, y2.hasMore, y2.isLoadingMore, _2.hasError, a2, o2, ae2]);
2175
- return (0, import_jsx_runtime.jsx)(Xo.Provider, { value: ce2, children: d2 });
2175
+ return { serviceId: e3._id ?? null, refreshSignal: g2, service: e3, masterEvents: te2[e3.schedule?._id ?? ``] ?? Wo, serviceOptionsAndVariants: S2[e3._id ?? ``] ?? null, bookingsSettings: v2, servicePageLink: t3 ? { href: oe2(t3), target: `_self` } : null };
2176
+ }), [O2, oe2, y2.services, g2, te2, S2, v2]), ce2 = (0, import_react.useMemo)(() => ({ serviceItems: t2 ? Go : se2, bookingsSettings: v2, hasMore: !t2 && y2.hasMore, isLoading: t2 || y2.isLoadingMore, hasError: !t2 && _2.hasError, categoryId: a2, locationId: o2, loadMore: ae2 }), [t2, se2, v2, y2.hasMore, y2.isLoadingMore, _2.hasError, a2, o2, ae2]);
2177
+ return (0, import_jsx_runtime.jsx)(Qo.Provider, { value: ce2, children: d2 });
2176
2178
  }
2177
- var ts = (e2) => ({ ...e2, hasError: false });
2178
- var ns = () => ({ ...Jo });
2179
- function rs({ categoryData: e2, limit: n2 = Bo, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
2180
- let l2 = Math.min(n2 ?? Bo, Vo), { searchParams: d2 } = Jn(), f2 = e2?.categoryId, p2 = !!f2, h2 = f2 || d2.get(Q.category), g2 = d2.get(Q.location), _2 = p2 ? 1 : Yo(d2.get(Q.page)), v2 = zo(r2?.serviceId), y2 = zo(i2?.categoryId), b2 = ka(), { isSSR: te2 } = Ja(), [x2] = (0, import_react.useState)(() => te2()), S2 = (0, import_react.useMemo)(() => ({ firstPagePromise: Ln(Wa({ key: ja(h2, g2, _2, l2, $(v2) ?? [], $(y2) ?? []), refresh: a2 !== 0, warmupData: b2, fetchData: () => Mn(`services-context-load`, { feature: z.services }, _a({ limit: l2, offset: (_2 - 1) * l2, categoryId: h2, locationId: g2, serviceIds: $(v2), categoryIds: $(y2) })) }), ts, ns), safeLimit: l2, paginationIndex: _2, categoryId: h2, locationId: g2, serviceIdsKey: v2, categoryIdsKey: y2, refreshSignal: a2 }), [l2, h2, g2, _2, a2, v2, y2]), [C2] = (0, import_react.useState)(() => Wa({ key: Na(), warmupData: b2, fetchData: Po })), w2 = (0, import_react.useDeferredValue)(S2);
2181
- return (0, import_jsx_runtime.jsx)(Nn, { fallback: (0, import_jsx_runtime.jsx)(Ro, { categoryId: h2, locationId: g2, children: s2 }), feature: z.services, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(Lo, { categoryId: h2, locationId: g2, children: s2 }), children: [x2 && !p2 && (0, import_jsx_runtime.jsx)(po, { servicesPromise: S2.firstPagePromise, currentPage: _2, pageQueryParam: Q.page }), (0, import_jsx_runtime.jsx)(es, { query: w2, isQueryPending: w2 !== S2, settingsPromise: C2, categoryId: h2, locationId: g2, children: s2 })] }) });
2179
+ var rs = (e2) => ({ ...e2, hasError: false });
2180
+ var is = () => ({ ...Xo });
2181
+ function as({ categoryData: e2, limit: n2 = Ho, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
2182
+ let l2 = Math.min(n2 ?? Ho, Uo), { searchParams: d2 } = Xn(), f2 = e2?.categoryId, p2 = !!f2, h2 = f2 || d2.get(Q.category), g2 = d2.get(Q.location), _2 = p2 ? 1 : Zo(d2.get(Q.page)), v2 = Vo(r2?.serviceId), y2 = Vo(i2?.categoryId), b2 = ja(), { isSSR: te2 } = Xa(), [x2] = (0, import_react.useState)(() => te2()), S2 = (0, import_react.useMemo)(() => ({ firstPagePromise: zn(Ka({ key: Na(h2, g2, _2, l2, $(v2) ?? [], $(y2) ?? []), refresh: a2 !== 0, warmupData: b2, fetchData: () => Pn(`services-context-load`, { feature: z.services }, ya({ limit: l2, offset: (_2 - 1) * l2, categoryId: h2, locationId: g2, serviceIds: $(v2), categoryIds: $(y2) })) }), rs, is), safeLimit: l2, paginationIndex: _2, categoryId: h2, locationId: g2, serviceIdsKey: v2, categoryIdsKey: y2, refreshSignal: a2 }), [l2, h2, g2, _2, a2, v2, y2]), [C2] = (0, import_react.useState)(() => Ka({ key: Fa(), warmupData: b2, fetchData: Io })), w2 = (0, import_react.useDeferredValue)(S2);
2183
+ return (0, import_jsx_runtime.jsx)(Fn, { fallback: (0, import_jsx_runtime.jsx)(Bo, { categoryId: h2, locationId: g2, children: s2 }), feature: z.services, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(zo, { categoryId: h2, locationId: g2, children: s2 }), children: [x2 && !p2 && (0, import_jsx_runtime.jsx)(ho, { servicesPromise: S2.firstPagePromise, currentPage: _2, pageQueryParam: Q.page }), (0, import_jsx_runtime.jsx)(ns, { query: w2, isQueryPending: w2 !== S2, settingsPromise: C2, categoryId: h2, locationId: g2, children: s2 })] }) });
2182
2184
  }
2183
- var is = xn;
2185
+ var os = Cn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
2184
2186
  // Annotate the CommonJS export names for ESM import in node:
2185
2187
  0 && (module.exports = {
2186
2188
  SERVICES_CONTEXT_MISSING_PROVIDER_ERROR,