@depict-ai/ui 4.7.15 → 4.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ES10/index.cjs CHANGED
@@ -105,7 +105,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
105
105
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
106
106
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
107
107
  /*! Depict.ai search and product listing SDK */
108
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.15";
108
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.17";
109
109
 
110
110
  /**
111
111
  * Gets product_id (the thing we key the rendering on) from a display
@@ -355,6 +355,13 @@ function $a52942afacbced93$export$4a14175d33d81a96(_ref) {
355
355
  content_blocks_: content_blocks_,
356
356
  alwaysObserveCards_: alwaysObserveCards_
357
357
  } = _ref;
358
+ if (0, $52FdA$solidjsweb.isServer) return {
359
+ renderedDisplays_: $76012c4468a53d1f$export$43f0fb951fcb0c54({
360
+ displays_by_key_: displays_by_key_,
361
+ product_card_template_: product_card_template_,
362
+ content_blocks_: content_blocks_
363
+ })
364
+ };
358
365
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
359
366
  const targetToIndexMap_ = new Map();
360
367
  const indexToTargetMap_ = new Map();
@@ -12015,11 +12022,11 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12015
12022
  set_top_row_shortened_by_: set_top_row_shortened_by_
12016
12023
  }));
12017
12024
  const rendered_placeholders = $52FdA$solidjs.createMemo(() => {
12018
- if (get_should_have_placeholders_rendered()) return $52FdA$solidjs.children(() => $e3915574cfd3466c$export$f33414a4df0afd3f({
12025
+ if (get_should_have_placeholders_rendered()) return $e3915574cfd3466c$export$f33414a4df0afd3f({
12019
12026
  content_blocks_: content_blocks_,
12020
12027
  product_card_template_: product_card_template_,
12021
12028
  num_placeholders_: num_placeholders_
12022
- }));
12029
+ });
12023
12030
  });
12024
12031
  const layout = $52FdA$solidjs.createMemo(() => {
12025
12032
  const incoming_layout = layout_options_().layout;
@@ -12055,7 +12062,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12055
12062
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
12056
12063
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
12057
12064
  */
12058
- const product_cards_when_data = $52FdA$solidjs.children(() => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
12065
+ const product_cards_when_data = $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
12059
12066
  get fallback() {
12060
12067
  fallback_is_alive = true;
12061
12068
  $52FdA$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -12087,20 +12094,17 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12087
12094
  return suspense_contents;
12088
12095
  })();
12089
12096
  }
12090
- }));
12097
+ });
12091
12098
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
12092
- const listing_contents = $52FdA$solidjs.children(() => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
12099
+ const listing_contents = $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
12093
12100
  get when() {
12094
12101
  return !is_loading_();
12095
12102
  },
12096
12103
  get fallback() {
12097
- var _rendered_placeholder;
12098
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
12104
+ return rendered_placeholders();
12099
12105
  },
12100
- get children() {
12101
- return product_cards_when_data();
12102
- }
12103
- }));
12106
+ children: product_cards_when_data
12107
+ });
12104
12108
  return [$52FdA$solidjsweb.memo(() => $8edd3cf30d1fd8b4$export$a2cc176055f8f08(layout())), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
12105
12109
  get when() {
12106
12110
  return doesnt_have_content_blocks();
@@ -12120,9 +12124,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12120
12124
  class: "cards css-grid"
12121
12125
  },
12122
12126
  top_row_shortened_by_: top_row_shortened_by_,
12123
- get children() {
12124
- return listing_contents();
12125
- }
12127
+ children: listing_contents
12126
12128
  });
12127
12129
  },
12128
12130
  get children() {
@@ -12175,9 +12177,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12175
12177
  $52FdA$solidjsweb.insert(container, $52FdA$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
12176
12178
  }
12177
12179
  },
12178
- get children() {
12179
- return listing_contents();
12180
- }
12180
+ children: listing_contents
12181
12181
  });
12182
12182
  },
12183
12183
  get children() {
@@ -12198,9 +12198,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12198
12198
  element_attributes: {
12199
12199
  class: "cards"
12200
12200
  },
12201
- get children() {
12202
- return listing_contents();
12203
- }
12201
+ children: listing_contents
12204
12202
  });
12205
12203
  }
12206
12204
  });
package/ES10/index.d.ts CHANGED
@@ -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.7.15";
14
+ export const version = "4.7.17";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
package/ES10/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { add_to_version_info as $8tj43$add_to_version_info, catchify as $8tj43$catchify, dlog as $8tj43$dlog, camelCasifyObject as $8tj43$camelCasifyObject, useExpandingContainer as $8tj43$useExpandingContainer, fetch_retry as $8tj43$fetch_retry, base_url as $8tj43$base_url, dwarn as $8tj43$dwarn, slider_fractional_factory as $8tj43$slider_fractional_factory, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, slider_fading_factory as $8tj43$slider_fading_factory, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, observer as $8tj43$observer, javascript_media_query as $8tj43$javascript_media_query, queueMacroTask as $8tj43$queueMacroTask, findMostFrequentItem as $8tj43$findMostFrequentItem, standard_price_format as $8tj43$standard_price_format, instant_exec_on_suspect_history_change as $8tj43$instant_exec_on_suspect_history_change, deparallelize_no_drop as $8tj43$deparallelize_no_drop, ContainedImage as $8tj43$ContainedImage, buildThresholdList as $8tj43$buildThresholdList, make_asyncIterable_exiter as $8tj43$make_asyncIterable_exiter, href_change_ipns as $8tj43$href_change_ipns, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, use_href_accessor as $8tj43$use_href_accessor, get_session_id as $8tj43$get_session_id, add_version_query_params as $8tj43$add_version_query_params, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, snakeCasifyObject as $8tj43$snakeCasifyObject, make_url_with_query_params as $8tj43$make_url_with_query_params, sort_obj as $8tj43$sort_obj, insert_surfaces as $8tj43$insert_surfaces, is_debug as $8tj43$is_debug } from "@depict-ai/utilishared/ES10";
2
- import { createComponent as $8tj43$createComponent, insert as $8tj43$insert, template as $8tj43$template, getNextElement as $8tj43$getNextElement, mergeProps as $8tj43$mergeProps, effect as $8tj43$effect, className as $8tj43$className, isServer as $8tj43$isServer, spread as $8tj43$spread, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, getNextMarker as $8tj43$getNextMarker, classList as $8tj43$classList, setAttribute as $8tj43$setAttribute, use as $8tj43$use, style as $8tj43$style, setProperty as $8tj43$setProperty, Dynamic as $8tj43$Dynamic } from "solid-js/web";
2
+ import { isServer as $8tj43$isServer, createComponent as $8tj43$createComponent, insert as $8tj43$insert, template as $8tj43$template, getNextElement as $8tj43$getNextElement, mergeProps as $8tj43$mergeProps, effect as $8tj43$effect, className as $8tj43$className, spread as $8tj43$spread, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, getNextMarker as $8tj43$getNextMarker, classList as $8tj43$classList, setAttribute as $8tj43$setAttribute, use as $8tj43$use, style as $8tj43$style, setProperty as $8tj43$setProperty, Dynamic as $8tj43$Dynamic } from "solid-js/web";
3
3
  import { createContext as $8tj43$createContext, createSignal as $8tj43$createSignal, createMemo as $8tj43$createMemo, createEffect as $8tj43$createEffect, onCleanup as $8tj43$onCleanup, untrack as $8tj43$untrack, useContext as $8tj43$useContext, For as $8tj43$For, getOwner as $8tj43$getOwner, createResource as $8tj43$createResource, runWithOwner as $8tj43$runWithOwner, Show as $8tj43$Show, mergeProps as $8tj43$mergeProps1, Suspense as $8tj43$Suspense, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, splitProps as $8tj43$splitProps, on as $8tj43$on, batch as $8tj43$batch, createSelector as $8tj43$createSelector, children as $8tj43$children, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray } from "solid-js";
4
4
  import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import { ListenableSet as $8tj43$ListenableSet, catchify as $8tj43$catchify1, use_href_accessor as $8tj43$use_href_accessor1, queueMacroTask as $8tj43$queueMacroTask1, report as $8tj43$report1 } from "@depict-ai/utilishared/ES10";
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$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.7.15";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.17";
14
14
 
15
15
  /**
16
16
  * Gets product_id (the thing we key the rendering on) from a display
@@ -260,6 +260,13 @@ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
260
260
  content_blocks_: content_blocks_,
261
261
  alwaysObserveCards_: alwaysObserveCards_
262
262
  } = _ref;
263
+ if (0, $8tj43$isServer) return {
264
+ renderedDisplays_: $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
265
+ displays_by_key_: displays_by_key_,
266
+ product_card_template_: product_card_template_,
267
+ content_blocks_: content_blocks_
268
+ })
269
+ };
263
270
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
264
271
  const targetToIndexMap_ = new Map();
265
272
  const indexToTargetMap_ = new Map();
@@ -11920,11 +11927,11 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11920
11927
  set_top_row_shortened_by_: set_top_row_shortened_by_
11921
11928
  }));
11922
11929
  const rendered_placeholders = $8tj43$createMemo(() => {
11923
- if (get_should_have_placeholders_rendered()) return $8tj43$children(() => $bdd80c7862246dc2$export$f33414a4df0afd3f({
11930
+ if (get_should_have_placeholders_rendered()) return $bdd80c7862246dc2$export$f33414a4df0afd3f({
11924
11931
  content_blocks_: content_blocks_,
11925
11932
  product_card_template_: product_card_template_,
11926
11933
  num_placeholders_: num_placeholders_
11927
- }));
11934
+ });
11928
11935
  });
11929
11936
  const layout = $8tj43$createMemo(() => {
11930
11937
  const incoming_layout = layout_options_().layout;
@@ -11960,7 +11967,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11960
11967
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
11961
11968
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
11962
11969
  */
11963
- const product_cards_when_data = $8tj43$children(() => $8tj43$createComponent((0, $8tj43$Suspense), {
11970
+ const product_cards_when_data = $8tj43$createComponent((0, $8tj43$Suspense), {
11964
11971
  get fallback() {
11965
11972
  fallback_is_alive = true;
11966
11973
  $8tj43$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -11992,20 +11999,17 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11992
11999
  return suspense_contents;
11993
12000
  })();
11994
12001
  }
11995
- }));
12002
+ });
11996
12003
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
11997
- const listing_contents = $8tj43$children(() => $8tj43$createComponent((0, $8tj43$Show), {
12004
+ const listing_contents = $8tj43$createComponent((0, $8tj43$Show), {
11998
12005
  get when() {
11999
12006
  return !is_loading_();
12000
12007
  },
12001
12008
  get fallback() {
12002
- var _rendered_placeholder;
12003
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
12009
+ return rendered_placeholders();
12004
12010
  },
12005
- get children() {
12006
- return product_cards_when_data();
12007
- }
12008
- }));
12011
+ children: product_cards_when_data
12012
+ });
12009
12013
  return [$8tj43$memo(() => $ca55612a53dbbdd2$export$a2cc176055f8f08(layout())), $8tj43$createComponent((0, $8tj43$Show), {
12010
12014
  get when() {
12011
12015
  return doesnt_have_content_blocks();
@@ -12025,9 +12029,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
12025
12029
  class: "cards css-grid"
12026
12030
  },
12027
12031
  top_row_shortened_by_: top_row_shortened_by_,
12028
- get children() {
12029
- return listing_contents();
12030
- }
12032
+ children: listing_contents
12031
12033
  });
12032
12034
  },
12033
12035
  get children() {
@@ -12080,9 +12082,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
12080
12082
  $8tj43$insert(container, $8tj43$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
12081
12083
  }
12082
12084
  },
12083
- get children() {
12084
- return listing_contents();
12085
- }
12085
+ children: listing_contents
12086
12086
  });
12087
12087
  },
12088
12088
  get children() {
@@ -12103,9 +12103,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
12103
12103
  element_attributes: {
12104
12104
  class: "cards"
12105
12105
  },
12106
- get children() {
12107
- return listing_contents();
12108
- }
12106
+ children: listing_contents
12109
12107
  });
12110
12108
  }
12111
12109
  });
package/latest/index.cjs CHANGED
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
99
99
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
100
100
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.15";
102
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.17";
103
103
 
104
104
  /**
105
105
  * Gets product_id (the thing we key the rendering on) from a display
@@ -344,6 +344,13 @@ function $67155e1aeb7073f6$export$4a14175d33d81a96({
344
344
  content_blocks_: content_blocks_,
345
345
  alwaysObserveCards_: alwaysObserveCards_
346
346
  }) {
347
+ if (0, $gVhhF$solidjsweb.isServer) return {
348
+ renderedDisplays_: $a73063cc642f3e5f$export$43f0fb951fcb0c54({
349
+ displays_by_key_: displays_by_key_,
350
+ product_card_template_: product_card_template_,
351
+ content_blocks_: content_blocks_
352
+ })
353
+ };
347
354
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
348
355
  const targetToIndexMap_ = new Map();
349
356
  const indexToTargetMap_ = new Map();
@@ -11309,11 +11316,11 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11309
11316
  set_top_row_shortened_by_: set_top_row_shortened_by_
11310
11317
  }));
11311
11318
  const rendered_placeholders = $gVhhF$solidjs.createMemo(() => {
11312
- if (get_should_have_placeholders_rendered()) return $gVhhF$solidjs.children(() => $0caf87eaa19079da$export$f33414a4df0afd3f({
11319
+ if (get_should_have_placeholders_rendered()) return $0caf87eaa19079da$export$f33414a4df0afd3f({
11313
11320
  content_blocks_: content_blocks_,
11314
11321
  product_card_template_: product_card_template_,
11315
11322
  num_placeholders_: num_placeholders_
11316
- }));
11323
+ });
11317
11324
  });
11318
11325
  const layout = $gVhhF$solidjs.createMemo(() => {
11319
11326
  const incoming_layout = layout_options_().layout;
@@ -11349,7 +11356,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11349
11356
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
11350
11357
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
11351
11358
  */
11352
- const product_cards_when_data = $gVhhF$solidjs.children(() => $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
11359
+ const product_cards_when_data = $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
11353
11360
  get fallback() {
11354
11361
  fallback_is_alive = true;
11355
11362
  $gVhhF$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -11381,19 +11388,17 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11381
11388
  return suspense_contents;
11382
11389
  })();
11383
11390
  }
11384
- }));
11391
+ });
11385
11392
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
11386
- const listing_contents = $gVhhF$solidjs.children(() => $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
11393
+ const listing_contents = $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
11387
11394
  get when() {
11388
11395
  return !is_loading_();
11389
11396
  },
11390
11397
  get fallback() {
11391
- return rendered_placeholders()?.();
11398
+ return rendered_placeholders();
11392
11399
  },
11393
- get children() {
11394
- return product_cards_when_data();
11395
- }
11396
- }));
11400
+ children: product_cards_when_data
11401
+ });
11397
11402
  return [$gVhhF$solidjsweb.memo(() => $fc23d7668ae0011d$export$a2cc176055f8f08(layout())), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
11398
11403
  get when() {
11399
11404
  return doesnt_have_content_blocks();
@@ -11413,9 +11418,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11413
11418
  class: "cards css-grid"
11414
11419
  },
11415
11420
  top_row_shortened_by_: top_row_shortened_by_,
11416
- get children() {
11417
- return listing_contents();
11418
- }
11421
+ children: listing_contents
11419
11422
  });
11420
11423
  },
11421
11424
  get children() {
@@ -11468,9 +11471,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11468
11471
  $gVhhF$solidjsweb.insert(container, $gVhhF$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
11469
11472
  }
11470
11473
  },
11471
- get children() {
11472
- return listing_contents();
11473
- }
11474
+ children: listing_contents
11474
11475
  });
11475
11476
  },
11476
11477
  get children() {
@@ -11491,9 +11492,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11491
11492
  element_attributes: {
11492
11493
  class: "cards"
11493
11494
  },
11494
- get children() {
11495
- return listing_contents();
11496
- }
11495
+ children: listing_contents
11497
11496
  });
11498
11497
  }
11499
11498
  });
package/latest/index.d.ts CHANGED
@@ -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.7.15";
14
+ export const version = "4.7.17";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
package/latest/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { add_to_version_info as $9HbP8$add_to_version_info, catchify as $9HbP8$catchify, dlog as $9HbP8$dlog, camelCasifyObject as $9HbP8$camelCasifyObject, useExpandingContainer as $9HbP8$useExpandingContainer, fetch_retry as $9HbP8$fetch_retry, base_url as $9HbP8$base_url, dwarn as $9HbP8$dwarn, slider_fractional_factory as $9HbP8$slider_fractional_factory, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $9HbP8$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $9HbP8$layout_get_total_rec_amount_for_row, layout_media_query_header as $9HbP8$layout_media_query_header, report as $9HbP8$report, slider_fading_factory as $9HbP8$slider_fading_factory, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, observer as $9HbP8$observer, javascript_media_query as $9HbP8$javascript_media_query, queueMacroTask as $9HbP8$queueMacroTask, findMostFrequentItem as $9HbP8$findMostFrequentItem, standard_price_format as $9HbP8$standard_price_format, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, use_href_accessor as $9HbP8$use_href_accessor, get_session_id as $9HbP8$get_session_id, add_version_query_params as $9HbP8$add_version_query_params, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, snakeCasifyObject as $9HbP8$snakeCasifyObject, sort_obj as $9HbP8$sort_obj, make_url_with_query_params as $9HbP8$make_url_with_query_params, insert_surfaces as $9HbP8$insert_surfaces, is_debug as $9HbP8$is_debug } from "@depict-ai/utilishared/latest";
2
- import { createComponent as $9HbP8$createComponent, insert as $9HbP8$insert, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, mergeProps as $9HbP8$mergeProps, effect as $9HbP8$effect, className as $9HbP8$className, isServer as $9HbP8$isServer, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, classList as $9HbP8$classList, setAttribute as $9HbP8$setAttribute, use as $9HbP8$use, style as $9HbP8$style, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
2
+ import { isServer as $9HbP8$isServer, createComponent as $9HbP8$createComponent, insert as $9HbP8$insert, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, mergeProps as $9HbP8$mergeProps, effect as $9HbP8$effect, className as $9HbP8$className, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, classList as $9HbP8$classList, setAttribute as $9HbP8$setAttribute, use as $9HbP8$use, style as $9HbP8$style, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
3
3
  import { createContext as $9HbP8$createContext, createSignal as $9HbP8$createSignal, createMemo as $9HbP8$createMemo, createEffect as $9HbP8$createEffect, onCleanup as $9HbP8$onCleanup, untrack as $9HbP8$untrack, useContext as $9HbP8$useContext, For as $9HbP8$For, getOwner as $9HbP8$getOwner, createResource as $9HbP8$createResource, runWithOwner as $9HbP8$runWithOwner, Show as $9HbP8$Show, mergeProps as $9HbP8$mergeProps1, Suspense as $9HbP8$Suspense, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, createRoot as $9HbP8$createRoot, createUniqueId as $9HbP8$createUniqueId, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, splitProps as $9HbP8$splitProps, on as $9HbP8$on, batch as $9HbP8$batch, createSelector as $9HbP8$createSelector, children as $9HbP8$children, createReaction as $9HbP8$createReaction, mapArray as $9HbP8$mapArray } from "solid-js";
4
4
  import { ListenableSet as $9HbP8$ListenableSet, catchify as $9HbP8$catchify1, use_href_accessor as $9HbP8$use_href_accessor1, queueMacroTask as $9HbP8$queueMacroTask1, report as $9HbP8$report1 } from "@depict-ai/utilishared/latest";
5
5
  import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$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.7.15";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.17";
11
11
 
12
12
  /**
13
13
  * Gets product_id (the thing we key the rendering on) from a display
@@ -252,6 +252,13 @@ function $f091294da861020c$export$4a14175d33d81a96({
252
252
  content_blocks_: content_blocks_,
253
253
  alwaysObserveCards_: alwaysObserveCards_
254
254
  }) {
255
+ if (0, $9HbP8$isServer) return {
256
+ renderedDisplays_: $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
257
+ displays_by_key_: displays_by_key_,
258
+ product_card_template_: product_card_template_,
259
+ content_blocks_: content_blocks_
260
+ })
261
+ };
255
262
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
256
263
  const targetToIndexMap_ = new Map();
257
264
  const indexToTargetMap_ = new Map();
@@ -11217,11 +11224,11 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11217
11224
  set_top_row_shortened_by_: set_top_row_shortened_by_
11218
11225
  }));
11219
11226
  const rendered_placeholders = $9HbP8$createMemo(() => {
11220
- if (get_should_have_placeholders_rendered()) return $9HbP8$children(() => $6e41f1fde994db72$export$f33414a4df0afd3f({
11227
+ if (get_should_have_placeholders_rendered()) return $6e41f1fde994db72$export$f33414a4df0afd3f({
11221
11228
  content_blocks_: content_blocks_,
11222
11229
  product_card_template_: product_card_template_,
11223
11230
  num_placeholders_: num_placeholders_
11224
- }));
11231
+ });
11225
11232
  });
11226
11233
  const layout = $9HbP8$createMemo(() => {
11227
11234
  const incoming_layout = layout_options_().layout;
@@ -11257,7 +11264,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11257
11264
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
11258
11265
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
11259
11266
  */
11260
- const product_cards_when_data = $9HbP8$children(() => $9HbP8$createComponent((0, $9HbP8$Suspense), {
11267
+ const product_cards_when_data = $9HbP8$createComponent((0, $9HbP8$Suspense), {
11261
11268
  get fallback() {
11262
11269
  fallback_is_alive = true;
11263
11270
  $9HbP8$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -11289,19 +11296,17 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11289
11296
  return suspense_contents;
11290
11297
  })();
11291
11298
  }
11292
- }));
11299
+ });
11293
11300
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
11294
- const listing_contents = $9HbP8$children(() => $9HbP8$createComponent((0, $9HbP8$Show), {
11301
+ const listing_contents = $9HbP8$createComponent((0, $9HbP8$Show), {
11295
11302
  get when() {
11296
11303
  return !is_loading_();
11297
11304
  },
11298
11305
  get fallback() {
11299
- return rendered_placeholders()?.();
11306
+ return rendered_placeholders();
11300
11307
  },
11301
- get children() {
11302
- return product_cards_when_data();
11303
- }
11304
- }));
11308
+ children: product_cards_when_data
11309
+ });
11305
11310
  return [$9HbP8$memo(() => $a458486f22b22f63$export$a2cc176055f8f08(layout())), $9HbP8$createComponent((0, $9HbP8$Show), {
11306
11311
  get when() {
11307
11312
  return doesnt_have_content_blocks();
@@ -11321,9 +11326,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11321
11326
  class: "cards css-grid"
11322
11327
  },
11323
11328
  top_row_shortened_by_: top_row_shortened_by_,
11324
- get children() {
11325
- return listing_contents();
11326
- }
11329
+ children: listing_contents
11327
11330
  });
11328
11331
  },
11329
11332
  get children() {
@@ -11376,9 +11379,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11376
11379
  $9HbP8$insert(container, $9HbP8$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
11377
11380
  }
11378
11381
  },
11379
- get children() {
11380
- return listing_contents();
11381
- }
11382
+ children: listing_contents
11382
11383
  });
11383
11384
  },
11384
11385
  get children() {
@@ -11399,9 +11400,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11399
11400
  element_attributes: {
11400
11401
  class: "cards"
11401
11402
  },
11402
- get children() {
11403
- return listing_contents();
11404
- }
11403
+ children: listing_contents
11405
11404
  });
11406
11405
  }
11407
11406
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.7.15",
3
+ "version": "4.7.17",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -105,7 +105,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
105
105
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
106
106
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
107
107
  /*! Depict.ai search and product listing SDK */
108
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.15";
108
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.17";
109
109
 
110
110
  /**
111
111
  * Gets product_id (the thing we key the rendering on) from a display
@@ -355,6 +355,13 @@ function $a52942afacbced93$export$4a14175d33d81a96(_ref) {
355
355
  content_blocks_: content_blocks_,
356
356
  alwaysObserveCards_: alwaysObserveCards_
357
357
  } = _ref;
358
+ if (0, $3hooq$solidjsweb.isServer) return {
359
+ renderedDisplays_: $76012c4468a53d1f$export$43f0fb951fcb0c54({
360
+ displays_by_key_: displays_by_key_,
361
+ product_card_template_: product_card_template_,
362
+ content_blocks_: content_blocks_
363
+ })
364
+ };
358
365
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
359
366
  const targetToIndexMap_ = new Map();
360
367
  const indexToTargetMap_ = new Map();
@@ -10027,11 +10034,11 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10027
10034
  set_top_row_shortened_by_: set_top_row_shortened_by_
10028
10035
  }));
10029
10036
  const rendered_placeholders = $3hooq$solidjs.createMemo(() => {
10030
- if (get_should_have_placeholders_rendered()) return $3hooq$solidjs.children(() => $e3915574cfd3466c$export$f33414a4df0afd3f({
10037
+ if (get_should_have_placeholders_rendered()) return $e3915574cfd3466c$export$f33414a4df0afd3f({
10031
10038
  content_blocks_: content_blocks_,
10032
10039
  product_card_template_: product_card_template_,
10033
10040
  num_placeholders_: num_placeholders_
10034
- }));
10041
+ });
10035
10042
  });
10036
10043
  const layout = $3hooq$solidjs.createMemo(() => {
10037
10044
  const incoming_layout = layout_options_().layout;
@@ -10067,7 +10074,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10067
10074
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
10068
10075
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
10069
10076
  */
10070
- const product_cards_when_data = $3hooq$solidjs.children(() => $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Suspense), {
10077
+ const product_cards_when_data = $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Suspense), {
10071
10078
  get fallback() {
10072
10079
  fallback_is_alive = true;
10073
10080
  $3hooq$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -10099,20 +10106,17 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10099
10106
  return suspense_contents;
10100
10107
  })();
10101
10108
  }
10102
- }));
10109
+ });
10103
10110
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
10104
- const listing_contents = $3hooq$solidjs.children(() => $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
10111
+ const listing_contents = $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
10105
10112
  get when() {
10106
10113
  return !is_loading_();
10107
10114
  },
10108
10115
  get fallback() {
10109
- var _rendered_placeholder;
10110
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
10116
+ return rendered_placeholders();
10111
10117
  },
10112
- get children() {
10113
- return product_cards_when_data();
10114
- }
10115
- }));
10118
+ children: product_cards_when_data
10119
+ });
10116
10120
  return [$8edd3cf30d1fd8b4$export$a2cc176055f8f08(layout()), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
10117
10121
  get when() {
10118
10122
  return doesnt_have_content_blocks();
@@ -10132,9 +10136,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10132
10136
  class: "cards css-grid"
10133
10137
  },
10134
10138
  top_row_shortened_by_: top_row_shortened_by_,
10135
- get children() {
10136
- return listing_contents();
10137
- }
10139
+ children: listing_contents
10138
10140
  });
10139
10141
  },
10140
10142
  get children() {
@@ -10187,9 +10189,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10187
10189
  $3hooq$solidjsweb.insert(container, $3hooq$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
10188
10190
  }
10189
10191
  },
10190
- get children() {
10191
- return listing_contents();
10192
- }
10192
+ children: listing_contents
10193
10193
  });
10194
10194
  },
10195
10195
  get children() {
@@ -10210,9 +10210,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10210
10210
  element_attributes: {
10211
10211
  class: "cards"
10212
10212
  },
10213
- get children() {
10214
- return listing_contents();
10215
- }
10213
+ children: listing_contents
10216
10214
  });
10217
10215
  }
10218
10216
  });
@@ -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.7.15";
14
+ export const version = "4.7.17";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -1,5 +1,5 @@
1
1
  import { add_to_version_info as $b8hua$add_to_version_info, catchify as $b8hua$catchify, dlog as $b8hua$dlog, camelCasifyObject as $b8hua$camelCasifyObject, useExpandingContainer as $b8hua$useExpandingContainer, fetch_retry as $b8hua$fetch_retry, base_url as $b8hua$base_url, dwarn as $b8hua$dwarn, slider_fractional_factory as $b8hua$slider_fractional_factory, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, slider_fading_factory as $b8hua$slider_fading_factory, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, observer as $b8hua$observer, javascript_media_query as $b8hua$javascript_media_query, queueMacroTask as $b8hua$queueMacroTask, findMostFrequentItem as $b8hua$findMostFrequentItem, standard_price_format as $b8hua$standard_price_format, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, deparallelize_no_drop as $b8hua$deparallelize_no_drop, ContainedImage as $b8hua$ContainedImage, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, use_href_accessor as $b8hua$use_href_accessor, get_session_id as $b8hua$get_session_id, add_version_query_params as $b8hua$add_version_query_params, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, snakeCasifyObject as $b8hua$snakeCasifyObject, make_url_with_query_params as $b8hua$make_url_with_query_params, sort_obj as $b8hua$sort_obj, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
- import { createComponent as $b8hua$createComponent, insert as $b8hua$insert, ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, ssrStyle as $b8hua$ssrStyle, mergeProps as $b8hua$mergeProps, isServer as $b8hua$isServer, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, ssrAttribute as $b8hua$ssrAttribute, spread as $b8hua$spread, Dynamic as $b8hua$Dynamic } from "solid-js/web";
2
+ import { isServer as $b8hua$isServer, createComponent as $b8hua$createComponent, insert as $b8hua$insert, ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, ssrStyle as $b8hua$ssrStyle, mergeProps as $b8hua$mergeProps, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, ssrAttribute as $b8hua$ssrAttribute, spread as $b8hua$spread, Dynamic as $b8hua$Dynamic } from "solid-js/web";
3
3
  import { createContext as $b8hua$createContext, createSignal as $b8hua$createSignal, createMemo as $b8hua$createMemo, createEffect as $b8hua$createEffect, onCleanup as $b8hua$onCleanup, untrack as $b8hua$untrack, useContext as $b8hua$useContext, For as $b8hua$For, getOwner as $b8hua$getOwner, createResource as $b8hua$createResource, runWithOwner as $b8hua$runWithOwner, Show as $b8hua$Show, mergeProps as $b8hua$mergeProps1, Suspense as $b8hua$Suspense, createRenderEffect as $b8hua$createRenderEffect, Index as $b8hua$Index, createRoot as $b8hua$createRoot, createUniqueId as $b8hua$createUniqueId, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, splitProps as $b8hua$splitProps, on as $b8hua$on, batch as $b8hua$batch, createSelector as $b8hua$createSelector, children as $b8hua$children, createReaction as $b8hua$createReaction, mapArray as $b8hua$mapArray } from "solid-js";
4
4
  import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import { ListenableSet as $b8hua$ListenableSet, catchify as $b8hua$catchify1, use_href_accessor as $b8hua$use_href_accessor1, queueMacroTask as $b8hua$queueMacroTask1, report as $b8hua$report1 } from "@depict-ai/utilishared/ES10";
@@ -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.7.15";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.17";
14
14
 
15
15
  /**
16
16
  * Gets product_id (the thing we key the rendering on) from a display
@@ -260,6 +260,13 @@ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
260
260
  content_blocks_: content_blocks_,
261
261
  alwaysObserveCards_: alwaysObserveCards_
262
262
  } = _ref;
263
+ if (0, $b8hua$isServer) return {
264
+ renderedDisplays_: $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
265
+ displays_by_key_: displays_by_key_,
266
+ product_card_template_: product_card_template_,
267
+ content_blocks_: content_blocks_
268
+ })
269
+ };
263
270
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
264
271
  const targetToIndexMap_ = new Map();
265
272
  const indexToTargetMap_ = new Map();
@@ -9932,11 +9939,11 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
9932
9939
  set_top_row_shortened_by_: set_top_row_shortened_by_
9933
9940
  }));
9934
9941
  const rendered_placeholders = $b8hua$createMemo(() => {
9935
- if (get_should_have_placeholders_rendered()) return $b8hua$children(() => $bdd80c7862246dc2$export$f33414a4df0afd3f({
9942
+ if (get_should_have_placeholders_rendered()) return $bdd80c7862246dc2$export$f33414a4df0afd3f({
9936
9943
  content_blocks_: content_blocks_,
9937
9944
  product_card_template_: product_card_template_,
9938
9945
  num_placeholders_: num_placeholders_
9939
- }));
9946
+ });
9940
9947
  });
9941
9948
  const layout = $b8hua$createMemo(() => {
9942
9949
  const incoming_layout = layout_options_().layout;
@@ -9972,7 +9979,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
9972
9979
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
9973
9980
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
9974
9981
  */
9975
- const product_cards_when_data = $b8hua$children(() => $b8hua$createComponent((0, $b8hua$Suspense), {
9982
+ const product_cards_when_data = $b8hua$createComponent((0, $b8hua$Suspense), {
9976
9983
  get fallback() {
9977
9984
  fallback_is_alive = true;
9978
9985
  $b8hua$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -10004,20 +10011,17 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10004
10011
  return suspense_contents;
10005
10012
  })();
10006
10013
  }
10007
- }));
10014
+ });
10008
10015
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
10009
- const listing_contents = $b8hua$children(() => $b8hua$createComponent((0, $b8hua$Show), {
10016
+ const listing_contents = $b8hua$createComponent((0, $b8hua$Show), {
10010
10017
  get when() {
10011
10018
  return !is_loading_();
10012
10019
  },
10013
10020
  get fallback() {
10014
- var _rendered_placeholder;
10015
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
10021
+ return rendered_placeholders();
10016
10022
  },
10017
- get children() {
10018
- return product_cards_when_data();
10019
- }
10020
- }));
10023
+ children: product_cards_when_data
10024
+ });
10021
10025
  return [$ca55612a53dbbdd2$export$a2cc176055f8f08(layout()), $b8hua$createComponent((0, $b8hua$Show), {
10022
10026
  get when() {
10023
10027
  return doesnt_have_content_blocks();
@@ -10037,9 +10041,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10037
10041
  class: "cards css-grid"
10038
10042
  },
10039
10043
  top_row_shortened_by_: top_row_shortened_by_,
10040
- get children() {
10041
- return listing_contents();
10042
- }
10044
+ children: listing_contents
10043
10045
  });
10044
10046
  },
10045
10047
  get children() {
@@ -10092,9 +10094,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10092
10094
  $b8hua$insert(container, $b8hua$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
10093
10095
  }
10094
10096
  },
10095
- get children() {
10096
- return listing_contents();
10097
- }
10097
+ children: listing_contents
10098
10098
  });
10099
10099
  },
10100
10100
  get children() {
@@ -10115,9 +10115,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10115
10115
  element_attributes: {
10116
10116
  class: "cards"
10117
10117
  },
10118
- get children() {
10119
- return listing_contents();
10120
- }
10118
+ children: listing_contents
10121
10119
  });
10122
10120
  }
10123
10121
  });
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
99
99
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
100
100
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.15";
102
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.17";
103
103
 
104
104
  /**
105
105
  * Gets product_id (the thing we key the rendering on) from a display
@@ -344,6 +344,13 @@ function $67155e1aeb7073f6$export$4a14175d33d81a96({
344
344
  content_blocks_: content_blocks_,
345
345
  alwaysObserveCards_: alwaysObserveCards_
346
346
  }) {
347
+ if (0, $5vyXB$solidjsweb.isServer) return {
348
+ renderedDisplays_: $a73063cc642f3e5f$export$43f0fb951fcb0c54({
349
+ displays_by_key_: displays_by_key_,
350
+ product_card_template_: product_card_template_,
351
+ content_blocks_: content_blocks_
352
+ })
353
+ };
347
354
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
348
355
  const targetToIndexMap_ = new Map();
349
356
  const indexToTargetMap_ = new Map();
@@ -9375,11 +9382,11 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9375
9382
  set_top_row_shortened_by_: set_top_row_shortened_by_
9376
9383
  }));
9377
9384
  const rendered_placeholders = $5vyXB$solidjs.createMemo(() => {
9378
- if (get_should_have_placeholders_rendered()) return $5vyXB$solidjs.children(() => $0caf87eaa19079da$export$f33414a4df0afd3f({
9385
+ if (get_should_have_placeholders_rendered()) return $0caf87eaa19079da$export$f33414a4df0afd3f({
9379
9386
  content_blocks_: content_blocks_,
9380
9387
  product_card_template_: product_card_template_,
9381
9388
  num_placeholders_: num_placeholders_
9382
- }));
9389
+ });
9383
9390
  });
9384
9391
  const layout = $5vyXB$solidjs.createMemo(() => {
9385
9392
  const incoming_layout = layout_options_().layout;
@@ -9415,7 +9422,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9415
9422
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
9416
9423
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
9417
9424
  */
9418
- const product_cards_when_data = $5vyXB$solidjs.children(() => $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Suspense), {
9425
+ const product_cards_when_data = $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Suspense), {
9419
9426
  get fallback() {
9420
9427
  fallback_is_alive = true;
9421
9428
  $5vyXB$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -9447,19 +9454,17 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9447
9454
  return suspense_contents;
9448
9455
  })();
9449
9456
  }
9450
- }));
9457
+ });
9451
9458
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
9452
- const listing_contents = $5vyXB$solidjs.children(() => $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
9459
+ const listing_contents = $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
9453
9460
  get when() {
9454
9461
  return !is_loading_();
9455
9462
  },
9456
9463
  get fallback() {
9457
- return rendered_placeholders()?.();
9464
+ return rendered_placeholders();
9458
9465
  },
9459
- get children() {
9460
- return product_cards_when_data();
9461
- }
9462
- }));
9466
+ children: product_cards_when_data
9467
+ });
9463
9468
  return [$fc23d7668ae0011d$export$a2cc176055f8f08(layout()), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
9464
9469
  get when() {
9465
9470
  return doesnt_have_content_blocks();
@@ -9479,9 +9484,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9479
9484
  class: "cards css-grid"
9480
9485
  },
9481
9486
  top_row_shortened_by_: top_row_shortened_by_,
9482
- get children() {
9483
- return listing_contents();
9484
- }
9487
+ children: listing_contents
9485
9488
  });
9486
9489
  },
9487
9490
  get children() {
@@ -9534,9 +9537,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9534
9537
  $5vyXB$solidjsweb.insert(container, $5vyXB$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
9535
9538
  }
9536
9539
  },
9537
- get children() {
9538
- return listing_contents();
9539
- }
9540
+ children: listing_contents
9540
9541
  });
9541
9542
  },
9542
9543
  get children() {
@@ -9557,9 +9558,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9557
9558
  element_attributes: {
9558
9559
  class: "cards"
9559
9560
  },
9560
- get children() {
9561
- return listing_contents();
9562
- }
9561
+ children: listing_contents
9563
9562
  });
9564
9563
  }
9565
9564
  });
@@ -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.7.15";
14
+ export const version = "4.7.17";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -1,5 +1,5 @@
1
1
  import { add_to_version_info as $i7OB2$add_to_version_info, catchify as $i7OB2$catchify, dlog as $i7OB2$dlog, camelCasifyObject as $i7OB2$camelCasifyObject, useExpandingContainer as $i7OB2$useExpandingContainer, fetch_retry as $i7OB2$fetch_retry, base_url as $i7OB2$base_url, dwarn as $i7OB2$dwarn, slider_fractional_factory as $i7OB2$slider_fractional_factory, make_random_classname as $i7OB2$make_random_classname, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, report as $i7OB2$report, slider_fading_factory as $i7OB2$slider_fading_factory, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, observer as $i7OB2$observer, javascript_media_query as $i7OB2$javascript_media_query, queueMacroTask as $i7OB2$queueMacroTask, findMostFrequentItem as $i7OB2$findMostFrequentItem, standard_price_format as $i7OB2$standard_price_format, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, ContainedImage as $i7OB2$ContainedImage, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, use_href_accessor as $i7OB2$use_href_accessor, get_session_id as $i7OB2$get_session_id, add_version_query_params as $i7OB2$add_version_query_params, hex_to_rgb as $i7OB2$hex_to_rgb, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, snakeCasifyObject as $i7OB2$snakeCasifyObject, sort_obj as $i7OB2$sort_obj, make_url_with_query_params as $i7OB2$make_url_with_query_params, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
2
- import { createComponent as $i7OB2$createComponent, insert as $i7OB2$insert, ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, ssrStyle as $i7OB2$ssrStyle, mergeProps as $i7OB2$mergeProps, isServer as $i7OB2$isServer, ssrElement as $i7OB2$ssrElement, ssrClassList as $i7OB2$ssrClassList, ssrAttribute as $i7OB2$ssrAttribute, spread as $i7OB2$spread, Dynamic as $i7OB2$Dynamic } from "solid-js/web";
2
+ import { isServer as $i7OB2$isServer, createComponent as $i7OB2$createComponent, insert as $i7OB2$insert, ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, ssrStyle as $i7OB2$ssrStyle, mergeProps as $i7OB2$mergeProps, ssrElement as $i7OB2$ssrElement, ssrClassList as $i7OB2$ssrClassList, ssrAttribute as $i7OB2$ssrAttribute, spread as $i7OB2$spread, Dynamic as $i7OB2$Dynamic } from "solid-js/web";
3
3
  import { createContext as $i7OB2$createContext, createSignal as $i7OB2$createSignal, createMemo as $i7OB2$createMemo, createEffect as $i7OB2$createEffect, onCleanup as $i7OB2$onCleanup, untrack as $i7OB2$untrack, useContext as $i7OB2$useContext, For as $i7OB2$For, getOwner as $i7OB2$getOwner, createResource as $i7OB2$createResource, runWithOwner as $i7OB2$runWithOwner, Show as $i7OB2$Show, mergeProps as $i7OB2$mergeProps1, Suspense as $i7OB2$Suspense, createRenderEffect as $i7OB2$createRenderEffect, Index as $i7OB2$Index, createRoot as $i7OB2$createRoot, createUniqueId as $i7OB2$createUniqueId, createComputed as $i7OB2$createComputed, ErrorBoundary as $i7OB2$ErrorBoundary, splitProps as $i7OB2$splitProps, on as $i7OB2$on, batch as $i7OB2$batch, createSelector as $i7OB2$createSelector, children as $i7OB2$children, createReaction as $i7OB2$createReaction, mapArray as $i7OB2$mapArray } from "solid-js";
4
4
  import { ListenableSet as $i7OB2$ListenableSet, catchify as $i7OB2$catchify1, use_href_accessor as $i7OB2$use_href_accessor1, queueMacroTask as $i7OB2$queueMacroTask1, report as $i7OB2$report1 } from "@depict-ai/utilishared/latest";
5
5
  import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from "solid-js/store";
@@ -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.7.15";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.17";
11
11
 
12
12
  /**
13
13
  * Gets product_id (the thing we key the rendering on) from a display
@@ -252,6 +252,13 @@ function $f091294da861020c$export$4a14175d33d81a96({
252
252
  content_blocks_: content_blocks_,
253
253
  alwaysObserveCards_: alwaysObserveCards_
254
254
  }) {
255
+ if (0, $i7OB2$isServer) return {
256
+ renderedDisplays_: $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
257
+ displays_by_key_: displays_by_key_,
258
+ product_card_template_: product_card_template_,
259
+ content_blocks_: content_blocks_
260
+ })
261
+ };
255
262
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
256
263
  const targetToIndexMap_ = new Map();
257
264
  const indexToTargetMap_ = new Map();
@@ -9283,11 +9290,11 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9283
9290
  set_top_row_shortened_by_: set_top_row_shortened_by_
9284
9291
  }));
9285
9292
  const rendered_placeholders = $i7OB2$createMemo(() => {
9286
- if (get_should_have_placeholders_rendered()) return $i7OB2$children(() => $6e41f1fde994db72$export$f33414a4df0afd3f({
9293
+ if (get_should_have_placeholders_rendered()) return $6e41f1fde994db72$export$f33414a4df0afd3f({
9287
9294
  content_blocks_: content_blocks_,
9288
9295
  product_card_template_: product_card_template_,
9289
9296
  num_placeholders_: num_placeholders_
9290
- }));
9297
+ });
9291
9298
  });
9292
9299
  const layout = $i7OB2$createMemo(() => {
9293
9300
  const incoming_layout = layout_options_().layout;
@@ -9323,7 +9330,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9323
9330
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
9324
9331
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
9325
9332
  */
9326
- const product_cards_when_data = $i7OB2$children(() => $i7OB2$createComponent((0, $i7OB2$Suspense), {
9333
+ const product_cards_when_data = $i7OB2$createComponent((0, $i7OB2$Suspense), {
9327
9334
  get fallback() {
9328
9335
  fallback_is_alive = true;
9329
9336
  $i7OB2$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -9355,19 +9362,17 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9355
9362
  return suspense_contents;
9356
9363
  })();
9357
9364
  }
9358
- }));
9365
+ });
9359
9366
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
9360
- const listing_contents = $i7OB2$children(() => $i7OB2$createComponent((0, $i7OB2$Show), {
9367
+ const listing_contents = $i7OB2$createComponent((0, $i7OB2$Show), {
9361
9368
  get when() {
9362
9369
  return !is_loading_();
9363
9370
  },
9364
9371
  get fallback() {
9365
- return rendered_placeholders()?.();
9372
+ return rendered_placeholders();
9366
9373
  },
9367
- get children() {
9368
- return product_cards_when_data();
9369
- }
9370
- }));
9374
+ children: product_cards_when_data
9375
+ });
9371
9376
  return [$a458486f22b22f63$export$a2cc176055f8f08(layout()), $i7OB2$createComponent((0, $i7OB2$Show), {
9372
9377
  get when() {
9373
9378
  return doesnt_have_content_blocks();
@@ -9387,9 +9392,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9387
9392
  class: "cards css-grid"
9388
9393
  },
9389
9394
  top_row_shortened_by_: top_row_shortened_by_,
9390
- get children() {
9391
- return listing_contents();
9392
- }
9395
+ children: listing_contents
9393
9396
  });
9394
9397
  },
9395
9398
  get children() {
@@ -9442,9 +9445,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9442
9445
  $i7OB2$insert(container, $i7OB2$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
9443
9446
  }
9444
9447
  },
9445
- get children() {
9446
- return listing_contents();
9447
- }
9448
+ children: listing_contents
9448
9449
  });
9449
9450
  },
9450
9451
  get children() {
@@ -9465,9 +9466,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9465
9466
  element_attributes: {
9466
9467
  class: "cards"
9467
9468
  },
9468
- get children() {
9469
- return listing_contents();
9470
- }
9469
+ children: listing_contents
9471
9470
  });
9472
9471
  }
9473
9472
  });