@wix/blog 1.0.712 → 1.0.714
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/_sdk-exports/context-blog-feed/runtime.js +2 -2
- package/_sdk-exports/context-post-by-id/runtime.js +2 -2
- package/_sdk-exports/context-post-by-slug/runtime.js +3 -3
- package/_sdk-exports/context-post-list-item/runtime.js +4 -4
- package/_sdk-exports/context-related-posts/runtime.js +4 -4
- package/build/cjs/context-blog-feed.js +9 -3
- package/build/cjs/context-blog-feed.js.map +1 -1
- package/build/cjs/context-post-by-id.js +118 -111
- package/build/cjs/context-post-by-id.js.map +1 -1
- package/build/cjs/context-post-by-slug.js +419 -413
- package/build/cjs/context-post-by-slug.js.map +1 -1
- package/build/cjs/context-post-list-item.js +596 -589
- package/build/cjs/context-post-list-item.js.map +1 -1
- package/build/cjs/context-related-posts.js +941 -934
- package/build/cjs/context-related-posts.js.map +1 -1
- package/build/es/context-blog-feed.mjs +9 -3
- package/build/es/context-blog-feed.mjs.map +1 -1
- package/build/es/context-post-by-id.mjs +118 -111
- package/build/es/context-post-by-id.mjs.map +1 -1
- package/build/es/context-post-by-slug.mjs +419 -413
- package/build/es/context-post-by-slug.mjs.map +1 -1
- package/build/es/context-post-list-item.mjs +596 -589
- package/build/es/context-post-list-item.mjs.map +1 -1
- package/build/es/context-related-posts.mjs +941 -934
- package/build/es/context-related-posts.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1047,20 +1047,47 @@ function Un(e6, t2, n2) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
return a2;
|
|
1049
1049
|
}
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1050
|
+
function I(e6) {
|
|
1051
|
+
return e6;
|
|
1052
|
+
}
|
|
1053
|
+
var Wn = I(`@wix/site-service-rendering-context`);
|
|
1054
|
+
var Gn = I(`@wix/site-service-editor-context`);
|
|
1055
|
+
var Kn = () => {
|
|
1056
|
+
try {
|
|
1057
|
+
return !!(0, import_services_manager_react.useService)(Gn).previewMode;
|
|
1058
|
+
} catch {
|
|
1059
|
+
return false;
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
var qn = (0, import_react.createContext)({ isEditor: false, isPreview: false });
|
|
1063
|
+
var Jn = () => (0, import_react.useContext)(qn);
|
|
1064
|
+
var Yn = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
|
|
1065
|
+
var Xn = () => {
|
|
1066
|
+
try {
|
|
1067
|
+
let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(Wn);
|
|
1068
|
+
return e6 || t2;
|
|
1069
|
+
} catch {
|
|
1070
|
+
return false;
|
|
1071
|
+
}
|
|
1072
|
+
};
|
|
1073
|
+
var Zn = () => {
|
|
1074
|
+
let e6 = Xn();
|
|
1075
|
+
return Yn(Jn()) && !e6;
|
|
1076
|
+
};
|
|
1077
|
+
var Qn = [{ path: `richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `richContent.nodes.galleryData.items.image.media.duration` }, { path: `richContent.nodes.galleryData.items.video.media.duration` }, { path: `richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `richContent.nodes.galleryData.options.item.ratio` }, { path: `richContent.nodes.imageData.image.duration` }, { path: `richContent.nodes.imageData.crop.x` }, { path: `richContent.nodes.imageData.crop.y` }, { path: `richContent.nodes.imageData.crop.width` }, { path: `richContent.nodes.imageData.crop.height` }, { path: `richContent.nodes.mapData.mapSettings.lat` }, { path: `richContent.nodes.mapData.mapSettings.lng` }, { path: `richContent.nodes.pollData.poll.image.duration` }, { path: `richContent.nodes.pollData.poll.options.image.duration` }, { path: `richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.nodes.appEmbedData.image.duration` }, { path: `richContent.nodes.videoData.video.duration` }, { path: `richContent.nodes.videoData.thumbnail.duration` }, { path: `richContent.nodes.audioData.audio.duration` }, { path: `richContent.nodes.audioData.coverImage.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.background.gradient.centerX` }, { path: `richContent.nodes.layoutData.background.gradient.centerY` }, { path: `richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `richContent.nodes.shapeData.shape.duration` }, { path: `richContent.nodes.cardData.background.gradient.centerX` }, { path: `richContent.nodes.cardData.background.gradient.centerY` }, { path: `richContent.nodes.cardData.background.gradient.stops.position` }, { path: `richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.tocData.fontSize` }, { path: `richContent.nodes.tocData.itemSpacing` }, { path: `richContent.nodes.smartBlockCellData.shape.duration` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1078
|
+
var $n = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
|
|
1079
|
+
function er(e6) {
|
|
1053
1080
|
return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], _: [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/blog-paywall-service/v1/post-paywalls`, destPath: `/v1/post-paywalls` }] } }));
|
|
1054
1081
|
}
|
|
1055
|
-
var
|
|
1056
|
-
function
|
|
1082
|
+
var tr = `@wix/auto_sdk_blog_post-paywalls`;
|
|
1083
|
+
function nr(e6) {
|
|
1057
1084
|
function t2({ host: t3 }) {
|
|
1058
|
-
return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName:
|
|
1085
|
+
return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: Qn }, { transformFn: k, paths: $n }]) };
|
|
1059
1086
|
}
|
|
1060
1087
|
return t2;
|
|
1061
1088
|
}
|
|
1062
|
-
async function
|
|
1063
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1089
|
+
async function rr(e6, t2) {
|
|
1090
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = nr(D({ postFqdn: e6?.postFqdn, postId: e6?.postId, language: t2?.language }, []));
|
|
1064
1091
|
r2?.onSiteCall?.();
|
|
1065
1092
|
try {
|
|
1066
1093
|
let e7 = await n2.request(i2);
|
|
@@ -1070,29 +1097,29 @@ async function Yn(e6, t2) {
|
|
|
1070
1097
|
throw r2?.onError?.(e7), t3;
|
|
1071
1098
|
}
|
|
1072
1099
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return (t2, n2) =>
|
|
1100
|
+
function ir(e6) {
|
|
1101
|
+
return (t2, n2) => rr(t2, n2, { httpClient: e6 });
|
|
1075
1102
|
}
|
|
1076
|
-
var
|
|
1077
|
-
function
|
|
1103
|
+
var ar = M(ir);
|
|
1104
|
+
function or(e6) {
|
|
1078
1105
|
return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
|
|
1079
1106
|
}
|
|
1080
|
-
function
|
|
1107
|
+
function sr(e6) {
|
|
1081
1108
|
return Object.keys(e6).length === 1 && `$or` in e6 && Array.isArray(e6.$or);
|
|
1082
1109
|
}
|
|
1083
|
-
function
|
|
1110
|
+
function cr(e6) {
|
|
1084
1111
|
return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
|
|
1085
1112
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...
|
|
1113
|
+
function L(e6, t2) {
|
|
1114
|
+
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...or(e6) ? e6.$and : [e6], ...or(t2) ? t2.$and : [t2]] };
|
|
1088
1115
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [
|
|
1116
|
+
function lr(e6, t2) {
|
|
1117
|
+
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...sr(e6) ? e6.$or : [e6], ...sr(t2) ? t2.$or : [t2]] };
|
|
1091
1118
|
}
|
|
1092
|
-
function
|
|
1093
|
-
if (e6 !== void 0 && Object.keys(e6).length !== 0) return
|
|
1119
|
+
function ur(e6) {
|
|
1120
|
+
if (e6 !== void 0 && Object.keys(e6).length !== 0) return cr(e6) ? e6.$not : { $not: e6 };
|
|
1094
1121
|
}
|
|
1095
|
-
var
|
|
1122
|
+
var dr = class {
|
|
1096
1123
|
_items;
|
|
1097
1124
|
_fetchNextPage;
|
|
1098
1125
|
_fetchPrevPage;
|
|
@@ -1122,7 +1149,7 @@ var rr = class {
|
|
|
1122
1149
|
return await this._fetchPrevPage();
|
|
1123
1150
|
}
|
|
1124
1151
|
};
|
|
1125
|
-
var
|
|
1152
|
+
var fr = class extends dr {
|
|
1126
1153
|
_nextCursor;
|
|
1127
1154
|
_prevCursor;
|
|
1128
1155
|
cursors;
|
|
@@ -1136,7 +1163,7 @@ var ir = class extends rr {
|
|
|
1136
1163
|
return !!this._prevCursor;
|
|
1137
1164
|
}
|
|
1138
1165
|
};
|
|
1139
|
-
var
|
|
1166
|
+
var pr = class extends dr {
|
|
1140
1167
|
_totalCount;
|
|
1141
1168
|
_offset;
|
|
1142
1169
|
_tooManyToCount;
|
|
@@ -1159,76 +1186,76 @@ var ar = class extends rr {
|
|
|
1159
1186
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
1160
1187
|
}
|
|
1161
1188
|
};
|
|
1162
|
-
function
|
|
1189
|
+
function mr(e6) {
|
|
1163
1190
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
1164
1191
|
try {
|
|
1165
1192
|
let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [$e]: a2, [et]: o2 } = e6.responseTransformer(i2);
|
|
1166
1193
|
if (e6.pagingMethod === `OFFSET`) {
|
|
1167
1194
|
let e7 = n2;
|
|
1168
|
-
return new
|
|
1195
|
+
return new pr({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
|
|
1169
1196
|
}
|
|
1170
1197
|
let s2 = n2.cursorPaging;
|
|
1171
|
-
return new
|
|
1198
|
+
return new fr({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
|
|
1172
1199
|
} catch (t3) {
|
|
1173
1200
|
throw e6.errorTransformer(t3);
|
|
1174
1201
|
}
|
|
1175
1202
|
}, skipTo(e7) {
|
|
1176
1203
|
return t2({ ...n2, cursorPaging: { cursor: e7, limit: n2.cursorPaging.limit } });
|
|
1177
1204
|
}, eq(r2, i2) {
|
|
1178
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
1179
|
-
return t2({ ...n2, filter:
|
|
1205
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [R(e6.transformationPaths, r2)]: a2 };
|
|
1206
|
+
return t2({ ...n2, filter: L(n2.filter, o2) });
|
|
1180
1207
|
}, ne(r2, i2) {
|
|
1181
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
1182
|
-
return t2({ ...n2, filter:
|
|
1208
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [R(e6.transformationPaths, r2)]: { $ne: a2 } };
|
|
1209
|
+
return t2({ ...n2, filter: L(n2.filter, o2) });
|
|
1183
1210
|
}, ge(r2, i2) {
|
|
1184
|
-
let a2 = { [
|
|
1185
|
-
return t2({ ...n2, filter:
|
|
1211
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $gte: i2 } };
|
|
1212
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1186
1213
|
}, gt(r2, i2) {
|
|
1187
|
-
let a2 = { [
|
|
1188
|
-
return t2({ ...n2, filter:
|
|
1214
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $gt: i2 } };
|
|
1215
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1189
1216
|
}, le(r2, i2) {
|
|
1190
|
-
let a2 = { [
|
|
1191
|
-
return t2({ ...n2, filter:
|
|
1217
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $lte: i2 } };
|
|
1218
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1192
1219
|
}, lt(r2, i2) {
|
|
1193
|
-
let a2 = { [
|
|
1194
|
-
return t2({ ...n2, filter:
|
|
1220
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $lt: i2 } };
|
|
1221
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1195
1222
|
}, isNotEmpty(e7) {
|
|
1196
1223
|
return this.ne(e7, null);
|
|
1197
1224
|
}, isEmpty(e7) {
|
|
1198
1225
|
return this.eq(e7, null);
|
|
1199
1226
|
}, startsWith(r2, i2) {
|
|
1200
|
-
let a2 = { [
|
|
1201
|
-
return t2({ ...n2, filter:
|
|
1227
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
1228
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1202
1229
|
}, endsWith(r2, i2) {
|
|
1203
|
-
let a2 = { [
|
|
1204
|
-
return t2({ ...n2, filter:
|
|
1230
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
1231
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1205
1232
|
}, contains(r2, i2) {
|
|
1206
|
-
let a2 = { [
|
|
1207
|
-
return t2({ ...n2, filter:
|
|
1233
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $contains: i2 } };
|
|
1234
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1208
1235
|
}, hasSome(r2, ...i2) {
|
|
1209
|
-
let a2 = { [
|
|
1210
|
-
return t2({ ...n2, filter:
|
|
1236
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
1237
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1211
1238
|
}, hasAll(r2, ...i2) {
|
|
1212
|
-
let a2 = { [
|
|
1213
|
-
return t2({ ...n2, filter:
|
|
1239
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
1240
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1214
1241
|
}, between(e7, t3, n3) {
|
|
1215
1242
|
return this.ge(e7, t3).lt(e7, n3);
|
|
1216
1243
|
}, in(r2, i2) {
|
|
1217
|
-
let a2 = { [
|
|
1218
|
-
return t2({ ...n2, filter:
|
|
1244
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $in: i2 } };
|
|
1245
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1219
1246
|
}, exists(r2, i2 = true) {
|
|
1220
|
-
let a2 = { [
|
|
1221
|
-
return t2({ ...n2, filter:
|
|
1247
|
+
let a2 = { [R(e6.transformationPaths, r2)]: { $exists: i2 } };
|
|
1248
|
+
return t2({ ...n2, filter: L(n2.filter, a2) });
|
|
1222
1249
|
}, or(e7) {
|
|
1223
|
-
return t2({ ...n2, filter:
|
|
1250
|
+
return t2({ ...n2, filter: lr(n2.filter, e7.query.filter) });
|
|
1224
1251
|
}, and(e7) {
|
|
1225
|
-
return t2({ ...n2, filter:
|
|
1252
|
+
return t2({ ...n2, filter: L(n2.filter, e7.query.filter) });
|
|
1226
1253
|
}, not(e7) {
|
|
1227
|
-
return t2({ ...n2, filter:
|
|
1254
|
+
return t2({ ...n2, filter: ur(e7.query.filter) });
|
|
1228
1255
|
}, ascending(...r2) {
|
|
1229
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
1256
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: R(e6.transformationPaths, t3), order: `ASC` }))] });
|
|
1230
1257
|
}, descending(...r2) {
|
|
1231
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
1258
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: R(e6.transformationPaths, t3), order: `DESC` }))] });
|
|
1232
1259
|
}, skip(e7) {
|
|
1233
1260
|
return t2({ ...n2, paging: { offset: e7, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
1234
1261
|
}, limit(r2) {
|
|
@@ -1241,71 +1268,71 @@ function or(e6) {
|
|
|
1241
1268
|
} });
|
|
1242
1269
|
return t2({ filter: {}, ...e6.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
1243
1270
|
}
|
|
1244
|
-
function
|
|
1271
|
+
function R(e6, t2) {
|
|
1245
1272
|
let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
|
|
1246
1273
|
return n2 ? t2.replace(n2, e6[n2]) : nt(t2, { ...e6, ...tt });
|
|
1247
1274
|
}
|
|
1248
|
-
var
|
|
1249
|
-
var
|
|
1250
|
-
var
|
|
1251
|
-
var
|
|
1252
|
-
var
|
|
1253
|
-
var
|
|
1254
|
-
function
|
|
1275
|
+
var hr = `filter`;
|
|
1276
|
+
var gr = `sort`;
|
|
1277
|
+
var _r = `cursorPaging`;
|
|
1278
|
+
var vr = `paging`;
|
|
1279
|
+
var yr = [hr, gr, _r];
|
|
1280
|
+
var br = [hr, gr, vr];
|
|
1281
|
+
function xr(e6, t2) {
|
|
1255
1282
|
return !e6 || typeof e6 != `object` ? false : t2.some((t3) => e6.hasOwnProperty(t3));
|
|
1256
1283
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return
|
|
1284
|
+
function Sr(e6) {
|
|
1285
|
+
return xr(e6, yr);
|
|
1259
1286
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return
|
|
1287
|
+
function Cr(e6) {
|
|
1288
|
+
return xr(e6, br);
|
|
1262
1289
|
}
|
|
1263
|
-
function
|
|
1290
|
+
function wr(e6) {
|
|
1264
1291
|
let { hasOptionsParameter: t2 } = e6;
|
|
1265
1292
|
return function(...n2) {
|
|
1266
|
-
return t2 ?
|
|
1293
|
+
return t2 ? Er(n2, e6) : Tr(n2, e6);
|
|
1267
1294
|
};
|
|
1268
1295
|
}
|
|
1269
|
-
function
|
|
1296
|
+
function Tr(e6, t2) {
|
|
1270
1297
|
return e6.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e6[0]);
|
|
1271
1298
|
}
|
|
1272
|
-
function
|
|
1299
|
+
function Er(e6, t2) {
|
|
1273
1300
|
switch (e6.length) {
|
|
1274
1301
|
case 0:
|
|
1275
1302
|
return t2.builderQueryFunction();
|
|
1276
1303
|
case 1:
|
|
1277
|
-
return
|
|
1304
|
+
return Sr(e6[0]) || Cr(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
|
|
1278
1305
|
default:
|
|
1279
1306
|
return t2.typedQueryFunction(e6[0], e6[1]);
|
|
1280
1307
|
}
|
|
1281
1308
|
}
|
|
1282
|
-
var
|
|
1283
|
-
var
|
|
1284
|
-
function
|
|
1309
|
+
var Dr = [{ path: `like.createdDate` }];
|
|
1310
|
+
var Or = [{ path: `likes.createdDate` }];
|
|
1311
|
+
function kr(e6) {
|
|
1285
1312
|
return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/blog-like-service`, destPath: `` }], "social-blog._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/blog/v1/likes`, destPath: `/v1/likes` }], "*.dev.wix-code.com": [{ srcPath: `/blog/v1/likes`, destPath: `/v1/likes` }] } }));
|
|
1286
1313
|
}
|
|
1287
|
-
var
|
|
1288
|
-
function
|
|
1314
|
+
var Ar = `@wix/auto_sdk_blog_likes`;
|
|
1315
|
+
function jr(e6) {
|
|
1289
1316
|
function t2({ host: t3 }) {
|
|
1290
|
-
let n2 = A(e6, [{ transformFn: st, paths:
|
|
1291
|
-
return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName:
|
|
1317
|
+
let n2 = A(e6, [{ transformFn: st, paths: Dr }]);
|
|
1318
|
+
return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: Ar, migrationOptions: { optInTransformResponse: true }, url: kr({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Dr }]) };
|
|
1292
1319
|
}
|
|
1293
1320
|
return t2;
|
|
1294
1321
|
}
|
|
1295
|
-
function
|
|
1322
|
+
function Mr(e6) {
|
|
1296
1323
|
function t2({ host: t3 }) {
|
|
1297
|
-
return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName:
|
|
1324
|
+
return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: Ar, migrationOptions: { optInTransformResponse: true }, url: kr({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Or }]) };
|
|
1298
1325
|
}
|
|
1299
1326
|
return t2;
|
|
1300
1327
|
}
|
|
1301
|
-
function
|
|
1328
|
+
function Nr(e6) {
|
|
1302
1329
|
function t2({ host: t3 }) {
|
|
1303
|
-
return { entityFqdn: `wix.blog.v1.like`, method: `DELETE`, methodFqn: `wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId`, packageName:
|
|
1330
|
+
return { entityFqdn: `wix.blog.v1.like`, method: `DELETE`, methodFqn: `wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId`, packageName: Ar, migrationOptions: { optInTransformResponse: true }, url: kr({ protoPath: `/v1/likes/fqdn/{fqdn}/entity-id/{entityId}`, data: e6, host: t3 }), params: N(e6) };
|
|
1304
1331
|
}
|
|
1305
1332
|
return t2;
|
|
1306
1333
|
}
|
|
1307
|
-
async function
|
|
1308
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1334
|
+
async function Pr(e6) {
|
|
1335
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = jr(D({ like: e6?.like }));
|
|
1309
1336
|
n2?.onSiteCall?.();
|
|
1310
1337
|
try {
|
|
1311
1338
|
let e7 = await t2.request(r2);
|
|
@@ -1315,10 +1342,10 @@ async function Er(e6) {
|
|
|
1315
1342
|
throw n2?.onError?.(e7), t3;
|
|
1316
1343
|
}
|
|
1317
1344
|
}
|
|
1318
|
-
function
|
|
1345
|
+
function Fr() {
|
|
1319
1346
|
let { httpClient: e6, sideEffects: t2 } = arguments[0];
|
|
1320
|
-
return
|
|
1321
|
-
let r2 =
|
|
1347
|
+
return mr({ func: async (n2) => {
|
|
1348
|
+
let r2 = Mr(n2);
|
|
1322
1349
|
t2?.onSiteCall?.();
|
|
1323
1350
|
try {
|
|
1324
1351
|
let n3 = await e6.request(r2);
|
|
@@ -1336,8 +1363,8 @@ function Dr() {
|
|
|
1336
1363
|
throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
1337
1364
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
1338
1365
|
}
|
|
1339
|
-
async function
|
|
1340
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1366
|
+
async function Ir(e6) {
|
|
1367
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Mr(D({ query: e6 }));
|
|
1341
1368
|
n2?.onSiteCall?.();
|
|
1342
1369
|
try {
|
|
1343
1370
|
let e7 = await t2.request(r2);
|
|
@@ -1347,8 +1374,8 @@ async function Or(e6) {
|
|
|
1347
1374
|
throw n2?.onError?.(e7), t3;
|
|
1348
1375
|
}
|
|
1349
1376
|
}
|
|
1350
|
-
async function
|
|
1351
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1377
|
+
async function Lr(e6) {
|
|
1378
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Nr(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
|
|
1352
1379
|
n2?.onSiteCall?.();
|
|
1353
1380
|
try {
|
|
1354
1381
|
let e7 = await t2.request(r2);
|
|
@@ -1358,66 +1385,66 @@ async function kr(e6) {
|
|
|
1358
1385
|
throw n2?.onError?.(e7), t3;
|
|
1359
1386
|
}
|
|
1360
1387
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return (t2) =>
|
|
1388
|
+
function Rr(e6) {
|
|
1389
|
+
return (t2) => Pr(t2, { httpClient: e6 });
|
|
1363
1390
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return () =>
|
|
1391
|
+
function zr(e6) {
|
|
1392
|
+
return () => Fr({ httpClient: e6 });
|
|
1366
1393
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return (t2) =>
|
|
1394
|
+
function Br(e6) {
|
|
1395
|
+
return (t2) => Ir(t2, { httpClient: e6 });
|
|
1369
1396
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return (t2) =>
|
|
1397
|
+
function Vr(e6) {
|
|
1398
|
+
return (t2) => Lr(t2, { httpClient: e6 });
|
|
1372
1399
|
}
|
|
1373
|
-
function
|
|
1374
|
-
let t2 =
|
|
1400
|
+
function Hr(e6) {
|
|
1401
|
+
let t2 = wr({ builderQueryFunction: () => zr(e6)(), typedQueryFunction: (t3) => Br(e6)(t3), hasOptionsParameter: false });
|
|
1375
1402
|
function n2(e7) {
|
|
1376
1403
|
return t2(...arguments);
|
|
1377
1404
|
}
|
|
1378
1405
|
return n2;
|
|
1379
1406
|
}
|
|
1380
|
-
var
|
|
1381
|
-
var
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1407
|
+
var Ur = M(Rr);
|
|
1408
|
+
var Wr = M(Vr);
|
|
1409
|
+
var Gr = M(Hr);
|
|
1410
|
+
function z(e6) {
|
|
1384
1411
|
if (!e6) return;
|
|
1385
1412
|
let t2 = ``;
|
|
1386
1413
|
return (e6.filename || e6.altText) && (t2 = `/${encodeURIComponent(e6.filename || e6.altText)}`), e6.id ? `wix:image://v1/${e6.id}${t2}#originWidth=${e6.width}&originHeight=${e6.height}` : e6.url;
|
|
1387
1414
|
}
|
|
1388
|
-
function
|
|
1415
|
+
function B(e6) {
|
|
1389
1416
|
if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
|
|
1390
1417
|
}
|
|
1391
|
-
var
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1418
|
+
var Kr = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
|
|
1419
|
+
var qr = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
|
|
1420
|
+
function Jr(e6) {
|
|
1394
1421
|
return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
|
|
1395
1422
|
}
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1423
|
+
var Yr = `@wix/auto_sdk_blog_categories`;
|
|
1424
|
+
function Xr(e6) {
|
|
1398
1425
|
function t2({ host: t3 }) {
|
|
1399
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName:
|
|
1426
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Yr, migrationOptions: { optInTransformResponse: true }, url: Jr({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Kr }, { transformFn: F, paths: qr }]) };
|
|
1400
1427
|
}
|
|
1401
1428
|
return t2;
|
|
1402
1429
|
}
|
|
1403
|
-
var
|
|
1404
|
-
var
|
|
1405
|
-
async function
|
|
1406
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1430
|
+
var Zr = [{ path: `categories.url` }, { path: `categories.translations.url` }];
|
|
1431
|
+
var Qr = [{ path: `categories.coverImage` }];
|
|
1432
|
+
async function $r(e6) {
|
|
1433
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Xr(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
|
|
1407
1434
|
n2?.onSiteCall?.();
|
|
1408
1435
|
try {
|
|
1409
1436
|
let e7 = await t2.request(r2);
|
|
1410
|
-
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
1437
|
+
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: B, paths: Zr }, { transformFn: z, paths: Qr }]));
|
|
1411
1438
|
} catch (e7) {
|
|
1412
1439
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
|
|
1413
1440
|
throw n2?.onError?.(e7), t3;
|
|
1414
1441
|
}
|
|
1415
1442
|
}
|
|
1416
|
-
function
|
|
1417
|
-
return (t2) =>
|
|
1443
|
+
function ei(e6) {
|
|
1444
|
+
return (t2) => $r(t2, { httpClient: e6 });
|
|
1418
1445
|
}
|
|
1419
|
-
var
|
|
1420
|
-
function
|
|
1446
|
+
var ti = M(ei);
|
|
1447
|
+
function V(e6) {
|
|
1421
1448
|
if (!e6) return;
|
|
1422
1449
|
let t2 = ``;
|
|
1423
1450
|
e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
|
|
@@ -1432,113 +1459,113 @@ function B(e6) {
|
|
|
1432
1459
|
}
|
|
1433
1460
|
return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
|
|
1434
1461
|
}
|
|
1435
|
-
var
|
|
1436
|
-
var Yr = [{ path: `draftPost.heroImage.focalPoint.x` }, { path: `draftPost.heroImage.focalPoint.y` }, { path: `draftPost.media.wixMedia.image.focalPoint.x` }, { path: `draftPost.media.wixMedia.image.focalPoint.y` }, { path: `draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `draftPost.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `draftPost.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `draftPost.richContent.nodes.galleryData.items.image.media.duration` }, { path: `draftPost.richContent.nodes.galleryData.items.video.media.duration` }, { path: `draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `draftPost.richContent.nodes.galleryData.options.item.ratio` }, { path: `draftPost.richContent.nodes.imageData.image.duration` }, { path: `draftPost.richContent.nodes.imageData.crop.x` }, { path: `draftPost.richContent.nodes.imageData.crop.y` }, { path: `draftPost.richContent.nodes.imageData.crop.width` }, { path: `draftPost.richContent.nodes.imageData.crop.height` }, { path: `draftPost.richContent.nodes.mapData.mapSettings.lat` }, { path: `draftPost.richContent.nodes.mapData.mapSettings.lng` }, { path: `draftPost.richContent.nodes.pollData.poll.image.duration` }, { path: `draftPost.richContent.nodes.pollData.poll.options.image.duration` }, { path: `draftPost.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.nodes.appEmbedData.image.duration` }, { path: `draftPost.richContent.nodes.videoData.video.duration` }, { path: `draftPost.richContent.nodes.videoData.thumbnail.duration` }, { path: `draftPost.richContent.nodes.audioData.audio.duration` }, { path: `draftPost.richContent.nodes.audioData.coverImage.duration` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `draftPost.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `draftPost.richContent.nodes.shapeData.shape.duration` }, { path: `draftPost.richContent.nodes.cardData.background.gradient.centerX` }, { path: `draftPost.richContent.nodes.cardData.background.gradient.centerY` }, { path: `draftPost.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `draftPost.richContent.nodes.tocData.fontSize` }, { path: `draftPost.richContent.nodes.tocData.itemSpacing` }, { path: `draftPost.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1437
|
-
function
|
|
1462
|
+
var ni = [{ path: `draftPost.editedDate` }, { path: `draftPost.scheduledPublishDate` }, { path: `draftPost.firstPublishedDate` }, { path: `draftPost.createdDate` }, { path: `draftPost.expirationDate` }, { path: `draftPost.heroImage.urlExpirationDate` }, { path: `draftPost.richContent.metadata.createdTimestamp` }, { path: `draftPost.richContent.metadata.updatedTimestamp` }, { path: `draftPost.moderationDetails.submittedDate` }, { path: `draftPost.moderationDetails.moderationDate` }, { path: `draftPost.media.wixMedia.image.urlExpirationDate` }, { path: `draftPost.media.wixMedia.videoV2.urlExpirationDate` }, { path: `draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `draftPost.media.wixMedia.videoV2.posters.urlExpirationDate` }];
|
|
1463
|
+
var ri = [{ path: `draftPost.heroImage.focalPoint.x` }, { path: `draftPost.heroImage.focalPoint.y` }, { path: `draftPost.media.wixMedia.image.focalPoint.x` }, { path: `draftPost.media.wixMedia.image.focalPoint.y` }, { path: `draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `draftPost.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `draftPost.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `draftPost.richContent.nodes.galleryData.items.image.media.duration` }, { path: `draftPost.richContent.nodes.galleryData.items.video.media.duration` }, { path: `draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `draftPost.richContent.nodes.galleryData.options.item.ratio` }, { path: `draftPost.richContent.nodes.imageData.image.duration` }, { path: `draftPost.richContent.nodes.imageData.crop.x` }, { path: `draftPost.richContent.nodes.imageData.crop.y` }, { path: `draftPost.richContent.nodes.imageData.crop.width` }, { path: `draftPost.richContent.nodes.imageData.crop.height` }, { path: `draftPost.richContent.nodes.mapData.mapSettings.lat` }, { path: `draftPost.richContent.nodes.mapData.mapSettings.lng` }, { path: `draftPost.richContent.nodes.pollData.poll.image.duration` }, { path: `draftPost.richContent.nodes.pollData.poll.options.image.duration` }, { path: `draftPost.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.nodes.appEmbedData.image.duration` }, { path: `draftPost.richContent.nodes.videoData.video.duration` }, { path: `draftPost.richContent.nodes.videoData.thumbnail.duration` }, { path: `draftPost.richContent.nodes.audioData.audio.duration` }, { path: `draftPost.richContent.nodes.audioData.coverImage.duration` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `draftPost.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `draftPost.richContent.nodes.shapeData.shape.duration` }, { path: `draftPost.richContent.nodes.cardData.background.gradient.centerX` }, { path: `draftPost.richContent.nodes.cardData.background.gradient.centerY` }, { path: `draftPost.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `draftPost.richContent.nodes.tocData.fontSize` }, { path: `draftPost.richContent.nodes.tocData.itemSpacing` }, { path: `draftPost.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `draftPost.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1464
|
+
function ii(e6) {
|
|
1438
1465
|
return P(Object.assign(e6, { domainToMappings: { _api_base_domain_: [{ srcPath: `/draft-post-service-api-proxy`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }, { srcPath: `/blog/v3/bulk/draft-posts/create`, destPath: `/v3/bulk/draft-posts/create` }, { srcPath: `/blog/v3/bulk/draft-posts`, destPath: `/v3/bulk/draft-posts` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }, { srcPath: `/blog/v3/bulk/draft-posts/create`, destPath: `/v3/bulk/draft-posts/create` }, { srcPath: `/blog/v3/bulk/draft-posts`, destPath: `/v3/bulk/draft-posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }, { srcPath: `/_api/draft-post-service-api-proxy/v3/bulk/draft-posts`, destPath: `/v3/bulk/draft-posts` }, { srcPath: `/_api/communities-blog-node-api/v3/multilingual`, destPath: `/v3/multilingual` }, { srcPath: `/_api/communities-blog-node-api/v3/stats`, destPath: `/v3/stats` }, { srcPath: `/_api/communities-blog-node-api/v3/moderation`, destPath: `/v3/moderation` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/moderation`, destPath: `/v3/bulk/moderation` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/draft-posts/create`, destPath: `/v3/bulk/draft-posts/create` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }], "www.wixapis.com": [{ srcPath: `/blog/v3/draft-posts`, destPath: `/v3/draft-posts` }, { srcPath: `/blog/v3/bulk/draft-posts/create`, destPath: `/v3/bulk/draft-posts/create` }, { srcPath: `/blog/v3/draft-posts/`, destPath: `/v3/draft-posts` }, { srcPath: `/blog/v3/bulk/draft-posts`, destPath: `/v3/bulk/draft-posts` }, { srcPath: `/blog/v3/multilingual`, destPath: `/v3/multilingual` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/draft-posts`, destPath: `/v3/draft-posts` }] } }));
|
|
1439
1466
|
}
|
|
1440
|
-
var
|
|
1441
|
-
function
|
|
1467
|
+
var ai = `@wix/auto_sdk_blog_draft-posts`;
|
|
1468
|
+
function oi(e6) {
|
|
1442
1469
|
function t2({ host: t3 }) {
|
|
1443
|
-
return { entityFqdn: `wix.blog.v3.draft`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDraftPost`, packageName:
|
|
1470
|
+
return { entityFqdn: `wix.blog.v3.draft`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDraftPost`, packageName: ai, migrationOptions: { optInTransformResponse: true }, url: ii({ protoPath: `/v3/draft-posts/{draftPostId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: ni }, { transformFn: F, paths: ri }]) };
|
|
1444
1471
|
}
|
|
1445
1472
|
return t2;
|
|
1446
1473
|
}
|
|
1447
|
-
var
|
|
1448
|
-
var
|
|
1449
|
-
var
|
|
1450
|
-
var
|
|
1451
|
-
async function
|
|
1452
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1474
|
+
var si = [{ path: `draftPost.heroImage` }, { path: `draftPost.media.wixMedia.image` }];
|
|
1475
|
+
var ci = [{ path: `draftPost.url` }, { path: `draftPost.translations.url` }];
|
|
1476
|
+
var li = [{ path: `draftPost.media.wixMedia.videoV2` }];
|
|
1477
|
+
var ui = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.URL = `URL`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTENT = `CONTENT`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.GENERATED_EXCERPT = `GENERATED_EXCERPT`, e6))(ui || {});
|
|
1478
|
+
async function di(e6, t2) {
|
|
1479
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = oi(D({ draftPostId: e6, fieldsets: t2?.fieldsets }, []));
|
|
1453
1480
|
r2?.onSiteCall?.();
|
|
1454
1481
|
try {
|
|
1455
1482
|
let e7 = await n2.request(i2);
|
|
1456
|
-
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
1483
|
+
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: z, paths: si }, { transformFn: B, paths: ci }, { transformFn: V, paths: li }]), [`draftPost.richContent`]);
|
|
1457
1484
|
} catch (e7) {
|
|
1458
1485
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { draftPostId: `$[0]`, fieldsets: `$[1].fieldsets` }, singleArgumentUnchanged: false }, [`draftPostId`, `options`]);
|
|
1459
1486
|
throw r2?.onError?.(e7), t3;
|
|
1460
1487
|
}
|
|
1461
1488
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return (t2, n2) =>
|
|
1464
|
-
}
|
|
1465
|
-
var
|
|
1466
|
-
var
|
|
1467
|
-
var
|
|
1468
|
-
var ci = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1469
|
-
var
|
|
1470
|
-
var
|
|
1471
|
-
var di = [{ 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` }];
|
|
1472
|
-
var
|
|
1473
|
-
var
|
|
1474
|
-
function
|
|
1489
|
+
function fi(e6) {
|
|
1490
|
+
return (t2, n2) => di(t2, n2, { httpClient: e6 });
|
|
1491
|
+
}
|
|
1492
|
+
var pi = M(fi);
|
|
1493
|
+
var mi = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.expirationDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
|
|
1494
|
+
var hi = [{ path: `post.richContentCompressed` }];
|
|
1495
|
+
var gi = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1496
|
+
var _i = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
|
|
1497
|
+
var vi = [{ path: `posts.richContentCompressed` }];
|
|
1498
|
+
var yi = [{ 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` }];
|
|
1499
|
+
var bi = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
1500
|
+
var xi = [{ path: `metrics.averageRating` }];
|
|
1501
|
+
function Si(e6) {
|
|
1475
1502
|
return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
|
|
1476
1503
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1504
|
+
var Ci = `@wix/auto_sdk_blog_posts`;
|
|
1505
|
+
function wi(e6) {
|
|
1479
1506
|
function t2({ host: t3 }) {
|
|
1480
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug`, packageName:
|
|
1507
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug`, packageName: Ci, migrationOptions: { optInTransformResponse: true }, url: Si({ protoPath: `/v3/posts/slugs/{slug}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: mi }, { transformFn: fn, paths: hi }, { transformFn: F, paths: gi }]) };
|
|
1481
1508
|
}
|
|
1482
1509
|
return t2;
|
|
1483
1510
|
}
|
|
1484
|
-
function
|
|
1511
|
+
function Ti(e6) {
|
|
1485
1512
|
function t2({ host: t3 }) {
|
|
1486
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName:
|
|
1513
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName: Ci, migrationOptions: { optInTransformResponse: true }, url: Si({ protoPath: `/v3/posts`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: _i }, { transformFn: fn, paths: vi }, { transformFn: F, paths: yi }]) };
|
|
1487
1514
|
}
|
|
1488
1515
|
return t2;
|
|
1489
1516
|
}
|
|
1490
|
-
function
|
|
1517
|
+
function Ei(e6) {
|
|
1491
1518
|
function t2({ host: t3 }) {
|
|
1492
|
-
let n2 = A(e6, [{ transformFn: dn, paths:
|
|
1493
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName:
|
|
1519
|
+
let n2 = A(e6, [{ transformFn: dn, paths: bi }]);
|
|
1520
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Ci, migrationOptions: { optInTransformResponse: true }, url: Si({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: _i }, { transformFn: fn, paths: vi }, { transformFn: F, paths: yi }]) };
|
|
1494
1521
|
}
|
|
1495
1522
|
return t2;
|
|
1496
1523
|
}
|
|
1497
|
-
function
|
|
1524
|
+
function Di(e6) {
|
|
1498
1525
|
function t2({ host: t3 }) {
|
|
1499
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName:
|
|
1526
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: Ci, migrationOptions: { optInTransformResponse: true }, url: Si({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: xi }]) };
|
|
1500
1527
|
}
|
|
1501
1528
|
return t2;
|
|
1502
1529
|
}
|
|
1503
|
-
function
|
|
1530
|
+
function Oi(e6) {
|
|
1504
1531
|
function t2({ host: t3 }) {
|
|
1505
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ViewPost`, packageName:
|
|
1532
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ViewPost`, packageName: Ci, migrationOptions: { optInTransformResponse: true }, url: Si({ protoPath: `/v3/posts/{postId}/view`, data: e6, host: t3 }), data: e6 };
|
|
1506
1533
|
}
|
|
1507
1534
|
return t2;
|
|
1508
1535
|
}
|
|
1509
|
-
var
|
|
1510
|
-
var
|
|
1511
|
-
var
|
|
1512
|
-
var
|
|
1513
|
-
var
|
|
1514
|
-
var
|
|
1515
|
-
var
|
|
1516
|
-
async function
|
|
1517
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1536
|
+
var ki = [{ path: `post.url` }, { path: `post.translations.url` }];
|
|
1537
|
+
var Ai = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
|
|
1538
|
+
var ji = [{ path: `post.media.wixMedia.videoV2` }];
|
|
1539
|
+
var Mi = [{ path: `posts.url` }, { path: `posts.translations.url` }];
|
|
1540
|
+
var Ni = [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }];
|
|
1541
|
+
var Pi = [{ path: `posts.media.wixMedia.videoV2` }];
|
|
1542
|
+
var H = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(H || {});
|
|
1543
|
+
async function Fi(e6, t2) {
|
|
1544
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = wi(D({ slug: e6, fieldsets: t2?.fieldsets, language: t2?.language }, []));
|
|
1518
1545
|
r2?.onSiteCall?.();
|
|
1519
1546
|
try {
|
|
1520
1547
|
let e7 = await n2.request(i2);
|
|
1521
|
-
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
1548
|
+
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: B, paths: ki }, { transformFn: z, paths: Ai }, { transformFn: V, paths: ji }]), [`post.richContent`, `post.rich_content`]);
|
|
1522
1549
|
} catch (e7) {
|
|
1523
1550
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, fieldsets: `$[1].fieldsets`, language: `$[1].language` }, singleArgumentUnchanged: false }, [`slug`, `options`]);
|
|
1524
1551
|
throw r2?.onError?.(e7), t3;
|
|
1525
1552
|
}
|
|
1526
1553
|
}
|
|
1527
|
-
async function
|
|
1528
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1554
|
+
async function Ii(e6) {
|
|
1555
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ti(D({ featured: e6?.featured, hashtags: e6?.hashtags, categoryIds: e6?.categoryIds, tagIds: e6?.tagIds, sort: e6?.sort, paging: e6?.paging, language: e6?.language, memberId: e6?.memberId, fieldsets: e6?.fieldsets }, []));
|
|
1529
1556
|
n2?.onSiteCall?.();
|
|
1530
1557
|
try {
|
|
1531
1558
|
let e7 = await t2.request(r2);
|
|
1532
|
-
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
1559
|
+
return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: B, paths: Mi }, { transformFn: z, paths: Ni }, { transformFn: V, paths: Pi }]), [`posts.richContent`, `posts.rich_content`]);
|
|
1533
1560
|
} catch (e7) {
|
|
1534
1561
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { featured: `$[0].featured`, hashtags: `$[0].hashtags`, categoryIds: `$[0].categoryIds`, tagIds: `$[0].tagIds`, sort: `$[0].sort`, paging: `$[0].paging`, language: `$[0].language`, memberId: `$[0].memberId`, fieldsets: `$[0].fieldsets` }, singleArgumentUnchanged: false }, [`options`]);
|
|
1535
1562
|
throw n2?.onError?.(e7), t3;
|
|
1536
1563
|
}
|
|
1537
1564
|
}
|
|
1538
|
-
function
|
|
1565
|
+
function Li(e6) {
|
|
1539
1566
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
1540
|
-
return
|
|
1541
|
-
let i2 =
|
|
1567
|
+
return mr({ func: async (r2) => {
|
|
1568
|
+
let i2 = Ei({ ...r2, ...e6 ?? {} });
|
|
1542
1569
|
n2?.onSiteCall?.();
|
|
1543
1570
|
try {
|
|
1544
1571
|
let e7 = await t2.request(i2);
|
|
@@ -1550,25 +1577,25 @@ function ki(e6) {
|
|
|
1550
1577
|
let n3 = [t3, e6];
|
|
1551
1578
|
return D({ ...n3?.[1], query: n3?.[0] }, []);
|
|
1552
1579
|
}, responseTransformer: ({ data: e7 }) => {
|
|
1553
|
-
let t3 = O(A(e7, [{ transformFn:
|
|
1580
|
+
let t3 = O(A(e7, [{ transformFn: B, paths: Mi }, { transformFn: z, paths: Ni }, { transformFn: V, paths: Pi }]), [`posts.richContent`, `posts.rich_content`]);
|
|
1554
1581
|
return { items: t3?.posts, pagingMetadata: t3?.pagingMetadata };
|
|
1555
1582
|
}, errorTransformer: (e7) => {
|
|
1556
1583
|
throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
1557
1584
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
1558
1585
|
}
|
|
1559
|
-
async function
|
|
1560
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1586
|
+
async function Ri(e6, t2) {
|
|
1587
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ei(D({ query: e6, ...t2 }, []));
|
|
1561
1588
|
r2?.onSiteCall?.();
|
|
1562
1589
|
try {
|
|
1563
1590
|
let e7 = await n2.request(i2);
|
|
1564
|
-
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
1591
|
+
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: B, paths: Mi }, { transformFn: z, paths: Ni }, { transformFn: V, paths: Pi }]), [`posts.richContent`, `posts.rich_content`]);
|
|
1565
1592
|
} catch (e7) {
|
|
1566
1593
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
1567
1594
|
throw r2?.onError?.(e7), t3;
|
|
1568
1595
|
}
|
|
1569
1596
|
}
|
|
1570
|
-
async function
|
|
1571
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1597
|
+
async function zi(e6) {
|
|
1598
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Di(D({ postId: e6 }, []));
|
|
1572
1599
|
n2?.onSiteCall?.();
|
|
1573
1600
|
try {
|
|
1574
1601
|
let e7 = await t2.request(r2);
|
|
@@ -1578,8 +1605,8 @@ async function ji(e6) {
|
|
|
1578
1605
|
throw n2?.onError?.(e7), t3;
|
|
1579
1606
|
}
|
|
1580
1607
|
}
|
|
1581
|
-
async function
|
|
1582
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1608
|
+
async function Bi(e6) {
|
|
1609
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Oi(D({ postId: e6 }, []));
|
|
1583
1610
|
n2?.onSiteCall?.();
|
|
1584
1611
|
try {
|
|
1585
1612
|
let e7 = await t2.request(r2);
|
|
@@ -1589,54 +1616,54 @@ async function Mi(e6) {
|
|
|
1589
1616
|
throw n2?.onError?.(e7), t3;
|
|
1590
1617
|
}
|
|
1591
1618
|
}
|
|
1592
|
-
function
|
|
1593
|
-
return (t2, n2) =>
|
|
1619
|
+
function Vi(e6) {
|
|
1620
|
+
return (t2, n2) => Fi(t2, n2, { httpClient: e6 });
|
|
1594
1621
|
}
|
|
1595
|
-
function
|
|
1596
|
-
return (t2) =>
|
|
1622
|
+
function Hi(e6) {
|
|
1623
|
+
return (t2) => Ii(t2, { httpClient: e6 });
|
|
1597
1624
|
}
|
|
1598
|
-
function
|
|
1599
|
-
return (t2) =>
|
|
1625
|
+
function Ui(e6) {
|
|
1626
|
+
return (t2) => Li(t2, { httpClient: e6 });
|
|
1600
1627
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return (t2, n2) =>
|
|
1628
|
+
function Wi(e6) {
|
|
1629
|
+
return (t2, n2) => Ri(t2, n2, { httpClient: e6 });
|
|
1603
1630
|
}
|
|
1604
|
-
function
|
|
1605
|
-
return (t2) =>
|
|
1631
|
+
function Gi(e6) {
|
|
1632
|
+
return (t2) => zi(t2, { httpClient: e6 });
|
|
1606
1633
|
}
|
|
1607
|
-
function
|
|
1608
|
-
return (t2) =>
|
|
1634
|
+
function Ki(e6) {
|
|
1635
|
+
return (t2) => Bi(t2, { httpClient: e6 });
|
|
1609
1636
|
}
|
|
1610
|
-
function
|
|
1611
|
-
let t2 =
|
|
1637
|
+
function qi(e6) {
|
|
1638
|
+
let t2 = wr({ builderQueryFunction: (t3) => Ui(e6)(t3), typedQueryFunction: (t3, n3) => Wi(e6)(t3, n3), hasOptionsParameter: true });
|
|
1612
1639
|
function n2(e7, n3) {
|
|
1613
1640
|
return t2(...arguments);
|
|
1614
1641
|
}
|
|
1615
1642
|
return n2;
|
|
1616
1643
|
}
|
|
1617
|
-
var
|
|
1618
|
-
var
|
|
1619
|
-
var
|
|
1620
|
-
var
|
|
1621
|
-
var
|
|
1622
|
-
var
|
|
1623
|
-
var
|
|
1624
|
-
function
|
|
1644
|
+
var Ji = M(Vi);
|
|
1645
|
+
var Yi = M(Hi);
|
|
1646
|
+
var Xi = M(Gi);
|
|
1647
|
+
var Zi = M(Ki);
|
|
1648
|
+
var Qi = M(qi);
|
|
1649
|
+
var $i = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
1650
|
+
var ea = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
|
|
1651
|
+
function ta(e6) {
|
|
1625
1652
|
return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www.wixapis.com": [{ srcPath: `/v3/tags`, destPath: `/v3/tags` }, { srcPath: `/blog/v3/tags`, destPath: `/v3/tags` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v2/tags`, destPath: `/v2/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tag`, destPath: `/v3/bulk/tag` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tags`, destPath: `/v3/bulk/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }] } }));
|
|
1626
1653
|
}
|
|
1627
|
-
var
|
|
1628
|
-
function
|
|
1654
|
+
var na = `@wix/auto_sdk_blog_tags`;
|
|
1655
|
+
function ra(e6) {
|
|
1629
1656
|
function t2({ host: t3 }) {
|
|
1630
|
-
let n2 = A(e6, [{ transformFn: dn, paths:
|
|
1631
|
-
return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName:
|
|
1657
|
+
let n2 = A(e6, [{ transformFn: dn, paths: $i }]);
|
|
1658
|
+
return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: na, migrationOptions: { optInTransformResponse: true }, url: ta({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: ea }]) };
|
|
1632
1659
|
}
|
|
1633
1660
|
return t2;
|
|
1634
1661
|
}
|
|
1635
|
-
var
|
|
1636
|
-
function
|
|
1662
|
+
var ia = [{ path: `tags.url` }];
|
|
1663
|
+
function aa(e6) {
|
|
1637
1664
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
1638
|
-
return
|
|
1639
|
-
let i2 =
|
|
1665
|
+
return mr({ func: async (r2) => {
|
|
1666
|
+
let i2 = ra({ ...r2, ...e6 ?? {} });
|
|
1640
1667
|
n2?.onSiteCall?.();
|
|
1641
1668
|
try {
|
|
1642
1669
|
let e7 = await t2.request(i2);
|
|
@@ -1648,86 +1675,74 @@ function Zi(e6) {
|
|
|
1648
1675
|
let n3 = [t3, e6];
|
|
1649
1676
|
return D({ ...n3?.[1], query: n3?.[0] });
|
|
1650
1677
|
}, responseTransformer: ({ data: e7 }) => {
|
|
1651
|
-
let t3 = O(A(e7, [{ transformFn:
|
|
1678
|
+
let t3 = O(A(e7, [{ transformFn: B, paths: ia }]));
|
|
1652
1679
|
return { items: t3?.tags, pagingMetadata: t3?.pagingMetadata };
|
|
1653
1680
|
}, errorTransformer: (e7) => {
|
|
1654
1681
|
throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
1655
1682
|
}, pagingMethod: `OFFSET`, transformationPaths: {} });
|
|
1656
1683
|
}
|
|
1657
|
-
async function
|
|
1658
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1684
|
+
async function oa(e6, t2) {
|
|
1685
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = ra(D({ query: e6, ...t2 }));
|
|
1659
1686
|
r2?.onSiteCall?.();
|
|
1660
1687
|
try {
|
|
1661
1688
|
let e7 = await n2.request(i2);
|
|
1662
|
-
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn:
|
|
1689
|
+
return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: B, paths: ia }]));
|
|
1663
1690
|
} catch (e7) {
|
|
1664
1691
|
let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
1665
1692
|
throw r2?.onError?.(e7), t3;
|
|
1666
1693
|
}
|
|
1667
1694
|
}
|
|
1668
|
-
function
|
|
1669
|
-
return (t2) =>
|
|
1695
|
+
function sa(e6) {
|
|
1696
|
+
return (t2) => aa(t2, { httpClient: e6 });
|
|
1670
1697
|
}
|
|
1671
|
-
function
|
|
1672
|
-
return (t2, n2) =>
|
|
1698
|
+
function ca(e6) {
|
|
1699
|
+
return (t2, n2) => oa(t2, n2, { httpClient: e6 });
|
|
1673
1700
|
}
|
|
1674
|
-
function
|
|
1675
|
-
let t2 =
|
|
1701
|
+
function la(e6) {
|
|
1702
|
+
let t2 = wr({ builderQueryFunction: (t3) => sa(e6)(t3), typedQueryFunction: (t3, n3) => ca(e6)(t3, n3), hasOptionsParameter: true });
|
|
1676
1703
|
function n2(e7, n3) {
|
|
1677
1704
|
return t2(...arguments);
|
|
1678
1705
|
}
|
|
1679
1706
|
return n2;
|
|
1680
1707
|
}
|
|
1681
|
-
var
|
|
1682
|
-
var
|
|
1683
|
-
let { views: t2 } = await
|
|
1708
|
+
var ua = M(la);
|
|
1709
|
+
var da = async (e6) => {
|
|
1710
|
+
let { views: t2 } = await Zi(e6);
|
|
1684
1711
|
return t2;
|
|
1685
1712
|
};
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
}
|
|
1689
|
-
var ia = H(`@wix/site-service-editor-context`);
|
|
1690
|
-
var aa = () => {
|
|
1691
|
-
try {
|
|
1692
|
-
return !!(0, import_services_manager_react.useService)(ia).previewMode;
|
|
1693
|
-
} catch {
|
|
1694
|
-
return false;
|
|
1695
|
-
}
|
|
1696
|
-
};
|
|
1697
|
-
var oa = (e6) => {
|
|
1698
|
-
let t2 = aa();
|
|
1713
|
+
var fa = (e6) => {
|
|
1714
|
+
let t2 = Zn(), n2 = Kn();
|
|
1699
1715
|
(0, import_react.useEffect)(() => {
|
|
1700
|
-
e6
|
|
1701
|
-
})
|
|
1702
|
-
}, [e6, t2]);
|
|
1716
|
+
!e6 || t2 || n2 || typeof navigator < `u` && navigator.webdriver || da(e6).catch(() => {
|
|
1717
|
+
});
|
|
1718
|
+
}, [e6, t2, n2]);
|
|
1703
1719
|
};
|
|
1704
|
-
var
|
|
1705
|
-
var ca = () => {
|
|
1720
|
+
var pa = () => {
|
|
1706
1721
|
try {
|
|
1707
|
-
return (0, import_services_manager_react.useService)(
|
|
1722
|
+
return (0, import_services_manager_react.useService)(Wn).SSR;
|
|
1708
1723
|
} catch {
|
|
1709
1724
|
return false;
|
|
1710
1725
|
}
|
|
1711
1726
|
};
|
|
1712
|
-
var
|
|
1713
|
-
function
|
|
1727
|
+
var ma = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
|
|
1728
|
+
function ha(e6, t2) {
|
|
1714
1729
|
let [n2, r2] = (0, import_react.useState)(() => ({ deps: t2, value: e6() }));
|
|
1715
1730
|
return (0, import_react.useEffect)(() => {
|
|
1716
|
-
if (
|
|
1731
|
+
if (ma(n2.deps, t2)) return;
|
|
1717
1732
|
let i2 = e6();
|
|
1718
1733
|
(0, import_react.startTransition)(() => r2({ deps: t2, value: i2 }));
|
|
1719
1734
|
}, t2), n2.value;
|
|
1720
1735
|
}
|
|
1721
|
-
var
|
|
1722
|
-
var
|
|
1736
|
+
var ga = I(`@wix/viewer-service-site-members`);
|
|
1737
|
+
var _a = () => {
|
|
1723
1738
|
try {
|
|
1724
|
-
return (0, import_services_manager_react.useService)(
|
|
1739
|
+
return (0, import_services_manager_react.useService)(ga);
|
|
1725
1740
|
} catch {
|
|
1726
1741
|
return;
|
|
1727
1742
|
}
|
|
1728
1743
|
};
|
|
1729
|
-
var
|
|
1730
|
-
let n2 =
|
|
1744
|
+
var va = (e6, t2) => {
|
|
1745
|
+
let n2 = _a(), [r2, i2] = (0, import_react.useState)(), a2 = !!e6.post?.preview;
|
|
1731
1746
|
return (0, import_react.useEffect)(() => {
|
|
1732
1747
|
if (!a2) return;
|
|
1733
1748
|
let e7 = true, r3 = () => {
|
|
@@ -1745,18 +1760,18 @@ var pa = (e6, t2) => {
|
|
|
1745
1760
|
};
|
|
1746
1761
|
}, [a2, t2, n2]), (0, import_react.useMemo)(() => a2 && r2 && r2._id === e6.post?._id ? { ...e6, post: r2, paywall: void 0 } : e6, [a2, r2, e6]);
|
|
1747
1762
|
};
|
|
1748
|
-
var U =
|
|
1749
|
-
var
|
|
1750
|
-
var
|
|
1751
|
-
var
|
|
1752
|
-
var
|
|
1753
|
-
var
|
|
1754
|
-
var
|
|
1763
|
+
var U = I(`@wix/site-service-url`);
|
|
1764
|
+
var ya = `14bcded7-0066-7c35-14d7-466cb3f09103`;
|
|
1765
|
+
var ba = `post`;
|
|
1766
|
+
var xa = `category`;
|
|
1767
|
+
var Sa = `builder-post`;
|
|
1768
|
+
var Ca = `__blog_unknown_section__`;
|
|
1769
|
+
var wa = (e6) => {
|
|
1755
1770
|
let t2;
|
|
1756
1771
|
try {
|
|
1757
|
-
let n3 = e6.appSectionRelativeUrl(
|
|
1758
|
-
if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`,
|
|
1759
|
-
t2 = e6.appSectionRelativeUrl(
|
|
1772
|
+
let n3 = e6.appSectionRelativeUrl(ya, Sa);
|
|
1773
|
+
if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, Ca) && !n3?.endsWith(`/post-page`)) return;
|
|
1774
|
+
t2 = e6.appSectionRelativeUrl(ya, Sa, true);
|
|
1760
1775
|
} catch {
|
|
1761
1776
|
return;
|
|
1762
1777
|
}
|
|
@@ -1764,12 +1779,12 @@ var ya = (e6) => {
|
|
|
1764
1779
|
let n2 = t2.split(`/`).filter(Boolean);
|
|
1765
1780
|
return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
|
|
1766
1781
|
};
|
|
1767
|
-
var
|
|
1768
|
-
var
|
|
1769
|
-
let t2 =
|
|
1770
|
-
if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${
|
|
1782
|
+
var Ta = (e6) => `${e6}/${ba}`;
|
|
1783
|
+
var Ea = (e6) => {
|
|
1784
|
+
let t2 = wa(e6);
|
|
1785
|
+
if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${Ta(t2)}`;
|
|
1771
1786
|
};
|
|
1772
|
-
var
|
|
1787
|
+
var Da = (e6, t2) => {
|
|
1773
1788
|
if (!e6 || !t2) return;
|
|
1774
1789
|
let n2;
|
|
1775
1790
|
try {
|
|
@@ -1783,14 +1798,14 @@ var Sa = (e6, t2) => {
|
|
|
1783
1798
|
if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
|
|
1784
1799
|
}
|
|
1785
1800
|
};
|
|
1786
|
-
var
|
|
1801
|
+
var Oa = (e6) => {
|
|
1787
1802
|
if (!e6) return;
|
|
1788
1803
|
if (typeof e6 == `string`) return e6;
|
|
1789
1804
|
let { base: t2, path: n2 } = e6;
|
|
1790
1805
|
return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
|
|
1791
1806
|
};
|
|
1792
|
-
var
|
|
1793
|
-
let n2 =
|
|
1807
|
+
var ka = (e6, t2) => {
|
|
1808
|
+
let n2 = Oa(e6.url), r2 = `/${ba}`;
|
|
1794
1809
|
if (!n2 || !t2?.endsWith(r2)) return;
|
|
1795
1810
|
let i2, a2;
|
|
1796
1811
|
try {
|
|
@@ -1801,34 +1816,34 @@ var wa = (e6, t2) => {
|
|
|
1801
1816
|
let o2 = a2.slice(0, -r2.length);
|
|
1802
1817
|
return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
|
|
1803
1818
|
};
|
|
1804
|
-
var
|
|
1805
|
-
let n2 =
|
|
1819
|
+
var Aa = (e6, t2) => {
|
|
1820
|
+
let n2 = ka(e6, t2);
|
|
1806
1821
|
if (n2) return { href: n2, target: `_self` };
|
|
1807
1822
|
if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
|
|
1808
|
-
let r2 =
|
|
1823
|
+
let r2 = Oa(e6.url);
|
|
1809
1824
|
return r2 ? { href: r2, target: `_self` } : void 0;
|
|
1810
1825
|
};
|
|
1811
|
-
var
|
|
1812
|
-
let n2 =
|
|
1826
|
+
var ja = (e6, t2) => {
|
|
1827
|
+
let n2 = wa(e6);
|
|
1813
1828
|
if (n2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${n2}/${t2}`;
|
|
1814
1829
|
};
|
|
1815
|
-
var
|
|
1830
|
+
var Ma = (e6) => {
|
|
1816
1831
|
let t2;
|
|
1817
1832
|
try {
|
|
1818
1833
|
t2 = (0, import_services_manager_react.useService)(U);
|
|
1819
1834
|
} catch {
|
|
1820
1835
|
return;
|
|
1821
1836
|
}
|
|
1822
|
-
return
|
|
1837
|
+
return Ea(t2) ?? Da(t2.currentUrl, e6);
|
|
1823
1838
|
};
|
|
1824
|
-
var
|
|
1825
|
-
var
|
|
1839
|
+
var Na = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1840
|
+
var Pa = (e6) => {
|
|
1826
1841
|
let t2 = e6.split(`/`).filter(Boolean);
|
|
1827
1842
|
if (t2.length < 3) return;
|
|
1828
1843
|
let [n2, r2, i2] = t2.slice(-3);
|
|
1829
|
-
if (r2 === `preview` &&
|
|
1844
|
+
if (r2 === `preview` && Na.test(n2) && i2) return { draftPostId: n2, instance: i2 };
|
|
1830
1845
|
};
|
|
1831
|
-
var
|
|
1846
|
+
var Fa = () => {
|
|
1832
1847
|
let e6;
|
|
1833
1848
|
try {
|
|
1834
1849
|
e6 = (0, import_services_manager_react.useService)(U).currentUrl;
|
|
@@ -1836,12 +1851,12 @@ var Aa = () => {
|
|
|
1836
1851
|
return;
|
|
1837
1852
|
}
|
|
1838
1853
|
if (e6) try {
|
|
1839
|
-
return
|
|
1854
|
+
return Pa(new URL(e6).pathname);
|
|
1840
1855
|
} catch {
|
|
1841
1856
|
return;
|
|
1842
1857
|
}
|
|
1843
1858
|
};
|
|
1844
|
-
var
|
|
1859
|
+
var Ia = (e6, t2) => {
|
|
1845
1860
|
let n2;
|
|
1846
1861
|
try {
|
|
1847
1862
|
n2 = new URL(e6).pathname.split(`/`).filter(Boolean);
|
|
@@ -1861,7 +1876,7 @@ var ja = (e6, t2) => {
|
|
|
1861
1876
|
return i2;
|
|
1862
1877
|
}
|
|
1863
1878
|
};
|
|
1864
|
-
var
|
|
1879
|
+
var La = () => {
|
|
1865
1880
|
let e6;
|
|
1866
1881
|
try {
|
|
1867
1882
|
e6 = (0, import_services_manager_react.useService)(U);
|
|
@@ -1869,92 +1884,92 @@ var Ma = () => {
|
|
|
1869
1884
|
return;
|
|
1870
1885
|
}
|
|
1871
1886
|
if (!e6.currentUrl) return;
|
|
1872
|
-
let t2 =
|
|
1873
|
-
return
|
|
1887
|
+
let t2 = wa(e6);
|
|
1888
|
+
return Ia(e6.currentUrl, t2 && Ta(t2));
|
|
1874
1889
|
};
|
|
1875
|
-
var
|
|
1876
|
-
var
|
|
1877
|
-
var
|
|
1890
|
+
var Ra = { 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` };
|
|
1891
|
+
var za = (e6) => `${e6} rendered`;
|
|
1892
|
+
var Ba = (e6, t2, n2) => {
|
|
1878
1893
|
(0, import_react.useEffect)(() => {
|
|
1879
1894
|
if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
|
|
1880
|
-
performance.mark(
|
|
1895
|
+
performance.mark(za(e6), { detail: { state: t2, compId: n2 } });
|
|
1881
1896
|
} catch {
|
|
1882
1897
|
}
|
|
1883
1898
|
}, [e6, t2, n2]);
|
|
1884
1899
|
};
|
|
1885
|
-
var
|
|
1886
|
-
var
|
|
1887
|
-
var
|
|
1888
|
-
var
|
|
1900
|
+
var Va = I(`seo/seo-service`);
|
|
1901
|
+
var Ha = I(`@wix/viewer-service-multilingual`);
|
|
1902
|
+
var Ua = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
|
|
1903
|
+
var Wa = (e6) => {
|
|
1889
1904
|
try {
|
|
1890
1905
|
return e6.getMonitoringClient?.() ?? null;
|
|
1891
1906
|
} catch {
|
|
1892
1907
|
return null;
|
|
1893
1908
|
}
|
|
1894
1909
|
};
|
|
1895
|
-
var
|
|
1896
|
-
function
|
|
1897
|
-
let s2 =
|
|
1910
|
+
var Ga = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
|
|
1911
|
+
function Ka(e6, t2, { feature: n2, action: r2, level: i2 = `error`, tags: a2, contexts: o2 }) {
|
|
1912
|
+
let s2 = Ga(e6, `captureException`);
|
|
1898
1913
|
if (!s2) return;
|
|
1899
1914
|
let c2 = t2 instanceof Error ? t2 : Error(String(t2));
|
|
1900
1915
|
s2.captureException(c2, { level: i2, tags: { feature: n2, action: r2, ...a2 }, ...o2 ? { contexts: o2 } : {} });
|
|
1901
1916
|
}
|
|
1902
|
-
function
|
|
1903
|
-
let a2 =
|
|
1917
|
+
function qa(e6, t2, { feature: n2, tags: r2 }, i2) {
|
|
1918
|
+
let a2 = Ga(e6, `startSpanManual`);
|
|
1904
1919
|
if (!a2) return i2;
|
|
1905
1920
|
let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
|
|
1906
1921
|
return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
|
|
1907
1922
|
}
|
|
1908
|
-
var
|
|
1909
|
-
var
|
|
1910
|
-
var
|
|
1923
|
+
var Ja = `https://static.wixstatic.com/media/`;
|
|
1924
|
+
var Ya = 100;
|
|
1925
|
+
var Xa = (e6, t2 = ``) => {
|
|
1911
1926
|
let n2 = e6?.profile?.photo;
|
|
1912
1927
|
if (!n2?.url) return;
|
|
1913
|
-
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(
|
|
1914
|
-
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width ||
|
|
1915
|
-
};
|
|
1916
|
-
var
|
|
1917
|
-
var
|
|
1918
|
-
var
|
|
1919
|
-
var
|
|
1920
|
-
var
|
|
1928
|
+
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(Ja) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
|
|
1929
|
+
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Ya, height: n2.height || Ya, alt: r2 ?? t2 };
|
|
1930
|
+
};
|
|
1931
|
+
var Za = `https://static.wixstatic.com/media/`;
|
|
1932
|
+
var Qa = `wix:image://`;
|
|
1933
|
+
var $a = 1200;
|
|
1934
|
+
var eo = 800;
|
|
1935
|
+
var to = (e6) => {
|
|
1921
1936
|
if (!e6) return;
|
|
1922
1937
|
let t2 = Number.parseInt(e6, 10);
|
|
1923
1938
|
return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
|
|
1924
1939
|
};
|
|
1925
|
-
var
|
|
1926
|
-
if (!e6.startsWith(
|
|
1940
|
+
var no = (e6) => {
|
|
1941
|
+
if (!e6.startsWith(Qa)) {
|
|
1927
1942
|
let t3 = e6.split(/[?#]/)[0];
|
|
1928
1943
|
return t3 ? { uri: t3 } : void 0;
|
|
1929
1944
|
}
|
|
1930
1945
|
let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
|
|
1931
1946
|
if (!r2) return;
|
|
1932
1947
|
let a2 = new URLSearchParams(n2 ?? ``);
|
|
1933
|
-
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width:
|
|
1948
|
+
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: to(a2.get(`originWidth`)), height: to(a2.get(`originHeight`)) };
|
|
1934
1949
|
};
|
|
1935
|
-
var
|
|
1950
|
+
var ro = (e6, t2) => {
|
|
1936
1951
|
if (!e6) return;
|
|
1937
|
-
let n2 =
|
|
1952
|
+
let n2 = no(e6);
|
|
1938
1953
|
if (!n2) return;
|
|
1939
1954
|
let r2 = n2.name ?? n2.uri;
|
|
1940
|
-
return { uri: n2.uri, url: `${
|
|
1955
|
+
return { uri: n2.uri, url: `${Za}${n2.uri}`, name: r2, width: n2.width ?? $a, height: n2.height ?? eo, alt: t2 ?? r2 };
|
|
1941
1956
|
};
|
|
1942
|
-
var
|
|
1957
|
+
var io = (e6) => {
|
|
1943
1958
|
let t2 = e6?.media?.wixMedia?.image;
|
|
1944
1959
|
if (!t2) return;
|
|
1945
|
-
let n2 =
|
|
1960
|
+
let n2 = no(t2);
|
|
1946
1961
|
if (!n2) return;
|
|
1947
1962
|
let r2 = n2.name ?? n2.uri;
|
|
1948
|
-
return { uri: n2.uri, url: `${
|
|
1963
|
+
return { uri: n2.uri, url: `${Za}${n2.uri}`, name: r2, width: n2.width ?? $a, height: n2.height ?? eo, alt: e6?.media?.altText ?? e6?.title ?? r2 };
|
|
1949
1964
|
};
|
|
1950
|
-
var
|
|
1951
|
-
var
|
|
1952
|
-
var
|
|
1953
|
-
let t2 =
|
|
1965
|
+
var ao = (e6) => (e6?.tags ?? []).filter((e7) => !e7.disabled);
|
|
1966
|
+
var oo = (e6) => ao(e6).find((e7) => e7.type === `title`)?.children || void 0;
|
|
1967
|
+
var so = (e6) => {
|
|
1968
|
+
let t2 = ao(e6).find((e7) => e7.type === `meta` && e7.props?.name === `description`)?.props?.content;
|
|
1954
1969
|
return typeof t2 == `string` && t2 ? t2 : void 0;
|
|
1955
1970
|
};
|
|
1956
|
-
var
|
|
1957
|
-
var
|
|
1971
|
+
var co = (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 }]);
|
|
1972
|
+
var lo = (e6, t2) => {
|
|
1958
1973
|
try {
|
|
1959
1974
|
let n2 = new URL(t2 ?? ``).searchParams.get(`lang`);
|
|
1960
1975
|
if (!n2) return e6;
|
|
@@ -1964,79 +1979,64 @@ var io = (e6, t2) => {
|
|
|
1964
1979
|
return e6;
|
|
1965
1980
|
}
|
|
1966
1981
|
};
|
|
1967
|
-
var
|
|
1968
|
-
var
|
|
1969
|
-
var
|
|
1970
|
-
var
|
|
1982
|
+
var uo = 500;
|
|
1983
|
+
var fo = `max-snippet:-1, max-image-preview:large, max-video-preview:-1`;
|
|
1984
|
+
var po = 1e3;
|
|
1985
|
+
var mo = (e6, t2) => {
|
|
1971
1986
|
if (!e6 || !t2) return { width: e6, height: t2 };
|
|
1972
|
-
let n2 = Math.min(1,
|
|
1987
|
+
let n2 = Math.min(1, po / e6, po / t2);
|
|
1973
1988
|
return { width: Math.round(e6 * n2), height: Math.round(t2 * n2) };
|
|
1974
1989
|
};
|
|
1975
|
-
var
|
|
1990
|
+
var ho = (e6) => {
|
|
1976
1991
|
if (!e6) return;
|
|
1977
1992
|
let t2 = new Date(e6);
|
|
1978
1993
|
return Number.isNaN(t2.getTime()) ? void 0 : t2.toISOString();
|
|
1979
1994
|
};
|
|
1980
|
-
var
|
|
1981
|
-
var
|
|
1982
|
-
var
|
|
1983
|
-
let { _id: o2 } = e6, s2 = r2.flatMap((e7) => e7.label ? [e7.label] : []), c2 =
|
|
1984
|
-
return { post: { id: o2, title:
|
|
1995
|
+
var go = (e6) => (so(e6.seoData) || e6.excerpt || e6.contentText || void 0)?.slice(0, uo);
|
|
1996
|
+
var _o = (e6, t2) => ka(e6, t2) || (t2 && e6.slug ? `${t2}/${encodeURIComponent(e6.slug)}` : e6.url || void 0);
|
|
1997
|
+
var vo = (e6, t2, n2, r2 = [], i2, a2) => {
|
|
1998
|
+
let { _id: o2 } = e6, s2 = r2.flatMap((e7) => e7.label ? [e7.label] : []), c2 = _o(e6, n2), l2 = c2 && lo(c2, a2), u2 = e6.media?.displayed ? io(e6) : void 0, d2 = Xa(t2)?.url;
|
|
1999
|
+
return { post: { id: o2, title: oo(e6.seoData) || e6.title, language: e6.language ?? void 0, description: go(e6), type: `article`, canonicalUrl: l2, optInMeta: fo, slug: e6.slug, excerpt: e6.excerpt, firstPublishedDate: ho(e6.firstPublishedDate), lastPublishedDate: ho(e6.lastPublishedDate), owner: { name: t2?.profile?.nickname ?? void 0, ...d2 && { image: { url: d2 } } }, ...s2.length && { categories: s2.join(`, `), mainCategory: s2[0] }, path: l2, ...u2 && { image: { url: u2.url, ...mo(u2.width, u2.height) } } }, postsSettings: { isAmpEnabled: false, isSchemaEnabled: true }, translatedPages: co(e6, i2) };
|
|
1985
2000
|
};
|
|
1986
|
-
var
|
|
1987
|
-
var
|
|
2001
|
+
var yo = /* @__PURE__ */ new WeakSet();
|
|
2002
|
+
var bo = ({ post: e6, author: t2, categories: n2 }, r2 = false, i2) => {
|
|
1988
2003
|
let a2;
|
|
1989
2004
|
try {
|
|
1990
|
-
a2 = { seo: (0, import_services_manager_react.useService)(
|
|
2005
|
+
a2 = { seo: (0, import_services_manager_react.useService)(Va), url: (0, import_services_manager_react.useService)(U), renderingContext: (0, import_services_manager_react.useService)(Wn) };
|
|
1991
2006
|
} catch {
|
|
1992
2007
|
return;
|
|
1993
2008
|
}
|
|
1994
2009
|
let o2;
|
|
1995
2010
|
try {
|
|
1996
|
-
o2 = (0, import_services_manager_react.useService)(
|
|
2011
|
+
o2 = (0, import_services_manager_react.useService)(Ha).locales;
|
|
1997
2012
|
} catch {
|
|
1998
2013
|
}
|
|
1999
2014
|
let { _id: s2 } = e6 ?? {};
|
|
2000
|
-
if (!r2 && e6 && s2 && !
|
|
2001
|
-
|
|
2002
|
-
let r3 =
|
|
2003
|
-
a2.seo.setSeoEntity({ itemType: `BLOG_POST`, itemData:
|
|
2004
|
-
|
|
2015
|
+
if (!r2 && e6 && s2 && !yo.has(e6) && a2.renderingContext.SSR) {
|
|
2016
|
+
yo.add(e6);
|
|
2017
|
+
let r3 = Ea(a2.url) ?? Da(a2.url.currentUrl, e6.slug);
|
|
2018
|
+
a2.seo.setSeoEntity({ itemType: `BLOG_POST`, itemData: vo({ ...e6, _id: s2 }, t2, r3, n2, o2, a2.url.currentUrl), seoData: e6.seoData }).catch((e7) => {
|
|
2019
|
+
Ka(i2, e7, { feature: Ua.seo, action: `set-post-seo-entity`, contexts: { seo: { postId: s2 } } });
|
|
2005
2020
|
});
|
|
2006
2021
|
}
|
|
2007
2022
|
};
|
|
2008
|
-
var
|
|
2009
|
-
var
|
|
2010
|
-
var
|
|
2023
|
+
var xo = I(`@wix/site-service-locale`);
|
|
2024
|
+
var So = I(`@wix/site-service-renderer-configuration`);
|
|
2025
|
+
var Co = () => {
|
|
2011
2026
|
let e6, t2;
|
|
2012
2027
|
try {
|
|
2013
|
-
e6 = (0, import_services_manager_react.useService)(
|
|
2028
|
+
e6 = (0, import_services_manager_react.useService)(So).languageCode;
|
|
2014
2029
|
} catch {
|
|
2015
2030
|
}
|
|
2016
2031
|
try {
|
|
2017
|
-
t2 = (0, import_services_manager_react.useService)(
|
|
2032
|
+
t2 = (0, import_services_manager_react.useService)(xo).language;
|
|
2018
2033
|
} catch {
|
|
2019
2034
|
}
|
|
2020
2035
|
return e6 || t2;
|
|
2021
2036
|
};
|
|
2022
|
-
var yo = (0, import_react.createContext)({ isEditor: false, isPreview: false });
|
|
2023
|
-
var bo = () => (0, import_react.useContext)(yo);
|
|
2024
|
-
var xo = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
|
|
2025
|
-
var So = () => {
|
|
2026
|
-
try {
|
|
2027
|
-
let { SSR: e6, SEO: t2 } = (0, import_services_manager_react.useService)(sa);
|
|
2028
|
-
return e6 || t2;
|
|
2029
|
-
} catch {
|
|
2030
|
-
return false;
|
|
2031
|
-
}
|
|
2032
|
-
};
|
|
2033
|
-
var Co = () => {
|
|
2034
|
-
let e6 = So();
|
|
2035
|
-
return xo(bo()) && !e6;
|
|
2036
|
-
};
|
|
2037
2037
|
var wo = `wix.blog.v4.post`;
|
|
2038
2038
|
var To = async (e6, t2) => {
|
|
2039
|
-
let n2 = await
|
|
2039
|
+
let n2 = await ar({ postFqdn: wo, postId: e6 }, t2 ? { language: t2 } : void 0);
|
|
2040
2040
|
if (typeof n2 != `object` || !n2) throw Error(`No Wix SDK context for the post paywall read`);
|
|
2041
2041
|
let { richContent: r2 } = n2;
|
|
2042
2042
|
return D(r2);
|
|
@@ -2086,7 +2086,7 @@ var No = (e6, t2) => {
|
|
|
2086
2086
|
if (r2.length !== 0) return r2[r2.length - 1] = encodeURIComponent(t2), n2.pathname = `/${r2.join(`/`)}`, n2.toString();
|
|
2087
2087
|
};
|
|
2088
2088
|
var Po = (e6, t2, n2) => {
|
|
2089
|
-
let r2 = jo(), i2 =
|
|
2089
|
+
let r2 = jo(), i2 = Zn(), a2 = Kn(), { language: o2, translationId: s2 } = e6 ?? {}, c2 = !!(t2 && s2 && o2 && o2 !== t2);
|
|
2090
2090
|
(0, import_react.useEffect)(() => {
|
|
2091
2091
|
if (!c2 || !t2 || !s2 || !r2 || i2 || a2) return;
|
|
2092
2092
|
let e7 = false;
|
|
@@ -2098,9 +2098,9 @@ var Po = (e6, t2, n2) => {
|
|
|
2098
2098
|
};
|
|
2099
2099
|
}, [c2, t2, s2, r2, i2, a2, n2]);
|
|
2100
2100
|
};
|
|
2101
|
-
var Fo =
|
|
2101
|
+
var Fo = I(`@wix/site-service-warmup-data`);
|
|
2102
2102
|
function Io() {
|
|
2103
|
-
let e6 =
|
|
2103
|
+
let e6 = pa(), t2 = null;
|
|
2104
2104
|
try {
|
|
2105
2105
|
t2 = (0, import_services_manager_react.useGetService)()(Fo);
|
|
2106
2106
|
} catch {
|
|
@@ -4431,14 +4431,14 @@ function lu(e6) {
|
|
|
4431
4431
|
return t2 || (t2 = iu(e6).finally(() => cu.delete(e6)), cu.set(e6, t2)), t2;
|
|
4432
4432
|
}
|
|
4433
4433
|
function uu({ i18n: e6, locale: t2 }) {
|
|
4434
|
-
let n2 =
|
|
4434
|
+
let n2 = pa(), r2 = Io();
|
|
4435
4435
|
if (!n2) return null;
|
|
4436
4436
|
if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw lu(e6);
|
|
4437
4437
|
let i2 = au(e6, t2);
|
|
4438
4438
|
return i2 && r2.set($l, { locale: t2, messages: i2 }), null;
|
|
4439
4439
|
}
|
|
4440
4440
|
function du(e6) {
|
|
4441
|
-
let t2 =
|
|
4441
|
+
let t2 = Co(), n2 = tu()?.locale ?? t2 ?? `en`;
|
|
4442
4442
|
return { i18n: ru(n2, e6), locale: n2 };
|
|
4443
4443
|
}
|
|
4444
4444
|
var fu = y({ default: () => pu });
|
|
@@ -4452,7 +4452,7 @@ var vu = (e6, t2) => {
|
|
|
4452
4452
|
return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
|
|
4453
4453
|
};
|
|
4454
4454
|
var yu = zo({ isDev: false, loadMessages: (e6) => vu(e6, ``), loadDevMessages: (e6) => vu(e6, `.dev`) });
|
|
4455
|
-
var bu = (e6) => O(A(e6, [{ transformFn:
|
|
4455
|
+
var bu = (e6) => O(A(e6, [{ transformFn: B, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: z, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: V, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
|
|
4456
4456
|
var xu = `https://blog.wixsite.com/blog-demo-posts`;
|
|
4457
4457
|
var Su = M((e6) => async (t2) => {
|
|
4458
4458
|
let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${N(t2)}`);
|
|
@@ -4552,9 +4552,9 @@ var Gu = (e6, t2, n2) => {
|
|
|
4552
4552
|
});
|
|
4553
4553
|
return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
|
|
4554
4554
|
};
|
|
4555
|
-
var Ku = [
|
|
4556
|
-
var qu = [
|
|
4557
|
-
|
|
4555
|
+
var Ku = [H.RICH_CONTENT, H.SEO, H.URL, H.CONTENT_TEXT, `TRANSLATIONS`];
|
|
4556
|
+
var qu = [H.RICH_CONTENT, H.URL];
|
|
4557
|
+
H.URL, H.METRICS;
|
|
4558
4558
|
var Ju = (e6) => {
|
|
4559
4559
|
let { status: t2, details: n2 } = e6 ?? {};
|
|
4560
4560
|
return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
|
|
@@ -4565,13 +4565,13 @@ var Yu = (e6, t2) => {
|
|
|
4565
4565
|
var Xu = (e6) => Uu(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
|
|
4566
4566
|
var Zu = async (e6, t2, n2 = false, r2) => {
|
|
4567
4567
|
try {
|
|
4568
|
-
let { post: n3 } = await
|
|
4568
|
+
let { post: n3 } = await Ji(e6, { ...t2 && { fieldsets: t2 }, ...r2 && { language: r2 } });
|
|
4569
4569
|
if (n3) return n3;
|
|
4570
4570
|
} catch (e7) {
|
|
4571
4571
|
Yu(e7, n2);
|
|
4572
4572
|
}
|
|
4573
4573
|
try {
|
|
4574
|
-
let { items: n3 } = await
|
|
4574
|
+
let { items: n3 } = await Qi(t2 ? { fieldsets: t2 } : void 0).eq(`slug`, e6).limit(1).find();
|
|
4575
4575
|
return n3[0];
|
|
4576
4576
|
} catch (e7) {
|
|
4577
4577
|
Yu(e7, n2);
|
|
@@ -4581,7 +4581,7 @@ var Zu = async (e6, t2, n2 = false, r2) => {
|
|
|
4581
4581
|
var Qu = async (e6, t2 = false, n2) => {
|
|
4582
4582
|
try {
|
|
4583
4583
|
let t3 = async (t4) => {
|
|
4584
|
-
let { posts: r2 } = await
|
|
4584
|
+
let { posts: r2 } = await Yi({ paging: { limit: 1 }, ...e6 && { fieldsets: e6 }, ...t4 && n2 && { language: n2 } });
|
|
4585
4585
|
return r2?.[0];
|
|
4586
4586
|
};
|
|
4587
4587
|
return await t3(true) ?? (n2 ? await t3(false) : void 0);
|
|
@@ -4593,7 +4593,7 @@ var Qu = async (e6, t2 = false, n2) => {
|
|
|
4593
4593
|
var $u = async (e6, t2 = false, n2) => (e6 ? await Zu(e6, Ku, t2, n2) : void 0) ?? await Qu(Ku, t2, n2);
|
|
4594
4594
|
var ed = async (e6) => {
|
|
4595
4595
|
try {
|
|
4596
|
-
let { metrics: t2 } = await
|
|
4596
|
+
let { metrics: t2 } = await Xi(e6);
|
|
4597
4597
|
return t2;
|
|
4598
4598
|
} catch {
|
|
4599
4599
|
return;
|
|
@@ -4602,7 +4602,7 @@ var ed = async (e6) => {
|
|
|
4602
4602
|
var td = 100;
|
|
4603
4603
|
var nd = async () => {
|
|
4604
4604
|
try {
|
|
4605
|
-
let { categories: e6 } = await
|
|
4605
|
+
let { categories: e6 } = await ti({ paging: { limit: td } });
|
|
4606
4606
|
return e6 ?? [];
|
|
4607
4607
|
} catch {
|
|
4608
4608
|
return [];
|
|
@@ -4618,7 +4618,7 @@ var id = 30;
|
|
|
4618
4618
|
var ad = async (e6) => {
|
|
4619
4619
|
if (!e6?.length) return [];
|
|
4620
4620
|
try {
|
|
4621
|
-
let { items: t2 } = await
|
|
4621
|
+
let { items: t2 } = await ua().in(`_id`, e6).limit(id).find();
|
|
4622
4622
|
return t2 ?? [];
|
|
4623
4623
|
} catch {
|
|
4624
4624
|
return [];
|
|
@@ -4647,7 +4647,7 @@ var fd = (e6) => {
|
|
|
4647
4647
|
};
|
|
4648
4648
|
var pd = async (e6, t2) => {
|
|
4649
4649
|
try {
|
|
4650
|
-
let { items: n2 } = await
|
|
4650
|
+
let { items: n2 } = await Qi().eq(`translationId`, e6).eq(`language`, t2).limit(1).find();
|
|
4651
4651
|
return n2[0]?.slug ?? void 0;
|
|
4652
4652
|
} catch {
|
|
4653
4653
|
return;
|
|
@@ -4686,7 +4686,7 @@ var md = class extends import_react.Component {
|
|
|
4686
4686
|
return { error: e6 ?? Error(`Unknown render error`) };
|
|
4687
4687
|
}
|
|
4688
4688
|
componentDidCatch(e6, t2) {
|
|
4689
|
-
|
|
4689
|
+
Ka(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 } } });
|
|
4690
4690
|
}
|
|
4691
4691
|
render() {
|
|
4692
4692
|
if (this.state.error === void 0) return this.props.children;
|
|
@@ -4696,10 +4696,10 @@ var md = class extends import_react.Component {
|
|
|
4696
4696
|
};
|
|
4697
4697
|
var hd = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
|
|
4698
4698
|
var gd = { post: void 0, author: void 0, metrics: void 0, categories: [], tags: [] };
|
|
4699
|
-
var _d = [
|
|
4699
|
+
var _d = [ui.RICH_CONTENT, ui.GENERATED_EXCERPT];
|
|
4700
4700
|
var vd = M((e6) => () => e6.fetchWithAuth);
|
|
4701
4701
|
var yd = (e6) => e6 ? vd() : (...e7) => globalThis.fetch(...e7);
|
|
4702
|
-
var bd = (e6, t2) => Ye({ modules: { draftPosts: { getDraftPost:
|
|
4702
|
+
var bd = (e6, t2) => Ye({ modules: { draftPosts: { getDraftPost: pi } }, auth: { getAuthHeaders: () => ({ headers: { authorization: e6 } }) }, fetch: yd(t2) });
|
|
4703
4703
|
var xd = (e6) => {
|
|
4704
4704
|
let { _id: t2, title: n2, excerpt: r2, seoSlug: i2, memberId: a2, minutesToRead: o2, categoryIds: s2, tagIds: c2, firstPublishedDate: l2, richContent: u2, media: d2 } = e6 ?? {};
|
|
4705
4705
|
if (t2) return { _id: t2, title: n2, excerpt: r2 ?? void 0, slug: i2 ?? void 0, memberId: a2 ?? void 0, minutesToRead: o2, categoryIds: s2, tagIds: c2, firstPublishedDate: l2 ?? void 0, richContent: u2, ...d2 && { media: d2 } };
|
|
@@ -4724,7 +4724,7 @@ var Ed = (e6) => {
|
|
|
4724
4724
|
} catch {
|
|
4725
4725
|
return;
|
|
4726
4726
|
}
|
|
4727
|
-
return
|
|
4727
|
+
return ja(t2, e6);
|
|
4728
4728
|
};
|
|
4729
4729
|
var Dd = 1e4;
|
|
4730
4730
|
function Od(e6) {
|
|
@@ -4736,14 +4736,14 @@ function Od(e6) {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
var kd = `wix.blog.v3.post`;
|
|
4738
4738
|
var Ad = async (e6) => {
|
|
4739
|
-
await
|
|
4739
|
+
await Ur({ like: { entityId: e6, fqdn: kd } });
|
|
4740
4740
|
};
|
|
4741
4741
|
var jd = async (e6) => {
|
|
4742
|
-
await
|
|
4742
|
+
await Wr({ fqdn: kd, entityId: e6 });
|
|
4743
4743
|
};
|
|
4744
4744
|
var Md = (e6) => typeof e6 == `number` ? e6 : void 0;
|
|
4745
4745
|
var Nd = async (e6) => {
|
|
4746
|
-
let [t2, n2] = await Promise.allSettled([
|
|
4746
|
+
let [t2, n2] = await Promise.allSettled([Gr().eq(`fqdn`, kd).eq(`entityId`, e6).limit(1).find(), Xi(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
|
|
4747
4747
|
return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Md(r2?.likes), viewCount: Md(r2?.views), commentCount: Md(r2?.comments) };
|
|
4748
4748
|
};
|
|
4749
4749
|
var Pd = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
|
|
@@ -4757,7 +4757,7 @@ var Ld = (e6) => {
|
|
|
4757
4757
|
};
|
|
4758
4758
|
var Rd = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
|
|
4759
4759
|
var zd = (e6, t2, n2 = false, r2) => {
|
|
4760
|
-
let i2 =
|
|
4760
|
+
let i2 = Kn() || n2, [a2, c2] = (0, import_react.useState)(Pd), p2 = (0, import_react.useRef)(Pd), m2 = (0, import_react.useRef)(t2), h2 = (0, import_react.useRef)(/* @__PURE__ */ new Set()), g2 = (0, import_react.useRef)(false), _2 = (0, import_react.useRef)(false), v2 = (0, import_react.useRef)(void 0), y2 = _a(), [b2, x2] = (0, import_react.useState)(0);
|
|
4761
4761
|
(0, import_react.useEffect)(() => {
|
|
4762
4762
|
let e7 = y2?.addMemberLoginListener?.(() => {
|
|
4763
4763
|
Id().clear(), x2((e8) => e8 + 1);
|
|
@@ -4783,7 +4783,7 @@ var zd = (e6, t2, n2 = false, r2) => {
|
|
|
4783
4783
|
return Nd(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
|
|
4784
4784
|
t3 || S2({ isLikeCountLoaded: true, viewCount: r3, commentCount: i3, baselineLiked: e7, freshLikeCount: n3, ...!_2.current && { liked: e7 } });
|
|
4785
4785
|
}).catch((n3) => {
|
|
4786
|
-
t3 || S2({ isLikeCountLoaded: true }),
|
|
4786
|
+
t3 || S2({ isLikeCountLoaded: true }), Ka(r2, n3, { feature: Ua.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
|
|
4787
4787
|
}), () => {
|
|
4788
4788
|
t3 = true;
|
|
4789
4789
|
};
|
|
@@ -4808,7 +4808,7 @@ var zd = (e6, t2, n2 = false, r2) => {
|
|
|
4808
4808
|
try {
|
|
4809
4809
|
await (n3 ? Ad(e6) : jd(e6));
|
|
4810
4810
|
} catch (t4) {
|
|
4811
|
-
S2({ liked: !n3 }), Ld({ postId: e6, liked: !n3 }),
|
|
4811
|
+
S2({ liked: !n3 }), Ld({ postId: e6, liked: !n3 }), Ka(r2, t4, { feature: Ua.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
|
|
4812
4812
|
} finally {
|
|
4813
4813
|
g2.current = false;
|
|
4814
4814
|
}
|
|
@@ -4817,12 +4817,18 @@ var zd = (e6, t2, n2 = false, r2) => {
|
|
|
4817
4817
|
return { ...Rd(a2, t2), toggleLike: ee2, liveLikes: C2 };
|
|
4818
4818
|
};
|
|
4819
4819
|
var Bd = () => {
|
|
4820
|
+
let e6;
|
|
4820
4821
|
try {
|
|
4821
|
-
let {
|
|
4822
|
-
|
|
4822
|
+
let { multilingualEnabled: t3, currentLocale: n3 } = (0, import_services_manager_react.useService)(Ha);
|
|
4823
|
+
t3 && n3 && !n3.primaryLocale && (e6 = n3.regionalFormat);
|
|
4824
|
+
} catch {
|
|
4825
|
+
}
|
|
4826
|
+
let t2, n2;
|
|
4827
|
+
try {
|
|
4828
|
+
({ locale: t2, language: n2 } = (0, import_services_manager_react.useService)(xo));
|
|
4823
4829
|
} catch {
|
|
4824
|
-
return;
|
|
4825
4830
|
}
|
|
4831
|
+
return e6 || t2 || n2;
|
|
4826
4832
|
};
|
|
4827
4833
|
var Vd = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
|
|
4828
4834
|
var Q = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
|
|
@@ -4884,7 +4890,7 @@ var sf = (e6) => {
|
|
|
4884
4890
|
var cf = (e6, t2 = []) => {
|
|
4885
4891
|
let n2 = e6?.media;
|
|
4886
4892
|
if (!n2 || n2.displayed === false) return;
|
|
4887
|
-
let r2 =
|
|
4893
|
+
let r2 = io(e6);
|
|
4888
4894
|
if (r2) return { kind: `image`, image: r2 };
|
|
4889
4895
|
let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? nf(n2.wixMedia.videoV2) : void 0;
|
|
4890
4896
|
if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
|
|
@@ -4895,9 +4901,9 @@ var cf = (e6, t2 = []) => {
|
|
|
4895
4901
|
}
|
|
4896
4902
|
};
|
|
4897
4903
|
var lf = (e6) => {
|
|
4898
|
-
let t2 =
|
|
4904
|
+
let t2 = io(e6), n2 = e6?.media?.wixMedia?.videoV2;
|
|
4899
4905
|
if (t2 || !n2) return t2;
|
|
4900
|
-
let r2 = nf(n2), i2 =
|
|
4906
|
+
let r2 = nf(n2), i2 = ro(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
|
|
4901
4907
|
return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
|
|
4902
4908
|
};
|
|
4903
4909
|
var uf = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
|
|
@@ -4931,11 +4937,11 @@ var Sf = (e6, t2, n2, r2) => $(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
|
|
|
4931
4937
|
var Cf = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
|
|
4932
4938
|
var wf = { nodes: [] };
|
|
4933
4939
|
var Tf = () => ({ title: $(``), excerpt: $(``), coverImage: void 0, coverMedia: void 0, richContent: wf, authorName: $(``), authorImage: void 0, timeToRead: $(``), publishedDate: $(``), viewCount: $(``), commentCount: $(``), likeCount: $(``), postCategories: [], itemCategoryLabel: $(``), postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
|
|
4934
|
-
var Ef = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? Tf() : { title: $(e6?.title ?? o2.canvas.postTitle()), excerpt: $(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: lf(e6), coverMedia: cf(e6, a2), richContent: e6?.richContent ?? xf(o2.canvas.content()), authorName: $(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage:
|
|
4940
|
+
var Ef = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? Tf() : { title: $(e6?.title ?? o2.canvas.postTitle()), excerpt: $(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: lf(e6), coverMedia: cf(e6, a2), richContent: e6?.richContent ?? xf(o2.canvas.content()), authorName: $(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage: Xa(t2, o2.canvas.authorPhotoAlt()), timeToRead: $(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? o2.timeToRead(e6.minutesToRead) : c2 ? o2.timeToRead(yf) : ``), publishedDate: $(Qd(e6?.firstPublishedDate ?? new Date(l2), s2, l2)), viewCount: Sf(n2?.views, bf.views, c2, o2.viewCount), commentCount: Sf(n2?.comments, bf.comments, c2, o2.commentCount), likeCount: Sf(n2?.likes, bf.likes, c2, o2.likeCount), postCategories: r2.length === 0 && c2 ? hf(o2) : r2.map((e7) => pf(e7, u2.category)), itemCategoryLabel: $(r2[0]?.label ?? (c2 ? o2.canvas.category() : ``)), postTags: i2.length === 0 && c2 ? vf(o2) : i2.map((e7) => gf(e7, u2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && lf(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: Wd(e6?.firstPublishedDate) ?? (c2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: Gd(e6?.minutesToRead) ?? (c2 ? yf : void 0), viewCountValue: Cf(n2?.views, bf.views, c2), commentCountValue: Cf(n2?.comments, bf.comments, c2) };
|
|
4935
4941
|
var Df = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
|
|
4936
|
-
let { t: a2 } = Hl(), o2 = Bd(), s2 = (0, import_react.useMemo)(() => Hd(a2, o2), [a2, o2]), c2 = Od(e6.fetchedAt), l2 =
|
|
4942
|
+
let { t: a2 } = Hl(), o2 = Bd(), s2 = (0, import_react.useMemo)(() => Hd(a2, o2), [a2, o2]), c2 = Od(e6.fetchedAt), l2 = Zn(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = zd(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = Ed(xa), y2 = Ed(`tag`), b2 = (0, import_react.useMemo)(() => fd(e6.post), [e6]), x2 = Mo(), S2 = (0, import_react.useMemo)(() => e6.post?.richContent && e6.paywall ? Ao(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
|
|
4937
4943
|
return (0, import_react.useMemo)(() => {
|
|
4938
|
-
let n3 = Ef(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 :
|
|
4944
|
+
let n3 = Ef(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 : Aa(e6.post, i2), u2 = a3 ?? (l2 ? Ud(i2) : void 0);
|
|
4939
4945
|
return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, itemLink: u2, postUrl: a3?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: $(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
|
|
4940
4946
|
}, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
|
|
4941
4947
|
};
|
|
@@ -4953,23 +4959,23 @@ function Nf() {
|
|
|
4953
4959
|
var Pf = ({ source: e6, children: t2 }) => (0, import_jsx_runtime.jsx)(Td.Provider, { value: void 0, children: (0, import_jsx_runtime.jsx)(wd.Provider, { value: e6, children: t2 }) });
|
|
4954
4960
|
var Ff = 2500;
|
|
4955
4961
|
var If = ({ children: t2, postLoadPromise: n2, relatedSourcePromise: r2, monitoringClient: i2, slug: a2, language: o2, isPostInPreview: c2 }) => {
|
|
4956
|
-
let { post: l2, hasError: u2 } = Vn(n2), d2 =
|
|
4957
|
-
|
|
4962
|
+
let { post: l2, hasError: u2 } = Vn(n2), d2 = va(l2, (0, import_react.useCallback)(() => $u(a2, false, o2), [a2, o2]));
|
|
4963
|
+
bo(d2, c2, i2), Po(a2 && d2.post?.slug === a2 && !c2 ? d2.post : void 0, o2, pd);
|
|
4958
4964
|
let { _id: f2 } = d2.post ?? {};
|
|
4959
|
-
|
|
4960
|
-
let p2 = Df({ postWithAuthor: d2, hasError: u2, monitoringClient: i2, isPostInPreview: c2, postPageBase:
|
|
4961
|
-
return
|
|
4965
|
+
fa(c2 ? void 0 : f2 ?? void 0);
|
|
4966
|
+
let p2 = Df({ postWithAuthor: d2, hasError: u2, monitoringClient: i2, isPostInPreview: c2, postPageBase: Ma(a2) });
|
|
4967
|
+
return Ba(Ra.postBySlugProvider, u2 ? `error` : d2.post ? `data` : `empty`), (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: p2, children: (0, import_jsx_runtime.jsx)(Pf, { source: r2, children: t2 }) });
|
|
4962
4968
|
};
|
|
4963
4969
|
function Lf({ children: t2 }) {
|
|
4964
|
-
let n2 =
|
|
4970
|
+
let n2 = Fa(), i2 = La(), a2 = Co(), o2 = pa(), { draftPostId: s2, instance: c2 } = n2 ?? {}, l2 = Zn(), d2 = Io(), f2 = (0, import_react.useMemo)(() => Wa(zn), []), { i18n: p2, locale: m2 } = du(yu), _2 = ha(() => {
|
|
4965
4971
|
let e6 = s2 && c2 ? hd(Cd({ draftPostId: s2, instance: c2 }, o2)) : Ql({ key: i2 ? `blog-builder:post:${i2}|${a2 ?? ``}` : null, warmupData: d2, fetchData: () => {
|
|
4966
4972
|
let e7 = ud(i2, o2, a2).then((e8) => l2 ? sd(e8, a2) : e8);
|
|
4967
|
-
return hd(
|
|
4973
|
+
return hd(qa(f2, `post-read`, { feature: Ua.post }, o2 ? Gu(e7, Ff, `post`) : e7));
|
|
4968
4974
|
} }), t3 = e6.then(({ post: e7 }) => fd(e7));
|
|
4969
4975
|
return t3.catch(() => {
|
|
4970
4976
|
}), { slug: i2, language: a2, isPostInPreview: !!s2, postLoadPromise: Un(e6, Of, o2 ? Af : kf), relatedSourcePromise: t3 };
|
|
4971
4977
|
}, [s2, c2, a2, i2, o2, l2, d2, f2]);
|
|
4972
|
-
return (0, import_jsx_runtime.jsx)(Ul, { i18n: p2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: jf, children: (0, import_jsx_runtime.jsx)(Pf, { source: _2.relatedSourcePromise, children: t2 }) }), children: [(0, import_jsx_runtime.jsx)(uu, { i18n: p2, locale: m2 }), (0, import_jsx_runtime.jsx)(md, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: Mf, children: (0, import_jsx_runtime.jsx)(Pf, { source: _2.relatedSourcePromise, children: t2 }) }), feature:
|
|
4978
|
+
return (0, import_jsx_runtime.jsx)(Ul, { i18n: p2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: jf, children: (0, import_jsx_runtime.jsx)(Pf, { source: _2.relatedSourcePromise, children: t2 }) }), children: [(0, import_jsx_runtime.jsx)(uu, { i18n: p2, locale: m2 }), (0, import_jsx_runtime.jsx)(md, { fallback: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: Mf, children: (0, import_jsx_runtime.jsx)(Pf, { source: _2.relatedSourcePromise, children: t2 }) }), feature: Ua.post, monitoringClient: f2, rethrow: o2, children: (0, import_jsx_runtime.jsx)(If, { postLoadPromise: _2.postLoadPromise, relatedSourcePromise: _2.relatedSourcePromise, monitoringClient: f2, slug: _2.isPostInPreview ? void 0 : _2.slug, language: _2.language, isPostInPreview: _2.isPostInPreview, children: t2 }) })] }) });
|
|
4973
4979
|
}
|
|
4974
4980
|
var Rf = Mn(`12ed204c-821c-4ce9-802b-8bfe8e98d7e2`);
|
|
4975
4981
|
// Annotate the CommonJS export names for ESM import in node:
|