@wix/blog 1.0.729 → 1.0.730
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.
- package/build/cjs/context-blog-feed.js +266 -265
- package/build/cjs/context-blog-feed.js.map +1 -1
- package/build/cjs/context-post-by-slug.js +5 -5
- package/build/cjs/context-post-by-slug.js.map +1 -1
- package/build/es/context-blog-feed.mjs +266 -265
- package/build/es/context-blog-feed.mjs.map +1 -1
- package/build/es/context-post-by-slug.mjs +5 -5
- package/build/es/context-post-by-slug.mjs.map +1 -1
- package/context-runtime/context-blog-feed/runtime.js +3 -3
- package/context-runtime/context-post-by-slug/runtime.js +2 -2
- package/package.json +3 -3
|
@@ -721,92 +721,92 @@ function Pt(e6, t2) {
|
|
|
721
721
|
function P(e6, t2 = false) {
|
|
722
722
|
return Pt(e6, t2);
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
let n2 =
|
|
726
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
724
|
+
function F(e6, t2) {
|
|
725
|
+
let n2 = It(e6), r2 = Object.entries(n2).some(([e7, t3]) => e7.includes(`.`) || Array.isArray(t3) && t3.some((e8) => typeof e8 == `object`));
|
|
726
|
+
return t2 && r2 ? new URLSearchParams({ ".r": Rt(JSON.stringify(e6)) }) : Object.entries(n2).reduce((e7, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
727
727
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e7.append(t3, r3);
|
|
728
728
|
}), e7), new URLSearchParams());
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
let t2 =
|
|
732
|
-
return
|
|
730
|
+
function Ft(e6) {
|
|
731
|
+
let t2 = Zt(Yt(e6.host), e6.domainToMappings);
|
|
732
|
+
return sn(rn(e6.protoPath, e6.data || {}), t2);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function It(e6, t2 = ``) {
|
|
735
735
|
let n2 = {};
|
|
736
736
|
return Object.entries(e6).forEach(([e7, r2]) => {
|
|
737
|
-
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 =
|
|
737
|
+
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Lt(t2, e7);
|
|
738
738
|
if (i2) {
|
|
739
|
-
let e8 =
|
|
739
|
+
let e8 = It(r2, a2);
|
|
740
740
|
Object.assign(n2, e8);
|
|
741
741
|
} else n2[a2] = r2;
|
|
742
742
|
}), n2;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Lt(e6, t2) {
|
|
745
745
|
return `${e6}${e6 ? `.` : ``}${t2}`;
|
|
746
746
|
}
|
|
747
|
-
var
|
|
747
|
+
var Rt = (e6) => {
|
|
748
748
|
let t2 = new TextEncoder().encode(e6);
|
|
749
749
|
return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e6, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
|
|
750
750
|
};
|
|
751
|
-
var
|
|
752
|
-
var
|
|
753
|
-
var
|
|
754
|
-
var
|
|
755
|
-
var
|
|
756
|
-
var
|
|
757
|
-
var
|
|
758
|
-
var
|
|
759
|
-
var
|
|
760
|
-
var
|
|
761
|
-
function
|
|
762
|
-
return
|
|
751
|
+
var zt = [`wix.com`, `editorx.com`];
|
|
752
|
+
var Bt = `_`;
|
|
753
|
+
var Vt = `*.`;
|
|
754
|
+
var Ht = RegExp(`\\.(${zt.join(`|`)})$`);
|
|
755
|
+
var Ut = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
756
|
+
var Wt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
757
|
+
var Gt = `dev.wix-code.com`;
|
|
758
|
+
var Kt = /{(.*)}/;
|
|
759
|
+
var qt = RegExp(`\\.(${Ut.join(`|`)})$`);
|
|
760
|
+
var Jt = RegExp(`.*\\.${Gt}$`);
|
|
761
|
+
function Yt(e6) {
|
|
762
|
+
return Xt(e6).replace(Ht, `._base_domain_`).replace(qt, `._api_base_domain_`).replace(Jt, `*.dev.wix-code.com`);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
764
|
+
function Xt(e6) {
|
|
765
|
+
return Wt[e6] ?? e6;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Zt(e6, t2) {
|
|
768
768
|
let n2 = t2[e6];
|
|
769
769
|
if (n2) return n2;
|
|
770
|
-
let r2 =
|
|
770
|
+
let r2 = Qt(e6, t2) ?? $t(e6, t2);
|
|
771
771
|
if (!r2) {
|
|
772
|
-
if (
|
|
773
|
-
let e7 = t2[
|
|
772
|
+
if (tn(e6)) {
|
|
773
|
+
let e7 = t2[nn];
|
|
774
774
|
if (e7) return e7;
|
|
775
775
|
}
|
|
776
|
-
let n3 = t2[
|
|
776
|
+
let n3 = t2[Bt];
|
|
777
777
|
if (n3) return n3;
|
|
778
778
|
}
|
|
779
779
|
return r2 ?? [];
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Qt(e6, t2) {
|
|
782
782
|
return Object.entries(t2).find(([t3]) => {
|
|
783
783
|
let [, ...n2] = e6.split(`.`);
|
|
784
784
|
return n2.join(`.`) === t3;
|
|
785
785
|
})?.[1];
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
let [n2] = Object.entries(t2).filter(([t3]) =>
|
|
787
|
+
function $t(e6, t2) {
|
|
788
|
+
let [n2] = Object.entries(t2).filter(([t3]) => en(e6, t3)).sort(([e7], [t3]) => t3.length - e7.length);
|
|
789
789
|
if (!n2) return;
|
|
790
790
|
let [, r2] = n2;
|
|
791
791
|
return r2;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
if (!t2.startsWith(
|
|
793
|
+
function en(e6, t2) {
|
|
794
|
+
if (!t2.startsWith(Vt)) return false;
|
|
795
795
|
let n2 = t2.slice(1);
|
|
796
796
|
return e6.length > n2.length && e6.endsWith(n2);
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function tn(e6) {
|
|
799
799
|
return !!e6.match(/\._base_domain_$/);
|
|
800
800
|
}
|
|
801
|
-
var
|
|
802
|
-
function
|
|
803
|
-
return e6.split(`/`).map((e7) =>
|
|
801
|
+
var nn = `www._base_domain_`;
|
|
802
|
+
function rn(e6, t2) {
|
|
803
|
+
return e6.split(`/`).map((e7) => an(e7, t2)).join(`/`);
|
|
804
804
|
}
|
|
805
|
-
function
|
|
806
|
-
let n2 = e6.match(
|
|
807
|
-
return r2 ?
|
|
805
|
+
function an(e6, t2) {
|
|
806
|
+
let n2 = e6.match(Kt) || [], r2 = n2[1];
|
|
807
|
+
return r2 ? on(t2, r2, e6, e6.replace(n2[0], ``)) : e6;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function on(e6, t2, n2, r2) {
|
|
810
810
|
let i2 = e6;
|
|
811
811
|
for (let e7 of t2.split(`.`)) {
|
|
812
812
|
if (!i2) return n2;
|
|
@@ -814,28 +814,28 @@ function sn(e6, t2, n2, r2) {
|
|
|
814
814
|
}
|
|
815
815
|
return `${i2}${r2}`;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function sn(e6, t2) {
|
|
818
818
|
let n2 = t2?.find((t3) => e6.startsWith(t3.destPath));
|
|
819
819
|
return n2 ? n2.srcPath + e6.slice(n2.destPath.length) : e6;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function cn(e6) {
|
|
822
822
|
return isFinite(e6) ? e6 : e6.toString();
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function I(e6) {
|
|
825
825
|
return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function ln(e6) {
|
|
828
828
|
return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
|
|
829
829
|
}
|
|
830
|
-
var
|
|
831
|
-
var
|
|
830
|
+
var un = `modulepreload`;
|
|
831
|
+
var dn = function(e6, t2) {
|
|
832
832
|
return new URL(e6, t2).href;
|
|
833
833
|
};
|
|
834
|
-
var
|
|
835
|
-
var
|
|
834
|
+
var fn = {};
|
|
835
|
+
var pn = function(e6) {
|
|
836
836
|
return e6.pathname.endsWith(`.css`);
|
|
837
837
|
};
|
|
838
|
-
var
|
|
838
|
+
var mn = function(e6, t2, n2) {
|
|
839
839
|
if (t2 in e6) return e6[t2];
|
|
840
840
|
let r2 = n2();
|
|
841
841
|
if (!r2) {
|
|
@@ -849,7 +849,7 @@ var hn = function(e6, t2, n2) {
|
|
|
849
849
|
});
|
|
850
850
|
return e6[t2] = i2, i2;
|
|
851
851
|
};
|
|
852
|
-
var
|
|
852
|
+
var L = function(e6, t2, n2) {
|
|
853
853
|
let r2 = Promise.resolve();
|
|
854
854
|
if (t2 && t2.length > 0) {
|
|
855
855
|
let o3 = function(e8) {
|
|
@@ -860,9 +860,9 @@ var I = function(e6, t2, n2) {
|
|
|
860
860
|
var o2 = o3, s2 = s3;
|
|
861
861
|
let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
|
|
862
862
|
r2 = o3(t2.map((t3) => {
|
|
863
|
-
t3 =
|
|
864
|
-
let r3 = s3(t3), i4 =
|
|
865
|
-
return
|
|
863
|
+
t3 = dn(t3, n2);
|
|
864
|
+
let r3 = s3(t3), i4 = pn(r3);
|
|
865
|
+
return mn(fn, r3.href, () => {
|
|
866
866
|
if (e7 === void 0) {
|
|
867
867
|
e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
|
|
868
868
|
let t5 = document.getElementsByTagName(`link`);
|
|
@@ -873,7 +873,7 @@ var I = function(e6, t2, n2) {
|
|
|
873
873
|
}
|
|
874
874
|
if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
|
|
875
875
|
let t4 = document.createElement(`link`);
|
|
876
|
-
if (t4.rel = i4 ? `stylesheet` :
|
|
876
|
+
if (t4.rel = i4 ? `stylesheet` : un, 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) => {
|
|
877
877
|
t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
|
|
878
878
|
});
|
|
879
879
|
});
|
|
@@ -888,36 +888,36 @@ var I = function(e6, t2, n2) {
|
|
|
888
888
|
return e6().catch(i2);
|
|
889
889
|
});
|
|
890
890
|
};
|
|
891
|
-
var
|
|
892
|
-
var
|
|
893
|
-
let e6 =
|
|
894
|
-
if (e6) return { [
|
|
891
|
+
var hn = `x-wix-currency`;
|
|
892
|
+
var gn = () => {
|
|
893
|
+
let e6 = Cn(`currency`);
|
|
894
|
+
if (e6) return { [hn]: e6 };
|
|
895
895
|
};
|
|
896
|
-
var
|
|
897
|
-
var
|
|
898
|
-
var
|
|
899
|
-
var
|
|
900
|
-
let e6 =
|
|
901
|
-
if (e6) return { [
|
|
896
|
+
var _n = `x-wix-linguist`;
|
|
897
|
+
var vn = `00000000-0000-0000-0000-000000000000`;
|
|
898
|
+
var yn = `false`;
|
|
899
|
+
var bn = () => {
|
|
900
|
+
let e6 = Cn(`language`), t2 = Cn(`locale`);
|
|
901
|
+
if (e6) return { [_n]: [e6, t2 || e6, yn, vn].join(`|`) };
|
|
902
902
|
};
|
|
903
|
-
function
|
|
903
|
+
function xn() {
|
|
904
904
|
let e6 = null, t2 = null;
|
|
905
905
|
return { promise: new Promise((n2, r2) => {
|
|
906
906
|
e6 = n2, t2 = r2;
|
|
907
907
|
}), resolve: e6, reject: t2 };
|
|
908
908
|
}
|
|
909
|
-
var
|
|
910
|
-
var
|
|
911
|
-
var
|
|
912
|
-
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 =
|
|
913
|
-
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language:
|
|
914
|
-
let e7 = { ...
|
|
909
|
+
var Sn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
|
|
910
|
+
var Cn = (e6) => Sn()?.[e6];
|
|
911
|
+
var wn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
|
|
912
|
+
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = En();
|
|
913
|
+
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Cn(`language`), locale: Cn(`locale`), get passThroughHeaders() {
|
|
914
|
+
let e7 = { ...bn(), ...gn() };
|
|
915
915
|
return Object.keys(e7).length > 0 ? e7 : void 0;
|
|
916
916
|
} } };
|
|
917
917
|
}, auth: (e7) => {
|
|
918
918
|
let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
|
|
919
|
-
!e7 &&
|
|
920
|
-
let n2 = false, { resolve: r2, promise: i2 } =
|
|
919
|
+
!e7 && Tn() && (e7 = t2?.getAccessTokenFunction?.());
|
|
920
|
+
let n2 = false, { resolve: r2, promise: i2 } = xn();
|
|
921
921
|
return { getAuthHeaders: async () => {
|
|
922
922
|
if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
|
|
923
923
|
return { headers: { Authorization: await e7() } };
|
|
@@ -925,37 +925,37 @@ var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
|
|
|
925
925
|
r2(e8);
|
|
926
926
|
}) };
|
|
927
927
|
} });
|
|
928
|
-
function
|
|
928
|
+
function Tn() {
|
|
929
929
|
return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function En() {
|
|
932
932
|
let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
|
|
933
933
|
if (!e6) return;
|
|
934
934
|
let t2 = new URL(e6);
|
|
935
935
|
return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var Dn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
|
|
938
938
|
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`);
|
|
939
939
|
return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
|
|
940
940
|
}, getAccessToken: () => {
|
|
941
941
|
throw Error(`Not implemented`);
|
|
942
942
|
}, observeState: () => ({ disconnect: () => {
|
|
943
943
|
} }) });
|
|
944
|
-
var
|
|
944
|
+
var On = wn({ createHost: function(e6) {
|
|
945
945
|
let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
|
|
946
946
|
if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
|
|
947
|
-
return { channel:
|
|
947
|
+
return { channel: Dn({ clientSdk: t2, applicationId: n2 }), close: () => {
|
|
948
948
|
} };
|
|
949
949
|
} });
|
|
950
|
-
var
|
|
951
|
-
let n2 =
|
|
950
|
+
var kn = (e6, t2) => {
|
|
951
|
+
let n2 = On.host({ applicationId: e6, componentId: t2 }), r2 = On.auth();
|
|
952
952
|
return Ke({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
|
|
953
953
|
};
|
|
954
|
-
var
|
|
955
|
-
function
|
|
954
|
+
var An = (e6) => kn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
|
|
955
|
+
function jn() {
|
|
956
956
|
let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
957
957
|
if (e6) return { initWixModules(t3, n3) {
|
|
958
|
-
return
|
|
958
|
+
return Mn(() => e6(t3, n3));
|
|
959
959
|
}, fetchWithAuth() {
|
|
960
960
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
961
961
|
}, graphql() {
|
|
@@ -965,10 +965,10 @@ function Mn() {
|
|
|
965
965
|
if (t2 || n2) return { initWixModules(e7, r2) {
|
|
966
966
|
if (r2) {
|
|
967
967
|
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`);
|
|
968
|
-
return
|
|
968
|
+
return Mn(() => n2.use(e7));
|
|
969
969
|
}
|
|
970
970
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
971
|
-
return
|
|
971
|
+
return Mn(() => t2.use(e7));
|
|
972
972
|
}, fetchWithAuth: (e7, n3) => {
|
|
973
973
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
974
974
|
return t2.fetchWithAuth(e7, n3);
|
|
@@ -980,7 +980,7 @@ function Mn() {
|
|
|
980
980
|
return t2.graphql(e7, n3, r2);
|
|
981
981
|
} };
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function Mn(e6) {
|
|
984
984
|
let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
|
|
985
985
|
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);
|
|
986
986
|
try {
|
|
@@ -989,17 +989,17 @@ function Nn(e6) {
|
|
|
989
989
|
globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function Nn(e6, t2) {
|
|
993
993
|
return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
|
|
994
|
-
let r2 =
|
|
994
|
+
let r2 = jn();
|
|
995
995
|
if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
996
996
|
return r2.initWixModules(e6)[t3].apply(void 0, n2);
|
|
997
997
|
}])) };
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
return
|
|
999
|
+
function Pn(e6) {
|
|
1000
|
+
return Nn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
|
|
1001
1001
|
}
|
|
1002
|
-
var
|
|
1002
|
+
var Fn = class {
|
|
1003
1003
|
constructor(e6) {
|
|
1004
1004
|
this.message = e6, this.captureException = () => {
|
|
1005
1005
|
console.error(this.message);
|
|
@@ -1014,13 +1014,13 @@ var In = class {
|
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
1016
|
};
|
|
1017
|
-
var
|
|
1018
|
-
var
|
|
1019
|
-
function
|
|
1017
|
+
var In = (e6) => new Fn(e6);
|
|
1018
|
+
var Ln = Pn({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : In(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
|
|
1019
|
+
function Rn(e6) {
|
|
1020
1020
|
let t2 = Promise.resolve(e6);
|
|
1021
1021
|
return t2.status = `fulfilled`, t2.value = e6, t2;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function zn(e6) {
|
|
1024
1024
|
if (e6.status === `fulfilled`) return e6.value;
|
|
1025
1025
|
throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
|
|
1026
1026
|
e6.status = `fulfilled`, e6.value = t2;
|
|
@@ -1028,17 +1028,17 @@ function Bn(e6) {
|
|
|
1028
1028
|
e6.status = `rejected`, e6.reason = t2;
|
|
1029
1029
|
})), e6);
|
|
1030
1030
|
}
|
|
1031
|
-
var
|
|
1032
|
-
function
|
|
1033
|
-
let r2 =
|
|
1034
|
-
r2 || (r2 = /* @__PURE__ */ new WeakMap(),
|
|
1031
|
+
var Bn = /* @__PURE__ */ new WeakMap();
|
|
1032
|
+
function Vn(e6, t2, n2) {
|
|
1033
|
+
let r2 = Bn.get(e6);
|
|
1034
|
+
r2 || (r2 = /* @__PURE__ */ new WeakMap(), Bn.set(e6, r2));
|
|
1035
1035
|
let i2 = r2.get(t2);
|
|
1036
1036
|
i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
|
|
1037
1037
|
let a2 = i2.get(n2);
|
|
1038
1038
|
if (!a2) {
|
|
1039
|
-
if (e6.status === `fulfilled`) a2 =
|
|
1039
|
+
if (e6.status === `fulfilled`) a2 = Rn(t2(e6.value));
|
|
1040
1040
|
else if (e6.status === `rejected`) try {
|
|
1041
|
-
a2 =
|
|
1041
|
+
a2 = Rn(n2(e6.reason));
|
|
1042
1042
|
} catch {
|
|
1043
1043
|
a2 = e6.then(t2, n2);
|
|
1044
1044
|
}
|
|
@@ -1047,88 +1047,111 @@ function Hn(e6, t2, n2) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
return a2;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function R(e6) {
|
|
1051
1051
|
return e6;
|
|
1052
1052
|
}
|
|
1053
|
-
var
|
|
1054
|
-
var
|
|
1055
|
-
var
|
|
1053
|
+
var Hn = R(`@wix/site-service-url`);
|
|
1054
|
+
var Un = `post`;
|
|
1055
|
+
var Wn = { kind: `all` };
|
|
1056
1056
|
var Gn = (e6) => {
|
|
1057
1057
|
let t2 = e6.split(`/`).filter(Boolean);
|
|
1058
|
-
if (t2.length < 2) return
|
|
1058
|
+
if (t2.length < 2) return Wn;
|
|
1059
1059
|
let [n2, r2] = t2.slice(-2), i2;
|
|
1060
1060
|
try {
|
|
1061
1061
|
i2 = decodeURIComponent(r2);
|
|
1062
1062
|
} catch {
|
|
1063
1063
|
i2 = r2;
|
|
1064
1064
|
}
|
|
1065
|
-
return i2 ? n2 === `category` ? { kind: `category`, slug: i2 } : n2 === `tag` ? { kind: `tag`, slug: i2 } :
|
|
1065
|
+
return i2 ? n2 === `category` ? { kind: `category`, slug: i2 } : n2 === `tag` ? { kind: `tag`, slug: i2 } : Wn : Wn;
|
|
1066
1066
|
};
|
|
1067
|
-
var Kn = (e6, t2) => e6 ? { kind: `category`, slug: e6 } : t2 ? { kind: `tag`, slug: t2 } :
|
|
1067
|
+
var Kn = (e6, t2) => e6 ? { kind: `category`, slug: e6 } : t2 ? { kind: `tag`, slug: t2 } : Wn;
|
|
1068
1068
|
var qn = (e6) => {
|
|
1069
|
-
if (!e6) return
|
|
1069
|
+
if (!e6) return Wn;
|
|
1070
1070
|
try {
|
|
1071
1071
|
return Gn(new URL(e6).pathname);
|
|
1072
1072
|
} catch {
|
|
1073
|
-
return
|
|
1073
|
+
return Wn;
|
|
1074
1074
|
}
|
|
1075
1075
|
};
|
|
1076
1076
|
var Jn = { kind: `all` };
|
|
1077
1077
|
var Yn = () => {
|
|
1078
1078
|
let e6, t2 = false;
|
|
1079
1079
|
try {
|
|
1080
|
-
e6 = (0, import_services_manager_react.useService)(
|
|
1080
|
+
e6 = (0, import_services_manager_react.useService)(Hn).currentUrl;
|
|
1081
1081
|
} catch {
|
|
1082
1082
|
t2 = true;
|
|
1083
1083
|
}
|
|
1084
1084
|
let n2 = (0, import_react.useMemo)(() => qn(e6), [e6]);
|
|
1085
1085
|
return t2 ? Jn : n2;
|
|
1086
1086
|
};
|
|
1087
|
-
var Xn =
|
|
1088
|
-
var Zn =
|
|
1089
|
-
var Qn =
|
|
1090
|
-
var $n = `
|
|
1091
|
-
var er =
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1087
|
+
var Xn = R(`seo/seo-service`);
|
|
1088
|
+
var Zn = R(`@wix/site-service-renderer-configuration`);
|
|
1089
|
+
var Qn = R(`@wix/site-service-rendering-context`);
|
|
1090
|
+
var $n = R(`@wix/site-service-editor-context`);
|
|
1091
|
+
var er = () => {
|
|
1092
|
+
try {
|
|
1093
|
+
return !!(0, import_services_manager_react.useService)($n).previewMode;
|
|
1094
|
+
} catch {
|
|
1095
|
+
return false;
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
var tr = (0, import_react.createContext)({ isEditor: false, isPreview: false });
|
|
1099
|
+
var nr = () => (0, import_react.useContext)(tr);
|
|
1100
|
+
var rr = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
|
|
1101
|
+
var ir = () => {
|
|
1102
|
+
try {
|
|
1103
|
+
let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Qn);
|
|
1104
|
+
return e6 || t2;
|
|
1105
|
+
} catch {
|
|
1106
|
+
return false;
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
var ar = () => {
|
|
1110
|
+
let e6 = ir();
|
|
1111
|
+
return rr(nr()) && !e6;
|
|
1112
|
+
};
|
|
1113
|
+
var or = `https://static.wixstatic.com/media/`;
|
|
1114
|
+
var sr = `wix:image://`;
|
|
1115
|
+
var cr = 1200;
|
|
1116
|
+
var lr = 800;
|
|
1117
|
+
var ur = (e6) => {
|
|
1095
1118
|
if (!e6) return;
|
|
1096
1119
|
let t2 = Number.parseInt(e6, 10);
|
|
1097
1120
|
return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
|
|
1098
1121
|
};
|
|
1099
|
-
var
|
|
1100
|
-
if (!e6.startsWith(
|
|
1122
|
+
var dr = (e6) => {
|
|
1123
|
+
if (!e6.startsWith(sr)) {
|
|
1101
1124
|
let t3 = e6.split(/[?#]/)[0];
|
|
1102
1125
|
return t3 ? { uri: t3 } : void 0;
|
|
1103
1126
|
}
|
|
1104
1127
|
let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
|
|
1105
1128
|
if (!r2) return;
|
|
1106
1129
|
let a2 = new URLSearchParams(n2 ?? ``);
|
|
1107
|
-
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width:
|
|
1130
|
+
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: ur(a2.get(`originWidth`)), height: ur(a2.get(`originHeight`)) };
|
|
1108
1131
|
};
|
|
1109
|
-
var
|
|
1132
|
+
var fr = (e6, t2) => {
|
|
1110
1133
|
if (!e6) return;
|
|
1111
|
-
let n2 =
|
|
1134
|
+
let n2 = dr(e6);
|
|
1112
1135
|
if (!n2) return;
|
|
1113
1136
|
let r2 = n2.name ?? n2.uri;
|
|
1114
|
-
return { uri: n2.uri, url: `${
|
|
1137
|
+
return { uri: n2.uri, url: `${or}${n2.uri}`, name: r2, width: n2.width ?? cr, height: n2.height ?? lr, alt: t2 ?? r2 };
|
|
1115
1138
|
};
|
|
1116
|
-
var
|
|
1139
|
+
var pr = (e6) => {
|
|
1117
1140
|
let t2 = e6?.media?.wixMedia?.image;
|
|
1118
1141
|
if (!t2) return;
|
|
1119
|
-
let n2 =
|
|
1142
|
+
let n2 = dr(t2);
|
|
1120
1143
|
if (!n2) return;
|
|
1121
1144
|
let r2 = n2.name ?? n2.uri;
|
|
1122
|
-
return { uri: n2.uri, url: `${
|
|
1145
|
+
return { uri: n2.uri, url: `${or}${n2.uri}`, name: r2, width: n2.width ?? cr, height: n2.height ?? lr, alt: e6?.media?.altText ?? e6?.title ?? r2 };
|
|
1123
1146
|
};
|
|
1124
|
-
var
|
|
1125
|
-
var
|
|
1126
|
-
var
|
|
1127
|
-
var
|
|
1147
|
+
var mr = `14bcded7-0066-7c35-14d7-466cb3f09103`;
|
|
1148
|
+
var hr = `builder-post`;
|
|
1149
|
+
var gr = `__blog_unknown_section__`;
|
|
1150
|
+
var _r = (e6) => {
|
|
1128
1151
|
let t2;
|
|
1129
1152
|
try {
|
|
1130
|
-
let n3 = e6.appSectionRelativeUrl(
|
|
1131
|
-
if (t2 = e6.appSectionRelativeUrl(
|
|
1153
|
+
let n3 = e6.appSectionRelativeUrl(mr, hr);
|
|
1154
|
+
if (t2 = e6.appSectionRelativeUrl(mr, hr, true), n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, gr) && !n3?.endsWith(`/post-page`) && t2 === n3) return;
|
|
1132
1155
|
} catch {
|
|
1133
1156
|
return;
|
|
1134
1157
|
}
|
|
@@ -1136,12 +1159,12 @@ var ur = (e6) => {
|
|
|
1136
1159
|
let n2 = t2.split(`/`).filter(Boolean);
|
|
1137
1160
|
return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
|
|
1138
1161
|
};
|
|
1139
|
-
var
|
|
1140
|
-
var
|
|
1141
|
-
let t2 =
|
|
1142
|
-
if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${
|
|
1162
|
+
var vr = (e6) => `${e6}/${Un}`;
|
|
1163
|
+
var yr = (e6) => {
|
|
1164
|
+
let t2 = _r(e6);
|
|
1165
|
+
if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${vr(t2)}`;
|
|
1143
1166
|
};
|
|
1144
|
-
var
|
|
1167
|
+
var br = (e6, t2) => {
|
|
1145
1168
|
if (!e6 || !t2) return;
|
|
1146
1169
|
let n2;
|
|
1147
1170
|
try {
|
|
@@ -1155,14 +1178,14 @@ var pr = (e6, t2) => {
|
|
|
1155
1178
|
if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
|
|
1156
1179
|
}
|
|
1157
1180
|
};
|
|
1158
|
-
var
|
|
1181
|
+
var xr = (e6) => {
|
|
1159
1182
|
if (!e6) return;
|
|
1160
1183
|
if (typeof e6 == `string`) return e6;
|
|
1161
1184
|
let { base: t2, path: n2 } = e6;
|
|
1162
1185
|
return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
|
|
1163
1186
|
};
|
|
1164
|
-
var
|
|
1165
|
-
let n2 =
|
|
1187
|
+
var Sr = (e6, t2) => {
|
|
1188
|
+
let n2 = xr(e6.url), r2 = `/${Un}`;
|
|
1166
1189
|
if (!n2 || !t2?.endsWith(r2)) return;
|
|
1167
1190
|
let i2, a2;
|
|
1168
1191
|
try {
|
|
@@ -1175,23 +1198,23 @@ var hr = (e6, t2) => {
|
|
|
1175
1198
|
let u2 = o2.startsWith(`${c2}/`), d2 = o2.split(`/`), { slug: f2 } = e6, p2 = f2 ? d2.includes(f2) || d2.includes(encodeURIComponent(f2)) : false, m2 = i2.origin === a2.origin && o2.startsWith(`${l2}/`) && p2;
|
|
1176
1199
|
return u2 || m2 ? n2 : void 0;
|
|
1177
1200
|
};
|
|
1178
|
-
var
|
|
1179
|
-
let n2 =
|
|
1201
|
+
var Cr = (e6, t2) => {
|
|
1202
|
+
let n2 = Sr(e6, t2);
|
|
1180
1203
|
if (n2) return { href: n2, target: `_self` };
|
|
1181
1204
|
if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
|
|
1182
|
-
let r2 =
|
|
1205
|
+
let r2 = xr(e6.url);
|
|
1183
1206
|
return r2 ? { href: r2, target: `_self` } : void 0;
|
|
1184
1207
|
};
|
|
1185
|
-
var
|
|
1186
|
-
var
|
|
1187
|
-
var
|
|
1208
|
+
var wr = `https://static.wixstatic.com/media/`;
|
|
1209
|
+
var Tr = 100;
|
|
1210
|
+
var Er = (e6, t2 = ``) => {
|
|
1188
1211
|
let n2 = e6?.profile?.photo;
|
|
1189
1212
|
if (!n2?.url) return;
|
|
1190
|
-
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(
|
|
1191
|
-
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width ||
|
|
1213
|
+
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(wr) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
|
|
1214
|
+
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Tr, height: n2.height || Tr, alt: r2 ?? t2 };
|
|
1192
1215
|
};
|
|
1193
|
-
var
|
|
1194
|
-
var
|
|
1216
|
+
var Dr = (e6, t2 = []) => (e6.translations ?? []).flatMap(({ language: e7, url: n2 }) => !e7 || !n2 ? [] : [{ url: n2, langCode: (t2.find(({ id: t3 }) => t3 === e7) ?? t2.find(({ languageCode: t3 }) => t3 === e7))?.regionalFormat || e7 }]);
|
|
1217
|
+
var Or = (e6, t2) => {
|
|
1195
1218
|
try {
|
|
1196
1219
|
let n2 = new URL(t2 ?? ``).searchParams.get(`lang`);
|
|
1197
1220
|
if (!n2) return e6;
|
|
@@ -1201,57 +1224,57 @@ var xr = (e6, t2) => {
|
|
|
1201
1224
|
return e6;
|
|
1202
1225
|
}
|
|
1203
1226
|
};
|
|
1204
|
-
var
|
|
1205
|
-
var
|
|
1227
|
+
var kr = { totalPages: 1, currentPage: 1 };
|
|
1228
|
+
var Ar = (e6) => {
|
|
1206
1229
|
if (e6) try {
|
|
1207
1230
|
let t2 = new URL(e6);
|
|
1208
|
-
return
|
|
1231
|
+
return Or(`${t2.origin}${t2.pathname.replace(/\/+$/, ``)}`, e6);
|
|
1209
1232
|
} catch {
|
|
1210
1233
|
return;
|
|
1211
1234
|
}
|
|
1212
1235
|
};
|
|
1213
|
-
var
|
|
1214
|
-
let i2 = e6.label ?? ``, a2 =
|
|
1215
|
-
return { category: { ...e6._id && { id: e6._id }, title: e6.title || i2, label: i2, description: e6.description ?? ``, canonicalUrl: t2, items: { numberOfItems: e6.postCount ?? n2.length }, pagination:
|
|
1236
|
+
var jr = (e6, t2, n2, r2) => {
|
|
1237
|
+
let i2 = e6.label ?? ``, a2 = fr(e6.coverImage, i2);
|
|
1238
|
+
return { category: { ...e6._id && { id: e6._id }, title: e6.title || i2, label: i2, description: e6.description ?? ``, canonicalUrl: t2, items: { numberOfItems: e6.postCount ?? n2.length }, pagination: kr, ...a2?.width && a2.height && { mainImage: { url: a2.url, width: a2.width, height: a2.height, hasImage: true } }, ...e6.language && { language: e6.language }, translatedPages: Dr(e6, r2) } };
|
|
1216
1239
|
};
|
|
1217
|
-
var
|
|
1240
|
+
var Mr = (e6) => {
|
|
1218
1241
|
if (!e6) return;
|
|
1219
1242
|
let t2 = new Date(e6);
|
|
1220
1243
|
return Number.isNaN(t2.getTime()) ? void 0 : t2.toISOString();
|
|
1221
1244
|
};
|
|
1222
|
-
var
|
|
1245
|
+
var Nr = (e6, t2, n2, r2) => {
|
|
1223
1246
|
let i2 = e6.label ?? ``;
|
|
1224
1247
|
return { tag: { name: i2, title: i2, fullUrl: t2, listItems: n2.flatMap((e7) => {
|
|
1225
|
-
let t3 =
|
|
1248
|
+
let t3 = Cr(e7, r2)?.href;
|
|
1226
1249
|
return t3 ? [`${t3.replace(/\/+$/, ``)}/`] : [];
|
|
1227
|
-
}), items: { numberOfItems: n2.length }, created:
|
|
1250
|
+
}), items: { numberOfItems: n2.length }, created: Mr(e6._createdDate), postCount: e6.publishedPostCount ?? e6.postCount, ...e6.slug && { slug: e6.slug }, ...e6.language && { language: e6.language }, pagination: kr } };
|
|
1228
1251
|
};
|
|
1229
|
-
var
|
|
1230
|
-
var
|
|
1252
|
+
var Pr = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
|
|
1253
|
+
var Fr = (e6) => {
|
|
1231
1254
|
try {
|
|
1232
1255
|
return e6.getMonitoringClient?.() ?? null;
|
|
1233
1256
|
} catch {
|
|
1234
1257
|
return null;
|
|
1235
1258
|
}
|
|
1236
1259
|
};
|
|
1237
|
-
var
|
|
1238
|
-
function
|
|
1239
|
-
let s2 =
|
|
1260
|
+
var Ir = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
|
|
1261
|
+
function Lr(e6, t2, { feature: n2, action: r2, level: i2 = `error`, tags: a2, contexts: o2 }) {
|
|
1262
|
+
let s2 = Ir(e6, `captureException`);
|
|
1240
1263
|
if (!s2) return;
|
|
1241
1264
|
let c2 = t2 instanceof Error ? t2 : Error(String(t2));
|
|
1242
1265
|
s2.captureException(c2, { level: i2, tags: { feature: n2, action: r2, ...a2 }, ...o2 ? { contexts: o2 } : {} });
|
|
1243
1266
|
}
|
|
1244
|
-
function
|
|
1245
|
-
let a2 =
|
|
1267
|
+
function Rr(e6, t2, { feature: n2, tags: r2 }, i2) {
|
|
1268
|
+
let a2 = Ir(e6, `startSpanManual`);
|
|
1246
1269
|
if (!a2) return i2;
|
|
1247
1270
|
let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
|
|
1248
1271
|
return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
|
|
1249
1272
|
}
|
|
1250
|
-
var
|
|
1251
|
-
var
|
|
1273
|
+
var zr = /* @__PURE__ */ new WeakSet();
|
|
1274
|
+
var Br = (e6, t2, n2, r2) => {
|
|
1252
1275
|
let i2;
|
|
1253
1276
|
try {
|
|
1254
|
-
i2 = { seo: (0, import_services_manager_react.useService)(Xn), url: (0, import_services_manager_react.useService)(
|
|
1277
|
+
i2 = { seo: (0, import_services_manager_react.useService)(Xn), url: (0, import_services_manager_react.useService)(Hn) };
|
|
1255
1278
|
} catch {
|
|
1256
1279
|
return;
|
|
1257
1280
|
}
|
|
@@ -1260,71 +1283,72 @@ var Nr = (e6, t2, n2, r2) => {
|
|
|
1260
1283
|
a2 = (0, import_services_manager_react.useService)(Zn).locales;
|
|
1261
1284
|
} catch {
|
|
1262
1285
|
}
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1286
|
+
let { isEditor: o2 } = nr();
|
|
1287
|
+
if (zr.has(t2) || e6.kind === `all` || o2) return;
|
|
1288
|
+
let s2 = Ar(i2.url.currentUrl);
|
|
1289
|
+
s2 && (e6.kind === `category` && t2.filterCategory ? (zr.add(t2), i2.seo.setSeoEntity({ itemType: `BLOG_CATEGORY`, itemData: jr(t2.filterCategory, s2, t2.posts, a2), seoData: t2.filterCategory.seoData }).catch((t3) => {
|
|
1290
|
+
Lr(r2, t3, { feature: Pr.seo, action: `set-category-seo-entity`, contexts: { seo: { slug: e6.kind === `category` ? e6.slug : void 0 } } });
|
|
1291
|
+
})) : e6.kind === `tag` && t2.filterTag && (zr.add(t2), i2.seo.setSeoEntity({ itemType: `BLOG_TAGS`, itemData: Nr(t2.filterTag, s2, t2.posts, n2), asNewPage: true }).catch((t3) => {
|
|
1292
|
+
Lr(r2, t3, { feature: Pr.seo, action: `set-tag-seo-entity`, contexts: { seo: { slug: e6.kind === `tag` ? e6.slug : void 0 } } });
|
|
1269
1293
|
})));
|
|
1270
1294
|
};
|
|
1271
|
-
var
|
|
1272
|
-
function
|
|
1295
|
+
var Vr = 1e4;
|
|
1296
|
+
function Hr(e6) {
|
|
1273
1297
|
let [t2, n2] = (0, import_react.useState)(void 0);
|
|
1274
1298
|
return (0, import_react.useEffect)(() => {
|
|
1275
1299
|
let t3 = Date.now();
|
|
1276
|
-
t3 - e6 >
|
|
1300
|
+
t3 - e6 > Vr && (0, import_react.startTransition)(() => n2(t3));
|
|
1277
1301
|
}, []), t2 ?? e6;
|
|
1278
1302
|
}
|
|
1279
|
-
var
|
|
1303
|
+
var Ur = () => {
|
|
1280
1304
|
try {
|
|
1281
1305
|
return (0, import_services_manager_react.useService)(Qn).SSR;
|
|
1282
1306
|
} catch {
|
|
1283
1307
|
return false;
|
|
1284
1308
|
}
|
|
1285
1309
|
};
|
|
1286
|
-
var
|
|
1287
|
-
function
|
|
1310
|
+
var Wr = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
|
|
1311
|
+
function Gr(e6, t2) {
|
|
1288
1312
|
let [n2, r2] = (0, import_react.useState)(() => ({ deps: t2, value: e6() }));
|
|
1289
1313
|
return (0, import_react.useEffect)(() => {
|
|
1290
|
-
if (
|
|
1314
|
+
if (Wr(n2.deps, t2)) return;
|
|
1291
1315
|
let a2 = e6();
|
|
1292
1316
|
(0, import_react.startTransition)(() => r2({ deps: t2, value: a2 }));
|
|
1293
1317
|
}, t2), n2.value;
|
|
1294
1318
|
}
|
|
1295
|
-
var
|
|
1319
|
+
var Kr = (e6) => {
|
|
1296
1320
|
let t2;
|
|
1297
1321
|
try {
|
|
1298
|
-
t2 = (0, import_services_manager_react.useService)(
|
|
1322
|
+
t2 = (0, import_services_manager_react.useService)(Hn);
|
|
1299
1323
|
} catch {
|
|
1300
1324
|
return;
|
|
1301
1325
|
}
|
|
1302
|
-
return
|
|
1326
|
+
return yr(t2) ?? br(t2.currentUrl, e6);
|
|
1303
1327
|
};
|
|
1304
|
-
var
|
|
1305
|
-
var
|
|
1306
|
-
var
|
|
1328
|
+
var qr = { 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` };
|
|
1329
|
+
var Jr = (e6) => `${e6} rendered`;
|
|
1330
|
+
var Yr = (e6, t2, n2) => {
|
|
1307
1331
|
(0, import_react.useEffect)(() => {
|
|
1308
1332
|
if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
|
|
1309
|
-
performance.mark(
|
|
1333
|
+
performance.mark(Jr(e6), { detail: { state: t2, compId: n2 } });
|
|
1310
1334
|
} catch {
|
|
1311
1335
|
}
|
|
1312
1336
|
}, [e6, t2, n2]);
|
|
1313
1337
|
};
|
|
1314
|
-
var
|
|
1315
|
-
var
|
|
1338
|
+
var Xr = R(`@wix/site-service-locale`);
|
|
1339
|
+
var Zr = () => {
|
|
1316
1340
|
let e6, t2;
|
|
1317
1341
|
try {
|
|
1318
1342
|
e6 = (0, import_services_manager_react.useService)(Zn).languageCode;
|
|
1319
1343
|
} catch {
|
|
1320
1344
|
}
|
|
1321
1345
|
try {
|
|
1322
|
-
t2 = (0, import_services_manager_react.useService)(
|
|
1346
|
+
t2 = (0, import_services_manager_react.useService)(Xr).language;
|
|
1323
1347
|
} catch {
|
|
1324
1348
|
}
|
|
1325
1349
|
return e6 || t2;
|
|
1326
1350
|
};
|
|
1327
|
-
var
|
|
1351
|
+
var Qr = () => {
|
|
1328
1352
|
let e6;
|
|
1329
1353
|
try {
|
|
1330
1354
|
let { multilingualEnabled: t3, locales: n3, languageCode: r2 } = (0, import_services_manager_react.useService)(Zn), i2 = n3.filter((e7) => e7.languageCode === r2), a2 = n3.find(({ id: e7 }) => e7 === r2) ?? (i2.length === 1 ? i2[0] : void 0);
|
|
@@ -1333,34 +1357,11 @@ var Gr = () => {
|
|
|
1333
1357
|
}
|
|
1334
1358
|
let t2, n2;
|
|
1335
1359
|
try {
|
|
1336
|
-
({ locale: t2, language: n2 } = (0, import_services_manager_react.useService)(
|
|
1360
|
+
({ locale: t2, language: n2 } = (0, import_services_manager_react.useService)(Xr));
|
|
1337
1361
|
} catch {
|
|
1338
1362
|
}
|
|
1339
1363
|
return e6 || t2 || n2;
|
|
1340
1364
|
};
|
|
1341
|
-
var Kr = L(`@wix/site-service-editor-context`);
|
|
1342
|
-
var qr = () => {
|
|
1343
|
-
try {
|
|
1344
|
-
return !!(0, import_services_manager_react.useService)(Kr).previewMode;
|
|
1345
|
-
} catch {
|
|
1346
|
-
return false;
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
var Jr = (0, import_react.createContext)({ isEditor: false, isPreview: false });
|
|
1350
|
-
var Yr = () => (0, import_react.useContext)(Jr);
|
|
1351
|
-
var Xr = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
|
|
1352
|
-
var Zr = () => {
|
|
1353
|
-
try {
|
|
1354
|
-
let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Qn);
|
|
1355
|
-
return e6 || t2;
|
|
1356
|
-
} catch {
|
|
1357
|
-
return false;
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
var Qr = () => {
|
|
1361
|
-
let e6 = Zr();
|
|
1362
|
-
return Xr(Yr()) && !e6;
|
|
1363
|
-
};
|
|
1364
1365
|
function $r(e6) {
|
|
1365
1366
|
return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
|
|
1366
1367
|
}
|
|
@@ -1580,31 +1581,31 @@ var Si = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.url
|
|
|
1580
1581
|
var Ci = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
|
|
1581
1582
|
var wi = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
1582
1583
|
function Ti(e6) {
|
|
1583
|
-
return
|
|
1584
|
+
return Ft(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: `` }] } }));
|
|
1584
1585
|
}
|
|
1585
1586
|
var Ei = `@wix/auto_sdk_blog_categories`;
|
|
1586
1587
|
function Di(e6) {
|
|
1587
1588
|
function t2({ host: t3 }) {
|
|
1588
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories/{categoryId}`, data: e6, host: t3 }), params:
|
|
1589
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories/{categoryId}`, data: e6, host: t3 }), params: F(e6), transformResponse: (e7) => M(e7, [{ transformFn: j, paths: bi }, { transformFn: I, paths: xi }]) };
|
|
1589
1590
|
}
|
|
1590
1591
|
return t2;
|
|
1591
1592
|
}
|
|
1592
1593
|
function Oi(e6) {
|
|
1593
1594
|
function t2({ host: t3 }) {
|
|
1594
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories/slugs/{slug}`, data: e6, host: t3 }), params:
|
|
1595
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories/slugs/{slug}`, data: e6, host: t3 }), params: F(e6), transformResponse: (e7) => M(e7, [{ transformFn: j, paths: bi }, { transformFn: I, paths: xi }]) };
|
|
1595
1596
|
}
|
|
1596
1597
|
return t2;
|
|
1597
1598
|
}
|
|
1598
1599
|
function ki(e6) {
|
|
1599
1600
|
function t2({ host: t3 }) {
|
|
1600
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories`, data: e6, host: t3 }), params:
|
|
1601
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: F(e6), transformResponse: (e7) => M(e7, [{ transformFn: j, paths: Si }, { transformFn: I, paths: Ci }]) };
|
|
1601
1602
|
}
|
|
1602
1603
|
return t2;
|
|
1603
1604
|
}
|
|
1604
1605
|
function Ai(e6) {
|
|
1605
1606
|
function t2({ host: t3 }) {
|
|
1606
|
-
let n2 = M(e6, [{ transformFn:
|
|
1607
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: Si }, { transformFn:
|
|
1607
|
+
let n2 = M(e6, [{ transformFn: cn, paths: wi }]);
|
|
1608
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories`, packageName: Ei, migrationOptions: { optInTransformResponse: true }, url: Ti({ protoPath: `/v3/categories/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: Si }, { transformFn: I, paths: Ci }]) };
|
|
1608
1609
|
}
|
|
1609
1610
|
return t2;
|
|
1610
1611
|
}
|
|
@@ -1723,19 +1724,19 @@ var Qi = [{ path: `posts.richContentCompressed` }];
|
|
|
1723
1724
|
var $i = [{ 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` }];
|
|
1724
1725
|
var ea = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
1725
1726
|
function ta(e6) {
|
|
1726
|
-
return
|
|
1727
|
+
return Ft(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` }] } }));
|
|
1727
1728
|
}
|
|
1728
1729
|
var na = `@wix/auto_sdk_blog_posts`;
|
|
1729
1730
|
function ra(e6) {
|
|
1730
1731
|
function t2({ host: t3 }) {
|
|
1731
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName: na, migrationOptions: { optInTransformResponse: true }, url: ta({ protoPath: `/v3/posts`, data: e6, host: t3 }), params:
|
|
1732
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName: na, migrationOptions: { optInTransformResponse: true }, url: ta({ protoPath: `/v3/posts`, data: e6, host: t3 }), params: F(e6), transformResponse: (e7) => M(e7, [{ transformFn: j, paths: Zi }, { transformFn: ln, paths: Qi }, { transformFn: I, paths: $i }]) };
|
|
1732
1733
|
}
|
|
1733
1734
|
return t2;
|
|
1734
1735
|
}
|
|
1735
1736
|
function ia(e6) {
|
|
1736
1737
|
function t2({ host: t3 }) {
|
|
1737
|
-
let n2 = M(e6, [{ transformFn:
|
|
1738
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: na, migrationOptions: { optInTransformResponse: true }, url: ta({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: Zi }, { transformFn:
|
|
1738
|
+
let n2 = M(e6, [{ transformFn: cn, paths: ea }]);
|
|
1739
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: na, migrationOptions: { optInTransformResponse: true }, url: ta({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: Zi }, { transformFn: ln, paths: Qi }, { transformFn: I, paths: $i }]) };
|
|
1739
1740
|
}
|
|
1740
1741
|
return t2;
|
|
1741
1742
|
}
|
|
@@ -1806,12 +1807,12 @@ var ha = P(da);
|
|
|
1806
1807
|
var ga = P(ma);
|
|
1807
1808
|
var _a = [{ path: `tag.createdDate` }, { path: `tag.updatedDate` }];
|
|
1808
1809
|
function va(e6) {
|
|
1809
|
-
return
|
|
1810
|
+
return Ft(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` }] } }));
|
|
1810
1811
|
}
|
|
1811
1812
|
var ya = `@wix/auto_sdk_blog_tags`;
|
|
1812
1813
|
function ba(e6) {
|
|
1813
1814
|
function t2({ host: t3 }) {
|
|
1814
|
-
return { entityFqdn: `wix.blog.v3.tag`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.GetTagBySlug`, packageName: ya, migrationOptions: { optInTransformResponse: true }, url: va({ protoPath: `/v3/tags/slugs/{slug}`, data: e6, host: t3 }), params:
|
|
1815
|
+
return { entityFqdn: `wix.blog.v3.tag`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.GetTagBySlug`, packageName: ya, migrationOptions: { optInTransformResponse: true }, url: va({ protoPath: `/v3/tags/slugs/{slug}`, data: e6, host: t3 }), params: F(e6), transformResponse: (e7) => M(e7, [{ transformFn: j, paths: _a }]) };
|
|
1815
1816
|
}
|
|
1816
1817
|
return t2;
|
|
1817
1818
|
}
|
|
@@ -1833,7 +1834,7 @@ function Ca(e6) {
|
|
|
1833
1834
|
var wa = P(Ca);
|
|
1834
1835
|
var Ta = () => {
|
|
1835
1836
|
try {
|
|
1836
|
-
return (0, import_services_manager_react.useService)(
|
|
1837
|
+
return (0, import_services_manager_react.useService)(Hn).currentUrl;
|
|
1837
1838
|
} catch {
|
|
1838
1839
|
return;
|
|
1839
1840
|
}
|
|
@@ -1849,7 +1850,7 @@ var Ea = (e6, t2) => {
|
|
|
1849
1850
|
if (r2.length !== 0) return r2[r2.length - 1] = encodeURIComponent(t2), n2.pathname = `/${r2.join(`/`)}`, n2.toString();
|
|
1850
1851
|
};
|
|
1851
1852
|
var Da = (e6, t2, n2) => {
|
|
1852
|
-
let r2 = Ta(), i2 =
|
|
1853
|
+
let r2 = Ta(), i2 = ar(), a2 = er(), { language: o2, translationId: c2 } = e6 ?? {}, l2 = !!(t2 && c2 && o2 && o2 !== t2);
|
|
1853
1854
|
(0, import_react.useEffect)(() => {
|
|
1854
1855
|
if (!l2 || !t2 || !c2 || !r2 || i2 || a2) return;
|
|
1855
1856
|
let e7 = false;
|
|
@@ -1861,9 +1862,9 @@ var Da = (e6, t2, n2) => {
|
|
|
1861
1862
|
};
|
|
1862
1863
|
}, [l2, t2, c2, r2, i2, a2, n2]);
|
|
1863
1864
|
};
|
|
1864
|
-
var Oa =
|
|
1865
|
+
var Oa = R(`@wix/site-service-warmup-data`);
|
|
1865
1866
|
function ka() {
|
|
1866
|
-
let e6 =
|
|
1867
|
+
let e6 = Ur(), t2 = null;
|
|
1867
1868
|
try {
|
|
1868
1869
|
t2 = (0, import_services_manager_react.useGetService)()(Oa);
|
|
1869
1870
|
} catch {
|
|
@@ -4222,7 +4223,7 @@ function Yc({ key: e6, warmupData: t2, fetchData: n2 }) {
|
|
|
4222
4223
|
if (a2) return a2.promise;
|
|
4223
4224
|
let o2 = Uc(e6);
|
|
4224
4225
|
if (o2 !== void 0) {
|
|
4225
|
-
let t3 =
|
|
4226
|
+
let t3 = Rn(o2);
|
|
4226
4227
|
return r2.set(e6, { promise: t3, expiresAt: i2 + Wc }), t3;
|
|
4227
4228
|
}
|
|
4228
4229
|
let s2 = (async () => await t2.get(e6) ?? n2())();
|
|
@@ -4487,21 +4488,21 @@ var Kd;
|
|
|
4487
4488
|
var qd = g(() => {
|
|
4488
4489
|
Gd = `My App`, Kd = { "canvas.category": `\u985E\u5225`, "post-list.empty-state.description": `\u5DF2\u767C\u4F48\u7684\u6587\u7AE0\u6703\u5728\u6B64\u8655\u51FA\u73FE\u3002`, "canvas.tag-numbered": `\u6A19\u7C64 {number}`, "cover-media.play": `\u64AD\u653E\u5F71\u7247`, "post-comments.unavailable": `\u7559\u8A00\u4E0D\u53EF\u7528\u3002\u6C92\u6709\u61C9\u7528\u7A0B\u5F0F\u57F7\u884C\u500B\u9AD4\u3002`, "post-counters.loading-likes": `\u6B63\u5728\u8F09\u5165\u8B9A\u597D`, "post-comments.loading": `\u6B63\u5728\u8F09\u5165\u7559\u8A00\u2026\u2026`, "post-actions.like": `\u8B9A\u597D\u6587\u7AE0`, "canvas.content": `\u5B8C\u6574\u6587\u7AE0\u6703\u986F\u793A\u5728\u9019\u88E1\u3002\u8ACB\u5728\u9019\u88E1\u64B0\u5BEB\u5167\u5BB9\uFF0C\u4E26\u5F9E\u7BA1\u7406\u4ECB\u9762\u65B0\u589E\u5716\u7247\u3001\u5716\u5EAB\u548C\u5F71\u7247\u3002\u4F7F\u7528\u6A19\u984C\u548C\u5F15\u8A00\uFF0C\u8B93\u5167\u5BB9\u66F4\u5BB9\u6613\u95B1\u8B80\u3002`, "related-posts.empty-state.title": `\u5C1A\u7121\u76F8\u95DC\u6587\u7AE0`, "post.time-to-read": `{count, plural, other {{count,number} \u5206\u9418\u95B1\u8B80}}`, "post-actions.link-copied": `\u5DF2\u8907\u88FD\u9023\u7D50`, "category-header.all-posts": `\u6240\u6709\u6587\u7AE0`, "post-actions.copy-manually": `\u8ACB\u8907\u88FD\u4E0B\u65B9\u9023\u7D50\u4F86\u5206\u4EAB\u9019\u7BC7\u6587\u7AE0\u3002`, "post-actions.copy-link": `\u8907\u88FD\u9023\u7D50`, "cover-media.placeholder-alt": `\u6587\u7AE0\u5C01\u9762\u5716\u7247`, "post-actions.link-label": `\u6587\u7AE0\u9023\u7D50`, "post-list.empty-state.title": `\u5C1A\u7121\u6587\u7AE0`, "post-actions.share-dialog": `\u5206\u4EAB\u6587\u7AE0`, "canvas.post-title": `\u6587\u7AE0\u6A19\u984C`, "post-actions.unlike": `\u53D6\u6D88\u8B9A\u597D\u6587\u7AE0`, "post-comments.no-post": `\u6B64\u7DB2\u5740\u5C1A\u672A\u89E3\u6790\u51FA\u6587\u7AE0\u3002`, "post.like-count": `{count, plural, other {{formatted} \u500B\u8B9A\u597D}}`, "canvas.category-numbered": `\u985E\u5225 {number}`, "post.comment-count": `{count, plural, other {{formatted} \u5247\u7559\u8A00}}`, "post-actions.share": `\u5206\u4EAB\u6587\u7AE0`, "post.view-count": `{count, plural, other {{formatted} \u6B21\u67E5\u770B}}`, "post-actions.close": `\u95DC\u9589`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `\u4F5C\u8005\u76F8\u7247`, "canvas.author-name": `\u4F5C\u8005\u540D\u7A31`, "post-comments.demo-notice": `\u7DE8\u8F2F\u6642\u6703\u986F\u793A\u7BC4\u4F8B\u7559\u8A00\u3002\u8A2A\u5BA2\u6703\u770B\u5230\u5BE6\u969B\u7559\u8A00\u3002`, title: Gd, "related-posts.empty-state.description": `\u76F8\u95DC\u6587\u7AE0\u6703\u5728\u6B64\u8655\u51FA\u73FE\u3002`, "canvas.excerpt": `\u5728\u9019\u88E1\u5206\u4EAB\u6587\u7AE0\u7684\u6838\u5FC3\u60F3\u6CD5\u3002\u9019\u6BB5\u7C21\u77ED\u6458\u8981\u6703\u986F\u793A\u5728\u52D5\u614B\u6D88\u606F\u5361\u7247\u548C\u641C\u5C0B\u7D50\u679C\u4E2D\uFF0C\u4E26\u544A\u8A34\u8B80\u8005\u9019\u7BC7\u6587\u7AE0\u503C\u5F97\u95B1\u8B80\u7684\u539F\u56E0\u3002` };
|
|
4489
4490
|
});
|
|
4490
|
-
Ma({ isDev: false, loadMessages: (e6) => rl(Object.assign({ "../assets/locale/messages_ar.json": () =>
|
|
4491
|
+
Ma({ isDev: false, loadMessages: (e6) => rl(Object.assign({ "../assets/locale/messages_ar.json": () => L(() => Promise.resolve().then(() => (cl(), al)), void 0, import_meta.url), "../assets/locale/messages_bg.json": () => L(() => Promise.resolve().then(() => (fl(), ll)), void 0, import_meta.url), "../assets/locale/messages_ca.json": () => L(() => Promise.resolve().then(() => (gl(), pl)), void 0, import_meta.url), "../assets/locale/messages_cs.json": () => L(() => Promise.resolve().then(() => (bl(), _l)), void 0, import_meta.url), "../assets/locale/messages_da.json": () => L(() => Promise.resolve().then(() => (wl(), xl)), void 0, import_meta.url), "../assets/locale/messages_de.json": () => L(() => Promise.resolve().then(() => (Ol(), Tl)), void 0, import_meta.url), "../assets/locale/messages_el.json": () => L(() => Promise.resolve().then(() => (Ml(), kl)), void 0, import_meta.url), "../assets/locale/messages_en.dev.json": () => L(() => Promise.resolve().then(() => (Fl(), Nl)), void 0, import_meta.url), "../assets/locale/messages_en.json": () => L(() => Promise.resolve().then(() => (zl(), Il)), void 0, import_meta.url), "../assets/locale/messages_es.json": () => L(() => Promise.resolve().then(() => (Ul(), Bl)), void 0, import_meta.url), "../assets/locale/messages_fi.json": () => L(() => Promise.resolve().then(() => (ql(), Wl)), void 0, import_meta.url), "../assets/locale/messages_fr.json": () => L(() => Promise.resolve().then(() => (Zl(), Jl)), void 0, import_meta.url), "../assets/locale/messages_he.json": () => L(() => Promise.resolve().then(() => (tu(), Ql)), void 0, import_meta.url), "../assets/locale/messages_hi.json": () => L(() => Promise.resolve().then(() => (au(), nu)), void 0, import_meta.url), "../assets/locale/messages_hr.json": () => L(() => Promise.resolve().then(() => (lu(), ou)), void 0, import_meta.url), "../assets/locale/messages_hu.json": () => L(() => Promise.resolve().then(() => (pu(), uu)), void 0, import_meta.url), "../assets/locale/messages_id.json": () => L(() => Promise.resolve().then(() => (_u(), mu)), void 0, import_meta.url), "../assets/locale/messages_it.json": () => L(() => Promise.resolve().then(() => (xu(), vu)), void 0, import_meta.url), "../assets/locale/messages_ja.json": () => L(() => Promise.resolve().then(() => (Tu(), Su)), void 0, import_meta.url), "../assets/locale/messages_ko.json": () => L(() => Promise.resolve().then(() => (ku(), Eu)), void 0, import_meta.url), "../assets/locale/messages_lt.json": () => L(() => Promise.resolve().then(() => (Nu(), Au)), void 0, import_meta.url), "../assets/locale/messages_lv.json": () => L(() => Promise.resolve().then(() => (Lu(), Pu)), void 0, import_meta.url), "../assets/locale/messages_ms.json": () => L(() => Promise.resolve().then(() => (Vu(), Ru)), void 0, import_meta.url), "../assets/locale/messages_nl.json": () => L(() => Promise.resolve().then(() => (Gu(), Hu)), void 0, import_meta.url), "../assets/locale/messages_no.json": () => L(() => Promise.resolve().then(() => (Yu(), Ku)), void 0, import_meta.url), "../assets/locale/messages_pl.json": () => L(() => Promise.resolve().then(() => ($u(), Xu)), void 0, import_meta.url), "../assets/locale/messages_pt.json": () => L(() => Promise.resolve().then(() => (rd(), ed)), void 0, import_meta.url), "../assets/locale/messages_ro.json": () => L(() => Promise.resolve().then(() => (sd(), id)), void 0, import_meta.url), "../assets/locale/messages_ru.json": () => L(() => Promise.resolve().then(() => (dd(), cd)), void 0, import_meta.url), "../assets/locale/messages_sk.json": () => L(() => Promise.resolve().then(() => (hd(), fd)), void 0, import_meta.url), "../assets/locale/messages_sl.json": () => L(() => Promise.resolve().then(() => (yd(), gd)), void 0, import_meta.url), "../assets/locale/messages_sv.json": () => L(() => Promise.resolve().then(() => (Cd(), bd)), void 0, import_meta.url), "../assets/locale/messages_th.json": () => L(() => Promise.resolve().then(() => (Dd(), wd)), void 0, import_meta.url), "../assets/locale/messages_tl.json": () => L(() => Promise.resolve().then(() => (jd(), Od)), void 0, import_meta.url), "../assets/locale/messages_tr.json": () => L(() => Promise.resolve().then(() => (Fd(), Md)), void 0, import_meta.url), "../assets/locale/messages_uk.json": () => L(() => Promise.resolve().then(() => (zd(), Id)), void 0, import_meta.url), "../assets/locale/messages_vi.json": () => L(() => Promise.resolve().then(() => (Ud(), Bd)), void 0, import_meta.url), "../assets/locale/messages_zh.json": () => L(() => Promise.resolve().then(() => (qd(), Wd)), void 0, import_meta.url) }), `../assets/locale/messages_${il(e6)}.json`, 4), loadDevMessages: (e6) => rl(Object.assign({ "../assets/locale/messages_en.dev.json": () => L(() => Promise.resolve().then(() => (Fl(), Nl)), void 0, import_meta.url) }), `../assets/locale/messages_${il(e6)}.dev.json`, 4) });
|
|
4491
4492
|
var Jd = /* @__PURE__ */ new WeakMap();
|
|
4492
4493
|
function Yd(e6) {
|
|
4493
4494
|
let t2 = Jd.get(e6);
|
|
4494
4495
|
return t2 || (t2 = tl(e6).finally(() => Jd.delete(e6)), Jd.set(e6, t2)), t2;
|
|
4495
4496
|
}
|
|
4496
4497
|
function Xd({ i18n: e6, locale: t2 }) {
|
|
4497
|
-
let n2 =
|
|
4498
|
+
let n2 = Ur(), r2 = ka();
|
|
4498
4499
|
if (!n2) return null;
|
|
4499
4500
|
if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Yd(e6);
|
|
4500
4501
|
let i2 = nl(e6, t2);
|
|
4501
4502
|
return i2 && r2.set(Xc, { locale: t2, messages: i2 }), null;
|
|
4502
4503
|
}
|
|
4503
4504
|
function Zd(e6) {
|
|
4504
|
-
let t2 =
|
|
4505
|
+
let t2 = Zr(), n2 = Qc()?.locale ?? t2 ?? `en`;
|
|
4505
4506
|
return { i18n: el(n2, e6), locale: n2 };
|
|
4506
4507
|
}
|
|
4507
4508
|
cl(), fl(), gl(), bl(), wl(), Ol(), Ml(), Fl(), zl(), Ul(), ql(), Zl(), tu(), au(), lu(), pu(), _u(), xu(), Tu(), ku(), Nu(), Lu(), Vu(), Gu(), Yu(), $u(), rd(), sd(), dd(), hd(), yd(), Cd(), Dd(), jd(), Fd(), zd(), Ud(), qd();
|
|
@@ -4520,7 +4521,7 @@ var nf = (e6, t2) => {
|
|
|
4520
4521
|
var rf = (e6) => A(M(e6, [{ transformFn: H, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: V, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: Xi, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
|
|
4521
4522
|
var af = `https://blog.wixsite.com/blog-demo-posts`;
|
|
4522
4523
|
var of = P((e6) => async (t2) => {
|
|
4523
|
-
let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${
|
|
4524
|
+
let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${F(t2)}`);
|
|
4524
4525
|
if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
|
|
4525
4526
|
return rf(await n2.json()).filter((e7) => !e7.url?.startsWith(af));
|
|
4526
4527
|
});
|
|
@@ -4534,12 +4535,12 @@ var sf = async (e6) => {
|
|
|
4534
4535
|
var cf = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
|
|
4535
4536
|
var lf = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
|
|
4536
4537
|
function uf(e6) {
|
|
4537
|
-
return
|
|
4538
|
+
return Ft(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` }] } }));
|
|
4538
4539
|
}
|
|
4539
4540
|
var df = `@wix/auto_sdk_members_members`;
|
|
4540
4541
|
function ff(e6) {
|
|
4541
4542
|
function t2({ host: t3 }) {
|
|
4542
|
-
let n2 = M(e6, [{ transformFn:
|
|
4543
|
+
let n2 = M(e6, [{ transformFn: cn, paths: lf }]);
|
|
4543
4544
|
return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: df, migrationOptions: { optInTransformResponse: true }, url: uf({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: cf }]) };
|
|
4544
4545
|
}
|
|
4545
4546
|
return t2;
|
|
@@ -4608,13 +4609,13 @@ var xf = [{ path: `posts.richContentCompressed` }];
|
|
|
4608
4609
|
var Sf = [{ 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` }];
|
|
4609
4610
|
var Cf = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
4610
4611
|
function wf(e6) {
|
|
4611
|
-
return
|
|
4612
|
+
return Ft(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` }] } }));
|
|
4612
4613
|
}
|
|
4613
4614
|
var Tf = `@wix/auto_sdk_blog_posts`;
|
|
4614
4615
|
function Ef(e6) {
|
|
4615
4616
|
function t2({ host: t3 }) {
|
|
4616
|
-
let n2 = M(e6, [{ transformFn:
|
|
4617
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Tf, migrationOptions: { optInTransformResponse: true }, url: wf({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: bf }, { transformFn:
|
|
4617
|
+
let n2 = M(e6, [{ transformFn: cn, paths: Cf }]);
|
|
4618
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Tf, migrationOptions: { optInTransformResponse: true }, url: wf({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: j, paths: bf }, { transformFn: ln, paths: xf }, { transformFn: I, paths: Sf }]) };
|
|
4618
4619
|
}
|
|
4619
4620
|
return t2;
|
|
4620
4621
|
}
|
|
@@ -4798,7 +4799,7 @@ var ap = class extends import_react.Component {
|
|
|
4798
4799
|
return { error: e6 ?? Error(`Unknown render error`) };
|
|
4799
4800
|
}
|
|
4800
4801
|
componentDidCatch(e6, t2) {
|
|
4801
|
-
|
|
4802
|
+
Lr(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, tags: this.props.component ? { component: this.props.component } : void 0, contexts: { react: { componentStack: t2.componentStack } } });
|
|
4802
4803
|
}
|
|
4803
4804
|
render() {
|
|
4804
4805
|
if (this.state.error === void 0) return this.props.children;
|
|
@@ -4859,7 +4860,7 @@ var Sp = (e6) => {
|
|
|
4859
4860
|
var Cp = (e6, t2 = []) => {
|
|
4860
4861
|
let n2 = e6?.media;
|
|
4861
4862
|
if (!n2 || n2.displayed === false) return;
|
|
4862
|
-
let r2 =
|
|
4863
|
+
let r2 = pr(e6);
|
|
4863
4864
|
if (r2) return { kind: `image`, image: r2 };
|
|
4864
4865
|
let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? vp(n2.wixMedia.videoV2) : void 0;
|
|
4865
4866
|
if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
|
|
@@ -4870,9 +4871,9 @@ var Cp = (e6, t2 = []) => {
|
|
|
4870
4871
|
}
|
|
4871
4872
|
};
|
|
4872
4873
|
var wp = (e6) => {
|
|
4873
|
-
let t2 =
|
|
4874
|
+
let t2 = pr(e6), n2 = e6?.media?.wixMedia?.videoV2;
|
|
4874
4875
|
if (t2 || !n2) return t2;
|
|
4875
|
-
let r2 = vp(n2), i2 =
|
|
4876
|
+
let r2 = vp(n2), i2 = fr(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
|
|
4876
4877
|
return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
|
|
4877
4878
|
};
|
|
4878
4879
|
var Tp = `2026-05-12T12:00:00.000Z`;
|
|
@@ -4898,12 +4899,12 @@ var Np = (e6, t2, n2, r2) => {
|
|
|
4898
4899
|
};
|
|
4899
4900
|
var Pp = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
|
|
4900
4901
|
let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = jp(e6);
|
|
4901
|
-
return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: wp(e6), itemCoverMedia: Cp(e6, s2[l2 ?? ``] ?? []), itemLink:
|
|
4902
|
+
return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: wp(e6), itemCoverMedia: Cp(e6, s2[l2 ?? ``] ?? []), itemLink: Cr(e6, r2), itemPublishedDate: Q(mp(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Op(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: kp(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), initialLikeCount: f2.likes ?? (o2 ? $.likes : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: Er(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Mp(f2.views, $.views, o2, t2.viewCount), commentCount: Mp(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: Np(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
|
|
4902
4903
|
};
|
|
4903
4904
|
var Fp = (e6, t2, n2 = []) => {
|
|
4904
4905
|
let r2 = Cp(e6, n2);
|
|
4905
4906
|
if (!r2) return;
|
|
4906
|
-
let i2 =
|
|
4907
|
+
let i2 = Cr(e6, t2), a2 = { slug: e6.slug ?? void 0, title: e6.title ?? ``, description: e6.excerpt ?? ``, ...i2 ? { action: { link: i2 } } : {} };
|
|
4907
4908
|
if (r2.kind === `image`) return r2.image.url ? { ...a2, type: `image`, src: r2.image.url, width: r2.image.width, height: r2.image.height, parameters: { alt: r2.image.alt } } : void 0;
|
|
4908
4909
|
if (r2.kind === `wixVideo`) {
|
|
4909
4910
|
let e7 = r2.sources[0]?.url;
|
|
@@ -4945,7 +4946,7 @@ var Yp = { ...Jp, isLoadingPosts: false, hasError: true };
|
|
|
4945
4946
|
var Xp = (e6, t2) => {
|
|
4946
4947
|
if (e6.kind === `category` && t2.filterCategory) {
|
|
4947
4948
|
let { label: e7, description: n2, coverImage: r2 } = t2.filterCategory, i2 = e7 ?? ``;
|
|
4948
|
-
return { kind: `category`, title: i2, description: n2 ?? ``, coverImage:
|
|
4949
|
+
return { kind: `category`, title: i2, description: n2 ?? ``, coverImage: fr(r2, i2) };
|
|
4949
4950
|
}
|
|
4950
4951
|
return e6.kind === `tag` && t2.filterTag ? { kind: `tag`, title: t2.filterTag.label ?? `` } : { kind: `all` };
|
|
4951
4952
|
};
|
|
@@ -4954,16 +4955,16 @@ var Qp = () => ({ page: { ...Hf(), fetchedAt: Date.now() }, hasError: true });
|
|
|
4954
4955
|
var $p = (e6) => {
|
|
4955
4956
|
throw e6;
|
|
4956
4957
|
};
|
|
4957
|
-
var em = (e6, t2) =>
|
|
4958
|
+
var em = (e6, t2) => Vn(e6, Zp, t2 ? $p : Qp);
|
|
4958
4959
|
var tm = ({ children: e6, firstPagePromise: t2, monitoringClient: n2, language: r2, route: i2, categoryId: o2, categorySlug: s2, tagSlug: d2, postIds: f2, pageSize: m2, postOffset: h2, sortOrder: g2, featuredOnly: _2 }) => {
|
|
4959
|
-
let { page: v2, hasError: y2 } =
|
|
4960
|
-
|
|
4961
|
-
let { t: C2 } = zc(), w2 =
|
|
4960
|
+
let { page: v2, hasError: y2 } = zn(t2), b2 = Hr(v2.fetchedAt), x2 = ar(), S2 = Kr();
|
|
4961
|
+
Br(i2, v2, S2, n2), Da(i2.kind === `category` ? v2.mismatchedCategory : void 0, r2, Zf);
|
|
4962
|
+
let { t: C2 } = zc(), w2 = Qr(), T2 = (0, import_react.useMemo)(() => nf(C2, w2), [C2, w2]), [E2, ee2] = (0, import_react.useState)(v2.posts), [D2, te2] = (0, import_react.useState)(v2.authorsByMemberId), [ne2, re2] = (0, import_react.useState)(v2.categoryLabelsById), [ie2, ae2] = (0, import_react.useState)(v2.videoSourcesByPostId), [oe2, se2] = (0, import_react.useState)(v2.hasMore), [ce2, le2] = (0, import_react.useState)(false), [ue2, de2] = (0, import_react.useState)(y2), fe2 = (0, import_react.useRef)(h2 + v2.posts.length), pe2 = (0, import_react.useRef)(v2.hasMore), me2 = (0, import_react.useRef)(null), he2 = (0, import_react.useCallback)(async () => {
|
|
4962
4963
|
if (me2.current) return me2.current;
|
|
4963
4964
|
if (pe2.current) return le2(true), me2.current = tp({ offset: fe2.current, limit: m2, language: r2, categoryId: o2, ...s2 && { categorySlug: s2 }, ...d2 && { tagSlug: d2 }, ...f2 && { postIds: f2.split(`,`) }, sortOrder: g2, featuredOnly: _2, propagateErrors: true }).then((e7) => {
|
|
4964
4965
|
ee2((t3) => [...t3, ...e7.posts]), te2((t3) => ({ ...t3, ...e7.authorsByMemberId })), re2((t3) => ({ ...t3, ...e7.categoryLabelsById })), ae2((t3) => ({ ...t3, ...e7.videoSourcesByPostId })), se2(e7.hasMore), pe2.current = e7.hasMore, fe2.current += e7.posts.length, de2(false);
|
|
4965
4966
|
}).catch((e7) => {
|
|
4966
|
-
de2(true),
|
|
4967
|
+
de2(true), Lr(n2, e7, { feature: Pr.feed, action: `load-more-posts`, contexts: { feed: { offset: fe2.current, pageSize: m2, categoryId: o2, categorySlug: s2, tagSlug: d2 } } });
|
|
4967
4968
|
}).finally(() => {
|
|
4968
4969
|
me2.current = null, le2(false);
|
|
4969
4970
|
}), me2.current;
|
|
@@ -4971,14 +4972,14 @@ var tm = ({ children: e6, firstPagePromise: t2, monitoringClient: n2, language:
|
|
|
4971
4972
|
let e7 = x2 && !_2 && !o2 && !f2 && !s2 && !d2, t3 = E2.length === 0 && e7 ? v2.demoPosts ?? [] : E2, n3 = t3.map((e8) => Pp(e8, T2, w2, S2, D2, ne2, x2, ie2, b2)), r3 = t3.map((e8) => Fp(e8, S2, ie2[e8._id ?? ``] ?? [])).filter((e8) => e8 !== void 0);
|
|
4972
4973
|
return { postsList: n3.length === 0 && e7 ? Vp(T2, w2, S2, b2) : n3, postGalleryItems: r3.length === 0 && e7 ? Bp(T2) : r3, emptyState: E2.length === 0 && !ue2 ? T2.noPostsEmptyState() : null, hasError: ue2, hasMorePosts: oe2, isLoadingPosts: ce2, loadMorePosts: he2, filteredView: Xp(i2, v2) };
|
|
4973
4974
|
}, [i2, v2, E2, D2, ne2, ie2, T2, w2, S2, x2, b2, ue2, _2, o2, f2, s2, d2, oe2, ce2, he2]);
|
|
4974
|
-
return
|
|
4975
|
+
return Yr(qr.feedProvider, ue2 ? `error` : E2.length > 0 ? `data` : `empty`), (0, import_jsx_runtime.jsx)(Hp.Provider, { value: ge2, children: e6 });
|
|
4975
4976
|
};
|
|
4976
4977
|
var nm = (e6, t2, n2, r2, i2, a2, o2, s2, c2) => `blog-builder:feed:${e6 ?? ``}|${t2 ?? ``}|c:${n2 ?? ``}|t:${r2 ?? ``}|p:${i2}|${a2}|${o2}|${s2}|${+!!c2}`;
|
|
4977
4978
|
function rm({ children: e6, categoryPicker: n2, postsPicker: r2, pageSize: i2, postOffset: a2, sortOrder: o2, featuredOnly: s2, liveRefreshGeneration: l2 = 0 }) {
|
|
4978
|
-
let u2 =
|
|
4979
|
-
return (0, import_jsx_runtime.jsx)(Bc, { i18n: E2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(Hp.Provider, { value: Jp, children: e6 }), children: [(0, import_jsx_runtime.jsx)(Xd, { i18n: E2, locale: ee2 }), (0, import_jsx_runtime.jsx)(ap, { fallback: (0, import_jsx_runtime.jsx)(Hp.Provider, { value: Yp, children: e6 }), feature:
|
|
4979
|
+
let u2 = Zr(), d2 = Ur(), f2 = Yn(), h2 = f2.kind === `category` ? f2.slug : void 0, g2 = f2.kind === `tag` ? f2.slug : void 0, _2 = h2 || g2 ? void 0 : rp(n2), v2 = h2 || g2 ? `` : cp(r2).join(`,`), y2 = Gp(i2), b2 = Kp(a2), x2 = qp(o2), S2 = s2 === true, C2 = ar() && !S2 && !_2 && !v2 && !h2 && !g2, w2 = ka(), T2 = (0, import_react.useMemo)(() => Fr(Ln), []), { i18n: E2, locale: ee2 } = Zd(ef), D2 = Gr(() => ({ language: u2, route: Kn(h2, g2), filterCategoryId: _2, filterPostIds: v2, categorySlug: h2, tagSlug: g2, pageSize: y2, postOffset: b2, sortOrder: x2, featuredOnly: S2, liveRefreshGeneration: l2, firstPagePromise: em(Yc({ key: l2 > 0 ? null : nm(u2, _2, h2, g2, v2, y2, b2, x2, S2), warmupData: w2, fetchData: () => op(Rr(T2, `feed-first-page`, { feature: Pr.feed, tags: { sortOrder: x2 } }, tp({ offset: b2, limit: y2, language: u2, categoryId: _2, ...h2 && { categorySlug: h2 }, ...g2 && { tagSlug: g2 }, ...v2 && { postIds: v2.split(`,`) }, sortOrder: x2, featuredOnly: S2, propagateErrors: true, memoizeLookups: !w2.isServer }).then((e7) => C2 ? ep(e7, { limit: y2, offset: b2, language: u2, sortOrder: x2 }) : e7))) }), d2) }), [u2, d2, C2, _2, v2, h2, g2, y2, b2, x2, S2, l2, w2, T2]);
|
|
4980
|
+
return (0, import_jsx_runtime.jsx)(Bc, { i18n: E2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(Hp.Provider, { value: Jp, children: e6 }), children: [(0, import_jsx_runtime.jsx)(Xd, { i18n: E2, locale: ee2 }), (0, import_jsx_runtime.jsx)(ap, { fallback: (0, import_jsx_runtime.jsx)(Hp.Provider, { value: Yp, children: e6 }), feature: Pr.feed, monitoringClient: T2, rethrow: d2, children: (0, import_jsx_runtime.jsx)(tm, { firstPagePromise: D2.firstPagePromise, monitoringClient: T2, language: D2.language, route: D2.route, categoryId: D2.filterCategoryId, categorySlug: D2.categorySlug, tagSlug: D2.tagSlug, postIds: D2.filterPostIds, pageSize: D2.pageSize, postOffset: D2.postOffset, sortOrder: D2.sortOrder, featuredOnly: D2.featuredOnly, children: e6 }, `${nm(D2.language, D2.filterCategoryId, D2.categorySlug, D2.tagSlug, D2.filterPostIds, D2.pageSize, D2.postOffset, D2.sortOrder, D2.featuredOnly)}#${D2.liveRefreshGeneration}`) })] }) });
|
|
4980
4981
|
}
|
|
4981
|
-
var im =
|
|
4982
|
+
var im = An(`ada94d8c-4889-444e-b773-f1a875693fdb`);
|
|
4982
4983
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4983
4984
|
0 && (module.exports = {
|
|
4984
4985
|
PostListProvider,
|