@depict-ai/ui 4.10.10 → 4.10.12

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.
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.10.10";
14
+ export const version = "4.10.12";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -632,14 +632,19 @@ export function ShopifyContainedImage(props: {
632
632
  class?: string;
633
633
  imgProps?: Omit<Parameters<typeof ShopifyResponsiveImg>[0], "size" | "src">;
634
634
  }): HTMLDivElement;
635
+ export type ImageResizer = (url: string, width: number) => string;
635
636
  /**
636
637
  * Hacks ShopifyContainedImage work even for non-shopify image urls by forcing the format to be WebP
637
638
  */
638
- export function ModernResponsiveContainedImage(props: Parameters<typeof ShopifyContainedImage>[0]): import("solid-js").JSX.Element;
639
+ export function ModernResponsiveContainedImage(props: Parameters<typeof ShopifyContainedImage>[0] & {
640
+ imageResizer_?: ImageResizer;
641
+ }): import("solid-js").JSX.Element;
639
642
  /**
640
643
  * Wrapper around ShopifyResponsiveImg (component that just does an image, without wrapping in div). The wrapper allows ShopifyResponsiveImg to work both with shopify CDN URLs and arbitrary URLs, where the latter will be fed through Depict's cloudflare resizer.
641
644
  */
642
- export function ModernResponsiveImage(props: Parameters<typeof ShopifyResponsiveImg>[0]): import("solid-js").JSX.Element;
645
+ export function ModernResponsiveImage(props: Parameters<typeof ShopifyResponsiveImg>[0] & {
646
+ imageResizer_?: ImageResizer;
647
+ }): import("solid-js").JSX.Element;
643
648
  export function CrossIcon(props?: JSX.SvgSVGAttributes<SVGSVGElement>): SVGElement;
644
649
  /**
645
650
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -730,7 +735,8 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
730
735
  sorting_query_param_,
731
736
  filter_query_param_prefix_,
732
737
  setSearchFieldOuterWidth_,
733
- forceUseDiv_
738
+ forceUseDiv_,
739
+ imageResizer_
734
740
  }: {
735
741
  search_field_value_: Signal<string>;
736
742
  get_search_query_: Accessor<string>;
@@ -767,6 +773,7 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
767
773
  enable_category_suggestions_?: boolean;
768
774
  dont_sync_search_field_value_except_on_submit_?: boolean;
769
775
  content_search_enabled_: Accessor<boolean>;
776
+ imageResizer_?: ImageResizer;
770
777
  }): HTMLDivElement[];
771
778
  export const SearchModalV2: typeof RawSearchModalV2;
772
779
  /**
@@ -855,6 +862,13 @@ export type BaseProviderConfig<InputDisplay extends Display, PossibleTransformed
855
862
  * We recommend to just use an incrementing number for this, e.g. "1", "2", "3", ...
856
863
  */
857
864
  uniqueInstanceKeyForState?: string;
865
+ /**
866
+ * Optional function to override the default image resizing CDN. When provided, this function is called
867
+ * with the original image URL and desired width, and should return the resized image URL.
868
+ * By default, Depict uses Cloudflare's image resizer for non-Shopify images, and Shopify's built-in
869
+ * resizer for Shopify CDN images.
870
+ */
871
+ imageResizer?: (url: string, width: number) => string;
858
872
  } & (InputDisplay extends ModernDisplay ? "page_url" extends keyof InputDisplay["variant_displays"][number] ? {
859
873
  /**
860
874
  * Functions that take in a list of categories, content search results or products and then can transform or enrich the data for each category, content search result or product card in a batched way.
@@ -1150,7 +1164,8 @@ export function LookCard({
1150
1164
  placeholderImageAspectRatio_,
1151
1165
  animationDuration_,
1152
1166
  priceFormatting_,
1153
- pseudoRouter_
1167
+ pseudoRouter_,
1168
+ imageResizer_
1154
1169
  }: {
1155
1170
  display_: Accessor<FeaturedInDisplay | null>;
1156
1171
  FavoriteButton_?: (props: {
@@ -1161,6 +1176,7 @@ export function LookCard({
1161
1176
  expandedLooksSignal_: Signal<Set<symbol>>;
1162
1177
  priceFormatting_: Accessor<plp_shared_i18n["price_formatting_"]>;
1163
1178
  pseudoRouter_: PseudoRouter;
1179
+ imageResizer_?: ImageResizer;
1164
1180
  }): JSX.Element;
1165
1181
  /**
1166
1182
  * Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
@@ -1193,6 +1209,7 @@ export function LooksSliderOrGrid(props: {
1193
1209
  };
1194
1210
  onNavigation_?: OnNavigation;
1195
1211
  priceFormatting_: plp_shared_i18n["price_formatting_"];
1212
+ imageResizer_?: (url: string, width: number) => string;
1196
1213
  }): HTMLDivElement;
1197
1214
  export const prefixes_to_preserve_in_history_dot_state: Set<string>;
1198
1215
  /**
@@ -1427,6 +1444,7 @@ type GeneralConstructorOptions<InputDisplay extends Display, OutputDisplay exten
1427
1444
  enable_content_search?: boolean;
1428
1445
  unique_instance_key_for_state?: string;
1429
1446
  searchModalComponent: typeof SearchModalV2<InputDisplay, OutputDisplay> | typeof ClassicSearchModal;
1447
+ imageResizer_?: (url: string, width: number) => string;
1430
1448
  disable_scrolling_during_modal?: boolean;
1431
1449
  bottom_distance_under_modal?: Accessor<number | undefined>;
1432
1450
  override_modal_element?: HTMLElement | ShadowRoot;
@@ -1462,6 +1480,7 @@ export class DepictSearch<InputDisplay extends Display, OutputDisplay extends Mo
1462
1480
  display_transformers,
1463
1481
  api,
1464
1482
  searchModalComponent,
1483
+ imageResizer_,
1465
1484
  disable_scrolling_during_modal,
1466
1485
  bottom_distance_under_modal,
1467
1486
  override_modal_element,
@@ -1541,7 +1560,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1541
1560
  * Open the modal with support for alignment.
1542
1561
  * @returns {void}
1543
1562
  */
1544
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1563
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1545
1564
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1546
1565
  export interface PageReplacer {
1547
1566
  readonly render_: () => Node_Array;
@@ -1623,5 +1642,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1623
1642
  filterModalParent_?: HTMLElement | ShadowRoot;
1624
1643
  showSliderArrow_?: boolean;
1625
1644
  hideCount0FilterOptions_?: boolean;
1626
- }): import("@depict-ai/utilishared").Node_Array;
1645
+ imageResizer_?: (url: string, width: number) => string;
1646
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1627
1647
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.10";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.12";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $i7OB2$createSignal(false);
13
13
  $i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
@@ -6107,7 +6107,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
6107
6107
  })));
6108
6108
  return container;
6109
6109
  }
6110
- const $70bb27cc6be01fc7$var$customUrls = (url, width) => {
6110
+ const $70bb27cc6be01fc7$var$defaultCustomUrls = (url, width) => {
6111
6111
  if (url?.startsWith?.("https://cdn.shopify.com"))
6112
6112
  // The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
6113
6113
  // but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
@@ -6116,18 +6116,21 @@ const $70bb27cc6be01fc7$var$customUrls = (url, width) => {
6116
6116
  return `https://app.depict.ai/cdn-cgi/image/width=${width},format=auto/${url}`;
6117
6117
  };
6118
6118
  function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
6119
+ const resolvedCustomUrls = props.imageResizer_ ?? $70bb27cc6be01fc7$var$defaultCustomUrls;
6119
6120
  return $i7OB2$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $i7OB2$mergeProps1(props, {
6120
6121
  get imgProps() {
6121
6122
  return {
6122
6123
  ...props.imgProps,
6123
- customUrls: $70bb27cc6be01fc7$var$customUrls
6124
+ customUrls: resolvedCustomUrls
6124
6125
  };
6125
6126
  }
6126
6127
  }));
6127
6128
  }
6128
6129
  function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
6129
6130
  return $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps1(props, {
6130
- customUrls: $70bb27cc6be01fc7$var$customUrls
6131
+ get customUrls() {
6132
+ return props.imageResizer_ ?? $70bb27cc6be01fc7$var$defaultCustomUrls;
6133
+ }
6131
6134
  }));
6132
6135
  }
6133
6136
  var $f916989c4b1be9f7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
@@ -6137,7 +6140,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6137
6140
  router_: router_,
6138
6141
  setAspectRatioWas_: setAspectRatioWas_,
6139
6142
  mediaUrl_: mediaUrl_,
6140
- aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
6143
+ aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
6144
+ imageResizer_: imageResizer_
6141
6145
  }) {
6142
6146
  let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
6143
6147
  const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
@@ -6185,7 +6189,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6185
6189
  sizeHeight: () => wrapperSize()?.[1]?.() || 0,
6186
6190
  src: mediaUrl_,
6187
6191
  "class": "d-standard-content",
6188
- onDecoded: () => setHasLoaded(true)
6192
+ onDecoded: () => setHasLoaded(true),
6193
+ imageResizer_: imageResizer_
6189
6194
  });
6190
6195
  }
6191
6196
  }), $i7OB2$createComponent((0, $i7OB2$Match), {
@@ -6199,7 +6204,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
6199
6204
  }
6200
6205
  }));
6201
6206
  }
6202
- function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_) {
6207
+ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
6203
6208
  let hasSeenContentBlock = false;
6204
6209
  const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
6205
6210
  const contentComponents = new Map();
@@ -6254,7 +6259,8 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
6254
6259
  ...prev.aspectRatios,
6255
6260
  [componentCacheKey]: Math.round(aspectRatio * 100) / 100
6256
6261
  }
6257
- }))
6262
+ })),
6263
+ imageResizer_: imageResizer_
6258
6264
  });
6259
6265
  contentComponents.set(componentCacheKey, component);
6260
6266
  }
@@ -6316,7 +6322,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6316
6322
  filterModalParent_: filterModalParent_,
6317
6323
  showSliderArrow_: showSliderArrow_,
6318
6324
  hideCount0FilterOptions_: hideCount0FilterOptions_,
6319
- switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
6325
+ switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
6326
+ imageResizer_: imageResizer_
6320
6327
  }) {
6321
6328
  let results_for;
6322
6329
  let only_show_filters_opener_;
@@ -6412,7 +6419,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6412
6419
  setMetaRequestsForQuery(prev => prev.set(query.id_type_ + query.id_to_query_for_, listing));
6413
6420
  return result;
6414
6421
  }));
6415
- const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading);
6422
+ const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading, imageResizer_);
6416
6423
  const countOfProductsForUI = $3ef0154d1cf118ed$export$a86bc18439445599(plp_products_, all_products_loaded_, currentlyLoadedDisplays);
6417
6424
  const available_sortings_ = $i7OB2$createMemo(() => plp_products_()?.sorts?.map(sort => ({
6418
6425
  ...sort,
@@ -6923,7 +6930,8 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
6923
6930
  outerRef_: outerRef_,
6924
6931
  animationDuration_: animationDuration_,
6925
6932
  priceFormatting_: priceFormatting_,
6926
- pseudoRouter_: pseudoRouter_
6933
+ pseudoRouter_: pseudoRouter_,
6934
+ imageResizer_: imageResizer_
6927
6935
  }) {
6928
6936
  const variantToUse = $i7OB2$createMemo(() => {
6929
6937
  const display = display_();
@@ -6974,7 +6982,8 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
6974
6982
  },
6975
6983
  imgProps: {
6976
6984
  keyRatioUpdating: true
6977
- }
6985
+ },
6986
+ imageResizer_: imageResizer_
6978
6987
  });
6979
6988
  }
6980
6989
  })));
@@ -7123,7 +7132,8 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
7123
7132
  supportsHover_: supportsHover_,
7124
7133
  priceFormatting_: priceFormatting_,
7125
7134
  pseudoRouter_: pseudoRouter_,
7126
- containerHeight_: containerHeight_
7135
+ containerHeight_: containerHeight_,
7136
+ imageResizer_: imageResizer_
7127
7137
  }) {
7128
7138
  let isAffectedByChromeBug = false;
7129
7139
  // If the user requests the drawer to be expanded or not
@@ -7159,6 +7169,7 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
7159
7169
  userWantsExpandedSignal_: userWantsExpandedSignal_,
7160
7170
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
7161
7171
  priceFormatting_: priceFormatting_,
7172
+ imageResizer_: imageResizer_,
7162
7173
  outerRef_: el => $i7OB2$createEffect(() => {
7163
7174
  if (index !== 0) return;
7164
7175
  const resizeObserver = new ResizeObserver($i7OB2$catchify1(records => setLookItemHeight(records.at(-1).contentRect.height)));
@@ -7201,7 +7212,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
7201
7212
  placeholderImageAspectRatio_: placeholderImageAspectRatio_,
7202
7213
  animationDuration_: animationDuration_,
7203
7214
  priceFormatting_: priceFormatting_,
7204
- pseudoRouter_: pseudoRouter_
7215
+ pseudoRouter_: pseudoRouter_,
7216
+ imageResizer_: imageResizer_
7205
7217
  }) {
7206
7218
  let container;
7207
7219
  const useWantsExpandedSignal_ = $i7OB2$createSignal(false);
@@ -7266,7 +7278,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
7266
7278
  return display_()?.image_urls?.[0];
7267
7279
  },
7268
7280
  aspectRatio: placeholderImageAspectRatio_,
7269
- autoAdjustAspectRatio: true
7281
+ autoAdjustAspectRatio: true,
7282
+ imageResizer_: imageResizer_
7270
7283
  });
7271
7284
  }
7272
7285
  })), $i7OB2$escape($i7OB2$createComponent((0, $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae), {
@@ -7278,7 +7291,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
7278
7291
  FavoriteButton_: FavoriteButton_,
7279
7292
  priceFormatting_: priceFormatting_,
7280
7293
  pseudoRouter_: pseudoRouter_,
7281
- containerHeight_: containerHeight_
7294
+ containerHeight_: containerHeight_,
7295
+ imageResizer_: imageResizer_
7282
7296
  })));
7283
7297
  }
7284
7298
 
@@ -7534,7 +7548,8 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
7534
7548
  animationDuration_: expandingAnimationDuration,
7535
7549
  expandedLooksSignal_: $07ef910e8ef6b783$var$expandedLooksSignal_,
7536
7550
  priceFormatting_: () => props.priceFormatting_,
7537
- pseudoRouter_: pseudoRouter
7551
+ pseudoRouter_: pseudoRouter,
7552
+ imageResizer_: props.imageResizer_
7538
7553
  }),
7539
7554
  recommendations_resource_: looksResource,
7540
7555
  title_: () => props.title_,
@@ -8938,7 +8953,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
8938
8953
  merchant_: merchant_,
8939
8954
  keyboardNavigationGroupIndex_: keyboardNavigationGroupIndex_,
8940
8955
  index_: index_,
8941
- selected_index_: [read_selected_index_, write_selected_index_]
8956
+ selected_index_: [read_selected_index_, write_selected_index_],
8957
+ imageResizer_: imageResizer_
8942
8958
  }) {
8943
8959
  const href = $i7OB2$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
8944
8960
  const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps1(props, {
@@ -8957,7 +8973,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
8957
8973
  tabIndex: -1,
8958
8974
  get children() {
8959
8975
  return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
8960
- image_urls_: image_urls
8976
+ image_urls_: image_urls,
8977
+ imageResizer_: imageResizer_
8961
8978
  })));
8962
8979
  }
8963
8980
  })), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
@@ -8984,7 +9001,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
8984
9001
  })));
8985
9002
  }
8986
9003
  function $4ce5b8892775b62d$export$ea41102db9bd68c3({
8987
- image_urls_: image_urls_
9004
+ image_urls_: image_urls_,
9005
+ imageResizer_: imageResizer_
8988
9006
  }) {
8989
9007
  return $i7OB2$createComponent((0, $i7OB2$Show), {
8990
9008
  get when() {
@@ -9007,7 +9025,8 @@ function $4ce5b8892775b62d$export$ea41102db9bd68c3({
9007
9025
  },
9008
9026
  imgProps: {
9009
9027
  style: "object-fit: cover;"
9010
- }
9028
+ },
9029
+ imageResizer_: imageResizer_
9011
9030
  })
9012
9031
  });
9013
9032
  }
@@ -9031,7 +9050,8 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
9031
9050
  selected_index_: selected_index_,
9032
9051
  modalLayoutStacked_: modalLayoutStacked_,
9033
9052
  showPlaceholders_: showPlaceholders_,
9034
- currently_showing_suggestions_: [, set_currently_showing_suggestions]
9053
+ currently_showing_suggestions_: [, set_currently_showing_suggestions],
9054
+ imageResizer_: imageResizer_
9035
9055
  }) {
9036
9056
  const listings_by_id = $i7OB2$createMemo(() => Object.fromEntries((listing_suggestions_() || []).map(listing => [listing.listing_id, listing])));
9037
9057
  const productCards = $i7OB2$createComponent((0, $i7OB2$For), {
@@ -9049,7 +9069,8 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
9049
9069
  merchant_: merchant_,
9050
9070
  keyboardNavigationGroupIndex_: itemIndex_,
9051
9071
  index_: index,
9052
- selected_index_: selected_index_
9072
+ selected_index_: selected_index_,
9073
+ imageResizer_: imageResizer_
9053
9074
  });
9054
9075
  }
9055
9076
  });
@@ -9358,7 +9379,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
9358
9379
  sorting_query_param_: sorting_query_param_,
9359
9380
  filter_query_param_prefix_: filter_query_param_prefix_,
9360
9381
  setSearchFieldOuterWidth_: setSearchFieldOuterWidth_,
9361
- forceUseDiv_: forceUseDiv_
9382
+ forceUseDiv_: forceUseDiv_,
9383
+ imageResizer_: imageResizer_
9362
9384
  }) {
9363
9385
  let on_enter_in_search_field_function;
9364
9386
  let listingSuggestionsDebounceTimeout;
@@ -9564,7 +9586,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
9564
9586
  },
9565
9587
  imgProps: {
9566
9588
  alt: "Product image"
9567
- }
9589
+ },
9590
+ imageResizer_: imageResizer_
9568
9591
  }),
9569
9592
  ...instant_results_options_
9570
9593
  })));
@@ -9593,7 +9616,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
9593
9616
  selected_index_: selected_index_,
9594
9617
  currently_showing_suggestions_: currently_showing_suggestions_,
9595
9618
  modalLayoutStacked_: modalLayoutStacked_,
9596
- showPlaceholders_: () => !suggestions_response_.latest
9619
+ showPlaceholders_: () => !suggestions_response_.latest,
9620
+ imageResizer_: imageResizer_
9597
9621
  });
9598
9622
  }
9599
9623
  });
@@ -12277,6 +12301,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
12277
12301
  display_transformers: display_transformers,
12278
12302
  api: api,
12279
12303
  searchModalComponent: searchModalComponent,
12304
+ imageResizer_: imageResizer_,
12280
12305
  // Stuff needed for non-standard customer deployments that we shouldn't actually expose
12281
12306
  disable_scrolling_during_modal = true,
12282
12307
  bottom_distance_under_modal: bottom_distance_under_modal,
@@ -12407,6 +12432,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
12407
12432
  },
12408
12433
  i18n_: i18n_,
12409
12434
  enable_category_suggestions_: enable_category_suggestions,
12435
+ imageResizer_: imageResizer_,
12410
12436
  disable_scrolling_: disable_scrolling_during_modal,
12411
12437
  bottom_distance_under_modal_: bottom_distance_under_modal
12412
12438
  }, override_modal_element);
@@ -13181,7 +13207,8 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
13181
13207
  product_card_template_: product_card_template,
13182
13208
  sorting_query_param_: sorting_query_param_,
13183
13209
  filter_query_param_prefix_: filter_query_param_prefix_,
13184
- switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
13210
+ switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
13211
+ imageResizer_: props.imageResizer_
13185
13212
  });
13186
13213
  }, "Entire CategoryPage failed");
13187
13214
  }