@wix/stores 1.0.976 → 1.0.978

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 (31) hide show
  1. package/_sdk-exports/context-category-by-id/runtime.js +2 -2
  2. package/_sdk-exports/context-category-by-slug/runtime.js +2 -2
  3. package/_sdk-exports/context-category-info/runtime.js +2 -2
  4. package/_sdk-exports/context-product-by-id/runtime.js +2 -2
  5. package/_sdk-exports/context-product-by-slug/runtime.js +2 -2
  6. package/_sdk-exports/context-product-item/runtime.js +2 -2
  7. package/build/cjs/context-category-by-id.js +218 -207
  8. package/build/cjs/context-category-by-id.js.map +1 -1
  9. package/build/cjs/context-category-by-slug.js +1202 -1191
  10. package/build/cjs/context-category-by-slug.js.map +1 -1
  11. package/build/cjs/context-category-info.js +258 -248
  12. package/build/cjs/context-category-info.js.map +1 -1
  13. package/build/cjs/context-product-by-id.js +39 -31
  14. package/build/cjs/context-product-by-id.js.map +1 -1
  15. package/build/cjs/context-product-by-slug.js +48 -40
  16. package/build/cjs/context-product-by-slug.js.map +1 -1
  17. package/build/cjs/context-product-item.js +1042 -1034
  18. package/build/cjs/context-product-item.js.map +1 -1
  19. package/build/es/context-category-by-id.mjs +218 -207
  20. package/build/es/context-category-by-id.mjs.map +1 -1
  21. package/build/es/context-category-by-slug.mjs +1202 -1191
  22. package/build/es/context-category-by-slug.mjs.map +1 -1
  23. package/build/es/context-category-info.mjs +262 -252
  24. package/build/es/context-category-info.mjs.map +1 -1
  25. package/build/es/context-product-by-id.mjs +39 -31
  26. package/build/es/context-product-by-id.mjs.map +1 -1
  27. package/build/es/context-product-by-slug.mjs +48 -40
  28. package/build/es/context-product-by-slug.mjs.map +1 -1
  29. package/build/es/context-product-item.mjs +1042 -1034
  30. package/build/es/context-product-item.mjs.map +1 -1
  31. package/package.json +5 -5
@@ -30,11 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // context-category-by-id.ts
31
31
  var context_category_by_id_exports = {};
32
32
  __export(context_category_by_id_exports, {
33
- CategoryByIdContextProvider: () => Zl,
34
- CategoryByIdContextValues: () => Jl,
35
- default: () => Zl,
36
- injectAccessTokenGetter: () => Ql,
37
- useCategoryByIdContext: () => ql
33
+ CategoryByIdContextProvider: () => eu,
34
+ CategoryByIdContextValues: () => Zl,
35
+ default: () => eu,
36
+ injectAccessTokenGetter: () => tu,
37
+ useCategoryByIdContext: () => Xl
38
38
  });
39
39
  module.exports = __toCommonJS(context_category_by_id_exports);
40
40
 
@@ -3406,74 +3406,85 @@ function Ws(e2) {
3406
3406
  let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => Us(e3, t3)).toSorted().join(`;`), n2 = [];
3407
3407
  return e2.priceMin !== void 0 && n2.push(`min:${e2.priceMin}`), e2.priceMax !== void 0 && n2.push(`max:${e2.priceMax}`), t2 && n2.push(t2), n2.join(`&`);
3408
3408
  }
3409
- function Gs(e2, t2, a2, o2, s2, c2) {
3410
- let l2 = Ws(a2), u2 = `${l2}:${o2}:${s2}`, d2 = l2 === c2.filterSelectionKey && o2 === c2.sortType && s2 === c2.productsPerPage ? { pages: [c2.page], pageParams: [void 0] } : void 0, f2 = (0, import_react.useRef)(new Map(Object.entries(c2.productGroupByGroupId))), { data: p2, isFetching: m2, isError: h2, hasNextPage: ee2, fetchNextPage: g2 } = ai({ queryKey: [`category-products`, e2, l2, o2, s2], queryFn: async ({ pageParam: n2 }) => {
3409
+ var Gs = oi(`@wix/site-service-locale`);
3410
+ var Ks = oi(`@wix/viewer-service-multilingual`);
3411
+ function qs() {
3412
+ let e2 = (0, import_services_manager_react.useGetService)(), t2 = (0, import_services_manager_react.useService)(Gs), n2;
3413
+ try {
3414
+ n2 = e2(Ks);
3415
+ } catch {
3416
+ }
3417
+ return n2?.multilingualEnabled && n2.currentLocale?.languageCode || t2.language;
3418
+ }
3419
+ function Js(e2, t2, a2, o2, s2, c2) {
3420
+ let l2 = qs(), u2 = Ws(a2), d2 = `${u2}:${o2}:${s2}`, f2 = u2 === c2.filterSelectionKey && o2 === c2.sortType && s2 === c2.productsPerPage ? { pages: [c2.page], pageParams: [void 0] } : void 0, p2 = (0, import_react.useRef)(new Map(Object.entries(c2.productGroupByGroupId))), { data: m2, isFetching: h2, isError: ee2, hasNextPage: g2, fetchNextPage: _2 } = ai({ queryKey: [`category-products`, l2, e2, u2, o2, s2], queryFn: async ({ pageParam: n2 }) => {
3411
3421
  let r2 = await Ns({ categoryId: e2, filters: t2, filterSelection: a2, sortType: o2, productsPerPage: s2, cursor: n2 });
3412
- return (await Hs(r2.products, f2.current)).forEach((e3, t3) => f2.current.set(t3, e3)), r2;
3413
- }, initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: d2, staleTime: 1 / 0, placeholderData: $n, retry: false }), _2 = (0, import_react.useCallback)(async () => {
3414
- await g2({ cancelRefetch: false });
3415
- }, [g2]);
3416
- return { products: (0, import_react.useMemo)(() => (p2?.pages ?? []).flatMap((e3) => e3.products), [p2]), productGroupByGroupId: f2.current, productListKey: u2, productCount: p2?.pages[0]?.productCount ?? 0, isLoadingProducts: m2, hasProductsError: h2, hasMoreProducts: ee2, loadMoreProducts: _2 };
3422
+ return (await Hs(r2.products, p2.current)).forEach((e3, t3) => p2.current.set(t3, e3)), r2;
3423
+ }, initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: f2, staleTime: 1 / 0, placeholderData: $n, retry: false }), te2 = (0, import_react.useCallback)(async () => {
3424
+ await _2({ cancelRefetch: false });
3425
+ }, [_2]);
3426
+ return { products: (0, import_react.useMemo)(() => (m2?.pages ?? []).flatMap((e3) => e3.products), [m2]), productGroupByGroupId: p2.current, productListKey: d2, productCount: m2?.pages[0]?.productCount ?? 0, isLoadingProducts: h2, hasProductsError: ee2, hasMoreProducts: g2, loadMoreProducts: te2 };
3417
3427
  }
3418
- function Ks(e2, t2) {
3428
+ function Ys(e2, t2) {
3419
3429
  let n2 = new Set(e2.map((e3) => e3.id));
3420
3430
  return [...new Set(t2.values())].filter((e3) => !n2.has(e3));
3421
3431
  }
3422
- function qs(e2, t2, n2) {
3432
+ function Xs(e2, t2, n2) {
3423
3433
  let r2 = new Map([...e2, ...t2].map((e3) => [e3.id, e3])), i2 = /* @__PURE__ */ new Map();
3424
3434
  return n2.forEach((e3, t3) => {
3425
3435
  let n3 = r2.get(e3);
3426
3436
  n3 && i2.set(t3, n3);
3427
3437
  }), i2;
3428
3438
  }
3429
- function Js(e2) {
3430
- return ri({ queries: e2.map((e3) => ({ queryKey: [`sibling-product`, e3], queryFn: () => js(e3), staleTime: 1 / 0, retry: false })) }).flatMap(({ data: e3 }) => e3 ? [e3] : []);
3439
+ function Zs(e2) {
3440
+ let t2 = qs();
3441
+ return ri({ queries: e2.map((e3) => ({ queryKey: [`sibling-product`, t2, e3], queryFn: () => js(e3), staleTime: 1 / 0, retry: false })) }).flatMap(({ data: e3 }) => e3 ? [e3] : []);
3431
3442
  }
3432
- function Ys(e2, t2) {
3433
- return qs(e2, Js((0, import_react.useMemo)(() => Ks(e2, t2), [e2, t2])), t2);
3443
+ function Qs(e2, t2) {
3444
+ return Xs(e2, Zs((0, import_react.useMemo)(() => Ys(e2, t2), [e2, t2])), t2);
3434
3445
  }
3435
- function Xs({ products: e2, productListKey: t2 }) {
3446
+ function $s({ products: e2, productListKey: t2 }) {
3436
3447
  let [i2, o2] = (0, import_react.useState)(() => /* @__PURE__ */ new Map()), [s2, c2] = (0, import_react.useState)(t2);
3437
3448
  s2 !== t2 && (c2(t2), o2(/* @__PURE__ */ new Map()));
3438
- let l2 = Ys(e2, i2);
3449
+ let l2 = Qs(e2, i2);
3439
3450
  return { displayedProducts: (0, import_react.useMemo)(() => e2.map((e3, t3) => l2.get(t3) ?? e3), [e2, l2]), selectProductGroupMember: (0, import_react.useCallback)((t3, n2) => {
3440
3451
  let r2 = e2[t3];
3441
- r2 && o2((e3) => Zs(e3, t3, n2, r2.id));
3452
+ r2 && o2((e3) => ec(e3, t3, n2, r2.id));
3442
3453
  }, [e2]) };
3443
3454
  }
3444
- function Zs(e2, t2, n2, r2) {
3455
+ function ec(e2, t2, n2, r2) {
3445
3456
  let i2 = new Map(e2);
3446
3457
  return n2 === r2 ? i2.delete(t2) : i2.set(t2, n2), i2;
3447
3458
  }
3448
- function Qs({ products: e2, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 }) {
3459
+ function tc({ products: e2, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 }) {
3449
3460
  let o2 = (0, import_react.useRef)([]);
3450
3461
  return (0, import_react.useMemo)(() => {
3451
3462
  if (t2.size === 0) return e2.map((e3) => ({ product: e3, defaultLocationId: n2 }));
3452
- let r2 = $s({ displayedProducts: e2, previousProductItems: o2.current, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 });
3463
+ let r2 = nc({ displayedProducts: e2, previousProductItems: o2.current, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 });
3453
3464
  return o2.current = r2, r2;
3454
3465
  }, [e2, t2, n2, a2]);
3455
3466
  }
3456
- function $s({ displayedProducts: e2, previousProductItems: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3467
+ function nc({ displayedProducts: e2, previousProductItems: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3457
3468
  return e2.map((e3, a2) => {
3458
3469
  let o2 = t2[a2];
3459
- return o2?.product === e3 ? o2 : ec({ product: e3, productItemIndex: a2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 });
3470
+ return o2?.product === e3 ? o2 : rc({ product: e3, productItemIndex: a2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 });
3460
3471
  });
3461
3472
  }
3462
- function ec({ product: e2, productItemIndex: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3463
- let a2 = tc({ productGroup: e2.productGroupId ? n2.get(e2.productGroupId) : void 0, productItemIndex: t2, selectProductGroupMember: i2 });
3473
+ function rc({ product: e2, productItemIndex: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
3474
+ let a2 = ic({ productGroup: e2.productGroupId ? n2.get(e2.productGroupId) : void 0, productItemIndex: t2, selectProductGroupMember: i2 });
3464
3475
  return { product: e2, defaultLocationId: r2, ...a2 && { productGroupData: a2 } };
3465
3476
  }
3466
- function tc({ productGroup: e2, productItemIndex: t2, selectProductGroupMember: n2 }) {
3477
+ function ic({ productGroup: e2, productItemIndex: t2, selectProductGroupMember: n2 }) {
3467
3478
  if (e2) return { productGroup: e2, selectProductGroupMember: (r2) => {
3468
3479
  e2.members.some((e3) => e3.productId === r2) && n2(t2, r2);
3469
3480
  } };
3470
3481
  }
3471
- function nc(e2, t2) {
3472
- let { category: n2, filters: i2, currency: a2, promotions: o2, initialProductList: s2, defaultLocationId: c2 } = e2, l2 = No(i2), u2 = Ho(), { products: d2, productGroupByGroupId: f2, productListKey: p2, ...m2 } = Gs(n2.id, i2, l2.filterSelection, u2.selectedSortType, t2, s2), h2 = Xs({ products: d2, productListKey: p2 });
3473
- return { filters: i2, currency: a2, productItems: Qs({ products: f2.size > 0 ? h2.displayedProducts : d2, productGroupByGroupId: f2, defaultLocationId: c2, selectProductGroupMember: h2.selectProductGroupMember }), promotionItems: (0, import_react.useMemo)(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...m2 };
3482
+ function ac(e2, t2) {
3483
+ let { category: n2, filters: i2, currency: a2, promotions: o2, initialProductList: s2, defaultLocationId: c2 } = e2, l2 = No(i2), u2 = Ho(), { products: d2, productGroupByGroupId: f2, productListKey: p2, ...m2 } = Js(n2.id, i2, l2.filterSelection, u2.selectedSortType, t2, s2), h2 = $s({ products: d2, productListKey: p2 });
3484
+ return { filters: i2, currency: a2, productItems: tc({ products: f2.size > 0 ? h2.displayedProducts : d2, productGroupByGroupId: f2, defaultLocationId: c2, selectProductGroupMember: h2.selectProductGroupMember }), promotionItems: (0, import_react.useMemo)(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...m2 };
3474
3485
  }
3475
- var rc = oi(`@wix/site-service-warmup-data`);
3476
- async function ic(e2, t2, n2) {
3486
+ var oc = oi(`@wix/site-service-warmup-data`);
3487
+ async function sc(e2, t2, n2) {
3477
3488
  let r2 = typeof window > `u`;
3478
3489
  if (!r2 && e2) try {
3479
3490
  let n3 = await e2.get(t2);
@@ -3487,34 +3498,34 @@ async function ic(e2, t2, n2) {
3487
3498
  }
3488
3499
  return i2;
3489
3500
  }
3490
- function ac(e2, t2) {
3491
- let n2 = (0, import_services_manager_react.useGetService)(), [r2] = (0, import_react.useState)(() => {
3492
- let r3;
3501
+ function cc(e2, t2) {
3502
+ let n2 = (0, import_services_manager_react.useGetService)(), i2 = qs();
3503
+ return (0, import_react.useMemo)(() => {
3504
+ let r2;
3493
3505
  try {
3494
- r3 = n2(rc);
3506
+ r2 = n2(oc);
3495
3507
  } catch {
3496
- r3 = null;
3508
+ r2 = null;
3497
3509
  }
3498
- return ic(r3, e2, t2);
3499
- });
3500
- return r2;
3510
+ return sc(r2, `${e2}:${i2}`, t2);
3511
+ }, [i2]);
3501
3512
  }
3502
- async function oc() {
3513
+ async function lc() {
3503
3514
  return (await co().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
3504
3515
  }
3505
- function sc(e2) {
3516
+ function uc(e2) {
3506
3517
  return k(Object.assign(e2, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/categories`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }], "manage._base_domain_": [{ srcPath: `/_api/categories`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/categories-service`, destPath: `` }], _: [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }] } }));
3507
3518
  }
3508
- var cc = `@wix/auto_sdk_categories_categories`;
3509
- function lc(e2) {
3519
+ var dc = `@wix/auto_sdk_categories_categories`;
3520
+ function fc(e2) {
3510
3521
  function t2({ host: t3 }) {
3511
- return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategory`, packageName: cc, migrationOptions: { optInTransformResponse: true }, url: sc({ protoPath: `/v1/categories/{categoryId}`, data: e2, host: t3 }), params: O(e2), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `category.createdDate` }, { path: `category.updatedDate` }, { path: `category.image.urlExpirationDate` }, { path: `category.richContentDescription.metadata.createdTimestamp` }, { path: `category.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: j, paths: [{ path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `category.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `category.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `category.richContentDescription.nodes.imageData.image.duration` }, { path: `category.richContentDescription.nodes.imageData.crop.x` }, { path: `category.richContentDescription.nodes.imageData.crop.y` }, { path: `category.richContentDescription.nodes.imageData.crop.width` }, { path: `category.richContentDescription.nodes.imageData.crop.height` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `category.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `category.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `category.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `category.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `category.richContentDescription.nodes.videoData.video.duration` }, { path: `category.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `category.richContentDescription.nodes.audioData.audio.duration` }, { path: `category.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `category.richContentDescription.nodes.shapeData.shape.duration` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.tocData.fontSize` }, { path: `category.richContentDescription.nodes.tocData.itemSpacing` }, { path: `category.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
3522
+ return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategory`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v1/categories/{categoryId}`, data: e2, host: t3 }), params: O(e2), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `category.createdDate` }, { path: `category.updatedDate` }, { path: `category.image.urlExpirationDate` }, { path: `category.richContentDescription.metadata.createdTimestamp` }, { path: `category.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: j, paths: [{ path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `category.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `category.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `category.richContentDescription.nodes.imageData.image.duration` }, { path: `category.richContentDescription.nodes.imageData.crop.x` }, { path: `category.richContentDescription.nodes.imageData.crop.y` }, { path: `category.richContentDescription.nodes.imageData.crop.width` }, { path: `category.richContentDescription.nodes.imageData.crop.height` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `category.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `category.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `category.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `category.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `category.richContentDescription.nodes.videoData.video.duration` }, { path: `category.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `category.richContentDescription.nodes.audioData.audio.duration` }, { path: `category.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `category.richContentDescription.nodes.shapeData.shape.duration` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.tocData.fontSize` }, { path: `category.richContentDescription.nodes.tocData.itemSpacing` }, { path: `category.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
3512
3523
  }
3513
3524
  return t2;
3514
3525
  }
3515
- var uc = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(uc || {});
3516
- async function dc(e2, t2, n2) {
3517
- let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = lc(S({ categoryId: e2, treeReference: t2, fields: n2?.fields }, []));
3526
+ var pc = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(pc || {});
3527
+ async function mc(e2, t2, n2) {
3528
+ let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = fc(S({ categoryId: e2, treeReference: t2, fields: n2?.fields }, []));
3518
3529
  i2?.onSiteCall?.();
3519
3530
  try {
3520
3531
  let e3 = await r2.request(a2);
@@ -3525,70 +3536,70 @@ async function dc(e2, t2, n2) {
3525
3536
  }
3526
3537
  }
3527
3538
  ({ ...B() }, { ...ya() });
3528
- function fc(e2) {
3529
- return (t2, n2, r2) => dc(t2, n2, r2, { httpClient: e2 });
3530
- }
3531
- var pc = y(`wix.categories.v1.category_category_moved`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3532
- var mc = y(`wix.categories.v1.category_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3533
- var hc = y(`wix.categories.v1.category_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `undefined.createdDate` }, { path: `undefined.updatedDate` }, { path: `undefined.richContentDescription.metadata.createdTimestamp` }, { path: `undefined.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `undefined.image` }] }, { transformFn: j, paths: [{ path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `undefined.richContentDescription.nodes.imageData.image.duration` }, { path: `undefined.richContentDescription.nodes.imageData.crop.x` }, { path: `undefined.richContentDescription.nodes.imageData.crop.y` }, { path: `undefined.richContentDescription.nodes.imageData.crop.width` }, { path: `undefined.richContentDescription.nodes.imageData.crop.height` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `undefined.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `undefined.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `undefined.richContentDescription.nodes.videoData.video.duration` }, { path: `undefined.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.audioData.audio.duration` }, { path: `undefined.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.shapeData.shape.duration` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.tocData.fontSize` }, { path: `undefined.richContentDescription.nodes.tocData.itemSpacing` }, { path: `undefined.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3534
- var gc = y(`wix.categories.v1.category_item_added_to_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3535
- var _c = y(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3536
- var vc = y(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3537
- var yc = y(`wix.categories.v1.category_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.richContentDescription.metadata.createdTimestamp` }, { path: `modifiedFields.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: V, paths: [{ path: `entity.image` }, { path: `modifiedFields.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.richContentDescription.nodes.imageData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.x` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.y` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.width` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.height` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.video.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.audio.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.shapeData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.tocData.fontSize` }, { path: `modifiedFields.richContentDescription.nodes.tocData.itemSpacing` }, { path: `modifiedFields.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3538
- var bc = D(fc);
3539
- A(pc), A(mc), A(hc), A(gc), A(_c), A(vc), A(yc);
3540
- function xc(e2) {
3539
+ function hc(e2) {
3540
+ return (t2, n2, r2) => mc(t2, n2, r2, { httpClient: e2 });
3541
+ }
3542
+ var gc = y(`wix.categories.v1.category_category_moved`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3543
+ var _c = y(`wix.categories.v1.category_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3544
+ var vc = y(`wix.categories.v1.category_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `undefined.createdDate` }, { path: `undefined.updatedDate` }, { path: `undefined.richContentDescription.metadata.createdTimestamp` }, { path: `undefined.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `undefined.image` }] }, { transformFn: j, paths: [{ path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `undefined.richContentDescription.nodes.imageData.image.duration` }, { path: `undefined.richContentDescription.nodes.imageData.crop.x` }, { path: `undefined.richContentDescription.nodes.imageData.crop.y` }, { path: `undefined.richContentDescription.nodes.imageData.crop.width` }, { path: `undefined.richContentDescription.nodes.imageData.crop.height` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `undefined.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `undefined.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `undefined.richContentDescription.nodes.videoData.video.duration` }, { path: `undefined.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.audioData.audio.duration` }, { path: `undefined.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.shapeData.shape.duration` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.tocData.fontSize` }, { path: `undefined.richContentDescription.nodes.tocData.itemSpacing` }, { path: `undefined.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3545
+ var yc = y(`wix.categories.v1.category_item_added_to_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3546
+ var bc = y(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3547
+ var xc = y(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
3548
+ var Sc = y(`wix.categories.v1.category_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.richContentDescription.metadata.createdTimestamp` }, { path: `modifiedFields.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: V, paths: [{ path: `entity.image` }, { path: `modifiedFields.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.richContentDescription.nodes.imageData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.x` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.y` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.width` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.height` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.video.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.audio.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.shapeData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.tocData.fontSize` }, { path: `modifiedFields.richContentDescription.nodes.tocData.itemSpacing` }, { path: `modifiedFields.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
3549
+ var Cc = D(hc);
3550
+ A(gc), A(_c), A(vc), A(yc), A(bc), A(xc), A(Sc);
3551
+ function wc(e2) {
3541
3552
  if (!e2) return null;
3542
3553
  let t2 = e2.match(/image:\/\/v1\/([^/#]+)/);
3543
3554
  return t2?.[1] ? t2[1] : e2.match(/\/media\/([^/]+)/)?.[1] ?? null;
3544
3555
  }
3545
- function Sc(e2) {
3556
+ function Tc(e2) {
3546
3557
  return `https://static.wixstatic.com/media/${e2}`;
3547
3558
  }
3548
- function Cc(e2) {
3559
+ function Ec(e2) {
3549
3560
  if (!e2) return null;
3550
3561
  let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
3551
3562
  return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
3552
3563
  }
3553
- var wc = (e2) => `/category/${e2}`;
3554
- var Tc = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
3555
- var Ec = (e2) => {
3564
+ var Dc = (e2) => `/category/${e2}`;
3565
+ var Oc = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
3566
+ var kc = (e2) => {
3556
3567
  if (!e2) return;
3557
- let t2 = Cc(e2);
3558
- return { uri: xc(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
3568
+ let t2 = Ec(e2);
3569
+ return { uri: wc(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
3559
3570
  };
3560
- var Dc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
3571
+ var Ac = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
3561
3572
  let t2 = e3.categorySlug ?? ``;
3562
- return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: wc(t2) };
3573
+ return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: Dc(t2) };
3563
3574
  });
3564
- var Oc = (e2) => ({ type: e2.type, props: e2.props ?? void 0, meta: e2.meta ?? void 0, children: e2.children, custom: e2.custom, disabled: e2.disabled });
3565
- var kc = (e2) => {
3575
+ var jc = (e2) => ({ type: e2.type, props: e2.props ?? void 0, meta: e2.meta ?? void 0, children: e2.children, custom: e2.custom, disabled: e2.disabled });
3576
+ var Mc = (e2) => {
3566
3577
  if (e2) return { preventAutoRedirect: e2.preventAutoRedirect, keywords: e2.keywords?.map((e3) => ({ term: e3.term, isMain: e3.isMain, origin: e3.origin ?? void 0 })) };
3567
3578
  };
3568
- var Ac = (e2) => {
3569
- if (e2) return { tags: e2.tags?.map(Oc), settings: kc(e2.settings) };
3579
+ var Nc = (e2) => {
3580
+ if (e2) return { tags: e2.tags?.map(jc), settings: Mc(e2.settings) };
3570
3581
  };
3571
- function jc(e2) {
3572
- return { id: e2._id ?? ``, name: e2.name ?? ``, slug: e2.slug ?? ``, description: e2.description ?? void 0, itemCounter: e2.itemCounter, parentCategoryId: e2.parentCategory?._id ?? void 0, seoData: Ac(e2.seoData), richContentDescription: e2.richContentDescription ? Tc(e2.richContentDescription) : void 0, image: Ec(e2.image), breadcrumbs: Dc(e2.breadcrumbsInfo?.breadcrumbs ?? []) };
3582
+ function Pc(e2) {
3583
+ return { id: e2._id ?? ``, name: e2.name ?? ``, slug: e2.slug ?? ``, description: e2.description ?? void 0, itemCounter: e2.itemCounter, parentCategoryId: e2.parentCategory?._id ?? void 0, seoData: Nc(e2.seoData), richContentDescription: e2.richContentDescription ? Oc(e2.richContentDescription) : void 0, image: kc(e2.image), breadcrumbs: Ac(e2.breadcrumbsInfo?.breadcrumbs ?? []) };
3573
3584
  }
3574
- var Mc = { appNamespace: `@wix/stores`, treeKey: null };
3575
- var Nc = [uc.BREADCRUMBS_INFO, uc.DESCRIPTION, uc.RICH_CONTENT_DESCRIPTION];
3576
- var Pc = (e2, t2) => {
3585
+ var Fc = { appNamespace: `@wix/stores`, treeKey: null };
3586
+ var Ic = [pc.BREADCRUMBS_INFO, pc.DESCRIPTION, pc.RICH_CONTENT_DESCRIPTION];
3587
+ var Lc = (e2, t2) => {
3577
3588
  if (!e2?._id || e2.visible === false) throw Error(t2);
3578
- return jc(e2);
3589
+ return Pc(e2);
3579
3590
  };
3580
- async function Fc(e2) {
3581
- return Pc(await bc(e2, Mc, { fields: Nc }), `Category not found for id: ${e2}`);
3591
+ async function Rc(e2) {
3592
+ return Lc(await Cc(e2, Fc, { fields: Ic }), `Category not found for id: ${e2}`);
3582
3593
  }
3583
- var Ic = (e2, t2, n2) => {
3594
+ var zc = (e2, t2, n2) => {
3584
3595
  let r2 = [];
3585
3596
  for (let i2 of e2.keys()) if (!t2.has(i2)) {
3586
3597
  let e3 = n2.find((e4) => e4._id === i2);
3587
- e3 && r2.push(Kc(e3, 0));
3598
+ e3 && r2.push(Yc(e3, 0));
3588
3599
  }
3589
3600
  return r2;
3590
3601
  };
3591
- var Lc = (e2) => {
3602
+ var Bc = (e2) => {
3592
3603
  let t2 = /* @__PURE__ */ new Map();
3593
3604
  for (let { _id: n2, primaryChoiceIds: r2 } of e2) if (n2) for (let e3 of r2 ?? []) {
3594
3605
  let r3 = t2.get(e3) ?? [];
@@ -3596,8 +3607,8 @@ var Lc = (e2) => {
3596
3607
  }
3597
3608
  return t2;
3598
3609
  };
3599
- var Rc = (e2, t2, n2) => {
3600
- let r2 = Ic(t2, new Set(e2.map((e3) => e3.id)), n2), i2 = [...e2, ...r2], a2 = new Map(i2.map((e3) => [e3.id, e3])), o2 = new Set([...t2.values()].flat());
3610
+ var Vc = (e2, t2, n2) => {
3611
+ let r2 = zc(t2, new Set(e2.map((e3) => e3.id)), n2), i2 = [...e2, ...r2], a2 = new Map(i2.map((e3) => [e3.id, e3])), o2 = new Set([...t2.values()].flat());
3601
3612
  return i2.flatMap((e3) => {
3602
3613
  if (o2.has(e3.id)) return [];
3603
3614
  let n3 = t2.get(e3.id);
@@ -3608,77 +3619,77 @@ var Rc = (e2, t2, n2) => {
3608
3619
  return [{ ...e3, count: e3.count + i3, linkedChoiceIds: r3 }];
3609
3620
  });
3610
3621
  };
3611
- function zc(e2, t2) {
3612
- return Rc(e2, Lc(t2), t2);
3622
+ function Hc(e2, t2) {
3623
+ return Vc(e2, Bc(t2), t2);
3613
3624
  }
3614
- var Bc = (e2) => {
3625
+ var Uc = (e2) => {
3615
3626
  let t2 = e2.trim();
3616
3627
  if (t2 === ``) return null;
3617
3628
  let n2 = Number(t2);
3618
3629
  return Number.isFinite(n2) ? n2 : null;
3619
3630
  };
3620
- var Vc = (e2, t2) => {
3631
+ var Wc = (e2, t2) => {
3621
3632
  let n2 = t2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3, t3) => [e3._id ?? ``, t3])), i2 = (e3) => r2.get(e3.id) ?? 2 ** 53 - 1;
3622
3633
  return e2.toSorted((e3, t3) => i2(e3) - i2(t3));
3623
3634
  };
3624
- var Hc = (e2, t2, n2) => t2 === U.TEXT_CHOICES ? Wc(e2, (e3) => e3.name) : n2 ? Uc(e2, (e3) => e3.count) : [...e2];
3625
- var Uc = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
3626
- var Wc = (e2, t2) => e2.toSorted((e3, n2) => {
3627
- let r2 = Bc(t2(e3)), i2 = Bc(t2(n2));
3635
+ var Gc = (e2, t2, n2) => t2 === U.TEXT_CHOICES ? qc(e2, (e3) => e3.name) : n2 ? Kc(e2, (e3) => e3.count) : [...e2];
3636
+ var Kc = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
3637
+ var qc = (e2, t2) => e2.toSorted((e3, n2) => {
3638
+ let r2 = Uc(t2(e3)), i2 = Uc(t2(n2));
3628
3639
  return r2 !== null && i2 !== null ? r2 - i2 : r2 === null ? i2 === null ? t2(e3).toLowerCase().localeCompare(t2(n2).toLowerCase()) : 1 : -1;
3629
3640
  });
3630
- function Gc(e2, t2, n2) {
3641
+ function Jc(e2, t2, n2) {
3631
3642
  switch (t2.choicesSettings?.sortOrder) {
3632
3643
  case Qi.BY_NAME:
3633
- return Wc(e2, (e3) => e3.name);
3644
+ return qc(e2, (e3) => e3.name);
3634
3645
  case Qi.BY_PRODUCT_COUNT:
3635
- return Uc(e2, (e3) => e3.count);
3646
+ return Kc(e2, (e3) => e3.count);
3636
3647
  case Qi.MANUAL:
3637
- return Vc(e2, t2);
3648
+ return Wc(e2, t2);
3638
3649
  case Qi.DEFAULT:
3639
3650
  default:
3640
- return Hc(e2, t2.customizationRenderType, n2);
3651
+ return Gc(e2, t2.customizationRenderType, n2);
3641
3652
  }
3642
3653
  }
3643
- var Kc = (e2, t2) => ({ id: e2._id ?? ``, name: e2.name ?? ``, type: e2.choiceType, values: e2.colorCode === void 0 ? [] : [e2.colorCode], count: t2, linkedChoiceIds: [], displayImage: e2.displayImage });
3644
- function qc(e2, t2) {
3654
+ var Yc = (e2, t2) => ({ id: e2._id ?? ``, name: e2.name ?? ``, type: e2.choiceType, values: e2.colorCode === void 0 ? [] : [e2.colorCode], count: t2, linkedChoiceIds: [], displayImage: e2.displayImage });
3655
+ function Xc(e2, t2) {
3645
3656
  let n2 = e2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3) => [e3._id, e3])), i2 = [...t2].flatMap(([e3, t3]) => {
3646
3657
  let n3 = r2.get(e3);
3647
- return n3 ? [Kc(n3, t3)] : [];
3658
+ return n3 ? [Yc(n3, t3)] : [];
3648
3659
  }), a2 = n2.some((e3) => (e3.primaryChoiceIds?.length ?? 0) > 0);
3649
- return Gc(a2 ? zc(i2, n2) : i2, e2, a2);
3660
+ return Jc(a2 ? Hc(i2, n2) : i2, e2, a2);
3650
3661
  }
3651
- var Jc = (e2) => {
3652
- let t2 = xc(e2);
3662
+ var Zc = (e2) => {
3663
+ let t2 = wc(e2);
3653
3664
  if (!t2) return;
3654
- let n2 = Cc(e2);
3655
- return { id: t2, url: Sc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3665
+ let n2 = Ec(e2);
3666
+ return { id: t2, url: Tc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3656
3667
  };
3657
- var Yc = (e2) => {
3658
- let t2 = e2.displayImage === void 0 ? void 0 : Jc(e2.displayImage);
3659
- return { ...Zc(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
3668
+ var Qc = (e2) => {
3669
+ let t2 = e2.displayImage === void 0 ? void 0 : Zc(e2.displayImage);
3670
+ return { ...el(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
3660
3671
  };
3661
- var Xc = (e2) => ({ type: J.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Yc) });
3662
- var Zc = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
3663
- var Qc = (e2) => ({ type: J.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Zc) });
3664
- var $c = (e2, t2, n2, r2) => {
3672
+ var $c = (e2) => ({ type: J.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Qc) });
3673
+ var el = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
3674
+ var tl = (e2) => ({ type: J.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(el) });
3675
+ var nl = (e2, t2, n2, r2) => {
3665
3676
  let i2 = new Map(t2.map((e3) => [e3._id, e3]));
3666
3677
  return n2.flatMap((t3) => {
3667
3678
  let n3 = i2.get(t3);
3668
- return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: qc(n3, r2) }] : [];
3679
+ return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: Xc(n3, r2) }] : [];
3669
3680
  });
3670
3681
  };
3671
- var el = (e2) => Wc(e2.filter((e3) => e3.renderType === U.SWATCH_CHOICES).map(Xc), (e3) => e3.name);
3672
- var tl = (e2) => Wc(e2.filter((e3) => e3.renderType === U.TEXT_CHOICES).map(Qc), (e3) => e3.name);
3673
- function nl(e2, t2, n2, r2) {
3682
+ var rl = (e2) => qc(e2.filter((e3) => e3.renderType === U.SWATCH_CHOICES).map($c), (e3) => e3.name);
3683
+ var il = (e2) => qc(e2.filter((e3) => e3.renderType === U.TEXT_CHOICES).map(tl), (e3) => e3.name);
3684
+ function al(e2, t2, n2, r2) {
3674
3685
  if (n2.length === 0) return [];
3675
- let i2 = $c(e2, t2, n2, r2);
3676
- return [...el(i2), ...tl(i2)];
3686
+ let i2 = nl(e2, t2, n2, r2);
3687
+ return [...rl(i2), ...il(i2)];
3677
3688
  }
3678
- function rl(e2, t2) {
3689
+ function ol(e2, t2) {
3679
3690
  if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: J.PRICE, name: bo.PRICE, minPrice: e2, maxPrice: t2 };
3680
3691
  }
3681
- var il = _((e2, t2) => {
3692
+ var sl = _((e2, t2) => {
3682
3693
  function n2(e3, t3, n3) {
3683
3694
  var r2 = -1, i2 = e3.length;
3684
3695
  t3 < 0 && (t3 = -t3 > i2 ? 0 : i2 + t3), n3 = n3 > i2 ? i2 : n3, n3 < 0 && (n3 += i2), i2 = t3 > n3 ? 0 : n3 - t3 >>> 0, t3 >>>= 0;
@@ -3687,24 +3698,24 @@ var il = _((e2, t2) => {
3687
3698
  }
3688
3699
  t2.exports = n2;
3689
3700
  });
3690
- var al = _((e2, t2) => {
3701
+ var cl = _((e2, t2) => {
3691
3702
  function n2(e3, t3) {
3692
3703
  return e3 === t3 || e3 !== e3 && t3 !== t3;
3693
3704
  }
3694
3705
  t2.exports = n2;
3695
3706
  });
3696
- var ol = _((e2, t2) => {
3707
+ var ll = _((e2, t2) => {
3697
3708
  t2.exports = typeof window == `object` && window && window.Object === Object && window;
3698
3709
  });
3699
- var sl = _((e2, t2) => {
3700
- var n2 = ol(), r2 = typeof self == `object` && self && self.Object === Object && self;
3710
+ var ul = _((e2, t2) => {
3711
+ var n2 = ll(), r2 = typeof self == `object` && self && self.Object === Object && self;
3701
3712
  t2.exports = n2 || r2 || Function(`return this`)();
3702
3713
  });
3703
- var cl = _((e2, t2) => {
3704
- t2.exports = sl().Symbol;
3714
+ var dl = _((e2, t2) => {
3715
+ t2.exports = ul().Symbol;
3705
3716
  });
3706
- var ll = _((e2, t2) => {
3707
- var n2 = cl(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
3717
+ var fl = _((e2, t2) => {
3718
+ var n2 = dl(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
3708
3719
  function s2(e3) {
3709
3720
  var t3 = i2.call(e3, o2), n3 = e3[o2];
3710
3721
  try {
@@ -3717,29 +3728,29 @@ var ll = _((e2, t2) => {
3717
3728
  }
3718
3729
  t2.exports = s2;
3719
3730
  });
3720
- var ul = _((e2, t2) => {
3731
+ var pl = _((e2, t2) => {
3721
3732
  var n2 = Object.prototype.toString;
3722
3733
  function r2(e3) {
3723
3734
  return n2.call(e3);
3724
3735
  }
3725
3736
  t2.exports = r2;
3726
3737
  });
3727
- var dl = _((e2, t2) => {
3728
- var n2 = cl(), r2 = ll(), i2 = ul(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
3738
+ var ml = _((e2, t2) => {
3739
+ var n2 = dl(), r2 = fl(), i2 = pl(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
3729
3740
  function c2(e3) {
3730
3741
  return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
3731
3742
  }
3732
3743
  t2.exports = c2;
3733
3744
  });
3734
- var fl = _((e2, t2) => {
3745
+ var hl = _((e2, t2) => {
3735
3746
  function n2(e3) {
3736
3747
  var t3 = typeof e3;
3737
3748
  return e3 != null && (t3 == `object` || t3 == `function`);
3738
3749
  }
3739
3750
  t2.exports = n2;
3740
3751
  });
3741
- var pl = _((e2, t2) => {
3742
- var n2 = dl(), r2 = fl(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
3752
+ var gl = _((e2, t2) => {
3753
+ var n2 = ml(), r2 = hl(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
3743
3754
  function c2(e3) {
3744
3755
  if (!r2(e3)) return false;
3745
3756
  var t3 = n2(e3);
@@ -3747,20 +3758,20 @@ var pl = _((e2, t2) => {
3747
3758
  }
3748
3759
  t2.exports = c2;
3749
3760
  });
3750
- var ml = _((e2, t2) => {
3761
+ var _l = _((e2, t2) => {
3751
3762
  function n2(e3) {
3752
3763
  return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
3753
3764
  }
3754
3765
  t2.exports = n2;
3755
3766
  });
3756
- var hl = _((e2, t2) => {
3757
- var n2 = pl(), r2 = ml();
3767
+ var vl = _((e2, t2) => {
3768
+ var n2 = gl(), r2 = _l();
3758
3769
  function i2(e3) {
3759
3770
  return e3 != null && r2(e3.length) && !n2(e3);
3760
3771
  }
3761
3772
  t2.exports = i2;
3762
3773
  });
3763
- var gl = _((e2, t2) => {
3774
+ var yl = _((e2, t2) => {
3764
3775
  var n2 = /^(?:0|[1-9]\d*)$/;
3765
3776
  function r2(e3, t3) {
3766
3777
  var r3 = typeof e3;
@@ -3768,8 +3779,8 @@ var gl = _((e2, t2) => {
3768
3779
  }
3769
3780
  t2.exports = r2;
3770
3781
  });
3771
- var _l = _((e2, t2) => {
3772
- var n2 = al(), r2 = hl(), i2 = gl(), a2 = fl();
3782
+ var bl = _((e2, t2) => {
3783
+ var n2 = cl(), r2 = vl(), i2 = yl(), a2 = hl();
3773
3784
  function o2(e3, t3, o3) {
3774
3785
  if (!a2(o3)) return false;
3775
3786
  var s2 = typeof t3;
@@ -3777,7 +3788,7 @@ var _l = _((e2, t2) => {
3777
3788
  }
3778
3789
  t2.exports = o2;
3779
3790
  });
3780
- var vl = _((e2, t2) => {
3791
+ var xl = _((e2, t2) => {
3781
3792
  var n2 = /\s/;
3782
3793
  function r2(e3) {
3783
3794
  for (var t3 = e3.length; t3-- && n2.test(e3.charAt(t3)); ) ;
@@ -3785,28 +3796,28 @@ var vl = _((e2, t2) => {
3785
3796
  }
3786
3797
  t2.exports = r2;
3787
3798
  });
3788
- var yl = _((e2, t2) => {
3789
- var n2 = vl(), r2 = /^\s+/;
3799
+ var Sl = _((e2, t2) => {
3800
+ var n2 = xl(), r2 = /^\s+/;
3790
3801
  function i2(e3) {
3791
3802
  return e3 && e3.slice(0, n2(e3) + 1).replace(r2, ``);
3792
3803
  }
3793
3804
  t2.exports = i2;
3794
3805
  });
3795
- var bl = _((e2, t2) => {
3806
+ var Cl = _((e2, t2) => {
3796
3807
  function n2(e3) {
3797
3808
  return typeof e3 == `object` && !!e3;
3798
3809
  }
3799
3810
  t2.exports = n2;
3800
3811
  });
3801
- var xl = _((e2, t2) => {
3802
- var n2 = dl(), r2 = bl(), i2 = `[object Symbol]`;
3812
+ var wl = _((e2, t2) => {
3813
+ var n2 = ml(), r2 = Cl(), i2 = `[object Symbol]`;
3803
3814
  function a2(e3) {
3804
3815
  return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
3805
3816
  }
3806
3817
  t2.exports = a2;
3807
3818
  });
3808
- var Sl = _((e2, t2) => {
3809
- var n2 = yl(), r2 = fl(), i2 = xl(), a2 = NaN, o2 = /^[-+]0x[0-9a-f]+$/i, s2 = /^0b[01]+$/i, c2 = /^0o[0-7]+$/i, l2 = parseInt;
3819
+ var Tl = _((e2, t2) => {
3820
+ var n2 = Sl(), r2 = hl(), i2 = wl(), a2 = NaN, o2 = /^[-+]0x[0-9a-f]+$/i, s2 = /^0b[01]+$/i, c2 = /^0o[0-7]+$/i, l2 = parseInt;
3810
3821
  function u2(e3) {
3811
3822
  if (typeof e3 == `number`) return e3;
3812
3823
  if (i2(e3)) return a2;
@@ -3821,23 +3832,23 @@ var Sl = _((e2, t2) => {
3821
3832
  }
3822
3833
  t2.exports = u2;
3823
3834
  });
3824
- var Cl = _((e2, t2) => {
3825
- var n2 = Sl(), r2 = 1 / 0, i2 = 17976931348623157e292;
3835
+ var El = _((e2, t2) => {
3836
+ var n2 = Tl(), r2 = 1 / 0, i2 = 17976931348623157e292;
3826
3837
  function a2(e3) {
3827
3838
  return e3 ? (e3 = n2(e3), e3 === r2 || e3 === -r2 ? (e3 < 0 ? -1 : 1) * i2 : e3 === e3 ? e3 : 0) : e3 === 0 ? e3 : 0;
3828
3839
  }
3829
3840
  t2.exports = a2;
3830
3841
  });
3831
- var wl = _((e2, t2) => {
3832
- var n2 = Cl();
3842
+ var Dl = _((e2, t2) => {
3843
+ var n2 = El();
3833
3844
  function r2(e3) {
3834
3845
  var t3 = n2(e3), r3 = t3 % 1;
3835
3846
  return t3 === t3 ? r3 ? t3 - r3 : t3 : 0;
3836
3847
  }
3837
3848
  t2.exports = r2;
3838
3849
  });
3839
- var Tl = ne(_((e2, t2) => {
3840
- var n2 = il(), r2 = _l(), i2 = wl(), a2 = Math.ceil, o2 = Math.max;
3850
+ var Ol = ne(_((e2, t2) => {
3851
+ var n2 = sl(), r2 = bl(), i2 = Dl(), a2 = Math.ceil, o2 = Math.max;
3841
3852
  function s2(e3, t3, s3) {
3842
3853
  t3 = (s3 ? r2(e3, t3, s3) : t3 === void 0) ? 1 : o2(i2(t3), 0);
3843
3854
  var c2 = e3 == null ? 0 : e3.length;
@@ -3847,86 +3858,86 @@ var Tl = ne(_((e2, t2) => {
3847
3858
  }
3848
3859
  t2.exports = s2;
3849
3860
  })(), 1);
3850
- var El = [$i.CHOICE_DISPLAY_IMAGE];
3851
- var Dl = `customizationRenderType`;
3852
- async function Ol(e2) {
3853
- let t2 = (0, Tl.default)(e2, 100);
3854
- return (await Promise.all(t2.map(kl))).flat();
3855
- }
3856
- var kl = async (e2) => (await ca({ fields: El }).hasSome(`_id`, e2).ne(Dl, U.FREE_TEXT).limit(100).find()).items;
3857
- var Al = (e2, t2, n2) => ({ name: e2, type: Oa.SCALAR, fieldPath: t2, scalar: { type: n2 } });
3858
- var jl = (e2, t2, n2) => ({ name: e2, type: Oa.VALUE, fieldPath: t2, value: { limit: n2, sortType: Ta.COUNT, sortDirection: Ea.DESC } });
3859
- function Ml(e2) {
3861
+ var kl = [$i.CHOICE_DISPLAY_IMAGE];
3862
+ var Al = `customizationRenderType`;
3863
+ async function jl(e2) {
3864
+ let t2 = (0, Ol.default)(e2, 100);
3865
+ return (await Promise.all(t2.map(Ml))).flat();
3866
+ }
3867
+ var Ml = async (e2) => (await ca({ fields: kl }).hasSome(`_id`, e2).ne(Al, U.FREE_TEXT).limit(100).find()).items;
3868
+ var Nl = (e2, t2, n2) => ({ name: e2, type: Oa.SCALAR, fieldPath: t2, scalar: { type: n2 } });
3869
+ var Pl = (e2, t2, n2) => ({ name: e2, type: Oa.VALUE, fieldPath: t2, value: { limit: n2, sortType: Ta.COUNT, sortDirection: Ea.DESC } });
3870
+ function Fl(e2) {
3860
3871
  let t2 = [];
3861
- return e2.includes(Z.PRICE) && t2.push(Al(Q.minPrice, $.minPrice, Da.MIN), Al(Q.maxPrice, $.maxPrice, Da.MAX)), e2.includes(Z.OPTIONS) && t2.push(jl(Q.options, $.option, Cs.options), jl(Q.optionsWithChoice, $.optionChoice, Cs.choices)), e2.includes(Z.MODIFIERS) && t2.push(jl(Q.modifiers, $.modifier, Cs.modifiers), jl(Q.modifiersWithChoice, $.modifierChoice, Cs.choices)), t2;
3872
+ return e2.includes(Z.PRICE) && t2.push(Nl(Q.minPrice, $.minPrice, Da.MIN), Nl(Q.maxPrice, $.maxPrice, Da.MAX)), e2.includes(Z.OPTIONS) && t2.push(Pl(Q.options, $.option, Cs.options), Pl(Q.optionsWithChoice, $.optionChoice, Cs.choices)), e2.includes(Z.MODIFIERS) && t2.push(Pl(Q.modifiers, $.modifier, Cs.modifiers), Pl(Q.modifiersWithChoice, $.modifierChoice, Cs.choices)), t2;
3862
3873
  }
3863
- var Nl = (e2) => {
3874
+ var Il = (e2) => {
3864
3875
  let t2 = e2?.values?.results ?? [], n2 = /* @__PURE__ */ new Map();
3865
3876
  for (let e3 of t2) e3.value !== void 0 && e3.count !== void 0 && n2.set(e3.value, e3.count);
3866
3877
  return n2;
3867
3878
  };
3868
- var Pl = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
3869
- var Fl = (e2) => {
3879
+ var Ll = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
3880
+ var Rl = (e2) => {
3870
3881
  let t2 = /* @__PURE__ */ new Map();
3871
3882
  for (let n2 of e2) n2.name !== void 0 && t2.set(n2.name, n2);
3872
3883
  return t2;
3873
3884
  };
3874
- async function Il(e2, t2) {
3875
- let n2 = await Va({ filter: { [Ss]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: Ml(t2) }, { fields: [q.CURRENCY] }), r2 = Fl(n2.aggregationData?.results ?? []);
3876
- return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds: Pl(r2.get(Q.options)), optionChoiceIdToCount: Nl(r2.get(Q.optionsWithChoice)), modifierIds: Pl(r2.get(Q.modifiers)), modifierChoiceIdToCount: Nl(r2.get(Q.modifiersWithChoice)), currency: n2.products?.[0]?.currency ?? void 0 };
3885
+ async function zl(e2, t2) {
3886
+ let n2 = await Va({ filter: { [Ss]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: Fl(t2) }, { fields: [q.CURRENCY] }), r2 = Rl(n2.aggregationData?.results ?? []);
3887
+ return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds: Ll(r2.get(Q.options)), optionChoiceIdToCount: Il(r2.get(Q.optionsWithChoice)), modifierIds: Ll(r2.get(Q.modifiers)), modifierChoiceIdToCount: Il(r2.get(Q.modifiersWithChoice)), currency: n2.products?.[0]?.currency ?? void 0 };
3877
3888
  }
3878
- var Ll = [Z.PRICE, Z.OPTIONS, Z.MODIFIERS];
3879
- async function Rl(e2, t2 = Ll) {
3880
- let n2 = await Il(e2, t2), r2 = await Ol([...n2.optionIds, ...n2.modifierIds]);
3881
- return { filters: [rl(n2.minPrice, n2.maxPrice), ...nl(Zi.PRODUCT_OPTION, r2, n2.optionIds, n2.optionChoiceIdToCount), ...nl(Zi.MODIFIER, r2, n2.modifierIds, n2.modifierChoiceIdToCount)].filter((e3) => e3 !== void 0), currency: n2.currency };
3889
+ var Bl = [Z.PRICE, Z.OPTIONS, Z.MODIFIERS];
3890
+ async function Vl(e2, t2 = Bl) {
3891
+ let n2 = await zl(e2, t2), r2 = await jl([...n2.optionIds, ...n2.modifierIds]);
3892
+ return { filters: [ol(n2.minPrice, n2.maxPrice), ...al(Zi.PRODUCT_OPTION, r2, n2.optionIds, n2.optionChoiceIdToCount), ...al(Zi.MODIFIER, r2, n2.modifierIds, n2.modifierChoiceIdToCount)].filter((e3) => e3 !== void 0), currency: n2.currency };
3882
3893
  }
3883
- var zl = (e2) => {
3884
- let t2 = xc(e2 ?? void 0);
3894
+ var Hl = (e2) => {
3895
+ let t2 = wc(e2 ?? void 0);
3885
3896
  if (!t2) return;
3886
- let n2 = Cc(e2);
3887
- return { id: t2, url: Sc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3897
+ let n2 = Ec(e2);
3898
+ return { id: t2, url: Tc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
3888
3899
  };
3889
- var Bl = ({ promotion: e2, position: t2 }) => {
3890
- if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image: zl(e2.media?.image), altText: e2.media?.altText ?? void 0, position: t2 };
3900
+ var Ul = ({ promotion: e2, position: t2 }) => {
3901
+ if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image: Hl(e2.media?.image), altText: e2.media?.altText ?? void 0, position: t2 };
3891
3902
  };
3892
- async function Vl(e2) {
3893
- return ((await yo(e2)).promotions ?? []).map(Bl).filter((e3) => e3 !== void 0);
3903
+ async function Wl(e2) {
3904
+ return ((await yo(e2)).promotions ?? []).map(Ul).filter((e3) => e3 !== void 0);
3894
3905
  }
3895
- var Hl = async (e2, t2, n2, r2) => {
3906
+ var Gl = async (e2, t2, n2, r2) => {
3896
3907
  let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 = Eo(n2, i2), o2 = Bo(n2), s2 = await Ns({ categoryId: e2, filters: i2, filterSelection: a2, sortType: o2, productsPerPage: r2 }), c2 = await Hs(s2.products, /* @__PURE__ */ new Map());
3897
3908
  return { page: s2, productGroupByGroupId: Object.fromEntries(c2), filterSelectionKey: Ws(a2), sortType: o2, productsPerPage: r2 };
3898
3909
  };
3899
- async function Ul(e2, t2, n2) {
3900
- let r2 = Rl(e2), [i2, a2, o2] = await Promise.all([Hl(e2, r2, t2, n2), r2, Vl(e2)]), { filters: s2, currency: c2 } = a2;
3910
+ async function Kl(e2, t2, n2) {
3911
+ let r2 = Vl(e2), [i2, a2, o2] = await Promise.all([Gl(e2, r2, t2, n2), r2, Wl(e2)]), { filters: s2, currency: c2 } = a2;
3901
3912
  return { filters: s2, currency: c2, promotions: o2, initialProductList: i2 };
3902
3913
  }
3903
- var Wl = `wixstores-storefront-builder:category-by-id-context-data`;
3904
- async function Gl(e2, t2, n2) {
3905
- let [r2, i2, a2] = await Promise.all([Fc(e2), oc(), Ul(e2, t2, n2)]);
3914
+ var ql = `wixstores-storefront-builder:category-by-id-context-data`;
3915
+ async function Jl(e2, t2, n2) {
3916
+ let [r2, i2, a2] = await Promise.all([Rc(e2), lc(), Kl(e2, t2, n2)]);
3906
3917
  return { category: r2, defaultLocationId: i2, ...a2 };
3907
3918
  }
3908
- function Kl(e2, t2) {
3919
+ function Yl(e2, t2) {
3909
3920
  let { search: n2 } = _i();
3910
- return ac(`${Wl}:${e2}:${t2}:${n2}`, () => Gl(e2, n2, t2));
3921
+ return cc(`${ql}:${e2}:${t2}:${n2}`, () => Jl(e2, n2, t2));
3911
3922
  }
3912
- function ql() {
3923
+ function Xl() {
3913
3924
  throw Error(`useCategoryByIdContext must not be used directly`);
3914
3925
  }
3915
- function Jl({ categoryValue: e2, productListValue: t2, children: n2 }) {
3926
+ function Zl({ categoryValue: e2, productListValue: t2, children: n2 }) {
3916
3927
  return (0, import_jsx_runtime.jsx)(import_category_info_context_provider.default, { value: e2, children: (0, import_jsx_runtime.jsx)(import_product_list_context_provider.default, { value: t2, children: n2 }) });
3917
3928
  }
3918
- var Yl = ({ children: e2, dataPromise: t2, productsPerPage: n2 }) => {
3919
- let r2 = pi(t2), i2 = fi(r2), a2 = nc(r2, n2);
3920
- return (0, import_jsx_runtime.jsx)(Jl, { categoryValue: i2, productListValue: a2, children: e2 });
3929
+ var Ql = ({ children: e2, dataPromise: t2, productsPerPage: n2 }) => {
3930
+ let r2 = pi(t2), i2 = fi(r2), a2 = ac(r2, n2);
3931
+ return (0, import_jsx_runtime.jsx)(Zl, { categoryValue: i2, productListValue: a2, children: e2 });
3921
3932
  };
3922
- var Xl = ({ children: e2, categoryId: n2, productsPerPage: r2 }) => {
3923
- let [i2] = (0, import_react.useState)(() => new Vr()), o2 = Kl(n2, r2);
3924
- return (0, import_jsx_runtime.jsx)(Wr, { client: i2, children: (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: null, children: (0, import_jsx_runtime.jsx)(Yl, { dataPromise: o2, productsPerPage: r2, children: e2 }) }) });
3933
+ var $l = ({ children: e2, categoryId: n2, productsPerPage: r2 }) => {
3934
+ let [i2] = (0, import_react.useState)(() => new Vr()), o2 = Yl(n2, r2);
3935
+ return (0, import_jsx_runtime.jsx)(Wr, { client: i2, children: (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: null, children: (0, import_jsx_runtime.jsx)(Ql, { dataPromise: o2, productsPerPage: r2, children: e2 }) }) });
3925
3936
  };
3926
- function Zl({ children: e2, categoryId: t2, productsPerPage: n2 = 20 }) {
3927
- return t2 ? (0, import_jsx_runtime.jsx)(Xl, { categoryId: t2, productsPerPage: n2, children: e2 }, t2) : null;
3937
+ function eu({ children: e2, categoryId: t2, productsPerPage: n2 = 20 }) {
3938
+ return t2 ? (0, import_jsx_runtime.jsx)($l, { categoryId: t2, productsPerPage: n2, children: e2 }, t2) : null;
3928
3939
  }
3929
- var Ql = Mn(`733f4f74-23d2-4b03-a0b1-1efdd5e3825b`);
3940
+ var tu = Mn(`733f4f74-23d2-4b03-a0b1-1efdd5e3825b`);
3930
3941
  // Annotate the CommonJS export names for ESM import in node:
3931
3942
  0 && (module.exports = {
3932
3943
  CategoryByIdContextProvider,