@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/ES10/index.cjs CHANGED
@@ -4,6 +4,7 @@ var $52FdA$solidjs = require("solid-js");
4
4
  var $52FdA$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
5
5
  var $52FdA$babelruntimehelpersclassPrivateFieldGet = require("@babel/runtime/helpers/classPrivateFieldGet");
6
6
  var $52FdA$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
7
+ var $52FdA$solidjsstore = require("solid-js/store");
7
8
  require("../multi_import_deduplicator.cjs").register_es_version("ui", "ES10");
8
9
  function $parcel$export(e, n, v, s) {
9
10
  Object.defineProperty(e, n, {
@@ -75,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
75
76
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
76
77
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
77
78
  /*! Depict.ai search and product listing SDK */
78
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.26";
79
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.1";
79
80
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
80
81
  const $a68b73fd7ba0853f$var$fallback_token = "";
81
82
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -267,7 +268,7 @@ function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
267
268
  function $d067f3a30f047b41$export$8d0c4fdbb05a2f2e() {
268
269
  return $52FdA$solidjs.useContext($d067f3a30f047b41$var$ListingContext);
269
270
  }
270
- const $ce467edb5343cfcd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2);
271
+ const $ce467edb5343cfcd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
271
272
  function $ce467edb5343cfcd$export$94026ee33dbabc26(props) {
272
273
  return (() => {
273
274
  const _el$ = $52FdA$solidjsweb.getNextElement($ce467edb5343cfcd$var$_tmpl$);
@@ -275,7 +276,7 @@ function $ce467edb5343cfcd$export$94026ee33dbabc26(props) {
275
276
  return _el$;
276
277
  })();
277
278
  }
278
- const $858fdcf73148519f$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<img>`, 1);
279
+ const $858fdcf73148519f$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<img>`);
279
280
  function $858fdcf73148519f$export$e6fffe67d4cdd848(whatToWatch) {
280
281
  const [size, setSize] = $52FdA$solidjs.createSignal(0);
281
282
  const resizeObserver = new ResizeObserver($52FdA$depictaiutilishared.catchify(records => {
@@ -386,7 +387,7 @@ function $28535bb7671c63d1$export$e4b984597b71e989(props) {
386
387
  }));
387
388
  return container;
388
389
  }
389
- const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
390
+ const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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>`);
390
391
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
391
392
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
392
393
  return (() => {
@@ -405,7 +406,7 @@ function $9d19451330d04c3c$export$8be2714ec7f169ee() {
405
406
  return _el$;
406
407
  })();
407
408
  }
408
- const $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2);
409
+ const $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
409
410
  function $ad8ec7729fffeb9c$export$6649caad96ef8870(_ref) {
410
411
  let {
411
412
  children: children,
@@ -512,7 +513,7 @@ const $5401a6698b0c0658$export$6daf8749b65a1b77 = cols_at_size => {
512
513
  return $5401a6698b0c0658$var$transform_elements(sorted_cols_at_size);
513
514
  };
514
515
  function $8edd3cf30d1fd8b4$export$a2cc176055f8f08() {
515
- 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.";
516
+ 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.";
516
517
  return (0, $52FdA$solidjsweb.isServer) ? {
517
518
  t: "<!-- ".concat(text, " -->")
518
519
  } : document.createComment(text);
@@ -534,12 +535,13 @@ let $e3915574cfd3466c$var$rendering_cached_placeholder_element;
534
535
  function $e3915574cfd3466c$export$f33414a4df0afd3f(_ref) {
535
536
  let {
536
537
  product_card_template_: product_card_template_,
537
- num_placeholders_: num_placeholders_
538
+ num_placeholders_: num_placeholders_,
539
+ content_blocks_: content_blocks_
538
540
  } = _ref;
539
- const [get_elements, set_elements] = $52FdA$solidjs.createSignal([]);
540
- let existing_num = 0;
541
+ const [num_to_actually_show, set_num_to_actually_show] = $52FdA$solidjs.createSignal($52FdA$solidjs.untrack(num_placeholders_));
541
542
  if (0, $52FdA$solidjsweb.isServer)
542
543
  // want to render simple placeholders on server, effects don't run there
544
+ // FIXME when adding proper SSR: also SSR content blocks
543
545
  return $52FdA$solidjs.createMemo(() => Array.from({
544
546
  length: num_placeholders_()
545
547
  }).map(() => {
@@ -548,19 +550,33 @@ function $e3915574cfd3466c$export$f33414a4df0afd3f(_ref) {
548
550
  if (typeof (template_result === null || template_result === void 0 ? void 0 : template_result.then) !== "function") return template_result;
549
551
  }));
550
552
  $52FdA$solidjs.createRenderEffect(() => {
553
+ const existing_num = num_to_actually_show();
551
554
  const to_add = num_placeholders_() - existing_num;
552
555
  if (to_add <= 0) return;
553
556
  // 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.
554
557
  // 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.
555
558
  // 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.
556
- set_elements(prev => [...prev, ...Array.from({
557
- length: to_add
558
- }).map(() => $e3915574cfd3466c$var$Placeholder({
559
- product_card_template_: product_card_template_
560
- }))]);
561
- existing_num += to_add;
559
+ // 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
560
+ // Functionality should be the same
561
+ set_num_to_actually_show(existing_num + to_add);
562
+ });
563
+ return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Index), {
564
+ get each() {
565
+ return Array.from({
566
+ length: num_to_actually_show()
567
+ });
568
+ },
569
+ children: (_item, index) => {
570
+ const possible_content_block = $52FdA$solidjs.createMemo(() => {
571
+ var _content_blocks_, _content_blocks_2;
572
+ return content_blocks_ === null || content_blocks_ === void 0 ? void 0 : (_content_blocks_ = content_blocks_()) === null || _content_blocks_ === void 0 ? void 0 : (_content_blocks_2 = _content_blocks_()) === null || _content_blocks_2 === void 0 ? void 0 : _content_blocks_2[index];
573
+ });
574
+ // Show content block before product card, so it's *at* that index
575
+ return [possible_content_block, $e3915574cfd3466c$var$Placeholder({
576
+ product_card_template_: product_card_template_
577
+ })]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
578
+ }
562
579
  });
563
- return get_elements; // https://github.com/solidjs/solid/releases/tag/v1.7.0
564
580
  }
565
581
  /**
566
582
  * Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
@@ -651,7 +667,8 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
651
667
  merchant_: merchant_,
652
668
  market_: market_,
653
669
  product_card_template_: product_card_template_,
654
- do_per_elements_: do_per_elements_
670
+ do_per_elements_: do_per_elements_,
671
+ content_blocks_: content_blocks_
655
672
  } = _ref;
656
673
  return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.For), {
657
674
  get each() {
@@ -659,6 +676,10 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
659
676
  },
660
677
  children: (product_id, index) => {
661
678
  const owner = $52FdA$solidjs.getOwner();
679
+ const possible_content_block = $52FdA$solidjs.createMemo(() => {
680
+ var _content_blocks_, _content_blocks_2;
681
+ return content_blocks_ === null || content_blocks_ === void 0 ? void 0 : (_content_blocks_ = content_blocks_()) === null || _content_blocks_ === void 0 ? void 0 : (_content_blocks_2 = _content_blocks_()) === null || _content_blocks_2 === void 0 ? void 0 : _content_blocks_2[index()];
682
+ });
662
683
  const display_accessor = $52FdA$solidjs.createMemo(prev => {
663
684
  const new_display = displays_by_key_().get(product_id);
664
685
  if (prev && $76012c4468a53d1f$var$deep_equal(prev, new_display))
@@ -712,7 +733,9 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
712
733
  }
713
734
  do_per_elements_ === null || do_per_elements_ === void 0 || do_per_elements_(elements, index);
714
735
  });
715
- return product_card_resource; // https://github.com/solidjs/solid/releases/tag/v1.7.0
736
+ return [
737
+ // Show content block before product card, so it's *at* that index
738
+ possible_content_block, product_card_resource]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
716
739
  }
717
740
  });
718
741
  }
@@ -749,7 +772,7 @@ class $95e4006e1dcb5b72$export$aa14a9f43128f61f extends $95e4006e1dcb5b72$export
749
772
  });
750
773
  }
751
774
  }
752
- const $1b3cf201cdd38687$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2);
775
+ const $1b3cf201cdd38687$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
753
776
  function $1b3cf201cdd38687$export$b69d0d92862de18b(props) {
754
777
  return $52FdA$solidjs.ErrorBoundary({
755
778
  fallback(err, retry) {
@@ -779,8 +802,8 @@ function $1b3cf201cdd38687$export$b69d0d92862de18b(props) {
779
802
  }
780
803
  });
781
804
  }
782
- const $6c2c739b113a8ddf$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2),
783
- $6c2c739b113a8ddf$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<style type="text/css"></style>`, 2);
805
+ const $6c2c739b113a8ddf$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
806
+ $6c2c739b113a8ddf$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<style type=text/css>`);
784
807
  function $6c2c739b113a8ddf$export$d21e32dfedac04be(props) {
785
808
  const container_class = "x" + $52FdA$solidjs.createUniqueId();
786
809
  const container_element_ = (() => {
@@ -1022,7 +1045,7 @@ function $d05611ff6b8c8357$export$23fca46f3143581f(component, error_message) {
1022
1045
  // we're already in a root so cleanups are handled
1023
1046
  return component_in_error_boundary();
1024
1047
  }
1025
- const $2badc30d7c6610e1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict recommendations"></div>`, 2);
1048
+ const $2badc30d7c6610e1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict recommendations">`);
1026
1049
  function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
1027
1050
  return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
1028
1051
  const grid_spacing_override = $52FdA$solidjs.createMemo(() => {
@@ -1059,7 +1082,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
1059
1082
  })();
1060
1083
  }, "RecommendationSlider failed");
1061
1084
  }
1062
- const $2c920813c92d6987$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="recommendation-grid"><!#><!/><!#><!/></div>`, 6);
1085
+ const $2c920813c92d6987$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
1063
1086
  function $2c920813c92d6987$export$7da560f849543dff(_ref) {
1064
1087
  let {
1065
1088
  recommendations_resource_: recommendations_resource_,
@@ -1122,8 +1145,8 @@ function $2c920813c92d6987$export$7da560f849543dff(_ref) {
1122
1145
  children: elements
1123
1146
  });
1124
1147
  }
1125
- const $41227f10ad680afd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major" type="button"></button>`, 2),
1126
- $41227f10ad680afd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp recommendations"></div>`, 2);
1148
+ const $41227f10ad680afd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major"type=button>`),
1149
+ $41227f10ad680afd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp recommendations">`);
1127
1150
  function $41227f10ad680afd$export$9756467d34d91cdb(props) {
1128
1151
  return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
1129
1152
  const rows_object_ = $52FdA$solidjs.createMemo(() => {
@@ -1303,7 +1326,7 @@ function $f38f2e64ebe2da86$export$a71e92cfbb498adc(props) {
1303
1326
  return $52FdA$depictaiutilishared.standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
1304
1327
  });
1305
1328
  }
1306
- const $5909f8d84b7b4c30$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2);
1329
+ const $5909f8d84b7b4c30$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
1307
1330
  const $5909f8d84b7b4c30$var$closing_functions = /*@__PURE__*/new Set();
1308
1331
  const $5909f8d84b7b4c30$export$22970a0140fc759c = /*@__PURE__*/$52FdA$solidjs.createSignal(false);
1309
1332
  function $5909f8d84b7b4c30$export$5196e4c01fa56fcb(_ref) {
@@ -1396,8 +1419,8 @@ function $5909f8d84b7b4c30$export$5196e4c01fa56fcb(_ref) {
1396
1419
  close_toast_: close_toast_
1397
1420
  };
1398
1421
  }
1399
- const $1a8463d757baadb6$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="statement"></div>`, 2),
1400
- $1a8463d757baadb6$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
1422
+ const $1a8463d757baadb6$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=statement>`),
1423
+ $1a8463d757baadb6$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=buttons><button class="restore minor"></button><button class="ok major">`);
1401
1424
  function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
1402
1425
  let previous_sorting;
1403
1426
  let on_toast_hidden;
@@ -1480,7 +1503,7 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
1480
1503
  if (delay_toast_) return show_configured_toast;else show_configured_toast();
1481
1504
  }
1482
1505
  $52FdA$solidjsweb.delegateEvents(["click"]);
1483
- const $083b2336093176cf$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
1506
+ const $083b2336093176cf$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
1484
1507
  function $083b2336093176cf$export$3b621d86b1566b2() {
1485
1508
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1486
1509
  return (() => {
@@ -1503,10 +1526,10 @@ function $e2d74bb03cc5252e$export$325f75597868c4f0(stuff) {
1503
1526
  if (typeof stuff !== "string") return stuff;
1504
1527
  return stuff.toLowerCase();
1505
1528
  }
1506
- const $c5842bdb10e57229$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-all-filters minor"></button>`, 2),
1507
- $c5842bdb10e57229$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="inner"><span class="title"><!#><!/>: </span><!#><!/></div>`, 8),
1508
- $c5842bdb10e57229$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!#><!/><span><!#><!/><!#><!/><!#><!/> – <!#><!/><!#><!/><!#><!/></span></button>`, 18),
1509
- $c5842bdb10e57229$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!#><!/><span></span></button>`, 6);
1529
+ const $c5842bdb10e57229$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-all-filters minor">`),
1530
+ $c5842bdb10e57229$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
1531
+ $c5842bdb10e57229$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> – <!$><!/><!$><!/><!$><!/>`),
1532
+ $c5842bdb10e57229$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span>`);
1510
1533
  function $c5842bdb10e57229$export$fecbb157621501bd(_ref) {
1511
1534
  let {
1512
1535
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -1637,56 +1660,54 @@ function $c5842bdb10e57229$export$fecbb157621501bd(_ref) {
1637
1660
  return ((_matching_filter2 = matching_filter()) === null || _matching_filter2 === void 0 ? void 0 : _matching_filter2.op) !== "inrange";
1638
1661
  },
1639
1662
  get fallback() {
1663
+ number_of_rendered_selected_filters_items_[1](prev => prev + 1);
1664
+ $52FdA$solidjs.onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
1640
1665
  return (() => {
1641
- number_of_rendered_selected_filters_items_[1](prev => prev + 1);
1642
- $52FdA$solidjs.onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
1643
- return (() => {
1644
- const _el$9 = $52FdA$solidjsweb.getNextElement($c5842bdb10e57229$var$_tmpl$3),
1645
- _el$24 = _el$9.firstChild,
1646
- [_el$25, _co$9] = $52FdA$solidjsweb.getNextMarker(_el$24.nextSibling),
1647
- _el$10 = _el$25.nextSibling,
1648
- _el$12 = _el$10.firstChild,
1649
- [_el$13, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$12.nextSibling),
1650
- _el$14 = _el$13.nextSibling,
1651
- [_el$15, _co$4] = $52FdA$solidjsweb.getNextMarker(_el$14.nextSibling),
1652
- _el$16 = _el$15.nextSibling,
1653
- [_el$17, _co$5] = $52FdA$solidjsweb.getNextMarker(_el$16.nextSibling),
1654
- _el$11 = _el$17.nextSibling,
1655
- _el$18 = _el$11.nextSibling,
1656
- [_el$19, _co$6] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling),
1657
- _el$20 = _el$19.nextSibling,
1658
- [_el$21, _co$7] = $52FdA$solidjsweb.getNextMarker(_el$20.nextSibling),
1659
- _el$22 = _el$21.nextSibling,
1660
- [_el$23, _co$8] = $52FdA$solidjsweb.getNextMarker(_el$22.nextSibling);
1661
- _el$9.$$click = () => {
1662
- const cloned_selected_filters = [...read_selected_filters()];
1663
- cloned_selected_filters.splice(index_in_selected_filters, 1);
1664
- write_selected_filters(cloned_selected_filters);
1665
- };
1666
- $52FdA$solidjsweb.insert(_el$9, $52FdA$solidjsweb.createComponent((0, $083b2336093176cf$export$3b621d86b1566b2), {}), _el$25, _co$9);
1667
- $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().pre_, _el$13, _co$3);
1668
- $52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
1669
- get price_() {
1670
- return filter().data[0];
1671
- },
1672
- get price_formatting_() {
1673
- return price_formatting_();
1674
- }
1675
- }), _el$15, _co$4);
1676
- $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$17, _co$5);
1677
- $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().pre_, _el$19, _co$6);
1678
- $52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
1679
- get price_() {
1680
- return filter().data[1];
1681
- },
1682
- get price_formatting_() {
1683
- return price_formatting_();
1684
- }
1685
- }), _el$21, _co$7);
1686
- $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
1687
- $52FdA$solidjsweb.runHydrationEvents();
1688
- return _el$9;
1689
- })();
1666
+ const _el$9 = $52FdA$solidjsweb.getNextElement($c5842bdb10e57229$var$_tmpl$3),
1667
+ _el$24 = _el$9.firstChild,
1668
+ [_el$25, _co$9] = $52FdA$solidjsweb.getNextMarker(_el$24.nextSibling),
1669
+ _el$10 = _el$25.nextSibling,
1670
+ _el$12 = _el$10.firstChild,
1671
+ [_el$13, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$12.nextSibling),
1672
+ _el$14 = _el$13.nextSibling,
1673
+ [_el$15, _co$4] = $52FdA$solidjsweb.getNextMarker(_el$14.nextSibling),
1674
+ _el$16 = _el$15.nextSibling,
1675
+ [_el$17, _co$5] = $52FdA$solidjsweb.getNextMarker(_el$16.nextSibling),
1676
+ _el$11 = _el$17.nextSibling,
1677
+ _el$18 = _el$11.nextSibling,
1678
+ [_el$19, _co$6] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling),
1679
+ _el$20 = _el$19.nextSibling,
1680
+ [_el$21, _co$7] = $52FdA$solidjsweb.getNextMarker(_el$20.nextSibling),
1681
+ _el$22 = _el$21.nextSibling,
1682
+ [_el$23, _co$8] = $52FdA$solidjsweb.getNextMarker(_el$22.nextSibling);
1683
+ _el$9.$$click = () => {
1684
+ const cloned_selected_filters = [...read_selected_filters()];
1685
+ cloned_selected_filters.splice(index_in_selected_filters, 1);
1686
+ write_selected_filters(cloned_selected_filters);
1687
+ };
1688
+ $52FdA$solidjsweb.insert(_el$9, $52FdA$solidjsweb.createComponent((0, $083b2336093176cf$export$3b621d86b1566b2), {}), _el$25, _co$9);
1689
+ $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().pre_, _el$13, _co$3);
1690
+ $52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
1691
+ get price_() {
1692
+ return filter().data[0];
1693
+ },
1694
+ get price_formatting_() {
1695
+ return price_formatting_();
1696
+ }
1697
+ }), _el$15, _co$4);
1698
+ $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$17, _co$5);
1699
+ $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().pre_, _el$19, _co$6);
1700
+ $52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $f38f2e64ebe2da86$export$a71e92cfbb498adc), {
1701
+ get price_() {
1702
+ return filter().data[1];
1703
+ },
1704
+ get price_formatting_() {
1705
+ return price_formatting_();
1706
+ }
1707
+ }), _el$21, _co$7);
1708
+ $52FdA$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
1709
+ $52FdA$solidjsweb.runHydrationEvents();
1710
+ return _el$9;
1690
1711
  })();
1691
1712
  },
1692
1713
  get children() {
@@ -1817,8 +1838,8 @@ function $c5842bdb10e57229$export$fecbb157621501bd(_ref) {
1817
1838
  return outmost_element;
1818
1839
  }
1819
1840
  $52FdA$solidjsweb.delegateEvents(["click"]);
1820
- const $902a0ca2b52f3898$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="count"></span>`, 2),
1821
- $902a0ca2b52f3898$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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);
1841
+ const $902a0ca2b52f3898$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=count>`),
1842
+ $902a0ca2b52f3898$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<label class=input-row><div class=left><input type=checkbox><span class=custom-indicator></span><span class="text line-clamp"></span></div><!$><!/>`);
1822
1843
  const $902a0ca2b52f3898$export$48513f6b9f8ce62d = props => {
1823
1844
  // 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
1824
1845
  const count = $52FdA$solidjs.createMemo(() => props.count_);
@@ -1870,19 +1891,19 @@ const $902a0ca2b52f3898$export$48513f6b9f8ce62d = props => {
1870
1891
  _v$3 = !checked() && is_count_zero();
1871
1892
  _v$ !== _p$._v$ && _el$.classList.toggle("count-0", _p$._v$ = _v$);
1872
1893
  _v$2 !== _p$._v$2 && $52FdA$solidjsweb.setAttribute(_el$3, "name", _p$._v$2 = _v$2);
1873
- _v$3 !== _p$._v$3 && (_el$3.disabled = _p$._v$3 = _v$3);
1894
+ _v$3 !== _p$._v$3 && $52FdA$solidjsweb.setProperty(_el$3, "disabled", _p$._v$3 = _v$3);
1874
1895
  return _p$;
1875
1896
  }, {
1876
1897
  _v$: undefined,
1877
1898
  _v$2: undefined,
1878
1899
  _v$3: undefined
1879
1900
  });
1880
- $52FdA$solidjsweb.effect(() => _el$3.checked = checked());
1901
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$3, "checked", checked()));
1881
1902
  return _el$;
1882
1903
  })()
1883
1904
  );
1884
1905
  };
1885
- const $a904ccf883f60231$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
1906
+ const $a904ccf883f60231$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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>`);
1886
1907
  function $a904ccf883f60231$export$f21ab0717a89c77f(props) {
1887
1908
  return (() => {
1888
1909
  const _el$ = $52FdA$solidjsweb.getNextElement($a904ccf883f60231$var$_tmpl$);
@@ -1895,7 +1916,7 @@ function $a904ccf883f60231$export$f21ab0717a89c77f(props) {
1895
1916
  return _el$;
1896
1917
  })();
1897
1918
  }
1898
- const $b0477e4d832f090e$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button type="button" class="expand-filter"><!#><!/><span></span></button>`, 6);
1919
+ const $b0477e4d832f090e$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button type=button class=expand-filter><!$><!/><span>`);
1899
1920
  function $b0477e4d832f090e$export$ca21a16d65b3dd8(_ref) {
1900
1921
  let {
1901
1922
  show_extras_: [get_show_extras, set_show_extras],
@@ -1918,7 +1939,7 @@ function $b0477e4d832f090e$export$ca21a16d65b3dd8(_ref) {
1918
1939
  })();
1919
1940
  }
1920
1941
  $52FdA$solidjsweb.delegateEvents(["click"]);
1921
- const $9b54b9c5381716eb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class="checkboxes"><!#><!/><!#><!/></form>`, 6);
1942
+ const $9b54b9c5381716eb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class=checkboxes><!$><!/><!$><!/>`);
1922
1943
  const $9b54b9c5381716eb$var$max_visible_without_collapsing = 15;
1923
1944
  const $9b54b9c5381716eb$var$show_non_collapsible_when_collapsed = 4;
1924
1945
  function $9b54b9c5381716eb$export$dd948f91abc3a1c4(_ref) {
@@ -2059,9 +2080,9 @@ function $9b54b9c5381716eb$export$dd948f91abc3a1c4(_ref) {
2059
2080
  return _el$;
2060
2081
  })();
2061
2082
  }
2062
- const $d9239dad9a9d899b$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class="radios"></form>`, 2),
2063
- $d9239dad9a9d899b$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="count"></span>`, 2),
2064
- $d9239dad9a9d899b$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span><!#><!/></div><!#><!/></label>`, 11);
2083
+ const $d9239dad9a9d899b$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class=radios>`),
2084
+ $d9239dad9a9d899b$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=count>`),
2085
+ $d9239dad9a9d899b$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<label class=input-row><div class=left><input type=radio><span class=custom-indicator></span><!$><!/></div><!$><!/>`);
2065
2086
  function $d9239dad9a9d899b$export$430444115f70a734(_ref) {
2066
2087
  let {
2067
2088
  selected_filters_: selected_filters_,
@@ -2135,13 +2156,13 @@ function $d9239dad9a9d899b$export$430444115f70a734(_ref) {
2135
2156
  }
2136
2157
  }), _el$10, _co$2);
2137
2158
  $52FdA$solidjsweb.effect(() => _el$2.classList.toggle("count-0", !!(count() === 0)));
2138
- $52FdA$solidjsweb.effect(() => _el$4.checked = $52FdA$solidjs.createMemo(() => {
2159
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$4, "checked", $52FdA$solidjs.createMemo(() => {
2139
2160
  var _existing_filter;
2140
2161
  const v = value();
2141
2162
  const data = (_existing_filter = existing_filter()) === null || _existing_filter === void 0 ? void 0 : _existing_filter.data;
2142
2163
  if ($e2d74bb03cc5252e$export$325f75597868c4f0(data) === $e2d74bb03cc5252e$export$325f75597868c4f0(v)) return true;
2143
2164
  return Array.isArray(data) && data.every((item, index) => item === v[index]);
2144
- })());
2165
+ })()));
2145
2166
  return _el$2;
2146
2167
  })();
2147
2168
  }
@@ -2149,9 +2170,9 @@ function $d9239dad9a9d899b$export$430444115f70a734(_ref) {
2149
2170
  return _el$;
2150
2171
  })();
2151
2172
  }
2152
- const $0257c760a99bfacb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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),
2153
- $0257c760a99bfacb$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="slider"><div class="progress"></div></div>`, 4),
2154
- $0257c760a99bfacb$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
2173
+ const $0257c760a99bfacb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
2174
+ $0257c760a99bfacb$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=slider><div class=progress>`),
2175
+ $0257c760a99bfacb$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
2155
2176
  function $0257c760a99bfacb$export$e0d834a0ad870cda(_ref) {
2156
2177
  let {
2157
2178
  filter_: filter_,
@@ -2312,11 +2333,11 @@ function $0257c760a99bfacb$var$RangeSelector(_ref3) {
2312
2333
  _v$8 = min_(),
2313
2334
  _v$9 = max_();
2314
2335
  _v$ !== _p$._v$ && _el$.classList.toggle("disabled", _p$._v$ = _v$);
2315
- _v$2 !== _p$._v$2 && (_el$4.disabled = _p$._v$2 = _v$2);
2336
+ _v$2 !== _p$._v$2 && $52FdA$solidjsweb.setProperty(_el$4, "disabled", _p$._v$2 = _v$2);
2316
2337
  _v$3 !== _p$._v$3 && $52FdA$solidjsweb.setAttribute(_el$4, "aria-label", _p$._v$3 = _v$3);
2317
2338
  _v$4 !== _p$._v$4 && $52FdA$solidjsweb.setAttribute(_el$4, "min", _p$._v$4 = _v$4);
2318
2339
  _v$5 !== _p$._v$5 && $52FdA$solidjsweb.setAttribute(_el$4, "max", _p$._v$5 = _v$5);
2319
- _v$6 !== _p$._v$6 && (_el$7.disabled = _p$._v$6 = _v$6);
2340
+ _v$6 !== _p$._v$6 && $52FdA$solidjsweb.setProperty(_el$7, "disabled", _p$._v$6 = _v$6);
2320
2341
  _v$7 !== _p$._v$7 && $52FdA$solidjsweb.setAttribute(_el$7, "aria-label", _p$._v$7 = _v$7);
2321
2342
  _v$8 !== _p$._v$8 && $52FdA$solidjsweb.setAttribute(_el$7, "min", _p$._v$8 = _v$8);
2322
2343
  _v$9 !== _p$._v$9 && $52FdA$solidjsweb.setAttribute(_el$7, "max", _p$._v$9 = _v$9);
@@ -2332,8 +2353,8 @@ function $0257c760a99bfacb$var$RangeSelector(_ref3) {
2332
2353
  _v$8: undefined,
2333
2354
  _v$9: undefined
2334
2355
  });
2335
- $52FdA$solidjsweb.effect(() => _el$4.value = get_current_range()[0]);
2336
- $52FdA$solidjsweb.effect(() => _el$7.value = get_current_range()[1]);
2356
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$4, "value", get_current_range()[0]));
2357
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$7, "value", get_current_range()[1]));
2337
2358
  $52FdA$solidjsweb.runHydrationEvents();
2338
2359
  return _el$;
2339
2360
  })();
@@ -2459,11 +2480,11 @@ function $0257c760a99bfacb$var$LinearSlider(_ref8) {
2459
2480
  _v$15 = i18n_.range_filter_high_point_aria_label_(),
2460
2481
  _v$16 = min_(),
2461
2482
  _v$17 = max_();
2462
- _v$10 !== _p$._v$10 && (_el$28.disabled = _p$._v$10 = _v$10);
2483
+ _v$10 !== _p$._v$10 && $52FdA$solidjsweb.setProperty(_el$28, "disabled", _p$._v$10 = _v$10);
2463
2484
  _v$11 !== _p$._v$11 && $52FdA$solidjsweb.setAttribute(_el$28, "aria-label", _p$._v$11 = _v$11);
2464
2485
  _v$12 !== _p$._v$12 && $52FdA$solidjsweb.setAttribute(_el$28, "min", _p$._v$12 = _v$12);
2465
2486
  _v$13 !== _p$._v$13 && $52FdA$solidjsweb.setAttribute(_el$28, "max", _p$._v$13 = _v$13);
2466
- _v$14 !== _p$._v$14 && (_el$29.disabled = _p$._v$14 = _v$14);
2487
+ _v$14 !== _p$._v$14 && $52FdA$solidjsweb.setProperty(_el$29, "disabled", _p$._v$14 = _v$14);
2467
2488
  _v$15 !== _p$._v$15 && $52FdA$solidjsweb.setAttribute(_el$29, "aria-label", _p$._v$15 = _v$15);
2468
2489
  _v$16 !== _p$._v$16 && $52FdA$solidjsweb.setAttribute(_el$29, "min", _p$._v$16 = _v$16);
2469
2490
  _v$17 !== _p$._v$17 && $52FdA$solidjsweb.setAttribute(_el$29, "max", _p$._v$17 = _v$17);
@@ -2478,13 +2499,13 @@ function $0257c760a99bfacb$var$LinearSlider(_ref8) {
2478
2499
  _v$16: undefined,
2479
2500
  _v$17: undefined
2480
2501
  });
2481
- $52FdA$solidjsweb.effect(() => _el$28.value = $52FdA$solidjs.createMemo(() => {
2502
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$28, "value", $52FdA$solidjs.createMemo(() => {
2482
2503
  min_();
2483
2504
  max_();
2484
2505
  return get_current_range()[0];
2485
2506
  }, undefined, {
2486
2507
  equals: false
2487
- })());
2508
+ })()));
2488
2509
  $52FdA$solidjsweb.runHydrationEvents();
2489
2510
  return _el$27;
2490
2511
  })()];
@@ -2504,7 +2525,7 @@ function $0257c760a99bfacb$var$set_range_with_sanitation(min_, max_, current_ran
2504
2525
  current_range_signal[1](new_value);
2505
2526
  }
2506
2527
  $52FdA$solidjsweb.delegateEvents(["keydown", "click", "input"]);
2507
- const $ac040bdfeed58ee4$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
2528
+ const $ac040bdfeed58ee4$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=morphing-sign role=img><span></span><span>`);
2508
2529
  function $ac040bdfeed58ee4$export$e5c2828934226505(_ref) {
2509
2530
  let {
2510
2531
  expanded_: expanded_,
@@ -2549,10 +2570,10 @@ function $ac040bdfeed58ee4$export$e5c2828934226505(_ref) {
2549
2570
  });
2550
2571
  return outer_div;
2551
2572
  }
2552
- const $9c1d49181fb3002a$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class="checkboxes hierarchical"><!#><!/><!#><!/></form>`, 6),
2553
- $9c1d49181fb3002a$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="checkbox-details"><!#><!/><!#><!/></div>`, 6),
2554
- $9c1d49181fb3002a$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details></details>`, 2),
2555
- $9c1d49181fb3002a$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class="category-parent"><div class="summary"><span class="count"></span><!#><!/></div></summary>`, 8);
2573
+ const $9c1d49181fb3002a$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class="checkboxes hierarchical"><!$><!/><!$><!/>`),
2574
+ $9c1d49181fb3002a$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=checkbox-details><!$><!/><!$><!/>`),
2575
+ $9c1d49181fb3002a$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details>`),
2576
+ $9c1d49181fb3002a$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class=category-parent><div class=summary><span class=count></span><!$><!/>`);
2556
2577
  const $9c1d49181fb3002a$var$max_visible_without_collapsing = 15;
2557
2578
  const $9c1d49181fb3002a$var$show_non_collapsible_when_collapsed = 4;
2558
2579
  function $9c1d49181fb3002a$export$a32086fa6616eafd(_ref) {
@@ -3024,9 +3045,9 @@ function $9c1d49181fb3002a$var$expand_until_choice(data_structure) {
3024
3045
  }
3025
3046
  });
3026
3047
  }
3027
- const $cd0e5524f9476f9b$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="checkbox-grid" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"></div>`, 2),
3028
- $cd0e5524f9476f9b$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="count-wrapper"><span class="count"></span></span>`, 4),
3029
- $cd0e5524f9476f9b$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button><!#><!/><!#><!/></button>`, 6);
3048
+ const $cd0e5524f9476f9b$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=checkbox-grid style=position:absolute;z-index:-1;pointer-events:none;opacity:0>`),
3049
+ $cd0e5524f9476f9b$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=count-wrapper><span class=count>`),
3050
+ $cd0e5524f9476f9b$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button><!$><!/><!$><!/>`);
3030
3051
  const $cd0e5524f9476f9b$var$gap_px = 5;
3031
3052
  const $cd0e5524f9476f9b$var$max_columns = 3;
3032
3053
  const $cd0e5524f9476f9b$export$414f6a19d38e655c = _ref => {
@@ -3244,7 +3265,7 @@ function $cd0e5524f9476f9b$var$adjust_sizes(container_width, sizes, set_cols_at_
3244
3265
  overrides: column_to_row_result
3245
3266
  }]]);
3246
3267
  }
3247
- const $476a3dc36afc1938$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class="checkbox-color"><!#><!/><!#><!/></form>`, 6);
3268
+ const $476a3dc36afc1938$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<form class=checkbox-color><!$><!/><!$><!/>`);
3248
3269
  const $476a3dc36afc1938$var$max_visible_without_collapsing = 30;
3249
3270
  const $476a3dc36afc1938$var$show_non_collapsible_when_collapsed = 8;
3250
3271
  function $476a3dc36afc1938$export$82ed4b28ecb67608(_ref) {
@@ -3441,7 +3462,7 @@ var $f60633ac10c24308$export$2e2bcd8739ae039 = {
3441
3462
  "checkbox-grid": (0, $cd0e5524f9476f9b$export$414f6a19d38e655c),
3442
3463
  "checkbox-color": (0, $476a3dc36afc1938$export$82ed4b28ecb67608)
3443
3464
  };
3444
- const $44d50abe16a70c25$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
3465
+ const $44d50abe16a70c25$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
3445
3466
  function $44d50abe16a70c25$export$f2ca6fc699ca1fb4() {
3446
3467
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3447
3468
  return (() => {
@@ -3451,7 +3472,7 @@ function $44d50abe16a70c25$export$f2ca6fc699ca1fb4() {
3451
3472
  return _el$;
3452
3473
  })();
3453
3474
  }
3454
- const $958981128e559776$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="show-selected" aria-hidden="true"><span></span><!#><!/></span>`, 6);
3475
+ const $958981128e559776$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=show-selected aria-hidden=true><span></span><!$><!/>`);
3455
3476
  function $958981128e559776$export$53c59af873b303c9(_ref) {
3456
3477
  let {
3457
3478
  selected_filters_in_group_: selected_filters_in_group_,
@@ -3577,7 +3598,7 @@ function $4c1dcf1a9c604a68$export$ab34afce88557c0e(props) {
3577
3598
  }));
3578
3599
  return is_open;
3579
3600
  }
3580
- const $e3d733f899558f40$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span></span>`, 2);
3601
+ const $e3d733f899558f40$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span>`);
3581
3602
  function $e3d733f899558f40$export$acb3eaade4b23afd(props) {
3582
3603
  return (() => {
3583
3604
  const _el$ = $52FdA$solidjsweb.getNextElement($e3d733f899558f40$var$_tmpl$);
@@ -3618,14 +3639,14 @@ function $a7f7d416e6f61504$export$89c6019e4baa40b1(props) {
3618
3639
  }
3619
3640
  });
3620
3641
  }
3621
- const $164d474fea221d77$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="filter-collapsible"></div>`, 2),
3622
- $164d474fea221d77$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-group"><!#><!/><span></span></button>`, 6),
3623
- $164d474fea221d77$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="view-more-clear"><!#><!/><!#><!/></div>`, 6),
3624
- $164d474fea221d77$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="filter-collapsible-body"><div class="filter-part"></div><!#><!/></div>`, 6),
3625
- $164d474fea221d77$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class="filter-collapsible"></details>`, 2),
3626
- $164d474fea221d77$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"><!#><!/><!#><!/></div></div></summary>`, 12),
3627
- $164d474fea221d77$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="ungrouped"></div>`, 2),
3628
- $164d474fea221d77$var$_tmpl$8 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-all-filters major"></button>`, 2);
3642
+ const $164d474fea221d77$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-collapsible>`),
3643
+ $164d474fea221d77$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=clear-group><!$><!/><span>`),
3644
+ $164d474fea221d77$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=view-more-clear><!$><!/><!$><!/>`),
3645
+ $164d474fea221d77$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-collapsible-body><div class=filter-part></div><!$><!/>`),
3646
+ $164d474fea221d77$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class=filter-collapsible>`),
3647
+ $164d474fea221d77$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
3648
+ $164d474fea221d77$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=ungrouped>`),
3649
+ $164d474fea221d77$var$_tmpl$8 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear-all-filters major">`);
3629
3650
  function $164d474fea221d77$export$3f1a388cc0d8fed7(props) {
3630
3651
  // Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
3631
3652
  return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
@@ -4651,7 +4672,7 @@ function $1689794f03ba2554$export$205efb947c7ffd78(handler) {
4651
4672
  $52FdA$solidjs.onCleanup(() => removeEventListener(event, catchified_handler));
4652
4673
  }
4653
4674
  }
4654
- const $e03dec587b6e91e3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!#><!/> <b></b></span></div>`, 12);
4675
+ const $e03dec587b6e91e3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b> – <b></b> <!$><!/> <b>`);
4655
4676
  function $e03dec587b6e91e3$export$83fd5de5504a7a67(_ref) {
4656
4677
  let {
4657
4678
  formatted_number_of_results_: formatted_number_of_results_,
@@ -4789,8 +4810,8 @@ function $e03dec587b6e91e3$export$83fd5de5504a7a67(_ref) {
4789
4810
  return _el$;
4790
4811
  })();
4791
4812
  }
4792
- const $063a16c081021c3f$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class="hint" href="javascript:void(0)"></a>`, 2),
4793
- $063a16c081021c3f$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="no-results"><div class="text"></div><!#><!/></div>`, 6);
4813
+ const $063a16c081021c3f$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=hint href=javascript:void(0)>`),
4814
+ $063a16c081021c3f$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=no-results><div class=text></div><!$><!/>`);
4794
4815
  function $063a16c081021c3f$export$ef6006467f04ee41(_ref) {
4795
4816
  let {
4796
4817
  i18n_: i18n_,
@@ -4948,7 +4969,9 @@ function $0d3ee7000f047e67$export$a1fd619a4743ca08(_ref) {
4948
4969
  min_products_to_fetch_: min_products_to_fetch_,
4949
4970
  query_base_: query_base_,
4950
4971
  depict_api_: depict_api_,
4951
- is_loading_: is_loading_
4972
+ is_loading_: is_loading_,
4973
+ content_blocks_: content_blocks_,
4974
+ set_number_loaded_displays_: set_number_loaded_displays_
4952
4975
  } = _ref;
4953
4976
  // 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
4954
4977
  const target_to_index_map = new Map();
@@ -4995,11 +5018,13 @@ function $0d3ee7000f047e67$export$a1fd619a4743ca08(_ref) {
4995
5018
  query_base_: query_base_,
4996
5019
  depict_api_: depict_api_
4997
5020
  });
5021
+ $52FdA$solidjs.createComputed(() => set_number_loaded_displays_(displays_by_key_().size));
4998
5022
  return $76012c4468a53d1f$export$43f0fb951fcb0c54({
4999
5023
  displays_by_key_: displays_by_key_,
5000
5024
  merchant_: merchant_,
5001
5025
  market_: market_,
5002
5026
  product_card_template_: product_card_template_,
5027
+ content_blocks_: content_blocks_,
5003
5028
  do_per_elements_: (elements, index_accessor) =>
5004
5029
  // Adds/removes elements from the "results in viewport" intersection observer above
5005
5030
  $52FdA$solidjs.createEffect(() => {
@@ -5021,7 +5046,367 @@ function $0d3ee7000f047e67$export$a1fd619a4743ca08(_ref) {
5021
5046
  })
5022
5047
  });
5023
5048
  }
5024
- const $484eec37514a982e$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="PLP-results"><!#><!/><!#><!/></div>`, 6);
5049
+ const $830518481649feb1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
5050
+ $830518481649feb1$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<style type=text/css>`);
5051
+ const $830518481649feb1$export$c500183c31c2b22e = "--spans-columns";
5052
+ function $830518481649feb1$export$ab6b147eec64fea5(props) {
5053
+ const container_class = "x" + $52FdA$solidjs.createUniqueId();
5054
+ const container_element_ = (() => {
5055
+ const _el$ = $52FdA$solidjsweb.getNextElement($830518481649feb1$var$_tmpl$);
5056
+ $52FdA$solidjsweb.spread(_el$, $52FdA$solidjsweb.mergeProps(() => props.element_attributes, {
5057
+ "classList": {
5058
+ [container_class]: true
5059
+ }
5060
+ }), false, true);
5061
+ $52FdA$solidjsweb.insert(_el$, () => props.children);
5062
+ $52FdA$solidjsweb.runHydrationEvents();
5063
+ return _el$;
5064
+ })(); // Don't want this in the error boundary below, it should only be for the actual layouting
5065
+ return $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
5066
+ message_: "Failed calculating css grid layout",
5067
+ severity_: "error",
5068
+ get children() {
5069
+ return $830518481649feb1$export$e2f22da34aaf310a(props, container_element_, false, container_class);
5070
+ }
5071
+ });
5072
+ }
5073
+ function $830518481649feb1$export$e2f22da34aaf310a(props, container_element) {
5074
+ let insert_after_container = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
5075
+ let container_class = arguments.length > 3 ? arguments[3] : undefined;
5076
+ if (!container_class) {
5077
+ // only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
5078
+ container_class = $52FdA$depictaiutilishared.make_random_classname();
5079
+ container_element.classList.add(container_class);
5080
+ }
5081
+ const container_selector = ".depict .".concat(container_class); // class so ppl can have id if needed
5082
+ const col_styling = $52FdA$solidjs.createMemo(() => $830518481649feb1$var$generate_media_queried_declarations({
5083
+ container_selector_: container_selector,
5084
+ default_grid_spacing_text: props.grid_spacing,
5085
+ cols_at_size_: props.cols_at_size,
5086
+ override_vertical_spacing_: props.override_vertical_spacing,
5087
+ top_row_shortened_by_: props.top_row_shortened_by_()
5088
+ }));
5089
+ const base_styling = $52FdA$solidjs.createMemo(() => {
5090
+ return "".concat(container_selector, "{display:grid;}");
5091
+ });
5092
+ const get_styling = $52FdA$solidjs.createMemo(() => base_styling() + col_styling());
5093
+ const style_element = (() => {
5094
+ const _el$2 = $52FdA$solidjsweb.getNextElement($830518481649feb1$var$_tmpl$2);
5095
+ $52FdA$solidjsweb.insert(_el$2, get_styling);
5096
+ return _el$2;
5097
+ })(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
5098
+ if (insert_after_container) container_element.after(style_element);
5099
+ return [container_element, style_element];
5100
+ }
5101
+ function $830518481649feb1$var$generate_media_queried_declarations(_ref) {
5102
+ let {
5103
+ container_selector_: container_selector_,
5104
+ default_grid_spacing_text: default_grid_spacing_text,
5105
+ cols_at_size_: cols_at_size_,
5106
+ override_vertical_spacing_: override_vertical_spacing_,
5107
+ top_row_shortened_by_: top_row_shortened_by_
5108
+ } = _ref;
5109
+ return cols_at_size_.map(options => {
5110
+ const [n_cols, min, max, grid_spacing_for_size] = options;
5111
+ const spacing_to_use = grid_spacing_for_size || default_grid_spacing_text;
5112
+ // See comment in else block below
5113
+ const can_use_gap = $830518481649feb1$var$can_use_gap_for_unit(spacing_to_use) && (!override_vertical_spacing_ || $830518481649feb1$var$can_use_gap_for_unit(override_vertical_spacing_));
5114
+ let spacing_styling;
5115
+ let additional_styling = ""; // outside the media query
5116
+ if (can_use_gap) spacing_styling = "gap:".concat(spacing_to_use, ";").concat(override_vertical_spacing_ ? "row-gap:".concat(override_vertical_spacing_, ";") : "");else {
5117
+ // 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)
5118
+ // 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.
5119
+ // Logical thought: use margins for the vertical spacing. But margins in grids are apparently relative to the size of the individual items in grids.
5120
+ // 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.
5121
+ const width_multiplier = "var(".concat($830518481649feb1$export$c500183c31c2b22e, ", 1)"); // How many cards wide the current item is (needed because content blocks)
5122
+ const one_item_width_exclusing_gaps = "calc(calc(100 / ".concat(n_cols, ") - calc(calc(").concat(n_cols * 2 - 2, " * calc(").concat($830518481649feb1$var$strip_percent_unit(spacing_to_use), " / 2)) / ").concat(n_cols, "))"); // Width of one item in percent of the whole
5123
+ // Equation from layout.tsx, also used in CheckboxGrid. Needs half spacing for some reason
5124
+ const this_item_width_meat = "calc(".concat(one_item_width_exclusing_gaps, " * ").concat(width_multiplier, ")"); // Width of just the card
5125
+ const this_item_width_gaps = "calc(calc(".concat(width_multiplier, " - 1) * ").concat($830518481649feb1$var$strip_percent_unit(spacing_to_use), ")"); // Width of the gaps
5126
+ const this_item_width = "calc(".concat(this_item_width_meat, " + ").concat(this_item_width_gaps, ")"); // Width of this item including gaps
5127
+ // 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
5128
+ const convert_top_spacing_to_item_width_percentage = spacing => "calc(calc(100 / ".concat(this_item_width, ") * ").concat(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)
5129
+ spacing_styling = "column-gap:".concat(spacing_to_use, ";"); // Still use gaps in the horizontal direction because that works flawlessly
5130
+ // Re-use old layout code to get the correct :nth-child declarations for the top margins
5131
+ additional_styling = $52FdA$depictaiutilishared.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_);
5132
+ }
5133
+ const media_query_body = "".concat(container_selector_, "{").concat(spacing_styling, "grid-template-columns:repeat(").concat(n_cols, ",minmax(0,1fr));}");
5134
+ return "".concat($52FdA$depictaiutilishared.layout_media_query_header(min, max), "{").concat(media_query_body, "}").concat(additional_styling);
5135
+ }).join("");
5136
+ }
5137
+ function $830518481649feb1$var$can_use_gap_for_unit(spacing) {
5138
+ const trimmed_spacing = spacing.trim();
5139
+ return !trimmed_spacing.includes("%");
5140
+ }
5141
+ function $830518481649feb1$var$strip_percent_unit(css_value) {
5142
+ return css_value.replaceAll("%", "");
5143
+ }
5144
+ function $c749e60bca5000cb$export$cb5808ba002cdeed(_ref) {
5145
+ let {
5146
+ layout_options_: layout_options_,
5147
+ sort_or_filter_open_: sort_or_filter_open_
5148
+ } = _ref;
5149
+ return $52FdA$solidjs.createMemo(() => {
5150
+ const layout_options = layout_options_();
5151
+ // Add grid styling that changes when filters get opened/closed
5152
+ const when_filters_closed_cols = layout_options.cols_at_size;
5153
+ return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
5154
+ const [num_cols_default,,,, override_cols] = row;
5155
+ const cloned_row = [...row];
5156
+ // @ts-ignore
5157
+ cloned_row[0] = num_cols_default - 1;
5158
+ if (override_cols)
5159
+ // @ts-ignore
5160
+ cloned_row[4] = {
5161
+ overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(_ref2 => {
5162
+ let [row, column] = _ref2;
5163
+ return [row, column - 1];
5164
+ }))
5165
+ };
5166
+ return cloned_row;
5167
+ }) : when_filters_closed_cols;
5168
+ });
5169
+ }
5170
+ function $85fcdab554c24789$export$a79e666719b3647c(cols_at_size_) {
5171
+ const size_active = $52FdA$solidjs.createMemo(() => cols_at_size_().map(_ref => {
5172
+ let [n_cols, min_width, max_width] = _ref;
5173
+ const media_query = $52FdA$depictaiutilishared.layout_media_query_header(min_width, max_width).replaceAll("@media", "");
5174
+ const matches = $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query);
5175
+ return [matches, n_cols];
5176
+ }));
5177
+ const n_cols_currently_showing = $52FdA$solidjs.createMemo(() => {
5178
+ try {
5179
+ const [, n_cols_currently_showing] = size_active().find(_ref2 => {
5180
+ let [media_query] = _ref2;
5181
+ return media_query();
5182
+ });
5183
+ return n_cols_currently_showing;
5184
+ } catch (e) {
5185
+ $52FdA$depictaiutilishared.dwarn("No active size found in columnsAtSize - can't render content blocks");
5186
+ return null;
5187
+ }
5188
+ });
5189
+ return n_cols_currently_showing;
5190
+ }
5191
+ function $b8a8d61b3ec5f5ac$export$3f37af283f8fb843(props) {
5192
+ const style = $52FdA$solidjs.createMemo(() => {
5193
+ const {
5194
+ style: style,
5195
+ height: height,
5196
+ width: width,
5197
+ aspectRatio: aspectRatio
5198
+ } = props;
5199
+ const is_image = aspectRatio != undefined;
5200
+ const size_data = is_image ? {
5201
+ width: "100%",
5202
+ "padding-bottom": 1 / aspectRatio * 100 + "%"
5203
+ } : {
5204
+ width: width,
5205
+ height: height
5206
+ };
5207
+ return {
5208
+ display: "block",
5209
+ ...(style || {}),
5210
+ ...size_data
5211
+ };
5212
+ });
5213
+ return $52FdA$solidjsweb.createComponent((0, $e3d733f899558f40$export$acb3eaade4b23afd), {
5214
+ get style() {
5215
+ return style();
5216
+ },
5217
+ get ["class"]() {
5218
+ return props.class;
5219
+ }
5220
+ });
5221
+ }
5222
+ const $f8f375d6245ffff2$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=content-block-wrapper>`);
5223
+ function $f8f375d6245ffff2$export$791ef57e62e21c3f(_ref) {
5224
+ let {
5225
+ content_blocks_: incoming_content_blocks,
5226
+ cols_at_size_: cols_at_size_,
5227
+ number_of_items_shown_: number_of_items_shown_,
5228
+ set_top_row_shortened_by_: set_top_row_shortened_by_
5229
+ } = _ref;
5230
+ // these are by row
5231
+ const [content_blocks, set_content_blocks] = $52FdA$solidjsstore.createStore([]);
5232
+ const n_cols_currently_showing_ = $85fcdab554c24789$export$a79e666719b3647c(cols_at_size_);
5233
+ const products_to_rows = products => {
5234
+ const cols_currently_showing = n_cols_currently_showing_();
5235
+ if (cols_currently_showing === null) return 0;
5236
+ return Math.ceil(products / cols_currently_showing);
5237
+ };
5238
+ const showing_rows = $52FdA$solidjs.createMemo(() => products_to_rows(number_of_items_shown_()));
5239
+ $52FdA$solidjs.createEffect(() => {
5240
+ const incoming_value = incoming_content_blocks();
5241
+ if (!incoming_value) {
5242
+ set_content_blocks([]);
5243
+ return;
5244
+ }
5245
+ const capped_value = incoming_value.slice(0, showing_rows()); // Don't show more content blocks than we have rows
5246
+ set_content_blocks($52FdA$solidjsstore.reconcile(capped_value, {
5247
+ key: "content"
5248
+ })); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
5249
+ });
5250
+
5251
+ const get_wrapped_blocks_ = $f8f375d6245ffff2$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
5252
+ $52FdA$solidjs.createComputed(() => {
5253
+ // 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
5254
+ const top_row_block = get_wrapped_blocks_()[0];
5255
+ const blocks_in_top_row_taken = top_row_block === null || top_row_block === void 0 ? void 0 : top_row_block.span_columns;
5256
+ if (blocks_in_top_row_taken == undefined) {
5257
+ // Fall back to zero if no content block in top row, since then no blocks in top row are taken
5258
+ set_top_row_shortened_by_(0);
5259
+ return;
5260
+ }
5261
+ set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
5262
+ });
5263
+
5264
+ return $f8f375d6245ffff2$var$remap_blocks_to_index({
5265
+ get_wrapped_blocks_: get_wrapped_blocks_,
5266
+ n_cols_currently_showing_: n_cols_currently_showing_
5267
+ });
5268
+ }
5269
+ /**
5270
+ * Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
5271
+ * @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
5272
+ */
5273
+ function $f8f375d6245ffff2$var$remap_blocks_to_index(_ref2) {
5274
+ let {
5275
+ get_wrapped_blocks_: get_wrapped_blocks_,
5276
+ n_cols_currently_showing_: n_cols_currently_showing_
5277
+ } = _ref2;
5278
+ return $52FdA$solidjs.createMemo(() => {
5279
+ // This computation should be quite cheap since it just moves around things into an array
5280
+ const content_blocks_by_index = [];
5281
+ const constructed_block_arrays = new WeakSet();
5282
+ const wrapped_blocks = get_wrapped_blocks_();
5283
+ const cols_showing = n_cols_currently_showing_();
5284
+ // Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
5285
+ 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
5286
+ for (let i = 0; i < wrapped_blocks.length; i++) {
5287
+ // i = row to show at
5288
+ const block = wrapped_blocks[i];
5289
+ if (!block) continue; // Array can have holes/not defined places
5290
+ const index_of_first_item_in_row = i * cols_showing;
5291
+ const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
5292
+ const {
5293
+ span_rows: span_rows,
5294
+ position: position,
5295
+ span_columns: span_columns
5296
+ } = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
5297
+ let target_index;
5298
+ 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));
5299
+ // Calculate displacement of us by content blocks above us
5300
+ let displacement_by_added_blocks = 0;
5301
+ for (let j = 0; j < i; j++) {
5302
+ const row = displaced_products[j];
5303
+ if (row === undefined) continue; // there were no blocks in this row
5304
+ let items_in_row;
5305
+ if (typeof row === "number") items_in_row = row;else {
5306
+ items_in_row = row.filter(item => item).length;
5307
+ displaced_products[j] = items_in_row;
5308
+ }
5309
+ displacement_by_added_blocks += items_in_row;
5310
+ }
5311
+ const index_of_us_in_row = target_index - index_of_first_item_in_row;
5312
+ for (let j = 0; j < index_of_us_in_row; j++) {
5313
+ var _displaced_products$i;
5314
+ if ((_displaced_products$i = displaced_products[i]) !== null && _displaced_products$i !== void 0 && _displaced_products$i[j])
5315
+ // Add blocks in our *current* row to the displacement, but only the ones to our left
5316
+ displacement_by_added_blocks++;
5317
+ }
5318
+ // Add block to output array at the correct index
5319
+ const final_target_index = target_index - displacement_by_added_blocks;
5320
+ const existing_block = content_blocks_by_index[final_target_index];
5321
+ const block_content = block.content;
5322
+ // 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
5323
+ if (existing_block) {
5324
+ if (constructed_block_arrays.has(existing_block))
5325
+ // Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
5326
+ existing_block.push(block_content);else {
5327
+ const array = [existing_block, block_content];
5328
+ constructed_block_arrays.add(array);
5329
+ content_blocks_by_index[final_target_index] = array;
5330
+ }
5331
+ } else content_blocks_by_index[final_target_index] = block_content;
5332
+ // Update displacement
5333
+ for (let j = 0; j < span_rows; j++) {
5334
+ var _ref3;
5335
+ const row = displaced_products[_ref3 = i + j] || (displaced_products[_ref3] = []);
5336
+ for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
5337
+ }
5338
+ }
5339
+ return content_blocks_by_index;
5340
+ });
5341
+ }
5342
+ /**
5343
+ * 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.
5344
+ * Then renders the content and wraps it into a div with the correct styling.
5345
+ * Also caps span_columns to max available columns
5346
+ */
5347
+ function $f8f375d6245ffff2$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
5348
+ const get_wrapped_blocks = $52FdA$solidjs.mapArray(() => rendered_content_blocks, block => {
5349
+ if (!block) return;
5350
+ const get_span_columns = () => {
5351
+ var _max_span_columns;
5352
+ return Math.min(block.span_columns, (_max_span_columns = max_span_columns()) !== null && _max_span_columns !== void 0 ? _max_span_columns : Infinity);
5353
+ };
5354
+ return $52FdA$solidjs.mergeProps(block, {
5355
+ // Create content divs for the blocks with as much fine-grained diffing as possible?
5356
+ content: (() => {
5357
+ const _el$ = $52FdA$solidjsweb.getNextElement($f8f375d6245ffff2$var$_tmpl$);
5358
+ $52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent($f8f375d6245ffff2$var$RenderContent, {
5359
+ get content() {
5360
+ return block.content;
5361
+ }
5362
+ }));
5363
+ $52FdA$solidjsweb.effect(_p$ => {
5364
+ const _v$ = {
5365
+ [(0, $830518481649feb1$export$c500183c31c2b22e)]: get_span_columns()
5366
+ },
5367
+ _v$2 = "span ".concat(get_span_columns()),
5368
+ _v$3 = "span ".concat(block.span_rows);
5369
+ _p$._v$ = $52FdA$solidjsweb.style(_el$, _v$, _p$._v$);
5370
+ _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
5371
+ _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
5372
+ return _p$;
5373
+ }, {
5374
+ _v$: undefined,
5375
+ _v$2: undefined,
5376
+ _v$3: undefined
5377
+ });
5378
+ return _el$;
5379
+ })(),
5380
+ get span_columns() {
5381
+ // Cap max width of block to the number of columns available, for everyone downstream
5382
+ return get_span_columns();
5383
+ }
5384
+ });
5385
+ });
5386
+ return get_wrapped_blocks;
5387
+ }
5388
+ /**
5389
+ * 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.
5390
+ */
5391
+ function $f8f375d6245ffff2$var$RenderContent(props) {
5392
+ const [resource] = $52FdA$solidjs.createResource(() => props.content,
5393
+ // Could be reactive
5394
+ fn => fn());
5395
+ $52FdA$solidjs.createEffect(() => {
5396
+ if (resource.error) console.error("Error in content block rendering", resource.error);
5397
+ });
5398
+ // 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)
5399
+ return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
5400
+ get fallback() {
5401
+ return $52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
5402
+ width: "100%",
5403
+ height: "max(100%, 400px)"
5404
+ });
5405
+ },
5406
+ children: resource
5407
+ });
5408
+ }
5409
+ const $484eec37514a982e$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=PLP-results><!$><!/><!$><!/>`);
5025
5410
  function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
5026
5411
  let {
5027
5412
  plp_results_: plp_results_,
@@ -5037,7 +5422,8 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
5037
5422
  sort_or_filter_open_: sort_or_filter_open_,
5038
5423
  product_card_template_: product_card_template_,
5039
5424
  layout_options_: layout_options_,
5040
- id_currently_querying_for_: id_currently_querying_for_
5425
+ id_currently_querying_for_: id_currently_querying_for_,
5426
+ content_blocks_by_row_: content_blocks_by_row_
5041
5427
  } = _ref;
5042
5428
  // 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
5043
5429
  const is_loading_ = $52FdA$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
@@ -5086,24 +5472,37 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
5086
5472
  let is_just_after_plp_results_update = false;
5087
5473
  let fallback_is_alive = false;
5088
5474
  const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = $52FdA$solidjs.createSignal(true);
5475
+ const [top_row_shortened_by_, set_top_row_shortened_by_] = $52FdA$solidjs.createSignal(0);
5476
+ const [product_card_suspense_is_in_fallback, set_product_card_suspense_is_in_fallback] = $52FdA$solidjs.createSignal(false);
5477
+ const [number_loaded_displays, set_number_loaded_displays_] = $52FdA$solidjs.createSignal(0);
5478
+ const modified_cols_at_size = $c749e60bca5000cb$export$cb5808ba002cdeed({
5479
+ layout_options_: layout_options_,
5480
+ sort_or_filter_open_: sort_or_filter_open_
5481
+ });
5482
+ const num_placeholders_ = $52FdA$solidjs.createMemo(() => {
5483
+ var _get_scroll_restorati, _get_scroll_restorati2;
5484
+ // 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
5485
+ return (0, $da887c42f8e8847a$export$6c9030e511152266) + ((_get_scroll_restorati = (_get_scroll_restorati2 = get_scroll_restoration_data().find(_ref2 => {
5486
+ let {
5487
+ for_id: for_id
5488
+ } = _ref2;
5489
+ return for_id === id_currently_querying_for_();
5490
+ })) === null || _get_scroll_restorati2 === void 0 ? void 0 : _get_scroll_restorati2.min_results_loaded) !== null && _get_scroll_restorati !== void 0 ? _get_scroll_restorati : min_products_to_fetch_);
5491
+ });
5492
+ const number_of_items_shown_ = $52FdA$solidjs.createMemo(() => is_loading_() || product_card_suspense_is_in_fallback() ? num_placeholders_() : number_loaded_displays());
5493
+ const doesnt_have_content_blocks = $52FdA$solidjs.createMemo(() => !content_blocks_by_row_());
5494
+ const content_blocks_ = $52FdA$solidjs.createMemo(() => doesnt_have_content_blocks() ? () => [] : $f8f375d6245ffff2$export$791ef57e62e21c3f({
5495
+ content_blocks_: content_blocks_by_row_,
5496
+ cols_at_size_: modified_cols_at_size,
5497
+ number_of_items_shown_: number_of_items_shown_,
5498
+ set_top_row_shortened_by_: set_top_row_shortened_by_
5499
+ }));
5089
5500
  const rendered_placeholders = $52FdA$solidjs.createMemo(() => get_should_have_placeholders_rendered() ? $e3915574cfd3466c$export$f33414a4df0afd3f({
5501
+ content_blocks_: content_blocks_,
5090
5502
  product_card_template_: product_card_template_,
5091
- num_placeholders_: $52FdA$solidjs.createMemo(() => {
5092
- var _get_scroll_restorati, _get_scroll_restorati2;
5093
- // 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
5094
- return (0, $da887c42f8e8847a$export$6c9030e511152266) + ((_get_scroll_restorati = (_get_scroll_restorati2 = get_scroll_restoration_data().find(_ref2 => {
5095
- let {
5096
- for_id: for_id
5097
- } = _ref2;
5098
- return for_id === id_currently_querying_for_();
5099
- })) === null || _get_scroll_restorati2 === void 0 ? void 0 : _get_scroll_restorati2.min_results_loaded) !== null && _get_scroll_restorati !== void 0 ? _get_scroll_restorati : min_products_to_fetch_);
5100
- })
5503
+ num_placeholders_: num_placeholders_
5101
5504
  }) : undefined);
5102
5505
  const [get_suspense_is_blocked, set_suspense_is_blocked] = $52FdA$solidjs.createSignal(false);
5103
- const modified_cols_at_size = $484eec37514a982e$var$make_modified_cols_at_size({
5104
- layout_options_: layout_options_,
5105
- sort_or_filter_open_: sort_or_filter_open_
5106
- });
5107
5506
  const block_suspense_if_needed = () => {
5108
5507
  if (!is_just_after_plp_results_update) return;
5109
5508
  is_just_after_plp_results_update = false;
@@ -5133,18 +5532,18 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
5133
5532
  */
5134
5533
  const product_cards_when_data = $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
5135
5534
  get fallback() {
5136
- return (() => {
5137
- fallback_is_alive = true;
5138
- $52FdA$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
5139
- return $52FdA$solidjs.createMemo(() => {
5140
- // 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
5141
- // In future we could have individual suspense's for each product card, but that's too much for now
5142
- if (get_suspense_is_blocked()) return suspense_contents;
5143
- set_should_have_placeholders_rendered(true); // just in case
5144
- $52FdA$solidjs.onCleanup(() => set_should_have_placeholders_rendered(false));
5145
- 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>
5146
- });
5147
- })();
5535
+ fallback_is_alive = true;
5536
+ $52FdA$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
5537
+ set_product_card_suspense_is_in_fallback(true); // Here for the content block code that needs to know how many items we're displaying
5538
+ $52FdA$solidjs.onCleanup(() => set_product_card_suspense_is_in_fallback(false));
5539
+ return $52FdA$solidjs.createMemo(() => {
5540
+ // 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
5541
+ // In future we could have individual suspense's for each product card, but that's too much for now
5542
+ if (get_suspense_is_blocked()) return suspense_contents;
5543
+ set_should_have_placeholders_rendered(true); // just in case
5544
+ $52FdA$solidjs.onCleanup(() => set_should_have_placeholders_rendered(false));
5545
+ 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>
5546
+ });
5148
5547
  },
5149
5548
 
5150
5549
  get children() {
@@ -5160,37 +5559,64 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
5160
5559
  min_products_to_fetch_: min_products_to_fetch_,
5161
5560
  query_base_: query_base_,
5162
5561
  depict_api_: depict_api_,
5163
- is_loading_: is_loading_
5562
+ is_loading_: is_loading_,
5563
+ content_blocks_: content_blocks_,
5564
+ set_number_loaded_displays_: set_number_loaded_displays_
5164
5565
  });
5165
5566
  $52FdA$solidjs.onCleanup(() => suspense_contents = undefined);
5166
5567
  return suspense_contents;
5167
5568
  })();
5168
5569
  }
5169
5570
  });
5170
- return [$52FdA$solidjsweb.memo((0, $8edd3cf30d1fd8b4$export$a2cc176055f8f08)), $52FdA$solidjsweb.createComponent((0, $6c2c739b113a8ddf$export$d21e32dfedac04be), {
5171
- get cols_at_size() {
5172
- return modified_cols_at_size();
5571
+ /* 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 */
5572
+ const listing_contents = $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
5573
+ get when() {
5574
+ return !is_loading_();
5173
5575
  },
5174
- get override_vertical_spacing() {
5175
- return layout_options_().override_vertical_spacing;
5576
+ get fallback() {
5577
+ return rendered_placeholders();
5176
5578
  },
5177
- get grid_spacing() {
5178
- return layout_options_().grid_spacing;
5579
+ children: product_cards_when_data
5580
+ });
5581
+ return [$52FdA$solidjsweb.memo((0, $8edd3cf30d1fd8b4$export$a2cc176055f8f08)), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
5582
+ get when() {
5583
+ return doesnt_have_content_blocks();
5179
5584
  },
5180
- rows: "all",
5181
- layout: "grid",
5182
- element_attributes: {
5183
- class: "cards"
5585
+ get fallback() {
5586
+ return $52FdA$solidjsweb.createComponent((0, $830518481649feb1$export$ab6b147eec64fea5), {
5587
+ get cols_at_size() {
5588
+ return modified_cols_at_size();
5589
+ },
5590
+ get override_vertical_spacing() {
5591
+ return layout_options_().override_vertical_spacing;
5592
+ },
5593
+ get grid_spacing() {
5594
+ return layout_options_().grid_spacing;
5595
+ },
5596
+ element_attributes: {
5597
+ class: "cards css-grid"
5598
+ },
5599
+ top_row_shortened_by_: top_row_shortened_by_,
5600
+ children: listing_contents
5601
+ });
5184
5602
  },
5185
5603
  get children() {
5186
- return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
5187
- get when() {
5188
- return !is_loading_();
5604
+ return $52FdA$solidjsweb.createComponent((0, $6c2c739b113a8ddf$export$d21e32dfedac04be), {
5605
+ get cols_at_size() {
5606
+ return modified_cols_at_size();
5607
+ },
5608
+ get override_vertical_spacing() {
5609
+ return layout_options_().override_vertical_spacing;
5610
+ },
5611
+ get grid_spacing() {
5612
+ return layout_options_().grid_spacing;
5189
5613
  },
5190
- get fallback() {
5191
- return rendered_placeholders();
5614
+ rows: "all",
5615
+ layout: "grid",
5616
+ element_attributes: {
5617
+ class: "cards"
5192
5618
  },
5193
- children: product_cards_when_data
5619
+ children: listing_contents
5194
5620
  });
5195
5621
  }
5196
5622
  })];
@@ -5203,40 +5629,10 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
5203
5629
  return _el$;
5204
5630
  })();
5205
5631
  }
5206
- /**
5207
- * Changes cols_at_size depending on if filters are open or not so one card less is shown when the filters are open
5208
- * This function is special to the actual PLPResults.
5209
- */
5210
- function $484eec37514a982e$var$make_modified_cols_at_size(_ref3) {
5211
- let {
5212
- layout_options_: layout_options_,
5213
- sort_or_filter_open_: sort_or_filter_open_
5214
- } = _ref3;
5215
- return $52FdA$solidjs.createMemo(() => {
5216
- const layout_options = layout_options_();
5217
- // Add grid styling that changes when filters get opened/closed
5218
- const when_filters_closed_cols = layout_options.cols_at_size;
5219
- return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
5220
- const [num_cols_default,,,, override_cols] = row;
5221
- const cloned_row = [...row];
5222
- // @ts-ignore
5223
- cloned_row[0] = num_cols_default - 1;
5224
- if (override_cols)
5225
- // @ts-ignore
5226
- cloned_row[4] = {
5227
- overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(_ref4 => {
5228
- let [row, column] = _ref4;
5229
- return [row, column - 1];
5230
- }))
5231
- };
5232
- return cloned_row;
5233
- }) : when_filters_closed_cols;
5234
- });
5235
- }
5236
- const $3bd211c857f81dfd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="sorting-attributes"></div>`, 2),
5237
- $3bd211c857f81dfd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="sorting-direction"></div>`, 2),
5238
- $3bd211c857f81dfd$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></div></div>`, 9),
5239
- $3bd211c857f81dfd$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></label></div>`, 9);
5632
+ const $3bd211c857f81dfd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=sorting-attributes>`),
5633
+ $3bd211c857f81dfd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=sorting-direction>`),
5634
+ $3bd211c857f81dfd$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><div class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`),
5635
+ $3bd211c857f81dfd$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><label class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`);
5240
5636
  function $3bd211c857f81dfd$export$1f1775a58da589b5(_ref) {
5241
5637
  let {
5242
5638
  available_sortings_: available_sortings_,
@@ -5262,7 +5658,7 @@ function $3bd211c857f81dfd$export$1f1775a58da589b5(_ref) {
5262
5658
  _el$7 = _el$6.nextSibling,
5263
5659
  _el$8 = _el$7.nextSibling,
5264
5660
  [_el$9, _co$] = $52FdA$solidjsweb.getNextMarker(_el$8.nextSibling);
5265
- _el$6.disabled = true;
5661
+ $52FdA$solidjsweb.setProperty(_el$6, "disabled", true);
5266
5662
  $52FdA$solidjsweb.insert(_el$5, $52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
5267
5663
  height: "1.2em",
5268
5664
  width: "100%"
@@ -5302,7 +5698,7 @@ function $3bd211c857f81dfd$export$1f1775a58da589b5(_ref) {
5302
5698
  $52FdA$solidjsweb.addEventListener(_el$12, "change", $52FdA$depictaiutilishared.catchify(() => set_current_sorting(item())));
5303
5699
  $52FdA$solidjsweb.setAttribute(_el$12, "name", title_radio_name);
5304
5700
  $52FdA$solidjsweb.insert(_el$11, () => item().meta.title, _el$15, _co$2);
5305
- $52FdA$solidjsweb.effect(() => _el$12.checked = is_checked());
5701
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$12, "checked", is_checked()));
5306
5702
  return _el$10;
5307
5703
  })()
5308
5704
  );
@@ -5342,7 +5738,7 @@ function $3bd211c857f81dfd$export$1f1775a58da589b5(_ref) {
5342
5738
  var _meta_of_currently_se4, _meta_of_currently_se5;
5343
5739
  return (_meta_of_currently_se4 = meta_of_currently_selected_sorting_()) === null || _meta_of_currently_se4 === void 0 ? void 0 : (_meta_of_currently_se5 = _meta_of_currently_se4.names) === null || _meta_of_currently_se5 === void 0 ? void 0 : _meta_of_currently_se5[index];
5344
5740
  }, _el$21, _co$3);
5345
- $52FdA$solidjsweb.effect(() => _el$18.checked = is_checked());
5741
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$18, "checked", is_checked()));
5346
5742
  return _el$16;
5347
5743
  })();
5348
5744
  }
@@ -5389,7 +5785,7 @@ function $8c2e68c6d458169b$export$fe334901e8bebd57() {
5389
5785
  // document.body.style.top = `-${from_top}px`;
5390
5786
  // document.body.style.overflowY = "scroll";
5391
5787
 
5392
- const $0b45ba458cbff67a$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
5788
+ const $0b45ba458cbff67a$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
5393
5789
  function $0b45ba458cbff67a$export$da32f7add8a22e86() {
5394
5790
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
5395
5791
  return (() => {
@@ -5399,7 +5795,7 @@ function $0b45ba458cbff67a$export$da32f7add8a22e86() {
5399
5795
  return _el$;
5400
5796
  })();
5401
5797
  }
5402
- const $549632402b57d811$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
5798
+ const $549632402b57d811$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
5403
5799
  function $549632402b57d811$export$d10e63059ddb9fd4() {
5404
5800
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
5405
5801
  return (() => {
@@ -5409,7 +5805,7 @@ function $549632402b57d811$export$d10e63059ddb9fd4() {
5409
5805
  return _el$;
5410
5806
  })();
5411
5807
  }
5412
- const $9bde34303b3e9ace$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
5808
+ const $9bde34303b3e9ace$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
5413
5809
  function $9bde34303b3e9ace$export$28f6150e232898de() {
5414
5810
  return $52FdA$solidjsweb.getNextElement($9bde34303b3e9ace$var$_tmpl$);
5415
5811
  }
@@ -5422,13 +5818,13 @@ function $8b9c2fa4593b29df$export$50f68cc9882e36a4(args_for_filtering) {
5422
5818
  var _args_for_filtering$a, _args_for_filtering$s;
5423
5819
  return ((_args_for_filtering$a = args_for_filtering.available_filters_()) === null || _args_for_filtering$a === void 0 ? void 0 : _args_for_filtering$a.length) === 0 && !((_args_for_filtering$s = args_for_filtering.selected_filters_[0]()) !== null && _args_for_filtering$s !== void 0 && _args_for_filtering$s.length);
5424
5820
  }
5425
- const $685149df41127abd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear minor"></button>`, 2),
5426
- $685149df41127abd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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),
5427
- $685149df41127abd$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class="sorting"></details>`, 2),
5428
- $685149df41127abd$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><!#><!/><span></span></div><!#><!/></div></summary>`, 12),
5429
- $685149df41127abd$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="body"></div>`, 2),
5430
- $685149df41127abd$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class="filters"></details>`, 2),
5431
- $685149df41127abd$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<b></b>`, 2);
5821
+ const $685149df41127abd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="clear minor">`),
5822
+ $685149df41127abd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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">`),
5823
+ $685149df41127abd$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class=sorting>`),
5824
+ $685149df41127abd$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<summary class=sort-filter-summary><div class=summary><div class=left-els><!$><!/><span></span></div><!$><!/>`),
5825
+ $685149df41127abd$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=body>`),
5826
+ $685149df41127abd$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<details class=filters>`),
5827
+ $685149df41127abd$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`);
5432
5828
  const $685149df41127abd$var$no_go_selector = ".range .range-group";
5433
5829
  function $685149df41127abd$export$9bf11afa910f536e(_ref) {
5434
5830
  let {
@@ -5749,16 +6145,16 @@ function $685149df41127abd$export$9bf11afa910f536e(_ref) {
5749
6145
  })()];
5750
6146
  }
5751
6147
  $52FdA$solidjsweb.delegateEvents(["click", "touchstart"]);
5752
- const $ae261a5687fe84f4$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
6148
+ const $ae261a5687fe84f4$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
5753
6149
  function $ae261a5687fe84f4$export$cb808a3c41736d8e() {
5754
6150
  return $52FdA$solidjsweb.getNextElement($ae261a5687fe84f4$var$_tmpl$);
5755
6151
  }
5756
- const $f70cc6dfcadf0fd5$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="filters"><div class="body"></div></div>`, 4),
5757
- $f70cc6dfcadf0fd5$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="sorting"><div class="body"></div></div>`, 4),
5758
- $f70cc6dfcadf0fd5$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"><!#><!/><!#><!/><!#><!/></div></div></div>`, 12),
5759
- $f70cc6dfcadf0fd5$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="num-filters"></span>`, 2),
5760
- $f70cc6dfcadf0fd5$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="open-filters-button-container"><!#><!/><button type="button"><!#><!/><span></span></button></div>`, 10),
5761
- $f70cc6dfcadf0fd5$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="toggle-button for-sorting major-minor-transition"><span></span><!#><!/></button>`, 6);
6152
+ const $f70cc6dfcadf0fd5$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filters><div class=body>`),
6153
+ $f70cc6dfcadf0fd5$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=sorting><div class=body>`),
6154
+ $f70cc6dfcadf0fd5$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=sort-and-filter-buttons><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`),
6155
+ $f70cc6dfcadf0fd5$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=num-filters>`),
6156
+ $f70cc6dfcadf0fd5$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=open-filters-button-container><!$><!/><button type=button><!$><!/><span>`),
6157
+ $f70cc6dfcadf0fd5$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="toggle-button for-sorting major-minor-transition"><span></span><!$><!/>`);
5762
6158
  function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
5763
6159
  let {
5764
6160
  current_sorting_: current_sorting_,
@@ -6107,11 +6503,11 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
6107
6503
  })();
6108
6504
  }
6109
6505
  $52FdA$solidjsweb.delegateEvents(["click"]);
6110
- const $31f4a789db864adb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
6506
+ const $31f4a789db864adb$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
6111
6507
  function $31f4a789db864adb$export$2624c5890f1bbcf7() {
6112
6508
  return $52FdA$solidjsweb.getNextElement($31f4a789db864adb$var$_tmpl$);
6113
6509
  }
6114
- const $b7cbae23560f11b9$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
6510
+ const $b7cbae23560f11b9$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=floating-buttons><button class=filter><div></div></button><button class=sort><div></div></button><button class=up><div>`);
6115
6511
  function $b7cbae23560f11b9$export$b23abd26de154ede(props) {
6116
6512
  if (0, $52FdA$solidjsweb.isServer) return; // won't show in initial render and need scroll position
6117
6513
  const [is_small, set_is_small] = $52FdA$solidjs.createSignal(true);
@@ -6261,9 +6657,9 @@ function $b7cbae23560f11b9$var$ActualFloatingButtons(_ref2) {
6261
6657
  })();
6262
6658
  }
6263
6659
  $52FdA$solidjsweb.delegateEvents(["click"]);
6264
- const $1c819dc9d820a149$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<nav class="crumbs"></nav>`, 2),
6265
- $1c819dc9d820a149$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class="crumb"></a>`, 2),
6266
- $1c819dc9d820a149$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="separator"></span>`, 2);
6660
+ const $1c819dc9d820a149$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<nav class=crumbs>`),
6661
+ $1c819dc9d820a149$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=crumb>`),
6662
+ $1c819dc9d820a149$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=separator>`);
6267
6663
  function $1c819dc9d820a149$export$5646050d516e06bc(_ref) {
6268
6664
  let {
6269
6665
  crumb_data_: get_api_crumb_data,
@@ -6343,9 +6739,9 @@ function $1c819dc9d820a149$export$5646050d516e06bc(_ref) {
6343
6739
  });
6344
6740
  }
6345
6741
  $52FdA$solidjsweb.delegateEvents(["click"]);
6346
- const $21a004c2e7bd4c16$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<nav class="quicklinks"></nav>`, 2),
6347
- $21a004c2e7bd4c16$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>QuickLinks failed</div>`, 2),
6348
- $21a004c2e7bd4c16$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class="quicklink"></a>`, 2);
6742
+ const $21a004c2e7bd4c16$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<nav class=quicklinks>`),
6743
+ $21a004c2e7bd4c16$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>QuickLinks failed`),
6744
+ $21a004c2e7bd4c16$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=quicklink>`);
6349
6745
  function $21a004c2e7bd4c16$export$466cdc317043f6cb(_ref) {
6350
6746
  let {
6351
6747
  quicklinks_data_: quicklinks_data_,
@@ -6779,8 +7175,8 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
6779
7175
  });
6780
7176
  tracking_function_for_plp_results(plp_results_);
6781
7177
  }
6782
- const $12121a33e26f3430$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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),
6783
- $12121a33e26f3430$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="buttons"><button class="ok major"></button></div>`, 4);
7178
+ const $12121a33e26f3430$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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.`),
7179
+ $12121a33e26f3430$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=buttons><button class="ok major">`);
6784
7180
  function $12121a33e26f3430$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
6785
7181
  if (!(0, $52FdA$depictaiutilishared.is_debug)) return; // Just to make sure we don't show this in production
6786
7182
  const owner = $52FdA$solidjs.getOwner();
@@ -6844,10 +7240,10 @@ function $eef41d50f07bf19a$export$d31a1a1a83ad9413(plp_results_, _ref) {
6844
7240
  set_selected_filters(new_filters);
6845
7241
  });
6846
7242
  }
6847
- const $ede6c70ecdca46fe$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="product-count"><!#><!/> <!#><!/></div>`, 6),
6848
- $ede6c70ecdca46fe$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2),
6849
- $ede6c70ecdca46fe$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6),
6850
- $ede6c70ecdca46fe$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 20);
7243
+ const $ede6c70ecdca46fe$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=product-count><!$><!/> <!$><!/>`),
7244
+ $ede6c70ecdca46fe$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
7245
+ $ede6c70ecdca46fe$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
7246
+ $ede6c70ecdca46fe$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
6851
7247
  function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
6852
7248
  var _on_filters_construct;
6853
7249
  let {
@@ -6877,7 +7273,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
6877
7273
  product_card_template_: product_card_template_,
6878
7274
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
6879
7275
  sorting_query_param_: sorting_query_param_,
6880
- filter_query_param_prefix_: filter_query_param_prefix_
7276
+ filter_query_param_prefix_: filter_query_param_prefix_,
7277
+ content_blocks_by_row_: content_blocks_by_row_
6881
7278
  } = _ref;
6882
7279
  let results_for;
6883
7280
  let only_show_filters_opener_;
@@ -7197,6 +7594,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
7197
7594
  product_card_template_: product_card_template_,
7198
7595
  sort_or_filter_open_: sort_or_filter_open_,
7199
7596
  desktop_filter_elements_: desktop_filter_elements_,
7597
+ content_blocks_by_row_: content_blocks_by_row_,
7200
7598
  id_currently_querying_for_: query_id_,
7201
7599
  no_results_options_: {
7202
7600
  selected_filters_: selected_filters_,
@@ -7523,7 +7921,7 @@ function $bdea39a75c454f4f$export$f50b88e2a00918b5(fn) {
7523
7921
  }
7524
7922
  };
7525
7923
  }
7526
- const $9cbefc32b9dab36d$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category"></div>`, 2);
7924
+ const $9cbefc32b9dab36d$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category">`);
7527
7925
  function $9cbefc32b9dab36d$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
7528
7926
  $9cbefc32b9dab36d$var$_checkPrivateRedeclaration(obj, privateMap);
7529
7927
  privateMap.set(obj, value);
@@ -7813,6 +8211,7 @@ function $9cbefc32b9dab36d$export$e2bf8ce7779e827e(props) {
7813
8211
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
7814
8212
  selected_filters_: selected_filters_,
7815
8213
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
8214
+ content_blocks_by_row_: () => props.content_blocks_by_row,
7816
8215
  scroll_restoration_data_: scroll_restoration_data_,
7817
8216
  layout_options_: $52FdA$solidjs.createMemo(() => ({
7818
8217
  cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
@@ -7878,7 +8277,7 @@ function $9cbefc32b9dab36d$var$get_shared_properties(depict_category) {
7878
8277
  if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
7879
8278
  return shared_properties;
7880
8279
  }
7881
- const $dc0bcefcc3486ebd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="category-title"><h1 class="title"></h1><span class="explanation"> — <!#><!/></span></div>`, 8);
8280
+ const $dc0bcefcc3486ebd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation> — <!$><!/>`);
7882
8281
  const $dc0bcefcc3486ebd$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
7883
8282
  const actual_function = _ref => {
7884
8283
  let {
@@ -7904,7 +8303,7 @@ const $dc0bcefcc3486ebd$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
7904
8303
  actual_function[(0, $905241549bde5bff$export$5c28802497c8a83c)] = "simple";
7905
8304
  return actual_function;
7906
8305
  })();
7907
- const $0c91ea7c14692db9$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
8306
+ const $0c91ea7c14692db9$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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><!$><!/><!$><!/><!$><!/>`);
7908
8307
  const $0c91ea7c14692db9$export$824dde41348efed1 = /*@__PURE__*/(() => {
7909
8308
  const actual_function = _ref => {
7910
8309
  let {
@@ -8069,38 +8468,7 @@ async function $822f2c95a96c3ec8$var$download_categories(tenant, market, type) {
8069
8468
  return [];
8070
8469
  }
8071
8470
  }
8072
- function $b8a8d61b3ec5f5ac$export$3f37af283f8fb843(props) {
8073
- const style = $52FdA$solidjs.createMemo(() => {
8074
- const {
8075
- style: style,
8076
- height: height,
8077
- width: width,
8078
- aspectRatio: aspectRatio
8079
- } = props;
8080
- const is_image = aspectRatio != undefined;
8081
- const size_data = is_image ? {
8082
- width: "100%",
8083
- "padding-bottom": 1 / aspectRatio * 100 + "%"
8084
- } : {
8085
- width: width,
8086
- height: height
8087
- };
8088
- return {
8089
- display: "block",
8090
- ...(style || {}),
8091
- ...size_data
8092
- };
8093
- });
8094
- return $52FdA$solidjsweb.createComponent((0, $e3d733f899558f40$export$acb3eaade4b23afd), {
8095
- get style() {
8096
- return style();
8097
- },
8098
- get ["class"]() {
8099
- return props.class;
8100
- }
8101
- });
8102
- }
8103
- const $c0cf6af094336798$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
8471
+ const $c0cf6af094336798$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=title>`);
8104
8472
  function $c0cf6af094336798$export$ee1733d9a8495996() {
8105
8473
  return (() => {
8106
8474
  const _el$ = $52FdA$solidjsweb.getNextElement($c0cf6af094336798$var$_tmpl$),
@@ -8118,8 +8486,8 @@ function $c0cf6af094336798$export$ee1733d9a8495996() {
8118
8486
  return _el$;
8119
8487
  })();
8120
8488
  }
8121
- const $3001ad378baf39dc$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="parent-title"></span>`, 2),
8122
- $3001ad378baf39dc$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class="category-suggestion"><span class="title"></span><!#><!/></a>`, 6);
8489
+ const $3001ad378baf39dc$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=parent-title>`),
8490
+ $3001ad378baf39dc$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=category-suggestion><span class=title></span><!$><!/>`);
8123
8491
  function $3001ad378baf39dc$export$d757d54550ebfb3d(_ref) {
8124
8492
  let {
8125
8493
  category_suggestion_: category_suggestion_,
@@ -8154,11 +8522,11 @@ function $3001ad378baf39dc$export$d757d54550ebfb3d(_ref) {
8154
8522
  })();
8155
8523
  }
8156
8524
  $52FdA$solidjsweb.delegateEvents(["click"]);
8157
- const $dd98275d380b2cfd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
8525
+ const $dd98275d380b2cfd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
8158
8526
  function $dd98275d380b2cfd$export$1c641004b5485fed() {
8159
8527
  return $52FdA$solidjsweb.getNextElement($dd98275d380b2cfd$var$_tmpl$);
8160
8528
  }
8161
- const $5b88b077e48a4451$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
8529
+ const $5b88b077e48a4451$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
8162
8530
  function $5b88b077e48a4451$export$82eafebb825fc23f() {
8163
8531
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
8164
8532
  return (() => {
@@ -8172,8 +8540,8 @@ function $5b88b077e48a4451$export$82eafebb825fc23f() {
8172
8540
  return _el$;
8173
8541
  })();
8174
8542
  }
8175
- const $29e5dbeb69da7a36$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="back" type="button"></button>`, 2),
8176
- $29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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);
8543
+ const $29e5dbeb69da7a36$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=back type=button>`),
8544
+ $29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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>`);
8177
8545
  function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
8178
8546
  let {
8179
8547
  search_field_value_: search_field_value_,
@@ -8275,7 +8643,7 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
8275
8643
  input_field_ref_ === null || input_field_ref_ === void 0 || input_field_ref_(el);
8276
8644
  });
8277
8645
  typeof _ref$ === "function" && $52FdA$solidjsweb.use(_ref$, _el$4);
8278
- _el$4.classList.toggle("has-adjacent-back-button", !!on_back_);
8646
+ _el$4.classList.toggle("has-adjacent-back-button", !!!!on_back_);
8279
8647
  $52FdA$solidjsweb.addEventListener(_el$5, "click", $52FdA$depictaiutilishared.catchify(() => {
8280
8648
  search_field_value_[1]("");
8281
8649
  clear_filters_(true);
@@ -8303,14 +8671,14 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
8303
8671
  _v$4: undefined,
8304
8672
  _v$5: undefined
8305
8673
  });
8306
- $52FdA$solidjsweb.effect(() => _el$4.value = search_field_value_[0]());
8674
+ $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$4, "value", search_field_value_[0]()));
8307
8675
  $52FdA$solidjsweb.runHydrationEvents();
8308
8676
  return _el$;
8309
8677
  })();
8310
8678
  }
8311
8679
  $52FdA$solidjsweb.delegateEvents(["click", "keydown", "input", "pointerdown"]);
8312
- const $c77adcdf5346b187$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="search-recs"><h3 class="search-recs-title"></h3><!#><!/><!#><!/></div>`, 8),
8313
- $c77adcdf5346b187$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major" type="button"></button>`, 2);
8680
+ const $c77adcdf5346b187$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-recs><h3 class=search-recs-title></h3><!$><!/><!$><!/>`),
8681
+ $c77adcdf5346b187$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major"type=button>`);
8314
8682
  const $c77adcdf5346b187$export$1c8c715550dc689d = 2;
8315
8683
  function $c77adcdf5346b187$export$7de92c4c2205ebf3(_ref) {
8316
8684
  let {
@@ -8566,9 +8934,9 @@ async function $7f680455a2aa1079$export$e16630ecb9644a1c(_ref) {
8566
8934
  const $65353359a9fbdacd$export$27b710c08412a7ad = obj => {
8567
8935
  return Object.fromEntries(Object.keys(obj).map(key => [key, obj[key]()]));
8568
8936
  };
8569
- const $82d079b68975fbf7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="orig price"><!#><!/><!#><!/><!#><!/></span>`, 8),
8570
- $82d079b68975fbf7$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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),
8571
- $82d079b68975fbf7$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="tagline"></div>`, 2);
8937
+ const $82d079b68975fbf7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="orig price"><!$><!/><!$><!/><!$><!/>`),
8938
+ $82d079b68975fbf7$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
8939
+ $82d079b68975fbf7$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=tagline>`);
8572
8940
  const $82d079b68975fbf7$export$b05c0ae390cf3e06 = (display_or_variant_container, _ref, router_) => {
8573
8941
  let {
8574
8942
  i18n: i18n
@@ -8694,7 +9062,7 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = (display_or_variant_container,
8694
9062
  })();
8695
9063
  };
8696
9064
  $52FdA$solidjsweb.delegateEvents(["click"]);
8697
- const $6e8d48eea3d0469d$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="instant-results"></div>`, 2);
9065
+ const $6e8d48eea3d0469d$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=instant-results>`);
8698
9066
  function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
8699
9067
  let {
8700
9068
  depict_api_: depict_api_,
@@ -8794,8 +9162,8 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
8794
9162
  return _el$;
8795
9163
  })();
8796
9164
  }
8797
- const $246adc3df5966856$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2),
8798
- $246adc3df5966856$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
9165
+ const $246adc3df5966856$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;>`),
9166
+ $246adc3df5966856$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;>`);
8799
9167
  function $246adc3df5966856$export$50b90be27d8502d9(el, _ref, bottom_distance) {
8800
9168
  let [get_style_props, set_style_props] = _ref;
8801
9169
  const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
@@ -8846,12 +9214,12 @@ function $77fe1b91e837c071$export$91c3b6774e8be0f5(_ref) {
8846
9214
  return u_o.href;
8847
9215
  });
8848
9216
  }
8849
- const $8767e7eba5066d2b$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
9217
+ const $8767e7eba5066d2b$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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>`);
8850
9218
  function $8767e7eba5066d2b$export$5d2caaa6b530761c() {
8851
9219
  return $52FdA$solidjsweb.getNextElement($8767e7eba5066d2b$var$_tmpl$);
8852
9220
  }
8853
- const $4edbc04f5c5a1843$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6),
8854
- $4edbc04f5c5a1843$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class="item"><div class="left"><!#><!/><span class="line-clamp"></span></div><button class="delete"></button></a>`, 10);
9221
+ const $4edbc04f5c5a1843$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=previous-searches><h2 class=text></h2><div class=list>`),
9222
+ $4edbc04f5c5a1843$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=item><div class=left><!$><!/><span class=line-clamp></span></div><button class=delete>`);
8855
9223
  function $4edbc04f5c5a1843$export$a146ac6fa8346a25(_ref) {
8856
9224
  let {
8857
9225
  text_: text_,
@@ -8958,8 +9326,8 @@ function $4edbc04f5c5a1843$export$a146ac6fa8346a25(_ref) {
8958
9326
  }
8959
9327
  });
8960
9328
  }
8961
- const $23c3f390dee33ff8$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="highlighted-part"></span>`, 2),
8962
- $23c3f390dee33ff8$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span></span>`, 2);
9329
+ const $23c3f390dee33ff8$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=highlighted-part>`),
9330
+ $23c3f390dee33ff8$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span>`);
8963
9331
  function $23c3f390dee33ff8$export$ba17c5b7e6dda39f(_ref) {
8964
9332
  let {
8965
9333
  whole_text_to_display_: whole_text_to_display_memo,
@@ -9031,7 +9399,7 @@ function $23c3f390dee33ff8$export$ba17c5b7e6dda39f(_ref) {
9031
9399
  return _el$2;
9032
9400
  })();
9033
9401
  }
9034
- const $3cf7b4db1e203c93$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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);
9402
+ const $3cf7b4db1e203c93$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.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">`);
9035
9403
  function $3cf7b4db1e203c93$export$605674723bcc715c() {
9036
9404
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
9037
9405
  return (() => {
@@ -9041,15 +9409,15 @@ function $3cf7b4db1e203c93$export$605674723bcc715c() {
9041
9409
  return _el$;
9042
9410
  })();
9043
9411
  }
9044
- const $0677d509ad208e22$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class="suggestion"></a>`, 2),
9045
- $0677d509ad208e22$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="search-icon"></div>`, 2),
9046
- $0677d509ad208e22$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="type"></span>`, 2),
9047
- $0677d509ad208e22$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="with-parent-title"><!#><!/><span class="value line-clamp"></span></div>`, 6),
9048
- $0677d509ad208e22$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="with-icon"><!#><!/><!#><!/></div>`, 6),
9049
- $0677d509ad208e22$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<h2 class="text"></h2>`, 2),
9050
- $0677d509ad208e22$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="suggestion-container query"><!#><!/><!#><!/></div>`, 6),
9051
- $0677d509ad208e22$var$_tmpl$8 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="suggestion-container page"></div>`, 2),
9052
- $0677d509ad208e22$var$_tmpl$9 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="suggestions"><!#><!/><!#><!/><!#><!/></div>`, 8);
9412
+ const $0677d509ad208e22$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=suggestion>`),
9413
+ $0677d509ad208e22$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-icon>`),
9414
+ $0677d509ad208e22$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=type>`),
9415
+ $0677d509ad208e22$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=with-parent-title><!$><!/><span class="value line-clamp">`),
9416
+ $0677d509ad208e22$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=with-icon><!$><!/><!$><!/>`),
9417
+ $0677d509ad208e22$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<h2 class=text>`),
9418
+ $0677d509ad208e22$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="suggestion-container query"><!$><!/><!$><!/>`),
9419
+ $0677d509ad208e22$var$_tmpl$8 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="suggestion-container page">`),
9420
+ $0677d509ad208e22$var$_tmpl$9 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=suggestions><!$><!/><!$><!/><!$><!/>`);
9053
9421
  function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
9054
9422
  let {
9055
9423
  suggestion_memo_: suggestion_memo_,
@@ -9321,7 +9689,7 @@ function $0677d509ad208e22$export$e872e2339fb04a7f(_ref) {
9321
9689
  }
9322
9690
  });
9323
9691
  }
9324
- const $1730e5b4d47679a3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a target="_blank"></a>`, 2);
9692
+ const $1730e5b4d47679a3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a target=_blank>`);
9325
9693
  function $1730e5b4d47679a3$export$1efe1013da60d0e4(e, href) {
9326
9694
  if (e.metaKey || e.ctrlKey) {
9327
9695
  // Open link in a new tab with cmd/ctrl + enter.
@@ -9727,7 +10095,7 @@ const $4989678133495482$export$1233ca167bf71f9a = styles => {
9727
10095
  return "".concat(selector, " { ").concat($4989678133495482$export$af8311b651139246(css_properties), " }");
9728
10096
  }).join(" ");
9729
10097
  };
9730
- const $cc66bbf6e783bb58$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<style></style>`, 2);
10098
+ const $cc66bbf6e783bb58$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<style>`);
9731
10099
  function $cc66bbf6e783bb58$export$f021bdedd3ec901a(props) {
9732
10100
  const valid_css_string = $52FdA$solidjs.createMemo(() => {
9733
10101
  return $4989678133495482$export$1233ca167bf71f9a(props.styles());
@@ -9738,10 +10106,10 @@ function $cc66bbf6e783bb58$export$f021bdedd3ec901a(props) {
9738
10106
  return _el$;
9739
10107
  })();
9740
10108
  }
9741
- const $24419668d5fcfcd5$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4),
9742
- $24419668d5fcfcd5$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<b></b>`, 2),
9743
- $24419668d5fcfcd5$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict-search-modal"><div class="body"><!#><!/><div class="padded"><!#><!/><!#><!/><!#><!/></div><!#><!/></div><!#><!/></div>`, 18),
9744
- $24419668d5fcfcd5$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div><!#><!/></div>`, 6);
10109
+ const $24419668d5fcfcd5$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
10110
+ $24419668d5fcfcd5$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`),
10111
+ $24419668d5fcfcd5$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=depict-search-modal><div class=body><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
10112
+ $24419668d5fcfcd5$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
9745
10113
  function $24419668d5fcfcd5$export$1c593cbd6f1e10bc(_ref) {
9746
10114
  let {
9747
10115
  search_field_value_: props_search_field_value,
@@ -9999,8 +10367,8 @@ function $24419668d5fcfcd5$var$close_modal_when_navigating_away(close_modal, sea
9999
10367
  })();
10000
10368
  }
10001
10369
  $52FdA$solidjsweb.delegateEvents(["click"]);
10002
- const $e3ac79dbd744c1c1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="category-suggestions"></div>`, 2),
10003
- $e3ac79dbd744c1c1$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="category-suggestion"></div>`, 2);
10370
+ const $e3ac79dbd744c1c1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=category-suggestions>`),
10371
+ $e3ac79dbd744c1c1$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=category-suggestion>`);
10004
10372
  function $e3ac79dbd744c1c1$export$c05a196222ba1302(_ref) {
10005
10373
  let {
10006
10374
  suggestions_: suggestions_,
@@ -10049,8 +10417,8 @@ function $e3ac79dbd744c1c1$export$c05a196222ba1302(_ref) {
10049
10417
  }
10050
10418
  });
10051
10419
  }
10052
- const $9870a8a48ee126af$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<b></b>`, 2),
10053
- $9870a8a48ee126af$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="results-for"></div>`, 2);
10420
+ const $9870a8a48ee126af$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`),
10421
+ $9870a8a48ee126af$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=results-for>`);
10054
10422
  function $9870a8a48ee126af$export$9dd50d35b9d94fdf(_ref) {
10055
10423
  let {
10056
10424
  get_search_query_: get_search_query_,
@@ -10101,7 +10469,7 @@ function $996102a9349df6d7$export$41b4894022a3580f() {
10101
10469
  })));
10102
10470
  return style_props_;
10103
10471
  }
10104
- const $99472afa7112c427$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="highlighted-part"></span>`, 2);
10472
+ const $99472afa7112c427$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class=highlighted-part>`);
10105
10473
  const $99472afa7112c427$var$dont_cut_in_between_less_than_characters = 30;
10106
10474
  function $99472afa7112c427$export$e1a98a189fd2c0e7(_ref) {
10107
10475
  let {
@@ -10333,10 +10701,10 @@ function $99472afa7112c427$var$segment_text(text, matched_strings) {
10333
10701
  }
10334
10702
  return output;
10335
10703
  }
10336
- const $f1fc9ea3e7632eba$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a></a>`, 2),
10337
- $f1fc9ea3e7632eba$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div></div>`, 2),
10338
- $f1fc9ea3e7632eba$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="description line-clamp"></div>`, 2),
10339
- $f1fc9ea3e7632eba$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="content-card"><div class="image"></div><div class="info"><!#><!/><!#><!/></div></div>`, 10);
10704
+ const $f1fc9ea3e7632eba$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a>`),
10705
+ $f1fc9ea3e7632eba$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
10706
+ $f1fc9ea3e7632eba$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="description line-clamp">`),
10707
+ $f1fc9ea3e7632eba$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=content-card><div class=image></div><div class=info><!$><!/><!$><!/>`);
10340
10708
  function $f1fc9ea3e7632eba$export$f631859cab12b342(_ref) {
10341
10709
  let {
10342
10710
  router_: router_,
@@ -10502,9 +10870,9 @@ function $05f255c0a94b9ca1$export$4405d077f0a20494(_ref) {
10502
10870
  children: () => $52FdA$solidjsweb.createComponent((0, $f1fc9ea3e7632eba$export$f631859cab12b342), {})
10503
10871
  });
10504
10872
  }
10505
- const $eab939d0b95b75ee$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="content-results"><!#><!/><!#><!/></div>`, 6),
10506
- $eab939d0b95b75ee$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="view-more"></button>`, 2),
10507
- $eab939d0b95b75ee$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="view-less"></button>`, 2);
10873
+ const $eab939d0b95b75ee$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=content-results><!$><!/><!$><!/>`),
10874
+ $eab939d0b95b75ee$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=view-more>`),
10875
+ $eab939d0b95b75ee$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=view-less>`);
10508
10876
  const $eab939d0b95b75ee$export$70ceae36059a1036 = 1;
10509
10877
  function $eab939d0b95b75ee$export$6d0c9c22f6652669(_ref) {
10510
10878
  let {
@@ -10583,7 +10951,7 @@ function $eab939d0b95b75ee$export$6d0c9c22f6652669(_ref) {
10583
10951
  })), _el$5, _co$2);
10584
10952
  $52FdA$solidjsweb.effect(() => {
10585
10953
  var _content_results2;
10586
- return _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none");
10954
+ return is_loading_() && placeholders_enabled() || (_content_results2 = content_results()) === null || _content_results2 === void 0 || _content_results2.length, _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none");
10587
10955
  });
10588
10956
  return _el$;
10589
10957
  })();
@@ -10618,8 +10986,8 @@ function $eab939d0b95b75ee$var$make_state_saved_rows(_ref2, i18n_) {
10618
10986
  }));
10619
10987
  return rows;
10620
10988
  }
10621
- const $739c927cbecd26b0$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6),
10622
- $739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 22);
10989
+ const $739c927cbecd26b0$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
10990
+ $739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
10623
10991
  function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
10624
10992
  let {
10625
10993
  depict_api_: depict_api_,
@@ -10653,7 +11021,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
10653
11021
  router_: router_,
10654
11022
  content_results_rows_: content_results_rows_,
10655
11023
  content_layout_options_: content_layout_options_,
10656
- content_search_enabled_: content_search_enabled_
11024
+ content_search_enabled_: content_search_enabled_,
11025
+ content_blocks_by_row_: content_blocks_by_row_
10657
11026
  } = _ref;
10658
11027
  const [get_sorting] = current_sorting_;
10659
11028
  const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
@@ -10954,6 +11323,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
10954
11323
  layout_options_: layout_options_,
10955
11324
  sort_or_filter_open_: sort_or_filter_open_,
10956
11325
  id_currently_querying_for_: get_search_query_,
11326
+ content_blocks_by_row_: content_blocks_by_row_,
10957
11327
  no_results_options_: {
10958
11328
  selected_filters_: selected_filters_,
10959
11329
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
@@ -11084,7 +11454,7 @@ function $b1ea8d47bcf03111$export$ff7109b9b2b206ba(sdk_cols_at_size) {
11084
11454
  return max_width == Infinity ? [cols] : [cols, max_width];
11085
11455
  });
11086
11456
  }
11087
- const $ddd39c5f36f49703$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"></div>`, 2);
11457
+ const $ddd39c5f36f49703$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search">`);
11088
11458
  function $ddd39c5f36f49703$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
11089
11459
  $ddd39c5f36f49703$var$_checkPrivateRedeclaration(obj, privateMap);
11090
11460
  privateMap.set(obj, value);
@@ -11487,6 +11857,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
11487
11857
  search_sorting_open_: state_.sorting_open,
11488
11858
  expanded_filters_: state_.expanded_filters,
11489
11859
  content_results_rows_: state_.content_results_rows,
11860
+ content_blocks_by_row_: () => props.content_blocks_by_row,
11490
11861
  router_: shared_properties.router_,
11491
11862
  make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
11492
11863
  return $3001ad378baf39dc$export$d757d54550ebfb3d({