@depict-ai/ui 2.0.26 → 2.1.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.
package/latest/index.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { add_to_version_info as $9HbP8$add_to_version_info, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, dlog as $9HbP8$dlog, queueMacroTask as $9HbP8$queueMacroTask, catchify as $9HbP8$catchify, is_safari as $9HbP8$is_safari, observer as $9HbP8$observer, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, slider_fading_factory as $9HbP8$slider_fading_factory, slider_fractional_factory as $9HbP8$slider_fractional_factory, camelCasifyObject as $9HbP8$camelCasifyObject, 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, useExpandingContainer as $9HbP8$useExpandingContainer, standard_price_format as $9HbP8$standard_price_format, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, fetch_recs as $9HbP8$fetch_recs, snakeCasifyObject as $9HbP8$snakeCasifyObject, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, base_url as $9HbP8$base_url, get_depict_id as $9HbP8$get_depict_id, get_user_id as $9HbP8$get_user_id, get_session_id as $9HbP8$get_session_id, sort_obj as $9HbP8$sort_obj, fetch_retry as $9HbP8$fetch_retry, add_version_query_params as $9HbP8$add_version_query_params, dwarn as $9HbP8$dwarn, make_url_with_query_params as $9HbP8$make_url_with_query_params, edit_current_page_meta_tags as $9HbP8$edit_current_page_meta_tags, javascript_media_query as $9HbP8$javascript_media_query, use_href_accessor as $9HbP8$use_href_accessor, is_debug as $9HbP8$is_debug, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ListenableSet as $9HbP8$ListenableSet, insert_surfaces as $9HbP8$insert_surfaces } from "@depict-ai/utilishared/latest";
2
- import { createComponent as $9HbP8$createComponent, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, effect as $9HbP8$effect, style as $9HbP8$style, spread as $9HbP8$spread, mergeProps as $9HbP8$mergeProps, runHydrationEvents as $9HbP8$runHydrationEvents, insert as $9HbP8$insert, setAttribute as $9HbP8$setAttribute, isServer as $9HbP8$isServer, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, classList as $9HbP8$classList, getNextMarker as $9HbP8$getNextMarker, Dynamic as $9HbP8$Dynamic, use as $9HbP8$use } from "solid-js/web";
3
- import { createSignal as $9HbP8$createSignal, getOwner as $9HbP8$getOwner, createEffect as $9HbP8$createEffect, runWithOwner as $9HbP8$runWithOwner, onCleanup as $9HbP8$onCleanup, createMemo as $9HbP8$createMemo, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, createResource as $9HbP8$createResource, Suspense as $9HbP8$Suspense, Show as $9HbP8$Show, createRenderEffect as $9HbP8$createRenderEffect, createRoot as $9HbP8$createRoot, For as $9HbP8$For, createUniqueId as $9HbP8$createUniqueId, untrack as $9HbP8$untrack, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, Index as $9HbP8$Index, on as $9HbP8$on, batch as $9HbP8$batch, createReaction as $9HbP8$createReaction } from "solid-js";
2
+ import { createComponent as $9HbP8$createComponent, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, effect as $9HbP8$effect, style as $9HbP8$style, spread as $9HbP8$spread, mergeProps as $9HbP8$mergeProps, runHydrationEvents as $9HbP8$runHydrationEvents, insert as $9HbP8$insert, setAttribute as $9HbP8$setAttribute, isServer as $9HbP8$isServer, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, classList as $9HbP8$classList, getNextMarker as $9HbP8$getNextMarker, Dynamic as $9HbP8$Dynamic, use as $9HbP8$use, setProperty as $9HbP8$setProperty } from "solid-js/web";
3
+ import { createSignal as $9HbP8$createSignal, getOwner as $9HbP8$getOwner, createEffect as $9HbP8$createEffect, runWithOwner as $9HbP8$runWithOwner, onCleanup as $9HbP8$onCleanup, createMemo as $9HbP8$createMemo, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, createResource as $9HbP8$createResource, Suspense as $9HbP8$Suspense, Show as $9HbP8$Show, untrack as $9HbP8$untrack, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, createRoot as $9HbP8$createRoot, For as $9HbP8$For, createUniqueId as $9HbP8$createUniqueId, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, on as $9HbP8$on, batch as $9HbP8$batch, createReaction as $9HbP8$createReaction, mapArray as $9HbP8$mapArray, mergeProps as $9HbP8$mergeProps1 } from "solid-js";
4
+ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
4
5
 
5
6
  /*! Depict.ai search and product listing SDK */
6
7
  import { register_es_version } from "../multi_import_deduplicator.mjs";
7
8
  register_es_version("ui", "latest");
8
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.26";
9
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.1";
9
10
  const $4147651646da990a$var$fallback_operator = "in";
10
11
  const $4147651646da990a$var$fallback_token = "";
11
12
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -192,7 +193,7 @@ function $011607bdf658f807$export$e68cff63f76bd15b(props) {
192
193
  function $011607bdf658f807$export$8d0c4fdbb05a2f2e() {
193
194
  return $9HbP8$useContext($011607bdf658f807$var$ListingContext);
194
195
  }
195
- const $f18d425032111270$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2);
196
+ const $f18d425032111270$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
196
197
  function $f18d425032111270$export$94026ee33dbabc26(props) {
197
198
  return (() => {
198
199
  const _el$ = $9HbP8$getNextElement($f18d425032111270$var$_tmpl$);
@@ -200,7 +201,7 @@ function $f18d425032111270$export$94026ee33dbabc26(props) {
200
201
  return _el$;
201
202
  })();
202
203
  }
203
- const $e8ffe11ed01df0fe$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<img>`, 1);
204
+ const $e8ffe11ed01df0fe$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<img>`);
204
205
  function $e8ffe11ed01df0fe$export$e6fffe67d4cdd848(whatToWatch) {
205
206
  const [size, setSize] = $9HbP8$createSignal(0);
206
207
  const resizeObserver = new ResizeObserver($9HbP8$catchify(records => {
@@ -305,7 +306,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
305
306
  }));
306
307
  return container;
307
308
  }
308
- const $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>`, 4);
309
+ const $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
309
310
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
310
311
  return (() => {
311
312
  const _el$ = $9HbP8$getNextElement($fbbadcb080ad1d4a$var$_tmpl$);
@@ -322,7 +323,7 @@ function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
322
323
  return _el$;
323
324
  })();
324
325
  }
325
- const $f32e14878e75af51$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2);
326
+ const $f32e14878e75af51$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
326
327
  function $f32e14878e75af51$export$6649caad96ef8870({
327
328
  children: children,
328
329
  slider_ref_: slider_ref_,
@@ -420,7 +421,7 @@ const $b5cccc8ee7d24677$export$6daf8749b65a1b77 = cols_at_size => {
420
421
  return $b5cccc8ee7d24677$var$transform_elements(sorted_cols_at_size);
421
422
  };
422
423
  function $a458486f22b22f63$export$a2cc176055f8f08() {
423
- const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `columnsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
424
+ const text = "Please try setting `columnsAtSize`/`gridSpacing` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `columnsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
424
425
  return (0, $9HbP8$isServer) ? {
425
426
  t: `<!-- ${text} -->`
426
427
  } : document.createComment(text);
@@ -441,12 +442,13 @@ let $6e41f1fde994db72$var$cached_placeholder_element;
441
442
  let $6e41f1fde994db72$var$rendering_cached_placeholder_element;
442
443
  function $6e41f1fde994db72$export$f33414a4df0afd3f({
443
444
  product_card_template_: product_card_template_,
444
- num_placeholders_: num_placeholders_
445
+ num_placeholders_: num_placeholders_,
446
+ content_blocks_: content_blocks_
445
447
  }) {
446
- const [get_elements, set_elements] = $9HbP8$createSignal([]);
447
- let existing_num = 0;
448
+ const [num_to_actually_show, set_num_to_actually_show] = $9HbP8$createSignal($9HbP8$untrack(num_placeholders_));
448
449
  if (0, $9HbP8$isServer)
449
450
  // want to render simple placeholders on server, effects don't run there
451
+ // FIXME when adding proper SSR: also SSR content blocks
450
452
  return $9HbP8$createMemo(() => Array.from({
451
453
  length: num_placeholders_()
452
454
  }).map(() => {
@@ -455,19 +457,30 @@ function $6e41f1fde994db72$export$f33414a4df0afd3f({
455
457
  if (typeof template_result?.then !== "function") return template_result;
456
458
  }));
457
459
  $9HbP8$createRenderEffect(() => {
460
+ const existing_num = num_to_actually_show();
458
461
  const to_add = num_placeholders_() - existing_num;
459
462
  if (to_add <= 0) return;
460
463
  // Below comment is from when we used recommendation renderer and manual DOM manipulation for this, but I'm still scared to remove placeholders and mess up scroll restoration, so I'm keeping the way it worked. Otherwise, <Index> could be used which would be far more elegant.
461
464
  // We don't need to remove placeholders, only need to add. The reason for that is that chrome restores the scroll position once all tasks queued as reaction of the "popstate" events have been completed in the task queue. That means that we need to get the placeholders in fast, or we might lose scroll position if the previous site was shorter.
462
465
  // The query id and the amount might update in separate tasks because one comes from href_change_ipns and the other one from another "popstate" listener. Therefore, we need to be able to dynamically add more placeholders. I'm not entirely sure about this anymore though, since we have the scroll position on a per-id basis it might work anyway but THIS WORKS, and I've been working on this bug for 3 hours so let's just keep it this way.
463
- set_elements(prev => [...prev, ...Array.from({
464
- length: to_add
465
- }).map(() => $6e41f1fde994db72$var$Placeholder({
466
- product_card_template_: product_card_template_
467
- }))]);
468
- existing_num += to_add;
466
+ // Above comments were from when we added elements in this createRenderEffect. Now I changed it to just increment the number and render them from an <Index> instead, so I can add content blocks better
467
+ // Functionality should be the same
468
+ set_num_to_actually_show(existing_num + to_add);
469
+ });
470
+ return $9HbP8$createComponent((0, $9HbP8$Index), {
471
+ get each() {
472
+ return Array.from({
473
+ length: num_to_actually_show()
474
+ });
475
+ },
476
+ children: (_item, index) => {
477
+ const possible_content_block = $9HbP8$createMemo(() => content_blocks_?.()?.()?.[index]);
478
+ // Show content block before product card, so it's *at* that index
479
+ return [possible_content_block, $6e41f1fde994db72$var$Placeholder({
480
+ product_card_template_: product_card_template_
481
+ })]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
482
+ }
469
483
  });
470
- return get_elements; // https://github.com/solidjs/solid/releases/tag/v1.7.0
471
484
  }
472
485
  /**
473
486
  * Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
@@ -552,7 +565,8 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
552
565
  merchant_: merchant_,
553
566
  market_: market_,
554
567
  product_card_template_: product_card_template_,
555
- do_per_elements_: do_per_elements_
568
+ do_per_elements_: do_per_elements_,
569
+ content_blocks_: content_blocks_
556
570
  }) {
557
571
  return $9HbP8$createComponent((0, $9HbP8$For), {
558
572
  get each() {
@@ -560,6 +574,7 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
560
574
  },
561
575
  children: (product_id, index) => {
562
576
  const owner = $9HbP8$getOwner();
577
+ const possible_content_block = $9HbP8$createMemo(() => content_blocks_?.()?.()?.[index()]);
563
578
  const display_accessor = $9HbP8$createMemo(prev => {
564
579
  const new_display = displays_by_key_().get(product_id);
565
580
  if (prev && $29ec7cddbe1d3484$var$deep_equal(prev, new_display))
@@ -612,7 +627,9 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
612
627
  }
613
628
  do_per_elements_?.(elements, index);
614
629
  });
615
- return product_card_resource; // https://github.com/solidjs/solid/releases/tag/v1.7.0
630
+ return [
631
+ // Show content block before product card, so it's *at* that index
632
+ possible_content_block, product_card_resource]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
616
633
  }
617
634
  });
618
635
  }
@@ -649,7 +666,7 @@ class $4fd48cb976bf1789$export$aa14a9f43128f61f extends $4fd48cb976bf1789$export
649
666
  });
650
667
  }
651
668
  }
652
- const $b7436a6d1fd64e3b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2);
669
+ const $b7436a6d1fd64e3b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
653
670
  function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
654
671
  return $9HbP8$ErrorBoundary({
655
672
  fallback(err, retry) {
@@ -675,8 +692,8 @@ function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
675
692
  }
676
693
  });
677
694
  }
678
- const $c8d5ff4524619fcd$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2),
679
- $c8d5ff4524619fcd$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<style type="text/css"></style>`, 2);
695
+ const $c8d5ff4524619fcd$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
696
+ $c8d5ff4524619fcd$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<style type=text/css>`);
680
697
  function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
681
698
  const container_class = "x" + $9HbP8$createUniqueId();
682
699
  const container_element_ = (() => {
@@ -902,7 +919,7 @@ function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
902
919
  // we're already in a root so cleanups are handled
903
920
  return component_in_error_boundary();
904
921
  }
905
- const $ee116da074deb002$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict recommendations"></div>`, 2);
922
+ const $ee116da074deb002$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict recommendations">`);
906
923
  function $ee116da074deb002$export$9574e176201e5e8d(props) {
907
924
  return $16b52438165aafe2$export$23fca46f3143581f(() => {
908
925
  const grid_spacing_override = $9HbP8$createMemo(() => {
@@ -937,7 +954,7 @@ function $ee116da074deb002$export$9574e176201e5e8d(props) {
937
954
  })();
938
955
  }, "RecommendationSlider failed");
939
956
  }
940
- const $3da8afe3ed57cf34$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="recommendation-grid"><!#><!/><!#><!/></div>`, 6);
957
+ const $3da8afe3ed57cf34$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
941
958
  function $3da8afe3ed57cf34$export$7da560f849543dff({
942
959
  recommendations_resource_: recommendations_resource_,
943
960
  product_card_template_: product_card_template_,
@@ -996,8 +1013,8 @@ function $3da8afe3ed57cf34$export$7da560f849543dff({
996
1013
  children: elements
997
1014
  });
998
1015
  }
999
- const $9ea5383493360761$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="show-more major" type="button"></button>`, 2),
1000
- $9ea5383493360761$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp recommendations"></div>`, 2);
1016
+ const $9ea5383493360761$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="show-more major"type=button>`),
1017
+ $9ea5383493360761$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp recommendations">`);
1001
1018
  function $9ea5383493360761$export$9756467d34d91cdb(props) {
1002
1019
  return $16b52438165aafe2$export$23fca46f3143581f(() => {
1003
1020
  const rows_object_ = $9HbP8$createMemo(() => {
@@ -1173,7 +1190,7 @@ function $8c0f86cb3e266eeb$export$a71e92cfbb498adc(props) {
1173
1190
  return $9HbP8$standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
1174
1191
  });
1175
1192
  }
1176
- const $bf52d9f9eebd1938$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2);
1193
+ const $bf52d9f9eebd1938$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
1177
1194
  const $bf52d9f9eebd1938$var$closing_functions = /*@__PURE__*/new Set();
1178
1195
  const $bf52d9f9eebd1938$export$22970a0140fc759c = /*@__PURE__*/$9HbP8$createSignal(false);
1179
1196
  function $bf52d9f9eebd1938$export$5196e4c01fa56fcb({
@@ -1264,8 +1281,8 @@ function $bf52d9f9eebd1938$export$5196e4c01fa56fcb({
1264
1281
  close_toast_: close_toast_
1265
1282
  };
1266
1283
  }
1267
- const $e9342fb3ac73a54a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="statement"></div>`, 2),
1268
- $e9342fb3ac73a54a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
1284
+ const $e9342fb3ac73a54a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=statement>`),
1285
+ $e9342fb3ac73a54a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=buttons><button class="restore minor"></button><button class="ok major">`);
1269
1286
  function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
1270
1287
  let previous_sorting;
1271
1288
  let on_toast_hidden;
@@ -1348,7 +1365,7 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
1348
1365
  if (delay_toast_) return show_configured_toast;else show_configured_toast();
1349
1366
  }
1350
1367
  $9HbP8$delegateEvents(["click"]);
1351
- const $19976a74d273070d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M11.669 10.531l9.156-9.156a.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569A.8.8 0 0 0 20.24 0a.77.77 0 0 0-.569.237l-9.14 9.14-9.14-9.14A.79.79 0 0 0 .807 0a.77.77 0 0 0-.569.237A.78.78 0 0 0 0 .807a.77.77 0 0 0 .237.569l9.156 9.156-9.156 9.14c-.159.157-.237.349-.237.569s.079.412.237.569c.085.085.174.148.268.19a1.095 1.095 0 0 0 .316.048.894.894 0 0 0 .285-.048.84.84 0 0 0 .285-.19l9.139-9.14 9.14 9.14a.894.894 0 0 0 .268.19 1.049 1.049 0 0 0 .301.048.941.941 0 0 0 .301-.048.84.84 0 0 0 .285-.19.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569z"></path></svg>`, 4);
1368
+ const $19976a74d273070d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M11.669 10.531l9.156-9.156a.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569A.8.8 0 0 0 20.24 0a.77.77 0 0 0-.569.237l-9.14 9.14-9.14-9.14A.79.79 0 0 0 .807 0a.77.77 0 0 0-.569.237A.78.78 0 0 0 0 .807a.77.77 0 0 0 .237.569l9.156 9.156-9.156 9.14c-.159.157-.237.349-.237.569s.079.412.237.569c.085.085.174.148.268.19a1.095 1.095 0 0 0 .316.048.894.894 0 0 0 .285-.048.84.84 0 0 0 .285-.19l9.139-9.14 9.14 9.14a.894.894 0 0 0 .268.19 1.049 1.049 0 0 0 .301.048.941.941 0 0 0 .301-.048.84.84 0 0 0 .285-.19.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569z">`);
1352
1369
  function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
1353
1370
  return (() => {
1354
1371
  const _el$ = $9HbP8$getNextElement($19976a74d273070d$var$_tmpl$);
@@ -1370,10 +1387,10 @@ function $91aa8ee9f431800d$export$325f75597868c4f0(stuff) {
1370
1387
  if (typeof stuff !== "string") return stuff;
1371
1388
  return stuff.toLowerCase();
1372
1389
  }
1373
- const $1adfe60f3a14a1d7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="clear-all-filters minor"></button>`, 2),
1374
- $1adfe60f3a14a1d7$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="inner"><span class="title"><!#><!/>: </span><!#><!/></div>`, 8),
1375
- $1adfe60f3a14a1d7$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!#><!/><span><!#><!/><!#><!/><!#><!/> – <!#><!/><!#><!/><!#><!/></span></button>`, 18),
1376
- $1adfe60f3a14a1d7$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!#><!/><span></span></button>`, 6);
1390
+ const $1adfe60f3a14a1d7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="clear-all-filters minor">`),
1391
+ $1adfe60f3a14a1d7$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
1392
+ $1adfe60f3a14a1d7$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> – <!$><!/><!$><!/><!$><!/>`),
1393
+ $1adfe60f3a14a1d7$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<button class="clear-filter major"><!$><!/><span>`);
1377
1394
  function $1adfe60f3a14a1d7$export$fecbb157621501bd({
1378
1395
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
1379
1396
  i18n_: i18n_,
@@ -1498,56 +1515,54 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({
1498
1515
  return matching_filter()?.op !== "inrange";
1499
1516
  },
1500
1517
  get fallback() {
1518
+ number_of_rendered_selected_filters_items_[1](prev => prev + 1);
1519
+ $9HbP8$onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
1501
1520
  return (() => {
1502
- number_of_rendered_selected_filters_items_[1](prev => prev + 1);
1503
- $9HbP8$onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
1504
- return (() => {
1505
- const _el$9 = $9HbP8$getNextElement($1adfe60f3a14a1d7$var$_tmpl$3),
1506
- _el$24 = _el$9.firstChild,
1507
- [_el$25, _co$9] = $9HbP8$getNextMarker(_el$24.nextSibling),
1508
- _el$10 = _el$25.nextSibling,
1509
- _el$12 = _el$10.firstChild,
1510
- [_el$13, _co$3] = $9HbP8$getNextMarker(_el$12.nextSibling),
1511
- _el$14 = _el$13.nextSibling,
1512
- [_el$15, _co$4] = $9HbP8$getNextMarker(_el$14.nextSibling),
1513
- _el$16 = _el$15.nextSibling,
1514
- [_el$17, _co$5] = $9HbP8$getNextMarker(_el$16.nextSibling),
1515
- _el$11 = _el$17.nextSibling,
1516
- _el$18 = _el$11.nextSibling,
1517
- [_el$19, _co$6] = $9HbP8$getNextMarker(_el$18.nextSibling),
1518
- _el$20 = _el$19.nextSibling,
1519
- [_el$21, _co$7] = $9HbP8$getNextMarker(_el$20.nextSibling),
1520
- _el$22 = _el$21.nextSibling,
1521
- [_el$23, _co$8] = $9HbP8$getNextMarker(_el$22.nextSibling);
1522
- _el$9.$$click = () => {
1523
- const cloned_selected_filters = [...read_selected_filters()];
1524
- cloned_selected_filters.splice(index_in_selected_filters, 1);
1525
- write_selected_filters(cloned_selected_filters);
1526
- };
1527
- $9HbP8$insert(_el$9, $9HbP8$createComponent((0, $19976a74d273070d$export$3b621d86b1566b2), {}), _el$25, _co$9);
1528
- $9HbP8$insert(_el$10, () => price_formatting_().pre_, _el$13, _co$3);
1529
- $9HbP8$insert(_el$10, $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
1530
- get price_() {
1531
- return filter().data[0];
1532
- },
1533
- get price_formatting_() {
1534
- return price_formatting_();
1535
- }
1536
- }), _el$15, _co$4);
1537
- $9HbP8$insert(_el$10, () => price_formatting_().post_, _el$17, _co$5);
1538
- $9HbP8$insert(_el$10, () => price_formatting_().pre_, _el$19, _co$6);
1539
- $9HbP8$insert(_el$10, $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
1540
- get price_() {
1541
- return filter().data[1];
1542
- },
1543
- get price_formatting_() {
1544
- return price_formatting_();
1545
- }
1546
- }), _el$21, _co$7);
1547
- $9HbP8$insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
1548
- $9HbP8$runHydrationEvents();
1549
- return _el$9;
1550
- })();
1521
+ const _el$9 = $9HbP8$getNextElement($1adfe60f3a14a1d7$var$_tmpl$3),
1522
+ _el$24 = _el$9.firstChild,
1523
+ [_el$25, _co$9] = $9HbP8$getNextMarker(_el$24.nextSibling),
1524
+ _el$10 = _el$25.nextSibling,
1525
+ _el$12 = _el$10.firstChild,
1526
+ [_el$13, _co$3] = $9HbP8$getNextMarker(_el$12.nextSibling),
1527
+ _el$14 = _el$13.nextSibling,
1528
+ [_el$15, _co$4] = $9HbP8$getNextMarker(_el$14.nextSibling),
1529
+ _el$16 = _el$15.nextSibling,
1530
+ [_el$17, _co$5] = $9HbP8$getNextMarker(_el$16.nextSibling),
1531
+ _el$11 = _el$17.nextSibling,
1532
+ _el$18 = _el$11.nextSibling,
1533
+ [_el$19, _co$6] = $9HbP8$getNextMarker(_el$18.nextSibling),
1534
+ _el$20 = _el$19.nextSibling,
1535
+ [_el$21, _co$7] = $9HbP8$getNextMarker(_el$20.nextSibling),
1536
+ _el$22 = _el$21.nextSibling,
1537
+ [_el$23, _co$8] = $9HbP8$getNextMarker(_el$22.nextSibling);
1538
+ _el$9.$$click = () => {
1539
+ const cloned_selected_filters = [...read_selected_filters()];
1540
+ cloned_selected_filters.splice(index_in_selected_filters, 1);
1541
+ write_selected_filters(cloned_selected_filters);
1542
+ };
1543
+ $9HbP8$insert(_el$9, $9HbP8$createComponent((0, $19976a74d273070d$export$3b621d86b1566b2), {}), _el$25, _co$9);
1544
+ $9HbP8$insert(_el$10, () => price_formatting_().pre_, _el$13, _co$3);
1545
+ $9HbP8$insert(_el$10, $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
1546
+ get price_() {
1547
+ return filter().data[0];
1548
+ },
1549
+ get price_formatting_() {
1550
+ return price_formatting_();
1551
+ }
1552
+ }), _el$15, _co$4);
1553
+ $9HbP8$insert(_el$10, () => price_formatting_().post_, _el$17, _co$5);
1554
+ $9HbP8$insert(_el$10, () => price_formatting_().pre_, _el$19, _co$6);
1555
+ $9HbP8$insert(_el$10, $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
1556
+ get price_() {
1557
+ return filter().data[1];
1558
+ },
1559
+ get price_formatting_() {
1560
+ return price_formatting_();
1561
+ }
1562
+ }), _el$21, _co$7);
1563
+ $9HbP8$insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
1564
+ $9HbP8$runHydrationEvents();
1565
+ return _el$9;
1551
1566
  })();
1552
1567
  },
1553
1568
  get children() {
@@ -1670,8 +1685,8 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({
1670
1685
  return outmost_element;
1671
1686
  }
1672
1687
  $9HbP8$delegateEvents(["click"]);
1673
- const $49b79728e7d9e2a1$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="count"></span>`, 2),
1674
- $49b79728e7d9e2a1$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text line-clamp"></span></div><!#><!/></label>`, 11);
1688
+ const $49b79728e7d9e2a1$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class=count>`),
1689
+ $49b79728e7d9e2a1$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<label class=input-row><div class=left><input type=checkbox><span class=custom-indicator></span><span class="text line-clamp"></span></div><!$><!/>`);
1675
1690
  const $49b79728e7d9e2a1$export$48513f6b9f8ce62d = props => {
1676
1691
  // It seems like there's no diffing without memos here (since we often just have computations in the getters above that update to the same result often because their dependencies change with unrelated changes often), so put memos here to avoid unneeded DOM changes
1677
1692
  const count = $9HbP8$createMemo(() => props.count_);
@@ -1719,19 +1734,19 @@ const $49b79728e7d9e2a1$export$48513f6b9f8ce62d = props => {
1719
1734
  _v$3 = !checked() && is_count_zero();
1720
1735
  _v$ !== _p$._v$ && _el$.classList.toggle("count-0", _p$._v$ = _v$);
1721
1736
  _v$2 !== _p$._v$2 && $9HbP8$setAttribute(_el$3, "name", _p$._v$2 = _v$2);
1722
- _v$3 !== _p$._v$3 && (_el$3.disabled = _p$._v$3 = _v$3);
1737
+ _v$3 !== _p$._v$3 && $9HbP8$setProperty(_el$3, "disabled", _p$._v$3 = _v$3);
1723
1738
  return _p$;
1724
1739
  }, {
1725
1740
  _v$: undefined,
1726
1741
  _v$2: undefined,
1727
1742
  _v$3: undefined
1728
1743
  });
1729
- $9HbP8$effect(() => _el$3.checked = checked());
1744
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$3, "checked", checked()));
1730
1745
  return _el$;
1731
1746
  })()
1732
1747
  );
1733
1748
  };
1734
- const $f8a56ba74eedd0c6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M10.173 5.548H5.5V.875c0-.075-.027-.14-.081-.193S5.301.601 5.226.601s-.14.027-.193.081-.081.118-.081.193v4.673H.274c-.075 0-.14.027-.193.081A.27.27 0 0 0 0 5.827c0 .075.027.14.081.193s.118.081.193.081h4.678v4.673c0 .075.027.14.081.193s.118.081.193.081.14-.027.193-.081.081-.118.081-.193V6.101h4.673a.27.27 0 0 0 .199-.081c.054-.054.08-.118.08-.193a.27.27 0 0 0-.279-.279z" fill="#000"></path></svg>`, 4);
1749
+ const $f8a56ba74eedd0c6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M10.173 5.548H5.5V.875c0-.075-.027-.14-.081-.193S5.301.601 5.226.601s-.14.027-.193.081-.081.118-.081.193v4.673H.274c-.075 0-.14.027-.193.081A.27.27 0 0 0 0 5.827c0 .075.027.14.081.193s.118.081.193.081h4.678v4.673c0 .075.027.14.081.193s.118.081.193.081.14-.027.193-.081.081-.118.081-.193V6.101h4.673a.27.27 0 0 0 .199-.081c.054-.054.08-.118.08-.193a.27.27 0 0 0-.279-.279z"fill=#000>`);
1735
1750
  function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
1736
1751
  return (() => {
1737
1752
  const _el$ = $9HbP8$getNextElement($f8a56ba74eedd0c6$var$_tmpl$);
@@ -1744,7 +1759,7 @@ function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
1744
1759
  return _el$;
1745
1760
  })();
1746
1761
  }
1747
- const $67b173f9db427028$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button type="button" class="expand-filter"><!#><!/><span></span></button>`, 6);
1762
+ const $67b173f9db427028$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button type=button class=expand-filter><!$><!/><span>`);
1748
1763
  function $67b173f9db427028$export$ca21a16d65b3dd8({
1749
1764
  show_extras_: [get_show_extras, set_show_extras],
1750
1765
  i18n_: i18n_
@@ -1766,7 +1781,7 @@ function $67b173f9db427028$export$ca21a16d65b3dd8({
1766
1781
  })();
1767
1782
  }
1768
1783
  $9HbP8$delegateEvents(["click"]);
1769
- const $a4601e6bea3ed1e6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class="checkboxes"><!#><!/><!#><!/></form>`, 6);
1784
+ const $a4601e6bea3ed1e6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class=checkboxes><!$><!/><!$><!/>`);
1770
1785
  const $a4601e6bea3ed1e6$var$max_visible_without_collapsing = 15;
1771
1786
  const $a4601e6bea3ed1e6$var$show_non_collapsible_when_collapsed = 4;
1772
1787
  function $a4601e6bea3ed1e6$export$dd948f91abc3a1c4({
@@ -1893,9 +1908,9 @@ function $a4601e6bea3ed1e6$export$dd948f91abc3a1c4({
1893
1908
  return _el$;
1894
1909
  })();
1895
1910
  }
1896
- const $eb8d9bf3b5700c26$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class="radios"></form>`, 2),
1897
- $eb8d9bf3b5700c26$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span class="count"></span>`, 2),
1898
- $eb8d9bf3b5700c26$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span><!#><!/></div><!#><!/></label>`, 11);
1911
+ const $eb8d9bf3b5700c26$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class=radios>`),
1912
+ $eb8d9bf3b5700c26$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span class=count>`),
1913
+ $eb8d9bf3b5700c26$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<label class=input-row><div class=left><input type=radio><span class=custom-indicator></span><!$><!/></div><!$><!/>`);
1899
1914
  function $eb8d9bf3b5700c26$export$430444115f70a734({
1900
1915
  selected_filters_: selected_filters_,
1901
1916
  filter_: filter_
@@ -1961,12 +1976,12 @@ function $eb8d9bf3b5700c26$export$430444115f70a734({
1961
1976
  }
1962
1977
  }), _el$10, _co$2);
1963
1978
  $9HbP8$effect(() => _el$2.classList.toggle("count-0", !!(count() === 0)));
1964
- $9HbP8$effect(() => _el$4.checked = $9HbP8$createMemo(() => {
1979
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$4, "checked", $9HbP8$createMemo(() => {
1965
1980
  const v = value();
1966
1981
  const data = existing_filter()?.data;
1967
1982
  if ($91aa8ee9f431800d$export$325f75597868c4f0(data) === $91aa8ee9f431800d$export$325f75597868c4f0(v)) return true;
1968
1983
  return Array.isArray(data) && data.every((item, index) => item === v[index]);
1969
- })());
1984
+ })()));
1970
1985
  return _el$2;
1971
1986
  })();
1972
1987
  }
@@ -1974,9 +1989,9 @@ function $eb8d9bf3b5700c26$export$430444115f70a734({
1974
1989
  return _el$;
1975
1990
  })();
1976
1991
  }
1977
- const $a6b08770e164eced$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="range"><div class="input-group"><div class="field"><input type="number"></div><div class="separator">-</div><div class="field"><input type="number"></div></div><!#><!/><div class="value-text"><span class="min"><!#><!/><!#><!/><!#><!/></span><span class="max"><!#><!/><!#><!/><!#><!/></span></div></div>`, 32),
1978
- $a6b08770e164eced$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="slider"><div class="progress"></div></div>`, 4),
1979
- $a6b08770e164eced$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
1992
+ const $a6b08770e164eced$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=range><div class=input-group><div class=field><input type=number></div><div class=separator>-</div><div class=field><input type=number></div></div><!$><!/><div class=value-text><span class=min><!$><!/><!$><!/><!$><!/></span><span class=max><!$><!/><!$><!/><!$><!/>`),
1993
+ $a6b08770e164eced$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=slider><div class=progress>`),
1994
+ $a6b08770e164eced$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
1980
1995
  function $a6b08770e164eced$export$e0d834a0ad870cda({
1981
1996
  filter_: filter_,
1982
1997
  selected_filters_: selected_filters_,
@@ -2129,11 +2144,11 @@ function $a6b08770e164eced$var$RangeSelector({
2129
2144
  _v$8 = min_(),
2130
2145
  _v$9 = max_();
2131
2146
  _v$ !== _p$._v$ && _el$.classList.toggle("disabled", _p$._v$ = _v$);
2132
- _v$2 !== _p$._v$2 && (_el$4.disabled = _p$._v$2 = _v$2);
2147
+ _v$2 !== _p$._v$2 && $9HbP8$setProperty(_el$4, "disabled", _p$._v$2 = _v$2);
2133
2148
  _v$3 !== _p$._v$3 && $9HbP8$setAttribute(_el$4, "aria-label", _p$._v$3 = _v$3);
2134
2149
  _v$4 !== _p$._v$4 && $9HbP8$setAttribute(_el$4, "min", _p$._v$4 = _v$4);
2135
2150
  _v$5 !== _p$._v$5 && $9HbP8$setAttribute(_el$4, "max", _p$._v$5 = _v$5);
2136
- _v$6 !== _p$._v$6 && (_el$7.disabled = _p$._v$6 = _v$6);
2151
+ _v$6 !== _p$._v$6 && $9HbP8$setProperty(_el$7, "disabled", _p$._v$6 = _v$6);
2137
2152
  _v$7 !== _p$._v$7 && $9HbP8$setAttribute(_el$7, "aria-label", _p$._v$7 = _v$7);
2138
2153
  _v$8 !== _p$._v$8 && $9HbP8$setAttribute(_el$7, "min", _p$._v$8 = _v$8);
2139
2154
  _v$9 !== _p$._v$9 && $9HbP8$setAttribute(_el$7, "max", _p$._v$9 = _v$9);
@@ -2149,8 +2164,8 @@ function $a6b08770e164eced$var$RangeSelector({
2149
2164
  _v$8: undefined,
2150
2165
  _v$9: undefined
2151
2166
  });
2152
- $9HbP8$effect(() => _el$4.value = get_current_range()[0]);
2153
- $9HbP8$effect(() => _el$7.value = get_current_range()[1]);
2167
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$4, "value", get_current_range()[0]));
2168
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$7, "value", get_current_range()[1]));
2154
2169
  $9HbP8$runHydrationEvents();
2155
2170
  return _el$;
2156
2171
  })();
@@ -2271,11 +2286,11 @@ function $a6b08770e164eced$var$LinearSlider({
2271
2286
  _v$15 = i18n_.range_filter_high_point_aria_label_(),
2272
2287
  _v$16 = min_(),
2273
2288
  _v$17 = max_();
2274
- _v$10 !== _p$._v$10 && (_el$28.disabled = _p$._v$10 = _v$10);
2289
+ _v$10 !== _p$._v$10 && $9HbP8$setProperty(_el$28, "disabled", _p$._v$10 = _v$10);
2275
2290
  _v$11 !== _p$._v$11 && $9HbP8$setAttribute(_el$28, "aria-label", _p$._v$11 = _v$11);
2276
2291
  _v$12 !== _p$._v$12 && $9HbP8$setAttribute(_el$28, "min", _p$._v$12 = _v$12);
2277
2292
  _v$13 !== _p$._v$13 && $9HbP8$setAttribute(_el$28, "max", _p$._v$13 = _v$13);
2278
- _v$14 !== _p$._v$14 && (_el$29.disabled = _p$._v$14 = _v$14);
2293
+ _v$14 !== _p$._v$14 && $9HbP8$setProperty(_el$29, "disabled", _p$._v$14 = _v$14);
2279
2294
  _v$15 !== _p$._v$15 && $9HbP8$setAttribute(_el$29, "aria-label", _p$._v$15 = _v$15);
2280
2295
  _v$16 !== _p$._v$16 && $9HbP8$setAttribute(_el$29, "min", _p$._v$16 = _v$16);
2281
2296
  _v$17 !== _p$._v$17 && $9HbP8$setAttribute(_el$29, "max", _p$._v$17 = _v$17);
@@ -2290,13 +2305,13 @@ function $a6b08770e164eced$var$LinearSlider({
2290
2305
  _v$16: undefined,
2291
2306
  _v$17: undefined
2292
2307
  });
2293
- $9HbP8$effect(() => _el$28.value = $9HbP8$createMemo(() => {
2308
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$28, "value", $9HbP8$createMemo(() => {
2294
2309
  min_();
2295
2310
  max_();
2296
2311
  return get_current_range()[0];
2297
2312
  }, undefined, {
2298
2313
  equals: false
2299
- })());
2314
+ })()));
2300
2315
  $9HbP8$runHydrationEvents();
2301
2316
  return _el$27;
2302
2317
  })()];
@@ -2315,7 +2330,7 @@ function $a6b08770e164eced$var$set_range_with_sanitation(min_, max_, current_ran
2315
2330
  current_range_signal[1](new_value);
2316
2331
  }
2317
2332
  $9HbP8$delegateEvents(["keydown", "click", "input"]);
2318
- const $0b6bc2f8309efa8a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
2333
+ const $0b6bc2f8309efa8a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=morphing-sign role=img><span></span><span>`);
2319
2334
  function $0b6bc2f8309efa8a$export$e5c2828934226505({
2320
2335
  expanded_: expanded_,
2321
2336
  i18n_: i18n_
@@ -2359,10 +2374,10 @@ function $0b6bc2f8309efa8a$export$e5c2828934226505({
2359
2374
  });
2360
2375
  return outer_div;
2361
2376
  }
2362
- const $1c8cac76cb67e9af$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class="checkboxes hierarchical"><!#><!/><!#><!/></form>`, 6),
2363
- $1c8cac76cb67e9af$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="checkbox-details"><!#><!/><!#><!/></div>`, 6),
2364
- $1c8cac76cb67e9af$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<details></details>`, 2),
2365
- $1c8cac76cb67e9af$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<summary class="category-parent"><div class="summary"><span class="count"></span><!#><!/></div></summary>`, 8);
2377
+ const $1c8cac76cb67e9af$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class="checkboxes hierarchical"><!$><!/><!$><!/>`),
2378
+ $1c8cac76cb67e9af$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=checkbox-details><!$><!/><!$><!/>`),
2379
+ $1c8cac76cb67e9af$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<details>`),
2380
+ $1c8cac76cb67e9af$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<summary class=category-parent><div class=summary><span class=count></span><!$><!/>`);
2366
2381
  const $1c8cac76cb67e9af$var$max_visible_without_collapsing = 15;
2367
2382
  const $1c8cac76cb67e9af$var$show_non_collapsible_when_collapsed = 4;
2368
2383
  function $1c8cac76cb67e9af$export$a32086fa6616eafd({
@@ -2790,9 +2805,9 @@ function $1c8cac76cb67e9af$var$expand_until_choice(data_structure) {
2790
2805
  }
2791
2806
  });
2792
2807
  }
2793
- const $93716a9ad0dea854$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="checkbox-grid" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"></div>`, 2),
2794
- $93716a9ad0dea854$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span class="count-wrapper"><span class="count"></span></span>`, 4),
2795
- $93716a9ad0dea854$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button><!#><!/><!#><!/></button>`, 6);
2808
+ const $93716a9ad0dea854$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=checkbox-grid style=position:absolute;z-index:-1;pointer-events:none;opacity:0>`),
2809
+ $93716a9ad0dea854$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span class=count-wrapper><span class=count>`),
2810
+ $93716a9ad0dea854$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button><!$><!/><!$><!/>`);
2796
2811
  const $93716a9ad0dea854$var$gap_px = 5;
2797
2812
  const $93716a9ad0dea854$var$max_columns = 3;
2798
2813
  const $93716a9ad0dea854$export$414f6a19d38e655c = ({
@@ -3000,7 +3015,7 @@ function $93716a9ad0dea854$var$adjust_sizes(container_width, sizes, set_cols_at_
3000
3015
  overrides: column_to_row_result
3001
3016
  }]]);
3002
3017
  }
3003
- const $e731d52d97444b7c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class="checkbox-color"><!#><!/><!#><!/></form>`, 6);
3018
+ const $e731d52d97444b7c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<form class=checkbox-color><!$><!/><!$><!/>`);
3004
3019
  const $e731d52d97444b7c$var$max_visible_without_collapsing = 30;
3005
3020
  const $e731d52d97444b7c$var$show_non_collapsible_when_collapsed = 8;
3006
3021
  function $e731d52d97444b7c$export$82ed4b28ecb67608({
@@ -3179,7 +3194,7 @@ var $12497d09ef87296e$export$2e2bcd8739ae039 = {
3179
3194
  "checkbox-grid": (0, $93716a9ad0dea854$export$414f6a19d38e655c),
3180
3195
  "checkbox-color": (0, $e731d52d97444b7c$export$82ed4b28ecb67608)
3181
3196
  };
3182
- const $9bc34983fc5f7bdb$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="16.8" height="14"><path d="M4.617 12.738a.48.48 0 0 1-.164-.027c-.051-.023-.094-.055-.129-.098L.125 8.414A.39.39 0 0 1 0 8.117c0-.113.039-.211.125-.293s.18-.125.293-.125.215.043.297.125l3.902 3.902L16.086.262c.082-.082.18-.125.297-.125s.211.043.293.125.125.184.125.301-.043.215-.125.297L4.914 12.613c-.039.043-.086.078-.141.098s-.102.027-.156.027zm0 0"></path></svg>`, 4);
3197
+ const $9bc34983fc5f7bdb$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=16.8 height=14><path d="M4.617 12.738a.48.48 0 0 1-.164-.027c-.051-.023-.094-.055-.129-.098L.125 8.414A.39.39 0 0 1 0 8.117c0-.113.039-.211.125-.293s.18-.125.293-.125.215.043.297.125l3.902 3.902L16.086.262c.082-.082.18-.125.297-.125s.211.043.293.125.125.184.125.301-.043.215-.125.297L4.914 12.613c-.039.043-.086.078-.141.098s-.102.027-.156.027zm0 0">`);
3183
3198
  function $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4(props = {}) {
3184
3199
  return (() => {
3185
3200
  const _el$ = $9HbP8$getNextElement($9bc34983fc5f7bdb$var$_tmpl$);
@@ -3188,7 +3203,7 @@ function $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4(props = {}) {
3188
3203
  return _el$;
3189
3204
  })();
3190
3205
  }
3191
- const $a7b58cb3bcffd156$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="show-selected" aria-hidden="true"><span></span><!#><!/></span>`, 6);
3206
+ const $a7b58cb3bcffd156$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class=show-selected aria-hidden=true><span></span><!$><!/>`);
3192
3207
  function $a7b58cb3bcffd156$export$53c59af873b303c9({
3193
3208
  selected_filters_in_group_: selected_filters_in_group_,
3194
3209
  i18n_: {
@@ -3308,7 +3323,7 @@ function $84d6cd10bb7b1589$export$ab34afce88557c0e(props) {
3308
3323
  }));
3309
3324
  return is_open;
3310
3325
  }
3311
- const $d20eff0aadc28983$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span></span>`, 2);
3326
+ const $d20eff0aadc28983$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span>`);
3312
3327
  function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
3313
3328
  return (() => {
3314
3329
  const _el$ = $9HbP8$getNextElement($d20eff0aadc28983$var$_tmpl$);
@@ -3349,14 +3364,14 @@ function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
3349
3364
  }
3350
3365
  });
3351
3366
  }
3352
- const $fab07f52c9861732$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="filter-collapsible"></div>`, 2),
3353
- $fab07f52c9861732$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class="clear-group"><!#><!/><span></span></button>`, 6),
3354
- $fab07f52c9861732$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="view-more-clear"><!#><!/><!#><!/></div>`, 6),
3355
- $fab07f52c9861732$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="filter-collapsible-body"><div class="filter-part"></div><!#><!/></div>`, 6),
3356
- $fab07f52c9861732$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<details class="filter-collapsible"></details>`, 2),
3357
- $fab07f52c9861732$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"><!#><!/><!#><!/></div></div></summary>`, 12),
3358
- $fab07f52c9861732$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class="ungrouped"></div>`, 2),
3359
- $fab07f52c9861732$var$_tmpl$8 = /*#__PURE__*/$9HbP8$template(`<button class="clear-all-filters major"></button>`, 2);
3367
+ const $fab07f52c9861732$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=filter-collapsible>`),
3368
+ $fab07f52c9861732$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class=clear-group><!$><!/><span>`),
3369
+ $fab07f52c9861732$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=view-more-clear><!$><!/><!$><!/>`),
3370
+ $fab07f52c9861732$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=filter-collapsible-body><div class=filter-part></div><!$><!/>`),
3371
+ $fab07f52c9861732$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<details class=filter-collapsible>`),
3372
+ $fab07f52c9861732$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
3373
+ $fab07f52c9861732$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class=ungrouped>`),
3374
+ $fab07f52c9861732$var$_tmpl$8 = /*#__PURE__*/$9HbP8$template(`<button class="clear-all-filters major">`);
3360
3375
  function $fab07f52c9861732$export$3f1a388cc0d8fed7(props) {
3361
3376
  // Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
3362
3377
  return $9HbP8$createComponent((0, $9HbP8$Show), {
@@ -4261,7 +4276,7 @@ function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
4261
4276
  $9HbP8$onCleanup(() => removeEventListener(event, catchified_handler));
4262
4277
  }
4263
4278
  }
4264
- const $6db49ca163afa2c3$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!#><!/> <b></b></span></div>`, 12);
4279
+ const $6db49ca163afa2c3$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=scroll-status style=display:none><span class=text><b></b> – <b></b> <!$><!/> <b>`);
4265
4280
  function $6db49ca163afa2c3$export$83fd5de5504a7a67({
4266
4281
  formatted_number_of_results_: formatted_number_of_results_,
4267
4282
  first_result_in_viewport_: [get_first_result_in_viewport],
@@ -4398,8 +4413,8 @@ function $6db49ca163afa2c3$export$83fd5de5504a7a67({
4398
4413
  return _el$;
4399
4414
  })();
4400
4415
  }
4401
- const $598245ecfe38f34b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a class="hint" href="javascript:void(0)"></a>`, 2),
4402
- $598245ecfe38f34b$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="no-results"><div class="text"></div><!#><!/></div>`, 6);
4416
+ const $598245ecfe38f34b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a class=hint href=javascript:void(0)>`),
4417
+ $598245ecfe38f34b$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=no-results><div class=text></div><!$><!/>`);
4403
4418
  function $598245ecfe38f34b$export$ef6006467f04ee41({
4404
4419
  i18n_: i18n_,
4405
4420
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
@@ -4552,7 +4567,9 @@ function $0449e7d49398c077$export$a1fd619a4743ca08({
4552
4567
  min_products_to_fetch_: min_products_to_fetch_,
4553
4568
  query_base_: query_base_,
4554
4569
  depict_api_: depict_api_,
4555
- is_loading_: is_loading_
4570
+ is_loading_: is_loading_,
4571
+ content_blocks_: content_blocks_,
4572
+ set_number_loaded_displays_: set_number_loaded_displays_
4556
4573
  }) {
4557
4574
  // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator and knowing when to load more
4558
4575
  const target_to_index_map = new Map();
@@ -4596,11 +4613,13 @@ function $0449e7d49398c077$export$a1fd619a4743ca08({
4596
4613
  query_base_: query_base_,
4597
4614
  depict_api_: depict_api_
4598
4615
  });
4616
+ $9HbP8$createComputed(() => set_number_loaded_displays_(displays_by_key_().size));
4599
4617
  return $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
4600
4618
  displays_by_key_: displays_by_key_,
4601
4619
  merchant_: merchant_,
4602
4620
  market_: market_,
4603
4621
  product_card_template_: product_card_template_,
4622
+ content_blocks_: content_blocks_,
4604
4623
  do_per_elements_: (elements, index_accessor) =>
4605
4624
  // Adds/removes elements from the "results in viewport" intersection observer above
4606
4625
  $9HbP8$createEffect(() => {
@@ -4622,7 +4641,347 @@ function $0449e7d49398c077$export$a1fd619a4743ca08({
4622
4641
  })
4623
4642
  });
4624
4643
  }
4625
- const $2d25e42846eac370$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="PLP-results"><!#><!/><!#><!/></div>`, 6);
4644
+ const $6dee9211e57ac31a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
4645
+ $6dee9211e57ac31a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<style type=text/css>`);
4646
+ const $6dee9211e57ac31a$export$c500183c31c2b22e = "--spans-columns";
4647
+ function $6dee9211e57ac31a$export$ab6b147eec64fea5(props) {
4648
+ const container_class = "x" + $9HbP8$createUniqueId();
4649
+ const container_element_ = (() => {
4650
+ const _el$ = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$);
4651
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(() => props.element_attributes, {
4652
+ "classList": {
4653
+ [container_class]: true
4654
+ }
4655
+ }), false, true);
4656
+ $9HbP8$insert(_el$, () => props.children);
4657
+ $9HbP8$runHydrationEvents();
4658
+ return _el$;
4659
+ })(); // Don't want this in the error boundary below, it should only be for the actual layouting
4660
+ return $9HbP8$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
4661
+ message_: "Failed calculating css grid layout",
4662
+ severity_: "error",
4663
+ get children() {
4664
+ return $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element_, false, container_class);
4665
+ }
4666
+ });
4667
+ }
4668
+ function $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element, insert_after_container = false, container_class) {
4669
+ if (!container_class) {
4670
+ // only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
4671
+ container_class = $9HbP8$make_random_classname();
4672
+ container_element.classList.add(container_class);
4673
+ }
4674
+ const container_selector = `.depict .${container_class}`; // class so ppl can have id if needed
4675
+ const col_styling = $9HbP8$createMemo(() => $6dee9211e57ac31a$var$generate_media_queried_declarations({
4676
+ container_selector_: container_selector,
4677
+ default_grid_spacing_text: props.grid_spacing,
4678
+ cols_at_size_: props.cols_at_size,
4679
+ override_vertical_spacing_: props.override_vertical_spacing,
4680
+ top_row_shortened_by_: props.top_row_shortened_by_()
4681
+ }));
4682
+ const base_styling = $9HbP8$createMemo(() => {
4683
+ return `${container_selector}{display:grid;}`;
4684
+ });
4685
+ const get_styling = $9HbP8$createMemo(() => base_styling() + col_styling());
4686
+ const style_element = (() => {
4687
+ const _el$2 = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$2);
4688
+ $9HbP8$insert(_el$2, get_styling);
4689
+ return _el$2;
4690
+ })(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
4691
+ if (insert_after_container) container_element.after(style_element);
4692
+ return [container_element, style_element];
4693
+ }
4694
+ function $6dee9211e57ac31a$var$generate_media_queried_declarations({
4695
+ container_selector_: container_selector_,
4696
+ default_grid_spacing_text: default_grid_spacing_text,
4697
+ cols_at_size_: cols_at_size_,
4698
+ override_vertical_spacing_: override_vertical_spacing_,
4699
+ top_row_shortened_by_: top_row_shortened_by_
4700
+ }) {
4701
+ return cols_at_size_.map(options => {
4702
+ const [n_cols, min, max, grid_spacing_for_size] = options;
4703
+ const spacing_to_use = grid_spacing_for_size || default_grid_spacing_text;
4704
+ // See comment in else block below
4705
+ const can_use_gap = $6dee9211e57ac31a$var$can_use_gap_for_unit(spacing_to_use) && (!override_vertical_spacing_ || $6dee9211e57ac31a$var$can_use_gap_for_unit(override_vertical_spacing_));
4706
+ let spacing_styling;
4707
+ let additional_styling = ""; // outside the media query
4708
+ if (can_use_gap) spacing_styling = `gap:${spacing_to_use};${override_vertical_spacing_ ? `row-gap:${override_vertical_spacing_};` : ``}`;else {
4709
+ // When using percent units, which our default styling does (because convenient) and our interface relies on (hard to specify different gaps for different screen sizes)
4710
+ // row gaps in grids are relative to the whole height of the grid, maybe see also https://stackoverflow.com/a/53563865. The issue with that is that as we load more products, the gap grows. Also, it breaks existing integrations.
4711
+ // Logical thought: use margins for the vertical spacing. But margins in grids are apparently relative to the size of the individual items in grids.
4712
+ // Given that, and that content blocks can be of different width, we have to do some complicated calculations to convert the provided gap, which is in gap of the total container width, to a margin of the individual items.
4713
+ const width_multiplier = `var(${$6dee9211e57ac31a$export$c500183c31c2b22e}, 1)`; // How many cards wide the current item is (needed because content blocks)
4714
+ const one_item_width_exclusing_gaps = `calc(calc(100 / ${n_cols}) - calc(calc(${n_cols * 2 - 2} * calc(${$6dee9211e57ac31a$var$strip_percent_unit(spacing_to_use)} / 2)) / ${n_cols}))`; // Width of one item in percent of the whole
4715
+ // Equation from layout.tsx, also used in CheckboxGrid. Needs half spacing for some reason
4716
+ const this_item_width_meat = `calc(${one_item_width_exclusing_gaps} * ${width_multiplier})`; // Width of just the card
4717
+ const this_item_width_gaps = `calc(calc(${width_multiplier} - 1) * ${$6dee9211e57ac31a$var$strip_percent_unit(spacing_to_use)})`; // Width of the gaps
4718
+ const this_item_width = `calc(${this_item_width_meat} + ${this_item_width_gaps})`; // Width of this item including gaps
4719
+ // this_item_width needs to be unitless, and since plain css can't do calc(40% / 5%) which would become unitless we need to strip all units in the calculations before
4720
+ const convert_top_spacing_to_item_width_percentage = spacing => `calc(calc(100 / ${this_item_width}) * ${spacing})`; // Now finally we can convert the desired spacing to a percentage of this individual item's width (including gaps that would be there but aren't because content blocks span them)
4721
+ spacing_styling = `column-gap:${spacing_to_use};`; // Still use gaps in the horizontal direction because that works flawlessly
4722
+ // Re-use old layout code to get the correct :nth-child declarations for the top margins
4723
+ additional_styling = $9HbP8$n_col_styling_with_dist(container_selector_ + ">", convert_top_spacing_to_item_width_percentage(default_grid_spacing_text), [[n_cols, min, max, grid_spacing_for_size ? convert_top_spacing_to_item_width_percentage(grid_spacing_for_size) : null]], "grid", override_vertical_spacing_ ? convert_top_spacing_to_item_width_percentage(override_vertical_spacing_) : override_vertical_spacing_, top_row_shortened_by_);
4724
+ }
4725
+ const media_query_body = `${container_selector_}{${spacing_styling}grid-template-columns:repeat(${n_cols},minmax(0,1fr));}`;
4726
+ return `${$9HbP8$layout_media_query_header(min, max)}{${media_query_body}}${additional_styling}`;
4727
+ }).join("");
4728
+ }
4729
+ function $6dee9211e57ac31a$var$can_use_gap_for_unit(spacing) {
4730
+ const trimmed_spacing = spacing.trim();
4731
+ return !trimmed_spacing.includes("%");
4732
+ }
4733
+ function $6dee9211e57ac31a$var$strip_percent_unit(css_value) {
4734
+ return css_value.replaceAll("%", "");
4735
+ }
4736
+ function $15aa76e6da02e5c2$export$cb5808ba002cdeed({
4737
+ layout_options_: layout_options_,
4738
+ sort_or_filter_open_: sort_or_filter_open_
4739
+ }) {
4740
+ return $9HbP8$createMemo(() => {
4741
+ const layout_options = layout_options_();
4742
+ // Add grid styling that changes when filters get opened/closed
4743
+ const when_filters_closed_cols = layout_options.cols_at_size;
4744
+ return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
4745
+ const [num_cols_default,,,, override_cols] = row;
4746
+ const cloned_row = [...row];
4747
+ // @ts-ignore
4748
+ cloned_row[0] = num_cols_default - 1;
4749
+ if (override_cols)
4750
+ // @ts-ignore
4751
+ cloned_row[4] = {
4752
+ overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(([row, column]) => [row, column - 1]))
4753
+ };
4754
+ return cloned_row;
4755
+ }) : when_filters_closed_cols;
4756
+ });
4757
+ }
4758
+ function $bed740eef1769419$export$a79e666719b3647c(cols_at_size_) {
4759
+ const size_active = $9HbP8$createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
4760
+ const media_query = $9HbP8$layout_media_query_header(min_width, max_width).replaceAll("@media", "");
4761
+ const matches = $dc9262ef6f786812$export$d9f36cf74e24d595(media_query);
4762
+ return [matches, n_cols];
4763
+ }));
4764
+ const n_cols_currently_showing = $9HbP8$createMemo(() => {
4765
+ try {
4766
+ const [, n_cols_currently_showing] = size_active().find(([media_query]) => media_query());
4767
+ return n_cols_currently_showing;
4768
+ } catch (e) {
4769
+ $9HbP8$dwarn("No active size found in columnsAtSize - can't render content blocks");
4770
+ return null;
4771
+ }
4772
+ });
4773
+ return n_cols_currently_showing;
4774
+ }
4775
+ function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
4776
+ const style = $9HbP8$createMemo(() => {
4777
+ const {
4778
+ style: style,
4779
+ height: height,
4780
+ width: width,
4781
+ aspectRatio: aspectRatio
4782
+ } = props;
4783
+ const is_image = aspectRatio != undefined;
4784
+ const size_data = is_image ? {
4785
+ width: "100%",
4786
+ "padding-bottom": 1 / aspectRatio * 100 + "%"
4787
+ } : {
4788
+ width: width,
4789
+ height: height
4790
+ };
4791
+ return {
4792
+ display: "block",
4793
+ ...(style || {}),
4794
+ ...size_data
4795
+ };
4796
+ });
4797
+ return $9HbP8$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
4798
+ get style() {
4799
+ return style();
4800
+ },
4801
+ get ["class"]() {
4802
+ return props.class;
4803
+ }
4804
+ });
4805
+ }
4806
+ const $e7a7eb102ddc0c79$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=content-block-wrapper>`);
4807
+ function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
4808
+ content_blocks_: incoming_content_blocks,
4809
+ cols_at_size_: cols_at_size_,
4810
+ number_of_items_shown_: number_of_items_shown_,
4811
+ set_top_row_shortened_by_: set_top_row_shortened_by_
4812
+ }) {
4813
+ // these are by row
4814
+ const [content_blocks, set_content_blocks] = $9HbP8$createStore([]);
4815
+ const n_cols_currently_showing_ = $bed740eef1769419$export$a79e666719b3647c(cols_at_size_);
4816
+ const products_to_rows = products => {
4817
+ const cols_currently_showing = n_cols_currently_showing_();
4818
+ if (cols_currently_showing === null) return 0;
4819
+ return Math.ceil(products / cols_currently_showing);
4820
+ };
4821
+ const showing_rows = $9HbP8$createMemo(() => products_to_rows(number_of_items_shown_()));
4822
+ $9HbP8$createEffect(() => {
4823
+ const incoming_value = incoming_content_blocks();
4824
+ if (!incoming_value) {
4825
+ set_content_blocks([]);
4826
+ return;
4827
+ }
4828
+ const capped_value = incoming_value.slice(0, showing_rows()); // Don't show more content blocks than we have rows
4829
+ set_content_blocks($9HbP8$reconcile(capped_value, {
4830
+ key: "content"
4831
+ })); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
4832
+ });
4833
+
4834
+ const get_wrapped_blocks_ = $e7a7eb102ddc0c79$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
4835
+ $9HbP8$createComputed(() => {
4836
+ // Update our styling if a content block forces some items that should be in the top row into a lower one, so we can generate margin-top declarations for them
4837
+ const top_row_block = get_wrapped_blocks_()[0];
4838
+ const blocks_in_top_row_taken = top_row_block?.span_columns;
4839
+ if (blocks_in_top_row_taken == undefined) {
4840
+ // Fall back to zero if no content block in top row, since then no blocks in top row are taken
4841
+ set_top_row_shortened_by_(0);
4842
+ return;
4843
+ }
4844
+ set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
4845
+ });
4846
+
4847
+ return $e7a7eb102ddc0c79$var$remap_blocks_to_index({
4848
+ get_wrapped_blocks_: get_wrapped_blocks_,
4849
+ n_cols_currently_showing_: n_cols_currently_showing_
4850
+ });
4851
+ }
4852
+ /**
4853
+ * Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
4854
+ * @returns an array where index is index of the blocks in the "displays array" and value is the content block (elements) to show at that index
4855
+ */
4856
+ function $e7a7eb102ddc0c79$var$remap_blocks_to_index({
4857
+ get_wrapped_blocks_: get_wrapped_blocks_,
4858
+ n_cols_currently_showing_: n_cols_currently_showing_
4859
+ }) {
4860
+ return $9HbP8$createMemo(() => {
4861
+ // This computation should be quite cheap since it just moves around things into an array
4862
+ const content_blocks_by_index = [];
4863
+ const constructed_block_arrays = new WeakSet();
4864
+ const wrapped_blocks = get_wrapped_blocks_();
4865
+ const cols_showing = n_cols_currently_showing_();
4866
+ // Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
4867
+ const displaced_products = []; // undefined = is product, true = is content block if number instead of tuple number indicates content blocks in that row. Index in first array is row, index in second array is column
4868
+ for (let i = 0; i < wrapped_blocks.length; i++) {
4869
+ // i = row to show at
4870
+ const block = wrapped_blocks[i];
4871
+ if (!block) continue; // Array can have holes/not defined places
4872
+ const index_of_first_item_in_row = i * cols_showing;
4873
+ const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
4874
+ const {
4875
+ span_rows: span_rows,
4876
+ position: position,
4877
+ span_columns: span_columns
4878
+ } = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
4879
+ let target_index;
4880
+ if (position === "left") target_index = index_of_first_item_in_row;else if (position === "right") target_index = index_of_last_item_in_row - span_columns;else if (position === "center") target_index = index_of_first_item_in_row + Math.floor((cols_showing - span_columns) / 2);else throw new Error("Invalid position for content block - must be left, right or center: " + JSON.stringify(position));
4881
+ // Calculate displacement of us by content blocks above us
4882
+ let displacement_by_added_blocks = 0;
4883
+ for (let j = 0; j < i; j++) {
4884
+ const row = displaced_products[j];
4885
+ if (row === undefined) continue; // there were no blocks in this row
4886
+ let items_in_row;
4887
+ if (typeof row === "number") items_in_row = row;else {
4888
+ items_in_row = row.filter(item => item).length;
4889
+ displaced_products[j] = items_in_row;
4890
+ }
4891
+ displacement_by_added_blocks += items_in_row;
4892
+ }
4893
+ const index_of_us_in_row = target_index - index_of_first_item_in_row;
4894
+ for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products[i]?.[j])
4895
+ // Add blocks in our *current* row to the displacement, but only the ones to our left
4896
+ displacement_by_added_blocks++;
4897
+ // Add block to output array at the correct index
4898
+ const final_target_index = target_index - displacement_by_added_blocks;
4899
+ const existing_block = content_blocks_by_index[final_target_index];
4900
+ const block_content = block.content;
4901
+ // If two blocks want to exist at the same location (can happen, for example if one block wants to be at the end of a row and the other one at the start of the next row) add an array with both
4902
+ if (existing_block) {
4903
+ if (constructed_block_arrays.has(existing_block))
4904
+ // Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
4905
+ existing_block.push(block_content);else {
4906
+ const array = [existing_block, block_content];
4907
+ constructed_block_arrays.add(array);
4908
+ content_blocks_by_index[final_target_index] = array;
4909
+ }
4910
+ } else content_blocks_by_index[final_target_index] = block_content;
4911
+ // Update displacement
4912
+ for (let j = 0; j < span_rows; j++) {
4913
+ const row = displaced_products[i + j] ||= [];
4914
+ for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
4915
+ }
4916
+ }
4917
+ return content_blocks_by_index;
4918
+ });
4919
+ }
4920
+ /**
4921
+ * Takes a store that contains an array from where index is number of row and value is the result of executing the content block rendering function.
4922
+ * Then renders the content and wraps it into a div with the correct styling.
4923
+ * Also caps span_columns to max available columns
4924
+ */
4925
+ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
4926
+ const get_wrapped_blocks = $9HbP8$mapArray(() => rendered_content_blocks, block => {
4927
+ if (!block) return;
4928
+ const get_span_columns = () => Math.min(block.span_columns, max_span_columns() ?? Infinity);
4929
+ return $9HbP8$mergeProps1(block, {
4930
+ // Create content divs for the blocks with as much fine-grained diffing as possible?
4931
+ content: (() => {
4932
+ const _el$ = $9HbP8$getNextElement($e7a7eb102ddc0c79$var$_tmpl$);
4933
+ $9HbP8$insert(_el$, $9HbP8$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
4934
+ get content() {
4935
+ return block.content;
4936
+ }
4937
+ }));
4938
+ $9HbP8$effect(_p$ => {
4939
+ const _v$ = {
4940
+ [(0, $6dee9211e57ac31a$export$c500183c31c2b22e)]: get_span_columns()
4941
+ },
4942
+ _v$2 = `span ${get_span_columns()}`,
4943
+ _v$3 = `span ${block.span_rows}`;
4944
+ _p$._v$ = $9HbP8$style(_el$, _v$, _p$._v$);
4945
+ _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
4946
+ _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
4947
+ return _p$;
4948
+ }, {
4949
+ _v$: undefined,
4950
+ _v$2: undefined,
4951
+ _v$3: undefined
4952
+ });
4953
+ return _el$;
4954
+ })(),
4955
+ get span_columns() {
4956
+ // Cap max width of block to the number of columns available, for everyone downstream
4957
+ return get_span_columns();
4958
+ }
4959
+ });
4960
+ });
4961
+ return get_wrapped_blocks;
4962
+ }
4963
+ /**
4964
+ * Basically adds support for async content block functions and shows a rudimentary placeholder if rendering is delayed. Required due to react having a rendering delay.
4965
+ */
4966
+ function $e7a7eb102ddc0c79$var$RenderContent(props) {
4967
+ const [resource] = $9HbP8$createResource(() => props.content,
4968
+ // Could be reactive
4969
+ fn => fn());
4970
+ $9HbP8$createEffect(() => {
4971
+ if (resource.error) console.error("Error in content block rendering", resource.error);
4972
+ });
4973
+ // The suspense is for when there's an async content block (which we have to support due to react having a rendering delay) so that we can show some height while it's loading (should kinda never be visible)
4974
+ return $9HbP8$createComponent((0, $9HbP8$Suspense), {
4975
+ get fallback() {
4976
+ return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
4977
+ width: "100%",
4978
+ height: "max(100%, 400px)"
4979
+ });
4980
+ },
4981
+ children: resource
4982
+ });
4983
+ }
4984
+ const $2d25e42846eac370$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=PLP-results><!$><!/><!$><!/>`);
4626
4985
  function $2d25e42846eac370$export$3925f87b1545cfc6({
4627
4986
  plp_results_: plp_results_,
4628
4987
  depict_api_: depict_api_,
@@ -4637,7 +4996,8 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
4637
4996
  sort_or_filter_open_: sort_or_filter_open_,
4638
4997
  product_card_template_: product_card_template_,
4639
4998
  layout_options_: layout_options_,
4640
- id_currently_querying_for_: id_currently_querying_for_
4999
+ id_currently_querying_for_: id_currently_querying_for_,
5000
+ content_blocks_by_row_: content_blocks_by_row_
4641
5001
  }) {
4642
5002
  // The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
4643
5003
  const is_loading_ = $9HbP8$createMemo(() => plp_results_.loading || query_base_.loading);
@@ -4684,20 +5044,33 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
4684
5044
  let is_just_after_plp_results_update = false;
4685
5045
  let fallback_is_alive = false;
4686
5046
  const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = $9HbP8$createSignal(true);
5047
+ const [top_row_shortened_by_, set_top_row_shortened_by_] = $9HbP8$createSignal(0);
5048
+ const [product_card_suspense_is_in_fallback, set_product_card_suspense_is_in_fallback] = $9HbP8$createSignal(false);
5049
+ const [number_loaded_displays, set_number_loaded_displays_] = $9HbP8$createSignal(0);
5050
+ const modified_cols_at_size = $15aa76e6da02e5c2$export$cb5808ba002cdeed({
5051
+ layout_options_: layout_options_,
5052
+ sort_or_filter_open_: sort_or_filter_open_
5053
+ });
5054
+ const num_placeholders_ = $9HbP8$createMemo(() => {
5055
+ // Can't use the data out of request_base for the id because request_base is too late, we need the correct amount of placeholders before the browser has restored the scroll state after processing all popstate events
5056
+ return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + (get_scroll_restoration_data().find(({
5057
+ for_id: for_id
5058
+ }) => for_id === id_currently_querying_for_())?.min_results_loaded ?? min_products_to_fetch_);
5059
+ });
5060
+ const number_of_items_shown_ = $9HbP8$createMemo(() => is_loading_() || product_card_suspense_is_in_fallback() ? num_placeholders_() : number_loaded_displays());
5061
+ const doesnt_have_content_blocks = $9HbP8$createMemo(() => !content_blocks_by_row_());
5062
+ const content_blocks_ = $9HbP8$createMemo(() => doesnt_have_content_blocks() ? () => [] : $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
5063
+ content_blocks_: content_blocks_by_row_,
5064
+ cols_at_size_: modified_cols_at_size,
5065
+ number_of_items_shown_: number_of_items_shown_,
5066
+ set_top_row_shortened_by_: set_top_row_shortened_by_
5067
+ }));
4687
5068
  const rendered_placeholders = $9HbP8$createMemo(() => get_should_have_placeholders_rendered() ? $6e41f1fde994db72$export$f33414a4df0afd3f({
5069
+ content_blocks_: content_blocks_,
4688
5070
  product_card_template_: product_card_template_,
4689
- num_placeholders_: $9HbP8$createMemo(() => {
4690
- // Can't use the data out of request_base for the id because request_base is too late, we need the correct amount of placeholders before the browser has restored the scroll state after processing all popstate events
4691
- return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + (get_scroll_restoration_data().find(({
4692
- for_id: for_id
4693
- }) => for_id === id_currently_querying_for_())?.min_results_loaded ?? min_products_to_fetch_);
4694
- })
5071
+ num_placeholders_: num_placeholders_
4695
5072
  }) : undefined);
4696
5073
  const [get_suspense_is_blocked, set_suspense_is_blocked] = $9HbP8$createSignal(false);
4697
- const modified_cols_at_size = $2d25e42846eac370$var$make_modified_cols_at_size({
4698
- layout_options_: layout_options_,
4699
- sort_or_filter_open_: sort_or_filter_open_
4700
- });
4701
5074
  const block_suspense_if_needed = () => {
4702
5075
  if (!is_just_after_plp_results_update) return;
4703
5076
  is_just_after_plp_results_update = false;
@@ -4727,18 +5100,18 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
4727
5100
  */
4728
5101
  const product_cards_when_data = $9HbP8$createComponent((0, $9HbP8$Suspense), {
4729
5102
  get fallback() {
4730
- return (() => {
4731
- fallback_is_alive = true;
4732
- $9HbP8$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
4733
- return $9HbP8$createMemo(() => {
4734
- // We need to be able to block the suspense since when async product cards are *rendering* we want to show the placeholders on initial load but not when loading more
4735
- // In future we could have individual suspense's for each product card, but that's too much for now
4736
- if (get_suspense_is_blocked()) return suspense_contents;
4737
- set_should_have_placeholders_rendered(true); // just in case
4738
- $9HbP8$onCleanup(() => set_should_have_placeholders_rendered(false));
4739
- return rendered_placeholders; // I lifted the placeholders into the memo since we don't want to re-render them when switching from <Show> to <Suspense>
4740
- });
4741
- })();
5103
+ fallback_is_alive = true;
5104
+ $9HbP8$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
5105
+ set_product_card_suspense_is_in_fallback(true); // Here for the content block code that needs to know how many items we're displaying
5106
+ $9HbP8$onCleanup(() => set_product_card_suspense_is_in_fallback(false));
5107
+ return $9HbP8$createMemo(() => {
5108
+ // We need to be able to block the suspense since when async product cards are *rendering* we want to show the placeholders on initial load but not when loading more
5109
+ // In future we could have individual suspense's for each product card, but that's too much for now
5110
+ if (get_suspense_is_blocked()) return suspense_contents;
5111
+ set_should_have_placeholders_rendered(true); // just in case
5112
+ $9HbP8$onCleanup(() => set_should_have_placeholders_rendered(false));
5113
+ return rendered_placeholders; // I lifted the placeholders into the memo since we don't want to re-render them when switching from <Show> to <Suspense>
5114
+ });
4742
5115
  },
4743
5116
 
4744
5117
  get children() {
@@ -4754,37 +5127,64 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
4754
5127
  min_products_to_fetch_: min_products_to_fetch_,
4755
5128
  query_base_: query_base_,
4756
5129
  depict_api_: depict_api_,
4757
- is_loading_: is_loading_
5130
+ is_loading_: is_loading_,
5131
+ content_blocks_: content_blocks_,
5132
+ set_number_loaded_displays_: set_number_loaded_displays_
4758
5133
  });
4759
5134
  $9HbP8$onCleanup(() => suspense_contents = undefined);
4760
5135
  return suspense_contents;
4761
5136
  })();
4762
5137
  }
4763
5138
  });
4764
- return [$9HbP8$memo((0, $a458486f22b22f63$export$a2cc176055f8f08)), $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), {
4765
- get cols_at_size() {
4766
- return modified_cols_at_size();
5139
+ /* 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 */
5140
+ const listing_contents = $9HbP8$createComponent((0, $9HbP8$Show), {
5141
+ get when() {
5142
+ return !is_loading_();
4767
5143
  },
4768
- get override_vertical_spacing() {
4769
- return layout_options_().override_vertical_spacing;
5144
+ get fallback() {
5145
+ return rendered_placeholders();
4770
5146
  },
4771
- get grid_spacing() {
4772
- return layout_options_().grid_spacing;
5147
+ children: product_cards_when_data
5148
+ });
5149
+ return [$9HbP8$memo((0, $a458486f22b22f63$export$a2cc176055f8f08)), $9HbP8$createComponent((0, $9HbP8$Show), {
5150
+ get when() {
5151
+ return doesnt_have_content_blocks();
4773
5152
  },
4774
- rows: "all",
4775
- layout: "grid",
4776
- element_attributes: {
4777
- class: "cards"
5153
+ get fallback() {
5154
+ return $9HbP8$createComponent((0, $6dee9211e57ac31a$export$ab6b147eec64fea5), {
5155
+ get cols_at_size() {
5156
+ return modified_cols_at_size();
5157
+ },
5158
+ get override_vertical_spacing() {
5159
+ return layout_options_().override_vertical_spacing;
5160
+ },
5161
+ get grid_spacing() {
5162
+ return layout_options_().grid_spacing;
5163
+ },
5164
+ element_attributes: {
5165
+ class: "cards css-grid"
5166
+ },
5167
+ top_row_shortened_by_: top_row_shortened_by_,
5168
+ children: listing_contents
5169
+ });
4778
5170
  },
4779
5171
  get children() {
4780
- return $9HbP8$createComponent((0, $9HbP8$Show), {
4781
- get when() {
4782
- return !is_loading_();
5172
+ return $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), {
5173
+ get cols_at_size() {
5174
+ return modified_cols_at_size();
5175
+ },
5176
+ get override_vertical_spacing() {
5177
+ return layout_options_().override_vertical_spacing;
4783
5178
  },
4784
- get fallback() {
4785
- return rendered_placeholders();
5179
+ get grid_spacing() {
5180
+ return layout_options_().grid_spacing;
4786
5181
  },
4787
- children: product_cards_when_data
5182
+ rows: "all",
5183
+ layout: "grid",
5184
+ element_attributes: {
5185
+ class: "cards"
5186
+ },
5187
+ children: listing_contents
4788
5188
  });
4789
5189
  }
4790
5190
  })];
@@ -4797,36 +5197,10 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
4797
5197
  return _el$;
4798
5198
  })();
4799
5199
  }
4800
- /**
4801
- * Changes cols_at_size depending on if filters are open or not so one card less is shown when the filters are open
4802
- * This function is special to the actual PLPResults.
4803
- */
4804
- function $2d25e42846eac370$var$make_modified_cols_at_size({
4805
- layout_options_: layout_options_,
4806
- sort_or_filter_open_: sort_or_filter_open_
4807
- }) {
4808
- return $9HbP8$createMemo(() => {
4809
- const layout_options = layout_options_();
4810
- // Add grid styling that changes when filters get opened/closed
4811
- const when_filters_closed_cols = layout_options.cols_at_size;
4812
- return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
4813
- const [num_cols_default,,,, override_cols] = row;
4814
- const cloned_row = [...row];
4815
- // @ts-ignore
4816
- cloned_row[0] = num_cols_default - 1;
4817
- if (override_cols)
4818
- // @ts-ignore
4819
- cloned_row[4] = {
4820
- overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(([row, column]) => [row, column - 1]))
4821
- };
4822
- return cloned_row;
4823
- }) : when_filters_closed_cols;
4824
- });
4825
- }
4826
- const $68a258a92b88f02f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="sorting-attributes"></div>`, 2),
4827
- $68a258a92b88f02f$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="sorting-direction"></div>`, 2),
4828
- $68a258a92b88f02f$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></div></div>`, 9),
4829
- $68a258a92b88f02f$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></label></div>`, 9);
5200
+ const $68a258a92b88f02f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=sorting-attributes>`),
5201
+ $68a258a92b88f02f$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=sorting-direction>`),
5202
+ $68a258a92b88f02f$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div><div class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`),
5203
+ $68a258a92b88f02f$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div><label class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`);
4830
5204
  function $68a258a92b88f02f$export$1f1775a58da589b5({
4831
5205
  available_sortings_: available_sortings_,
4832
5206
  current_sorting_: [get_current_sorting, set_current_sorting],
@@ -4850,7 +5224,7 @@ function $68a258a92b88f02f$export$1f1775a58da589b5({
4850
5224
  _el$7 = _el$6.nextSibling,
4851
5225
  _el$8 = _el$7.nextSibling,
4852
5226
  [_el$9, _co$] = $9HbP8$getNextMarker(_el$8.nextSibling);
4853
- _el$6.disabled = true;
5227
+ $9HbP8$setProperty(_el$6, "disabled", true);
4854
5228
  $9HbP8$insert(_el$5, $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
4855
5229
  height: "1.2em",
4856
5230
  width: "100%"
@@ -4885,7 +5259,7 @@ function $68a258a92b88f02f$export$1f1775a58da589b5({
4885
5259
  $9HbP8$addEventListener(_el$12, "change", $9HbP8$catchify(() => set_current_sorting(item())));
4886
5260
  $9HbP8$setAttribute(_el$12, "name", title_radio_name);
4887
5261
  $9HbP8$insert(_el$11, () => item().meta.title, _el$15, _co$2);
4888
- $9HbP8$effect(() => _el$12.checked = is_checked());
5262
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$12, "checked", is_checked()));
4889
5263
  return _el$10;
4890
5264
  })()
4891
5265
  );
@@ -4917,7 +5291,7 @@ function $68a258a92b88f02f$export$1f1775a58da589b5({
4917
5291
  })));
4918
5292
  $9HbP8$setAttribute(_el$18, "name", order_radio_name);
4919
5293
  $9HbP8$insert(_el$17, () => meta_of_currently_selected_sorting_()?.names?.[index], _el$21, _co$3);
4920
- $9HbP8$effect(() => _el$18.checked = is_checked());
5294
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$18, "checked", is_checked()));
4921
5295
  return _el$16;
4922
5296
  })();
4923
5297
  }
@@ -4964,7 +5338,7 @@ function $aea1edf92433e81e$export$fe334901e8bebd57() {
4964
5338
  // document.body.style.top = `-${from_top}px`;
4965
5339
  // document.body.style.overflowY = "scroll";
4966
5340
 
4967
- const $e1bb71e65e01a3a0$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" class="sort-icon"><path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zM9.449 3.5H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h1.398c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-1.051-.699h.703v-.699h-.703zm0 0"></path><path d="M10.852 6.301H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h2.801a.35.35 0 0 1 .348.352v1.398a.35.35 0 0 1-.348.352zm-2.453-.699H10.5v-.703H8.398zm3.851 3.5H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h4.199c.191 0 .352.156.352.352V8.75c0 .191-.16.352-.352.352zm-3.852-.703h3.5V7.7h-3.5zm5.25 3.499H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h5.598a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-5.25-.699H13.3V10.5H8.398zm0 0"></path></svg>`, 6);
5341
+ const $e1bb71e65e01a3a0$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 class=sort-icon><path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zM9.449 3.5H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h1.398c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-1.051-.699h.703v-.699h-.703zm0 0"></path><path d="M10.852 6.301H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h2.801a.35.35 0 0 1 .348.352v1.398a.35.35 0 0 1-.348.352zm-2.453-.699H10.5v-.703H8.398zm3.851 3.5H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h4.199c.191 0 .352.156.352.352V8.75c0 .191-.16.352-.352.352zm-3.852-.703h3.5V7.7h-3.5zm5.25 3.499H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h5.598a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-5.25-.699H13.3V10.5H8.398zm0 0">`);
4968
5342
  function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
4969
5343
  return (() => {
4970
5344
  const _el$ = $9HbP8$getNextElement($e1bb71e65e01a3a0$var$_tmpl$);
@@ -4973,7 +5347,7 @@ function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
4973
5347
  return _el$;
4974
5348
  })();
4975
5349
  }
4976
- const $05fbe84eb34564ec$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" class="sort-icon"><path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zm3.25 1.644H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h1.398a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-1.051-.699h.703V10.5h-.703zm2.454-2.097H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h2.801a.35.35 0 0 1 .348.352V8.75c0 .191-.156.352-.348.352zm-2.453-.703H10.5V7.7H8.398zm3.851-2.098H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h4.199c.191 0 .352.156.352.352v1.398c0 .195-.16.352-.352.352zm-3.852-.699h3.5v-.703h-3.5zm5.25-2.102H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h5.598c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-5.25-.699H13.3v-.699H8.398zm0 0"></path></svg>`, 4);
5350
+ const $05fbe84eb34564ec$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 class=sort-icon><path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zm3.25 1.644H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h1.398a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-1.051-.699h.703V10.5h-.703zm2.454-2.097H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h2.801a.35.35 0 0 1 .348.352V8.75c0 .191-.156.352-.348.352zm-2.453-.703H10.5V7.7H8.398zm3.851-2.098H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h4.199c.191 0 .352.156.352.352v1.398c0 .195-.16.352-.352.352zm-3.852-.699h3.5v-.703h-3.5zm5.25-2.102H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h5.598c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-5.25-.699H13.3v-.699H8.398zm0 0">`);
4977
5351
  function $05fbe84eb34564ec$export$d10e63059ddb9fd4(props = {}) {
4978
5352
  return (() => {
4979
5353
  const _el$ = $9HbP8$getNextElement($05fbe84eb34564ec$var$_tmpl$);
@@ -4982,7 +5356,7 @@ function $05fbe84eb34564ec$export$d10e63059ddb9fd4(props = {}) {
4982
5356
  return _el$;
4983
5357
  })();
4984
5358
  }
4985
- const $b9bf7fce0ae60241$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" class="filter-icon"><path d="M1.75 14.697c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V8.75c0-.096.034-.178.103-.246s.15-.103.246-.103.178.034.246.103.103.15.103.246v5.599c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-9.796c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-3.5c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103.103.153.103.253v3.5c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.796H1.053c-.292 0-.54-.103-.745-.308S0 6.938 0 6.651s.103-.54.308-.745.453-.308.745-.308h1.395c.292 0 .54.103.745.308s.308.453.308.745-.103.533-.308.738-.453.308-.745.308zM1.053 6.303c-.1 0-.185.034-.253.103s-.103.15-.103.246.034.178.103.246S.952 7 1.053 7h1.395c.1 0 .185-.034.253-.103s.103-.15.103-.246-.034-.178-.103-.246-.153-.103-.253-.103H1.053zm5.599 8.395c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-2.796c0-.1.034-.184.103-.253s.15-.102.246-.102.178.034.246.102.103.153.103.253v2.796c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-7c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V1.053c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103S7 .952 7 1.053v6.296c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803H5.947c-.287 0-.533-.102-.738-.308s-.308-.453-.308-.745.103-.533.308-.738.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.451.308.738-.103.54-.308.745-.453.308-.745.308zM5.947 9.099c-.096 0-.178.034-.246.103s-.103.15-.103.246.034.185.103.253.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.103-.153.103-.253-.034-.178-.103-.246-.15-.103-.246-.103H5.947zm5.605 5.599c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246v-7c0-.096.034-.178.102-.246S11.453 7 11.553 7s.178.034.246.103.103.15.103.246v7c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-11.197c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246V1.053c0-.1.034-.185.102-.253s.153-.103.253-.103.178.034.246.103.103.153.103.253v2.099c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803h-1.401c-.287 0-.533-.103-.738-.308s-.308-.453-.308-.745.103-.54.308-.745.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.453.308.745-.102.54-.308.745-.453.308-.745.308zm-1.401-1.401c-.096 0-.178.034-.246.103s-.102.15-.102.246.034.178.102.246.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.102-.15.102-.246-.034-.178-.102-.246-.15-.103-.246-.103h-1.401z"></path></svg>`, 4);
5359
+ const $b9bf7fce0ae60241$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=15 class=filter-icon><path d="M1.75 14.697c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V8.75c0-.096.034-.178.103-.246s.15-.103.246-.103.178.034.246.103.103.15.103.246v5.599c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-9.796c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-3.5c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103.103.153.103.253v3.5c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.796H1.053c-.292 0-.54-.103-.745-.308S0 6.938 0 6.651s.103-.54.308-.745.453-.308.745-.308h1.395c.292 0 .54.103.745.308s.308.453.308.745-.103.533-.308.738-.453.308-.745.308zM1.053 6.303c-.1 0-.185.034-.253.103s-.103.15-.103.246.034.178.103.246S.952 7 1.053 7h1.395c.1 0 .185-.034.253-.103s.103-.15.103-.246-.034-.178-.103-.246-.153-.103-.253-.103H1.053zm5.599 8.395c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-2.796c0-.1.034-.184.103-.253s.15-.102.246-.102.178.034.246.102.103.153.103.253v2.796c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-7c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V1.053c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103S7 .952 7 1.053v6.296c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803H5.947c-.287 0-.533-.102-.738-.308s-.308-.453-.308-.745.103-.533.308-.738.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.451.308.738-.103.54-.308.745-.453.308-.745.308zM5.947 9.099c-.096 0-.178.034-.246.103s-.103.15-.103.246.034.185.103.253.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.103-.153.103-.253-.034-.178-.103-.246-.15-.103-.246-.103H5.947zm5.605 5.599c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246v-7c0-.096.034-.178.102-.246S11.453 7 11.553 7s.178.034.246.103.103.15.103.246v7c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-11.197c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246V1.053c0-.1.034-.185.102-.253s.153-.103.253-.103.178.034.246.103.103.153.103.253v2.099c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803h-1.401c-.287 0-.533-.103-.738-.308s-.308-.453-.308-.745.103-.54.308-.745.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.453.308.745-.102.54-.308.745-.453.308-.745.308zm-1.401-1.401c-.096 0-.178.034-.246.103s-.102.15-.102.246.034.178.102.246.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.102-.15.102-.246-.034-.178-.102-.246-.15-.103-.246-.103h-1.401z">`);
4986
5360
  function $b9bf7fce0ae60241$export$28f6150e232898de() {
4987
5361
  return $9HbP8$getNextElement($b9bf7fce0ae60241$var$_tmpl$);
4988
5362
  }
@@ -4994,13 +5368,13 @@ function $b9bf7fce0ae60241$export$28f6150e232898de() {
4994
5368
  function $4cc1c021eee2a432$export$50f68cc9882e36a4(args_for_filtering) {
4995
5369
  return args_for_filtering.available_filters_()?.length === 0 && !args_for_filtering.selected_filters_[0]()?.length;
4996
5370
  }
4997
- const $757dac7f7c6c5241$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="clear minor"></button>`, 2),
4998
- $757dac7f7c6c5241$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp" id="depict-filter-sort-mobile-modal-container"><div class="depict-filter-sort-modal-backdrop"></div><button class="dismiss-modal"></button><div class="filter-sort-modal"><div class="body"><!#><!/><!#><!/></div><div class="bottom-row"><!#><!/><button class="show-results major"></button></div></div></div>`, 20),
4999
- $757dac7f7c6c5241$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<details class="sorting"></details>`, 2),
5000
- $757dac7f7c6c5241$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><!#><!/><span></span></div><!#><!/></div></summary>`, 12),
5001
- $757dac7f7c6c5241$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div class="body"></div>`, 2),
5002
- $757dac7f7c6c5241$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<details class="filters"></details>`, 2),
5003
- $757dac7f7c6c5241$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<b></b>`, 2);
5371
+ const $757dac7f7c6c5241$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="clear minor">`),
5372
+ $757dac7f7c6c5241$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp"id=depict-filter-sort-mobile-modal-container><div class=depict-filter-sort-modal-backdrop></div><button class=dismiss-modal></button><div class=filter-sort-modal><div class=body><!$><!/><!$><!/></div><div class=bottom-row><!$><!/><button class="show-results major">`),
5373
+ $757dac7f7c6c5241$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<details class=sorting>`),
5374
+ $757dac7f7c6c5241$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<summary class=sort-filter-summary><div class=summary><div class=left-els><!$><!/><span></span></div><!$><!/>`),
5375
+ $757dac7f7c6c5241$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div class=body>`),
5376
+ $757dac7f7c6c5241$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<details class=filters>`),
5377
+ $757dac7f7c6c5241$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<b>`);
5004
5378
  const $757dac7f7c6c5241$var$no_go_selector = ".range .range-group";
5005
5379
  function $757dac7f7c6c5241$export$9bf11afa910f536e({
5006
5380
  args_for_sorting_: args_for_sorting_,
@@ -5315,16 +5689,16 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({
5315
5689
  })()];
5316
5690
  }
5317
5691
  $9HbP8$delegateEvents(["click", "touchstart"]);
5318
- const $11d594c749b76228$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M12.949 7.699H.352A.35.35 0 0 1 0 7.352.35.35 0 0 1 .352 7h12.598a.35.35 0 0 1 .352.352.35.35 0 0 1-.352.348zm0 0"></path></svg>`, 4);
5692
+ const $11d594c749b76228$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14><path d="M12.949 7.699H.352A.35.35 0 0 1 0 7.352.35.35 0 0 1 .352 7h12.598a.35.35 0 0 1 .352.352.35.35 0 0 1-.352.348zm0 0">`);
5319
5693
  function $11d594c749b76228$export$cb808a3c41736d8e() {
5320
5694
  return $9HbP8$getNextElement($11d594c749b76228$var$_tmpl$);
5321
5695
  }
5322
- const $cdea4cf8c5c071ef$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="filters"><div class="body"></div></div>`, 4),
5323
- $cdea4cf8c5c071ef$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="sorting"><div class="body"></div></div>`, 4),
5324
- $cdea4cf8c5c071ef$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"><!#><!/><!#><!/><!#><!/></div></div></div>`, 12),
5325
- $cdea4cf8c5c071ef$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<span class="num-filters"></span>`, 2),
5326
- $cdea4cf8c5c071ef$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div class="open-filters-button-container"><!#><!/><button type="button"><!#><!/><span></span></button></div>`, 10),
5327
- $cdea4cf8c5c071ef$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<button class="toggle-button for-sorting major-minor-transition"><span></span><!#><!/></button>`, 6);
5696
+ const $cdea4cf8c5c071ef$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=filters><div class=body>`),
5697
+ $cdea4cf8c5c071ef$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=sorting><div class=body>`),
5698
+ $cdea4cf8c5c071ef$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=sort-and-filter-buttons><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`),
5699
+ $cdea4cf8c5c071ef$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<span class=num-filters>`),
5700
+ $cdea4cf8c5c071ef$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div class=open-filters-button-container><!$><!/><button type=button><!$><!/><span>`),
5701
+ $cdea4cf8c5c071ef$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<button class="toggle-button for-sorting major-minor-transition"><span></span><!$><!/>`);
5328
5702
  function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
5329
5703
  current_sorting_: current_sorting_,
5330
5704
  set_extra_els_in_results_container_: set_extra_els_in_results_container_,
@@ -5643,11 +6017,11 @@ function $cdea4cf8c5c071ef$var$OpenSortingButton({
5643
6017
  })();
5644
6018
  }
5645
6019
  $9HbP8$delegateEvents(["click"]);
5646
- const $f9182ab2348d1080$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M6.402.453L2.203 4.652a.35.35 0 0 0 0 .496c.137.137.359.137.492 0l3.605-3.605v11.406a.35.35 0 0 0 .348.352.35.35 0 0 0 .352-.352V1.543l3.602 3.605a.35.35 0 0 0 .496 0c.066-.07.102-.16.102-.25a.35.35 0 0 0-.102-.246L6.895.453c-.133-.137-.355-.137-.492 0zm0 0"></path></svg>`, 4);
6020
+ const $f9182ab2348d1080$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14><path d="M6.402.453L2.203 4.652a.35.35 0 0 0 0 .496c.137.137.359.137.492 0l3.605-3.605v11.406a.35.35 0 0 0 .348.352.35.35 0 0 0 .352-.352V1.543l3.602 3.605a.35.35 0 0 0 .496 0c.066-.07.102-.16.102-.25a.35.35 0 0 0-.102-.246L6.895.453c-.133-.137-.355-.137-.492 0zm0 0">`);
5647
6021
  function $f9182ab2348d1080$export$2624c5890f1bbcf7() {
5648
6022
  return $9HbP8$getNextElement($f9182ab2348d1080$var$_tmpl$);
5649
6023
  }
5650
- const $0b0380f75d729d63$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="floating-buttons"><button class="filter"><div></div></button><button class="sort"><div></div></button><button class="up"><div></div></button></div>`, 14);
6024
+ const $0b0380f75d729d63$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=floating-buttons><button class=filter><div></div></button><button class=sort><div></div></button><button class=up><div>`);
5651
6025
  function $0b0380f75d729d63$export$b23abd26de154ede(props) {
5652
6026
  if (0, $9HbP8$isServer) return; // won't show in initial render and need scroll position
5653
6027
  const [is_small, set_is_small] = $9HbP8$createSignal(true);
@@ -5790,9 +6164,9 @@ function $0b0380f75d729d63$var$ActualFloatingButtons({
5790
6164
  })();
5791
6165
  }
5792
6166
  $9HbP8$delegateEvents(["click"]);
5793
- const $dfa5b6f7c5e421df$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<nav class="crumbs"></nav>`, 2),
5794
- $dfa5b6f7c5e421df$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class="crumb"></a>`, 2),
5795
- $dfa5b6f7c5e421df$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<span class="separator"></span>`, 2);
6167
+ const $dfa5b6f7c5e421df$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<nav class=crumbs>`),
6168
+ $dfa5b6f7c5e421df$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class=crumb>`),
6169
+ $dfa5b6f7c5e421df$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<span class=separator>`);
5796
6170
  function $dfa5b6f7c5e421df$export$5646050d516e06bc({
5797
6171
  crumb_data_: get_api_crumb_data,
5798
6172
  router_: router_,
@@ -5862,9 +6236,9 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({
5862
6236
  });
5863
6237
  }
5864
6238
  $9HbP8$delegateEvents(["click"]);
5865
- const $06edf3aec9073663$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<nav class="quicklinks"></nav>`, 2),
5866
- $06edf3aec9073663$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>QuickLinks failed</div>`, 2),
5867
- $06edf3aec9073663$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<a class="quicklink"></a>`, 2);
6239
+ const $06edf3aec9073663$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<nav class=quicklinks>`),
6240
+ $06edf3aec9073663$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>QuickLinks failed`),
6241
+ $06edf3aec9073663$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<a class=quicklink>`);
5868
6242
  function $06edf3aec9073663$export$466cdc317043f6cb({
5869
6243
  quicklinks_data_: quicklinks_data_,
5870
6244
  router_: router_,
@@ -6265,8 +6639,8 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
6265
6639
  });
6266
6640
  tracking_function_for_plp_results(plp_results_);
6267
6641
  }
6268
- const $9f5cb586f34c14e6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="statement" style="white-space:pre-wrap">No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.</div>`, 2),
6269
- $9f5cb586f34c14e6$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="buttons"><button class="ok major"></button></div>`, 4);
6642
+ const $9f5cb586f34c14e6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=statement style=white-space:pre-wrap>No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.`),
6643
+ $9f5cb586f34c14e6$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=buttons><button class="ok major">`);
6270
6644
  function $9f5cb586f34c14e6$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
6271
6645
  if (!(0, $9HbP8$is_debug)) return; // Just to make sure we don't show this in production
6272
6646
  const owner = $9HbP8$getOwner();
@@ -6325,10 +6699,10 @@ function $2ab89d64b7f1d5ef$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
6325
6699
  set_selected_filters(new_filters);
6326
6700
  });
6327
6701
  }
6328
- const $df5d81d0fe61ff21$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="product-count"><!#><!/> <!#><!/></div>`, 6),
6329
- $df5d81d0fe61ff21$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2),
6330
- $df5d81d0fe61ff21$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6),
6331
- $df5d81d0fe61ff21$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp category"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 20);
6702
+ const $df5d81d0fe61ff21$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=product-count><!$><!/> <!$><!/>`),
6703
+ $df5d81d0fe61ff21$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>`),
6704
+ $df5d81d0fe61ff21$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
6705
+ $df5d81d0fe61ff21$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
6332
6706
  function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6333
6707
  depict_api_: depict_api_,
6334
6708
  query_id_: query_id_,
@@ -6356,7 +6730,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6356
6730
  product_card_template_: product_card_template_,
6357
6731
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
6358
6732
  sorting_query_param_: sorting_query_param_,
6359
- filter_query_param_prefix_: filter_query_param_prefix_
6733
+ filter_query_param_prefix_: filter_query_param_prefix_,
6734
+ content_blocks_by_row_: content_blocks_by_row_
6360
6735
  }) {
6361
6736
  let results_for;
6362
6737
  let only_show_filters_opener_;
@@ -6648,6 +7023,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6648
7023
  product_card_template_: product_card_template_,
6649
7024
  sort_or_filter_open_: sort_or_filter_open_,
6650
7025
  desktop_filter_elements_: desktop_filter_elements_,
7026
+ content_blocks_by_row_: content_blocks_by_row_,
6651
7027
  id_currently_querying_for_: query_id_,
6652
7028
  no_results_options_: {
6653
7029
  selected_filters_: selected_filters_,
@@ -6939,7 +7315,7 @@ function $d8dbf52fea1773e2$export$f50b88e2a00918b5(fn) {
6939
7315
  }
6940
7316
  };
6941
7317
  }
6942
- const $961b5c64bef4662f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp category"></div>`, 2);
7318
+ const $961b5c64bef4662f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp category">`);
6943
7319
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
6944
7320
  /**
6945
7321
  * Type for the private properties that are shared between the different exported search SDK wrapper functions.
@@ -7157,6 +7533,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
7157
7533
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
7158
7534
  selected_filters_: selected_filters_,
7159
7535
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
7536
+ content_blocks_by_row_: () => props.content_blocks_by_row,
7160
7537
  scroll_restoration_data_: scroll_restoration_data_,
7161
7538
  layout_options_: $9HbP8$createMemo(() => ({
7162
7539
  cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
@@ -7220,7 +7597,7 @@ function $961b5c64bef4662f$var$get_shared_properties(depict_category) {
7220
7597
  if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
7221
7598
  return shared_properties;
7222
7599
  }
7223
- const $e4615ecd1849548f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="category-title"><h1 class="title"></h1><span class="explanation"> — <!#><!/></span></div>`, 8);
7600
+ const $e4615ecd1849548f$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=category-title><h1 class=title></h1><span class=explanation> — <!$><!/>`);
7224
7601
  const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
7225
7602
  const actual_function = ({
7226
7603
  category_title_: category_title_,
@@ -7245,7 +7622,7 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
7245
7622
  actual_function[(0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c)] = "simple";
7246
7623
  return actual_function;
7247
7624
  })();
7248
- const $a6e23a834336fc19$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="sort-and-filter-buttons fake" aria-hidden="true" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"><div class="outer"><div class="inner"><!#><!/><!#><!/><!#><!/></div></div></div>`, 12);
7625
+ const $a6e23a834336fc19$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="sort-and-filter-buttons fake"aria-hidden=true style=position:absolute;z-index:-1;pointer-events:none;opacity:0><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`);
7249
7626
  const $a6e23a834336fc19$export$824dde41348efed1 = /*@__PURE__*/(() => {
7250
7627
  const actual_function = ({
7251
7628
  make_product_count_: make_product_count_,
@@ -7407,38 +7784,7 @@ async function $c9312089e8983364$var$download_categories(tenant, market, type) {
7407
7784
  return [];
7408
7785
  }
7409
7786
  }
7410
- function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
7411
- const style = $9HbP8$createMemo(() => {
7412
- const {
7413
- style: style,
7414
- height: height,
7415
- width: width,
7416
- aspectRatio: aspectRatio
7417
- } = props;
7418
- const is_image = aspectRatio != undefined;
7419
- const size_data = is_image ? {
7420
- width: "100%",
7421
- "padding-bottom": 1 / aspectRatio * 100 + "%"
7422
- } : {
7423
- width: width,
7424
- height: height
7425
- };
7426
- return {
7427
- display: "block",
7428
- ...(style || {}),
7429
- ...size_data
7430
- };
7431
- });
7432
- return $9HbP8$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
7433
- get style() {
7434
- return style();
7435
- },
7436
- get ["class"]() {
7437
- return props.class;
7438
- }
7439
- });
7440
- }
7441
- const $bb15dfb548a7666e$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="title"></span></div></div></div>`, 10);
7787
+ const $bb15dfb548a7666e$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=title>`);
7442
7788
  function $bb15dfb548a7666e$export$ee1733d9a8495996() {
7443
7789
  return (() => {
7444
7790
  const _el$ = $9HbP8$getNextElement($bb15dfb548a7666e$var$_tmpl$),
@@ -7456,8 +7802,8 @@ function $bb15dfb548a7666e$export$ee1733d9a8495996() {
7456
7802
  return _el$;
7457
7803
  })();
7458
7804
  }
7459
- const $897bd4a76f611b38$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="parent-title"></span>`, 2),
7460
- $897bd4a76f611b38$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class="category-suggestion"><span class="title"></span><!#><!/></a>`, 6);
7805
+ const $897bd4a76f611b38$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class=parent-title>`),
7806
+ $897bd4a76f611b38$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class=category-suggestion><span class=title></span><!$><!/>`);
7461
7807
  function $897bd4a76f611b38$export$d757d54550ebfb3d({
7462
7808
  category_suggestion_: category_suggestion_,
7463
7809
  router_: router_
@@ -7491,11 +7837,11 @@ function $897bd4a76f611b38$export$d757d54550ebfb3d({
7491
7837
  })();
7492
7838
  }
7493
7839
  $9HbP8$delegateEvents(["click"]);
7494
- const $22e59517c2ec94d3$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16"><path d="M.773 7.371L7.98.176C8.098.059 8.238 0 8.402 0s.305.059.422.176S9 .434 9 .598s-.059.305-.176.422L2.648 7.195h19.547a.59.59 0 0 1 .609.609c0 .172-.059.305-.176.422s-.262.176-.434.176H2.648l6.176 6.176a.59.59 0 0 1 .176.426c0 .16-.059.301-.176.422-.055.059-.121.109-.199.137s-.148.039-.223.039-.156-.012-.234-.039a.54.54 0 0 1-.187-.137L.773 8.227c-.117-.117-.176-.258-.176-.422a.6.6 0 0 1 .176-.434zm0 0"></path></svg>`, 4);
7840
+ const $22e59517c2ec94d3$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=16><path d="M.773 7.371L7.98.176C8.098.059 8.238 0 8.402 0s.305.059.422.176S9 .434 9 .598s-.059.305-.176.422L2.648 7.195h19.547a.59.59 0 0 1 .609.609c0 .172-.059.305-.176.422s-.262.176-.434.176H2.648l6.176 6.176a.59.59 0 0 1 .176.426c0 .16-.059.301-.176.422-.055.059-.121.109-.199.137s-.148.039-.223.039-.156-.012-.234-.039a.54.54 0 0 1-.187-.137L.773 8.227c-.117-.117-.176-.258-.176-.422a.6.6 0 0 1 .176-.434zm0 0">`);
7495
7841
  function $22e59517c2ec94d3$export$1c641004b5485fed() {
7496
7842
  return $9HbP8$getNextElement($22e59517c2ec94d3$var$_tmpl$);
7497
7843
  }
7498
- const $16f0ed5ea30d8d9c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M19.811 20.174l-6.234-6.809a7.96 7.96 0 0 0 .923-1.179c.274-.424.502-.865.687-1.323a8.04 8.04 0 0 0 .42-1.436 7.88 7.88 0 0 0 .144-1.507c0-.526-.051-1.042-.154-1.548-.096-.506-.243-.995-.441-1.466s-.441-.919-.728-1.343a8.28 8.28 0 0 0-.984-1.21 7.86 7.86 0 0 0-1.2-.984A7.56 7.56 0 0 0 10.89.651C10.418.453 9.929.302 9.423.2S8.401.046 7.875.046 6.833.097 6.327.2 5.332.453 4.86.651a7.56 7.56 0 0 0-1.354.718c-.431.287-.831.615-1.2.984a8.28 8.28 0 0 0-.984 1.21 7.73 7.73 0 0 0-.728 1.343c-.198.472-.349.96-.451 1.466A8.31 8.31 0 0 0 0 7.921a8.31 8.31 0 0 0 .144 1.548c.103.506.253.995.451 1.466a8.08 8.08 0 0 0 .728 1.354 7.86 7.86 0 0 0 .984 1.2 7.54 7.54 0 0 0 1.2.995c.431.287.882.53 1.354.728.472.191.96.338 1.466.441a8.31 8.31 0 0 0 1.548.144c.451 0 .896-.038 1.333-.113a7.83 7.83 0 0 0 1.282-.328 7.55 7.55 0 0 0 1.2-.533 8.08 8.08 0 0 0 1.107-.749l6.245 6.809a.45.45 0 0 0 .174.123.55.55 0 0 0 .205.041.61.61 0 0 0 .195-.031c.061-.021.116-.055.164-.102.109-.096.164-.219.164-.369.007-.144-.038-.267-.133-.369zM1.046 7.921c0-.937.178-1.818.533-2.646.362-.834.851-1.559 1.466-2.174.622-.615 1.347-1.101 2.174-1.456.827-.362 1.712-.543 2.656-.543s1.829.181 2.656.543c.827.355 1.548.841 2.164 1.456.622.615 1.111 1.34 1.466 2.174a6.52 6.52 0 0 1 .543 2.646c0 .943-.181 1.829-.543 2.656a6.89 6.89 0 0 1-1.466 2.174c-.615.615-1.336 1.104-2.164 1.466-.827.356-1.712.533-2.656.533s-1.829-.178-2.656-.533c-.827-.362-1.552-.851-2.174-1.466-.615-.622-1.104-1.347-1.466-2.174-.355-.827-.533-1.712-.533-2.656z"></path></svg>`, 4);
7844
+ const $16f0ed5ea30d8d9c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M19.811 20.174l-6.234-6.809a7.96 7.96 0 0 0 .923-1.179c.274-.424.502-.865.687-1.323a8.04 8.04 0 0 0 .42-1.436 7.88 7.88 0 0 0 .144-1.507c0-.526-.051-1.042-.154-1.548-.096-.506-.243-.995-.441-1.466s-.441-.919-.728-1.343a8.28 8.28 0 0 0-.984-1.21 7.86 7.86 0 0 0-1.2-.984A7.56 7.56 0 0 0 10.89.651C10.418.453 9.929.302 9.423.2S8.401.046 7.875.046 6.833.097 6.327.2 5.332.453 4.86.651a7.56 7.56 0 0 0-1.354.718c-.431.287-.831.615-1.2.984a8.28 8.28 0 0 0-.984 1.21 7.73 7.73 0 0 0-.728 1.343c-.198.472-.349.96-.451 1.466A8.31 8.31 0 0 0 0 7.921a8.31 8.31 0 0 0 .144 1.548c.103.506.253.995.451 1.466a8.08 8.08 0 0 0 .728 1.354 7.86 7.86 0 0 0 .984 1.2 7.54 7.54 0 0 0 1.2.995c.431.287.882.53 1.354.728.472.191.96.338 1.466.441a8.31 8.31 0 0 0 1.548.144c.451 0 .896-.038 1.333-.113a7.83 7.83 0 0 0 1.282-.328 7.55 7.55 0 0 0 1.2-.533 8.08 8.08 0 0 0 1.107-.749l6.245 6.809a.45.45 0 0 0 .174.123.55.55 0 0 0 .205.041.61.61 0 0 0 .195-.031c.061-.021.116-.055.164-.102.109-.096.164-.219.164-.369.007-.144-.038-.267-.133-.369zM1.046 7.921c0-.937.178-1.818.533-2.646.362-.834.851-1.559 1.466-2.174.622-.615 1.347-1.101 2.174-1.456.827-.362 1.712-.543 2.656-.543s1.829.181 2.656.543c.827.355 1.548.841 2.164 1.456.622.615 1.111 1.34 1.466 2.174a6.52 6.52 0 0 1 .543 2.646c0 .943-.181 1.829-.543 2.656a6.89 6.89 0 0 1-1.466 2.174c-.615.615-1.336 1.104-2.164 1.466-.827.356-1.712.533-2.656.533s-1.829-.178-2.656-.533c-.827-.362-1.552-.851-2.174-1.466-.615-.622-1.104-1.347-1.466-2.174-.355-.827-.533-1.712-.533-2.656z">`);
7499
7845
  function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
7500
7846
  return (() => {
7501
7847
  const _el$ = $9HbP8$getNextElement($16f0ed5ea30d8d9c$var$_tmpl$);
@@ -7508,8 +7854,8 @@ function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
7508
7854
  return _el$;
7509
7855
  })();
7510
7856
  }
7511
- const $5285d2814d0fac0c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="back" type="button"></button>`, 2),
7512
- $5285d2814d0fac0c$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="search-field"><!#><!/><div class="field"><input class="query" tabindex="0"><button type="button" class="clear"></button></div><button class="submit major" type="button"></button></div>`, 11);
7857
+ const $5285d2814d0fac0c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class=back type=button>`),
7858
+ $5285d2814d0fac0c$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
7513
7859
  function $5285d2814d0fac0c$export$b94867ecbd698f21({
7514
7860
  search_field_value_: search_field_value_,
7515
7861
  input_field_ref_: input_field_ref_,
@@ -7608,7 +7954,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
7608
7954
  input_field_ref_?.(el);
7609
7955
  });
7610
7956
  typeof _ref$ === "function" && $9HbP8$use(_ref$, _el$4);
7611
- _el$4.classList.toggle("has-adjacent-back-button", !!on_back_);
7957
+ _el$4.classList.toggle("has-adjacent-back-button", !!!!on_back_);
7612
7958
  $9HbP8$addEventListener(_el$5, "click", $9HbP8$catchify(() => {
7613
7959
  search_field_value_[1]("");
7614
7960
  clear_filters_(true);
@@ -7636,14 +7982,14 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
7636
7982
  _v$4: undefined,
7637
7983
  _v$5: undefined
7638
7984
  });
7639
- $9HbP8$effect(() => _el$4.value = search_field_value_[0]());
7985
+ $9HbP8$effect(() => $9HbP8$setProperty(_el$4, "value", search_field_value_[0]()));
7640
7986
  $9HbP8$runHydrationEvents();
7641
7987
  return _el$;
7642
7988
  })();
7643
7989
  }
7644
7990
  $9HbP8$delegateEvents(["click", "keydown", "input", "pointerdown"]);
7645
- const $172e1b898d457050$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="search-recs"><h3 class="search-recs-title"></h3><!#><!/><!#><!/></div>`, 8),
7646
- $172e1b898d457050$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class="show-more major" type="button"></button>`, 2);
7991
+ const $172e1b898d457050$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=search-recs><h3 class=search-recs-title></h3><!$><!/><!$><!/>`),
7992
+ $172e1b898d457050$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class="show-more major"type=button>`);
7647
7993
  const $172e1b898d457050$export$1c8c715550dc689d = 2;
7648
7994
  function $172e1b898d457050$export$7de92c4c2205ebf3({
7649
7995
  depict_api_: depict_api_,
@@ -7884,9 +8230,9 @@ async function $bfd908d13d90934c$export$e16630ecb9644a1c({
7884
8230
  const $c97b1f0e44afb9d2$export$27b710c08412a7ad = obj => {
7885
8231
  return Object.fromEntries(Object.keys(obj).map(key => [key, obj[key]()]));
7886
8232
  };
7887
- const $e003be2a50d9e5bc$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="orig price"><!#><!/><!#><!/><!#><!/></span>`, 8),
7888
- $e003be2a50d9e5bc$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="brand"></span><span class="title line-clamp"></span><!#><!/></div><div class="price-container"><!#><!/><span class="price"><!#><!/><!#><!/><!#><!/></span></div></div></a>`, 26),
7889
- $e003be2a50d9e5bc$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="tagline"></div>`, 2);
8233
+ const $e003be2a50d9e5bc$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="orig price"><!$><!/><!$><!/><!$><!/>`),
8234
+ $e003be2a50d9e5bc$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=brand></span><span class="title line-clamp"></span><!$><!/></div><div class=price-container><!$><!/><span class=price><!$><!/><!$><!/><!$><!/>`),
8235
+ $e003be2a50d9e5bc$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=tagline>`);
7890
8236
  const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = (display_or_variant_container, {
7891
8237
  i18n: i18n
7892
8238
  }, router_) => {
@@ -8009,7 +8355,7 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = (display_or_variant_container,
8009
8355
  })();
8010
8356
  };
8011
8357
  $9HbP8$delegateEvents(["click"]);
8012
- const $eea41f703612261b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="instant-results"></div>`, 2);
8358
+ const $eea41f703612261b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=instant-results>`);
8013
8359
  function $eea41f703612261b$export$62f101a8aa597bf8({
8014
8360
  depict_api_: depict_api_,
8015
8361
  search_field_value_: [get_search_field_value],
@@ -8102,8 +8448,8 @@ function $eea41f703612261b$export$62f101a8aa597bf8({
8102
8448
  return _el$;
8103
8449
  })();
8104
8450
  }
8105
- const $4ceabea39c9a56ac$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2),
8106
- $4ceabea39c9a56ac$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
8451
+ const $4ceabea39c9a56ac$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;>`),
8452
+ $4ceabea39c9a56ac$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;>`);
8107
8453
  function $4ceabea39c9a56ac$export$50b90be27d8502d9(el, [get_style_props, set_style_props], bottom_distance) {
8108
8454
  const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
8109
8455
  const upper_overflowing_box = $9HbP8$getNextElement($4ceabea39c9a56ac$var$_tmpl$);
@@ -8151,12 +8497,12 @@ function $a36cbc4f68bfd590$export$91c3b6774e8be0f5({
8151
8497
  return u_o.href;
8152
8498
  });
8153
8499
  }
8154
- const $694b7f90501fea4c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13"><path d="M6 12.598a5.88 5.88 0 0 1-1.611-.223c-.52-.145-1.008-.352-1.465-.621s-.875-.605-1.254-.996-.693-.83-.955-1.318c-.039-.07-.047-.145-.023-.223s.072-.143.146-.182.145-.047.223-.023.143.072.182.146a5.54 5.54 0 0 0 .861 1.184c.34.352.715.65 1.125.897s.85.435 1.318.568A5.5 5.5 0 0 0 6 12a5.24 5.24 0 0 0 2.098-.422c.656-.285 1.229-.672 1.717-1.16s.879-1.061 1.16-1.717a5.22 5.22 0 0 0 .428-2.104c0-.742-.143-1.441-.428-2.098s-.668-1.229-1.16-1.717a5.42 5.42 0 0 0-1.717-1.154A5.18 5.18 0 0 0 6 1.201c-.496 0-.979.066-1.447.199s-.904.316-1.318.563-.785.539-1.125.891a5.31 5.31 0 0 0-.855 1.172.32.32 0 0 1-.164.141c-.066.023-.135.023-.205 0a.3.3 0 0 1-.158-.135C.691 3.965.682 3.895.697 3.82l.51-2.385c.016-.078.059-.141.129-.187a.28.28 0 0 1 .229-.041c.078.016.141.059.188.129a.28.28 0 0 1 .041.229l-.211.973a5.91 5.91 0 0 1 .926-.814 5.78 5.78 0 0 1 1.066-.609A5.79 5.79 0 0 1 4.746.732C5.156.643 5.574.598 6 .598c.402 0 .795.039 1.178.117s.76.191 1.119.34a5.95 5.95 0 0 1 1.031.551c.328.219.633.469.914.75s.535.592.75.92a5.77 5.77 0 0 1 .551 1.025 5.53 5.53 0 0 1 .34 1.119c.078.387.117.779.117 1.178s-.039.797-.117 1.184-.187.754-.34 1.113a5.96 5.96 0 0 1-.551 1.031 5.56 5.56 0 0 1-.75.914c-.281.285-.586.537-.914.756a5.95 5.95 0 0 1-1.031.551c-.359.148-.732.26-1.119.334s-.775.117-1.178.117zm0-5.695c-.023 0-.049-.004-.076-.012s-.047-.018-.07-.029l-2.701-1.5c-.07-.039-.117-.098-.141-.176a.29.29 0 0 1 .023-.229c.043-.074.104-.123.182-.146s.158-.014.229.029l2.543 1.412 3.152-2.004c.07-.047.145-.061.223-.041a.29.29 0 0 1 .188.135c.047.066.061.141.041.223a.27.27 0 0 1-.129.188L6.158 6.855a.27.27 0 0 1-.076.035c-.027.008-.055.012-.082.012z" fill="#0f0f0f"></path></svg>`, 4);
8500
+ const $694b7f90501fea4c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=12 height=13><path d="M6 12.598a5.88 5.88 0 0 1-1.611-.223c-.52-.145-1.008-.352-1.465-.621s-.875-.605-1.254-.996-.693-.83-.955-1.318c-.039-.07-.047-.145-.023-.223s.072-.143.146-.182.145-.047.223-.023.143.072.182.146a5.54 5.54 0 0 0 .861 1.184c.34.352.715.65 1.125.897s.85.435 1.318.568A5.5 5.5 0 0 0 6 12a5.24 5.24 0 0 0 2.098-.422c.656-.285 1.229-.672 1.717-1.16s.879-1.061 1.16-1.717a5.22 5.22 0 0 0 .428-2.104c0-.742-.143-1.441-.428-2.098s-.668-1.229-1.16-1.717a5.42 5.42 0 0 0-1.717-1.154A5.18 5.18 0 0 0 6 1.201c-.496 0-.979.066-1.447.199s-.904.316-1.318.563-.785.539-1.125.891a5.31 5.31 0 0 0-.855 1.172.32.32 0 0 1-.164.141c-.066.023-.135.023-.205 0a.3.3 0 0 1-.158-.135C.691 3.965.682 3.895.697 3.82l.51-2.385c.016-.078.059-.141.129-.187a.28.28 0 0 1 .229-.041c.078.016.141.059.188.129a.28.28 0 0 1 .041.229l-.211.973a5.91 5.91 0 0 1 .926-.814 5.78 5.78 0 0 1 1.066-.609A5.79 5.79 0 0 1 4.746.732C5.156.643 5.574.598 6 .598c.402 0 .795.039 1.178.117s.76.191 1.119.34a5.95 5.95 0 0 1 1.031.551c.328.219.633.469.914.75s.535.592.75.92a5.77 5.77 0 0 1 .551 1.025 5.53 5.53 0 0 1 .34 1.119c.078.387.117.779.117 1.178s-.039.797-.117 1.184-.187.754-.34 1.113a5.96 5.96 0 0 1-.551 1.031 5.56 5.56 0 0 1-.75.914c-.281.285-.586.537-.914.756a5.95 5.95 0 0 1-1.031.551c-.359.148-.732.26-1.119.334s-.775.117-1.178.117zm0-5.695c-.023 0-.049-.004-.076-.012s-.047-.018-.07-.029l-2.701-1.5c-.07-.039-.117-.098-.141-.176a.29.29 0 0 1 .023-.229c.043-.074.104-.123.182-.146s.158-.014.229.029l2.543 1.412 3.152-2.004c.07-.047.145-.061.223-.041a.29.29 0 0 1 .188.135c.047.066.061.141.041.223a.27.27 0 0 1-.129.188L6.158 6.855a.27.27 0 0 1-.076.035c-.027.008-.055.012-.082.012z"fill=#0f0f0f>`);
8155
8501
  function $694b7f90501fea4c$export$5d2caaa6b530761c() {
8156
8502
  return $9HbP8$getNextElement($694b7f90501fea4c$var$_tmpl$);
8157
8503
  }
8158
- const $7ad3a93cbe6fa208$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6),
8159
- $7ad3a93cbe6fa208$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class="item"><div class="left"><!#><!/><span class="line-clamp"></span></div><button class="delete"></button></a>`, 10);
8504
+ const $7ad3a93cbe6fa208$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=previous-searches><h2 class=text></h2><div class=list>`),
8505
+ $7ad3a93cbe6fa208$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a class=item><div class=left><!$><!/><span class=line-clamp></span></div><button class=delete>`);
8160
8506
  function $7ad3a93cbe6fa208$export$a146ac6fa8346a25({
8161
8507
  text_: text_,
8162
8508
  previous_searches_: previous_searches_,
@@ -8259,8 +8605,8 @@ function $7ad3a93cbe6fa208$export$a146ac6fa8346a25({
8259
8605
  }
8260
8606
  });
8261
8607
  }
8262
- const $f3213c0640246d58$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="highlighted-part"></span>`, 2),
8263
- $f3213c0640246d58$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span></span>`, 2);
8608
+ const $f3213c0640246d58$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class=highlighted-part>`),
8609
+ $f3213c0640246d58$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span>`);
8264
8610
  function $f3213c0640246d58$export$ba17c5b7e6dda39f({
8265
8611
  whole_text_to_display_: whole_text_to_display_memo,
8266
8612
  searching_for_value_: searching_for_value_memo,
@@ -8331,7 +8677,7 @@ function $f3213c0640246d58$export$ba17c5b7e6dda39f({
8331
8677
  return _el$2;
8332
8678
  })();
8333
8679
  }
8334
- const $190927650b4840eb$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="M56 26.455a13.71 13.71 0 0 0-9.578 3.967A13.71 13.71 0 0 0 42.455 40v176a13.71 13.71 0 0 0 3.967 9.578A13.71 13.71 0 0 0 56 229.545h144A13.71 13.71 0 0 0 213.545 216V88a2.456 2.456 0 0 1 0-.002c.001-1.452-.597-2.895-1.623-3.922l-55.998-55.998a5.61 5.61 0 0 0-3.922-1.623 2.456 2.456 0 0 1-.002 0zm0 11.09h88A2.456 2.456 0 0 1 146.455 40v48c0 2.903 2.642 5.545 5.545 5.545h48A2.456 2.456 0 0 1 202.455 96v120a2.456 2.456 0 0 1-2.455 2.455H56A2.456 2.456 0 0 1 53.545 216V40A2.456 2.456 0 0 1 56 37.545zm103.061 11.498a2.456 2.456 0 0 1 2.676.531l28.689 28.689a2.456 2.456 0 0 1-1.736 4.191H160A2.456 2.456 0 0 1 157.545 80V51.311a2.456 2.456 0 0 1 1.516-2.268zM96 130.455c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545zm0 32c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545z"></path></svg>`, 4);
8680
+ const $190927650b4840eb$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg width=32 height=32 viewBox="0 0 256 256"><path d="M56 26.455a13.71 13.71 0 0 0-9.578 3.967A13.71 13.71 0 0 0 42.455 40v176a13.71 13.71 0 0 0 3.967 9.578A13.71 13.71 0 0 0 56 229.545h144A13.71 13.71 0 0 0 213.545 216V88a2.456 2.456 0 0 1 0-.002c.001-1.452-.597-2.895-1.623-3.922l-55.998-55.998a5.61 5.61 0 0 0-3.922-1.623 2.456 2.456 0 0 1-.002 0zm0 11.09h88A2.456 2.456 0 0 1 146.455 40v48c0 2.903 2.642 5.545 5.545 5.545h48A2.456 2.456 0 0 1 202.455 96v120a2.456 2.456 0 0 1-2.455 2.455H56A2.456 2.456 0 0 1 53.545 216V40A2.456 2.456 0 0 1 56 37.545zm103.061 11.498a2.456 2.456 0 0 1 2.676.531l28.689 28.689a2.456 2.456 0 0 1-1.736 4.191H160A2.456 2.456 0 0 1 157.545 80V51.311a2.456 2.456 0 0 1 1.516-2.268zM96 130.455c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545zm0 32c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545z">`);
8335
8681
  function $190927650b4840eb$export$605674723bcc715c(props = {}) {
8336
8682
  return (() => {
8337
8683
  const _el$ = $9HbP8$getNextElement($190927650b4840eb$var$_tmpl$);
@@ -8340,15 +8686,15 @@ function $190927650b4840eb$export$605674723bcc715c(props = {}) {
8340
8686
  return _el$;
8341
8687
  })();
8342
8688
  }
8343
- const $cea52f6b24092f05$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a class="suggestion"></a>`, 2),
8344
- $cea52f6b24092f05$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="search-icon"></div>`, 2),
8345
- $cea52f6b24092f05$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<span class="type"></span>`, 2),
8346
- $cea52f6b24092f05$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="with-parent-title"><!#><!/><span class="value line-clamp"></span></div>`, 6),
8347
- $cea52f6b24092f05$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div class="with-icon"><!#><!/><!#><!/></div>`, 6),
8348
- $cea52f6b24092f05$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<h2 class="text"></h2>`, 2),
8349
- $cea52f6b24092f05$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class="suggestion-container query"><!#><!/><!#><!/></div>`, 6),
8350
- $cea52f6b24092f05$var$_tmpl$8 = /*#__PURE__*/$9HbP8$template(`<div class="suggestion-container page"></div>`, 2),
8351
- $cea52f6b24092f05$var$_tmpl$9 = /*#__PURE__*/$9HbP8$template(`<div class="suggestions"><!#><!/><!#><!/><!#><!/></div>`, 8);
8689
+ const $cea52f6b24092f05$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a class=suggestion>`),
8690
+ $cea52f6b24092f05$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=search-icon>`),
8691
+ $cea52f6b24092f05$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<span class=type>`),
8692
+ $cea52f6b24092f05$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=with-parent-title><!$><!/><span class="value line-clamp">`),
8693
+ $cea52f6b24092f05$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div class=with-icon><!$><!/><!$><!/>`),
8694
+ $cea52f6b24092f05$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<h2 class=text>`),
8695
+ $cea52f6b24092f05$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class="suggestion-container query"><!$><!/><!$><!/>`),
8696
+ $cea52f6b24092f05$var$_tmpl$8 = /*#__PURE__*/$9HbP8$template(`<div class="suggestion-container page">`),
8697
+ $cea52f6b24092f05$var$_tmpl$9 = /*#__PURE__*/$9HbP8$template(`<div class=suggestions><!$><!/><!$><!/><!$><!/>`);
8352
8698
  function $cea52f6b24092f05$export$e872e2339fb04a7f({
8353
8699
  suggestion_memo_: suggestion_memo_,
8354
8700
  search_query_url_param_name_: search_query_url_param_name_,
@@ -8606,7 +8952,7 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({
8606
8952
  }
8607
8953
  });
8608
8954
  }
8609
- const $92a48aea6a9364d8$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a target="_blank"></a>`, 2);
8955
+ const $92a48aea6a9364d8$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a target=_blank>`);
8610
8956
  function $92a48aea6a9364d8$export$1efe1013da60d0e4(e, href) {
8611
8957
  if (e.metaKey || e.ctrlKey) {
8612
8958
  // Open link in a new tab with cmd/ctrl + enter.
@@ -8988,7 +9334,7 @@ const $926b1b5ba2239356$export$af8311b651139246 = css_properties => {
8988
9334
  const $926b1b5ba2239356$export$1233ca167bf71f9a = styles => {
8989
9335
  return Object.entries(styles).map(([selector, css_properties]) => `${selector} { ${$926b1b5ba2239356$export$af8311b651139246(css_properties)} }`).join(" ");
8990
9336
  };
8991
- const $19f1f3e588d63502$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<style></style>`, 2);
9337
+ const $19f1f3e588d63502$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<style>`);
8992
9338
  function $19f1f3e588d63502$export$f021bdedd3ec901a(props) {
8993
9339
  const valid_css_string = $9HbP8$createMemo(() => {
8994
9340
  return $926b1b5ba2239356$export$1233ca167bf71f9a(props.styles());
@@ -8999,10 +9345,10 @@ function $19f1f3e588d63502$export$f021bdedd3ec901a(props) {
8999
9345
  return _el$;
9000
9346
  })();
9001
9347
  }
9002
- const $fabfda1230351b1a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4),
9003
- $fabfda1230351b1a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<b></b>`, 2),
9004
- $fabfda1230351b1a$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="depict-search-modal"><div class="body"><!#><!/><div class="padded"><!#><!/><!#><!/><!#><!/></div><!#><!/></div><!#><!/></div>`, 18),
9005
- $fabfda1230351b1a$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div><!#><!/></div>`, 6);
9348
+ const $fabfda1230351b1a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=discover-more><button class=major type=button>`),
9349
+ $fabfda1230351b1a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<b>`),
9350
+ $fabfda1230351b1a$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=depict-search-modal><div class=body><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
9351
+ $fabfda1230351b1a$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
9006
9352
  function $fabfda1230351b1a$export$1c593cbd6f1e10bc({
9007
9353
  search_field_value_: props_search_field_value,
9008
9354
  get_search_query_: get_search_query_,
@@ -9254,8 +9600,8 @@ function $fabfda1230351b1a$var$close_modal_when_navigating_away(close_modal, sea
9254
9600
  })();
9255
9601
  }
9256
9602
  $9HbP8$delegateEvents(["click"]);
9257
- const $793905995512612d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="category-suggestions"></div>`, 2),
9258
- $793905995512612d$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="category-suggestion"></div>`, 2);
9603
+ const $793905995512612d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=category-suggestions>`),
9604
+ $793905995512612d$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=category-suggestion>`);
9259
9605
  function $793905995512612d$export$c05a196222ba1302({
9260
9606
  suggestions_: suggestions_,
9261
9607
  children: children
@@ -9299,8 +9645,8 @@ function $793905995512612d$export$c05a196222ba1302({
9299
9645
  }
9300
9646
  });
9301
9647
  }
9302
- const $f8c929beb82c512b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<b></b>`, 2),
9303
- $f8c929beb82c512b$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="results-for"></div>`, 2);
9648
+ const $f8c929beb82c512b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<b>`),
9649
+ $f8c929beb82c512b$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=results-for>`);
9304
9650
  function $f8c929beb82c512b$export$9dd50d35b9d94fdf({
9305
9651
  get_search_query_: get_search_query_,
9306
9652
  i18n_: i18n_,
@@ -9349,7 +9695,7 @@ function $1801dbce7adb3f19$export$41b4894022a3580f({
9349
9695
  })));
9350
9696
  return style_props_;
9351
9697
  }
9352
- const $522a690e0e2bd46d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class="highlighted-part"></span>`, 2);
9698
+ const $522a690e0e2bd46d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span class=highlighted-part>`);
9353
9699
  const $522a690e0e2bd46d$var$dont_cut_in_between_less_than_characters = 30;
9354
9700
  function $522a690e0e2bd46d$export$e1a98a189fd2c0e7({
9355
9701
  content_result_: content_result_,
@@ -9569,10 +9915,10 @@ function $522a690e0e2bd46d$var$segment_text(text, matched_strings) {
9569
9915
  }
9570
9916
  return output;
9571
9917
  }
9572
- const $b2bf2cdcff8142d8$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a></a>`, 2),
9573
- $b2bf2cdcff8142d8$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div></div>`, 2),
9574
- $b2bf2cdcff8142d8$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="description line-clamp"></div>`, 2),
9575
- $b2bf2cdcff8142d8$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="content-card"><div class="image"></div><div class="info"><!#><!/><!#><!/></div></div>`, 10);
9918
+ const $b2bf2cdcff8142d8$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a>`),
9919
+ $b2bf2cdcff8142d8$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>`),
9920
+ $b2bf2cdcff8142d8$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class="description line-clamp">`),
9921
+ $b2bf2cdcff8142d8$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=content-card><div class=image></div><div class=info><!$><!/><!$><!/>`);
9576
9922
  function $b2bf2cdcff8142d8$export$f631859cab12b342({
9577
9923
  router_: router_,
9578
9924
  content_result_: content_result_
@@ -9725,9 +10071,9 @@ function $9d5b3ed1fc91c672$export$4405d077f0a20494({
9725
10071
  children: () => $9HbP8$createComponent((0, $b2bf2cdcff8142d8$export$f631859cab12b342), {})
9726
10072
  });
9727
10073
  }
9728
- const $49de9d31aeea1b5e$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="content-results"><!#><!/><!#><!/></div>`, 6),
9729
- $49de9d31aeea1b5e$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class="view-more"></button>`, 2),
9730
- $49de9d31aeea1b5e$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button class="view-less"></button>`, 2);
10074
+ const $49de9d31aeea1b5e$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=content-results><!$><!/><!$><!/>`),
10075
+ $49de9d31aeea1b5e$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button class=view-more>`),
10076
+ $49de9d31aeea1b5e$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button class=view-less>`);
9731
10077
  const $49de9d31aeea1b5e$export$70ceae36059a1036 = 1;
9732
10078
  function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
9733
10079
  search_results_: search_results_,
@@ -9797,7 +10143,7 @@ function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
9797
10143
  });
9798
10144
  }
9799
10145
  })), _el$5, _co$2);
9800
- $9HbP8$effect(() => _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || content_results()?.length > 0 ? "" : "none"));
10146
+ $9HbP8$effect(() => (is_loading_() && placeholders_enabled() || content_results()?.length, _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || content_results()?.length > 0 ? "" : "none")));
9801
10147
  return _el$;
9802
10148
  })();
9803
10149
  }
@@ -9829,8 +10175,8 @@ function $49de9d31aeea1b5e$var$make_state_saved_rows(
9829
10175
  }));
9830
10176
  return rows;
9831
10177
  }
9832
- const $7097477c78a89208$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6),
9833
- $7097477c78a89208$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 22);
10178
+ const $7097477c78a89208$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
10179
+ $7097477c78a89208$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
9834
10180
  function $7097477c78a89208$export$a54ec244c8863715({
9835
10181
  depict_api_: depict_api_,
9836
10182
  search_field_value_: search_field_value_,
@@ -9863,7 +10209,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
9863
10209
  router_: router_,
9864
10210
  content_results_rows_: content_results_rows_,
9865
10211
  content_layout_options_: content_layout_options_,
9866
- content_search_enabled_: content_search_enabled_
10212
+ content_search_enabled_: content_search_enabled_,
10213
+ content_blocks_by_row_: content_blocks_by_row_
9867
10214
  }) {
9868
10215
  const [get_sorting] = current_sorting_;
9869
10216
  const all_products_loaded_ = $9HbP8$createSignal(false);
@@ -10142,6 +10489,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
10142
10489
  layout_options_: layout_options_,
10143
10490
  sort_or_filter_open_: sort_or_filter_open_,
10144
10491
  id_currently_querying_for_: get_search_query_,
10492
+ content_blocks_by_row_: content_blocks_by_row_,
10145
10493
  no_results_options_: {
10146
10494
  selected_filters_: selected_filters_,
10147
10495
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
@@ -10255,7 +10603,7 @@ function $1848f7cca286fbab$export$ff7109b9b2b206ba(sdk_cols_at_size, min_width_f
10255
10603
  sorted_sizes.unshift([1, min_width_for_more_than_one_column]);
10256
10604
  return sorted_sizes.map(([cols, max_width]) => max_width == Infinity ? [cols] : [cols, max_width]);
10257
10605
  }
10258
- const $806c97b931758897$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"></div>`, 2);
10606
+ const $806c97b931758897$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search">`);
10259
10607
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
10260
10608
  /**
10261
10609
  * Type for the private properties that are shared between the different exported search SDK wrapper functions.
@@ -10587,6 +10935,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
10587
10935
  search_sorting_open_: state_.sorting_open,
10588
10936
  expanded_filters_: state_.expanded_filters,
10589
10937
  content_results_rows_: state_.content_results_rows,
10938
+ content_blocks_by_row_: () => props.content_blocks_by_row,
10590
10939
  router_: shared_properties.router_,
10591
10940
  make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
10592
10941
  return $897bd4a76f611b38$export$d757d54550ebfb3d({