@depict-ai/ui 4.2.2 → 4.3.1

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.
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
100
100
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
101
101
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
102
102
  /*! Depict.ai search and product listing SDK */
103
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.2.2";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.1";
104
104
  const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
105
105
  const cols_at_size = [];
106
106
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1251,7 +1251,7 @@ function $f3db423dc84bc35d$export$9d4a4b669b1929ab(props) {
1251
1251
  }
1252
1252
  }));
1253
1253
  }
1254
- var $d66c35b5a6d6d926$var$_tmpl$ = ["<div", ' class="img-wrapper"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
1254
+ var $d66c35b5a6d6d926$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1255
1255
  $d66c35b5a6d6d926$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1256
1256
  $d66c35b5a6d6d926$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1257
1257
  function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
@@ -1267,17 +1267,9 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1267
1267
  const display = display_();
1268
1268
  return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
1269
1269
  });
1270
- const imageUrls = () => {
1271
- var _variantToUse;
1272
- return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
1273
- };
1274
1270
  const imageUrl = $3hooq$solidjs.createMemo(() => {
1275
- var _imageUrls;
1276
- return (_imageUrls = imageUrls()) === null || _imageUrls === void 0 ? void 0 : _imageUrls[0];
1277
- });
1278
- const secondaryImageUrl = $3hooq$solidjs.createMemo(() => {
1279
- var _imageUrls2;
1280
- return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
1271
+ var _variantToUse, _variantToUse$image_u;
1272
+ return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
1281
1273
  });
1282
1274
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1283
1275
  const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $3hooq$solidjs.createSignal($3hooq$solidjs.untrack(isExpanded_));
@@ -1329,24 +1321,6 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1329
1321
  }
1330
1322
  });
1331
1323
  }
1332
- })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1333
- get when() {
1334
- return secondaryImageUrl();
1335
- },
1336
- get children() {
1337
- return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
1338
- get src() {
1339
- return secondaryImageUrl();
1340
- },
1341
- get aspectRatio() {
1342
- return isExpanded_() ? 0.75 : 1;
1343
- },
1344
- "class": "secondary",
1345
- get autoAdjustAspectRatio() {
1346
- return isExpanded_() ? "smoothed" : false;
1347
- }
1348
- });
1349
- }
1350
1324
  })));
1351
1325
  }
1352
1326
  })), "<!--/-->", "<!--$-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
@@ -10158,7 +10132,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
10158
10132
  selected_filters_: selected_filters_,
10159
10133
  local_filter_cache_: local_filter_cache_,
10160
10134
  get_extra_filters_button_: get_extra_filters_button_,
10161
- get_extra_sorting_button_: get_extra_sorting_button_
10135
+ get_extra_sorting_button_: get_extra_sorting_button_,
10136
+ filterModalParent_: filterModalParent_
10162
10137
  } = _ref;
10163
10138
  const Self = () => {
10164
10139
  // This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
@@ -10285,7 +10260,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
10285
10260
  formatted_number_of_results_: formatted_number_of_results_,
10286
10261
  dismiss_modal_: dismiss_modal_,
10287
10262
  i18n_: i18n_
10288
- }));
10263
+ }, filterModalParent_));
10289
10264
  const {
10290
10265
  remove: remove
10291
10266
  } = $3hooq$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
@@ -11155,7 +11130,6 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
11155
11130
  market_: market_,
11156
11131
  showing_recommendation_rows_: showing_recommendation_rows_,
11157
11132
  layout_options_: layout_options_,
11158
- recommendations_layout_options_: recommendations_layout_options_,
11159
11133
  scroll_restoration_data_: scroll_restoration_data_,
11160
11134
  product_card_template_: product_card_template_,
11161
11135
  modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
@@ -11165,7 +11139,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
11165
11139
  content_search_enabled_: content_search_enabled_,
11166
11140
  content_blocks_by_row_: content_blocks_by_row_,
11167
11141
  modalVersionUsed_: modalVersionUsed_,
11168
- BackIcon_: BackIcon_
11142
+ BackIcon_: BackIcon_,
11143
+ filterModalParent_: filterModalParent_
11169
11144
  } = _ref;
11170
11145
  const [get_sorting] = current_sorting_;
11171
11146
  const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
@@ -11286,7 +11261,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
11286
11261
  formatted_number_of_results_: formatted_number_of_results_,
11287
11262
  local_filter_cache_: local_filter_cache_,
11288
11263
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
11289
- number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
11264
+ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
11265
+ filterModalParent_: filterModalParent_
11290
11266
  });
11291
11267
  const results_filters = $3hooq$solidjs.createSignal();
11292
11268
  const owner = $3hooq$solidjs.getOwner();
@@ -11509,12 +11485,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
11509
11485
  depict_api_: depict_api_,
11510
11486
  i18n_: i18n_,
11511
11487
  search_query_base_: search_query_base_,
11512
- get layout_options_() {
11513
- return $3hooq$solidjs.createMemo(() => {
11514
- var _recommendations_layo;
11515
- return (_recommendations_layo = recommendations_layout_options_ === null || recommendations_layout_options_ === void 0 ? void 0 : recommendations_layout_options_()) !== null && _recommendations_layo !== void 0 ? _recommendations_layo : layout_options_();
11516
- });
11517
- },
11488
+ layout_options_: layout_options_,
11518
11489
  showing_recommendation_rows_: showing_recommendation_rows_,
11519
11490
  product_card_template_: product_card_template_,
11520
11491
  all_products_loaded_: get_all_products_loaded
@@ -12012,15 +11983,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
12012
11983
  cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77($b1ea8d47bcf03111$export$ff7109b9b2b206ba(props.cols_at_size)),
12013
11984
  ...grid_spacing_override()
12014
11985
  })),
12015
- recommendations_layout_options_: $3hooq$solidjs.createMemo(() => {
12016
- const {
12017
- extra_depict_options: extra_depict_options
12018
- } = props;
12019
- return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
12020
- cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
12021
- ...grid_spacing_override()
12022
- } : undefined;
12023
- }),
11986
+ filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
12024
11987
  product_card_template_: product_card_template
12025
11988
  });
12026
11989
  }, "Entire SearchPage failed");
@@ -12892,7 +12855,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
12892
12855
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12893
12856
  sorting_query_param_: sorting_query_param_,
12894
12857
  filter_query_param_prefix_: filter_query_param_prefix_,
12895
- content_blocks_by_row_: content_blocks_by_row_
12858
+ content_blocks_by_row_: content_blocks_by_row_,
12859
+ filterModalParent_: filterModalParent_
12896
12860
  } = _ref;
12897
12861
  let results_for;
12898
12862
  let only_show_filters_opener_;
@@ -13085,6 +13049,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
13085
13049
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13086
13050
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
13087
13051
  sort_and_filter_disabled_: sort_and_filter_disabled_,
13052
+ filterModalParent_: filterModalParent_,
13088
13053
  ...extra_sort_and_filter_args_
13089
13054
  });
13090
13055
  $3hooq$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
@@ -13337,6 +13302,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
13337
13302
  category_sorting_open_: category_sorting_open_,
13338
13303
  expanded_filters_: expanded_filters_,
13339
13304
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13305
+ filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
13340
13306
  selected_filters_: selected_filters_,
13341
13307
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
13342
13308
  content_blocks_by_row_: () => props.content_blocks_by_row,
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.2.2";
13
+ export const version = "4.3.1";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -1337,9 +1337,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
1337
1337
  product_card_template: ProductCardTemplate<[TransformedDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<TransformedDisplay>>;
1338
1338
  content_blocks_by_row?: ContentBlocksByRow;
1339
1339
  on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
1340
- extra_depict_options?: {
1341
- recommendations_cols_at_size?: SDKColsAtSize;
1342
- };
1340
+ filterModalParent_?: HTMLElement | ShadowRoot;
1343
1341
  }): import("@depict-ai/utilishared").Node_Array;
1344
1342
  /**
1345
1343
  * Connects the height of the search field to the height of the aligner.
@@ -1379,7 +1377,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1379
1377
  * Open the modal with support for alignment.
1380
1378
  * @returns {void}
1381
1379
  */
1382
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1380
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1383
1381
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1384
1382
  export interface PageReplacer {
1385
1383
  readonly render_: () => Node_Array;
@@ -1456,5 +1454,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1456
1454
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1457
1455
  content_blocks_by_row?: ContentBlocksByRow;
1458
1456
  layout?: PossibleLayout;
1459
- }): import("@depict-ai/utilishared/latest").Node_Array;
1457
+ filterModalParent_?: HTMLElement | ShadowRoot;
1458
+ }): import("@depict-ai/utilishared").Node_Array;
1460
1459
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.2.2";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.1";
14
14
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
15
15
  const cols_at_size = [];
16
16
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1161,7 +1161,7 @@ function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
1161
1161
  }
1162
1162
  }));
1163
1163
  }
1164
- var $0c5b1686f971e5e7$var$_tmpl$ = ["<div", ' class="img-wrapper"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
1164
+ var $0c5b1686f971e5e7$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1165
1165
  $0c5b1686f971e5e7$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1166
1166
  $0c5b1686f971e5e7$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1167
1167
  function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
@@ -1177,17 +1177,9 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1177
1177
  const display = display_();
1178
1178
  return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
1179
1179
  });
1180
- const imageUrls = () => {
1181
- var _variantToUse;
1182
- return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
1183
- };
1184
1180
  const imageUrl = $b8hua$createMemo(() => {
1185
- var _imageUrls;
1186
- return (_imageUrls = imageUrls()) === null || _imageUrls === void 0 ? void 0 : _imageUrls[0];
1187
- });
1188
- const secondaryImageUrl = $b8hua$createMemo(() => {
1189
- var _imageUrls2;
1190
- return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
1181
+ var _variantToUse, _variantToUse$image_u;
1182
+ return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
1191
1183
  });
1192
1184
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1193
1185
  const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $b8hua$createSignal($b8hua$untrack(isExpanded_));
@@ -1239,24 +1231,6 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1239
1231
  }
1240
1232
  });
1241
1233
  }
1242
- })), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1243
- get when() {
1244
- return secondaryImageUrl();
1245
- },
1246
- get children() {
1247
- return $b8hua$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
1248
- get src() {
1249
- return secondaryImageUrl();
1250
- },
1251
- get aspectRatio() {
1252
- return isExpanded_() ? 0.75 : 1;
1253
- },
1254
- "class": "secondary",
1255
- get autoAdjustAspectRatio() {
1256
- return isExpanded_() ? "smoothed" : false;
1257
- }
1258
- });
1259
- }
1260
1234
  })));
1261
1235
  }
1262
1236
  })), "<!--/-->", "<!--$-->", $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
@@ -10068,7 +10042,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
10068
10042
  selected_filters_: selected_filters_,
10069
10043
  local_filter_cache_: local_filter_cache_,
10070
10044
  get_extra_filters_button_: get_extra_filters_button_,
10071
- get_extra_sorting_button_: get_extra_sorting_button_
10045
+ get_extra_sorting_button_: get_extra_sorting_button_,
10046
+ filterModalParent_: filterModalParent_
10072
10047
  } = _ref;
10073
10048
  const Self = () => {
10074
10049
  // This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
@@ -10195,7 +10170,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
10195
10170
  formatted_number_of_results_: formatted_number_of_results_,
10196
10171
  dismiss_modal_: dismiss_modal_,
10197
10172
  i18n_: i18n_
10198
- }));
10173
+ }, filterModalParent_));
10199
10174
  const {
10200
10175
  remove: remove
10201
10176
  } = $b8hua$javascript_media_query("(max-width:651px)", _ref3 => {
@@ -11065,7 +11040,6 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
11065
11040
  market_: market_,
11066
11041
  showing_recommendation_rows_: showing_recommendation_rows_,
11067
11042
  layout_options_: layout_options_,
11068
- recommendations_layout_options_: recommendations_layout_options_,
11069
11043
  scroll_restoration_data_: scroll_restoration_data_,
11070
11044
  product_card_template_: product_card_template_,
11071
11045
  modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
@@ -11075,7 +11049,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
11075
11049
  content_search_enabled_: content_search_enabled_,
11076
11050
  content_blocks_by_row_: content_blocks_by_row_,
11077
11051
  modalVersionUsed_: modalVersionUsed_,
11078
- BackIcon_: BackIcon_
11052
+ BackIcon_: BackIcon_,
11053
+ filterModalParent_: filterModalParent_
11079
11054
  } = _ref;
11080
11055
  const [get_sorting] = current_sorting_;
11081
11056
  const all_products_loaded_ = $b8hua$createSignal(false);
@@ -11196,7 +11171,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
11196
11171
  formatted_number_of_results_: formatted_number_of_results_,
11197
11172
  local_filter_cache_: local_filter_cache_,
11198
11173
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
11199
- number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
11174
+ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
11175
+ filterModalParent_: filterModalParent_
11200
11176
  });
11201
11177
  const results_filters = $b8hua$createSignal();
11202
11178
  const owner = $b8hua$getOwner();
@@ -11419,12 +11395,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
11419
11395
  depict_api_: depict_api_,
11420
11396
  i18n_: i18n_,
11421
11397
  search_query_base_: search_query_base_,
11422
- get layout_options_() {
11423
- return $b8hua$createMemo(() => {
11424
- var _recommendations_layo;
11425
- return (_recommendations_layo = recommendations_layout_options_ === null || recommendations_layout_options_ === void 0 ? void 0 : recommendations_layout_options_()) !== null && _recommendations_layo !== void 0 ? _recommendations_layo : layout_options_();
11426
- });
11427
- },
11398
+ layout_options_: layout_options_,
11428
11399
  showing_recommendation_rows_: showing_recommendation_rows_,
11429
11400
  product_card_template_: product_card_template_,
11430
11401
  all_products_loaded_: get_all_products_loaded
@@ -11922,15 +11893,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
11922
11893
  cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
11923
11894
  ...grid_spacing_override()
11924
11895
  })),
11925
- recommendations_layout_options_: $b8hua$createMemo(() => {
11926
- const {
11927
- extra_depict_options: extra_depict_options
11928
- } = props;
11929
- return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
11930
- cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
11931
- ...grid_spacing_override()
11932
- } : undefined;
11933
- }),
11896
+ filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
11934
11897
  product_card_template_: product_card_template
11935
11898
  });
11936
11899
  }, "Entire SearchPage failed");
@@ -12802,7 +12765,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
12802
12765
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12803
12766
  sorting_query_param_: sorting_query_param_,
12804
12767
  filter_query_param_prefix_: filter_query_param_prefix_,
12805
- content_blocks_by_row_: content_blocks_by_row_
12768
+ content_blocks_by_row_: content_blocks_by_row_,
12769
+ filterModalParent_: filterModalParent_
12806
12770
  } = _ref;
12807
12771
  let results_for;
12808
12772
  let only_show_filters_opener_;
@@ -12995,6 +12959,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
12995
12959
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12996
12960
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
12997
12961
  sort_and_filter_disabled_: sort_and_filter_disabled_,
12962
+ filterModalParent_: filterModalParent_,
12998
12963
  ...extra_sort_and_filter_args_
12999
12964
  });
13000
12965
  $b8hua$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
@@ -13247,6 +13212,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
13247
13212
  category_sorting_open_: category_sorting_open_,
13248
13213
  expanded_filters_: expanded_filters_,
13249
13214
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13215
+ filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
13250
13216
  selected_filters_: selected_filters_,
13251
13217
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
13252
13218
  content_blocks_by_row_: () => props.content_blocks_by_row,
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
94
94
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
95
95
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
96
96
  /*! Depict.ai search and product listing SDK */
97
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.2.2";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.1";
98
98
  const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
99
99
  const cols_at_size = [];
100
100
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1197,7 +1197,7 @@ function $d212a67662c5cf38$export$9d4a4b669b1929ab(props) {
1197
1197
  }
1198
1198
  }));
1199
1199
  }
1200
- var $1ae437d7d388a66e$var$_tmpl$ = ["<div", ' class="img-wrapper"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
1200
+ var $1ae437d7d388a66e$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1201
1201
  $1ae437d7d388a66e$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
1202
1202
  $1ae437d7d388a66e$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
1203
1203
  function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
@@ -1212,9 +1212,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1212
1212
  const display = display_();
1213
1213
  return display?.variant_displays[display?.variant_index];
1214
1214
  });
1215
- const imageUrls = () => variantToUse()?.image_urls;
1216
- const imageUrl = $5vyXB$solidjs.createMemo(() => imageUrls()?.[0]);
1217
- const secondaryImageUrl = $5vyXB$solidjs.createMemo(() => imageUrls()?.[1]);
1215
+ const imageUrl = $5vyXB$solidjs.createMemo(() => variantToUse()?.image_urls?.[0]);
1218
1216
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1219
1217
  const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $5vyXB$solidjs.createSignal($5vyXB$solidjs.untrack(isExpanded_));
1220
1218
  const [animationEffectExists, setAnimationEffectExists] = $5vyXB$solidjs.createSignal(false);
@@ -1256,24 +1254,6 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1256
1254
  }
1257
1255
  });
1258
1256
  }
1259
- })), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
1260
- get when() {
1261
- return secondaryImageUrl();
1262
- },
1263
- get children() {
1264
- return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
1265
- get src() {
1266
- return secondaryImageUrl();
1267
- },
1268
- get aspectRatio() {
1269
- return isExpanded_() ? 0.75 : 1;
1270
- },
1271
- "class": "secondary",
1272
- get autoAdjustAspectRatio() {
1273
- return isExpanded_() ? "smoothed" : false;
1274
- }
1275
- });
1276
- }
1277
1257
  })));
1278
1258
  }
1279
1259
  })), "<!--/-->", "<!--$-->", $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
@@ -9514,7 +9494,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
9514
9494
  selected_filters_: selected_filters_,
9515
9495
  local_filter_cache_: local_filter_cache_,
9516
9496
  get_extra_filters_button_: get_extra_filters_button_,
9517
- get_extra_sorting_button_: get_extra_sorting_button_
9497
+ get_extra_sorting_button_: get_extra_sorting_button_,
9498
+ filterModalParent_: filterModalParent_
9518
9499
  }) {
9519
9500
  const Self = () => {
9520
9501
  // This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
@@ -9626,7 +9607,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
9626
9607
  formatted_number_of_results_: formatted_number_of_results_,
9627
9608
  dismiss_modal_: dismiss_modal_,
9628
9609
  i18n_: i18n_
9629
- }));
9610
+ }, filterModalParent_));
9630
9611
  const {
9631
9612
  remove: remove
9632
9613
  } = $5vyXB$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
@@ -10447,7 +10428,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
10447
10428
  market_: market_,
10448
10429
  showing_recommendation_rows_: showing_recommendation_rows_,
10449
10430
  layout_options_: layout_options_,
10450
- recommendations_layout_options_: recommendations_layout_options_,
10451
10431
  scroll_restoration_data_: scroll_restoration_data_,
10452
10432
  product_card_template_: product_card_template_,
10453
10433
  modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
@@ -10457,7 +10437,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
10457
10437
  content_search_enabled_: content_search_enabled_,
10458
10438
  content_blocks_by_row_: content_blocks_by_row_,
10459
10439
  modalVersionUsed_: modalVersionUsed_,
10460
- BackIcon_: BackIcon_
10440
+ BackIcon_: BackIcon_,
10441
+ filterModalParent_: filterModalParent_
10461
10442
  }) {
10462
10443
  const [get_sorting] = current_sorting_;
10463
10444
  const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
@@ -10563,7 +10544,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
10563
10544
  formatted_number_of_results_: formatted_number_of_results_,
10564
10545
  local_filter_cache_: local_filter_cache_,
10565
10546
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10566
- number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
10547
+ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
10548
+ filterModalParent_: filterModalParent_
10567
10549
  });
10568
10550
  const results_filters = $5vyXB$solidjs.createSignal();
10569
10551
  const owner = $5vyXB$solidjs.getOwner();
@@ -10781,9 +10763,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
10781
10763
  depict_api_: depict_api_,
10782
10764
  i18n_: i18n_,
10783
10765
  search_query_base_: search_query_base_,
10784
- get layout_options_() {
10785
- return $5vyXB$solidjs.createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
10786
- },
10766
+ layout_options_: layout_options_,
10787
10767
  showing_recommendation_rows_: showing_recommendation_rows_,
10788
10768
  product_card_template_: product_card_template_,
10789
10769
  all_products_loaded_: get_all_products_loaded
@@ -11191,15 +11171,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
11191
11171
  cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77($ab7c6c7911bae2f5$export$ff7109b9b2b206ba(props.cols_at_size)),
11192
11172
  ...grid_spacing_override()
11193
11173
  })),
11194
- recommendations_layout_options_: $5vyXB$solidjs.createMemo(() => {
11195
- const {
11196
- extra_depict_options: extra_depict_options
11197
- } = props;
11198
- return extra_depict_options?.recommendations_cols_at_size ? {
11199
- cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
11200
- ...grid_spacing_override()
11201
- } : undefined;
11202
- }),
11174
+ filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
11203
11175
  product_card_template_: product_card_template
11204
11176
  });
11205
11177
  }, "Entire SearchPage failed");
@@ -11953,7 +11925,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
11953
11925
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
11954
11926
  sorting_query_param_: sorting_query_param_,
11955
11927
  filter_query_param_prefix_: filter_query_param_prefix_,
11956
- content_blocks_by_row_: content_blocks_by_row_
11928
+ content_blocks_by_row_: content_blocks_by_row_,
11929
+ filterModalParent_: filterModalParent_
11957
11930
  }) {
11958
11931
  let results_for;
11959
11932
  let only_show_filters_opener_;
@@ -12121,6 +12094,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
12121
12094
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12122
12095
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
12123
12096
  sort_and_filter_disabled_: sort_and_filter_disabled_,
12097
+ filterModalParent_: filterModalParent_,
12124
12098
  ...extra_sort_and_filter_args_
12125
12099
  });
12126
12100
  $5vyXB$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
@@ -12362,6 +12336,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
12362
12336
  category_sorting_open_: category_sorting_open_,
12363
12337
  expanded_filters_: expanded_filters_,
12364
12338
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12339
+ filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
12365
12340
  selected_filters_: selected_filters_,
12366
12341
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12367
12342
  content_blocks_by_row_: () => props.content_blocks_by_row,
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.2.2";
13
+ export const version = "4.3.1";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -1337,9 +1337,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
1337
1337
  product_card_template: ProductCardTemplate<[TransformedDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<TransformedDisplay>>;
1338
1338
  content_blocks_by_row?: ContentBlocksByRow;
1339
1339
  on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
1340
- extra_depict_options?: {
1341
- recommendations_cols_at_size?: SDKColsAtSize;
1342
- };
1340
+ filterModalParent_?: HTMLElement | ShadowRoot;
1343
1341
  }): import("@depict-ai/utilishared").Node_Array;
1344
1342
  /**
1345
1343
  * Connects the height of the search field to the height of the aligner.
@@ -1379,7 +1377,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1379
1377
  * Open the modal with support for alignment.
1380
1378
  * @returns {void}
1381
1379
  */
1382
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1380
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1383
1381
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1384
1382
  export interface PageReplacer {
1385
1383
  readonly render_: () => Node_Array;
@@ -1456,5 +1454,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1456
1454
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1457
1455
  content_blocks_by_row?: ContentBlocksByRow;
1458
1456
  layout?: PossibleLayout;
1459
- }): import("@depict-ai/utilishared/latest").Node_Array;
1457
+ filterModalParent_?: HTMLElement | ShadowRoot;
1458
+ }): import("@depict-ai/utilishared").Node_Array;
1460
1459
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";