@wix/blog 1.0.701 → 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 +200 -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 +200 -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 +200 -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 +200 -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 +200 -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
@@ -786,21 +786,21 @@ function ln(e6, t2) {
786
786
  function un(e6) {
787
787
  return isFinite(e6) ? e6 : e6.toString();
788
788
  }
789
- function F(e6) {
789
+ function dn(e6) {
790
790
  return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
791
791
  }
792
- function dn(e6) {
792
+ function fn(e6) {
793
793
  return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
794
794
  }
795
- var fn = `modulepreload`;
796
- var pn = function(e6, t2) {
795
+ var pn = `modulepreload`;
796
+ var mn = function(e6, t2) {
797
797
  return new URL(e6, t2).href;
798
798
  };
799
- var mn = {};
800
- var hn = function(e6) {
799
+ var hn = {};
800
+ var gn = function(e6) {
801
801
  return e6.pathname.endsWith(`.css`);
802
802
  };
803
- var gn = function(e6, t2, n2) {
803
+ var _n = function(e6, t2, n2) {
804
804
  if (t2 in e6) return e6[t2];
805
805
  let r2 = n2();
806
806
  if (!r2) {
@@ -814,7 +814,7 @@ var gn = function(e6, t2, n2) {
814
814
  });
815
815
  return e6[t2] = i2, i2;
816
816
  };
817
- var _n = function(e6, t2, n2) {
817
+ var vn = function(e6, t2, n2) {
818
818
  let r2 = Promise.resolve();
819
819
  if (t2 && t2.length > 0) {
820
820
  let o3 = function(e8) {
@@ -825,9 +825,9 @@ var _n = function(e6, t2, n2) {
825
825
  var o2 = o3, s2 = s3;
826
826
  let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
827
827
  r2 = o3(t2.map((t3) => {
828
- t3 = pn(t3, n2);
829
- let r3 = s3(t3), i4 = hn(r3);
830
- return gn(mn, r3.href, () => {
828
+ t3 = mn(t3, n2);
829
+ let r3 = s3(t3), i4 = gn(r3);
830
+ return _n(hn, r3.href, () => {
831
831
  if (e7 === void 0) {
832
832
  e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
833
833
  let t5 = document.getElementsByTagName(`link`);
@@ -838,7 +838,7 @@ var _n = function(e6, t2, n2) {
838
838
  }
839
839
  if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
840
840
  let t4 = document.createElement(`link`);
841
- 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) => {
841
+ 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) => {
842
842
  t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
843
843
  });
844
844
  });
@@ -853,30 +853,30 @@ var _n = function(e6, t2, n2) {
853
853
  return e6().catch(i2);
854
854
  });
855
855
  };
856
- var vn = `x-wix-linguist`;
857
- var yn = `00000000-0000-0000-0000-000000000000`;
858
- var bn = `false`;
859
- var xn = () => {
860
- let e6 = wn(`language`), t2 = wn(`locale`);
861
- if (e6) return { [vn]: [e6, t2 || e6, bn, yn].join(`|`) };
856
+ var yn = `x-wix-linguist`;
857
+ var bn = `00000000-0000-0000-0000-000000000000`;
858
+ var xn = `false`;
859
+ var Sn = () => {
860
+ let e6 = Tn(`language`), t2 = Tn(`locale`);
861
+ if (e6) return { [yn]: [e6, t2 || e6, xn, bn].join(`|`) };
862
862
  };
863
- function Sn() {
863
+ function Cn() {
864
864
  let e6 = null, t2 = null;
865
865
  return { promise: new Promise((n2, r2) => {
866
866
  e6 = n2, t2 = r2;
867
867
  }), resolve: e6, reject: t2 };
868
868
  }
869
- var Cn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
870
- var wn = (e6) => Cn()?.[e6];
871
- var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
872
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = Dn();
873
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: wn(`language`), locale: wn(`locale`), get passThroughHeaders() {
874
- return xn();
869
+ var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
870
+ var Tn = (e6) => wn()?.[e6];
871
+ var En = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
872
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = On();
873
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
874
+ return Sn();
875
875
  } } };
876
876
  }, auth: (e7) => {
877
877
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
878
- !e7 && En() && (e7 = t2?.getAccessTokenFunction?.());
879
- let n2 = false, { resolve: r2, promise: i2 } = Sn();
878
+ !e7 && Dn() && (e7 = t2?.getAccessTokenFunction?.());
879
+ let n2 = false, { resolve: r2, promise: i2 } = Cn();
880
880
  return { getAuthHeaders: async () => {
881
881
  if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
882
882
  return { headers: { Authorization: await e7() } };
@@ -884,37 +884,37 @@ var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
884
884
  r2(e8);
885
885
  }) };
886
886
  } });
887
- function En() {
887
+ function Dn() {
888
888
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
889
889
  }
890
- function Dn() {
890
+ function On() {
891
891
  let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
892
892
  if (!e6) return;
893
893
  let t2 = new URL(e6);
894
894
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
895
895
  }
896
- var On = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
896
+ var kn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
897
897
  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`);
898
898
  return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
899
899
  }, getAccessToken: () => {
900
900
  throw Error(`Not implemented`);
901
901
  }, observeState: () => ({ disconnect: () => {
902
902
  } }) });
903
- var kn = Tn({ createHost: function(e6) {
903
+ var An = En({ createHost: function(e6) {
904
904
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
905
905
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
906
- return { channel: On({ clientSdk: t2, applicationId: n2 }), close: () => {
906
+ return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
907
907
  } };
908
908
  } });
909
- var An = (e6, t2) => {
910
- let n2 = kn.host({ applicationId: e6, componentId: t2 }), r2 = kn.auth();
909
+ var jn = (e6, t2) => {
910
+ let n2 = An.host({ applicationId: e6, componentId: t2 }), r2 = An.auth();
911
911
  return Je({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
912
912
  };
913
- var jn = (e6) => An(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
914
- function Mn() {
913
+ var Mn = (e6) => jn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
914
+ function Nn() {
915
915
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
916
916
  if (e6) return { initWixModules(t3, n3) {
917
- return Nn(() => e6(t3, n3));
917
+ return Pn(() => e6(t3, n3));
918
918
  }, fetchWithAuth() {
919
919
  throw Error(`fetchWithAuth is not available in this context`);
920
920
  }, graphql() {
@@ -924,10 +924,10 @@ function Mn() {
924
924
  if (t2 || n2) return { initWixModules(e7, r2) {
925
925
  if (r2) {
926
926
  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`);
927
- return Nn(() => n2.use(e7));
927
+ return Pn(() => n2.use(e7));
928
928
  }
929
929
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
930
- return Nn(() => t2.use(e7));
930
+ return Pn(() => t2.use(e7));
931
931
  }, fetchWithAuth: (e7, n3) => {
932
932
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
933
933
  return t2.fetchWithAuth(e7, n3);
@@ -939,7 +939,7 @@ function Mn() {
939
939
  return t2.graphql(e7, n3, r2);
940
940
  } };
941
941
  }
942
- function Nn(e6) {
942
+ function Pn(e6) {
943
943
  let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
944
944
  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);
945
945
  try {
@@ -948,17 +948,17 @@ function Nn(e6) {
948
948
  globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
949
949
  }
950
950
  }
951
- function Pn(e6, t2) {
951
+ function Fn(e6, t2) {
952
952
  return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
953
- let r2 = Mn();
953
+ let r2 = Nn();
954
954
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
955
955
  return r2.initWixModules(e6)[t3].apply(void 0, n2);
956
956
  }])) };
957
957
  }
958
- function Fn(e6) {
959
- return Pn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
958
+ function In(e6) {
959
+ return Fn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
960
960
  }
961
- var In = class {
961
+ var Ln = class {
962
962
  constructor(e6) {
963
963
  this.message = e6, this.captureException = () => {
964
964
  console.error(this.message);
@@ -973,13 +973,13 @@ var In = class {
973
973
  };
974
974
  }
975
975
  };
976
- var Ln = (e6) => new In(e6);
977
- 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.`) });
978
- function zn(e6) {
976
+ var Rn = (e6) => new Ln(e6);
977
+ 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.`) });
978
+ function Bn(e6) {
979
979
  let t2 = Promise.resolve(e6);
980
980
  return t2.status = `fulfilled`, t2.value = e6, t2;
981
981
  }
982
- function Bn(e6) {
982
+ function Vn(e6) {
983
983
  if (e6.status === `fulfilled`) return e6.value;
984
984
  throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
985
985
  e6.status = `fulfilled`, e6.value = t2;
@@ -987,17 +987,17 @@ function Bn(e6) {
987
987
  e6.status = `rejected`, e6.reason = t2;
988
988
  })), e6);
989
989
  }
990
- var Vn = /* @__PURE__ */ new WeakMap();
991
- function Hn(e6, t2, n2) {
992
- let r2 = Vn.get(e6);
993
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), Vn.set(e6, r2));
990
+ var Hn = /* @__PURE__ */ new WeakMap();
991
+ function Un(e6, t2, n2) {
992
+ let r2 = Hn.get(e6);
993
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Hn.set(e6, r2));
994
994
  let i2 = r2.get(t2);
995
995
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
996
996
  let a2 = i2.get(n2);
997
997
  if (!a2) {
998
- if (e6.status === `fulfilled`) a2 = zn(t2(e6.value));
998
+ if (e6.status === `fulfilled`) a2 = Bn(t2(e6.value));
999
999
  else if (e6.status === `rejected`) try {
1000
- a2 = zn(n2(e6.reason));
1000
+ a2 = Bn(n2(e6.reason));
1001
1001
  } catch {
1002
1002
  a2 = e6.then(t2, n2);
1003
1003
  }
@@ -1006,36 +1006,36 @@ function Hn(e6, t2, n2) {
1006
1006
  }
1007
1007
  return a2;
1008
1008
  }
1009
- function I(e6) {
1009
+ function F(e6) {
1010
1010
  return e6;
1011
1011
  }
1012
- var Un = I(`@wix/site-service-rendering-context`);
1013
- var Wn = () => {
1012
+ var Wn = F(`@wix/site-service-rendering-context`);
1013
+ var Gn = () => {
1014
1014
  try {
1015
- return m(Un).SSR;
1015
+ return m(Wn).SSR;
1016
1016
  } catch {
1017
1017
  return false;
1018
1018
  }
1019
1019
  };
1020
- var Gn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1021
- function Kn(e6, t2) {
1020
+ var Kn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1021
+ function qn(e6, t2) {
1022
1022
  let [n2, r2] = f(() => ({ deps: t2, value: e6() }));
1023
1023
  return l(() => {
1024
- if (Gn(n2.deps, t2)) return;
1024
+ if (Kn(n2.deps, t2)) return;
1025
1025
  let i2 = e6();
1026
1026
  o(() => r2({ deps: t2, value: i2 }));
1027
1027
  }, t2), n2.value;
1028
1028
  }
1029
- var qn = I(`@wix/viewer-service-site-members`);
1030
- var Jn = () => {
1029
+ var Jn = F(`@wix/viewer-service-site-members`);
1030
+ var Yn = () => {
1031
1031
  try {
1032
- return m(qn);
1032
+ return m(Jn);
1033
1033
  } catch {
1034
1034
  return;
1035
1035
  }
1036
1036
  };
1037
- var Yn = (e6, t2) => {
1038
- let n2 = Jn(), [r2, i2] = f(), a2 = !!e6.post?.preview;
1037
+ var Xn = (e6, t2) => {
1038
+ let n2 = Yn(), [r2, i2] = f(), a2 = !!e6.post?.preview;
1039
1039
  return l(() => {
1040
1040
  if (!a2) return;
1041
1041
  let e7 = true, r3 = () => {
@@ -1053,18 +1053,18 @@ var Yn = (e6, t2) => {
1053
1053
  };
1054
1054
  }, [a2, t2, n2]), u(() => a2 && r2 && r2._id === e6.post?._id ? { ...e6, post: r2, paywall: void 0 } : e6, [a2, r2, e6]);
1055
1055
  };
1056
- var Xn = I(`@wix/site-service-url`);
1057
- var Zn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1058
- var Qn = `post`;
1059
- var $n = `category`;
1060
- var er = `builder-post`;
1061
- var tr = `__blog_unknown_section__`;
1062
- var nr = (e6) => {
1056
+ var Zn = F(`@wix/site-service-url`);
1057
+ var Qn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1058
+ var $n = `post`;
1059
+ var er = `category`;
1060
+ var tr = `builder-post`;
1061
+ var nr = `__blog_unknown_section__`;
1062
+ var rr = (e6) => {
1063
1063
  let t2;
1064
1064
  try {
1065
- let n3 = e6.appSectionRelativeUrl(Zn, er);
1066
- if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, tr) && !n3?.endsWith(`/post-page`)) return;
1067
- t2 = e6.appSectionRelativeUrl(Zn, er, true);
1065
+ let n3 = e6.appSectionRelativeUrl(Qn, tr);
1066
+ if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, nr) && !n3?.endsWith(`/post-page`)) return;
1067
+ t2 = e6.appSectionRelativeUrl(Qn, tr, true);
1068
1068
  } catch {
1069
1069
  return;
1070
1070
  }
@@ -1072,12 +1072,12 @@ var nr = (e6) => {
1072
1072
  let n2 = t2.split(`/`).filter(Boolean);
1073
1073
  return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
1074
1074
  };
1075
- var rr = (e6) => `${e6}/${Qn}`;
1076
- var ir = (e6) => {
1077
- let t2 = nr(e6);
1078
- if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${rr(t2)}`;
1075
+ var ir = (e6) => `${e6}/${$n}`;
1076
+ var ar = (e6) => {
1077
+ let t2 = rr(e6);
1078
+ if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${ir(t2)}`;
1079
1079
  };
1080
- var ar = (e6, t2) => {
1080
+ var or = (e6, t2) => {
1081
1081
  if (!e6 || !t2) return;
1082
1082
  let n2;
1083
1083
  try {
@@ -1091,14 +1091,14 @@ var ar = (e6, t2) => {
1091
1091
  if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
1092
1092
  }
1093
1093
  };
1094
- var or = (e6) => {
1094
+ var sr = (e6) => {
1095
1095
  if (!e6) return;
1096
1096
  if (typeof e6 == `string`) return e6;
1097
1097
  let { base: t2, path: n2 } = e6;
1098
1098
  return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
1099
1099
  };
1100
- var sr = (e6, t2) => {
1101
- let n2 = or(e6.url), r2 = `/${Qn}`;
1100
+ var cr = (e6, t2) => {
1101
+ let n2 = sr(e6.url), r2 = `/${$n}`;
1102
1102
  if (!n2 || !t2?.endsWith(r2)) return;
1103
1103
  let i2, a2;
1104
1104
  try {
@@ -1109,41 +1109,41 @@ var sr = (e6, t2) => {
1109
1109
  let o2 = a2.slice(0, -r2.length);
1110
1110
  return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
1111
1111
  };
1112
- var cr = (e6, t2) => {
1113
- let n2 = sr(e6, t2);
1112
+ var lr = (e6, t2) => {
1113
+ let n2 = cr(e6, t2);
1114
1114
  if (n2) return { href: n2, target: `_self` };
1115
1115
  if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
1116
- let r2 = or(e6.url);
1116
+ let r2 = sr(e6.url);
1117
1117
  return r2 ? { href: r2, target: `_self` } : void 0;
1118
1118
  };
1119
- var lr = (e6, t2) => {
1120
- let n2 = nr(e6);
1119
+ var ur = (e6, t2) => {
1120
+ let n2 = rr(e6);
1121
1121
  if (n2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${n2}/${t2}`;
1122
1122
  };
1123
- var ur = (e6) => {
1123
+ var dr = (e6) => {
1124
1124
  let t2;
1125
1125
  try {
1126
- t2 = m(Xn);
1126
+ t2 = m(Zn);
1127
1127
  } catch {
1128
1128
  return;
1129
1129
  }
1130
- return ir(t2) ?? ar(t2.currentUrl, e6);
1130
+ return ar(t2) ?? or(t2.currentUrl, e6);
1131
1131
  };
1132
- 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` };
1133
- var fr = (e6) => `${e6} rendered`;
1134
- var pr = (e6, t2, n2) => {
1132
+ 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` };
1133
+ var pr = (e6) => `${e6} rendered`;
1134
+ var mr = (e6, t2, n2) => {
1135
1135
  l(() => {
1136
1136
  if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
1137
- performance.mark(fr(e6), { detail: { state: t2, compId: n2 } });
1137
+ performance.mark(pr(e6), { detail: { state: t2, compId: n2 } });
1138
1138
  } catch {
1139
1139
  }
1140
1140
  }, [e6, t2, n2]);
1141
1141
  };
1142
- var mr = I(`@wix/site-service-warmup-data`);
1143
- function hr() {
1144
- let e6 = Wn(), t2 = null;
1142
+ var hr = F(`@wix/site-service-warmup-data`);
1143
+ function gr() {
1144
+ let e6 = Gn(), t2 = null;
1145
1145
  try {
1146
- t2 = p()(mr);
1146
+ t2 = p()(hr);
1147
1147
  } catch {
1148
1148
  }
1149
1149
  return u(() => ({ isServer: e6, scope: t2 ?? void 0, get: async (n2) => {
@@ -1160,13 +1160,13 @@ function hr() {
1160
1160
  }
1161
1161
  } }), [e6, t2]);
1162
1162
  }
1163
- var gr = () => {
1163
+ var _r = () => {
1164
1164
  let e6 = /* @__PURE__ */ new Map();
1165
1165
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1166
1166
  e6.delete(t2);
1167
1167
  })), e6.get(t2)) };
1168
1168
  };
1169
- var _r = async (e6) => {
1169
+ var vr = async (e6) => {
1170
1170
  try {
1171
1171
  let { default: t2 } = await e6();
1172
1172
  return t2;
@@ -1174,9 +1174,9 @@ var _r = async (e6) => {
1174
1174
  return;
1175
1175
  }
1176
1176
  };
1177
- var vr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1178
- let r2 = gr(), i2 = async (r3) => {
1179
- let [i3, a2] = await Promise.all([_r(() => t2(r3)), !e6 || !n2 ? void 0 : _r(() => n2(r3))]);
1177
+ var yr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1178
+ let r2 = _r(), i2 = async (r3) => {
1179
+ let [i3, a2] = await Promise.all([vr(() => t2(r3)), !e6 || !n2 ? void 0 : vr(() => n2(r3))]);
1180
1180
  if (i3 && a2) return { ...i3, ...a2 };
1181
1181
  if (i3) return i3;
1182
1182
  if (a2) return a2;
@@ -1184,61 +1184,61 @@ var vr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1184
1184
  };
1185
1185
  return (e7) => r2.getOrInsert(e7, () => i2(e7));
1186
1186
  };
1187
- var L = (e6) => typeof e6 == `string`;
1188
- var R = () => {
1187
+ var I = (e6) => typeof e6 == `string`;
1188
+ var L = () => {
1189
1189
  let e6, t2, n2 = new Promise((n3, r2) => {
1190
1190
  e6 = n3, t2 = r2;
1191
1191
  });
1192
1192
  return n2.resolve = e6, n2.reject = t2, n2;
1193
1193
  };
1194
- var yr = (e6) => e6 == null ? `` : String(e6);
1195
- var br = (e6, t2, n2) => {
1194
+ var br = (e6) => e6 == null ? `` : String(e6);
1195
+ var xr = (e6, t2, n2) => {
1196
1196
  e6.forEach((e7) => {
1197
1197
  t2[e7] && (n2[e7] = t2[e7]);
1198
1198
  });
1199
1199
  };
1200
- var xr = /###/g;
1201
- var Sr = (e6) => e6 && e6.includes(`###`) ? e6.replace(xr, `.`) : e6;
1202
- var Cr = (e6) => !e6 || L(e6);
1203
- var z = (e6, t2, n2) => {
1204
- let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1200
+ var Sr = /###/g;
1201
+ var Cr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Sr, `.`) : e6;
1202
+ var wr = (e6) => !e6 || I(e6);
1203
+ var R = (e6, t2, n2) => {
1204
+ let r2 = I(t2) ? t2.split(`.`) : t2, i2 = 0;
1205
1205
  for (; i2 < r2.length - 1; ) {
1206
- if (Cr(e6)) return {};
1207
- let t3 = Sr(r2[i2]);
1206
+ if (wr(e6)) return {};
1207
+ let t3 = Cr(r2[i2]);
1208
1208
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1209
1209
  }
1210
- return Cr(e6) ? {} : { obj: e6, k: Sr(r2[i2]) };
1210
+ return wr(e6) ? {} : { obj: e6, k: Cr(r2[i2]) };
1211
1211
  };
1212
- var wr = (e6, t2, n2) => {
1213
- let { obj: r2, k: i2 } = z(e6, t2, Object);
1212
+ var Tr = (e6, t2, n2) => {
1213
+ let { obj: r2, k: i2 } = R(e6, t2, Object);
1214
1214
  if (r2 !== void 0 || t2.length === 1) {
1215
1215
  r2[i2] = n2;
1216
1216
  return;
1217
1217
  }
1218
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = z(e6, o2, Object);
1219
- 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);
1218
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = R(e6, o2, Object);
1219
+ 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);
1220
1220
  s2.obj[`${s2.k}.${a2}`] = n2;
1221
1221
  };
1222
- var Tr = (e6, t2, n2, r2) => {
1223
- let { obj: i2, k: a2 } = z(e6, t2, Object);
1222
+ var Er = (e6, t2, n2, r2) => {
1223
+ let { obj: i2, k: a2 } = R(e6, t2, Object);
1224
1224
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1225
1225
  };
1226
- var Er = (e6, t2) => {
1227
- let { obj: n2, k: r2 } = z(e6, t2);
1226
+ var Dr = (e6, t2) => {
1227
+ let { obj: n2, k: r2 } = R(e6, t2);
1228
1228
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1229
1229
  };
1230
- var Dr = (e6, t2, n2) => {
1231
- let r2 = Er(e6, n2);
1232
- return r2 === void 0 ? Er(t2, n2) : r2;
1233
- };
1234
1230
  var Or = (e6, t2, n2) => {
1235
- 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]);
1231
+ let r2 = Dr(e6, n2);
1232
+ return r2 === void 0 ? Dr(t2, n2) : r2;
1233
+ };
1234
+ var kr = (e6, t2, n2) => {
1235
+ 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]);
1236
1236
  return e6;
1237
1237
  };
1238
- var B = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1239
- var kr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1240
- var Ar = (e6) => L(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => kr[e7]) : e6;
1241
- var jr = class {
1238
+ var z = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1239
+ var Ar = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1240
+ var jr = (e6) => I(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Ar[e7]) : e6;
1241
+ var Mr = class {
1242
1242
  constructor(e6) {
1243
1243
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1244
1244
  }
@@ -1249,20 +1249,20 @@ var jr = class {
1249
1249
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1250
1250
  }
1251
1251
  };
1252
- var Mr = [` `, `,`, `?`, `!`, `;`];
1253
- var Nr = new jr(20);
1254
- var Pr = (e6, t2, n2) => {
1252
+ var Nr = [` `, `,`, `?`, `!`, `;`];
1253
+ var Pr = new Mr(20);
1254
+ var Fr = (e6, t2, n2) => {
1255
1255
  t2 ||= ``, n2 ||= ``;
1256
- let r2 = Mr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1256
+ let r2 = Nr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1257
1257
  if (r2.length === 0) return true;
1258
- let i2 = Nr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1258
+ let i2 = Pr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1259
1259
  if (!a2) {
1260
1260
  let t3 = e6.indexOf(n2);
1261
1261
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1262
1262
  }
1263
1263
  return a2;
1264
1264
  };
1265
- var Fr = (e6, t2, n2 = `.`) => {
1265
+ var Ir = (e6, t2, n2 = `.`) => {
1266
1266
  if (!e6) return;
1267
1267
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1268
1268
  let r2 = t2.split(n2), i2 = e6;
@@ -1278,7 +1278,7 @@ var Fr = (e6, t2, n2 = `.`) => {
1278
1278
  }
1279
1279
  return i2;
1280
1280
  };
1281
- var Ir = (e6) => e6?.replace(/_/g, `-`);
1281
+ var B = (e6) => e6?.replace(/_/g, `-`);
1282
1282
  var Lr = { type: `logger`, log(e6) {
1283
1283
  this.output(`log`, e6);
1284
1284
  }, warn(e6) {
@@ -1308,7 +1308,7 @@ var V = new class e2 {
1308
1308
  return this.forward(e6, `warn`, `WARNING DEPRECATED: `, true);
1309
1309
  }
1310
1310
  forward(e6, t2, n2, r2) {
1311
- 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));
1311
+ 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));
1312
1312
  }
1313
1313
  create(t2) {
1314
1314
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1359,23 +1359,23 @@ var Br = class extends Rr {
1359
1359
  }
1360
1360
  getResource(e6, t2, n2, r2 = {}) {
1361
1361
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1362
- 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)));
1363
- let s2 = Er(this.data, o2);
1364
- 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);
1362
+ 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)));
1363
+ let s2 = Dr(this.data, o2);
1364
+ 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);
1365
1365
  }
1366
1366
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1367
1367
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1368
- 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);
1368
+ 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);
1369
1369
  }
1370
1370
  addResources(e6, t2, n2, r2 = { silent: false }) {
1371
- for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1371
+ for (let r3 in n2) (I(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1372
1372
  r2.silent || this.emit(`added`, e6, t2, n2);
1373
1373
  }
1374
1374
  addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1375
1375
  let o2 = [e6, t2];
1376
1376
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1377
- let s2 = Er(this.data, o2) || {};
1378
- 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);
1377
+ let s2 = Dr(this.data, o2) || {};
1378
+ 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);
1379
1379
  }
1380
1380
  removeResourceBundle(e6, t2) {
1381
1381
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1420,10 +1420,10 @@ function H(e6, t2) {
1420
1420
  }
1421
1421
  return n2.join(r2);
1422
1422
  }
1423
- var Wr = (e6) => !L(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1423
+ var Wr = (e6) => !I(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1424
1424
  var Gr = class e3 extends Rr {
1425
1425
  constructor(e6, t2 = {}) {
1426
- 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 = {};
1426
+ 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 = {};
1427
1427
  }
1428
1428
  changeLanguage(e6) {
1429
1429
  e6 && (this.language = e6);
@@ -1439,14 +1439,14 @@ var Gr = class e3 extends Rr {
1439
1439
  extractFromKey(e6, t2) {
1440
1440
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1441
1441
  n2 === void 0 && (n2 = `:`);
1442
- 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);
1442
+ 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);
1443
1443
  if (a2 && !o2) {
1444
1444
  let t3 = e6.match(this.interpolator.nestingRegexp);
1445
- if (t3 && t3.length > 0) return { key: e6, namespaces: L(i2) ? [i2] : i2 };
1445
+ if (t3 && t3.length > 0) return { key: e6, namespaces: I(i2) ? [i2] : i2 };
1446
1446
  let a3 = e6.split(n2);
1447
1447
  (n2 !== r2 || n2 === r2 && this.options.ns.includes(a3[0])) && (i2 = a3.shift()), e6 = a3.join(r2);
1448
1448
  }
1449
- return { key: e6, namespaces: L(i2) ? [i2] : i2 };
1449
+ return { key: e6, namespaces: I(i2) ? [i2] : i2 };
1450
1450
  }
1451
1451
  translate(t2, n2, r2) {
1452
1452
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
@@ -1456,10 +1456,10 @@ var Gr = class e3 extends Rr {
1456
1456
  u2 === void 0 && (u2 = `:`);
1457
1457
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1458
1458
  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;
1459
- 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;
1459
+ 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;
1460
1460
  y2 && !m2 && x2 && (T2 = w2);
1461
1461
  let te2 = Wr(T2), ne2 = Object.prototype.toString.apply(T2);
1462
- if (y2 && T2 && te2 && !_2.includes(ne2) && !(L(v2) && Array.isArray(T2))) {
1462
+ if (y2 && T2 && te2 && !_2.includes(ne2) && !(I(v2) && Array.isArray(T2))) {
1463
1463
  if (!i2.returnObjects && !this.options.returnObjects) {
1464
1464
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1465
1465
  let e6 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, T2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1473,7 +1473,7 @@ var Gr = class e3 extends Rr {
1473
1473
  }
1474
1474
  m2 = t3;
1475
1475
  }
1476
- } else if (y2 && L(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1476
+ } else if (y2 && I(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1477
1477
  else {
1478
1478
  let e6 = false, n3 = false;
1479
1479
  !this.isValidLookup(m2) && x2 && (e6 = true, m2 = w2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1505,30 +1505,30 @@ var Gr = class e3 extends Rr {
1505
1505
  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 });
1506
1506
  else if (!n2.skipInterpolation) {
1507
1507
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1508
- let a3 = L(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1508
+ let a3 = I(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1509
1509
  if (a3) {
1510
1510
  let t3 = e6.match(this.interpolator.nestingRegexp);
1511
1511
  o3 = t3 && t3.length;
1512
1512
  }
1513
- let s2 = n2.replace && !L(n2.replace) ? n2.replace : n2;
1513
+ let s2 = n2.replace && !I(n2.replace) ? n2.replace : n2;
1514
1514
  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) {
1515
1515
  let t3 = e6.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1516
1516
  o3 < r3 && (n2.nest = false);
1517
1517
  }
1518
1518
  !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();
1519
1519
  }
1520
- let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1520
+ let a2 = n2.postProcess || this.options.postProcess, o2 = I(a2) ? [a2] : a2;
1521
1521
  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;
1522
1522
  }
1523
1523
  resolve(e6, t2 = {}) {
1524
1524
  let n2, r2, i2, a2, o2;
1525
- return L(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? H(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1525
+ return I(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? H(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1526
1526
  if (this.isValidLookup(n2)) return;
1527
1527
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1528
1528
  r2 = c2;
1529
1529
  let l2 = s2.namespaces;
1530
1530
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1531
- 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);
1531
+ 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);
1532
1532
  l2.forEach((e8) => {
1533
1533
  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) => {
1534
1534
  if (this.isValidLookup(n2)) return;
@@ -1557,7 +1557,7 @@ var Gr = class e3 extends Rr {
1557
1557
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e6, t2, n2, r2) : this.resourceStore.getResource(e6, t2, n2, r2);
1558
1558
  }
1559
1559
  getUsedParamsDetails(e6 = {}) {
1560
- 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;
1560
+ 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;
1561
1561
  if (n2 && e6.count !== void 0 && (r2 = { ...r2, count: e6.count }), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1562
1562
  r2 = { ...r2 };
1563
1563
  for (let e7 of t2) delete r2[e7];
@@ -1577,17 +1577,17 @@ var Kr = class {
1577
1577
  this.resolveHierarchyCache = {};
1578
1578
  }
1579
1579
  getScriptPartFromCode(e6) {
1580
- if (e6 = Ir(e6), !e6 || !e6.includes(`-`)) return null;
1580
+ if (e6 = B(e6), !e6 || !e6.includes(`-`)) return null;
1581
1581
  let t2 = e6.split(`-`);
1582
1582
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1583
1583
  }
1584
1584
  getLanguagePartFromCode(e6) {
1585
- if (e6 = Ir(e6), !e6 || !e6.includes(`-`)) return e6;
1585
+ if (e6 = B(e6), !e6 || !e6.includes(`-`)) return e6;
1586
1586
  let t2 = e6.split(`-`);
1587
1587
  return this.formatLanguageCode(t2[0]);
1588
1588
  }
1589
1589
  formatLanguageCode(e6) {
1590
- if (L(e6) && e6.includes(`-`)) {
1590
+ if (I(e6) && e6.includes(`-`)) {
1591
1591
  let t2;
1592
1592
  try {
1593
1593
  t2 = Intl.getCanonicalLocales(e6)[0];
@@ -1618,7 +1618,7 @@ var Kr = class {
1618
1618
  }
1619
1619
  getFallbackCodes(e6, t2) {
1620
1620
  if (!e6) return [];
1621
- if (typeof e6 == `function` && (e6 = e6(t2)), L(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1621
+ if (typeof e6 == `function` && (e6 = e6(t2)), I(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1622
1622
  if (!t2) return e6.default || [];
1623
1623
  let n2 = e6[t2];
1624
1624
  return n2 ||= e6[this.getScriptPartFromCode(t2)], n2 ||= e6[this.formatLanguageCode(t2)], n2 ||= e6[this.getLanguagePartFromCode(t2)], n2 ||= e6.default, n2 || [];
@@ -1626,7 +1626,7 @@ var Kr = class {
1626
1626
  toResolveHierarchy(e6, t2) {
1627
1627
  let n2 = this.options.fallbackLng, r2 = Array.isArray(n2) ? n2.join(`|`) : n2;
1628
1628
  r2 !== this._cachedFallbackLng && (this.resolveHierarchyCache = {}, this._cachedFallbackLng = r2);
1629
- 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;
1629
+ 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;
1630
1630
  if (o2) {
1631
1631
  let n3;
1632
1632
  n3 = t2 === void 0 ? `undefined` : t2 === false ? `boolean:false` : `string:${t2}`, s2 = `${e6.length}:${e6}|${n3}`;
@@ -1638,7 +1638,7 @@ var Kr = class {
1638
1638
  let c2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e6), l2 = [], u2 = (e7) => {
1639
1639
  e7 && (this.isSupportedCode(e7) ? l2.push(e7) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e7}`));
1640
1640
  };
1641
- 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) => {
1641
+ 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) => {
1642
1642
  l2.includes(e7) || u2(this.formatLanguageCode(e7));
1643
1643
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1644
1644
  }
@@ -1653,7 +1653,7 @@ var Yr = class {
1653
1653
  this.pluralRulesCache = {};
1654
1654
  }
1655
1655
  getRule(e6, t2 = {}) {
1656
- let n2 = Ir(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1656
+ let n2 = B(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1657
1657
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1658
1658
  let a2;
1659
1659
  try {
@@ -1683,8 +1683,8 @@ var Yr = class {
1683
1683
  }
1684
1684
  };
1685
1685
  var Xr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1686
- let a2 = Dr(e6, t2, n2);
1687
- return !a2 && i2 && L(n2) && (a2 = Fr(e6, n2, r2), a2 === void 0 && (a2 = Fr(t2, n2, r2))), a2;
1686
+ let a2 = Or(e6, t2, n2);
1687
+ return !a2 && i2 && I(n2) && (a2 = Ir(e6, n2, r2), a2 === void 0 && (a2 = Ir(t2, n2, r2))), a2;
1688
1688
  };
1689
1689
  var Zr = (e6) => e6.replace(/\$/g, `$$$$`);
1690
1690
  var Qr = class {
@@ -1694,7 +1694,7 @@ var Qr = class {
1694
1694
  init(e6 = {}) {
1695
1695
  e6.interpolation ||= { escapeValue: true };
1696
1696
  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;
1697
- 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();
1697
+ 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();
1698
1698
  }
1699
1699
  reset() {
1700
1700
  this.options && this.init(this.options);
@@ -1720,13 +1720,13 @@ var Qr = class {
1720
1720
  if (a2 = c2(n3), a2 === void 0) {
1721
1721
  if (typeof l2 == `function`) {
1722
1722
  let t4 = l2(e6, i2, r2);
1723
- a2 = L(t4) ? t4 : ``;
1723
+ a2 = I(t4) ? t4 : ``;
1724
1724
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1725
1725
  else if (u2) {
1726
1726
  a2 = i2[0];
1727
1727
  continue;
1728
1728
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1729
- } else !L(a2) && !this.useRawValueToEscape && (a2 = yr(a2));
1729
+ } else !I(a2) && !this.useRawValueToEscape && (a2 = br(a2));
1730
1730
  let s3 = t3.safeValue(a2);
1731
1731
  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;
1732
1732
  }
@@ -1736,7 +1736,7 @@ var Qr = class {
1736
1736
  let r2, i2, a2, o2 = (e7, t3) => {
1737
1737
  let n3 = this.nestingOptionsSeparator;
1738
1738
  if (!e7.includes(n3)) return e7;
1739
- let r3 = e7.split(RegExp(`${B(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1739
+ let r3 = e7.split(RegExp(`${z(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1740
1740
  e7 = r3[0], i3 = this.interpolate(i3, a2);
1741
1741
  let o3 = i3.match(/'/g), s3 = i3.match(/"/g);
1742
1742
  ((o3?.length ?? 0) % 2 == 0 && !s3 || (s3?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1749,10 +1749,10 @@ var Qr = class {
1749
1749
  }, s2 = new RegExp(this.nestingRegexp), c2 = ``, l2 = 0;
1750
1750
  for (; r2 = s2.exec(e6); ) {
1751
1751
  let u2 = [];
1752
- a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1752
+ a2 = { ...n2 }, a2 = a2.replace && !I(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1753
1753
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1754
- 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;
1755
- 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;
1754
+ 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;
1755
+ 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;
1756
1756
  }
1757
1757
  return l2 ? c2 + e6.slice(l2) : e6;
1758
1758
  }
@@ -1778,10 +1778,10 @@ var ei = (e6) => {
1778
1778
  let a2 = i2;
1779
1779
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1780
1780
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1781
- return s2 || (s2 = e6(Ir(r2), i2), t2[o2] = s2), s2(n2);
1781
+ return s2 || (s2 = e6(B(r2), i2), t2[o2] = s2), s2(n2);
1782
1782
  };
1783
1783
  };
1784
- var ti = (e6) => (t2, n2, r2) => e6(Ir(n2), r2)(t2);
1784
+ var ti = (e6) => (t2, n2, r2) => e6(B(n2), r2)(t2);
1785
1785
  var ni = class {
1786
1786
  constructor(e6 = {}) {
1787
1787
  this.logger = V.create(`formatter`), this.options = e6, this.init(e6);
@@ -1858,7 +1858,7 @@ var ii = class extends Rr {
1858
1858
  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);
1859
1859
  let o2 = {};
1860
1860
  this.queue.forEach((n3) => {
1861
- Tr(n3.loaded, [i2], a2), ri(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1861
+ Er(n3.loaded, [i2], a2), ri(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1862
1862
  o2[e7] || (o2[e7] = {});
1863
1863
  let t3 = n3.loaded[e7];
1864
1864
  t3.length && t3.forEach((t4) => {
@@ -1893,7 +1893,7 @@ var ii = class extends Rr {
1893
1893
  }
1894
1894
  prepareLoading(e6, t2, n2 = {}, r2) {
1895
1895
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1896
- L(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), L(t2) && (t2 = [t2]);
1896
+ I(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), I(t2) && (t2 = [t2]);
1897
1897
  let i2 = this.queueLoad(e6, t2, n2, r2);
1898
1898
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1899
1899
  i2.toLoad.forEach((e7) => {
@@ -1932,7 +1932,7 @@ var ii = class extends Rr {
1932
1932
  };
1933
1933
  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) => {
1934
1934
  let t2 = {};
1935
- 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`) {
1935
+ 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`) {
1936
1936
  let n2 = e6[3] || e6[2];
1937
1937
  Object.keys(n2).forEach((e7) => {
1938
1938
  t2[e7] = n2[e7];
@@ -1940,7 +1940,7 @@ var ai = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1940
1940
  }
1941
1941
  return t2;
1942
1942
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1943
- 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);
1943
+ 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);
1944
1944
  var si = () => {
1945
1945
  };
1946
1946
  var ci = (e6) => {
@@ -1958,7 +1958,7 @@ var U = class e4 extends Rr {
1958
1958
  }
1959
1959
  }
1960
1960
  init(e6 = {}, t2) {
1961
- 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]));
1961
+ 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]));
1962
1962
  let n2 = ai();
1963
1963
  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);
1964
1964
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
@@ -1986,7 +1986,7 @@ var U = class e4 extends Rr {
1986
1986
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
1987
1987
  this[e7] = (...t3) => (this.store[e7](...t3), this);
1988
1988
  });
1989
- let i2 = R(), a2 = () => {
1989
+ let i2 = L(), a2 = () => {
1990
1990
  let e7 = (e8, n3) => {
1991
1991
  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);
1992
1992
  };
@@ -1996,7 +1996,7 @@ var U = class e4 extends Rr {
1996
1996
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
1997
1997
  }
1998
1998
  loadResources(e6, t2 = si) {
1999
- let n2 = t2, r2 = L(e6) ? e6 : this.language;
1999
+ let n2 = t2, r2 = I(e6) ? e6 : this.language;
2000
2000
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2001
2001
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
2002
2002
  let e7 = [], t3 = (t4) => {
@@ -2010,7 +2010,7 @@ var U = class e4 extends Rr {
2010
2010
  } else n2(null);
2011
2011
  }
2012
2012
  reloadResources(e6, t2, n2) {
2013
- let r2 = R();
2013
+ let r2 = L();
2014
2014
  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) => {
2015
2015
  r2.resolve(), n2(e7);
2016
2016
  }), r2;
@@ -2034,7 +2034,7 @@ var U = class e4 extends Rr {
2034
2034
  }
2035
2035
  changeLanguage(e6, t2) {
2036
2036
  this.isLanguageChangingTo = e6;
2037
- let n2 = R();
2037
+ let n2 = L();
2038
2038
  this.emit(`languageChanging`, e6);
2039
2039
  let r2 = (e7) => {
2040
2040
  this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
@@ -2042,7 +2042,7 @@ var U = class e4 extends Rr {
2042
2042
  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));
2043
2043
  }, a2 = (t3) => {
2044
2044
  !e6 && !t3 && this.services.languageDetector && (t3 = []);
2045
- let n3 = L(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(L(t3) ? [t3] : t3);
2045
+ let n3 = I(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(I(t3) ? [t3] : t3);
2046
2046
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e7) => {
2047
2047
  i2(e7, a3);
2048
2048
  });
@@ -2060,7 +2060,7 @@ var U = class e4 extends Rr {
2060
2060
  let l2 = this.options.keySeparator || `.`, u2;
2061
2061
  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);
2062
2062
  };
2063
- return L(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2063
+ return I(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2064
2064
  }
2065
2065
  t(...e6) {
2066
2066
  return this.translator?.translate(...e6);
@@ -2087,16 +2087,16 @@ var U = class e4 extends Rr {
2087
2087
  return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
2088
2088
  }
2089
2089
  loadNamespaces(e6, t2) {
2090
- let n2 = R();
2091
- return this.options.ns ? (L(e6) && (e6 = [e6]), e6.forEach((e7) => {
2090
+ let n2 = L();
2091
+ return this.options.ns ? (I(e6) && (e6 = [e6]), e6.forEach((e7) => {
2092
2092
  this.options.ns.includes(e7) || this.options.ns.push(e7);
2093
2093
  }), this.loadResources((e7) => {
2094
2094
  n2.resolve(), t2 && t2(e7);
2095
2095
  }), n2) : (t2 && t2(), Promise.resolve());
2096
2096
  }
2097
2097
  loadLanguages(e6, t2) {
2098
- let n2 = R();
2099
- L(e6) && (e6 = [e6]);
2098
+ let n2 = L();
2099
+ I(e6) && (e6 = [e6]);
2100
2100
  let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
2101
2101
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
2102
2102
  n2.resolve(), t2 && t2(e7);
@@ -3372,8 +3372,8 @@ function bo({ i18n: e6, defaultNS: t2, children: n2 }) {
3372
3372
  let r2 = u(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3373
3373
  return a(mo.Provider, { value: r2 }, n2);
3374
3374
  }
3375
- var xo = I(`@wix/site-service-locale`);
3376
- var So = I(`@wix/site-service-renderer-configuration`);
3375
+ var xo = F(`@wix/site-service-locale`);
3376
+ var So = F(`@wix/site-service-renderer-configuration`);
3377
3377
  var Co = () => {
3378
3378
  let e6, t2;
3379
3379
  try {
@@ -3413,7 +3413,7 @@ function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
3413
3413
  if (a2) return a2.promise;
3414
3414
  let o2 = Eo(e6);
3415
3415
  if (o2 !== void 0) {
3416
- let t3 = zn(o2);
3416
+ let t3 = Bn(o2);
3417
3417
  return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
3418
3418
  }
3419
3419
  let s2 = (async () => await t2.get(e6) ?? n2())();
@@ -3451,14 +3451,14 @@ var Bo = (e6, t2, n2) => {
3451
3451
  });
3452
3452
  };
3453
3453
  var Vo = (e6) => e6.split(`-`)[0] ?? e6;
3454
- 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) });
3454
+ 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) });
3455
3455
  var Ho = /* @__PURE__ */ new WeakMap();
3456
3456
  function Uo(e6) {
3457
3457
  let t2 = Ho.get(e6);
3458
3458
  return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
3459
3459
  }
3460
3460
  function Wo({ i18n: e6, locale: t2 }) {
3461
- let n2 = Wn(), r2 = hr();
3461
+ let n2 = Gn(), r2 = gr();
3462
3462
  if (!n2) return null;
3463
3463
  if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
3464
3464
  let i2 = zo(e6, t2);
@@ -3478,7 +3478,7 @@ var Qo = (e6, t2) => {
3478
3478
  let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
3479
3479
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3480
3480
  };
3481
- var $o = vr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3481
+ var $o = yr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3482
3482
  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` }];
3483
3483
  var ts = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
3484
3484
  function ns(e6) {
@@ -3487,7 +3487,7 @@ function ns(e6) {
3487
3487
  var rs = `@wix/auto_sdk_blog_post-paywalls`;
3488
3488
  function is(e6) {
3489
3489
  function t2({ host: t3 }) {
3490
- 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 }]) };
3490
+ 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 }]) };
3491
3491
  }
3492
3492
  return t2;
3493
3493
  }
@@ -3817,39 +3817,39 @@ function Js(e6) {
3817
3817
  let t2 = ``;
3818
3818
  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;
3819
3819
  }
3820
- function X(e6) {
3820
+ function Ys(e6) {
3821
3821
  if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
3822
3822
  }
3823
- var Ys = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3824
- var Xs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3825
- function Zs(e6) {
3823
+ var Xs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3824
+ var Zs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3825
+ function Qs(e6) {
3826
3826
  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: `` }] } }));
3827
3827
  }
3828
- var Qs = `@wix/auto_sdk_blog_categories`;
3829
- function $s(e6) {
3828
+ var $s = `@wix/auto_sdk_blog_categories`;
3829
+ function ec(e6) {
3830
3830
  function t2({ host: t3 }) {
3831
- 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 }]) };
3831
+ 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 }]) };
3832
3832
  }
3833
3833
  return t2;
3834
3834
  }
3835
- var ec = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3836
- var tc = [{ path: `categories.coverImage` }];
3837
- async function nc(e6) {
3838
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = $s(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3835
+ var tc = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3836
+ var nc = [{ path: `categories.coverImage` }];
3837
+ async function rc(e6) {
3838
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ec(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3839
3839
  n2?.onSiteCall?.();
3840
3840
  try {
3841
3841
  let e7 = await t2.request(r2);
3842
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: ec }, { transformFn: Js, paths: tc }]));
3842
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: tc }, { transformFn: Js, paths: nc }]));
3843
3843
  } catch (e7) {
3844
3844
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
3845
3845
  throw n2?.onError?.(e7), t3;
3846
3846
  }
3847
3847
  }
3848
- function rc(e6) {
3849
- return (t2) => nc(t2, { httpClient: e6 });
3848
+ function ic(e6) {
3849
+ return (t2) => rc(t2, { httpClient: e6 });
3850
3850
  }
3851
- var ic = M(rc);
3852
- function ac(e6) {
3851
+ var ac = M(ic);
3852
+ function oc(e6) {
3853
3853
  if (!e6) return;
3854
3854
  let t2 = ``;
3855
3855
  e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
@@ -3864,43 +3864,43 @@ function ac(e6) {
3864
3864
  }
3865
3865
  return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
3866
3866
  }
3867
- 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` }];
3868
- var sc = [{ path: `post.richContentCompressed` }];
3869
- 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` }];
3870
- var lc = [{ path: `metrics.averageRating` }];
3871
- function uc(e6) {
3867
+ 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` }];
3868
+ var cc = [{ path: `post.richContentCompressed` }];
3869
+ 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` }];
3870
+ var uc = [{ path: `metrics.averageRating` }];
3871
+ function dc(e6) {
3872
3872
  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` }] } }));
3873
3873
  }
3874
- var dc = `@wix/auto_sdk_blog_posts`;
3875
- function fc(e6) {
3874
+ var fc = `@wix/auto_sdk_blog_posts`;
3875
+ function pc(e6) {
3876
3876
  function t2({ host: t3 }) {
3877
- 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 }]) };
3877
+ 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 }]) };
3878
3878
  }
3879
3879
  return t2;
3880
3880
  }
3881
- function pc(e6) {
3881
+ function mc(e6) {
3882
3882
  function t2({ host: t3 }) {
3883
- 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 }]) };
3883
+ 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 }]) };
3884
3884
  }
3885
3885
  return t2;
3886
3886
  }
3887
- var mc = [{ path: `post.url` }, { path: `post.translations.url` }];
3888
- var hc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3889
- var gc = [{ path: `post.media.wixMedia.videoV2` }];
3890
- 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 || {});
3891
- async function _c(e6, t2) {
3892
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = fc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3887
+ var hc = [{ path: `post.url` }, { path: `post.translations.url` }];
3888
+ var gc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3889
+ var _c = [{ path: `post.media.wixMedia.videoV2` }];
3890
+ 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 || {});
3891
+ async function vc(e6, t2) {
3892
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = pc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3893
3893
  r2?.onSiteCall?.();
3894
3894
  try {
3895
3895
  let e7 = await n2.request(i2);
3896
- 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`]);
3896
+ 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`]);
3897
3897
  } catch (e7) {
3898
3898
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]`, fieldsets: `$[1].fieldsets` }, singleArgumentUnchanged: false }, [`postId`, `options`]);
3899
3899
  throw r2?.onError?.(e7), t3;
3900
3900
  }
3901
3901
  }
3902
- async function vc(e6) {
3903
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = pc(D({ postId: e6 }, []));
3902
+ async function yc(e6) {
3903
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = mc(D({ postId: e6 }, []));
3904
3904
  n2?.onSiteCall?.();
3905
3905
  try {
3906
3906
  let e7 = await t2.request(r2);
@@ -3910,32 +3910,32 @@ async function vc(e6) {
3910
3910
  throw n2?.onError?.(e7), t3;
3911
3911
  }
3912
3912
  }
3913
- function yc(e6) {
3914
- return (t2, n2) => _c(t2, n2, { httpClient: e6 });
3915
- }
3916
3913
  function bc(e6) {
3917
- return (t2) => vc(t2, { httpClient: e6 });
3914
+ return (t2, n2) => vc(t2, n2, { httpClient: e6 });
3915
+ }
3916
+ function xc(e6) {
3917
+ return (t2) => yc(t2, { httpClient: e6 });
3918
3918
  }
3919
- var xc = M(yc);
3920
3919
  var Sc = M(bc);
3921
- var Cc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3922
- var wc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3923
- function Tc(e6) {
3920
+ var Cc = M(xc);
3921
+ var wc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3922
+ var Tc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3923
+ function Ec(e6) {
3924
3924
  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` }] } }));
3925
3925
  }
3926
- var Ec = `@wix/auto_sdk_blog_tags`;
3927
- function Dc(e6) {
3926
+ var Dc = `@wix/auto_sdk_blog_tags`;
3927
+ function Oc(e6) {
3928
3928
  function t2({ host: t3 }) {
3929
- let n2 = A(e6, [{ transformFn: un, paths: Cc }]);
3930
- 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 }]) };
3929
+ let n2 = A(e6, [{ transformFn: un, paths: wc }]);
3930
+ 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 }]) };
3931
3931
  }
3932
3932
  return t2;
3933
3933
  }
3934
- var Oc = [{ path: `tags.url` }];
3935
- function kc(e6) {
3934
+ var kc = [{ path: `tags.url` }];
3935
+ function Ac(e6) {
3936
3936
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3937
3937
  return gs({ func: async (r2) => {
3938
- let i2 = Dc({ ...r2, ...e6 ?? {} });
3938
+ let i2 = Oc({ ...r2, ...e6 ?? {} });
3939
3939
  n2?.onSiteCall?.();
3940
3940
  try {
3941
3941
  let e7 = await t2.request(i2);
@@ -3947,57 +3947,57 @@ function kc(e6) {
3947
3947
  let n3 = [t3, e6];
3948
3948
  return D({ ...n3?.[1], query: n3?.[0] });
3949
3949
  }, responseTransformer: ({ data: e7 }) => {
3950
- let t3 = O(A(e7, [{ transformFn: X, paths: Oc }]));
3950
+ let t3 = O(A(e7, [{ transformFn: Ys, paths: kc }]));
3951
3951
  return { items: t3?.tags, pagingMetadata: t3?.pagingMetadata };
3952
3952
  }, errorTransformer: (e7) => {
3953
3953
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3954
3954
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
3955
3955
  }
3956
- async function Ac(e6, t2) {
3957
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Dc(D({ query: e6, ...t2 }));
3956
+ async function jc(e6, t2) {
3957
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oc(D({ query: e6, ...t2 }));
3958
3958
  r2?.onSiteCall?.();
3959
3959
  try {
3960
3960
  let e7 = await n2.request(i2);
3961
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Oc }]));
3961
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: kc }]));
3962
3962
  } catch (e7) {
3963
3963
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3964
3964
  throw r2?.onError?.(e7), t3;
3965
3965
  }
3966
3966
  }
3967
- function jc(e6) {
3968
- return (t2) => kc(t2, { httpClient: e6 });
3969
- }
3970
3967
  function Mc(e6) {
3971
- return (t2, n2) => Ac(t2, n2, { httpClient: e6 });
3968
+ return (t2) => Ac(t2, { httpClient: e6 });
3972
3969
  }
3973
3970
  function Nc(e6) {
3974
- let t2 = Es({ builderQueryFunction: (t3) => jc(e6)(t3), typedQueryFunction: (t3, n3) => Mc(e6)(t3, n3), hasOptionsParameter: true });
3971
+ return (t2, n2) => jc(t2, n2, { httpClient: e6 });
3972
+ }
3973
+ function Pc(e6) {
3974
+ let t2 = Es({ builderQueryFunction: (t3) => Mc(e6)(t3), typedQueryFunction: (t3, n3) => Nc(e6)(t3, n3), hasOptionsParameter: true });
3975
3975
  function n2(e7, n3) {
3976
3976
  return t2(...arguments);
3977
3977
  }
3978
3978
  return n2;
3979
3979
  }
3980
- var Pc = M(Nc);
3981
- 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 ?? [];
3982
- var Ic = `https://blog.wixsite.com/blog-demo-posts`;
3980
+ var Fc = M(Pc);
3981
+ 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 ?? [];
3982
+ var Lc = `https://blog.wixsite.com/blog-demo-posts`;
3983
3983
  M((e6) => async (t2) => {
3984
3984
  let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${N(t2)}`);
3985
3985
  if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
3986
- return Fc(await n2.json()).filter((e7) => !e7.url?.startsWith(Ic));
3986
+ return Ic(await n2.json()).filter((e7) => !e7.url?.startsWith(Lc));
3987
3987
  });
3988
- var Lc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
3989
- function Rc(e6) {
3988
+ var Rc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
3989
+ function zc(e6) {
3990
3990
  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` }] } }));
3991
3991
  }
3992
- var zc = `@wix/auto_sdk_members_members`;
3993
- function Bc(e6) {
3992
+ var Bc = `@wix/auto_sdk_members_members`;
3993
+ function Vc(e6) {
3994
3994
  function t2({ host: t3 }) {
3995
- 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 }]) };
3995
+ 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 }]) };
3996
3996
  }
3997
3997
  return t2;
3998
3998
  }
3999
- async function Vc(e6, t2) {
4000
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Bc(D({ id: e6, fieldsets: t2?.fieldsets }));
3999
+ async function Hc(e6, t2) {
4000
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Vc(D({ id: e6, fieldsets: t2?.fieldsets }));
4001
4001
  r2?.onSiteCall?.();
4002
4002
  try {
4003
4003
  let e7 = await n2.request(i2);
@@ -4007,70 +4007,70 @@ async function Vc(e6, t2) {
4007
4007
  throw r2?.onError?.(e7), t3;
4008
4008
  }
4009
4009
  }
4010
- function Hc(e6) {
4011
- return (t2, n2) => Vc(t2, n2, { httpClient: e6 });
4010
+ function Uc(e6) {
4011
+ return (t2, n2) => Hc(t2, n2, { httpClient: e6 });
4012
4012
  }
4013
- var Uc = M(Hc);
4014
- var Wc = async (e6) => {
4013
+ var Wc = M(Uc);
4014
+ var Gc = async (e6) => {
4015
4015
  try {
4016
- return await Uc(e6, { fieldsets: [`PUBLIC`] });
4016
+ return await Wc(e6, { fieldsets: [`PUBLIC`] });
4017
4017
  } catch {
4018
4018
  return;
4019
4019
  }
4020
4020
  };
4021
- var Gc = `wix.blog.v4.post`;
4022
- var Kc = async (e6, t2) => {
4023
- let n2 = await ss({ postFqdn: Gc, postId: e6 }, t2 ? { language: t2 } : void 0);
4021
+ var Kc = `wix.blog.v4.post`;
4022
+ var qc = async (e6, t2) => {
4023
+ let n2 = await ss({ postFqdn: Kc, postId: e6 }, t2 ? { language: t2 } : void 0);
4024
4024
  if (typeof n2 != `object` || !n2) throw Error(`No Wix SDK context for the post paywall read`);
4025
4025
  let { richContent: r2 } = n2;
4026
4026
  return D(r2);
4027
4027
  };
4028
- var qc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4029
- var Jc = `membership_plan_picker_tpa`;
4030
- var Yc = (e6) => {
4028
+ var Jc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4029
+ var Yc = `membership_plan_picker_tpa`;
4030
+ var Xc = (e6) => {
4031
4031
  let t2;
4032
4032
  try {
4033
- t2 = e6.appSectionRelativeUrl(qc, Jc);
4033
+ t2 = e6.appSectionRelativeUrl(Jc, Yc);
4034
4034
  } catch {
4035
4035
  return;
4036
4036
  }
4037
4037
  if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${t2.replace(/^\/+/, ``)}`;
4038
4038
  };
4039
- var Xc = (e6, t2) => e6.flatMap((e7) => {
4040
- let n2 = e7.nodes ? { ...e7, nodes: Xc(e7.nodes, t2) } : e7;
4039
+ var Zc = (e6, t2) => e6.flatMap((e7) => {
4040
+ let n2 = e7.nodes ? { ...e7, nodes: Zc(e7.nodes, t2) } : e7;
4041
4041
  return e7.type !== `BUTTON` || e7.buttonData?.type !== `ACTION` ? [n2] : t2 ? [{ ...n2, buttonData: { ...e7.buttonData, type: `LINK`, link: { url: t2, target: `SELF`, rel: { nofollow: true } } } }] : [];
4042
4042
  });
4043
- var Zc = (e6, t2, n2) => {
4043
+ var Qc = (e6, t2, n2) => {
4044
4044
  if (!t2?.nodes?.length) return e6;
4045
- let r2 = Xc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4045
+ let r2 = Zc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4046
4046
  return { ...e6, nodes: [...e6.nodes ?? [], ...r2] };
4047
4047
  };
4048
- 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` }];
4049
- var $c = [{ path: `posts.richContentCompressed` }];
4050
- 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` }];
4051
- var tl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4052
- function nl(e6) {
4048
+ 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` }];
4049
+ var el = [{ path: `posts.richContentCompressed` }];
4050
+ 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` }];
4051
+ var nl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4052
+ function rl(e6) {
4053
4053
  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` }] } }));
4054
4054
  }
4055
- var rl = `@wix/auto_sdk_blog_posts`;
4056
- function il(e6) {
4055
+ var il = `@wix/auto_sdk_blog_posts`;
4056
+ function al(e6) {
4057
4057
  function t2({ host: t3 }) {
4058
- let n2 = A(e6, [{ transformFn: un, paths: tl }]);
4059
- 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 }]) };
4058
+ let n2 = A(e6, [{ transformFn: un, paths: nl }]);
4059
+ 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 }]) };
4060
4060
  }
4061
4061
  return t2;
4062
4062
  }
4063
- function al() {
4064
- let e6 = il({});
4063
+ function ol() {
4064
+ let e6 = al({});
4065
4065
  return { getUrl: (t2) => {
4066
4066
  let { url: n2 } = e6(t2);
4067
4067
  return n2;
4068
4068
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
4069
4069
  }
4070
- var ol = al();
4071
- var sl = (e6) => (t2) => ({ method: `POST`, url: ol.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4072
- M((e6) => async (t2) => {
4073
- let { data: n2 } = await e6.request(sl(t2)), r2 = {};
4070
+ var sl = ol();
4071
+ var cl = (e6) => (t2) => ({ method: `POST`, url: sl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4072
+ var ll = M((e6) => async (t2) => {
4073
+ let { data: n2 } = await e6.request(cl(t2)), r2 = {};
4074
4074
  for (let e7 of n2.posts ?? []) {
4075
4075
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
4076
4076
  if (!t3 || !n3?.length) continue;
@@ -4079,115 +4079,125 @@ M((e6) => async (t2) => {
4079
4079
  }
4080
4080
  return r2;
4081
4081
  });
4082
- var cl = class extends Error {
4082
+ var ul = async (e6) => {
4083
+ if (e6.length === 0) return {};
4084
+ try {
4085
+ return await ll(e6);
4086
+ } catch {
4087
+ return {};
4088
+ }
4089
+ };
4090
+ var dl = class extends Error {
4083
4091
  constructor(e6, t2) {
4084
4092
  super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
4085
4093
  }
4086
4094
  };
4087
- var ll = (e6, t2, n2) => {
4095
+ var fl = (e6, t2, n2) => {
4088
4096
  let r2, i2 = new Promise((e7, i3) => {
4089
- r2 = setTimeout(() => i3(new cl(n2, t2)), t2);
4097
+ r2 = setTimeout(() => i3(new dl(n2, t2)), t2);
4090
4098
  });
4091
4099
  return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
4092
4100
  };
4093
- Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT;
4094
- var ul = [Z.RICH_CONTENT, Z.URL];
4095
- Z.URL, Z.METRICS;
4096
- var dl = (e6) => {
4101
+ X.RICH_CONTENT, X.SEO, X.URL, X.CONTENT_TEXT;
4102
+ var pl = [X.RICH_CONTENT, X.URL];
4103
+ X.URL, X.METRICS;
4104
+ var ml = (e6) => {
4097
4105
  let { status: t2, details: n2 } = e6 ?? {};
4098
4106
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
4099
4107
  };
4100
- var fl = (e6, t2) => {
4101
- if (t2 && !dl(e6)) throw e6;
4108
+ var hl = (e6, t2) => {
4109
+ if (t2 && !ml(e6)) throw e6;
4102
4110
  };
4103
- var pl = async (e6) => {
4111
+ var gl = (e6) => ul(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4112
+ var _l = async (e6) => {
4104
4113
  try {
4105
- let { metrics: t2 } = await Sc(e6);
4114
+ let { metrics: t2 } = await Cc(e6);
4106
4115
  return t2;
4107
4116
  } catch {
4108
4117
  return;
4109
4118
  }
4110
4119
  };
4111
- var ml = 100;
4112
- var hl = async () => {
4120
+ var vl = 100;
4121
+ var yl = async () => {
4113
4122
  try {
4114
- let { categories: e6 } = await ic({ paging: { limit: ml } });
4123
+ let { categories: e6 } = await ac({ paging: { limit: vl } });
4115
4124
  return e6 ?? [];
4116
4125
  } catch {
4117
4126
  return [];
4118
4127
  }
4119
4128
  };
4120
- var gl = (e6, t2) => {
4129
+ var bl = (e6, t2) => {
4121
4130
  let { categoryIds: n2 } = e6 ?? {};
4122
4131
  if (!n2?.length) return [];
4123
4132
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4124
4133
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4125
4134
  };
4126
- var _l = 30;
4127
- var vl = async (e6) => {
4135
+ var xl = 30;
4136
+ var Sl = async (e6) => {
4128
4137
  if (!e6?.length) return [];
4129
4138
  try {
4130
- let { items: t2 } = await Pc().in(`_id`, e6).limit(_l).find();
4139
+ let { items: t2 } = await Fc().in(`_id`, e6).limit(xl).find();
4131
4140
  return t2 ?? [];
4132
4141
  } catch {
4133
4142
  return [];
4134
4143
  }
4135
4144
  };
4136
- var yl = (e6, t2) => {
4145
+ var Cl = (e6, t2) => {
4137
4146
  let { tagIds: n2 } = e6 ?? {};
4138
4147
  if (!n2?.length) return [];
4139
4148
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4140
4149
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4141
4150
  };
4142
- var bl = 1e3;
4143
- var xl = async (e6, t2 = false) => {
4151
+ var wl = 1e3;
4152
+ var Tl = 1e3;
4153
+ var El = async (e6, t2 = false) => {
4144
4154
  try {
4145
- return (await xc(e6, { fieldsets: ul })).post;
4155
+ return (await Sc(e6, { fieldsets: pl })).post;
4146
4156
  } catch (e7) {
4147
- fl(e7, t2);
4157
+ hl(e7, t2);
4148
4158
  return;
4149
4159
  }
4150
4160
  };
4151
- var Sl = async (e6, t2 = false) => {
4152
- let n2 = hl();
4153
- return Cl(await xl(e6, t2), n2);
4161
+ var Dl = async (e6, t2 = false) => {
4162
+ let n2 = yl();
4163
+ return Ol(await El(e6, t2), n2);
4154
4164
  };
4155
- var Cl = async (e6, t2) => {
4156
- 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]);
4157
- return { post: e6, author: o2, metrics: s2, categories: gl(e6, c2), tags: yl(e6, l2), ...u2 && { paywall: u2 } };
4165
+ var Ol = async (e6, t2) => {
4166
+ 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;
4167
+ return { post: e6, author: o2, metrics: s2, categories: bl(e6, c2), tags: Cl(e6, l2), ...u2 && { paywall: u2 }, ...f2 && { videoSources: f2 } };
4158
4168
  };
4159
- var wl = (e6) => {
4169
+ var kl = (e6) => {
4160
4170
  let { _id: t2, categoryIds: n2, relatedPostIds: r2 } = e6 ?? {};
4161
4171
  return { currentPostId: t2 ?? void 0, categoryIds: n2, relatedPostIds: r2 };
4162
4172
  };
4163
- var Tl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4164
- var El = (e6) => {
4173
+ var Al = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4174
+ var jl = (e6) => {
4165
4175
  try {
4166
4176
  return e6.getMonitoringClient?.() ?? null;
4167
4177
  } catch {
4168
4178
  return null;
4169
4179
  }
4170
4180
  };
4171
- var Dl = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4172
- function Ol(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4173
- let o2 = Dl(e6, `captureException`);
4181
+ var Ml = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4182
+ function Nl(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4183
+ let o2 = Ml(e6, `captureException`);
4174
4184
  if (!o2) return;
4175
4185
  let s2 = t2 instanceof Error ? t2 : Error(String(t2));
4176
4186
  o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
4177
4187
  }
4178
- function kl(e6, t2, { feature: n2, tags: r2 }, i2) {
4179
- let a2 = Dl(e6, `startSpanManual`);
4188
+ function Pl(e6, t2, { feature: n2, tags: r2 }, i2) {
4189
+ let a2 = Ml(e6, `startSpanManual`);
4180
4190
  if (!a2) return i2;
4181
4191
  let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
4182
4192
  return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
4183
4193
  }
4184
- var Al = class extends n {
4194
+ var Fl = class extends n {
4185
4195
  state = { error: void 0 };
4186
4196
  static getDerivedStateFromError(e6) {
4187
4197
  return { error: e6 ?? Error(`Unknown render error`) };
4188
4198
  }
4189
4199
  componentDidCatch(e6, t2) {
4190
- Ol(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4200
+ Nl(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4191
4201
  }
4192
4202
  render() {
4193
4203
  if (this.state.error === void 0) return this.props.children;
@@ -4195,64 +4205,64 @@ var Al = class extends n {
4195
4205
  return this.props.fallback;
4196
4206
  }
4197
4207
  };
4198
- var jl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4199
- var Ml = (e6) => {
4208
+ var Il = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4209
+ var Ll = (e6) => {
4200
4210
  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;
4201
4211
  };
4202
- var Nl = `postId`;
4203
- var Pl = (e6) => Ml(e6?.[Nl]);
4204
- var Fl = (e6) => {
4212
+ var Rl = `postId`;
4213
+ var zl = (e6) => Ll(e6?.[Rl]);
4214
+ var Bl = (e6) => {
4205
4215
  let t2;
4206
4216
  try {
4207
- t2 = m(Xn);
4217
+ t2 = m(Zn);
4208
4218
  } catch {
4209
4219
  return;
4210
4220
  }
4211
- return lr(t2, e6);
4221
+ return ur(t2, e6);
4212
4222
  };
4213
- var Il = 1e4;
4214
- function Ll(e6) {
4223
+ var Vl = 1e4;
4224
+ function Hl(e6) {
4215
4225
  let [t2, n2] = f(void 0);
4216
4226
  return l(() => {
4217
4227
  let t3 = Date.now();
4218
- t3 - e6 > Il && o(() => n2(t3));
4228
+ t3 - e6 > Vl && o(() => n2(t3));
4219
4229
  }, []), t2 ?? e6;
4220
4230
  }
4221
- var Rl = `wix.blog.v3.post`;
4222
- var zl = async (e6) => {
4223
- await Gs({ like: { entityId: e6, fqdn: Rl } });
4231
+ var Ul = `wix.blog.v3.post`;
4232
+ var Wl = async (e6) => {
4233
+ await Gs({ like: { entityId: e6, fqdn: Ul } });
4224
4234
  };
4225
- var Bl = async (e6) => {
4226
- await Ks({ fqdn: Rl, entityId: e6 });
4235
+ var Gl = async (e6) => {
4236
+ await Ks({ fqdn: Ul, entityId: e6 });
4227
4237
  };
4228
- var Vl = (e6) => typeof e6 == `number` ? e6 : void 0;
4229
- var Hl = async (e6) => {
4230
- 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;
4231
- return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Vl(r2?.likes), viewCount: Vl(r2?.views), commentCount: Vl(r2?.comments) };
4238
+ var Kl = (e6) => typeof e6 == `number` ? e6 : void 0;
4239
+ var ql = async (e6) => {
4240
+ 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;
4241
+ return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Kl(r2?.likes), viewCount: Kl(r2?.views), commentCount: Kl(r2?.comments) };
4232
4242
  };
4233
- var Ul = I(`@wix/site-service-editor-context`);
4234
- var Wl = () => {
4243
+ var Jl = F(`@wix/site-service-editor-context`);
4244
+ var Yl = () => {
4235
4245
  try {
4236
- return !!m(Ul).previewMode;
4246
+ return !!m(Jl).previewMode;
4237
4247
  } catch {
4238
4248
  return false;
4239
4249
  }
4240
4250
  };
4241
- var Gl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4242
- var Kl = `wix-blog:post-like-toggled`;
4243
- var ql = () => {
4251
+ var Xl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4252
+ var Zl = `wix-blog:post-like-toggled`;
4253
+ var Ql = () => {
4244
4254
  let e6 = window;
4245
- return e6[Kl] ??= /* @__PURE__ */ new Map();
4255
+ return e6[Zl] ??= /* @__PURE__ */ new Map();
4246
4256
  };
4247
- var Jl = (e6) => {
4248
- ql().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Kl, { detail: e6 }));
4257
+ var $l = (e6) => {
4258
+ Ql().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Zl, { detail: e6 }));
4249
4259
  };
4250
- 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 });
4251
- var Xl = (e6, t2, n2 = false, r2) => {
4252
- let i2 = Wl() || n2, [a2, c2] = f(Gl), p2 = d(Gl), m2 = d(t2), h2 = d(/* @__PURE__ */ new Set()), g2 = d(false), _2 = d(false), v2 = d(void 0), y2 = Jn(), [b2, x2] = f(0);
4260
+ 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 });
4261
+ var tu = (e6, t2, n2 = false, r2) => {
4262
+ let i2 = Yl() || n2, [a2, c2] = f(Xl), p2 = d(Xl), m2 = d(t2), h2 = d(/* @__PURE__ */ new Set()), g2 = d(false), _2 = d(false), v2 = d(void 0), y2 = Yn(), [b2, x2] = f(0);
4253
4263
  l(() => {
4254
4264
  let e7 = y2?.addMemberLoginListener?.(() => {
4255
- ql().clear(), x2((e8) => e8 + 1);
4265
+ Ql().clear(), x2((e8) => e8 + 1);
4256
4266
  });
4257
4267
  return () => {
4258
4268
  e7 !== void 0 && y2?.removeMemberLoginListener?.(e7);
@@ -4261,21 +4271,21 @@ var Xl = (e6, t2, n2 = false, r2) => {
4261
4271
  let S2 = s((e7) => {
4262
4272
  let t3 = p2.current, n3 = { ...t3, ...e7 };
4263
4273
  Object.keys(n3).every((e8) => n3[e8] === t3[e8]) || (p2.current = n3, h2.current.forEach((e8) => e8()), o(() => c2(n3)));
4264
- }, []), C2 = u(() => ({ get: () => Yl(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4274
+ }, []), C2 = u(() => ({ get: () => eu(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4265
4275
  h2.current.delete(e7);
4266
4276
  }) }), []);
4267
4277
  l(() => {
4268
4278
  m2.current !== t2 && (m2.current = t2, h2.current.forEach((e7) => e7()));
4269
4279
  }, [t2]), l(() => {
4270
- if (v2.current !== e6 && (v2.current = e6, S2(Gl)), _2.current = false, !e6 || i2) {
4280
+ if (v2.current !== e6 && (v2.current = e6, S2(Xl)), _2.current = false, !e6 || i2) {
4271
4281
  S2({ isLikeCountLoaded: true });
4272
4282
  return;
4273
4283
  }
4274
4284
  let t3 = false;
4275
- return Hl(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4285
+ return ql(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4276
4286
  t3 || S2({ isLikeCountLoaded: true, viewCount: r3, commentCount: i3, baselineLiked: e7, freshLikeCount: n3, ...!_2.current && { liked: e7 } });
4277
4287
  }).catch((n3) => {
4278
- t3 || S2({ isLikeCountLoaded: true }), Ol(r2, n3, { feature: Tl.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4288
+ t3 || S2({ isLikeCountLoaded: true }), Nl(r2, n3, { feature: Al.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4279
4289
  }), () => {
4280
4290
  t3 = true;
4281
4291
  };
@@ -4283,32 +4293,32 @@ var Xl = (e6, t2, n2 = false, r2) => {
4283
4293
  if (!e6) return;
4284
4294
  let t3 = (e7) => {
4285
4295
  _2.current = true, S2({ liked: e7 });
4286
- }, n3 = ql().get(e6);
4296
+ }, n3 = Ql().get(e6);
4287
4297
  n3 !== void 0 && t3(n3);
4288
4298
  let r3 = (n4) => {
4289
4299
  let { detail: r4 } = n4;
4290
4300
  r4.postId === e6 && t3(r4.liked);
4291
4301
  };
4292
- return window.addEventListener(Kl, r3), () => window.removeEventListener(Kl, r3);
4302
+ return window.addEventListener(Zl, r3), () => window.removeEventListener(Zl, r3);
4293
4303
  }, [e6, S2]);
4294
4304
  let ee2 = s(async (t3) => {
4295
4305
  if (!e6 || g2.current) return;
4296
4306
  _2.current = true;
4297
4307
  let n3 = !p2.current.liked;
4298
- if (S2({ liked: n3 }), Jl({ postId: e6, liked: n3 }), !i2) {
4308
+ if (S2({ liked: n3 }), $l({ postId: e6, liked: n3 }), !i2) {
4299
4309
  g2.current = true;
4300
4310
  try {
4301
- await (n3 ? zl(e6) : Bl(e6));
4311
+ await (n3 ? Wl(e6) : Gl(e6));
4302
4312
  } catch (t4) {
4303
- S2({ liked: !n3 }), Jl({ postId: e6, liked: !n3 }), Ol(r2, t4, { feature: Tl.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4313
+ S2({ liked: !n3 }), $l({ postId: e6, liked: !n3 }), Nl(r2, t4, { feature: Al.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4304
4314
  } finally {
4305
4315
  g2.current = false;
4306
4316
  }
4307
4317
  }
4308
4318
  }, [e6, i2, r2, S2]);
4309
- return { ...Yl(a2, t2), toggleLike: ee2, liveLikes: C2 };
4319
+ return { ...eu(a2, t2), toggleLike: ee2, liveLikes: C2 };
4310
4320
  };
4311
- var Zl = () => {
4321
+ var nu = () => {
4312
4322
  try {
4313
4323
  let { locale: e6, language: t2 } = m(xo);
4314
4324
  return e6 || t2;
@@ -4316,183 +4326,211 @@ var Zl = () => {
4316
4326
  return;
4317
4327
  }
4318
4328
  };
4319
- var Ql = () => {
4329
+ var ru = () => {
4320
4330
  try {
4321
- return Yc(m(Xn));
4331
+ return Xc(m(Zn));
4322
4332
  } catch {
4323
4333
  return;
4324
4334
  }
4325
4335
  };
4326
- 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);
4327
- 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` };
4328
- var eu = (e6, t2) => {
4329
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: $l(r2, `full`, t2) });
4330
- 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) } };
4336
+ 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);
4337
+ 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` };
4338
+ var au = (e6, t2) => {
4339
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: iu(r2, `full`, t2) });
4340
+ 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) } };
4331
4341
  };
4332
- var tu = i({ isEditor: false, isPreview: false });
4333
- var nu = () => c(tu);
4334
- var ru = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4335
- var iu = () => {
4342
+ var ou = i({ isEditor: false, isPreview: false });
4343
+ var su = () => c(ou);
4344
+ var cu = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4345
+ var lu = () => {
4336
4346
  try {
4337
- let { SSR: e6, SEO: t2 } = m(Un);
4347
+ let { SSR: e6, SEO: t2 } = m(Wn);
4338
4348
  return e6 || t2;
4339
4349
  } catch {
4340
4350
  return false;
4341
4351
  }
4342
4352
  };
4343
- var au = () => {
4344
- let e6 = iu();
4345
- return ru(nu()) && !e6;
4353
+ var uu = () => {
4354
+ let e6 = lu();
4355
+ return cu(su()) && !e6;
4346
4356
  };
4347
- var ou = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4348
- var $ = (e6) => ({ text: e6, html: `<p>${ou(e6)}</p>`, linkList: [] });
4349
- var su = 6e4;
4350
- var cu = su * 60;
4351
- var lu = cu * 24;
4352
- var uu = lu * 7;
4353
- var du = (e6) => e6 < su ? [`second`, e6 / 1e3] : e6 < cu ? [`minute`, e6 / su] : e6 < lu ? [`hour`, e6 / cu] : [`day`, e6 / lu];
4354
- var fu = (e6, t2, n2 = Date.now()) => {
4357
+ var du = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4358
+ var fu = (e6) => {
4359
+ if (!e6) return;
4360
+ let t2 = e6 instanceof Date ? e6 : new Date(e6);
4361
+ return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4362
+ };
4363
+ var pu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4364
+ var mu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4365
+ var Q = (e6) => ({ text: e6, html: `<p>${mu(e6)}</p>`, linkList: [] });
4366
+ var hu = 6e4;
4367
+ var gu = hu * 60;
4368
+ var _u = gu * 24;
4369
+ var vu = _u * 7;
4370
+ var yu = (e6) => e6 < hu ? [`second`, e6 / 1e3] : e6 < gu ? [`minute`, e6 / hu] : e6 < _u ? [`hour`, e6 / gu] : [`day`, e6 / _u];
4371
+ var bu = (e6, t2, n2 = Date.now()) => {
4355
4372
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4356
- if (i2 >= 0 && i2 < uu) {
4357
- let [e7, n3] = du(i2);
4373
+ if (i2 >= 0 && i2 < vu) {
4374
+ let [e7, n3] = yu(i2);
4358
4375
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4359
4376
  }
4360
4377
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4361
4378
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4362
4379
  };
4363
- var pu = `https://static.wixstatic.com/media/`;
4364
- var mu = 100;
4365
- var hu = (e6, t2 = ``) => {
4380
+ var xu = `https://static.wixstatic.com/media/`;
4381
+ var Su = 100;
4382
+ var Cu = (e6, t2 = ``) => {
4366
4383
  let n2 = e6?.profile?.photo;
4367
4384
  if (!n2?.url) return;
4368
- let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(pu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4369
- return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || mu, height: n2.height || mu, alt: r2 ?? t2 };
4370
- };
4371
- var gu = `https://static.wixstatic.com/media/`;
4372
- var _u = `wix:image://`;
4373
- var vu = 1200;
4374
- var yu = 800;
4375
- var bu = (e6) => {
4385
+ let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(xu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4386
+ return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Su, height: n2.height || Su, alt: r2 ?? t2 };
4387
+ };
4388
+ var wu = `https://static.wixstatic.com/media/`;
4389
+ var Tu = `wix:image://`;
4390
+ var Eu = 1200;
4391
+ var Du = 800;
4392
+ var Ou = (e6) => {
4376
4393
  if (!e6) return;
4377
4394
  let t2 = Number.parseInt(e6, 10);
4378
4395
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4379
4396
  };
4380
- var xu = (e6) => {
4381
- if (!e6.startsWith(_u)) {
4397
+ var ku = (e6) => {
4398
+ if (!e6.startsWith(Tu)) {
4382
4399
  let t3 = e6.split(/[?#]/)[0];
4383
4400
  return t3 ? { uri: t3 } : void 0;
4384
4401
  }
4385
4402
  let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
4386
4403
  if (!r2) return;
4387
4404
  let a2 = new URLSearchParams(n2 ?? ``);
4388
- return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: bu(a2.get(`originWidth`)), height: bu(a2.get(`originHeight`)) };
4405
+ return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Ou(a2.get(`originWidth`)), height: Ou(a2.get(`originHeight`)) };
4389
4406
  };
4390
- var Su = (e6, t2) => {
4407
+ var Au = (e6, t2) => {
4391
4408
  if (!e6) return;
4392
- let n2 = xu(e6);
4409
+ let n2 = ku(e6);
4393
4410
  if (!n2) return;
4394
4411
  let r2 = n2.name ?? n2.uri;
4395
- return { uri: n2.uri, url: `${gu}${n2.uri}`, name: r2, width: n2.width ?? vu, height: n2.height ?? yu, alt: t2 ?? r2 };
4412
+ return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: t2 ?? r2 };
4396
4413
  };
4397
- var Cu = (e6) => {
4414
+ var ju = (e6) => {
4398
4415
  let t2 = e6?.media?.wixMedia?.image;
4399
4416
  if (!t2) return;
4400
- let n2 = xu(t2);
4417
+ let n2 = ku(t2);
4401
4418
  if (!n2) return;
4402
4419
  let r2 = n2.name ?? n2.uri;
4403
- 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 };
4420
+ 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 };
4404
4421
  };
4405
- var wu = `https://static.wixstatic.com/media/`;
4406
- var Tu = `wix:video://`;
4407
- var Eu = (e6) => {
4422
+ var Mu = `https://static.wixstatic.com/media/`;
4423
+ var Nu = `wix:video://`;
4424
+ var Pu = (e6) => {
4408
4425
  if (!e6) return;
4409
4426
  let t2 = Number.parseInt(e6, 10);
4410
4427
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4411
4428
  };
4412
- var Du = (e6) => {
4413
- if (!e6.startsWith(Tu)) return;
4429
+ var Fu = (e6) => {
4430
+ if (!e6.startsWith(Nu)) return;
4414
4431
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4415
4432
  if (!r2) return;
4416
4433
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4417
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${wu}${a2}` : void 0, posterWidth: Eu(i2.get(`posterWidth`)), posterHeight: Eu(i2.get(`posterHeight`)) };
4434
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Mu}${a2}` : void 0, posterWidth: Pu(i2.get(`posterWidth`)), posterHeight: Pu(i2.get(`posterHeight`)) };
4418
4435
  };
4419
- var Ou = (e6) => {
4420
- let t2 = Cu(e6), n2 = e6?.media?.wixMedia?.videoV2;
4436
+ var Iu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4437
+ var Lu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4438
+ var Ru = (e6, t2) => {
4439
+ for (let n2 of e6) {
4440
+ let e7 = n2.exec(t2);
4441
+ if (e7) return e7[1];
4442
+ }
4443
+ };
4444
+ var zu = (e6) => {
4445
+ let t2 = Ru(Iu, e6);
4446
+ if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4447
+ let n2 = Ru(Lu, e6);
4448
+ return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4449
+ };
4450
+ var Bu = (e6, t2 = []) => {
4451
+ let n2 = e6?.media;
4452
+ if (!n2 || n2.displayed === false) return;
4453
+ let r2 = ju(e6);
4454
+ if (r2) return { kind: `image`, image: r2 };
4455
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Fu(n2.wixMedia.videoV2) : void 0;
4456
+ if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4457
+ let o2 = n2.embedMedia?.video?.url;
4458
+ if (o2) {
4459
+ let { thumbnail: e7 } = n2.embedMedia ?? {};
4460
+ return { kind: `embed`, videoUrl: o2, ...zu(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4461
+ }
4462
+ };
4463
+ var Vu = (e6) => {
4464
+ let t2 = ju(e6), n2 = e6?.media?.wixMedia?.videoV2;
4421
4465
  if (t2 || !n2) return t2;
4422
- let r2 = Du(n2), i2 = Su(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4466
+ let r2 = Fu(n2), i2 = Au(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4423
4467
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4424
4468
  };
4425
- var ku = (e6) => {
4426
- if (!e6) return;
4427
- let t2 = e6 instanceof Date ? e6 : new Date(e6);
4428
- return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4429
- };
4430
- var Au = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4431
- var ju = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4432
- var Mu = (e6, t2) => {
4433
- let n2 = ju(e6, t2);
4469
+ var Hu = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4470
+ var Uu = (e6, t2) => {
4471
+ let n2 = Hu(e6, t2);
4434
4472
  return n2 ? { href: n2, target: `_self` } : void 0;
4435
4473
  };
4436
- var Nu = { href: `#`, target: `_self` };
4437
- var Pu = (e6, t2) => {
4474
+ var Wu = { href: `#`, target: `_self` };
4475
+ var Gu = (e6, t2) => {
4438
4476
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4439
- return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: $(a2), itemCategoryLink: Mu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4477
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: Q(a2), itemCategoryLink: Uu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4440
4478
  };
4441
- var Fu = 2;
4442
- var Iu = (e6) => Array.from({ length: Fu }, (t2, n2) => {
4479
+ var Ku = 2;
4480
+ var qu = (e6) => Array.from({ length: Ku }, (t2, n2) => {
4443
4481
  let r2 = e6.canvas.categoryNumbered(n2 + 1);
4444
- return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: $(r2), itemCategoryLink: Nu, categoryItem: { label: r2, slug: `` } };
4482
+ return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: Q(r2), itemCategoryLink: Wu, categoryItem: { label: r2, slug: `` } };
4445
4483
  });
4446
- var Lu = (e6, t2) => {
4484
+ var Ju = (e6, t2) => {
4447
4485
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4448
- return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: $(a2), itemTagLink: Mu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4486
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: Q(a2), itemTagLink: Uu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4449
4487
  };
4450
- var Ru = 3;
4451
- var zu = (e6) => Array.from({ length: Ru }, (t2, n2) => {
4488
+ var Yu = 3;
4489
+ var Xu = (e6) => Array.from({ length: Yu }, (t2, n2) => {
4452
4490
  let r2 = e6.canvas.tagNumbered(n2 + 1);
4453
- return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: $(r2), itemTagLink: Nu, tagItem: { label: r2, slug: `` } };
4491
+ return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: Q(r2), itemTagLink: Wu, tagItem: { label: r2, slug: `` } };
4454
4492
  });
4455
- var Bu = 1;
4456
- var Vu = { views: 120, comments: 4, likes: 12 };
4457
- var Hu = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4458
- var Uu = (e6, t2, n2, r2) => $(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4459
- var Wu = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4460
- var Gu = { nodes: [] };
4461
- 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 });
4462
- 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) };
4463
- var Ju = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4464
- let { t: a2 } = yo(), o2 = Zl(), s2 = u(() => 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 = u(() => wl(e6.post), [e6]), x2 = Ql(), S2 = u(() => e6.post?.richContent && e6.paywall ? Zc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4493
+ var Zu = 1;
4494
+ var $ = { views: 120, comments: 4, likes: 12 };
4495
+ var Qu = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4496
+ var $u = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4497
+ var ed = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4498
+ var td = { nodes: [] };
4499
+ 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 });
4500
+ 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) };
4501
+ var id = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4502
+ let { t: a2 } = yo(), o2 = nu(), s2 = u(() => 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 = u(() => kl(e6.post), [e6]), x2 = ru(), S2 = u(() => e6.post?.richContent && e6.paywall ? Qc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4465
4503
  return u(() => {
4466
- let n3 = qu(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 });
4467
- return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, 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 };
4504
+ 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);
4505
+ 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 };
4468
4506
  }, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
4469
4507
  };
4470
- var Yu = (e6) => ({ post: e6, hasError: false });
4471
- var Xu = () => ({ post: { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: Date.now() }, hasError: true });
4472
- var Zu = (e6) => {
4508
+ var ad = (e6) => ({ post: e6, hasError: false });
4509
+ var od = () => ({ post: { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: Date.now() }, hasError: true });
4510
+ var sd = (e6) => {
4473
4511
  throw e6;
4474
4512
  };
4475
- var Qu = { ...Ku(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4476
- }, liveLikes: void 0, postUrl: void 0, clockValue: 0, relatedPostsSource: { currentPostId: void 0, categoryIds: void 0, relatedPostIds: void 0 }, isLoadingPost: true, hasError: false, isEmpty: false };
4477
- var $u = { ...Qu, isLoadingPost: false, hasError: true, isEmpty: true };
4478
- var ed = 2500;
4479
- var td = Promise.resolve(Yu({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4480
- var nd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4481
- let { post: a2, hasError: o2 } = Bn(r2), c2 = Yn(a2, s(() => n2 ? xl(n2) : Promise.resolve(void 0), [n2])), l2 = Ju({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: ur() });
4482
- return pr(dr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), h(e, { value: l2, children: t2 });
4483
- };
4484
- function rd({ children: t2, postPicker: n2 }) {
4485
- let i2 = Pl(n2), a2 = Wn(), o2 = hr(), s2 = u(() => El(Rn), []), { i18n: c2, locale: l2 } = Go($o), d2 = Kn(() => i2 ? Hn(Mo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4486
- let e6 = Sl(i2, a2);
4487
- return jl(kl(s2, `post-by-id-read`, { feature: Tl.post }, a2 ? ll(e6, ed, `post-by-id`) : e6));
4488
- } }), Yu, a2 ? Zu : Xu) : td, [i2, a2, o2, s2]);
4489
- return h(bo, { i18n: c2, children: g(r, { fallback: h(e, { value: Qu, children: t2 }), children: [h(Wo, { i18n: c2, locale: l2 }), h(Al, { fallback: h(e, { value: $u, children: t2 }), feature: Tl.post, monitoringClient: s2, rethrow: a2, children: h(nd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4490
- }
4491
- var id = jn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4513
+ var cd = { ...nd(), isLiked: false, likeCountValue: 0, isLikeCountLoaded: false, toggleLike: async () => {
4514
+ }, 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 };
4515
+ var ld = { ...cd, isLoadingPost: false, hasError: true, isEmpty: true };
4516
+ var ud = 2500;
4517
+ var dd = Promise.resolve(ad({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4518
+ var fd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4519
+ let { post: a2, hasError: o2 } = Vn(r2), c2 = Xn(a2, s(() => n2 ? El(n2) : Promise.resolve(void 0), [n2])), l2 = id({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: dr() });
4520
+ return mr(fr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), h(e, { value: l2, children: t2 });
4521
+ };
4522
+ function pd({ children: t2, postPicker: n2 }) {
4523
+ let i2 = zl(n2), a2 = Gn(), o2 = gr(), s2 = u(() => jl(zn), []), { i18n: c2, locale: l2 } = Go($o), d2 = qn(() => i2 ? Un(Mo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4524
+ let e6 = Dl(i2, a2);
4525
+ return Il(Pl(s2, `post-by-id-read`, { feature: Al.post }, a2 ? fl(e6, ud, `post-by-id`) : e6));
4526
+ } }), ad, a2 ? sd : od) : dd, [i2, a2, o2, s2]);
4527
+ return h(bo, { i18n: c2, children: g(r, { fallback: h(e, { value: cd, children: t2 }), children: [h(Wo, { i18n: c2, locale: l2 }), h(Fl, { fallback: h(e, { value: ld, children: t2 }), feature: Al.post, monitoringClient: s2, rethrow: a2, children: h(fd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4528
+ }
4529
+ var md = Mn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4492
4530
  export {
4493
- rd as PostByIdProvider,
4494
- rd as default,
4495
- id as injectAccessTokenGetter,
4531
+ pd as PostByIdProvider,
4532
+ pd as default,
4533
+ md as injectAccessTokenGetter,
4496
4534
  t as usePostByIdContext
4497
4535
  };
4498
4536
  //# sourceMappingURL=context-post-by-id.mjs.map