@wix/blog 1.0.702 → 1.0.703

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 (48) hide show
  1. package/_sdk-exports/context-blog-feed/runtime.js +2 -2
  2. package/_sdk-exports/context-post/runtime.d.ts +195 -115
  3. package/_sdk-exports/context-post/runtime.js +2 -5
  4. package/_sdk-exports/context-post-by-id/runtime.js +3 -3
  5. package/_sdk-exports/context-post-by-slug/runtime.d.ts +18 -0
  6. package/_sdk-exports/context-post-by-slug/runtime.js +5 -0
  7. package/_sdk-exports/context-post-item/runtime.d.ts +2 -3
  8. package/_sdk-exports/context-post-item/runtime.js +4 -4
  9. package/_sdk-exports/context-related-posts/runtime.js +2 -2
  10. package/build/cjs/context-blog-feed.js +1 -1
  11. package/build/cjs/context-blog-feed.js.map +1 -1
  12. package/build/cjs/context-post-by-id.js +534 -496
  13. package/build/cjs/context-post-by-id.js.map +1 -1
  14. package/build/cjs/context-post-by-slug.d.ts +18 -0
  15. package/build/cjs/context-post-by-slug.js +5455 -0
  16. package/build/cjs/context-post-by-slug.js.map +1 -0
  17. package/build/cjs/context-post-item.d.ts +2 -3
  18. package/build/cjs/context-post-item.js +801 -787
  19. package/build/cjs/context-post-item.js.map +1 -1
  20. package/build/cjs/context-post.d.ts +195 -115
  21. package/build/cjs/context-post.js +342 -5175
  22. package/build/cjs/context-post.js.map +1 -1
  23. package/build/cjs/context-related-posts.js +1 -1
  24. package/build/cjs/context-related-posts.js.map +1 -1
  25. package/build/es/context-blog-feed.mjs +1 -1
  26. package/build/es/context-blog-feed.mjs.map +1 -1
  27. package/build/es/context-post-by-id.mjs +534 -496
  28. package/build/es/context-post-by-id.mjs.map +1 -1
  29. package/build/es/context-post-by-slug.d.mts +18 -0
  30. package/build/es/context-post-by-slug.mjs +5415 -0
  31. package/build/es/context-post-by-slug.mjs.map +1 -0
  32. package/build/es/context-post-item.d.mts +2 -3
  33. package/build/es/context-post-item.mjs +802 -798
  34. package/build/es/context-post-item.mjs.map +1 -1
  35. package/build/es/context-post.d.mts +195 -115
  36. package/build/es/context-post.mjs +341 -5173
  37. package/build/es/context-post.mjs.map +1 -1
  38. package/build/es/context-related-posts.mjs +1 -1
  39. package/build/es/context-related-posts.mjs.map +1 -1
  40. package/build/internal/cjs/context-post-by-slug.d.ts +18 -0
  41. package/build/internal/cjs/context-post-item.d.ts +2 -3
  42. package/build/internal/cjs/context-post.d.ts +195 -115
  43. package/build/internal/es/context-post-by-slug.d.mts +18 -0
  44. package/build/internal/es/context-post-item.d.mts +2 -3
  45. package/build/internal/es/context-post.d.mts +195 -115
  46. package/context/post-by-slug/package.json +3 -0
  47. package/package.json +14 -2
  48. package/post-by-slug-context-provider/package.json +3 -0
@@ -30,9 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // context-post-by-id.ts
31
31
  var context_post_by_id_exports = {};
32
32
  __export(context_post_by_id_exports, {
33
- PostByIdProvider: () => rd,
34
- default: () => rd,
35
- injectAccessTokenGetter: () => id,
33
+ PostByIdProvider: () => pd,
34
+ default: () => pd,
35
+ injectAccessTokenGetter: () => md,
36
36
  usePostByIdContext: () => import_post_context_provider.usePostContext
37
37
  });
38
38
  module.exports = __toCommonJS(context_post_by_id_exports);
@@ -826,21 +826,21 @@ function ln(e6, t2) {
826
826
  function un(e6) {
827
827
  return isFinite(e6) ? e6 : e6.toString();
828
828
  }
829
- function F(e6) {
829
+ function dn(e6) {
830
830
  return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
831
831
  }
832
- function dn(e6) {
832
+ function fn(e6) {
833
833
  return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
834
834
  }
835
- var fn = `modulepreload`;
836
- var pn = function(e6, t2) {
835
+ var pn = `modulepreload`;
836
+ var mn = function(e6, t2) {
837
837
  return new URL(e6, t2).href;
838
838
  };
839
- var mn = {};
840
- var hn = function(e6) {
839
+ var hn = {};
840
+ var gn = function(e6) {
841
841
  return e6.pathname.endsWith(`.css`);
842
842
  };
843
- var gn = function(e6, t2, n2) {
843
+ var _n = function(e6, t2, n2) {
844
844
  if (t2 in e6) return e6[t2];
845
845
  let r2 = n2();
846
846
  if (!r2) {
@@ -854,7 +854,7 @@ var gn = function(e6, t2, n2) {
854
854
  });
855
855
  return e6[t2] = i2, i2;
856
856
  };
857
- var _n = function(e6, t2, n2) {
857
+ var vn = function(e6, t2, n2) {
858
858
  let r2 = Promise.resolve();
859
859
  if (t2 && t2.length > 0) {
860
860
  let o3 = function(e8) {
@@ -865,9 +865,9 @@ var _n = function(e6, t2, n2) {
865
865
  var o2 = o3, s2 = s3;
866
866
  let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
867
867
  r2 = o3(t2.map((t3) => {
868
- t3 = pn(t3, n2);
869
- let r3 = s3(t3), i4 = hn(r3);
870
- return gn(mn, r3.href, () => {
868
+ t3 = mn(t3, n2);
869
+ let r3 = s3(t3), i4 = gn(r3);
870
+ return _n(hn, r3.href, () => {
871
871
  if (e7 === void 0) {
872
872
  e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
873
873
  let t5 = document.getElementsByTagName(`link`);
@@ -878,7 +878,7 @@ var _n = function(e6, t2, n2) {
878
878
  }
879
879
  if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
880
880
  let t4 = document.createElement(`link`);
881
- if (t4.rel = i4 ? `stylesheet` : fn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
881
+ if (t4.rel = i4 ? `stylesheet` : pn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
882
882
  t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
883
883
  });
884
884
  });
@@ -893,30 +893,30 @@ var _n = function(e6, t2, n2) {
893
893
  return e6().catch(i2);
894
894
  });
895
895
  };
896
- var vn = `x-wix-linguist`;
897
- var yn = `00000000-0000-0000-0000-000000000000`;
898
- var bn = `false`;
899
- var xn = () => {
900
- let e6 = wn(`language`), t2 = wn(`locale`);
901
- if (e6) return { [vn]: [e6, t2 || e6, bn, yn].join(`|`) };
896
+ var yn = `x-wix-linguist`;
897
+ var bn = `00000000-0000-0000-0000-000000000000`;
898
+ var xn = `false`;
899
+ var Sn = () => {
900
+ let e6 = Tn(`language`), t2 = Tn(`locale`);
901
+ if (e6) return { [yn]: [e6, t2 || e6, xn, bn].join(`|`) };
902
902
  };
903
- function Sn() {
903
+ function Cn() {
904
904
  let e6 = null, t2 = null;
905
905
  return { promise: new Promise((n2, r2) => {
906
906
  e6 = n2, t2 = r2;
907
907
  }), resolve: e6, reject: t2 };
908
908
  }
909
- var Cn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
910
- var wn = (e6) => Cn()?.[e6];
911
- var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
912
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = Dn();
913
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: wn(`language`), locale: wn(`locale`), get passThroughHeaders() {
914
- return xn();
909
+ var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
910
+ var Tn = (e6) => wn()?.[e6];
911
+ var En = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
912
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = On();
913
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
914
+ return Sn();
915
915
  } } };
916
916
  }, auth: (e7) => {
917
917
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
918
- !e7 && En() && (e7 = t2?.getAccessTokenFunction?.());
919
- let n2 = false, { resolve: r2, promise: i2 } = Sn();
918
+ !e7 && Dn() && (e7 = t2?.getAccessTokenFunction?.());
919
+ let n2 = false, { resolve: r2, promise: i2 } = Cn();
920
920
  return { getAuthHeaders: async () => {
921
921
  if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
922
922
  return { headers: { Authorization: await e7() } };
@@ -924,37 +924,37 @@ var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
924
924
  r2(e8);
925
925
  }) };
926
926
  } });
927
- function En() {
927
+ function Dn() {
928
928
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
929
929
  }
930
- function Dn() {
930
+ function On() {
931
931
  let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
932
932
  if (!e6) return;
933
933
  let t2 = new URL(e6);
934
934
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
935
935
  }
936
- var On = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
936
+ var kn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
937
937
  if (!e6) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
938
938
  return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
939
939
  }, getAccessToken: () => {
940
940
  throw Error(`Not implemented`);
941
941
  }, observeState: () => ({ disconnect: () => {
942
942
  } }) });
943
- var kn = Tn({ createHost: function(e6) {
943
+ var An = En({ createHost: function(e6) {
944
944
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
945
945
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
946
- return { channel: On({ clientSdk: t2, applicationId: n2 }), close: () => {
946
+ return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
947
947
  } };
948
948
  } });
949
- var An = (e6, t2) => {
950
- let n2 = kn.host({ applicationId: e6, componentId: t2 }), r2 = kn.auth();
949
+ var jn = (e6, t2) => {
950
+ let n2 = An.host({ applicationId: e6, componentId: t2 }), r2 = An.auth();
951
951
  return Je({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
952
952
  };
953
- var jn = (e6) => An(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
954
- function Mn() {
953
+ var Mn = (e6) => jn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
954
+ function Nn() {
955
955
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
956
956
  if (e6) return { initWixModules(t3, n3) {
957
- return Nn(() => e6(t3, n3));
957
+ return Pn(() => e6(t3, n3));
958
958
  }, fetchWithAuth() {
959
959
  throw Error(`fetchWithAuth is not available in this context`);
960
960
  }, graphql() {
@@ -964,10 +964,10 @@ function Mn() {
964
964
  if (t2 || n2) return { initWixModules(e7, r2) {
965
965
  if (r2) {
966
966
  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`);
967
- return Nn(() => n2.use(e7));
967
+ return Pn(() => n2.use(e7));
968
968
  }
969
969
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
970
- return Nn(() => t2.use(e7));
970
+ return Pn(() => t2.use(e7));
971
971
  }, fetchWithAuth: (e7, n3) => {
972
972
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
973
973
  return t2.fetchWithAuth(e7, n3);
@@ -979,7 +979,7 @@ function Mn() {
979
979
  return t2.graphql(e7, n3, r2);
980
980
  } };
981
981
  }
982
- function Nn(e6) {
982
+ function Pn(e6) {
983
983
  let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
984
984
  globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
985
985
  try {
@@ -988,17 +988,17 @@ function Nn(e6) {
988
988
  globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
989
989
  }
990
990
  }
991
- function Pn(e6, t2) {
991
+ function Fn(e6, t2) {
992
992
  return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
993
- let r2 = Mn();
993
+ let r2 = Nn();
994
994
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
995
995
  return r2.initWixModules(e6)[t3].apply(void 0, n2);
996
996
  }])) };
997
997
  }
998
- function Fn(e6) {
999
- return Pn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
998
+ function In(e6) {
999
+ return Fn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
1000
1000
  }
1001
- var In = class {
1001
+ var Ln = class {
1002
1002
  constructor(e6) {
1003
1003
  this.message = e6, this.captureException = () => {
1004
1004
  console.error(this.message);
@@ -1013,13 +1013,13 @@ var In = class {
1013
1013
  };
1014
1014
  }
1015
1015
  };
1016
- var Ln = (e6) => new In(e6);
1017
- var Rn = Fn({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Ln(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
1018
- function zn(e6) {
1016
+ var Rn = (e6) => new Ln(e6);
1017
+ var zn = In({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Rn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
1018
+ function Bn(e6) {
1019
1019
  let t2 = Promise.resolve(e6);
1020
1020
  return t2.status = `fulfilled`, t2.value = e6, t2;
1021
1021
  }
1022
- function Bn(e6) {
1022
+ function Vn(e6) {
1023
1023
  if (e6.status === `fulfilled`) return e6.value;
1024
1024
  throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
1025
1025
  e6.status = `fulfilled`, e6.value = t2;
@@ -1027,17 +1027,17 @@ function Bn(e6) {
1027
1027
  e6.status = `rejected`, e6.reason = t2;
1028
1028
  })), e6);
1029
1029
  }
1030
- var Vn = /* @__PURE__ */ new WeakMap();
1031
- function Hn(e6, t2, n2) {
1032
- let r2 = Vn.get(e6);
1033
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), Vn.set(e6, r2));
1030
+ var Hn = /* @__PURE__ */ new WeakMap();
1031
+ function Un(e6, t2, n2) {
1032
+ let r2 = Hn.get(e6);
1033
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Hn.set(e6, r2));
1034
1034
  let i2 = r2.get(t2);
1035
1035
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
1036
1036
  let a2 = i2.get(n2);
1037
1037
  if (!a2) {
1038
- if (e6.status === `fulfilled`) a2 = zn(t2(e6.value));
1038
+ if (e6.status === `fulfilled`) a2 = Bn(t2(e6.value));
1039
1039
  else if (e6.status === `rejected`) try {
1040
- a2 = zn(n2(e6.reason));
1040
+ a2 = Bn(n2(e6.reason));
1041
1041
  } catch {
1042
1042
  a2 = e6.then(t2, n2);
1043
1043
  }
@@ -1046,36 +1046,36 @@ function Hn(e6, t2, n2) {
1046
1046
  }
1047
1047
  return a2;
1048
1048
  }
1049
- function I(e6) {
1049
+ function F(e6) {
1050
1050
  return e6;
1051
1051
  }
1052
- var Un = I(`@wix/site-service-rendering-context`);
1053
- var Wn = () => {
1052
+ var Wn = F(`@wix/site-service-rendering-context`);
1053
+ var Gn = () => {
1054
1054
  try {
1055
- return (0, import_services_manager_react.useService)(Un).SSR;
1055
+ return (0, import_services_manager_react.useService)(Wn).SSR;
1056
1056
  } catch {
1057
1057
  return false;
1058
1058
  }
1059
1059
  };
1060
- var Gn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1061
- function Kn(e6, t2) {
1060
+ var Kn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1061
+ function qn(e6, t2) {
1062
1062
  let [n2, r2] = (0, import_react.useState)(() => ({ deps: t2, value: e6() }));
1063
1063
  return (0, import_react.useEffect)(() => {
1064
- if (Gn(n2.deps, t2)) return;
1064
+ if (Kn(n2.deps, t2)) return;
1065
1065
  let i2 = e6();
1066
1066
  (0, import_react.startTransition)(() => r2({ deps: t2, value: i2 }));
1067
1067
  }, t2), n2.value;
1068
1068
  }
1069
- var qn = I(`@wix/viewer-service-site-members`);
1070
- var Jn = () => {
1069
+ var Jn = F(`@wix/viewer-service-site-members`);
1070
+ var Yn = () => {
1071
1071
  try {
1072
- return (0, import_services_manager_react.useService)(qn);
1072
+ return (0, import_services_manager_react.useService)(Jn);
1073
1073
  } catch {
1074
1074
  return;
1075
1075
  }
1076
1076
  };
1077
- var Yn = (e6, t2) => {
1078
- let n2 = Jn(), [r2, i2] = (0, import_react.useState)(), a2 = !!e6.post?.preview;
1077
+ var Xn = (e6, t2) => {
1078
+ let n2 = Yn(), [r2, i2] = (0, import_react.useState)(), a2 = !!e6.post?.preview;
1079
1079
  return (0, import_react.useEffect)(() => {
1080
1080
  if (!a2) return;
1081
1081
  let e7 = true, r3 = () => {
@@ -1093,18 +1093,18 @@ var Yn = (e6, t2) => {
1093
1093
  };
1094
1094
  }, [a2, t2, n2]), (0, import_react.useMemo)(() => a2 && r2 && r2._id === e6.post?._id ? { ...e6, post: r2, paywall: void 0 } : e6, [a2, r2, e6]);
1095
1095
  };
1096
- var Xn = I(`@wix/site-service-url`);
1097
- var Zn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1098
- var Qn = `post`;
1099
- var $n = `category`;
1100
- var er = `builder-post`;
1101
- var tr = `__blog_unknown_section__`;
1102
- var nr = (e6) => {
1096
+ var Zn = F(`@wix/site-service-url`);
1097
+ var Qn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1098
+ var $n = `post`;
1099
+ var er = `category`;
1100
+ var tr = `builder-post`;
1101
+ var nr = `__blog_unknown_section__`;
1102
+ var rr = (e6) => {
1103
1103
  let t2;
1104
1104
  try {
1105
- let n3 = e6.appSectionRelativeUrl(Zn, er);
1106
- if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, tr) && !n3?.endsWith(`/post-page`)) return;
1107
- t2 = e6.appSectionRelativeUrl(Zn, er, true);
1105
+ let n3 = e6.appSectionRelativeUrl(Qn, tr);
1106
+ if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, nr) && !n3?.endsWith(`/post-page`)) return;
1107
+ t2 = e6.appSectionRelativeUrl(Qn, tr, true);
1108
1108
  } catch {
1109
1109
  return;
1110
1110
  }
@@ -1112,12 +1112,12 @@ var nr = (e6) => {
1112
1112
  let n2 = t2.split(`/`).filter(Boolean);
1113
1113
  return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
1114
1114
  };
1115
- var rr = (e6) => `${e6}/${Qn}`;
1116
- var ir = (e6) => {
1117
- let t2 = nr(e6);
1118
- if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${rr(t2)}`;
1115
+ var ir = (e6) => `${e6}/${$n}`;
1116
+ var ar = (e6) => {
1117
+ let t2 = rr(e6);
1118
+ if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${ir(t2)}`;
1119
1119
  };
1120
- var ar = (e6, t2) => {
1120
+ var or = (e6, t2) => {
1121
1121
  if (!e6 || !t2) return;
1122
1122
  let n2;
1123
1123
  try {
@@ -1131,14 +1131,14 @@ var ar = (e6, t2) => {
1131
1131
  if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
1132
1132
  }
1133
1133
  };
1134
- var or = (e6) => {
1134
+ var sr = (e6) => {
1135
1135
  if (!e6) return;
1136
1136
  if (typeof e6 == `string`) return e6;
1137
1137
  let { base: t2, path: n2 } = e6;
1138
1138
  return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
1139
1139
  };
1140
- var sr = (e6, t2) => {
1141
- let n2 = or(e6.url), r2 = `/${Qn}`;
1140
+ var cr = (e6, t2) => {
1141
+ let n2 = sr(e6.url), r2 = `/${$n}`;
1142
1142
  if (!n2 || !t2?.endsWith(r2)) return;
1143
1143
  let i2, a2;
1144
1144
  try {
@@ -1149,41 +1149,41 @@ var sr = (e6, t2) => {
1149
1149
  let o2 = a2.slice(0, -r2.length);
1150
1150
  return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
1151
1151
  };
1152
- var cr = (e6, t2) => {
1153
- let n2 = sr(e6, t2);
1152
+ var lr = (e6, t2) => {
1153
+ let n2 = cr(e6, t2);
1154
1154
  if (n2) return { href: n2, target: `_self` };
1155
1155
  if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
1156
- let r2 = or(e6.url);
1156
+ let r2 = sr(e6.url);
1157
1157
  return r2 ? { href: r2, target: `_self` } : void 0;
1158
1158
  };
1159
- var lr = (e6, t2) => {
1160
- let n2 = nr(e6);
1159
+ var ur = (e6, t2) => {
1160
+ let n2 = rr(e6);
1161
1161
  if (n2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${n2}/${t2}`;
1162
1162
  };
1163
- var ur = (e6) => {
1163
+ var dr = (e6) => {
1164
1164
  let t2;
1165
1165
  try {
1166
- t2 = (0, import_services_manager_react.useService)(Xn);
1166
+ t2 = (0, import_services_manager_react.useService)(Zn);
1167
1167
  } catch {
1168
1168
  return;
1169
1169
  }
1170
- return ir(t2) ?? ar(t2.currentUrl, e6);
1170
+ return ar(t2) ?? or(t2.currentUrl, e6);
1171
1171
  };
1172
- var dr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postProvider: `WixBlog.PostContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1173
- var fr = (e6) => `${e6} rendered`;
1174
- var pr = (e6, t2, n2) => {
1172
+ var fr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1173
+ var pr = (e6) => `${e6} rendered`;
1174
+ var mr = (e6, t2, n2) => {
1175
1175
  (0, import_react.useEffect)(() => {
1176
1176
  if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
1177
- performance.mark(fr(e6), { detail: { state: t2, compId: n2 } });
1177
+ performance.mark(pr(e6), { detail: { state: t2, compId: n2 } });
1178
1178
  } catch {
1179
1179
  }
1180
1180
  }, [e6, t2, n2]);
1181
1181
  };
1182
- var mr = I(`@wix/site-service-warmup-data`);
1183
- function hr() {
1184
- let e6 = Wn(), t2 = null;
1182
+ var hr = F(`@wix/site-service-warmup-data`);
1183
+ function gr() {
1184
+ let e6 = Gn(), t2 = null;
1185
1185
  try {
1186
- t2 = (0, import_services_manager_react.useGetService)()(mr);
1186
+ t2 = (0, import_services_manager_react.useGetService)()(hr);
1187
1187
  } catch {
1188
1188
  }
1189
1189
  return (0, import_react.useMemo)(() => ({ isServer: e6, scope: t2 ?? void 0, get: async (n2) => {
@@ -1200,13 +1200,13 @@ function hr() {
1200
1200
  }
1201
1201
  } }), [e6, t2]);
1202
1202
  }
1203
- var gr = () => {
1203
+ var _r = () => {
1204
1204
  let e6 = /* @__PURE__ */ new Map();
1205
1205
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1206
1206
  e6.delete(t2);
1207
1207
  })), e6.get(t2)) };
1208
1208
  };
1209
- var _r = async (e6) => {
1209
+ var vr = async (e6) => {
1210
1210
  try {
1211
1211
  let { default: t2 } = await e6();
1212
1212
  return t2;
@@ -1214,9 +1214,9 @@ var _r = async (e6) => {
1214
1214
  return;
1215
1215
  }
1216
1216
  };
1217
- var vr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1218
- let r2 = gr(), i2 = async (r3) => {
1219
- let [i3, a2] = await Promise.all([_r(() => t2(r3)), !e6 || !n2 ? void 0 : _r(() => n2(r3))]);
1217
+ var yr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1218
+ let r2 = _r(), i2 = async (r3) => {
1219
+ let [i3, a2] = await Promise.all([vr(() => t2(r3)), !e6 || !n2 ? void 0 : vr(() => n2(r3))]);
1220
1220
  if (i3 && a2) return { ...i3, ...a2 };
1221
1221
  if (i3) return i3;
1222
1222
  if (a2) return a2;
@@ -1224,61 +1224,61 @@ var vr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1224
1224
  };
1225
1225
  return (e7) => r2.getOrInsert(e7, () => i2(e7));
1226
1226
  };
1227
- var L = (e6) => typeof e6 == `string`;
1228
- var R = () => {
1227
+ var I = (e6) => typeof e6 == `string`;
1228
+ var L = () => {
1229
1229
  let e6, t2, n2 = new Promise((n3, r2) => {
1230
1230
  e6 = n3, t2 = r2;
1231
1231
  });
1232
1232
  return n2.resolve = e6, n2.reject = t2, n2;
1233
1233
  };
1234
- var yr = (e6) => e6 == null ? `` : String(e6);
1235
- var br = (e6, t2, n2) => {
1234
+ var br = (e6) => e6 == null ? `` : String(e6);
1235
+ var xr = (e6, t2, n2) => {
1236
1236
  e6.forEach((e7) => {
1237
1237
  t2[e7] && (n2[e7] = t2[e7]);
1238
1238
  });
1239
1239
  };
1240
- var xr = /###/g;
1241
- var Sr = (e6) => e6 && e6.includes(`###`) ? e6.replace(xr, `.`) : e6;
1242
- var Cr = (e6) => !e6 || L(e6);
1243
- var z = (e6, t2, n2) => {
1244
- let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1240
+ var Sr = /###/g;
1241
+ var Cr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Sr, `.`) : e6;
1242
+ var wr = (e6) => !e6 || I(e6);
1243
+ var R = (e6, t2, n2) => {
1244
+ let r2 = I(t2) ? t2.split(`.`) : t2, i2 = 0;
1245
1245
  for (; i2 < r2.length - 1; ) {
1246
- if (Cr(e6)) return {};
1247
- let t3 = Sr(r2[i2]);
1246
+ if (wr(e6)) return {};
1247
+ let t3 = Cr(r2[i2]);
1248
1248
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1249
1249
  }
1250
- return Cr(e6) ? {} : { obj: e6, k: Sr(r2[i2]) };
1250
+ return wr(e6) ? {} : { obj: e6, k: Cr(r2[i2]) };
1251
1251
  };
1252
- var wr = (e6, t2, n2) => {
1253
- let { obj: r2, k: i2 } = z(e6, t2, Object);
1252
+ var Tr = (e6, t2, n2) => {
1253
+ let { obj: r2, k: i2 } = R(e6, t2, Object);
1254
1254
  if (r2 !== void 0 || t2.length === 1) {
1255
1255
  r2[i2] = n2;
1256
1256
  return;
1257
1257
  }
1258
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = z(e6, o2, Object);
1259
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = z(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1258
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = R(e6, o2, Object);
1259
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = R(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1260
1260
  s2.obj[`${s2.k}.${a2}`] = n2;
1261
1261
  };
1262
- var Tr = (e6, t2, n2, r2) => {
1263
- let { obj: i2, k: a2 } = z(e6, t2, Object);
1262
+ var Er = (e6, t2, n2, r2) => {
1263
+ let { obj: i2, k: a2 } = R(e6, t2, Object);
1264
1264
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1265
1265
  };
1266
- var Er = (e6, t2) => {
1267
- let { obj: n2, k: r2 } = z(e6, t2);
1266
+ var Dr = (e6, t2) => {
1267
+ let { obj: n2, k: r2 } = R(e6, t2);
1268
1268
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1269
1269
  };
1270
- var Dr = (e6, t2, n2) => {
1271
- let r2 = Er(e6, n2);
1272
- return r2 === void 0 ? Er(t2, n2) : r2;
1273
- };
1274
1270
  var Or = (e6, t2, n2) => {
1275
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? L(e6[r2]) || e6[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Or(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1271
+ let r2 = Dr(e6, n2);
1272
+ return r2 === void 0 ? Dr(t2, n2) : r2;
1273
+ };
1274
+ var kr = (e6, t2, n2) => {
1275
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? I(e6[r2]) || e6[r2] instanceof String || I(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : kr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1276
1276
  return e6;
1277
1277
  };
1278
- var B = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1279
- var kr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1280
- var Ar = (e6) => L(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => kr[e7]) : e6;
1281
- var jr = class {
1278
+ var z = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1279
+ var Ar = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1280
+ var jr = (e6) => I(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Ar[e7]) : e6;
1281
+ var Mr = class {
1282
1282
  constructor(e6) {
1283
1283
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1284
1284
  }
@@ -1289,20 +1289,20 @@ var jr = class {
1289
1289
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1290
1290
  }
1291
1291
  };
1292
- var Mr = [` `, `,`, `?`, `!`, `;`];
1293
- var Nr = new jr(20);
1294
- var Pr = (e6, t2, n2) => {
1292
+ var Nr = [` `, `,`, `?`, `!`, `;`];
1293
+ var Pr = new Mr(20);
1294
+ var Fr = (e6, t2, n2) => {
1295
1295
  t2 ||= ``, n2 ||= ``;
1296
- let r2 = Mr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1296
+ let r2 = Nr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1297
1297
  if (r2.length === 0) return true;
1298
- let i2 = Nr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1298
+ let i2 = Pr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1299
1299
  if (!a2) {
1300
1300
  let t3 = e6.indexOf(n2);
1301
1301
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1302
1302
  }
1303
1303
  return a2;
1304
1304
  };
1305
- var Fr = (e6, t2, n2 = `.`) => {
1305
+ var Ir = (e6, t2, n2 = `.`) => {
1306
1306
  if (!e6) return;
1307
1307
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1308
1308
  let r2 = t2.split(n2), i2 = e6;
@@ -1318,7 +1318,7 @@ var Fr = (e6, t2, n2 = `.`) => {
1318
1318
  }
1319
1319
  return i2;
1320
1320
  };
1321
- var Ir = (e6) => e6?.replace(/_/g, `-`);
1321
+ var B = (e6) => e6?.replace(/_/g, `-`);
1322
1322
  var Lr = { type: `logger`, log(e6) {
1323
1323
  this.output(`log`, e6);
1324
1324
  }, warn(e6) {
@@ -1348,7 +1348,7 @@ var V = new class e2 {
1348
1348
  return this.forward(e6, `warn`, `WARNING DEPRECATED: `, true);
1349
1349
  }
1350
1350
  forward(e6, t2, n2, r2) {
1351
- return r2 && !this.debug ? null : (e6 = e6.map((e7) => L(e7) ? e7.replace(/[\r\n\x00-\x1F\x7F]/g, ` `) : e7), L(e6[0]) && (e6[0] = `${n2}${this.prefix} ${e6[0]}`), this.logger[t2](e6));
1351
+ return r2 && !this.debug ? null : (e6 = e6.map((e7) => I(e7) ? e7.replace(/[\r\n\x00-\x1F\x7F]/g, ` `) : e7), I(e6[0]) && (e6[0] = `${n2}${this.prefix} ${e6[0]}`), this.logger[t2](e6));
1352
1352
  }
1353
1353
  create(t2) {
1354
1354
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1399,23 +1399,23 @@ var Br = class extends Rr {
1399
1399
  }
1400
1400
  getResource(e6, t2, n2, r2 = {}) {
1401
1401
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1402
- e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : L(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1403
- let s2 = Er(this.data, o2);
1404
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : Fr(this.data?.[e6]?.[t2], n2, i2);
1402
+ e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : I(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1403
+ let s2 = Dr(this.data, o2);
1404
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !I(n2) ? s2 : Ir(this.data?.[e6]?.[t2], n2, i2);
1405
1405
  }
1406
1406
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1407
1407
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1408
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), wr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1408
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Tr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1409
1409
  }
1410
1410
  addResources(e6, t2, n2, r2 = { silent: false }) {
1411
- for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1411
+ for (let r3 in n2) (I(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1412
1412
  r2.silent || this.emit(`added`, e6, t2, n2);
1413
1413
  }
1414
1414
  addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1415
1415
  let o2 = [e6, t2];
1416
1416
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1417
- let s2 = Er(this.data, o2) || {};
1418
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Or(s2, n2, i2) : s2 = { ...s2, ...n2 }, wr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1417
+ let s2 = Dr(this.data, o2) || {};
1418
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? kr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Tr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1419
1419
  }
1420
1420
  removeResourceBundle(e6, t2) {
1421
1421
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1460,10 +1460,10 @@ function H(e6, t2) {
1460
1460
  }
1461
1461
  return n2.join(r2);
1462
1462
  }
1463
- var Wr = (e6) => !L(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1463
+ var Wr = (e6) => !I(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1464
1464
  var Gr = class e3 extends Rr {
1465
1465
  constructor(e6, t2 = {}) {
1466
- super(), br([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = V.create(`translator`), this.checkedLoadedFor = {};
1466
+ super(), xr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = V.create(`translator`), this.checkedLoadedFor = {};
1467
1467
  }
1468
1468
  changeLanguage(e6) {
1469
1469
  e6 && (this.language = e6);
@@ -1479,14 +1479,14 @@ var Gr = class e3 extends Rr {
1479
1479
  extractFromKey(e6, t2) {
1480
1480
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1481
1481
  n2 === void 0 && (n2 = `:`);
1482
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Pr(e6, n2, r2);
1482
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Fr(e6, n2, r2);
1483
1483
  if (a2 && !o2) {
1484
1484
  let t3 = e6.match(this.interpolator.nestingRegexp);
1485
- if (t3 && t3.length > 0) return { key: e6, namespaces: L(i2) ? [i2] : i2 };
1485
+ if (t3 && t3.length > 0) return { key: e6, namespaces: I(i2) ? [i2] : i2 };
1486
1486
  let a3 = e6.split(n2);
1487
1487
  (n2 !== r2 || n2 === r2 && this.options.ns.includes(a3[0])) && (i2 = a3.shift()), e6 = a3.join(r2);
1488
1488
  }
1489
- return { key: e6, namespaces: L(i2) ? [i2] : i2 };
1489
+ return { key: e6, namespaces: I(i2) ? [i2] : i2 };
1490
1490
  }
1491
1491
  translate(t2, n2, r2) {
1492
1492
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
@@ -1496,10 +1496,10 @@ var Gr = class e3 extends Rr {
1496
1496
  u2 === void 0 && (u2 = `:`);
1497
1497
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1498
1498
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1499
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !L(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1499
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !I(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1500
1500
  y2 && !m2 && x2 && (T2 = w2);
1501
1501
  let te2 = Wr(T2), ne2 = Object.prototype.toString.apply(T2);
1502
- if (y2 && T2 && te2 && !_2.includes(ne2) && !(L(v2) && Array.isArray(T2))) {
1502
+ if (y2 && T2 && te2 && !_2.includes(ne2) && !(I(v2) && Array.isArray(T2))) {
1503
1503
  if (!i2.returnObjects && !this.options.returnObjects) {
1504
1504
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1505
1505
  let e6 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, T2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1513,7 +1513,7 @@ var Gr = class e3 extends Rr {
1513
1513
  }
1514
1514
  m2 = t3;
1515
1515
  }
1516
- } else if (y2 && L(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1516
+ } else if (y2 && I(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1517
1517
  else {
1518
1518
  let e6 = false, n3 = false;
1519
1519
  !this.isValidLookup(m2) && x2 && (e6 = true, m2 = w2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1545,30 +1545,30 @@ var Gr = class e3 extends Rr {
1545
1545
  if (this.i18nFormat?.parse) e6 = this.i18nFormat.parse(e6, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1546
1546
  else if (!n2.skipInterpolation) {
1547
1547
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1548
- let a3 = L(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1548
+ let a3 = I(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1549
1549
  if (a3) {
1550
1550
  let t3 = e6.match(this.interpolator.nestingRegexp);
1551
1551
  o3 = t3 && t3.length;
1552
1552
  }
1553
- let s2 = n2.replace && !L(n2.replace) ? n2.replace : n2;
1553
+ let s2 = n2.replace && !I(n2.replace) ? n2.replace : n2;
1554
1554
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e6 = this.interpolator.interpolate(e6, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1555
1555
  let t3 = e6.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1556
1556
  o3 < r3 && (n2.nest = false);
1557
1557
  }
1558
1558
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
1559
1559
  }
1560
- let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1560
+ let a2 = n2.postProcess || this.options.postProcess, o2 = I(a2) ? [a2] : a2;
1561
1561
  return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Vr.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1562
1562
  }
1563
1563
  resolve(e6, t2 = {}) {
1564
1564
  let n2, r2, i2, a2, o2;
1565
- return L(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? H(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1565
+ return I(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? H(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1566
1566
  if (this.isValidLookup(n2)) return;
1567
1567
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1568
1568
  r2 = c2;
1569
1569
  let l2 = s2.namespaces;
1570
1570
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1571
- let u2 = t2.count !== void 0 && !L(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (L(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1571
+ let u2 = t2.count !== void 0 && !I(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (I(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1572
1572
  l2.forEach((e8) => {
1573
1573
  this.isValidLookup(n2) || (o2 = e8, !this.checkedLoadedFor[`${p2[0]}-${e8}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (this.checkedLoadedFor[`${p2[0]}-${e8}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1574
1574
  if (this.isValidLookup(n2)) return;
@@ -1597,7 +1597,7 @@ var Gr = class e3 extends Rr {
1597
1597
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e6, t2, n2, r2) : this.resourceStore.getResource(e6, t2, n2, r2);
1598
1598
  }
1599
1599
  getUsedParamsDetails(e6 = {}) {
1600
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e6.replace && !L(e6.replace), r2 = n2 ? e6.replace : e6;
1600
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e6.replace && !I(e6.replace), r2 = n2 ? e6.replace : e6;
1601
1601
  if (n2 && e6.count !== void 0 && (r2 = { ...r2, count: e6.count }), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1602
1602
  r2 = { ...r2 };
1603
1603
  for (let e7 of t2) delete r2[e7];
@@ -1617,17 +1617,17 @@ var Kr = class {
1617
1617
  this.resolveHierarchyCache = {};
1618
1618
  }
1619
1619
  getScriptPartFromCode(e6) {
1620
- if (e6 = Ir(e6), !e6 || !e6.includes(`-`)) return null;
1620
+ if (e6 = B(e6), !e6 || !e6.includes(`-`)) return null;
1621
1621
  let t2 = e6.split(`-`);
1622
1622
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1623
1623
  }
1624
1624
  getLanguagePartFromCode(e6) {
1625
- if (e6 = Ir(e6), !e6 || !e6.includes(`-`)) return e6;
1625
+ if (e6 = B(e6), !e6 || !e6.includes(`-`)) return e6;
1626
1626
  let t2 = e6.split(`-`);
1627
1627
  return this.formatLanguageCode(t2[0]);
1628
1628
  }
1629
1629
  formatLanguageCode(e6) {
1630
- if (L(e6) && e6.includes(`-`)) {
1630
+ if (I(e6) && e6.includes(`-`)) {
1631
1631
  let t2;
1632
1632
  try {
1633
1633
  t2 = Intl.getCanonicalLocales(e6)[0];
@@ -1658,7 +1658,7 @@ var Kr = class {
1658
1658
  }
1659
1659
  getFallbackCodes(e6, t2) {
1660
1660
  if (!e6) return [];
1661
- if (typeof e6 == `function` && (e6 = e6(t2)), L(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1661
+ if (typeof e6 == `function` && (e6 = e6(t2)), I(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1662
1662
  if (!t2) return e6.default || [];
1663
1663
  let n2 = e6[t2];
1664
1664
  return n2 ||= e6[this.getScriptPartFromCode(t2)], n2 ||= e6[this.formatLanguageCode(t2)], n2 ||= e6[this.getLanguagePartFromCode(t2)], n2 ||= e6.default, n2 || [];
@@ -1666,7 +1666,7 @@ var Kr = class {
1666
1666
  toResolveHierarchy(e6, t2) {
1667
1667
  let n2 = this.options.fallbackLng, r2 = Array.isArray(n2) ? n2.join(`|`) : n2;
1668
1668
  r2 !== this._cachedFallbackLng && (this.resolveHierarchyCache = {}, this._cachedFallbackLng = r2);
1669
- let i2 = t2 === void 0 || t2 === false || L(t2), a2 = t2 === void 0 && typeof this.options.fallbackLng == `function`, o2 = L(e6) && i2 && !a2, s2 = null;
1669
+ let i2 = t2 === void 0 || t2 === false || I(t2), a2 = t2 === void 0 && typeof this.options.fallbackLng == `function`, o2 = I(e6) && i2 && !a2, s2 = null;
1670
1670
  if (o2) {
1671
1671
  let n3;
1672
1672
  n3 = t2 === void 0 ? `undefined` : t2 === false ? `boolean:false` : `string:${t2}`, s2 = `${e6.length}:${e6}|${n3}`;
@@ -1678,7 +1678,7 @@ var Kr = class {
1678
1678
  let c2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e6), l2 = [], u2 = (e7) => {
1679
1679
  e7 && (this.isSupportedCode(e7) ? l2.push(e7) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e7}`));
1680
1680
  };
1681
- return L(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : L(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1681
+ return I(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : I(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1682
1682
  l2.includes(e7) || u2(this.formatLanguageCode(e7));
1683
1683
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1684
1684
  }
@@ -1693,7 +1693,7 @@ var Yr = class {
1693
1693
  this.pluralRulesCache = {};
1694
1694
  }
1695
1695
  getRule(e6, t2 = {}) {
1696
- let n2 = Ir(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1696
+ let n2 = B(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1697
1697
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1698
1698
  let a2;
1699
1699
  try {
@@ -1723,8 +1723,8 @@ var Yr = class {
1723
1723
  }
1724
1724
  };
1725
1725
  var Xr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1726
- let a2 = Dr(e6, t2, n2);
1727
- return !a2 && i2 && L(n2) && (a2 = Fr(e6, n2, r2), a2 === void 0 && (a2 = Fr(t2, n2, r2))), a2;
1726
+ let a2 = Or(e6, t2, n2);
1727
+ return !a2 && i2 && I(n2) && (a2 = Ir(e6, n2, r2), a2 === void 0 && (a2 = Ir(t2, n2, r2))), a2;
1728
1728
  };
1729
1729
  var Zr = (e6) => e6.replace(/\$/g, `$$$$`);
1730
1730
  var Qr = class {
@@ -1734,7 +1734,7 @@ var Qr = class {
1734
1734
  init(e6 = {}) {
1735
1735
  e6.interpolation ||= { escapeValue: true };
1736
1736
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e6.interpolation;
1737
- this.escape = t2 === void 0 ? Ar : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? B(i2) : a2 || `{{`, this.suffix = o2 ? B(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? B(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? B(l2) : ``, this.nestingPrefix = d2 ? B(d2) : f2 || B(`$t(`), this.nestingSuffix = p2 ? B(p2) : m2 || B(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1737
+ this.escape = t2 === void 0 ? jr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? z(i2) : a2 || `{{`, this.suffix = o2 ? z(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? z(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? z(l2) : ``, this.nestingPrefix = d2 ? z(d2) : f2 || z(`$t(`), this.nestingSuffix = p2 ? z(p2) : m2 || z(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1738
1738
  }
1739
1739
  reset() {
1740
1740
  this.options && this.init(this.options);
@@ -1760,13 +1760,13 @@ var Qr = class {
1760
1760
  if (a2 = c2(n3), a2 === void 0) {
1761
1761
  if (typeof l2 == `function`) {
1762
1762
  let t4 = l2(e6, i2, r2);
1763
- a2 = L(t4) ? t4 : ``;
1763
+ a2 = I(t4) ? t4 : ``;
1764
1764
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1765
1765
  else if (u2) {
1766
1766
  a2 = i2[0];
1767
1767
  continue;
1768
1768
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1769
- } else !L(a2) && !this.useRawValueToEscape && (a2 = yr(a2));
1769
+ } else !I(a2) && !this.useRawValueToEscape && (a2 = br(a2));
1770
1770
  let s3 = t3.safeValue(a2);
1771
1771
  if (e6 = e6.replace(i2[0], Zr(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1772
1772
  }
@@ -1776,7 +1776,7 @@ var Qr = class {
1776
1776
  let r2, i2, a2, o2 = (e7, t3) => {
1777
1777
  let n3 = this.nestingOptionsSeparator;
1778
1778
  if (!e7.includes(n3)) return e7;
1779
- let r3 = e7.split(RegExp(`${B(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1779
+ let r3 = e7.split(RegExp(`${z(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1780
1780
  e7 = r3[0], i3 = this.interpolate(i3, a2);
1781
1781
  let o3 = i3.match(/'/g), s3 = i3.match(/"/g);
1782
1782
  ((o3?.length ?? 0) % 2 == 0 && !s3 || (s3?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1789,10 +1789,10 @@ var Qr = class {
1789
1789
  }, s2 = new RegExp(this.nestingRegexp), c2 = ``, l2 = 0;
1790
1790
  for (; r2 = s2.exec(e6); ) {
1791
1791
  let u2 = [];
1792
- a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1792
+ a2 = { ...n2 }, a2 = a2.replace && !I(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1793
1793
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1794
- if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !L(i2)) return i2;
1795
- L(i2) || (i2 = yr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + yr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1794
+ if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !I(i2)) return i2;
1795
+ I(i2) || (i2 = br(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + br(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1796
1796
  }
1797
1797
  return l2 ? c2 + e6.slice(l2) : e6;
1798
1798
  }
@@ -1818,10 +1818,10 @@ var ei = (e6) => {
1818
1818
  let a2 = i2;
1819
1819
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1820
1820
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1821
- return s2 || (s2 = e6(Ir(r2), i2), t2[o2] = s2), s2(n2);
1821
+ return s2 || (s2 = e6(B(r2), i2), t2[o2] = s2), s2(n2);
1822
1822
  };
1823
1823
  };
1824
- var ti = (e6) => (t2, n2, r2) => e6(Ir(n2), r2)(t2);
1824
+ var ti = (e6) => (t2, n2, r2) => e6(B(n2), r2)(t2);
1825
1825
  var ni = class {
1826
1826
  constructor(e6 = {}) {
1827
1827
  this.logger = V.create(`formatter`), this.options = e6, this.init(e6);
@@ -1898,7 +1898,7 @@ var ii = class extends Rr {
1898
1898
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e6] = t2 ? -1 : 2, t2 && n2 && (this.state[e6] = 0);
1899
1899
  let o2 = {};
1900
1900
  this.queue.forEach((n3) => {
1901
- Tr(n3.loaded, [i2], a2), ri(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1901
+ Er(n3.loaded, [i2], a2), ri(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1902
1902
  o2[e7] || (o2[e7] = {});
1903
1903
  let t3 = n3.loaded[e7];
1904
1904
  t3.length && t3.forEach((t4) => {
@@ -1933,7 +1933,7 @@ var ii = class extends Rr {
1933
1933
  }
1934
1934
  prepareLoading(e6, t2, n2 = {}, r2) {
1935
1935
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1936
- L(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), L(t2) && (t2 = [t2]);
1936
+ I(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), I(t2) && (t2 = [t2]);
1937
1937
  let i2 = this.queueLoad(e6, t2, n2, r2);
1938
1938
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1939
1939
  i2.toLoad.forEach((e7) => {
@@ -1972,7 +1972,7 @@ var ii = class extends Rr {
1972
1972
  };
1973
1973
  var ai = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
1974
1974
  let t2 = {};
1975
- if (typeof e6[1] == `object` && (t2 = e6[1]), L(e6[1]) && (t2.defaultValue = e6[1]), L(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1975
+ if (typeof e6[1] == `object` && (t2 = e6[1]), I(e6[1]) && (t2.defaultValue = e6[1]), I(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1976
1976
  let n2 = e6[3] || e6[2];
1977
1977
  Object.keys(n2).forEach((e7) => {
1978
1978
  t2[e7] = n2[e7];
@@ -1980,7 +1980,7 @@ var ai = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1980
1980
  }
1981
1981
  return t2;
1982
1982
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1983
- var oi = (e6) => (L(e6.ns) && (e6.ns = [e6.ns]), L(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), L(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1983
+ var oi = (e6) => (I(e6.ns) && (e6.ns = [e6.ns]), I(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), I(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1984
1984
  var si = () => {
1985
1985
  };
1986
1986
  var ci = (e6) => {
@@ -1998,7 +1998,7 @@ var U = class e4 extends Rr {
1998
1998
  }
1999
1999
  }
2000
2000
  init(e6 = {}, t2) {
2001
- this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (L(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2001
+ this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (I(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2002
2002
  let n2 = ai();
2003
2003
  this.options = { ...n2, ...this.options, ...oi(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
2004
2004
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
@@ -2026,7 +2026,7 @@ var U = class e4 extends Rr {
2026
2026
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
2027
2027
  this[e7] = (...t3) => (this.store[e7](...t3), this);
2028
2028
  });
2029
- let i2 = R(), a2 = () => {
2029
+ let i2 = L(), a2 = () => {
2030
2030
  let e7 = (e8, n3) => {
2031
2031
  this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e8, n3);
2032
2032
  };
@@ -2036,7 +2036,7 @@ var U = class e4 extends Rr {
2036
2036
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
2037
2037
  }
2038
2038
  loadResources(e6, t2 = si) {
2039
- let n2 = t2, r2 = L(e6) ? e6 : this.language;
2039
+ let n2 = t2, r2 = I(e6) ? e6 : this.language;
2040
2040
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2041
2041
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
2042
2042
  let e7 = [], t3 = (t4) => {
@@ -2050,7 +2050,7 @@ var U = class e4 extends Rr {
2050
2050
  } else n2(null);
2051
2051
  }
2052
2052
  reloadResources(e6, t2, n2) {
2053
- let r2 = R();
2053
+ let r2 = L();
2054
2054
  return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= si, this.services.backendConnector.reload(e6, t2, (e7) => {
2055
2055
  r2.resolve(), n2(e7);
2056
2056
  }), r2;
@@ -2074,7 +2074,7 @@ var U = class e4 extends Rr {
2074
2074
  }
2075
2075
  changeLanguage(e6, t2) {
2076
2076
  this.isLanguageChangingTo = e6;
2077
- let n2 = R();
2077
+ let n2 = L();
2078
2078
  this.emit(`languageChanging`, e6);
2079
2079
  let r2 = (e7) => {
2080
2080
  this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
@@ -2082,7 +2082,7 @@ var U = class e4 extends Rr {
2082
2082
  a3 ? this.isLanguageChangingTo === e6 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e7) => this.t(...e7)), t2 && t2(i3, (...e7) => this.t(...e7));
2083
2083
  }, a2 = (t3) => {
2084
2084
  !e6 && !t3 && this.services.languageDetector && (t3 = []);
2085
- let n3 = L(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(L(t3) ? [t3] : t3);
2085
+ let n3 = I(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(I(t3) ? [t3] : t3);
2086
2086
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e7) => {
2087
2087
  i2(e7, a3);
2088
2088
  });
@@ -2100,7 +2100,7 @@ var U = class e4 extends Rr {
2100
2100
  let l2 = this.options.keySeparator || `.`, u2;
2101
2101
  return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = H(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = H(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2102
2102
  };
2103
- return L(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2103
+ return I(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2104
2104
  }
2105
2105
  t(...e6) {
2106
2106
  return this.translator?.translate(...e6);
@@ -2127,16 +2127,16 @@ var U = class e4 extends Rr {
2127
2127
  return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
2128
2128
  }
2129
2129
  loadNamespaces(e6, t2) {
2130
- let n2 = R();
2131
- return this.options.ns ? (L(e6) && (e6 = [e6]), e6.forEach((e7) => {
2130
+ let n2 = L();
2131
+ return this.options.ns ? (I(e6) && (e6 = [e6]), e6.forEach((e7) => {
2132
2132
  this.options.ns.includes(e7) || this.options.ns.push(e7);
2133
2133
  }), this.loadResources((e7) => {
2134
2134
  n2.resolve(), t2 && t2(e7);
2135
2135
  }), n2) : (t2 && t2(), Promise.resolve());
2136
2136
  }
2137
2137
  loadLanguages(e6, t2) {
2138
- let n2 = R();
2139
- L(e6) && (e6 = [e6]);
2138
+ let n2 = L();
2139
+ I(e6) && (e6 = [e6]);
2140
2140
  let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
2141
2141
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
2142
2142
  n2.resolve(), t2 && t2(e7);
@@ -3412,8 +3412,8 @@ function bo({ i18n: e6, defaultNS: t2, children: n2 }) {
3412
3412
  let r2 = (0, import_react.useMemo)(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3413
3413
  return (0, import_react.createElement)(mo.Provider, { value: r2 }, n2);
3414
3414
  }
3415
- var xo = I(`@wix/site-service-locale`);
3416
- var So = I(`@wix/site-service-renderer-configuration`);
3415
+ var xo = F(`@wix/site-service-locale`);
3416
+ var So = F(`@wix/site-service-renderer-configuration`);
3417
3417
  var Co = () => {
3418
3418
  let e6, t2;
3419
3419
  try {
@@ -3453,7 +3453,7 @@ function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
3453
3453
  if (a2) return a2.promise;
3454
3454
  let o2 = Eo(e6);
3455
3455
  if (o2 !== void 0) {
3456
- let t3 = zn(o2);
3456
+ let t3 = Bn(o2);
3457
3457
  return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
3458
3458
  }
3459
3459
  let s2 = (async () => await t2.get(e6) ?? n2())();
@@ -3491,14 +3491,14 @@ var Bo = (e6, t2, n2) => {
3491
3491
  });
3492
3492
  };
3493
3493
  var Vo = (e6) => e6.split(`-`)[0] ?? e6;
3494
- vr({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => _n(() => Promise.resolve().then(() => Ko), void 0, import_meta.url), "../assets/locale/messages_en.json": () => _n(() => Promise.resolve().then(() => Jo), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => _n(() => Promise.resolve().then(() => Ko), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3494
+ yr({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url), "../assets/locale/messages_en.json": () => vn(() => Promise.resolve().then(() => Jo), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import_meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3495
3495
  var Ho = /* @__PURE__ */ new WeakMap();
3496
3496
  function Uo(e6) {
3497
3497
  let t2 = Ho.get(e6);
3498
3498
  return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
3499
3499
  }
3500
3500
  function Wo({ i18n: e6, locale: t2 }) {
3501
- let n2 = Wn(), r2 = hr();
3501
+ let n2 = Gn(), r2 = gr();
3502
3502
  if (!n2) return null;
3503
3503
  if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
3504
3504
  let i2 = zo(e6, t2);
@@ -3518,7 +3518,7 @@ var Qo = (e6, t2) => {
3518
3518
  let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
3519
3519
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3520
3520
  };
3521
- var $o = vr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3521
+ var $o = yr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3522
3522
  var es = [{ path: `richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `richContent.nodes.galleryData.items.image.media.duration` }, { path: `richContent.nodes.galleryData.items.video.media.duration` }, { path: `richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `richContent.nodes.galleryData.options.item.ratio` }, { path: `richContent.nodes.imageData.image.duration` }, { path: `richContent.nodes.imageData.crop.x` }, { path: `richContent.nodes.imageData.crop.y` }, { path: `richContent.nodes.imageData.crop.width` }, { path: `richContent.nodes.imageData.crop.height` }, { path: `richContent.nodes.mapData.mapSettings.lat` }, { path: `richContent.nodes.mapData.mapSettings.lng` }, { path: `richContent.nodes.pollData.poll.image.duration` }, { path: `richContent.nodes.pollData.poll.options.image.duration` }, { path: `richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.nodes.appEmbedData.image.duration` }, { path: `richContent.nodes.videoData.video.duration` }, { path: `richContent.nodes.videoData.thumbnail.duration` }, { path: `richContent.nodes.audioData.audio.duration` }, { path: `richContent.nodes.audioData.coverImage.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.background.gradient.centerX` }, { path: `richContent.nodes.layoutData.background.gradient.centerY` }, { path: `richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `richContent.nodes.shapeData.shape.duration` }, { path: `richContent.nodes.cardData.background.gradient.centerX` }, { path: `richContent.nodes.cardData.background.gradient.centerY` }, { path: `richContent.nodes.cardData.background.gradient.stops.position` }, { path: `richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.tocData.fontSize` }, { path: `richContent.nodes.tocData.itemSpacing` }, { path: `richContent.nodes.smartBlockCellData.shape.duration` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3523
3523
  var ts = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
3524
3524
  function ns(e6) {
@@ -3527,7 +3527,7 @@ function ns(e6) {
3527
3527
  var rs = `@wix/auto_sdk_blog_post-paywalls`;
3528
3528
  function is(e6) {
3529
3529
  function t2({ host: t3 }) {
3530
- return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: rs, migrationOptions: { optInTransformResponse: true }, url: ns({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: es }, { transformFn: k, paths: ts }]) };
3530
+ return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: rs, migrationOptions: { optInTransformResponse: true }, url: ns({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: dn, paths: es }, { transformFn: k, paths: ts }]) };
3531
3531
  }
3532
3532
  return t2;
3533
3533
  }
@@ -3857,39 +3857,39 @@ function Js(e6) {
3857
3857
  let t2 = ``;
3858
3858
  return (e6.filename || e6.altText) && (t2 = `/${encodeURIComponent(e6.filename || e6.altText)}`), e6.id ? `wix:image://v1/${e6.id}${t2}#originWidth=${e6.width}&originHeight=${e6.height}` : e6.url;
3859
3859
  }
3860
- function X(e6) {
3860
+ function Ys(e6) {
3861
3861
  if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
3862
3862
  }
3863
- var Ys = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3864
- var Xs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3865
- function Zs(e6) {
3863
+ var Xs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3864
+ var Zs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3865
+ function Qs(e6) {
3866
3866
  return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
3867
3867
  }
3868
- var Qs = `@wix/auto_sdk_blog_categories`;
3869
- function $s(e6) {
3868
+ var $s = `@wix/auto_sdk_blog_categories`;
3869
+ function ec(e6) {
3870
3870
  function t2({ host: t3 }) {
3871
- return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Qs, migrationOptions: { optInTransformResponse: true }, url: Zs({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ys }, { transformFn: F, paths: Xs }]) };
3871
+ return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: $s, migrationOptions: { optInTransformResponse: true }, url: Qs({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Xs }, { transformFn: dn, paths: Zs }]) };
3872
3872
  }
3873
3873
  return t2;
3874
3874
  }
3875
- var ec = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3876
- var tc = [{ path: `categories.coverImage` }];
3877
- async function nc(e6) {
3878
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = $s(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3875
+ var tc = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3876
+ var nc = [{ path: `categories.coverImage` }];
3877
+ async function rc(e6) {
3878
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ec(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3879
3879
  n2?.onSiteCall?.();
3880
3880
  try {
3881
3881
  let e7 = await t2.request(r2);
3882
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: ec }, { transformFn: Js, paths: tc }]));
3882
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: tc }, { transformFn: Js, paths: nc }]));
3883
3883
  } catch (e7) {
3884
3884
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
3885
3885
  throw n2?.onError?.(e7), t3;
3886
3886
  }
3887
3887
  }
3888
- function rc(e6) {
3889
- return (t2) => nc(t2, { httpClient: e6 });
3888
+ function ic(e6) {
3889
+ return (t2) => rc(t2, { httpClient: e6 });
3890
3890
  }
3891
- var ic = M(rc);
3892
- function ac(e6) {
3891
+ var ac = M(ic);
3892
+ function oc(e6) {
3893
3893
  if (!e6) return;
3894
3894
  let t2 = ``;
3895
3895
  e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
@@ -3904,43 +3904,43 @@ function ac(e6) {
3904
3904
  }
3905
3905
  return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
3906
3906
  }
3907
- var oc = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3908
- var sc = [{ path: `post.richContentCompressed` }];
3909
- var cc = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3910
- var lc = [{ path: `metrics.averageRating` }];
3911
- function uc(e6) {
3907
+ var sc = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3908
+ var cc = [{ path: `post.richContentCompressed` }];
3909
+ var lc = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3910
+ var uc = [{ path: `metrics.averageRating` }];
3911
+ function dc(e6) {
3912
3912
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
3913
3913
  }
3914
- var dc = `@wix/auto_sdk_blog_posts`;
3915
- function fc(e6) {
3914
+ var fc = `@wix/auto_sdk_blog_posts`;
3915
+ function pc(e6) {
3916
3916
  function t2({ host: t3 }) {
3917
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v3/posts/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: oc }, { transformFn: dn, paths: sc }, { transformFn: F, paths: cc }]) };
3917
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/posts/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: sc }, { transformFn: fn, paths: cc }, { transformFn: dn, paths: lc }]) };
3918
3918
  }
3919
3919
  return t2;
3920
3920
  }
3921
- function pc(e6) {
3921
+ function mc(e6) {
3922
3922
  function t2({ host: t3 }) {
3923
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: lc }]) };
3923
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: dn, paths: uc }]) };
3924
3924
  }
3925
3925
  return t2;
3926
3926
  }
3927
- var mc = [{ path: `post.url` }, { path: `post.translations.url` }];
3928
- var hc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3929
- var gc = [{ path: `post.media.wixMedia.videoV2` }];
3930
- var Z = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(Z || {});
3931
- async function _c(e6, t2) {
3932
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = fc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3927
+ var hc = [{ path: `post.url` }, { path: `post.translations.url` }];
3928
+ var gc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3929
+ var _c = [{ path: `post.media.wixMedia.videoV2` }];
3930
+ var X = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(X || {});
3931
+ async function vc(e6, t2) {
3932
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = pc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3933
3933
  r2?.onSiteCall?.();
3934
3934
  try {
3935
3935
  let e7 = await n2.request(i2);
3936
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: mc }, { transformFn: Js, paths: hc }, { transformFn: ac, paths: gc }]), [`post.richContent`, `post.rich_content`]);
3936
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: hc }, { transformFn: Js, paths: gc }, { transformFn: oc, paths: _c }]), [`post.richContent`, `post.rich_content`]);
3937
3937
  } catch (e7) {
3938
3938
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]`, fieldsets: `$[1].fieldsets` }, singleArgumentUnchanged: false }, [`postId`, `options`]);
3939
3939
  throw r2?.onError?.(e7), t3;
3940
3940
  }
3941
3941
  }
3942
- async function vc(e6) {
3943
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = pc(D({ postId: e6 }, []));
3942
+ async function yc(e6) {
3943
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = mc(D({ postId: e6 }, []));
3944
3944
  n2?.onSiteCall?.();
3945
3945
  try {
3946
3946
  let e7 = await t2.request(r2);
@@ -3950,32 +3950,32 @@ async function vc(e6) {
3950
3950
  throw n2?.onError?.(e7), t3;
3951
3951
  }
3952
3952
  }
3953
- function yc(e6) {
3954
- return (t2, n2) => _c(t2, n2, { httpClient: e6 });
3955
- }
3956
3953
  function bc(e6) {
3957
- return (t2) => vc(t2, { httpClient: e6 });
3954
+ return (t2, n2) => vc(t2, n2, { httpClient: e6 });
3955
+ }
3956
+ function xc(e6) {
3957
+ return (t2) => yc(t2, { httpClient: e6 });
3958
3958
  }
3959
- var xc = M(yc);
3960
3959
  var Sc = M(bc);
3961
- var Cc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3962
- var wc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3963
- function Tc(e6) {
3960
+ var Cc = M(xc);
3961
+ var wc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3962
+ var Tc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3963
+ function Ec(e6) {
3964
3964
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www.wixapis.com": [{ srcPath: `/v3/tags`, destPath: `/v3/tags` }, { srcPath: `/blog/v3/tags`, destPath: `/v3/tags` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v2/tags`, destPath: `/v2/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tag`, destPath: `/v3/bulk/tag` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tags`, destPath: `/v3/bulk/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }] } }));
3965
3965
  }
3966
- var Ec = `@wix/auto_sdk_blog_tags`;
3967
- function Dc(e6) {
3966
+ var Dc = `@wix/auto_sdk_blog_tags`;
3967
+ function Oc(e6) {
3968
3968
  function t2({ host: t3 }) {
3969
- let n2 = A(e6, [{ transformFn: un, paths: Cc }]);
3970
- return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: Ec, migrationOptions: { optInTransformResponse: true }, url: Tc({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: wc }]) };
3969
+ let n2 = A(e6, [{ transformFn: un, paths: wc }]);
3970
+ return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: Dc, migrationOptions: { optInTransformResponse: true }, url: Ec({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Tc }]) };
3971
3971
  }
3972
3972
  return t2;
3973
3973
  }
3974
- var Oc = [{ path: `tags.url` }];
3975
- function kc(e6) {
3974
+ var kc = [{ path: `tags.url` }];
3975
+ function Ac(e6) {
3976
3976
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3977
3977
  return gs({ func: async (r2) => {
3978
- let i2 = Dc({ ...r2, ...e6 ?? {} });
3978
+ let i2 = Oc({ ...r2, ...e6 ?? {} });
3979
3979
  n2?.onSiteCall?.();
3980
3980
  try {
3981
3981
  let e7 = await t2.request(i2);
@@ -3987,57 +3987,57 @@ function kc(e6) {
3987
3987
  let n3 = [t3, e6];
3988
3988
  return D({ ...n3?.[1], query: n3?.[0] });
3989
3989
  }, responseTransformer: ({ data: e7 }) => {
3990
- let t3 = O(A(e7, [{ transformFn: X, paths: Oc }]));
3990
+ let t3 = O(A(e7, [{ transformFn: Ys, paths: kc }]));
3991
3991
  return { items: t3?.tags, pagingMetadata: t3?.pagingMetadata };
3992
3992
  }, errorTransformer: (e7) => {
3993
3993
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3994
3994
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
3995
3995
  }
3996
- async function Ac(e6, t2) {
3997
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Dc(D({ query: e6, ...t2 }));
3996
+ async function jc(e6, t2) {
3997
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oc(D({ query: e6, ...t2 }));
3998
3998
  r2?.onSiteCall?.();
3999
3999
  try {
4000
4000
  let e7 = await n2.request(i2);
4001
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Oc }]));
4001
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: kc }]));
4002
4002
  } catch (e7) {
4003
4003
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
4004
4004
  throw r2?.onError?.(e7), t3;
4005
4005
  }
4006
4006
  }
4007
- function jc(e6) {
4008
- return (t2) => kc(t2, { httpClient: e6 });
4009
- }
4010
4007
  function Mc(e6) {
4011
- return (t2, n2) => Ac(t2, n2, { httpClient: e6 });
4008
+ return (t2) => Ac(t2, { httpClient: e6 });
4012
4009
  }
4013
4010
  function Nc(e6) {
4014
- let t2 = Es({ builderQueryFunction: (t3) => jc(e6)(t3), typedQueryFunction: (t3, n3) => Mc(e6)(t3, n3), hasOptionsParameter: true });
4011
+ return (t2, n2) => jc(t2, n2, { httpClient: e6 });
4012
+ }
4013
+ function Pc(e6) {
4014
+ let t2 = Es({ builderQueryFunction: (t3) => Mc(e6)(t3), typedQueryFunction: (t3, n3) => Nc(e6)(t3, n3), hasOptionsParameter: true });
4015
4015
  function n2(e7, n3) {
4016
4016
  return t2(...arguments);
4017
4017
  }
4018
4018
  return n2;
4019
4019
  }
4020
- var Pc = M(Nc);
4021
- var Fc = (e6) => O(A(e6, [{ transformFn: X, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: Js, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: ac, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
4022
- var Ic = `https://blog.wixsite.com/blog-demo-posts`;
4020
+ var Fc = M(Pc);
4021
+ var Ic = (e6) => O(A(e6, [{ transformFn: Ys, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: Js, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: oc, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
4022
+ var Lc = `https://blog.wixsite.com/blog-demo-posts`;
4023
4023
  M((e6) => async (t2) => {
4024
4024
  let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${N(t2)}`);
4025
4025
  if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
4026
- return Fc(await n2.json()).filter((e7) => !e7.url?.startsWith(Ic));
4026
+ return Ic(await n2.json()).filter((e7) => !e7.url?.startsWith(Lc));
4027
4027
  });
4028
- var Lc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
4029
- function Rc(e6) {
4028
+ var Rc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
4029
+ function zc(e6) {
4030
4030
  return P(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
4031
4031
  }
4032
- var zc = `@wix/auto_sdk_members_members`;
4033
- function Bc(e6) {
4032
+ var Bc = `@wix/auto_sdk_members_members`;
4033
+ function Vc(e6) {
4034
4034
  function t2({ host: t3 }) {
4035
- return { entityFqdn: `wix.members.v1.member`, method: `GET`, methodFqn: `com.wixpress.members.api.Members.GetMember`, packageName: zc, migrationOptions: { optInTransformResponse: true }, url: Rc({ protoPath: `/v1/members/{id}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Lc }]) };
4035
+ return { entityFqdn: `wix.members.v1.member`, method: `GET`, methodFqn: `com.wixpress.members.api.Members.GetMember`, packageName: Bc, migrationOptions: { optInTransformResponse: true }, url: zc({ protoPath: `/v1/members/{id}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Rc }]) };
4036
4036
  }
4037
4037
  return t2;
4038
4038
  }
4039
- async function Vc(e6, t2) {
4040
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Bc(D({ id: e6, fieldsets: t2?.fieldsets }));
4039
+ async function Hc(e6, t2) {
4040
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Vc(D({ id: e6, fieldsets: t2?.fieldsets }));
4041
4041
  r2?.onSiteCall?.();
4042
4042
  try {
4043
4043
  let e7 = await n2.request(i2);
@@ -4047,70 +4047,70 @@ async function Vc(e6, t2) {
4047
4047
  throw r2?.onError?.(e7), t3;
4048
4048
  }
4049
4049
  }
4050
- function Hc(e6) {
4051
- return (t2, n2) => Vc(t2, n2, { httpClient: e6 });
4050
+ function Uc(e6) {
4051
+ return (t2, n2) => Hc(t2, n2, { httpClient: e6 });
4052
4052
  }
4053
- var Uc = M(Hc);
4054
- var Wc = async (e6) => {
4053
+ var Wc = M(Uc);
4054
+ var Gc = async (e6) => {
4055
4055
  try {
4056
- return await Uc(e6, { fieldsets: [`PUBLIC`] });
4056
+ return await Wc(e6, { fieldsets: [`PUBLIC`] });
4057
4057
  } catch {
4058
4058
  return;
4059
4059
  }
4060
4060
  };
4061
- var Gc = `wix.blog.v4.post`;
4062
- var Kc = async (e6, t2) => {
4063
- let n2 = await ss({ postFqdn: Gc, postId: e6 }, t2 ? { language: t2 } : void 0);
4061
+ var Kc = `wix.blog.v4.post`;
4062
+ var qc = async (e6, t2) => {
4063
+ let n2 = await ss({ postFqdn: Kc, postId: e6 }, t2 ? { language: t2 } : void 0);
4064
4064
  if (typeof n2 != `object` || !n2) throw Error(`No Wix SDK context for the post paywall read`);
4065
4065
  let { richContent: r2 } = n2;
4066
4066
  return D(r2);
4067
4067
  };
4068
- var qc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4069
- var Jc = `membership_plan_picker_tpa`;
4070
- var Yc = (e6) => {
4068
+ var Jc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4069
+ var Yc = `membership_plan_picker_tpa`;
4070
+ var Xc = (e6) => {
4071
4071
  let t2;
4072
4072
  try {
4073
- t2 = e6.appSectionRelativeUrl(qc, Jc);
4073
+ t2 = e6.appSectionRelativeUrl(Jc, Yc);
4074
4074
  } catch {
4075
4075
  return;
4076
4076
  }
4077
4077
  if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${t2.replace(/^\/+/, ``)}`;
4078
4078
  };
4079
- var Xc = (e6, t2) => e6.flatMap((e7) => {
4080
- let n2 = e7.nodes ? { ...e7, nodes: Xc(e7.nodes, t2) } : e7;
4079
+ var Zc = (e6, t2) => e6.flatMap((e7) => {
4080
+ let n2 = e7.nodes ? { ...e7, nodes: Zc(e7.nodes, t2) } : e7;
4081
4081
  return e7.type !== `BUTTON` || e7.buttonData?.type !== `ACTION` ? [n2] : t2 ? [{ ...n2, buttonData: { ...e7.buttonData, type: `LINK`, link: { url: t2, target: `SELF`, rel: { nofollow: true } } } }] : [];
4082
4082
  });
4083
- var Zc = (e6, t2, n2) => {
4083
+ var Qc = (e6, t2, n2) => {
4084
4084
  if (!t2?.nodes?.length) return e6;
4085
- let r2 = Xc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4085
+ let r2 = Zc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4086
4086
  return { ...e6, nodes: [...e6.nodes ?? [], ...r2] };
4087
4087
  };
4088
- var Qc = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4089
- var $c = [{ path: `posts.richContentCompressed` }];
4090
- var el = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4091
- var tl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4092
- function nl(e6) {
4088
+ var $c = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4089
+ var el = [{ path: `posts.richContentCompressed` }];
4090
+ var tl = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4091
+ var nl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4092
+ function rl(e6) {
4093
4093
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
4094
4094
  }
4095
- var rl = `@wix/auto_sdk_blog_posts`;
4096
- function il(e6) {
4095
+ var il = `@wix/auto_sdk_blog_posts`;
4096
+ function al(e6) {
4097
4097
  function t2({ host: t3 }) {
4098
- let n2 = A(e6, [{ transformFn: un, paths: tl }]);
4099
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: rl, migrationOptions: { optInTransformResponse: true }, url: nl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Qc }, { transformFn: dn, paths: $c }, { transformFn: F, paths: el }]) };
4098
+ let n2 = A(e6, [{ transformFn: un, paths: nl }]);
4099
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: il, migrationOptions: { optInTransformResponse: true }, url: rl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: $c }, { transformFn: fn, paths: el }, { transformFn: dn, paths: tl }]) };
4100
4100
  }
4101
4101
  return t2;
4102
4102
  }
4103
- function al() {
4104
- let e6 = il({});
4103
+ function ol() {
4104
+ let e6 = al({});
4105
4105
  return { getUrl: (t2) => {
4106
4106
  let { url: n2 } = e6(t2);
4107
4107
  return n2;
4108
4108
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
4109
4109
  }
4110
- var ol = al();
4111
- var sl = (e6) => (t2) => ({ method: `POST`, url: ol.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4112
- M((e6) => async (t2) => {
4113
- let { data: n2 } = await e6.request(sl(t2)), r2 = {};
4110
+ var sl = ol();
4111
+ var cl = (e6) => (t2) => ({ method: `POST`, url: sl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4112
+ var ll = M((e6) => async (t2) => {
4113
+ let { data: n2 } = await e6.request(cl(t2)), r2 = {};
4114
4114
  for (let e7 of n2.posts ?? []) {
4115
4115
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
4116
4116
  if (!t3 || !n3?.length) continue;
@@ -4119,115 +4119,125 @@ M((e6) => async (t2) => {
4119
4119
  }
4120
4120
  return r2;
4121
4121
  });
4122
- var cl = class extends Error {
4122
+ var ul = async (e6) => {
4123
+ if (e6.length === 0) return {};
4124
+ try {
4125
+ return await ll(e6);
4126
+ } catch {
4127
+ return {};
4128
+ }
4129
+ };
4130
+ var dl = class extends Error {
4123
4131
  constructor(e6, t2) {
4124
4132
  super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
4125
4133
  }
4126
4134
  };
4127
- var ll = (e6, t2, n2) => {
4135
+ var fl = (e6, t2, n2) => {
4128
4136
  let r2, i2 = new Promise((e7, i3) => {
4129
- r2 = setTimeout(() => i3(new cl(n2, t2)), t2);
4137
+ r2 = setTimeout(() => i3(new dl(n2, t2)), t2);
4130
4138
  });
4131
4139
  return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
4132
4140
  };
4133
- Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT;
4134
- var ul = [Z.RICH_CONTENT, Z.URL];
4135
- Z.URL, Z.METRICS;
4136
- var dl = (e6) => {
4141
+ X.RICH_CONTENT, X.SEO, X.URL, X.CONTENT_TEXT;
4142
+ var pl = [X.RICH_CONTENT, X.URL];
4143
+ X.URL, X.METRICS;
4144
+ var ml = (e6) => {
4137
4145
  let { status: t2, details: n2 } = e6 ?? {};
4138
4146
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
4139
4147
  };
4140
- var fl = (e6, t2) => {
4141
- if (t2 && !dl(e6)) throw e6;
4148
+ var hl = (e6, t2) => {
4149
+ if (t2 && !ml(e6)) throw e6;
4142
4150
  };
4143
- var pl = async (e6) => {
4151
+ var gl = (e6) => ul(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4152
+ var _l = async (e6) => {
4144
4153
  try {
4145
- let { metrics: t2 } = await Sc(e6);
4154
+ let { metrics: t2 } = await Cc(e6);
4146
4155
  return t2;
4147
4156
  } catch {
4148
4157
  return;
4149
4158
  }
4150
4159
  };
4151
- var ml = 100;
4152
- var hl = async () => {
4160
+ var vl = 100;
4161
+ var yl = async () => {
4153
4162
  try {
4154
- let { categories: e6 } = await ic({ paging: { limit: ml } });
4163
+ let { categories: e6 } = await ac({ paging: { limit: vl } });
4155
4164
  return e6 ?? [];
4156
4165
  } catch {
4157
4166
  return [];
4158
4167
  }
4159
4168
  };
4160
- var gl = (e6, t2) => {
4169
+ var bl = (e6, t2) => {
4161
4170
  let { categoryIds: n2 } = e6 ?? {};
4162
4171
  if (!n2?.length) return [];
4163
4172
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4164
4173
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4165
4174
  };
4166
- var _l = 30;
4167
- var vl = async (e6) => {
4175
+ var xl = 30;
4176
+ var Sl = async (e6) => {
4168
4177
  if (!e6?.length) return [];
4169
4178
  try {
4170
- let { items: t2 } = await Pc().in(`_id`, e6).limit(_l).find();
4179
+ let { items: t2 } = await Fc().in(`_id`, e6).limit(xl).find();
4171
4180
  return t2 ?? [];
4172
4181
  } catch {
4173
4182
  return [];
4174
4183
  }
4175
4184
  };
4176
- var yl = (e6, t2) => {
4185
+ var Cl = (e6, t2) => {
4177
4186
  let { tagIds: n2 } = e6 ?? {};
4178
4187
  if (!n2?.length) return [];
4179
4188
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4180
4189
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4181
4190
  };
4182
- var bl = 1e3;
4183
- var xl = async (e6, t2 = false) => {
4191
+ var wl = 1e3;
4192
+ var Tl = 1e3;
4193
+ var El = async (e6, t2 = false) => {
4184
4194
  try {
4185
- return (await xc(e6, { fieldsets: ul })).post;
4195
+ return (await Sc(e6, { fieldsets: pl })).post;
4186
4196
  } catch (e7) {
4187
- fl(e7, t2);
4197
+ hl(e7, t2);
4188
4198
  return;
4189
4199
  }
4190
4200
  };
4191
- var Sl = async (e6, t2 = false) => {
4192
- let n2 = hl();
4193
- return Cl(await xl(e6, t2), n2);
4201
+ var Dl = async (e6, t2 = false) => {
4202
+ let n2 = yl();
4203
+ return Ol(await El(e6, t2), n2);
4194
4204
  };
4195
- var Cl = async (e6, t2) => {
4196
- let { _id: n2, memberId: r2, tagIds: i2, preview: a2 } = e6 ?? {}, [o2, s2, c2, l2, u2] = await Promise.all([r2 ? Wc(r2) : void 0, n2 ? pl(n2) : void 0, t2, vl(i2), a2 && n2 ? ll(Kc(n2, e6?.language ?? void 0), bl, `post-paywall`).catch(() => void 0) : void 0]);
4197
- return { post: e6, author: o2, metrics: s2, categories: gl(e6, c2), tags: yl(e6, l2), ...u2 && { paywall: u2 } };
4205
+ var Ol = async (e6, t2) => {
4206
+ let { _id: n2, memberId: r2, tagIds: i2, preview: a2 } = e6 ?? {}, [o2, s2, c2, l2, u2, d2] = await Promise.all([r2 ? Gc(r2) : void 0, n2 ? _l(n2) : void 0, t2, Sl(i2), a2 && n2 ? fl(qc(n2, e6?.language ?? void 0), wl, `post-paywall`).catch(() => void 0) : void 0, fl(gl(e6 ? [e6] : []), Tl, `post-video`).catch(() => ({}))]), f2 = n2 ? d2[n2] : void 0;
4207
+ return { post: e6, author: o2, metrics: s2, categories: bl(e6, c2), tags: Cl(e6, l2), ...u2 && { paywall: u2 }, ...f2 && { videoSources: f2 } };
4198
4208
  };
4199
- var wl = (e6) => {
4209
+ var kl = (e6) => {
4200
4210
  let { _id: t2, categoryIds: n2, relatedPostIds: r2 } = e6 ?? {};
4201
4211
  return { currentPostId: t2 ?? void 0, categoryIds: n2, relatedPostIds: r2 };
4202
4212
  };
4203
- var Tl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4204
- var El = (e6) => {
4213
+ var Al = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4214
+ var jl = (e6) => {
4205
4215
  try {
4206
4216
  return e6.getMonitoringClient?.() ?? null;
4207
4217
  } catch {
4208
4218
  return null;
4209
4219
  }
4210
4220
  };
4211
- var Dl = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4212
- function Ol(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4213
- let o2 = Dl(e6, `captureException`);
4221
+ var Ml = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4222
+ function Nl(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4223
+ let o2 = Ml(e6, `captureException`);
4214
4224
  if (!o2) return;
4215
4225
  let s2 = t2 instanceof Error ? t2 : Error(String(t2));
4216
4226
  o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
4217
4227
  }
4218
- function kl(e6, t2, { feature: n2, tags: r2 }, i2) {
4219
- let a2 = Dl(e6, `startSpanManual`);
4228
+ function Pl(e6, t2, { feature: n2, tags: r2 }, i2) {
4229
+ let a2 = Ml(e6, `startSpanManual`);
4220
4230
  if (!a2) return i2;
4221
4231
  let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
4222
4232
  return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
4223
4233
  }
4224
- var Al = class extends import_react.Component {
4234
+ var Fl = class extends import_react.Component {
4225
4235
  state = { error: void 0 };
4226
4236
  static getDerivedStateFromError(e6) {
4227
4237
  return { error: e6 ?? Error(`Unknown render error`) };
4228
4238
  }
4229
4239
  componentDidCatch(e6, t2) {
4230
- Ol(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4240
+ Nl(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4231
4241
  }
4232
4242
  render() {
4233
4243
  if (this.state.error === void 0) return this.props.children;
@@ -4235,64 +4245,64 @@ var Al = class extends import_react.Component {
4235
4245
  return this.props.fallback;
4236
4246
  }
4237
4247
  };
4238
- var jl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4239
- var Ml = (e6) => {
4248
+ var Il = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4249
+ var Ll = (e6) => {
4240
4250
  if (e6 && typeof e6 == `object`) return (typeof e6.$eq == `string` ? e6.$eq : Array.isArray(e6.$in) ? e6.$in.find((e7) => typeof e7 == `string` && e7.trim() !== ``) : void 0)?.trim() || void 0;
4241
4251
  };
4242
- var Nl = `postId`;
4243
- var Pl = (e6) => Ml(e6?.[Nl]);
4244
- var Fl = (e6) => {
4252
+ var Rl = `postId`;
4253
+ var zl = (e6) => Ll(e6?.[Rl]);
4254
+ var Bl = (e6) => {
4245
4255
  let t2;
4246
4256
  try {
4247
- t2 = (0, import_services_manager_react.useService)(Xn);
4257
+ t2 = (0, import_services_manager_react.useService)(Zn);
4248
4258
  } catch {
4249
4259
  return;
4250
4260
  }
4251
- return lr(t2, e6);
4261
+ return ur(t2, e6);
4252
4262
  };
4253
- var Il = 1e4;
4254
- function Ll(e6) {
4263
+ var Vl = 1e4;
4264
+ function Hl(e6) {
4255
4265
  let [t2, n2] = (0, import_react.useState)(void 0);
4256
4266
  return (0, import_react.useEffect)(() => {
4257
4267
  let t3 = Date.now();
4258
- t3 - e6 > Il && (0, import_react.startTransition)(() => n2(t3));
4268
+ t3 - e6 > Vl && (0, import_react.startTransition)(() => n2(t3));
4259
4269
  }, []), t2 ?? e6;
4260
4270
  }
4261
- var Rl = `wix.blog.v3.post`;
4262
- var zl = async (e6) => {
4263
- await Gs({ like: { entityId: e6, fqdn: Rl } });
4271
+ var Ul = `wix.blog.v3.post`;
4272
+ var Wl = async (e6) => {
4273
+ await Gs({ like: { entityId: e6, fqdn: Ul } });
4264
4274
  };
4265
- var Bl = async (e6) => {
4266
- await Ks({ fqdn: Rl, entityId: e6 });
4275
+ var Gl = async (e6) => {
4276
+ await Ks({ fqdn: Ul, entityId: e6 });
4267
4277
  };
4268
- var Vl = (e6) => typeof e6 == `number` ? e6 : void 0;
4269
- var Hl = async (e6) => {
4270
- let [t2, n2] = await Promise.allSettled([qs().eq(`fqdn`, Rl).eq(`entityId`, e6).limit(1).find(), Sc(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
4271
- return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Vl(r2?.likes), viewCount: Vl(r2?.views), commentCount: Vl(r2?.comments) };
4278
+ var Kl = (e6) => typeof e6 == `number` ? e6 : void 0;
4279
+ var ql = async (e6) => {
4280
+ let [t2, n2] = await Promise.allSettled([qs().eq(`fqdn`, Ul).eq(`entityId`, e6).limit(1).find(), Cc(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
4281
+ return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Kl(r2?.likes), viewCount: Kl(r2?.views), commentCount: Kl(r2?.comments) };
4272
4282
  };
4273
- var Ul = I(`@wix/site-service-editor-context`);
4274
- var Wl = () => {
4283
+ var Jl = F(`@wix/site-service-editor-context`);
4284
+ var Yl = () => {
4275
4285
  try {
4276
- return !!(0, import_services_manager_react.useService)(Ul).previewMode;
4286
+ return !!(0, import_services_manager_react.useService)(Jl).previewMode;
4277
4287
  } catch {
4278
4288
  return false;
4279
4289
  }
4280
4290
  };
4281
- var Gl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4282
- var Kl = `wix-blog:post-like-toggled`;
4283
- var ql = () => {
4291
+ var Xl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4292
+ var Zl = `wix-blog:post-like-toggled`;
4293
+ var Ql = () => {
4284
4294
  let e6 = window;
4285
- return e6[Kl] ??= /* @__PURE__ */ new Map();
4295
+ return e6[Zl] ??= /* @__PURE__ */ new Map();
4286
4296
  };
4287
- var Jl = (e6) => {
4288
- ql().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Kl, { detail: e6 }));
4297
+ var $l = (e6) => {
4298
+ Ql().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Zl, { detail: e6 }));
4289
4299
  };
4290
- var Yl = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
4291
- var Xl = (e6, t2, n2 = false, r2) => {
4292
- let i2 = Wl() || n2, [a2, c2] = (0, import_react.useState)(Gl), p2 = (0, import_react.useRef)(Gl), m2 = (0, import_react.useRef)(t2), h2 = (0, import_react.useRef)(/* @__PURE__ */ new Set()), g2 = (0, import_react.useRef)(false), _2 = (0, import_react.useRef)(false), v2 = (0, import_react.useRef)(void 0), y2 = Jn(), [b2, x2] = (0, import_react.useState)(0);
4300
+ var eu = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
4301
+ var tu = (e6, t2, n2 = false, r2) => {
4302
+ let i2 = Yl() || n2, [a2, c2] = (0, import_react.useState)(Xl), p2 = (0, import_react.useRef)(Xl), m2 = (0, import_react.useRef)(t2), h2 = (0, import_react.useRef)(/* @__PURE__ */ new Set()), g2 = (0, import_react.useRef)(false), _2 = (0, import_react.useRef)(false), v2 = (0, import_react.useRef)(void 0), y2 = Yn(), [b2, x2] = (0, import_react.useState)(0);
4293
4303
  (0, import_react.useEffect)(() => {
4294
4304
  let e7 = y2?.addMemberLoginListener?.(() => {
4295
- ql().clear(), x2((e8) => e8 + 1);
4305
+ Ql().clear(), x2((e8) => e8 + 1);
4296
4306
  });
4297
4307
  return () => {
4298
4308
  e7 !== void 0 && y2?.removeMemberLoginListener?.(e7);
@@ -4301,21 +4311,21 @@ var Xl = (e6, t2, n2 = false, r2) => {
4301
4311
  let S2 = (0, import_react.useCallback)((e7) => {
4302
4312
  let t3 = p2.current, n3 = { ...t3, ...e7 };
4303
4313
  Object.keys(n3).every((e8) => n3[e8] === t3[e8]) || (p2.current = n3, h2.current.forEach((e8) => e8()), (0, import_react.startTransition)(() => c2(n3)));
4304
- }, []), C2 = (0, import_react.useMemo)(() => ({ get: () => Yl(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4314
+ }, []), C2 = (0, import_react.useMemo)(() => ({ get: () => eu(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4305
4315
  h2.current.delete(e7);
4306
4316
  }) }), []);
4307
4317
  (0, import_react.useEffect)(() => {
4308
4318
  m2.current !== t2 && (m2.current = t2, h2.current.forEach((e7) => e7()));
4309
4319
  }, [t2]), (0, import_react.useEffect)(() => {
4310
- if (v2.current !== e6 && (v2.current = e6, S2(Gl)), _2.current = false, !e6 || i2) {
4320
+ if (v2.current !== e6 && (v2.current = e6, S2(Xl)), _2.current = false, !e6 || i2) {
4311
4321
  S2({ isLikeCountLoaded: true });
4312
4322
  return;
4313
4323
  }
4314
4324
  let t3 = false;
4315
- return Hl(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4325
+ return ql(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4316
4326
  t3 || S2({ isLikeCountLoaded: true, viewCount: r3, commentCount: i3, baselineLiked: e7, freshLikeCount: n3, ...!_2.current && { liked: e7 } });
4317
4327
  }).catch((n3) => {
4318
- t3 || S2({ isLikeCountLoaded: true }), Ol(r2, n3, { feature: Tl.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4328
+ t3 || S2({ isLikeCountLoaded: true }), Nl(r2, n3, { feature: Al.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4319
4329
  }), () => {
4320
4330
  t3 = true;
4321
4331
  };
@@ -4323,32 +4333,32 @@ var Xl = (e6, t2, n2 = false, r2) => {
4323
4333
  if (!e6) return;
4324
4334
  let t3 = (e7) => {
4325
4335
  _2.current = true, S2({ liked: e7 });
4326
- }, n3 = ql().get(e6);
4336
+ }, n3 = Ql().get(e6);
4327
4337
  n3 !== void 0 && t3(n3);
4328
4338
  let r3 = (n4) => {
4329
4339
  let { detail: r4 } = n4;
4330
4340
  r4.postId === e6 && t3(r4.liked);
4331
4341
  };
4332
- return window.addEventListener(Kl, r3), () => window.removeEventListener(Kl, r3);
4342
+ return window.addEventListener(Zl, r3), () => window.removeEventListener(Zl, r3);
4333
4343
  }, [e6, S2]);
4334
4344
  let ee2 = (0, import_react.useCallback)(async (t3) => {
4335
4345
  if (!e6 || g2.current) return;
4336
4346
  _2.current = true;
4337
4347
  let n3 = !p2.current.liked;
4338
- if (S2({ liked: n3 }), Jl({ postId: e6, liked: n3 }), !i2) {
4348
+ if (S2({ liked: n3 }), $l({ postId: e6, liked: n3 }), !i2) {
4339
4349
  g2.current = true;
4340
4350
  try {
4341
- await (n3 ? zl(e6) : Bl(e6));
4351
+ await (n3 ? Wl(e6) : Gl(e6));
4342
4352
  } catch (t4) {
4343
- S2({ liked: !n3 }), Jl({ postId: e6, liked: !n3 }), Ol(r2, t4, { feature: Tl.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4353
+ S2({ liked: !n3 }), $l({ postId: e6, liked: !n3 }), Nl(r2, t4, { feature: Al.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4344
4354
  } finally {
4345
4355
  g2.current = false;
4346
4356
  }
4347
4357
  }
4348
4358
  }, [e6, i2, r2, S2]);
4349
- return { ...Yl(a2, t2), toggleLike: ee2, liveLikes: C2 };
4359
+ return { ...eu(a2, t2), toggleLike: ee2, liveLikes: C2 };
4350
4360
  };
4351
- var Zl = () => {
4361
+ var nu = () => {
4352
4362
  try {
4353
4363
  let { locale: e6, language: t2 } = (0, import_services_manager_react.useService)(xo);
4354
4364
  return e6 || t2;
@@ -4356,179 +4366,207 @@ var Zl = () => {
4356
4366
  return;
4357
4367
  }
4358
4368
  };
4359
- var Ql = () => {
4369
+ var ru = () => {
4360
4370
  try {
4361
- return Yc((0, import_services_manager_react.useService)(Xn));
4371
+ return Xc((0, import_services_manager_react.useService)(Zn));
4362
4372
  } catch {
4363
4373
  return;
4364
4374
  }
4365
4375
  };
4366
- var $l = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
4367
- var Q = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
4368
- var eu = (e6, t2) => {
4369
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: $l(r2, `full`, t2) });
4370
- return { timeToRead: (t3) => e6(Q.timeToRead, { count: t3 }), viewCount: n2(Q.viewCount), commentCount: n2(Q.commentCount), likeCount: n2(Q.likeCount), noPostsEmptyState: () => ({ title: e6(Q.noPostsTitle), description: e6(Q.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Q.noRelatedPostsTitle), description: e6(Q.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Q.canvasPostTitle), authorName: () => e6(Q.canvasAuthorName), excerpt: () => e6(Q.canvasExcerpt), content: () => e6(Q.canvasContent), category: () => e6(Q.canvasCategory), categoryNumbered: (t3) => e6(Q.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Q.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Q.canvasCoverAlt), authorPhotoAlt: () => e6(Q.canvasAuthorPhotoAlt) } };
4376
+ var iu = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
4377
+ var Z = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
4378
+ var au = (e6, t2) => {
4379
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: iu(r2, `full`, t2) });
4380
+ return { timeToRead: (t3) => e6(Z.timeToRead, { count: t3 }), viewCount: n2(Z.viewCount), commentCount: n2(Z.commentCount), likeCount: n2(Z.likeCount), noPostsEmptyState: () => ({ title: e6(Z.noPostsTitle), description: e6(Z.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Z.noRelatedPostsTitle), description: e6(Z.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Z.canvasPostTitle), authorName: () => e6(Z.canvasAuthorName), excerpt: () => e6(Z.canvasExcerpt), content: () => e6(Z.canvasContent), category: () => e6(Z.canvasCategory), categoryNumbered: (t3) => e6(Z.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Z.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Z.canvasCoverAlt), authorPhotoAlt: () => e6(Z.canvasAuthorPhotoAlt) } };
4371
4381
  };
4372
- var tu = (0, import_react.createContext)({ isEditor: false, isPreview: false });
4373
- var nu = () => (0, import_react.useContext)(tu);
4374
- var ru = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4375
- var iu = () => {
4382
+ var ou = (0, import_react.createContext)({ isEditor: false, isPreview: false });
4383
+ var su = () => (0, import_react.useContext)(ou);
4384
+ var cu = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4385
+ var lu = () => {
4376
4386
  try {
4377
- let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Un);
4387
+ let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Wn);
4378
4388
  return e6 || t2;
4379
4389
  } catch {
4380
4390
  return false;
4381
4391
  }
4382
4392
  };
4383
- var au = () => {
4384
- let e6 = iu();
4385
- return ru(nu()) && !e6;
4393
+ var uu = () => {
4394
+ let e6 = lu();
4395
+ return cu(su()) && !e6;
4386
4396
  };
4387
- var ou = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4388
- var $ = (e6) => ({ text: e6, html: `<p>${ou(e6)}</p>`, linkList: [] });
4389
- var su = 6e4;
4390
- var cu = su * 60;
4391
- var lu = cu * 24;
4392
- var uu = lu * 7;
4393
- var du = (e6) => e6 < su ? [`second`, e6 / 1e3] : e6 < cu ? [`minute`, e6 / su] : e6 < lu ? [`hour`, e6 / cu] : [`day`, e6 / lu];
4394
- var fu = (e6, t2, n2 = Date.now()) => {
4397
+ var du = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4398
+ var fu = (e6) => {
4399
+ if (!e6) return;
4400
+ let t2 = e6 instanceof Date ? e6 : new Date(e6);
4401
+ return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4402
+ };
4403
+ var pu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4404
+ var mu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4405
+ var Q = (e6) => ({ text: e6, html: `<p>${mu(e6)}</p>`, linkList: [] });
4406
+ var hu = 6e4;
4407
+ var gu = hu * 60;
4408
+ var _u = gu * 24;
4409
+ var vu = _u * 7;
4410
+ var yu = (e6) => e6 < hu ? [`second`, e6 / 1e3] : e6 < gu ? [`minute`, e6 / hu] : e6 < _u ? [`hour`, e6 / gu] : [`day`, e6 / _u];
4411
+ var bu = (e6, t2, n2 = Date.now()) => {
4395
4412
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4396
- if (i2 >= 0 && i2 < uu) {
4397
- let [e7, n3] = du(i2);
4413
+ if (i2 >= 0 && i2 < vu) {
4414
+ let [e7, n3] = yu(i2);
4398
4415
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4399
4416
  }
4400
4417
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4401
4418
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4402
4419
  };
4403
- var pu = `https://static.wixstatic.com/media/`;
4404
- var mu = 100;
4405
- var hu = (e6, t2 = ``) => {
4420
+ var xu = `https://static.wixstatic.com/media/`;
4421
+ var Su = 100;
4422
+ var Cu = (e6, t2 = ``) => {
4406
4423
  let n2 = e6?.profile?.photo;
4407
4424
  if (!n2?.url) return;
4408
- let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(pu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4409
- return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || mu, height: n2.height || mu, alt: r2 ?? t2 };
4410
- };
4411
- var gu = `https://static.wixstatic.com/media/`;
4412
- var _u = `wix:image://`;
4413
- var vu = 1200;
4414
- var yu = 800;
4415
- var bu = (e6) => {
4425
+ let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(xu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4426
+ return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Su, height: n2.height || Su, alt: r2 ?? t2 };
4427
+ };
4428
+ var wu = `https://static.wixstatic.com/media/`;
4429
+ var Tu = `wix:image://`;
4430
+ var Eu = 1200;
4431
+ var Du = 800;
4432
+ var Ou = (e6) => {
4416
4433
  if (!e6) return;
4417
4434
  let t2 = Number.parseInt(e6, 10);
4418
4435
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4419
4436
  };
4420
- var xu = (e6) => {
4421
- if (!e6.startsWith(_u)) {
4437
+ var ku = (e6) => {
4438
+ if (!e6.startsWith(Tu)) {
4422
4439
  let t3 = e6.split(/[?#]/)[0];
4423
4440
  return t3 ? { uri: t3 } : void 0;
4424
4441
  }
4425
4442
  let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
4426
4443
  if (!r2) return;
4427
4444
  let a2 = new URLSearchParams(n2 ?? ``);
4428
- return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: bu(a2.get(`originWidth`)), height: bu(a2.get(`originHeight`)) };
4445
+ return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Ou(a2.get(`originWidth`)), height: Ou(a2.get(`originHeight`)) };
4429
4446
  };
4430
- var Su = (e6, t2) => {
4447
+ var Au = (e6, t2) => {
4431
4448
  if (!e6) return;
4432
- let n2 = xu(e6);
4449
+ let n2 = ku(e6);
4433
4450
  if (!n2) return;
4434
4451
  let r2 = n2.name ?? n2.uri;
4435
- return { uri: n2.uri, url: `${gu}${n2.uri}`, name: r2, width: n2.width ?? vu, height: n2.height ?? yu, alt: t2 ?? r2 };
4452
+ return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: t2 ?? r2 };
4436
4453
  };
4437
- var Cu = (e6) => {
4454
+ var ju = (e6) => {
4438
4455
  let t2 = e6?.media?.wixMedia?.image;
4439
4456
  if (!t2) return;
4440
- let n2 = xu(t2);
4457
+ let n2 = ku(t2);
4441
4458
  if (!n2) return;
4442
4459
  let r2 = n2.name ?? n2.uri;
4443
- return { uri: n2.uri, url: `${gu}${n2.uri}`, name: r2, width: n2.width ?? vu, height: n2.height ?? yu, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4460
+ return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4444
4461
  };
4445
- var wu = `https://static.wixstatic.com/media/`;
4446
- var Tu = `wix:video://`;
4447
- var Eu = (e6) => {
4462
+ var Mu = `https://static.wixstatic.com/media/`;
4463
+ var Nu = `wix:video://`;
4464
+ var Pu = (e6) => {
4448
4465
  if (!e6) return;
4449
4466
  let t2 = Number.parseInt(e6, 10);
4450
4467
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4451
4468
  };
4452
- var Du = (e6) => {
4453
- if (!e6.startsWith(Tu)) return;
4469
+ var Fu = (e6) => {
4470
+ if (!e6.startsWith(Nu)) return;
4454
4471
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4455
4472
  if (!r2) return;
4456
4473
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4457
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${wu}${a2}` : void 0, posterWidth: Eu(i2.get(`posterWidth`)), posterHeight: Eu(i2.get(`posterHeight`)) };
4474
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Mu}${a2}` : void 0, posterWidth: Pu(i2.get(`posterWidth`)), posterHeight: Pu(i2.get(`posterHeight`)) };
4458
4475
  };
4459
- var Ou = (e6) => {
4460
- let t2 = Cu(e6), n2 = e6?.media?.wixMedia?.videoV2;
4476
+ var Iu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4477
+ var Lu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4478
+ var Ru = (e6, t2) => {
4479
+ for (let n2 of e6) {
4480
+ let e7 = n2.exec(t2);
4481
+ if (e7) return e7[1];
4482
+ }
4483
+ };
4484
+ var zu = (e6) => {
4485
+ let t2 = Ru(Iu, e6);
4486
+ if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4487
+ let n2 = Ru(Lu, e6);
4488
+ return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4489
+ };
4490
+ var Bu = (e6, t2 = []) => {
4491
+ let n2 = e6?.media;
4492
+ if (!n2 || n2.displayed === false) return;
4493
+ let r2 = ju(e6);
4494
+ if (r2) return { kind: `image`, image: r2 };
4495
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Fu(n2.wixMedia.videoV2) : void 0;
4496
+ if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4497
+ let o2 = n2.embedMedia?.video?.url;
4498
+ if (o2) {
4499
+ let { thumbnail: e7 } = n2.embedMedia ?? {};
4500
+ return { kind: `embed`, videoUrl: o2, ...zu(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4501
+ }
4502
+ };
4503
+ var Vu = (e6) => {
4504
+ let t2 = ju(e6), n2 = e6?.media?.wixMedia?.videoV2;
4461
4505
  if (t2 || !n2) return t2;
4462
- let r2 = Du(n2), i2 = Su(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4506
+ let r2 = Fu(n2), i2 = Au(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4463
4507
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4464
4508
  };
4465
- var ku = (e6) => {
4466
- if (!e6) return;
4467
- let t2 = e6 instanceof Date ? e6 : new Date(e6);
4468
- return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4469
- };
4470
- var Au = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4471
- var ju = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4472
- var Mu = (e6, t2) => {
4473
- let n2 = ju(e6, t2);
4509
+ var Hu = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4510
+ var Uu = (e6, t2) => {
4511
+ let n2 = Hu(e6, t2);
4474
4512
  return n2 ? { href: n2, target: `_self` } : void 0;
4475
4513
  };
4476
- var Nu = { href: `#`, target: `_self` };
4477
- var Pu = (e6, t2) => {
4514
+ var Wu = { href: `#`, target: `_self` };
4515
+ var Gu = (e6, t2) => {
4478
4516
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4479
- return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: $(a2), itemCategoryLink: Mu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4517
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: Q(a2), itemCategoryLink: Uu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4480
4518
  };
4481
- var Fu = 2;
4482
- var Iu = (e6) => Array.from({ length: Fu }, (t2, n2) => {
4519
+ var Ku = 2;
4520
+ var qu = (e6) => Array.from({ length: Ku }, (t2, n2) => {
4483
4521
  let r2 = e6.canvas.categoryNumbered(n2 + 1);
4484
- return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: $(r2), itemCategoryLink: Nu, categoryItem: { label: r2, slug: `` } };
4522
+ return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: Q(r2), itemCategoryLink: Wu, categoryItem: { label: r2, slug: `` } };
4485
4523
  });
4486
- var Lu = (e6, t2) => {
4524
+ var Ju = (e6, t2) => {
4487
4525
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4488
- return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: $(a2), itemTagLink: Mu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4526
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: Q(a2), itemTagLink: Uu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4489
4527
  };
4490
- var Ru = 3;
4491
- var zu = (e6) => Array.from({ length: Ru }, (t2, n2) => {
4528
+ var Yu = 3;
4529
+ var Xu = (e6) => Array.from({ length: Yu }, (t2, n2) => {
4492
4530
  let r2 = e6.canvas.tagNumbered(n2 + 1);
4493
- return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: $(r2), itemTagLink: Nu, tagItem: { label: r2, slug: `` } };
4531
+ return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: Q(r2), itemTagLink: Wu, tagItem: { label: r2, slug: `` } };
4494
4532
  });
4495
- var Bu = 1;
4496
- var Vu = { views: 120, comments: 4, likes: 12 };
4497
- var Hu = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4498
- var Uu = (e6, t2, n2, r2) => $(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4499
- var Wu = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4500
- var Gu = { nodes: [] };
4501
- var Ku = () => ({ title: $(``), excerpt: $(``), coverImage: void 0, richContent: Gu, authorName: $(``), authorImage: void 0, timeToRead: $(``), publishedDate: $(``), viewCount: $(``), commentCount: $(``), likeCount: $(``), postCategories: [], postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
4502
- var qu = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2 }, a2, o2, s2 = false, c2 = Date.now(), l2 = {}) => !e6 && !s2 ? Ku() : { title: $(e6?.title ?? a2.canvas.postTitle()), excerpt: $(e6?.excerpt ?? a2.canvas.excerpt()), coverImage: Ou(e6), richContent: e6?.richContent ?? Hu(a2.canvas.content()), authorName: $(t2?.profile?.nickname ?? a2.canvas.authorName()), authorImage: hu(t2, a2.canvas.authorPhotoAlt()), timeToRead: $(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? a2.timeToRead(e6.minutesToRead) : s2 ? a2.timeToRead(Bu) : ``), publishedDate: $(fu(e6?.firstPublishedDate ?? new Date(c2), o2, c2)), viewCount: Uu(n2?.views, Vu.views, s2, a2.viewCount), commentCount: Uu(n2?.comments, Vu.comments, s2, a2.commentCount), likeCount: Uu(n2?.likes, Vu.likes, s2, a2.likeCount), postCategories: r2.length === 0 && s2 ? Iu(a2) : r2.map((e7) => Pu(e7, l2.category)), postTags: i2.length === 0 && s2 ? zu(a2) : i2.map((e7) => Lu(e7, l2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && Ou(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: ku(e6?.firstPublishedDate) ?? (s2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: Au(e6?.minutesToRead) ?? (s2 ? Bu : void 0), viewCountValue: Wu(n2?.views, Vu.views, s2), commentCountValue: Wu(n2?.comments, Vu.comments, s2) };
4503
- var Ju = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4504
- let { t: a2 } = yo(), o2 = Zl(), s2 = (0, import_react.useMemo)(() => eu(a2, o2), [a2, o2]), c2 = Ll(e6.fetchedAt), l2 = au(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = Xl(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = Fl($n), y2 = Fl(`tag`), b2 = (0, import_react.useMemo)(() => wl(e6.post), [e6]), x2 = Ql(), S2 = (0, import_react.useMemo)(() => e6.post?.richContent && e6.paywall ? Zc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4533
+ var Zu = 1;
4534
+ var $ = { views: 120, comments: 4, likes: 12 };
4535
+ var Qu = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4536
+ var $u = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4537
+ var ed = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4538
+ var td = { nodes: [] };
4539
+ var nd = () => ({ title: Q(``), excerpt: Q(``), coverImage: void 0, coverMedia: void 0, richContent: td, authorName: Q(``), authorImage: void 0, timeToRead: Q(``), publishedDate: Q(``), viewCount: Q(``), commentCount: Q(``), likeCount: Q(``), postCategories: [], itemCategoryLabel: Q(``), postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
4540
+ var rd = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? nd() : { title: Q(e6?.title ?? o2.canvas.postTitle()), excerpt: Q(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: Vu(e6), coverMedia: Bu(e6, a2), richContent: e6?.richContent ?? Qu(o2.canvas.content()), authorName: Q(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage: Cu(t2, o2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? o2.timeToRead(e6.minutesToRead) : c2 ? o2.timeToRead(Zu) : ``), publishedDate: Q(bu(e6?.firstPublishedDate ?? new Date(l2), s2, l2)), viewCount: $u(n2?.views, $.views, c2, o2.viewCount), commentCount: $u(n2?.comments, $.comments, c2, o2.commentCount), likeCount: $u(n2?.likes, $.likes, c2, o2.likeCount), postCategories: r2.length === 0 && c2 ? qu(o2) : r2.map((e7) => Gu(e7, u2.category)), itemCategoryLabel: Q(r2[0]?.label ?? (c2 ? o2.canvas.category() : ``)), postTags: i2.length === 0 && c2 ? Xu(o2) : i2.map((e7) => Ju(e7, u2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && Vu(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: fu(e6?.firstPublishedDate) ?? (c2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: pu(e6?.minutesToRead) ?? (c2 ? Zu : void 0), viewCountValue: ed(n2?.views, $.views, c2), commentCountValue: ed(n2?.comments, $.comments, c2) };
4541
+ var id = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4542
+ let { t: a2 } = yo(), o2 = nu(), s2 = (0, import_react.useMemo)(() => au(a2, o2), [a2, o2]), c2 = Hl(e6.fetchedAt), l2 = uu(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = tu(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = Bl(er), y2 = Bl(`tag`), b2 = (0, import_react.useMemo)(() => kl(e6.post), [e6]), x2 = ru(), S2 = (0, import_react.useMemo)(() => e6.post?.richContent && e6.paywall ? Qc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4505
4543
  return (0, import_react.useMemo)(() => {
4506
- let n3 = qu(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 });
4507
- return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, postUrl: r2 || !e6.post ? void 0 : cr(e6.post, i2)?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: $(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4544
+ let n3 = rd(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 : lr(e6.post, i2), u2 = a3 ?? (l2 ? du(i2) : void 0);
4545
+ return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, itemLink: u2, postUrl: a3?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: Q(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4508
4546
  }, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
4509
4547
  };
4510
- var Yu = (e6) => ({ post: e6, hasError: false });
4511
- var Xu = () => ({ post: { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: Date.now() }, hasError: true });
4512
- var Zu = (e6) => {
4548
+ var ad = (e6) => ({ post: e6, hasError: false });
4549
+ var od = () => ({ post: { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: Date.now() }, hasError: true });
4550
+ var sd = (e6) => {
4513
4551
  throw e6;
4514
4552
  };
4515
- var Qu = { ...Ku(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4516
- }, liveLikes: void 0, postUrl: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, commentingEnabled: void 0, isLoadingPost: true, hasError: false, isEmpty: false };
4517
- var $u = { ...Qu, isLoadingPost: false, hasError: true, isEmpty: true };
4518
- var ed = 2500;
4519
- var td = Promise.resolve(Yu({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4520
- var nd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4521
- let { post: a2, hasError: o2 } = Bn(r2), c2 = Yn(a2, (0, import_react.useCallback)(() => n2 ? xl(n2) : Promise.resolve(void 0), [n2])), l2 = Ju({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: ur() });
4522
- return pr(dr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: l2, children: t2 });
4523
- };
4524
- function rd({ children: t2, postPicker: n2 }) {
4525
- let i2 = Pl(n2), a2 = Wn(), o2 = hr(), s2 = (0, import_react.useMemo)(() => El(Rn), []), { i18n: c2, locale: l2 } = Go($o), d2 = Kn(() => i2 ? Hn(Mo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4526
- let e6 = Sl(i2, a2);
4527
- return jl(kl(s2, `post-by-id-read`, { feature: Tl.post }, a2 ? ll(e6, ed, `post-by-id`) : e6));
4528
- } }), Yu, a2 ? Zu : Xu) : td, [i2, a2, o2, s2]);
4529
- return (0, import_jsx_runtime.jsx)(bo, { i18n: c2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: Qu, children: t2 }), children: [(0, import_jsx_runtime.jsx)(Wo, { i18n: c2, locale: l2 }), (0, import_jsx_runtime.jsx)(Al, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: $u, children: t2 }), feature: Tl.post, monitoringClient: s2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(nd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4530
- }
4531
- var id = jn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4553
+ var cd = { ...nd(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4554
+ }, liveLikes: void 0, postUrl: void 0, itemLink: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, commentingEnabled: void 0, isLoadingPost: true, hasError: false, isEmpty: false };
4555
+ var ld = { ...cd, isLoadingPost: false, hasError: true, isEmpty: true };
4556
+ var ud = 2500;
4557
+ var dd = Promise.resolve(ad({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4558
+ var fd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4559
+ let { post: a2, hasError: o2 } = Vn(r2), c2 = Xn(a2, (0, import_react.useCallback)(() => n2 ? El(n2) : Promise.resolve(void 0), [n2])), l2 = id({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: dr() });
4560
+ return mr(fr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: l2, children: t2 });
4561
+ };
4562
+ function pd({ children: t2, postPicker: n2 }) {
4563
+ let i2 = zl(n2), a2 = Gn(), o2 = gr(), s2 = (0, import_react.useMemo)(() => jl(zn), []), { i18n: c2, locale: l2 } = Go($o), d2 = qn(() => i2 ? Un(Mo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4564
+ let e6 = Dl(i2, a2);
4565
+ return Il(Pl(s2, `post-by-id-read`, { feature: Al.post }, a2 ? fl(e6, ud, `post-by-id`) : e6));
4566
+ } }), ad, a2 ? sd : od) : dd, [i2, a2, o2, s2]);
4567
+ return (0, import_jsx_runtime.jsx)(bo, { i18n: c2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: cd, children: t2 }), children: [(0, import_jsx_runtime.jsx)(Wo, { i18n: c2, locale: l2 }), (0, import_jsx_runtime.jsx)(Fl, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: ld, children: t2 }), feature: Al.post, monitoringClient: s2, rethrow: a2, children: (0, import_jsx_runtime.jsx)(fd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4568
+ }
4569
+ var md = Mn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4532
4570
  // Annotate the CommonJS export names for ESM import in node:
4533
4571
  0 && (module.exports = {
4534
4572
  PostByIdProvider,