@wix/blog 1.0.697 → 1.0.699

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/_sdk-exports/{context-blog-feed-context-provider → context-blog-feed}/runtime.js +3 -3
  2. package/_sdk-exports/{context-post-context-provider → context-post}/runtime.js +2 -2
  3. package/_sdk-exports/context-post-by-id/runtime.js +5 -0
  4. package/_sdk-exports/context-related-posts/runtime.js +5 -0
  5. package/blog-feed-context-provider/package.json +1 -1
  6. package/build/cjs/{context-blog-feed-context-provider.js → context-blog-feed.js} +201 -186
  7. package/build/cjs/context-blog-feed.js.map +1 -0
  8. package/build/cjs/{context-category-item-context-provider.js → context-category-item.js} +6 -6
  9. package/build/cjs/context-category-item.js.map +1 -0
  10. package/build/cjs/{context-post-by-id-context-provider.js → context-post-by-id.js} +480 -473
  11. package/build/cjs/context-post-by-id.js.map +1 -0
  12. package/build/cjs/{context-post-item-context-provider.js → context-post-item.js} +6 -6
  13. package/build/cjs/context-post-item.js.map +1 -0
  14. package/build/cjs/{context-post-context-provider.js → context-post.js} +214 -198
  15. package/build/cjs/context-post.js.map +1 -0
  16. package/build/cjs/{context-related-posts-context-provider.js → context-related-posts.js} +779 -763
  17. package/build/cjs/context-related-posts.js.map +1 -0
  18. package/build/cjs/{context-tag-item-context-provider.js → context-tag-item.js} +6 -6
  19. package/build/cjs/context-tag-item.js.map +1 -0
  20. package/build/es/{context-blog-feed-context-provider.mjs → context-blog-feed.mjs} +197 -182
  21. package/build/es/context-blog-feed.mjs.map +1 -0
  22. package/build/es/{context-category-item-context-provider.mjs → context-category-item.mjs} +2 -2
  23. package/build/es/context-category-item.mjs.map +1 -0
  24. package/build/es/{context-post-by-id-context-provider.mjs → context-post-by-id.mjs} +476 -469
  25. package/build/es/context-post-by-id.mjs.map +1 -0
  26. package/build/es/{context-post-item-context-provider.mjs → context-post-item.mjs} +2 -2
  27. package/build/es/context-post-item.mjs.map +1 -0
  28. package/build/es/{context-post-context-provider.mjs → context-post.mjs} +210 -194
  29. package/build/es/context-post.mjs.map +1 -0
  30. package/build/es/{context-related-posts-context-provider.mjs → context-related-posts.mjs} +775 -759
  31. package/build/es/context-related-posts.mjs.map +1 -0
  32. package/build/es/{context-tag-item-context-provider.mjs → context-tag-item.mjs} +2 -2
  33. package/build/es/context-tag-item.mjs.map +1 -0
  34. package/category-item-context-provider/package.json +1 -1
  35. package/context/blog-feed/package.json +3 -0
  36. package/context/category-item/package.json +3 -0
  37. package/context/post/package.json +3 -0
  38. package/context/post-by-id/package.json +3 -0
  39. package/context/post-item/package.json +3 -0
  40. package/context/related-posts/package.json +3 -0
  41. package/context/tag-item/package.json +3 -0
  42. package/package.json +60 -60
  43. package/post-by-id-context-provider/package.json +1 -1
  44. package/post-context-provider/package.json +1 -1
  45. package/post-item-context-provider/package.json +1 -1
  46. package/related-posts-context-provider/package.json +1 -1
  47. package/tag-item-context-provider/package.json +1 -1
  48. package/_sdk-exports/context-post-by-id-context-provider/runtime.js +0 -5
  49. package/_sdk-exports/context-related-posts-context-provider/runtime.js +0 -5
  50. package/build/cjs/context-blog-feed-context-provider.js.map +0 -1
  51. package/build/cjs/context-category-item-context-provider.js.map +0 -1
  52. package/build/cjs/context-post-by-id-context-provider.js.map +0 -1
  53. package/build/cjs/context-post-context-provider.js.map +0 -1
  54. package/build/cjs/context-post-item-context-provider.js.map +0 -1
  55. package/build/cjs/context-related-posts-context-provider.js.map +0 -1
  56. package/build/cjs/context-tag-item-context-provider.js.map +0 -1
  57. package/build/es/context-blog-feed-context-provider.mjs.map +0 -1
  58. package/build/es/context-category-item-context-provider.mjs.map +0 -1
  59. package/build/es/context-post-by-id-context-provider.mjs.map +0 -1
  60. package/build/es/context-post-context-provider.mjs.map +0 -1
  61. package/build/es/context-post-item-context-provider.mjs.map +0 -1
  62. package/build/es/context-related-posts-context-provider.mjs.map +0 -1
  63. package/build/es/context-tag-item-context-provider.mjs.map +0 -1
  64. package/context/blog-feed-context-provider/package.json +0 -3
  65. package/context/category-item-context-provider/package.json +0 -3
  66. package/context/post-by-id-context-provider/package.json +0 -3
  67. package/context/post-context-provider/package.json +0 -3
  68. package/context/post-item-context-provider/package.json +0 -3
  69. package/context/related-posts-context-provider/package.json +0 -3
  70. package/context/tag-item-context-provider/package.json +0 -3
  71. /package/_sdk-exports/{context-blog-feed-context-provider → context-blog-feed}/runtime.d.ts +0 -0
  72. /package/_sdk-exports/{context-category-item-context-provider → context-category-item}/runtime.d.ts +0 -0
  73. /package/_sdk-exports/{context-category-item-context-provider → context-category-item}/runtime.js +0 -0
  74. /package/_sdk-exports/{context-post-context-provider → context-post}/runtime.d.ts +0 -0
  75. /package/_sdk-exports/{context-post-by-id-context-provider → context-post-by-id}/runtime.d.ts +0 -0
  76. /package/_sdk-exports/{context-post-item-context-provider → context-post-item}/runtime.d.ts +0 -0
  77. /package/_sdk-exports/{context-post-item-context-provider → context-post-item}/runtime.js +0 -0
  78. /package/_sdk-exports/{context-related-posts-context-provider → context-related-posts}/runtime.d.ts +0 -0
  79. /package/_sdk-exports/{context-tag-item-context-provider → context-tag-item}/runtime.d.ts +0 -0
  80. /package/_sdk-exports/{context-tag-item-context-provider → context-tag-item}/runtime.js +0 -0
  81. /package/build/cjs/{context-blog-feed-context-provider.d.ts → context-blog-feed.d.ts} +0 -0
  82. /package/build/cjs/{context-category-item-context-provider.d.ts → context-category-item.d.ts} +0 -0
  83. /package/build/cjs/{context-post-by-id-context-provider.d.ts → context-post-by-id.d.ts} +0 -0
  84. /package/build/cjs/{context-post-item-context-provider.d.ts → context-post-item.d.ts} +0 -0
  85. /package/build/cjs/{context-post-context-provider.d.ts → context-post.d.ts} +0 -0
  86. /package/build/cjs/{context-related-posts-context-provider.d.ts → context-related-posts.d.ts} +0 -0
  87. /package/build/cjs/{context-tag-item-context-provider.d.ts → context-tag-item.d.ts} +0 -0
  88. /package/build/es/{context-blog-feed-context-provider.d.mts → context-blog-feed.d.mts} +0 -0
  89. /package/build/es/{context-category-item-context-provider.d.mts → context-category-item.d.mts} +0 -0
  90. /package/build/es/{context-post-by-id-context-provider.d.mts → context-post-by-id.d.mts} +0 -0
  91. /package/build/es/{context-post-item-context-provider.d.mts → context-post-item.d.mts} +0 -0
  92. /package/build/es/{context-post-context-provider.d.mts → context-post.d.mts} +0 -0
  93. /package/build/es/{context-related-posts-context-provider.d.mts → context-related-posts.d.mts} +0 -0
  94. /package/build/es/{context-tag-item-context-provider.d.mts → context-tag-item.d.mts} +0 -0
  95. /package/build/internal/cjs/{context-blog-feed-context-provider.d.ts → context-blog-feed.d.ts} +0 -0
  96. /package/build/internal/cjs/{context-category-item-context-provider.d.ts → context-category-item.d.ts} +0 -0
  97. /package/build/internal/cjs/{context-post-by-id-context-provider.d.ts → context-post-by-id.d.ts} +0 -0
  98. /package/build/internal/cjs/{context-post-item-context-provider.d.ts → context-post-item.d.ts} +0 -0
  99. /package/build/internal/cjs/{context-post-context-provider.d.ts → context-post.d.ts} +0 -0
  100. /package/build/internal/cjs/{context-related-posts-context-provider.d.ts → context-related-posts.d.ts} +0 -0
  101. /package/build/internal/cjs/{context-tag-item-context-provider.d.ts → context-tag-item.d.ts} +0 -0
  102. /package/build/internal/es/{context-blog-feed-context-provider.d.mts → context-blog-feed.d.mts} +0 -0
  103. /package/build/internal/es/{context-category-item-context-provider.d.mts → context-category-item.d.mts} +0 -0
  104. /package/build/internal/es/{context-post-by-id-context-provider.d.mts → context-post-by-id.d.mts} +0 -0
  105. /package/build/internal/es/{context-post-item-context-provider.d.mts → context-post-item.d.mts} +0 -0
  106. /package/build/internal/es/{context-post-context-provider.d.mts → context-post.d.mts} +0 -0
  107. /package/build/internal/es/{context-related-posts-context-provider.d.mts → context-related-posts.d.mts} +0 -0
  108. /package/build/internal/es/{context-tag-item-context-provider.d.mts → context-tag-item.d.mts} +0 -0
@@ -17,17 +17,17 @@ var __copyProps = (to2, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // context-blog-feed-context-provider.ts
21
- var context_blog_feed_context_provider_exports = {};
22
- __export(context_blog_feed_context_provider_exports, {
23
- PostListProvider: () => cd,
24
- default: () => cd,
25
- injectAccessTokenGetter: () => ld,
26
- useBlogFeedContext: () => Ju
20
+ // context-blog-feed.ts
21
+ var context_blog_feed_exports = {};
22
+ __export(context_blog_feed_exports, {
23
+ PostListProvider: () => pd,
24
+ default: () => pd,
25
+ injectAccessTokenGetter: () => md,
26
+ useBlogFeedContext: () => $u
27
27
  });
28
- module.exports = __toCommonJS(context_blog_feed_context_provider_exports);
28
+ module.exports = __toCommonJS(context_blog_feed_exports);
29
29
 
30
- // _sdk-exports/context-blog-feed-context-provider/runtime.js
30
+ // _sdk-exports/context-blog-feed/runtime.js
31
31
  var import_react = require("react");
32
32
  var import_services_manager_react = require("@wix/services-manager-react");
33
33
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -102,8 +102,8 @@ var w = class extends Error {
102
102
  };
103
103
  var T = (e6, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
104
104
  var E = (e6) => e6?.method && [`post`, `put`, `patch`].includes(e6.method.toLocaleLowerCase()) && e6.body ? { "Content-Type": `application/json` } : {};
105
- var D = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
106
- var ee = (e6) => e6.__type === `host`;
105
+ var ee = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
106
+ var D = (e6) => e6.__type === `host`;
107
107
  function te(e6, t2) {
108
108
  return e6.create(t2);
109
109
  }
@@ -479,7 +479,7 @@ function He(e6) {
479
479
  }, p2 = (t3, n3) => {
480
480
  if (Le(t3)) return d2(t3);
481
481
  if (Be(t3)) return l2(t3);
482
- if (ee(t3) && e6.host) return te(t3, e6.host);
482
+ if (D(t3) && e6.host) return te(t3, e6.host);
483
483
  if (typeof t3 == `function`) {
484
484
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
485
485
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e6.useCDN === void 0 ? i2().shouldUseCDN : e6.useCDN;
@@ -488,7 +488,7 @@ function He(e6) {
488
488
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
489
489
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e6.host?.name, o3, e6.validateRequestSchema);
490
490
  }
491
- return D(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[S])])) : t3;
491
+ return ee(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[S])])) : t3;
492
492
  }, m2 = (e7) => {
493
493
  for (let n3 in e7) t2[n3] = e7[n3];
494
494
  };
@@ -2159,8 +2159,8 @@ var io = class e3 extends Xa {
2159
2159
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
2160
2160
  let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !G(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
2161
2161
  y2 && !m2 && x2 && (E2 = T2);
2162
- let D2 = ro(E2), ee2 = Object.prototype.toString.apply(E2);
2163
- if (y2 && E2 && D2 && !_2.includes(ee2) && !(G(v2) && Array.isArray(E2))) {
2162
+ let ee2 = ro(E2), D2 = Object.prototype.toString.apply(E2);
2163
+ if (y2 && E2 && ee2 && !_2.includes(D2) && !(G(v2) && Array.isArray(E2))) {
2164
2164
  if (!i2.returnObjects && !this.options.returnObjects) {
2165
2165
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
2166
2166
  let e6 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, E2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -4172,23 +4172,37 @@ var pl = (e6, t2) => {
4172
4172
  let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: fl(r2, `full`, t2) });
4173
4173
  return { timeToRead: (t3) => e6(Z.timeToRead, { count: t3 }), viewCount: n2(Z.viewCount), commentCount: n2(Z.commentCount), likeCount: n2(Z.likeCount), noPostsEmptyState: () => ({ title: e6(Z.noPostsTitle), description: e6(Z.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Z.noRelatedPostsTitle), description: e6(Z.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Z.canvasPostTitle), authorName: () => e6(Z.canvasAuthorName), excerpt: () => e6(Z.canvasExcerpt), content: () => e6(Z.canvasContent), category: () => e6(Z.canvasCategory), categoryNumbered: (t3) => e6(Z.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Z.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Z.canvasCoverAlt), authorPhotoAlt: () => e6(Z.canvasAuthorPhotoAlt) } };
4174
4174
  };
4175
- var ml = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
4176
- var hl = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
4177
- function gl(e6) {
4175
+ var ml = (e6) => M(P(e6, [{ transformFn: U, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: H, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: Ki, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
4176
+ var hl = `https://blog.wixsite.com/blog-demo-posts`;
4177
+ var gl = I((e6) => async (t2) => {
4178
+ let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${jt(t2)}`);
4179
+ if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
4180
+ return ml(await n2.json()).filter((e7) => !e7.url?.startsWith(hl));
4181
+ });
4182
+ var _l = async (e6) => {
4183
+ try {
4184
+ return await gl(e6);
4185
+ } catch (e7) {
4186
+ return console.info(`[blog demo posts]`, `read failed`, e7), [];
4187
+ }
4188
+ };
4189
+ var vl = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
4190
+ var yl = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
4191
+ function bl(e6) {
4178
4192
  return Mt(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
4179
4193
  }
4180
- var _l = `@wix/auto_sdk_members_members`;
4181
- function vl(e6) {
4194
+ var xl = `@wix/auto_sdk_members_members`;
4195
+ function Sl(e6) {
4182
4196
  function t2({ host: t3 }) {
4183
- let n2 = P(e6, [{ transformFn: an, paths: hl }]);
4184
- return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: _l, migrationOptions: { optInTransformResponse: true }, url: gl({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => P(e7, [{ transformFn: N, paths: ml }]) };
4197
+ let n2 = P(e6, [{ transformFn: an, paths: yl }]);
4198
+ return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: xl, migrationOptions: { optInTransformResponse: true }, url: bl({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => P(e7, [{ transformFn: N, paths: vl }]) };
4185
4199
  }
4186
4200
  return t2;
4187
4201
  }
4188
- function yl(e6) {
4202
+ function Cl(e6) {
4189
4203
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
4190
4204
  return ri({ func: async (r2) => {
4191
- let i2 = vl({ ...r2, ...e6 ?? {} });
4205
+ let i2 = Sl({ ...r2, ...e6 ?? {} });
4192
4206
  n2?.onSiteCall?.();
4193
4207
  try {
4194
4208
  let e7 = await t2.request(i2);
@@ -4206,8 +4220,8 @@ function yl(e6) {
4206
4220
  throw F(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
4207
4221
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
4208
4222
  }
4209
- async function bl(e6, t2) {
4210
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = vl(j({ query: e6, ...t2 }));
4223
+ async function wl(e6, t2) {
4224
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Sl(j({ query: e6, ...t2 }));
4211
4225
  r2?.onSiteCall?.();
4212
4226
  try {
4213
4227
  let e7 = await n2.request(i2);
@@ -4217,25 +4231,25 @@ async function bl(e6, t2) {
4217
4231
  throw r2?.onError?.(e7), t3;
4218
4232
  }
4219
4233
  }
4220
- function xl(e6) {
4221
- return (t2) => yl(t2, { httpClient: e6 });
4234
+ function Tl(e6) {
4235
+ return (t2) => Cl(t2, { httpClient: e6 });
4222
4236
  }
4223
- function Sl(e6) {
4224
- return (t2, n2) => bl(t2, n2, { httpClient: e6 });
4237
+ function El(e6) {
4238
+ return (t2, n2) => wl(t2, n2, { httpClient: e6 });
4225
4239
  }
4226
- function Cl(e6) {
4227
- let t2 = pi({ builderQueryFunction: (t3) => xl(e6)(t3), typedQueryFunction: (t3, n3) => Sl(e6)(t3, n3), hasOptionsParameter: true });
4240
+ function Dl(e6) {
4241
+ let t2 = pi({ builderQueryFunction: (t3) => Tl(e6)(t3), typedQueryFunction: (t3, n3) => El(e6)(t3, n3), hasOptionsParameter: true });
4228
4242
  function n2(e7, n3) {
4229
4243
  return t2(...arguments);
4230
4244
  }
4231
4245
  return n2;
4232
4246
  }
4233
- var wl = I(Cl);
4234
- var Tl = async (e6) => {
4247
+ var Ol = I(Dl);
4248
+ var kl = async (e6) => {
4235
4249
  let t2 = [...new Set(e6.filter((e7) => !!e7))];
4236
4250
  if (t2.length === 0) return {};
4237
4251
  try {
4238
- let { items: e7 } = await wl({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
4252
+ let { items: e7 } = await Ol({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
4239
4253
  return Object.fromEntries(e7.flatMap((e8) => {
4240
4254
  let { _id: t3 } = e8;
4241
4255
  return t3 ? [[t3, e8]] : [];
@@ -4244,32 +4258,32 @@ var Tl = async (e6) => {
4244
4258
  return {};
4245
4259
  }
4246
4260
  };
4247
- var El = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4248
- var Dl = [{ path: `posts.richContentCompressed` }];
4249
- var Ol = [{ 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` }];
4250
- var kl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4251
- function Al(e6) {
4261
+ var Al = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4262
+ var jl = [{ path: `posts.richContentCompressed` }];
4263
+ var Ml = [{ 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` }];
4264
+ var Nl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4265
+ function Pl(e6) {
4252
4266
  return Mt(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` }] } }));
4253
4267
  }
4254
- var jl = `@wix/auto_sdk_blog_posts`;
4255
- function Ml(e6) {
4268
+ var Fl = `@wix/auto_sdk_blog_posts`;
4269
+ function Il(e6) {
4256
4270
  function t2({ host: t3 }) {
4257
- let n2 = P(e6, [{ transformFn: an, paths: kl }]);
4258
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: jl, migrationOptions: { optInTransformResponse: true }, url: Al({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => P(e7, [{ transformFn: N, paths: El }, { transformFn: on, paths: Dl }, { transformFn: L, paths: Ol }]) };
4271
+ let n2 = P(e6, [{ transformFn: an, paths: Nl }]);
4272
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Fl, migrationOptions: { optInTransformResponse: true }, url: Pl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => P(e7, [{ transformFn: N, paths: Al }, { transformFn: on, paths: jl }, { transformFn: L, paths: Ml }]) };
4259
4273
  }
4260
4274
  return t2;
4261
4275
  }
4262
- function Nl() {
4263
- let e6 = Ml({});
4276
+ function Ll() {
4277
+ let e6 = Il({});
4264
4278
  return { getUrl: (t2) => {
4265
4279
  let { url: n2 } = e6(t2);
4266
4280
  return n2;
4267
4281
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
4268
4282
  }
4269
- var Pl = Nl();
4270
- var Fl = (e6) => (t2) => ({ method: `POST`, url: Pl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4271
- var Il = I((e6) => async (t2) => {
4272
- let { data: n2 } = await e6.request(Fl(t2)), r2 = {};
4283
+ var Rl = Ll();
4284
+ var zl = (e6) => (t2) => ({ method: `POST`, url: Rl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4285
+ var Bl = I((e6) => async (t2) => {
4286
+ let { data: n2 } = await e6.request(zl(t2)), r2 = {};
4273
4287
  for (let e7 of n2.posts ?? []) {
4274
4288
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
4275
4289
  if (!t3 || !n3?.length) continue;
@@ -4278,77 +4292,77 @@ var Il = I((e6) => async (t2) => {
4278
4292
  }
4279
4293
  return r2;
4280
4294
  });
4281
- var Ll = async (e6) => {
4295
+ var Vl = async (e6) => {
4282
4296
  if (e6.length === 0) return {};
4283
4297
  try {
4284
- return await Il(e6);
4298
+ return await Bl(e6);
4285
4299
  } catch {
4286
4300
  return {};
4287
4301
  }
4288
4302
  };
4289
- var Rl = `TRANSLATIONS`;
4303
+ var Hl = `TRANSLATIONS`;
4290
4304
  W.RICH_CONTENT, W.SEO, W.URL, W.CONTENT_TEXT, W.RICH_CONTENT, W.URL;
4291
- var zl = [W.URL, W.METRICS];
4292
- var Bl = (e6) => {
4305
+ var Ul = [W.URL, W.METRICS];
4306
+ var Wl = (e6) => {
4293
4307
  let { status: t2, details: n2 } = e6 ?? {};
4294
4308
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
4295
4309
  };
4296
- var Vl = (e6) => Tl(e6.map(({ memberId: e7 }) => e7));
4297
- var Hl = (e6) => Ll(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4298
- var Ul = 100;
4299
- var Wl = async () => {
4310
+ var Gl = (e6) => kl(e6.map(({ memberId: e7 }) => e7));
4311
+ var Kl = (e6) => Vl(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4312
+ var ql = 100;
4313
+ var Jl = async () => {
4300
4314
  try {
4301
- let { categories: e6 } = await Wi({ paging: { limit: Ul } });
4315
+ let { categories: e6 } = await Wi({ paging: { limit: ql } });
4302
4316
  return e6 ?? [];
4303
4317
  } catch {
4304
4318
  return [];
4305
4319
  }
4306
4320
  };
4307
- var Gl = (e6, t2) => {
4321
+ var Yl = (e6, t2) => {
4308
4322
  let { categoryIds: n2 } = e6 ?? {};
4309
4323
  if (!n2?.length) return [];
4310
4324
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4311
4325
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4312
4326
  };
4313
- var Kl = (e6, t2) => {
4327
+ var Xl = (e6, t2) => {
4314
4328
  let n2 = {};
4315
- for (let r2 of e6) for (let { _id: e7, label: i2 } of Gl(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
4329
+ for (let r2 of e6) for (let { _id: e7, label: i2 } of Yl(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
4316
4330
  return n2;
4317
4331
  };
4318
- var ql = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
4319
- let { items: r2 } = await fa({ fieldsets: zl }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
4332
+ var Zl = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
4333
+ let { items: r2 } = await fa({ fieldsets: Ul }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
4320
4334
  let { _id: t3 } = e7;
4321
4335
  return [t3, e7];
4322
4336
  }));
4323
4337
  return e6.filter((e7) => e7 !== t2).map((e7) => i2.get(e7)).filter((e7) => e7 !== void 0).slice(0, n2);
4324
4338
  };
4325
- var Jl = () => ({ posts: [], hasMore: false, authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} });
4326
- var Yl = /* @__PURE__ */ new Map();
4327
- var Xl = /* @__PURE__ */ new Map();
4328
- var Zl = (e6, t2, n2) => {
4339
+ var Ql = () => ({ posts: [], hasMore: false, authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} });
4340
+ var $l = /* @__PURE__ */ new Map();
4341
+ var eu = /* @__PURE__ */ new Map();
4342
+ var tu = (e6, t2, n2) => {
4329
4343
  let r2 = e6.get(t2);
4330
4344
  if (r2) return r2;
4331
4345
  let i2 = n2().then((e7) => e7 ?? null).catch((n3) => {
4332
- if (e6.delete(t2), Bl(n3)) return null;
4346
+ if (e6.delete(t2), Wl(n3)) return null;
4333
4347
  throw n3;
4334
4348
  });
4335
4349
  return e6.set(t2, i2), i2;
4336
4350
  };
4337
- var Ql = (e6, t2) => Zl(Yl, `${e6}|${t2 ?? ``}`, async () => {
4338
- let { category: n2 } = await Ui(e6, { fieldsets: [Rl], ...t2 && { language: t2 } });
4351
+ var nu = (e6, t2) => tu($l, `${e6}|${t2 ?? ``}`, async () => {
4352
+ let { category: n2 } = await Ui(e6, { fieldsets: [Hl], ...t2 && { language: t2 } });
4339
4353
  return n2;
4340
4354
  });
4341
- var $l = (e6) => Zl(Yl, `${e6}|*`, async () => {
4355
+ var ru = (e6) => tu($l, `${e6}|*`, async () => {
4342
4356
  let { items: t2 } = await Gi().eq(`slug`, e6).limit(1).find();
4343
4357
  return t2[0];
4344
4358
  });
4345
- var eu = (e6, t2) => Zl(Xl, `${e6}|${t2 ?? ``}`, async () => {
4359
+ var iu = (e6, t2) => tu(eu, `${e6}|${t2 ?? ``}`, async () => {
4346
4360
  let { tag: n2 } = await ba(e6, { ...t2 && { language: t2 } });
4347
4361
  return n2;
4348
4362
  });
4349
- var tu = /* @__PURE__ */ new Map();
4350
- var nu = (e6, t2) => {
4351
- let n2 = `${e6}|${t2 ?? ``}`, r2 = tu.get(n2);
4363
+ var au = /* @__PURE__ */ new Map();
4364
+ var ou = (e6, t2) => {
4365
+ let n2 = `${e6}|${t2 ?? ``}`, r2 = au.get(n2);
4352
4366
  if (r2) return r2;
4353
4367
  let i2 = Hi(e6).then(async ({ category: e7 }) => {
4354
4368
  let { _id: n3, translationId: r3, language: i3 } = e7 ?? {};
@@ -4357,12 +4371,12 @@ var nu = (e6, t2) => {
4357
4371
  let { items: a2 } = await Gi().eq(`translationId`, r3).eq(`language`, t2).limit(1).find();
4358
4372
  return a2[0]?._id ?? null;
4359
4373
  }).catch((e7) => {
4360
- if (Bl(e7)) return null;
4361
- throw tu.delete(n2), e7;
4374
+ if (Wl(e7)) return null;
4375
+ throw au.delete(n2), e7;
4362
4376
  });
4363
- return tu.set(n2, i2), i2;
4377
+ return au.set(n2, i2), i2;
4364
4378
  };
4365
- var ru = async (e6, t2) => {
4379
+ var su = async (e6, t2) => {
4366
4380
  try {
4367
4381
  let { items: n2 } = await Gi().eq(`translationId`, e6).eq(`language`, t2).limit(1).find();
4368
4382
  return n2[0]?.slug ?? void 0;
@@ -4370,42 +4384,43 @@ var ru = async (e6, t2) => {
4370
4384
  return;
4371
4385
  }
4372
4386
  };
4373
- var iu = [`newest`, `oldest`, `titleAsc`, `titleDesc`, `mostViewed`, `mostLiked`];
4374
- var au = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
4375
- var ou = async ({ offset: e6, limit: t2, language: n2, categoryId: r2, categorySlug: i2, tagSlug: a2, postIds: o2, sortOrder: s2, featuredOnly: c2, propagateErrors: l2 = false }) => {
4376
- let u2 = Wl();
4387
+ var cu = [`newest`, `oldest`, `titleAsc`, `titleDesc`, `mostViewed`, `mostLiked`];
4388
+ var lu = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
4389
+ var uu = async (e6, { limit: t2, offset: n2 = 0, language: r2, sortOrder: i2 }) => e6.posts.length > 0 ? e6 : { ...e6, demoPosts: await _l({ paging: { limit: t2, offset: n2 }, fieldsets: Ul, ...r2 && { language: r2 }, ...i2 && { sort: lu[i2] } }) };
4390
+ var du = async ({ offset: e6, limit: t2, language: n2, categoryId: r2, categorySlug: i2, tagSlug: a2, postIds: o2, sortOrder: s2, featuredOnly: c2, propagateErrors: l2 = false }) => {
4391
+ let u2 = Jl();
4377
4392
  try {
4378
4393
  let l3, d2, f2, p2, m2;
4379
4394
  if (i2) {
4380
- let e7 = await Ql(i2, n2);
4395
+ let e7 = await nu(i2, n2);
4381
4396
  if (!e7?._id) {
4382
- let e8 = n2 ? await $l(i2) : null;
4383
- return { ...Jl(), ...e8?.translationId && e8.language !== n2 && { mismatchedCategory: e8 } };
4397
+ let e8 = n2 ? await ru(i2) : null;
4398
+ return { ...Ql(), ...e8?.translationId && e8.language !== n2 && { mismatchedCategory: e8 } };
4384
4399
  }
4385
4400
  f2 = e7, l3 = [e7._id];
4386
4401
  } else if (a2) {
4387
- let e7 = await eu(a2, n2);
4388
- if (!e7?._id) return Jl();
4402
+ let e7 = await iu(a2, n2);
4403
+ if (!e7?._id) return Ql();
4389
4404
  p2 = e7, d2 = [e7._id];
4390
- } else if (o2?.length) m2 = await ql({ ids: o2, limit: o2.length });
4405
+ } else if (o2?.length) m2 = await Zl({ ids: o2, limit: o2.length });
4391
4406
  else if (r2) {
4392
- let e7 = await nu(r2, n2);
4393
- if (!e7) return Jl();
4407
+ let e7 = await ou(r2, n2);
4408
+ if (!e7) return Ql();
4394
4409
  l3 = [e7];
4395
4410
  }
4396
- let h2 = s2 ? au[s2] : void 0, g2 = m2 ?? (await da({ paging: { limit: t2, offset: e6 }, fieldsets: zl, ...n2 && { language: n2 }, ...l3 && { categoryIds: l3 }, ...d2 && { tagIds: d2 }, ...h2 && h2 !== `FEED` && { sort: h2 }, ...c2 && { featured: true } })).posts ?? [], [_2, v2, y2] = await Promise.all([Vl(g2), u2, Hl(g2)]);
4397
- return { posts: g2, hasMore: !m2 && g2.length === t2, authorsByMemberId: _2, categoryLabelsById: Kl(g2, v2), videoSourcesByPostId: y2, ...f2 && { filterCategory: f2 }, ...p2 && { filterTag: p2 } };
4411
+ let h2 = s2 ? lu[s2] : void 0, g2 = m2 ?? (await da({ paging: { limit: t2, offset: e6 }, fieldsets: Ul, ...n2 && { language: n2 }, ...l3 && { categoryIds: l3 }, ...d2 && { tagIds: d2 }, ...h2 && h2 !== `FEED` && { sort: h2 }, ...c2 && { featured: true } })).posts ?? [], [_2, v2, y2] = await Promise.all([Gl(g2), u2, Kl(g2)]);
4412
+ return { posts: g2, hasMore: !m2 && g2.length === t2, authorsByMemberId: _2, categoryLabelsById: Xl(g2, v2), videoSourcesByPostId: y2, ...f2 && { filterCategory: f2 }, ...p2 && { filterTag: p2 } };
4398
4413
  } catch (e7) {
4399
4414
  if (l2) throw e7;
4400
- return Jl();
4415
+ return Ql();
4401
4416
  }
4402
4417
  };
4403
- var su = `categoryId`;
4404
- var cu = (e6) => lu(e6?.[su]);
4405
- var lu = (e6) => {
4418
+ var fu = `categoryId`;
4419
+ var pu = (e6) => mu(e6?.[fu]);
4420
+ var mu = (e6) => {
4406
4421
  if (e6 && typeof e6 == `object`) return (typeof e6.$eq == `string` ? e6.$eq : Array.isArray(e6.$in) ? e6.$in.find((e7) => typeof e7 == `string` && e7.trim() !== ``) : void 0)?.trim() || void 0;
4407
4422
  };
4408
- var uu = class extends import_react.Component {
4423
+ var hu = class extends import_react.Component {
4409
4424
  state = { error: void 0 };
4410
4425
  static getDerivedStateFromError(e6) {
4411
4426
  return { error: e6 ?? Error(`Unknown render error`) };
@@ -4419,102 +4434,102 @@ var uu = class extends import_react.Component {
4419
4434
  return this.props.fallback;
4420
4435
  }
4421
4436
  };
4422
- var du = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4423
- var fu = `postId`;
4424
- var pu = (e6) => {
4425
- let t2 = e6?.[fu];
4437
+ var gu = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4438
+ var _u = `postId`;
4439
+ var vu = (e6) => {
4440
+ let t2 = e6?.[_u];
4426
4441
  if (!t2 || typeof t2 != `object`) return [];
4427
4442
  let n2 = Array.isArray(t2.$in) ? t2.$in : [t2.$eq];
4428
4443
  return [...new Set(n2.flatMap((e7) => typeof e7 == `string` && e7.trim() !== `` ? [e7.trim()] : []))];
4429
4444
  };
4430
- var mu = 6e4;
4431
- var hu = mu * 60;
4432
- var gu = hu * 24;
4433
- var _u = gu * 7;
4434
- var vu = (e6) => e6 < mu ? [`second`, e6 / 1e3] : e6 < hu ? [`minute`, e6 / mu] : e6 < gu ? [`hour`, e6 / hu] : [`day`, e6 / gu];
4435
- var yu = (e6, t2, n2 = Date.now()) => {
4445
+ var yu = 6e4;
4446
+ var bu = yu * 60;
4447
+ var xu = bu * 24;
4448
+ var Su = xu * 7;
4449
+ var Cu = (e6) => e6 < yu ? [`second`, e6 / 1e3] : e6 < bu ? [`minute`, e6 / yu] : e6 < xu ? [`hour`, e6 / bu] : [`day`, e6 / xu];
4450
+ var wu = (e6, t2, n2 = Date.now()) => {
4436
4451
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4437
- if (i2 >= 0 && i2 < _u) {
4438
- let [e7, n3] = vu(i2);
4452
+ if (i2 >= 0 && i2 < Su) {
4453
+ let [e7, n3] = Cu(i2);
4439
4454
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4440
4455
  }
4441
4456
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4442
4457
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4443
4458
  };
4444
- var bu = `https://static.wixstatic.com/media/`;
4445
- var xu = `wix:video://`;
4446
- var Su = (e6) => {
4459
+ var Tu = `https://static.wixstatic.com/media/`;
4460
+ var Eu = `wix:video://`;
4461
+ var Du = (e6) => {
4447
4462
  if (!e6) return;
4448
4463
  let t2 = Number.parseInt(e6, 10);
4449
4464
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4450
4465
  };
4451
- var Cu = (e6) => {
4452
- if (!e6.startsWith(xu)) return;
4466
+ var Ou = (e6) => {
4467
+ if (!e6.startsWith(Eu)) return;
4453
4468
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4454
4469
  if (!r2) return;
4455
4470
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4456
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${bu}${a2}` : void 0, posterWidth: Su(i2.get(`posterWidth`)), posterHeight: Su(i2.get(`posterHeight`)) };
4471
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Tu}${a2}` : void 0, posterWidth: Du(i2.get(`posterWidth`)), posterHeight: Du(i2.get(`posterHeight`)) };
4457
4472
  };
4458
- var wu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4459
- var Tu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4460
- var Eu = (e6, t2) => {
4473
+ var ku = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4474
+ var Au = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4475
+ var ju = (e6, t2) => {
4461
4476
  for (let n2 of e6) {
4462
4477
  let e7 = n2.exec(t2);
4463
4478
  if (e7) return e7[1];
4464
4479
  }
4465
4480
  };
4466
- var Du = (e6) => {
4467
- let t2 = Eu(wu, e6);
4481
+ var Mu = (e6) => {
4482
+ let t2 = ju(ku, e6);
4468
4483
  if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4469
- let n2 = Eu(Tu, e6);
4484
+ let n2 = ju(Au, e6);
4470
4485
  return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4471
4486
  };
4472
- var Ou = (e6, t2 = []) => {
4487
+ var Nu = (e6, t2 = []) => {
4473
4488
  let n2 = e6?.media;
4474
4489
  if (!n2 || n2.displayed === false) return;
4475
4490
  let r2 = tr(e6);
4476
4491
  if (r2) return { kind: `image`, image: r2 };
4477
- let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Cu(n2.wixMedia.videoV2) : void 0;
4492
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Ou(n2.wixMedia.videoV2) : void 0;
4478
4493
  if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4479
4494
  let o2 = n2.embedMedia?.video?.url;
4480
4495
  if (o2) {
4481
4496
  let { thumbnail: e7 } = n2.embedMedia ?? {};
4482
- return { kind: `embed`, videoUrl: o2, ...Du(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4497
+ return { kind: `embed`, videoUrl: o2, ...Mu(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4483
4498
  }
4484
4499
  };
4485
- var ku = (e6) => {
4500
+ var Pu = (e6) => {
4486
4501
  let t2 = tr(e6), n2 = e6?.media?.wixMedia?.videoV2;
4487
4502
  if (t2 || !n2) return t2;
4488
- let r2 = Cu(n2), i2 = er(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4503
+ let r2 = Ou(n2), i2 = er(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4489
4504
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4490
4505
  };
4491
- var Au = `2026-05-12T12:00:00.000Z`;
4492
- var ju = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4493
- var Mu = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
4494
- var Nu = (e6) => {
4506
+ var Fu = `2026-05-12T12:00:00.000Z`;
4507
+ var Iu = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4508
+ var Lu = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
4509
+ var Ru = (e6) => {
4495
4510
  if (!e6) return;
4496
4511
  let t2 = e6 instanceof Date ? e6 : new Date(e6);
4497
4512
  return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4498
4513
  };
4499
- var Pu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4500
- var Fu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4501
- var Q = (e6) => ({ text: e6, html: `<p>${Fu(e6)}</p>`, linkList: [] });
4514
+ var zu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4515
+ var Bu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4516
+ var Q = (e6) => ({ text: e6, html: `<p>${Bu(e6)}</p>`, linkList: [] });
4502
4517
  var $ = { minutesToRead: 5, views: 120, comments: 4 };
4503
- var Iu = (e6) => {
4518
+ var Vu = (e6) => {
4504
4519
  let { metrics: t2 } = e6;
4505
4520
  return { views: typeof t2?.views == `number` ? t2.views : void 0, comments: typeof t2?.comments == `number` ? t2.comments : void 0 };
4506
4521
  };
4507
- var Lu = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4508
- var Ru = (e6, t2, n2, r2) => {
4522
+ var Hu = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4523
+ var Uu = (e6, t2, n2, r2) => {
4509
4524
  let i2 = e6.categoryIds?.map((e7) => t2[e7]).find(Boolean);
4510
4525
  return Q(i2 ?? (n2 ? r2.canvas.category() : ``));
4511
4526
  };
4512
- var zu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
4513
- let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Iu(e6);
4514
- return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: ku(e6), itemCoverMedia: Ou(e6, s2[l2 ?? ``] ?? []), itemLink: dr(e6, r2), itemPublishedDate: Q(yu(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Nu(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Pu(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: mr(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Lu(f2.views, $.views, o2, t2.viewCount), commentCount: Lu(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: Ru(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
4527
+ var Wu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
4528
+ let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Vu(e6);
4529
+ return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Pu(e6), itemCoverMedia: Nu(e6, s2[l2 ?? ``] ?? []), itemLink: dr(e6, r2), itemPublishedDate: Q(wu(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Ru(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: zu(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: mr(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Hu(f2.views, $.views, o2, t2.viewCount), commentCount: Hu(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: Uu(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
4515
4530
  };
4516
- var Bu = (e6, t2, n2 = []) => {
4517
- let r2 = Ou(e6, n2);
4531
+ var Gu = (e6, t2, n2 = []) => {
4532
+ let r2 = Nu(e6, n2);
4518
4533
  if (!r2) return;
4519
4534
  let i2 = dr(e6, t2), a2 = { slug: e6.slug ?? void 0, title: e6.title ?? ``, description: e6.excerpt ?? ``, ...i2 ? { action: { link: i2 } } : {} };
4520
4535
  if (r2.kind === `image`) return r2.image.url ? { ...a2, type: `image`, src: r2.image.url, width: r2.image.width, height: r2.image.height, parameters: { alt: r2.image.alt } } : void 0;
@@ -4524,78 +4539,78 @@ var Bu = (e6, t2, n2 = []) => {
4524
4539
  }
4525
4540
  if (r2.thumbnailUrl) return { ...a2, type: `image`, src: r2.thumbnailUrl, width: r2.thumbnailWidth, height: r2.thumbnailHeight, parameters: { alt: r2.altText } };
4526
4541
  };
4527
- var Vu = 3;
4528
- var Hu = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
4529
- var Uu = (e6, t2) => {
4530
- let { uri: n2, width: r2, height: i2 } = Hu[e6 % Hu.length];
4531
- return { uri: n2, url: Mu(n2), name: n2, width: r2, height: i2, alt: t2 };
4542
+ var Ku = 3;
4543
+ var qu = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
4544
+ var Ju = (e6, t2) => {
4545
+ let { uri: n2, width: r2, height: i2 } = qu[e6 % qu.length];
4546
+ return { uri: n2, url: Lu(n2), name: n2, width: r2, height: i2, alt: t2 };
4532
4547
  };
4533
- var Wu = (e6, t2) => {
4534
- let { uri: n2 } = Hu[(e6 + 1) % Hu.length];
4535
- return { uri: n2, url: Mu(n2), name: n2, width: 100, height: 100, alt: t2 };
4548
+ var Yu = (e6, t2) => {
4549
+ let { uri: n2 } = qu[(e6 + 1) % qu.length];
4550
+ return { uri: n2, url: Lu(n2), name: n2, width: 100, height: 100, alt: t2 };
4536
4551
  };
4537
- var Gu = (e6) => Array.from({ length: Vu }, (t2, n2) => {
4538
- let r2 = Uu(n2, e6.canvas.coverAlt());
4552
+ var Xu = (e6) => Array.from({ length: Ku }, (t2, n2) => {
4553
+ let r2 = Ju(n2, e6.canvas.coverAlt());
4539
4554
  return { type: `image`, src: r2.url ?? ``, title: e6.canvas.postTitle(), description: e6.canvas.excerpt(), width: r2.width, height: r2.height, parameters: { alt: r2.alt } };
4540
4555
  });
4541
- var Ku = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: Vu }, (i2, a2) => {
4542
- let o2 = e6.canvas.postTitle(), s2 = Uu(a2, e6.canvas.coverAlt());
4543
- return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: ju(n2), itemPublishedDate: Q(yu(new Date(r2), t2, r2)), publishedDateValue: Au, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: Wu(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
4556
+ var Zu = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: Ku }, (i2, a2) => {
4557
+ let o2 = e6.canvas.postTitle(), s2 = Ju(a2, e6.canvas.coverAlt());
4558
+ return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: Iu(n2), itemPublishedDate: Q(wu(new Date(r2), t2, r2)), publishedDateValue: Fu, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: Yu(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
4544
4559
  });
4545
- var qu = (0, import_react.createContext)(void 0);
4546
- function Ju() {
4547
- let e6 = (0, import_react.useContext)(qu);
4560
+ var Qu = (0, import_react.createContext)(void 0);
4561
+ function $u() {
4562
+ let e6 = (0, import_react.useContext)(Qu);
4548
4563
  if (!e6) throw Error(`useBlogFeedContext must be used within a PostListProvider`);
4549
4564
  return e6;
4550
4565
  }
4551
- var Yu = 6;
4552
- var Xu = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 100) : Yu;
4553
- var Zu = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.floor(e6) : 0;
4554
- var Qu = (e6) => iu.includes(e6 ?? ``) ? e6 : `newest`;
4555
- var $u = { postsList: [], postGalleryItems: [], emptyState: null, hasError: false, hasMorePosts: false, isLoadingPosts: true, loadMorePosts: async () => {
4566
+ var ed = 6;
4567
+ var td = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 100) : ed;
4568
+ var nd = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.floor(e6) : 0;
4569
+ var rd = (e6) => cu.includes(e6 ?? ``) ? e6 : `newest`;
4570
+ var id = { postsList: [], postGalleryItems: [], emptyState: null, hasError: false, hasMorePosts: false, isLoadingPosts: true, loadMorePosts: async () => {
4556
4571
  }, filteredView: { kind: `pending` } };
4557
- var ed = { ...$u, isLoadingPosts: false, hasError: true };
4558
- var td = (e6, t2) => {
4572
+ var ad = { ...id, isLoadingPosts: false, hasError: true };
4573
+ var od = (e6, t2) => {
4559
4574
  if (e6.kind === `category` && t2.filterCategory) {
4560
4575
  let { label: e7, description: n2, coverImage: r2 } = t2.filterCategory, i2 = e7 ?? ``;
4561
4576
  return { kind: `category`, title: i2, description: n2 ?? ``, coverImage: er(r2, i2) };
4562
4577
  }
4563
4578
  return e6.kind === `tag` && t2.filterTag ? { kind: `tag`, title: t2.filterTag.label ?? `` } : { kind: `all` };
4564
4579
  };
4565
- var nd = (e6) => ({ page: e6, hasError: false });
4566
- var rd = () => ({ page: { ...Jl(), fetchedAt: Date.now() }, hasError: true });
4567
- var id = (e6) => {
4580
+ var sd = (e6) => ({ page: e6, hasError: false });
4581
+ var cd = () => ({ page: { ...Ql(), fetchedAt: Date.now() }, hasError: true });
4582
+ var ld = (e6) => {
4568
4583
  throw e6;
4569
4584
  };
4570
- var ad = (e6, t2) => Ln(e6, nd, t2 ? id : rd);
4571
- var od = ({ children: e6, firstPagePromise: t2, monitoringClient: n2, language: r2, route: i2, categoryId: o2, categorySlug: s2, tagSlug: d2, postIds: f2, pageSize: m2, postOffset: h2, sortOrder: g2, featuredOnly: _2 }) => {
4585
+ var ud = (e6, t2) => Ln(e6, sd, t2 ? ld : cd);
4586
+ var dd = ({ children: e6, firstPagePromise: t2, monitoringClient: n2, language: r2, route: i2, categoryId: o2, categorySlug: s2, tagSlug: d2, postIds: f2, pageSize: m2, postOffset: h2, sortOrder: g2, featuredOnly: _2 }) => {
4572
4587
  let { page: v2, hasError: y2 } = Fn(t2), b2 = Ar(v2.fetchedAt), x2 = Jr(), S2 = Pr();
4573
- Or(i2, v2, S2, n2), Ca(i2.kind === `category` ? v2.mismatchedCategory : void 0, r2, ru);
4574
- let { t: C2 } = Pc(), w2 = Vr(), T2 = (0, import_react.useMemo)(() => pl(C2, w2), [C2, w2]), [E2, D2] = (0, import_react.useState)(v2.posts), [ee2, te2] = (0, import_react.useState)(v2.authorsByMemberId), [ne2, re2] = (0, import_react.useState)(v2.categoryLabelsById), [ie2, ae2] = (0, import_react.useState)(v2.videoSourcesByPostId), [oe2, se2] = (0, import_react.useState)(v2.hasMore), [ce2, le2] = (0, import_react.useState)(false), [O2, ue2] = (0, import_react.useState)(y2), de2 = (0, import_react.useRef)(h2 + v2.posts.length), fe2 = (0, import_react.useRef)(v2.hasMore), k2 = (0, import_react.useRef)(null), pe2 = (0, import_react.useCallback)(async () => {
4588
+ Or(i2, v2, S2, n2), Ca(i2.kind === `category` ? v2.mismatchedCategory : void 0, r2, su);
4589
+ let { t: C2 } = Pc(), w2 = Vr(), T2 = (0, import_react.useMemo)(() => pl(C2, w2), [C2, w2]), [E2, ee2] = (0, import_react.useState)(v2.posts), [D2, te2] = (0, import_react.useState)(v2.authorsByMemberId), [ne2, re2] = (0, import_react.useState)(v2.categoryLabelsById), [ie2, ae2] = (0, import_react.useState)(v2.videoSourcesByPostId), [oe2, se2] = (0, import_react.useState)(v2.hasMore), [ce2, le2] = (0, import_react.useState)(false), [O2, ue2] = (0, import_react.useState)(y2), de2 = (0, import_react.useRef)(h2 + v2.posts.length), fe2 = (0, import_react.useRef)(v2.hasMore), k2 = (0, import_react.useRef)(null), pe2 = (0, import_react.useCallback)(async () => {
4575
4590
  if (k2.current) return k2.current;
4576
- if (fe2.current) return le2(true), k2.current = ou({ offset: de2.current, limit: m2, language: r2, categoryId: o2, ...s2 && { categorySlug: s2 }, ...d2 && { tagSlug: d2 }, ...f2 && { postIds: f2.split(`,`) }, sortOrder: g2, featuredOnly: _2, propagateErrors: true }).then((e7) => {
4577
- D2((t3) => [...t3, ...e7.posts]), te2((t3) => ({ ...t3, ...e7.authorsByMemberId })), re2((t3) => ({ ...t3, ...e7.categoryLabelsById })), ae2((t3) => ({ ...t3, ...e7.videoSourcesByPostId })), se2(e7.hasMore), fe2.current = e7.hasMore, de2.current += e7.posts.length, ue2(false);
4591
+ if (fe2.current) return le2(true), k2.current = du({ offset: de2.current, limit: m2, language: r2, categoryId: o2, ...s2 && { categorySlug: s2 }, ...d2 && { tagSlug: d2 }, ...f2 && { postIds: f2.split(`,`) }, sortOrder: g2, featuredOnly: _2, propagateErrors: true }).then((e7) => {
4592
+ ee2((t3) => [...t3, ...e7.posts]), te2((t3) => ({ ...t3, ...e7.authorsByMemberId })), re2((t3) => ({ ...t3, ...e7.categoryLabelsById })), ae2((t3) => ({ ...t3, ...e7.videoSourcesByPostId })), se2(e7.hasMore), fe2.current = e7.hasMore, de2.current += e7.posts.length, ue2(false);
4578
4593
  }).catch((e7) => {
4579
4594
  ue2(true), Tr(n2, e7, { feature: Sr.feed, action: `load-more-posts`, contexts: { feed: { offset: de2.current, pageSize: m2, categoryId: o2, categorySlug: s2, tagSlug: d2 } } });
4580
4595
  }).finally(() => {
4581
4596
  k2.current = null, le2(false);
4582
4597
  }), k2.current;
4583
4598
  }, [r2, o2, s2, d2, f2, m2, g2, _2, n2]), me2 = (0, import_react.useMemo)(() => {
4584
- let e7 = E2.map((e8) => zu(e8, T2, w2, S2, ee2, ne2, x2, ie2, b2)), t3 = E2.map((e8) => Bu(e8, S2, ie2[e8._id ?? ``] ?? [])).filter((e8) => e8 !== void 0), n3 = x2 && !_2 && !o2 && !f2 && !s2 && !d2;
4585
- return { postsList: e7.length === 0 && n3 ? Ku(T2, w2, S2, b2) : e7, postGalleryItems: t3.length === 0 && n3 ? Gu(T2) : t3, emptyState: e7.length === 0 && !O2 ? T2.noPostsEmptyState() : null, hasError: O2, hasMorePosts: oe2, isLoadingPosts: ce2, loadMorePosts: pe2, filteredView: td(i2, v2) };
4586
- }, [i2, v2, E2, ee2, ne2, ie2, T2, w2, S2, x2, b2, O2, _2, o2, f2, s2, d2, oe2, ce2, pe2]);
4587
- return Lr(Fr.feedProvider, O2 ? `error` : E2.length > 0 ? `data` : `empty`), (0, import_jsx_runtime.jsx)(qu.Provider, { value: me2, children: e6 });
4599
+ let e7 = x2 && !_2 && !o2 && !f2 && !s2 && !d2, t3 = E2.length === 0 && e7 ? v2.demoPosts ?? [] : E2, n3 = t3.map((e8) => Wu(e8, T2, w2, S2, D2, ne2, x2, ie2, b2)), r3 = t3.map((e8) => Gu(e8, S2, ie2[e8._id ?? ``] ?? [])).filter((e8) => e8 !== void 0);
4600
+ return { postsList: n3.length === 0 && e7 ? Zu(T2, w2, S2, b2) : n3, postGalleryItems: r3.length === 0 && e7 ? Xu(T2) : r3, emptyState: E2.length === 0 && !O2 ? T2.noPostsEmptyState() : null, hasError: O2, hasMorePosts: oe2, isLoadingPosts: ce2, loadMorePosts: pe2, filteredView: od(i2, v2) };
4601
+ }, [i2, v2, E2, D2, ne2, ie2, T2, w2, S2, x2, b2, O2, _2, o2, f2, s2, d2, oe2, ce2, pe2]);
4602
+ return Lr(Fr.feedProvider, O2 ? `error` : E2.length > 0 ? `data` : `empty`), (0, import_jsx_runtime.jsx)(Qu.Provider, { value: me2, children: e6 });
4588
4603
  };
4589
- var sd = (e6, t2, n2, r2, i2, a2, o2, s2, c2) => `blog-builder:feed:${e6 ?? ``}|${t2 ?? ``}|c:${n2 ?? ``}|t:${r2 ?? ``}|p:${i2}|${a2}|${o2}|${s2}|${+!!c2}`;
4590
- function cd({ children: e6, categoryPicker: n2, postsPicker: r2, pageSize: i2, postOffset: a2, sortOrder: o2, featuredOnly: s2, liveRefreshGeneration: l2 = 0 }) {
4591
- let u2 = Br(), d2 = jr(), f2 = Wn(), h2 = f2.kind === `category` ? f2.slug : void 0, g2 = f2.kind === `tag` ? f2.slug : void 0, _2 = h2 || g2 ? void 0 : cu(n2), v2 = h2 || g2 ? `` : pu(r2).join(`,`), y2 = Xu(i2), b2 = Zu(a2), x2 = Qu(o2), S2 = s2 === true, C2 = Ta(), w2 = (0, import_react.useMemo)(() => Cr(Nn), []), { i18n: T2, locale: E2 } = rl(dl), D2 = Nr(() => ({ language: u2, route: Vn(h2, g2), filterCategoryId: _2, filterPostIds: v2, categorySlug: h2, tagSlug: g2, pageSize: y2, postOffset: b2, sortOrder: x2, featuredOnly: S2, liveRefreshGeneration: l2, firstPagePromise: ad(Wc({ key: l2 > 0 ? null : sd(u2, _2, h2, g2, v2, y2, b2, x2, S2), warmupData: C2, fetchData: () => du(Er(w2, `feed-first-page`, { feature: Sr.feed, tags: { sortOrder: x2 } }, ou({ offset: b2, limit: y2, language: u2, categoryId: _2, ...h2 && { categorySlug: h2 }, ...g2 && { tagSlug: g2 }, ...v2 && { postIds: v2.split(`,`) }, sortOrder: x2, featuredOnly: S2, propagateErrors: true }))) }), d2) }), [u2, d2, _2, v2, h2, g2, y2, b2, x2, S2, l2, C2, w2]);
4592
- return (0, import_jsx_runtime.jsx)(Fc, { i18n: T2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(qu.Provider, { value: $u, children: e6 }), children: [(0, import_jsx_runtime.jsx)(nl, { i18n: T2, locale: E2 }), (0, import_jsx_runtime.jsx)(uu, { fallback: (0, import_jsx_runtime.jsx)(qu.Provider, { value: ed, children: e6 }), feature: Sr.feed, monitoringClient: w2, rethrow: d2, children: (0, import_jsx_runtime.jsx)(od, { firstPagePromise: D2.firstPagePromise, monitoringClient: w2, language: D2.language, route: D2.route, categoryId: D2.filterCategoryId, categorySlug: D2.categorySlug, tagSlug: D2.tagSlug, postIds: D2.filterPostIds, pageSize: D2.pageSize, postOffset: D2.postOffset, sortOrder: D2.sortOrder, featuredOnly: D2.featuredOnly, children: e6 }, `${sd(D2.language, D2.filterCategoryId, D2.categorySlug, D2.tagSlug, D2.filterPostIds, D2.pageSize, D2.postOffset, D2.sortOrder, D2.featuredOnly)}#${D2.liveRefreshGeneration}`) })] }) });
4604
+ var fd = (e6, t2, n2, r2, i2, a2, o2, s2, c2) => `blog-builder:feed:${e6 ?? ``}|${t2 ?? ``}|c:${n2 ?? ``}|t:${r2 ?? ``}|p:${i2}|${a2}|${o2}|${s2}|${+!!c2}`;
4605
+ function pd({ children: e6, categoryPicker: n2, postsPicker: r2, pageSize: i2, postOffset: a2, sortOrder: o2, featuredOnly: s2, liveRefreshGeneration: l2 = 0 }) {
4606
+ let u2 = Br(), d2 = jr(), f2 = Wn(), h2 = f2.kind === `category` ? f2.slug : void 0, g2 = f2.kind === `tag` ? f2.slug : void 0, _2 = h2 || g2 ? void 0 : pu(n2), v2 = h2 || g2 ? `` : vu(r2).join(`,`), y2 = td(i2), b2 = nd(a2), x2 = rd(o2), S2 = s2 === true, C2 = Jr() && !S2 && !_2 && !v2 && !h2 && !g2, w2 = Ta(), T2 = (0, import_react.useMemo)(() => Cr(Nn), []), { i18n: E2, locale: ee2 } = rl(dl), D2 = Nr(() => ({ language: u2, route: Vn(h2, g2), filterCategoryId: _2, filterPostIds: v2, categorySlug: h2, tagSlug: g2, pageSize: y2, postOffset: b2, sortOrder: x2, featuredOnly: S2, liveRefreshGeneration: l2, firstPagePromise: ud(Wc({ key: l2 > 0 ? null : fd(u2, _2, h2, g2, v2, y2, b2, x2, S2), warmupData: w2, fetchData: () => gu(Er(T2, `feed-first-page`, { feature: Sr.feed, tags: { sortOrder: x2 } }, du({ offset: b2, limit: y2, language: u2, categoryId: _2, ...h2 && { categorySlug: h2 }, ...g2 && { tagSlug: g2 }, ...v2 && { postIds: v2.split(`,`) }, sortOrder: x2, featuredOnly: S2, propagateErrors: true }).then((e7) => C2 ? uu(e7, { limit: y2, offset: b2, language: u2, sortOrder: x2 }) : e7))) }), d2) }), [u2, d2, C2, _2, v2, h2, g2, y2, b2, x2, S2, l2, w2, T2]);
4607
+ return (0, import_jsx_runtime.jsx)(Fc, { i18n: E2, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(Qu.Provider, { value: id, children: e6 }), children: [(0, import_jsx_runtime.jsx)(nl, { i18n: E2, locale: ee2 }), (0, import_jsx_runtime.jsx)(hu, { fallback: (0, import_jsx_runtime.jsx)(Qu.Provider, { value: ad, children: e6 }), feature: Sr.feed, monitoringClient: T2, rethrow: d2, children: (0, import_jsx_runtime.jsx)(dd, { firstPagePromise: D2.firstPagePromise, monitoringClient: T2, language: D2.language, route: D2.route, categoryId: D2.filterCategoryId, categorySlug: D2.categorySlug, tagSlug: D2.tagSlug, postIds: D2.filterPostIds, pageSize: D2.pageSize, postOffset: D2.postOffset, sortOrder: D2.sortOrder, featuredOnly: D2.featuredOnly, children: e6 }, `${fd(D2.language, D2.filterCategoryId, D2.categorySlug, D2.tagSlug, D2.filterPostIds, D2.pageSize, D2.postOffset, D2.sortOrder, D2.featuredOnly)}#${D2.liveRefreshGeneration}`) })] }) });
4593
4608
  }
4594
- var ld = En(`ada94d8c-4889-444e-b773-f1a875693fdb`);
4609
+ var md = En(`ada94d8c-4889-444e-b773-f1a875693fdb`);
4595
4610
  // Annotate the CommonJS export names for ESM import in node:
4596
4611
  0 && (module.exports = {
4597
4612
  PostListProvider,
4598
4613
  injectAccessTokenGetter,
4599
4614
  useBlogFeedContext
4600
4615
  });
4601
- //# sourceMappingURL=context-blog-feed-context-provider.js.map
4616
+ //# sourceMappingURL=context-blog-feed.js.map