@depict-ai/ui 1.0.17 → 1.0.18

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.
@@ -6,6 +6,8 @@ function $parcel$export(e, n, v, s) {
6
6
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
7
  }
8
8
 
9
+ $parcel$export(module.exports, "CrossIcon", () => $c77c68e559a1506c$export$3b621d86b1566b2);
10
+ $parcel$export(module.exports, "GenericSliderArrowButton", () => $0f313083912e447a$export$8be2714ec7f169ee);
9
11
  $parcel$export(module.exports, "fetchDepictRecommendations", () => $bc91d938b8c601b4$export$58e808b1db15d3bc);
10
12
  $parcel$export(module.exports, "QuickLinks", () => $48567ac5b39bac56$export$de035477d6fef996);
11
13
  $parcel$export(module.exports, "BreadCrumbs", () => $48567ac5b39bac56$export$5b7c3ce0ebe51f86);
@@ -40,11 +42,39 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
40
42
  $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
41
43
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
42
44
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
43
- /*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.0.15";
45
+ /*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.0.18";
44
46
 
45
47
 
46
48
 
47
49
 
50
+
51
+ const $c77c68e559a1506c$var$_tmpl$ = '<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>';
52
+ function $c77c68e559a1506c$export$3b621d86b1566b2(props = {}) {
53
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
54
+ ...props,
55
+ "xmlns": "http://www.w3.org/2000/svg",
56
+ "width": "21.064",
57
+ "height": "21.047",
58
+ "viewBox": "0 0 21.064 21.064"
59
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($c77c68e559a1506c$var$_tmpl$), true);
60
+ }
61
+
62
+
63
+
64
+
65
+
66
+
67
+ const $0f313083912e447a$var$_tmpl$ = [
68
+ "<svg",
69
+ ' xmlns="http://www.w3.org/2000/svg"',
70
+ ' 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>'
71
+ ];
72
+ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
73
+ return (0, $diwD4$solidjsweb.ssr)($0f313083912e447a$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrAttribute)("width", (0, $diwD4$solidjsweb.escape)(props.width_, true) ?? 14, false) + (0, $diwD4$solidjsweb.ssrAttribute)("height", (0, $diwD4$solidjsweb.escape)(props.height_, true) ?? 26, false));
74
+ }
75
+
76
+
77
+
48
78
  async function $bc91d938b8c601b4$export$58e808b1db15d3bc({ merchant: merchant , market: market , headers: headers , ...fetch_recs_options }) {
49
79
  return await (0, $diwD4$depictaiutilishared.fetch_recs)({
50
80
  tenant: merchant,
@@ -61,7 +91,6 @@ async function $bc91d938b8c601b4$export$58e808b1db15d3bc({ merchant: merchant ,
61
91
 
62
92
 
63
93
 
64
-
65
94
  function $6e22b5314fb52f4c$export$e183a13865960371(params_to_default_value, router_) {
66
95
  const signals = {};
67
96
  const entries = Object.entries(params_to_default_value);
@@ -71,7 +100,9 @@ function $6e22b5314fb52f4c$export$e183a13865960371(params_to_default_value, rout
71
100
  // createRenderEffect because we need the instant execution so the signals always contain values, even before solid's render phase
72
101
  (0, $diwD4$solidjs.createRenderEffect)(()=>{
73
102
  let signal_changed = false;
74
- let { state: state } = history; // cloning isn't necessary because we're calling replaceState on it anyway
103
+ let { state: state } = globalThis?.history || {
104
+ state: {}
105
+ }; // cloning isn't necessary because we're calling replaceState on it anyway
75
106
  if (state === null || typeof state != "object") state = {};
76
107
  for (const [param, default_value] of entries){
77
108
  const [read_signal] = signals[param] ||= (0, $diwD4$solidjs.createSignal)(state[param] ?? default_value);
@@ -344,13 +375,14 @@ function $d659702496cb72ea$export$a71e92cfbb498adc(props) {
344
375
 
345
376
  function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
346
377
  const catchified_handler = (0, $diwD4$depictaiutilishared.catchify)(handler);
378
+ const owner = (0, $diwD4$solidjs.getOwner)();
347
379
  // Some customers (e.g. equestrian) have `height: 100%` and/or `overflow-x: hidden` on the body, which means that scroll events won't get dispatched on `window`. The pages who get it on <body> won't get it on `window` and vice-versa, so there shouldn't be a worry about duplicate calling of the handler.
348
380
  // Use observer in case that this gets called before body exists
349
381
  const disconnect = (0, $diwD4$depictaiutilishared.observer).onexists("body", ({ element: element })=>{
350
382
  element.addEventListener("scroll", catchified_handler, {
351
383
  passive: passive
352
384
  });
353
- (0, $diwD4$solidjs.onCleanup)(()=>element.removeEventListener("scroll", catchified_handler));
385
+ (0, $diwD4$solidjs.runWithOwner)(owner, ()=>(0, $diwD4$solidjs.onCleanup)(()=>element.removeEventListener("scroll", catchified_handler)));
354
386
  });
355
387
  (0, $diwD4$solidjs.onCleanup)(disconnect);
356
388
  for (const event of [
@@ -366,6 +398,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
366
398
  }
367
399
 
368
400
 
401
+
369
402
  const $401aee5f33dca9e2$var$_tmpl$ = [
370
403
  "<div",
371
404
  ' class="scroll-status" style="display:none"><span class="text"><b>',
@@ -375,6 +408,7 @@ const $401aee5f33dca9e2$var$_tmpl$ = [
375
408
  "</b></span></div>"
376
409
  ];
377
410
  function $401aee5f33dca9e2$export$83fd5de5504a7a67({ formatted_number_of_results_: formatted_number_of_results_ , first_result_in_viewport_: [get_first_result_in_viewport] , last_result_in_viewport_: [get_last_result_in_viewport] , number_of_results_: number_of_results_ , i18n_: { price_formatting_: price_formatting_ , of_: of_ } }) {
411
+ if (0, $diwD4$solidjsweb.isServer) return; // won't show in initial render and need scroll position
378
412
  const [first_to_show, set_first_to_show] = (0, $diwD4$solidjs.createSignal)(0);
379
413
  const [last_to_show, set_last_to_show] = (0, $diwD4$solidjs.createSignal)(0);
380
414
  const [count_to_show, set_count_to_show] = (0, $diwD4$solidjs.createSignal)("");
@@ -507,6 +541,7 @@ const $0d0b172488865048$var$_tmpl$ = [
507
541
  "<!--/--></div>"
508
542
  ];
509
543
  function $0d0b172488865048$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
544
+ const root = (0, $diwD4$solidjs.getOwner)();
510
545
  return [
511
546
  (0, $diwD4$solidjsweb.ssr)($0d0b172488865048$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(i18n_.no_results_text_()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
512
547
  get when () {
@@ -520,8 +555,10 @@ function $0d0b172488865048$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hie
520
555
  }
521
556
 
522
557
 
558
+
523
559
  function $fc23d7668ae0011d$export$a2cc176055f8f08() {
524
- return document.createComment("Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.");
560
+ const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
561
+ return (0, $diwD4$solidjsweb.isServer) ? `<!-- ${text} -->` : document.createComment(text);
525
562
  }
526
563
 
527
564
 
@@ -592,11 +629,20 @@ function $5f7d55c710fd1bc2$var$unwrapping_helper(elements) {
592
629
  }
593
630
 
594
631
 
632
+
595
633
  let $0caf87eaa19079da$var$cached_placeholder_element;
596
634
  let $0caf87eaa19079da$var$rendering_cached_placeholder_element;
597
635
  function $0caf87eaa19079da$export$f33414a4df0afd3f({ product_card_template_: product_card_template_ , num_placeholders_: num_placeholders_ }) {
598
636
  const [get_elements, set_elements] = (0, $diwD4$solidjs.createSignal)([]);
599
637
  let existing_num = 0;
638
+ if (0, $diwD4$solidjsweb.isServer) // want to render simple placeholders on server, effects don't run there
639
+ return (0, $diwD4$solidjs.createMemo)(()=>Array.from({
640
+ length: num_placeholders_()
641
+ }).map(()=>{
642
+ const template_result = product_card_template_(null, undefined);
643
+ // @ts-ignore
644
+ if (typeof template_result?.then !== "function") return template_result;
645
+ }));
600
646
  (0, $diwD4$solidjs.createRenderEffect)(()=>{
601
647
  const to_add = num_placeholders_() - existing_num;
602
648
  if (to_add <= 0) return;
@@ -789,22 +835,17 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({ displays_by_key_: displays_
789
835
  ];
790
836
  },
791
837
  children: (product_id, index)=>{
792
- // We're using `untrack` here since we don't want to react in here to displays_by_key changing
793
- // As long as our key stays the same we assume that the display hasn't changed, so we don't want to rerender
794
- // If the key gets removed, <For> will remove us
795
838
  const owner = (0, $diwD4$solidjs.getOwner)();
796
839
  const display_accessor = (0, $diwD4$solidjs.createMemo)(()=>displays_by_key_().get(product_id));
797
- const [product_card_resource] = (0, $diwD4$solidjs.createResource)((0, $diwD4$solidjs.createMemo)(()=>[
798
- merchant_(),
799
- market_()
800
- ]), // re-render when merchant or market changes
801
- ([merchant, market])=>{
840
+ const [product_card_resource] = (0, $diwD4$solidjs.createResource)(display_accessor, // re-render when the reference to the display object changes
841
+ // this should only be the case when the merchant or market changes and the new request has completed
842
+ (display)=>{
802
843
  // get display in the function that re-runs when merchant or market have changed, since the display may have changed but product_id not
803
- const display = (0, $diwD4$solidjs.untrack)(display_accessor);
804
844
  return product_card_template_(display, {
805
845
  set_on_index_change: (fn)=>(0, $diwD4$solidjs.runWithOwner)(owner, ()=>(0, $diwD4$solidjs.createEffect)(()=>fn(index()))),
806
- merchant: merchant,
807
- market: market
846
+ merchant: (0, $diwD4$solidjs.untrack)(merchant_),
847
+ // this means that the merchant and market provided to the template is wrong while we do another fetch, but I don't see how anyone would need to know the correct market there
848
+ market: (0, $diwD4$solidjs.untrack)(market_)
808
849
  });
809
850
  });
810
851
  const node_accessor = (0, $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52)(product_card_resource);
@@ -960,7 +1001,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
960
1001
  const random_id = (0, $diwD4$depictaiutilishared.make_random_classname)();
961
1002
  const selector_beginning_ = `.depict.plp #${random_id}>`;
962
1003
  const [get_styling, set_styling_] = (0, $diwD4$solidjs.createSignal)("");
963
- const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $diwD4$solidjs.createSignal)(false);
1004
+ const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $diwD4$solidjs.createSignal)(true);
964
1005
  const rendered_placeholders = (0, $diwD4$solidjs.createMemo)(()=>get_should_have_placeholders_rendered() ? (0, $0caf87eaa19079da$export$f33414a4df0afd3f)({
965
1006
  product_card_template_: product_card_template_,
966
1007
  num_placeholders_: (0, $diwD4$solidjs.createMemo)(()=>{
@@ -1198,19 +1239,21 @@ function $a69e505a12a77874$export$e13dddbb31c3a42f() {
1198
1239
 
1199
1240
 
1200
1241
 
1242
+
1243
+
1201
1244
  const $a0e53f99354809d9$var$_tmpl$ = [
1202
1245
  "<div",
1203
1246
  ">",
1204
1247
  "</div>"
1205
1248
  ];
1206
- function $a0e53f99354809d9$export$6649caad96ef8870({ children: children , button_: button_ , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
1249
+ function $a0e53f99354809d9$export$6649caad96ef8870({ children: children , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
1207
1250
  const slider = new (0, $diwD4$depictaiutilishared.Amazing_Slider)({
1208
1251
  button_contents: {
1209
1252
  left: [
1210
- (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(button_.cloneNode(true)))
1253
+ (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $0f313083912e447a$export$8be2714ec7f169ee), {})))
1211
1254
  ],
1212
1255
  right: [
1213
- (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(button_.cloneNode(true)))
1256
+ (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $0f313083912e447a$export$8be2714ec7f169ee), {})))
1214
1257
  ]
1215
1258
  },
1216
1259
  constructor_plugins: [
@@ -1231,6 +1274,7 @@ function $a0e53f99354809d9$export$6649caad96ef8870({ children: children , button
1231
1274
  }
1232
1275
 
1233
1276
 
1277
+
1234
1278
  const $235a2771a44e28e9$var$_tmpl$ = [
1235
1279
  "<button",
1236
1280
  ' class="clear-all-filters minor">',
@@ -1256,7 +1300,7 @@ const $235a2771a44e28e9$var$_tmpl$ = [
1256
1300
  "<!--/--><span>",
1257
1301
  "</span></button>"
1258
1302
  ];
1259
- function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: [read_local_filter_cache] , search_filters_open_: [read_search_filters_open] , search_sorting_open_: [read_search_sorting_open] , slider_arrow_button_: slider_arrow_button_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
1303
+ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: [read_local_filter_cache] , search_filters_open_: [read_search_filters_open] , search_sorting_open_: [read_search_sorting_open] , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
1260
1304
  const { price_formatting_: price_formatting_ } = i18n_;
1261
1305
  const [read_selected_filters, write_selected_filters] = selected_filters_;
1262
1306
  const { collapse: collapse , expand: expand , ExpandingContainer: ExpandingContainer } = (0, $4b455f60dadde8b8$export$5bad61ecde080b1f)({
@@ -1271,7 +1315,6 @@ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected
1271
1315
  },
1272
1316
  get children () {
1273
1317
  return (0, $diwD4$solidjsweb.ssr)($235a2771a44e28e9$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(i18n_.selected_filters_title_()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $a0e53f99354809d9$export$6649caad96ef8870), {
1274
- button_: slider_arrow_button_,
1275
1318
  slider_ref_: (slider)=>slider.container.classList.add("filter-crumbs"),
1276
1319
  get children () {
1277
1320
  return [
@@ -1346,7 +1389,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected
1346
1389
  return (()=>{
1347
1390
  number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
1348
1391
  (0, $diwD4$solidjs.onCleanup)(()=>number_of_rendered_selected_filters_items_[1]((prev)=>prev - 1));
1349
- return (0, $diwD4$solidjsweb.ssr)($235a2771a44e28e9$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.CrossIcon), {})), (0, $diwD4$solidjsweb.escape)(price_formatting_().pre_), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
1392
+ return (0, $diwD4$solidjsweb.ssr)($235a2771a44e28e9$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})), (0, $diwD4$solidjsweb.escape)(price_formatting_().pre_), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
1350
1393
  get price_ () {
1351
1394
  return filter().data[0];
1352
1395
  },
@@ -1409,7 +1452,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected
1409
1452
  return (()=>{
1410
1453
  number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
1411
1454
  (0, $diwD4$solidjs.onCleanup)(()=>number_of_rendered_selected_filters_items_[1]((prev)=>prev - 1));
1412
- return (0, $diwD4$solidjsweb.ssr)($235a2771a44e28e9$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.CrossIcon), {})), (0, $diwD4$solidjsweb.escape)(name()));
1455
+ return (0, $diwD4$solidjsweb.ssr)($235a2771a44e28e9$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})), (0, $diwD4$solidjsweb.escape)(name()));
1413
1456
  })();
1414
1457
  }
1415
1458
  });
@@ -1519,7 +1562,6 @@ async function $9abb0a35d4b60ed3$export$79b1565500412d9b(search_modal, modal_fn_
1519
1562
 
1520
1563
 
1521
1564
 
1522
-
1523
1565
 
1524
1566
  const $b3cf6ca8dc0e9998$var$_tmpl$ = [
1525
1567
  "<span",
@@ -1560,6 +1602,18 @@ const $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d = (props)=>{
1560
1602
 
1561
1603
 
1562
1604
 
1605
+
1606
+ const $cc43b6428000c4bf$var$_tmpl$ = '<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>';
1607
+ function $cc43b6428000c4bf$export$f21ab0717a89c77f(props) {
1608
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
1609
+ ...props,
1610
+ "xmlns": "http://www.w3.org/2000/svg",
1611
+ "width": "11",
1612
+ "height": "12"
1613
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($cc43b6428000c4bf$var$_tmpl$), true);
1614
+ }
1615
+
1616
+
1563
1617
  const $0fe1e7efdf4200d6$var$_tmpl$ = [
1564
1618
  "<button",
1565
1619
  ' type="button" class="',
@@ -1568,7 +1622,7 @@ const $0fe1e7efdf4200d6$var$_tmpl$ = [
1568
1622
  "</span></button>"
1569
1623
  ];
1570
1624
  function $0fe1e7efdf4200d6$export$ca21a16d65b3dd8({ show_extras_: [get_show_extras, set_show_extras] , i18n_: i18n_ }) {
1571
- return (0, $diwD4$solidjsweb.ssr)($0fe1e7efdf4200d6$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.PlusIcon), {})), get_show_extras() ? (0, $diwD4$solidjsweb.escape)(i18n_.view_less_()) : (0, $diwD4$solidjsweb.escape)(i18n_.view_more_()));
1625
+ return (0, $diwD4$solidjsweb.ssr)($0fe1e7efdf4200d6$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $cc43b6428000c4bf$export$f21ab0717a89c77f), {})), get_show_extras() ? (0, $diwD4$solidjsweb.escape)(i18n_.view_less_()) : (0, $diwD4$solidjsweb.escape)(i18n_.view_more_()));
1572
1626
  }
1573
1627
 
1574
1628
 
@@ -2575,6 +2629,18 @@ var $a636ca15e3d3570d$export$2e2bcd8739ae039 = {
2575
2629
 
2576
2630
 
2577
2631
 
2632
+
2633
+ const $0f4656eaf6c22d1d$var$_tmpl$ = '<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>';
2634
+ function $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4(props = {}) {
2635
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
2636
+ "xmlns": "http://www.w3.org/2000/svg",
2637
+ "width": "16.8",
2638
+ "height": "14",
2639
+ ...props
2640
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($0f4656eaf6c22d1d$var$_tmpl$), true);
2641
+ }
2642
+
2643
+
2578
2644
  const $b064919833b3e80b$var$_tmpl$ = [
2579
2645
  "<span",
2580
2646
  ' class="show-selected" aria-hidden="true"><span>',
@@ -2636,7 +2702,7 @@ function $b064919833b3e80b$export$53c59af873b303c9({ selected_filters_in_group_:
2636
2702
  return show_tick_icon();
2637
2703
  },
2638
2704
  get children () {
2639
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.TickIcon), {});
2705
+ return (0, $diwD4$solidjsweb.createComponent)((0, $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4), {});
2640
2706
  }
2641
2707
  })));
2642
2708
  }
@@ -2733,6 +2799,7 @@ function $061ff5b4c3d36171$export$89c6019e4baa40b1(props) {
2733
2799
  }
2734
2800
 
2735
2801
 
2802
+
2736
2803
  const $aff9a96d30ed3563$var$_tmpl$ = [
2737
2804
  "<div",
2738
2805
  ' class="filter-collapsible">',
@@ -2900,7 +2967,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
2900
2967
  return a_filter_is_selected();
2901
2968
  },
2902
2969
  get children () {
2903
- return (0, $diwD4$solidjsweb.ssr)($aff9a96d30ed3563$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.CrossIcon), {})), (0, $diwD4$solidjsweb.escape)(props.i18n_.clear_individual_filter_()));
2970
+ return (0, $diwD4$solidjsweb.ssr)($aff9a96d30ed3563$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})), (0, $diwD4$solidjsweb.escape)(props.i18n_.clear_individual_filter_()));
2904
2971
  }
2905
2972
  })));
2906
2973
  }
@@ -3095,6 +3162,49 @@ function $ca1176b694a6ee2e$export$fe334901e8bebd57() {
3095
3162
 
3096
3163
 
3097
3164
 
3165
+
3166
+
3167
+
3168
+ const $f958b5ac0e4a78da$var$_tmpl$ = '<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>', $f958b5ac0e4a78da$var$_tmpl$2 = '<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>';
3169
+ function $f958b5ac0e4a78da$export$da32f7add8a22e86(props = {}) {
3170
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
3171
+ "xmlns": "http://www.w3.org/2000/svg",
3172
+ "width": "14",
3173
+ "height": "14",
3174
+ "class": "sort-icon",
3175
+ ...props
3176
+ }), ()=>[
3177
+ (0, $diwD4$solidjsweb.ssr)($f958b5ac0e4a78da$var$_tmpl$),
3178
+ (0, $diwD4$solidjsweb.ssr)($f958b5ac0e4a78da$var$_tmpl$2)
3179
+ ], true);
3180
+ }
3181
+
3182
+
3183
+
3184
+
3185
+ const $046db47e0326c715$var$_tmpl$ = '<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>';
3186
+ function $046db47e0326c715$export$d10e63059ddb9fd4(props = {}) {
3187
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
3188
+ "xmlns": "http://www.w3.org/2000/svg",
3189
+ "width": "14",
3190
+ "height": "14",
3191
+ "class": "sort-icon",
3192
+ ...props
3193
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($046db47e0326c715$var$_tmpl$), true);
3194
+ }
3195
+
3196
+
3197
+
3198
+
3199
+ const $02215fefc955d01e$var$_tmpl$ = [
3200
+ "<svg",
3201
+ ' 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>'
3202
+ ];
3203
+ function $02215fefc955d01e$export$28f6150e232898de() {
3204
+ return (0, $diwD4$solidjsweb.ssr)($02215fefc955d01e$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3205
+ }
3206
+
3207
+
3098
3208
  const $1872ceb56ede7a52$var$_tmpl$ = [
3099
3209
  "<button",
3100
3210
  ' class="clear minor">',
@@ -3178,7 +3288,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({ args_for_sorting_: args_for
3178
3288
  });
3179
3289
  (0, $diwD4$solidjs.onCleanup)(resolve_cleanup_promise);
3180
3290
  return [
3181
- (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.close_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.CrossIcon), {})), (0, $diwD4$solidjsweb.ssrStyle)(modal_scrolling_prevented[0]() ? "overflow:hidden" : ""), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $a69e505a12a77874$export$6c6d7a51fa9aa15d), {
3291
+ (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.close_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})), (0, $diwD4$solidjsweb.ssrStyle)(modal_scrolling_prevented[0]() ? "overflow:hidden" : ""), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $a69e505a12a77874$export$6c6d7a51fa9aa15d), {
3182
3292
  is_open_: [
3183
3293
  sorting_expanded,
3184
3294
  set_sorting_expanded
@@ -3187,7 +3297,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({ args_for_sorting_: args_for
3187
3297
  return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3188
3298
  },
3189
3299
  get summary_ () {
3190
- return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), args_for_sorting_.current_sorting_[0]()?.order === "asc" ? (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SortIconAsc), {})) : (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SortIconDesc), {})), (0, $diwD4$solidjsweb.escape)(i18n_.sorting_text_()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $7567511a7c3e4bd7$export$e5c2828934226505), {
3300
+ return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), args_for_sorting_.current_sorting_[0]()?.order === "asc" ? (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $f958b5ac0e4a78da$export$da32f7add8a22e86), {})) : (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $046db47e0326c715$export$d10e63059ddb9fd4), {})), (0, $diwD4$solidjsweb.escape)(i18n_.sorting_text_()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $7567511a7c3e4bd7$export$e5c2828934226505), {
3191
3301
  expanded_: sorting_expanded,
3192
3302
  i18n_: i18n_
3193
3303
  })));
@@ -3204,7 +3314,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({ args_for_sorting_: args_for
3204
3314
  return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$6, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3205
3315
  },
3206
3316
  get summary_ () {
3207
- return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.FilterIcon), {})), (0, $diwD4$solidjsweb.escape)(i18n_.filters_()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $7567511a7c3e4bd7$export$e5c2828934226505), {
3317
+ return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $02215fefc955d01e$export$28f6150e232898de), {})), (0, $diwD4$solidjsweb.escape)(i18n_.filters_()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $7567511a7c3e4bd7$export$e5c2828934226505), {
3208
3318
  expanded_: filters_expanded,
3209
3319
  i18n_: i18n_
3210
3320
  })));
@@ -3376,6 +3486,21 @@ function $70482f04605572e2$export$b288c38ae3fddb56({ available_filters_: availab
3376
3486
  }
3377
3487
 
3378
3488
 
3489
+
3490
+
3491
+ const $f49857214f7675b1$var$_tmpl$ = [
3492
+ "<svg",
3493
+ ' 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>'
3494
+ ];
3495
+ function $f49857214f7675b1$export$cb808a3c41736d8e() {
3496
+ return (0, $diwD4$solidjsweb.ssr)($f49857214f7675b1$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3497
+ }
3498
+
3499
+
3500
+
3501
+
3502
+
3503
+
3379
3504
  const $f8f64d05c525825b$var$_tmpl$ = [
3380
3505
  "<div",
3381
3506
  ' class="filters"><div class="body">',
@@ -3415,112 +3540,114 @@ const $f8f64d05c525825b$var$_tmpl$ = [
3415
3540
  "<!--/--></button>"
3416
3541
  ];
3417
3542
  function $f8f64d05c525825b$export$d7841e452f2e59a8({ current_sorting_: current_sorting_ , set_extra_els_in_results_container_: set_extra_els_in_results_container_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , set_sort_or_filter_open_: set_sort_or_filter_open_ , i18n_: i18n_ , available_sortings_: available_sortings_ , available_filters_: available_filters_ , expanded_filters_: expanded_filters_ , middle_elements_: middle_elements_ , input_modal_open_: input_modal_open_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , set_sort_and_filter_element_: set_sort_and_filter_element_ , formatted_number_of_results_: formatted_number_of_results_ , filter_button_width_: filter_button_width_ , sort_button_width_: sort_button_width_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , get_extra_filters_button_: get_extra_filters_button_ , get_extra_sorting_button_: get_extra_sorting_button_ }) {
3418
- // @ts-ignore
3419
- return (0, $edafe91daf3091d7$export$b69d0d92862de18b)({
3420
- severity_: "error",
3421
- message_: "Sorting and filters failed",
3422
- get children () {
3423
- // This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
3424
- (0, $70482f04605572e2$export$b288c38ae3fddb56)({
3425
- available_filters_: available_filters_,
3426
- selected_filters_: selected_filters_,
3427
- local_filter_cache_: local_filter_cache_
3428
- });
3429
- const cleanup_promise = new Promise((r)=>(0, $diwD4$solidjs.onCleanup)(r));
3430
- const [filters_open, set_filters_open] = search_filters_open_;
3431
- const [sorting_open, set_sorting_open] = search_sorting_open_;
3432
- const [get_current_sorting_] = current_sorting_;
3433
- const [is_small, set_is_small] = (0, $diwD4$solidjs.createSignal)(false);
3434
- const dismiss_modal_ = (0, $diwD4$depictaiutilishared.catchify)(()=>{
3435
- set_filters_open(false);
3436
- set_sorting_open(false);
3543
+ const Self = ()=>{
3544
+ // This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
3545
+ (0, $70482f04605572e2$export$b288c38ae3fddb56)({
3546
+ available_filters_: available_filters_,
3547
+ selected_filters_: selected_filters_,
3548
+ local_filter_cache_: local_filter_cache_
3549
+ });
3550
+ const cleanup_promise = new Promise((r)=>(0, $diwD4$solidjs.onCleanup)(r));
3551
+ const [filters_open, set_filters_open] = search_filters_open_;
3552
+ const [sorting_open, set_sorting_open] = search_sorting_open_;
3553
+ const [get_current_sorting_] = current_sorting_;
3554
+ const [is_small, set_is_small] = (0, $diwD4$solidjs.createSignal)(false);
3555
+ const dismiss_modal_ = (0, $diwD4$depictaiutilishared.catchify)(()=>{
3556
+ set_filters_open(false);
3557
+ set_sorting_open(false);
3558
+ });
3559
+ const meta_of_currently_selected_sorting_ = (0, $diwD4$solidjs.createMemo)(()=>available_sortings_()?.find?.((sorting)=>sorting.field === get_current_sorting_()?.field)?.meta);
3560
+ const filter_options = {
3561
+ expanded_hierarchical_filters_: expanded_hierarchical_filters_,
3562
+ local_filter_cache_: local_filter_cache_,
3563
+ available_filters_: available_filters_,
3564
+ expanded_filters_: expanded_filters_,
3565
+ selected_filters_: selected_filters_,
3566
+ i18n_: i18n_
3567
+ };
3568
+ const sorting_options = {
3569
+ current_sorting_: current_sorting_,
3570
+ available_sortings_: available_sortings_,
3571
+ meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3572
+ };
3573
+ const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $diwD4$solidjsweb.createComponent)($f8f64d05c525825b$var$OpenFiltersButton, {
3574
+ tabindex_: is_tabbable ? 0 : -1,
3575
+ i18n_: i18n_,
3576
+ search_filters_open_: search_filters_open_,
3577
+ search_sorting_open_: search_sorting_open_,
3578
+ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
3579
+ filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
3437
3580
  });
3438
- const meta_of_currently_selected_sorting_ = (0, $diwD4$solidjs.createMemo)(()=>available_sortings_()?.find?.((sorting)=>sorting.field === get_current_sorting_()?.field)?.meta);
3439
- const filter_options = {
3440
- expanded_hierarchical_filters_: expanded_hierarchical_filters_,
3441
- local_filter_cache_: local_filter_cache_,
3442
- available_filters_: available_filters_,
3443
- expanded_filters_: expanded_filters_,
3444
- selected_filters_: selected_filters_,
3445
- i18n_: i18n_
3446
- };
3447
- const sorting_options = {
3448
- current_sorting_: current_sorting_,
3581
+ const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $diwD4$solidjsweb.createComponent)($f8f64d05c525825b$var$OpenSortingButton, {
3582
+ tabindex_: is_tabbable ? 0 : -1,
3583
+ i18n_: i18n_,
3584
+ get_current_sorting_: get_current_sorting_,
3585
+ search_filters_open_: search_filters_open_,
3586
+ search_sorting_open_: search_sorting_open_,
3449
3587
  available_sortings_: available_sortings_,
3588
+ sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
3450
3589
  meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3451
- };
3452
- const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $diwD4$solidjsweb.createComponent)($f8f64d05c525825b$var$OpenFiltersButton, {
3453
- tabindex_: is_tabbable ? 0 : -1,
3454
- i18n_: i18n_,
3455
- search_filters_open_: search_filters_open_,
3456
- search_sorting_open_: search_sorting_open_,
3457
- number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
3458
- filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
3459
- });
3460
- const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $diwD4$solidjsweb.createComponent)($f8f64d05c525825b$var$OpenSortingButton, {
3461
- tabindex_: is_tabbable ? 0 : -1,
3462
- i18n_: i18n_,
3463
- get_current_sorting_: get_current_sorting_,
3464
- search_filters_open_: search_filters_open_,
3465
- search_sorting_open_: search_sorting_open_,
3466
- available_sortings_: available_sortings_,
3467
- sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
3468
- meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3469
- });
3470
- let open_modal_;
3471
- let close_modal_;
3472
- let grid_is_in_original_state = true;
3473
- (0, $diwD4$solidjs.createComputed)(()=>{
3474
- const fi_o = filters_open();
3475
- const so_o = sorting_open();
3476
- const i_s = is_small();
3477
- // we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
3478
- if ((fi_o || so_o) && !i_s) {
3479
- if (!grid_is_in_original_state) return;
3480
- set_sort_or_filter_open_(true);
3481
- grid_is_in_original_state = false;
3482
- } else if (!grid_is_in_original_state) {
3483
- set_sort_or_filter_open_(false);
3484
- grid_is_in_original_state = true;
3485
- }
3486
3590
  });
3487
- (0, $diwD4$solidjs.createEffect)(()=>{
3488
- if (!filters_open() && !sorting_open()) {
3489
- close_modal_?.();
3490
- set_extra_els_in_results_container_("");
3491
- } else if (is_small()) {
3492
- if ((0, $diwD4$solidjs.untrack)(()=>input_modal_open_?.())) {
3493
- // we don't want to shove another modal into the users face, silently close the filters for them
3494
- set_filters_open(false);
3495
- set_sorting_open(false);
3496
- return;
3497
- }
3498
- open_modal_?.();
3499
- set_extra_els_in_results_container_("");
3500
- } else {
3501
- close_modal_?.();
3502
- if (filters_open()) set_extra_els_in_results_container_((0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $aff9a96d30ed3563$export$3f1a388cc0d8fed7), filter_options))));
3503
- else set_extra_els_in_results_container_((0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $be89be42ce9ea60f$export$1f1775a58da589b5), sorting_options))));
3591
+ let open_modal_;
3592
+ let close_modal_;
3593
+ let grid_is_in_original_state = true;
3594
+ (0, $diwD4$solidjs.createComputed)(()=>{
3595
+ const fi_o = filters_open();
3596
+ const so_o = sorting_open();
3597
+ const i_s = is_small();
3598
+ // we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
3599
+ if ((fi_o || so_o) && !i_s) {
3600
+ if (!grid_is_in_original_state) return;
3601
+ set_sort_or_filter_open_(true);
3602
+ grid_is_in_original_state = false;
3603
+ } else if (!grid_is_in_original_state) {
3604
+ set_sort_or_filter_open_(false);
3605
+ grid_is_in_original_state = true;
3606
+ }
3607
+ });
3608
+ (0, $diwD4$solidjs.createEffect)(()=>{
3609
+ if (!filters_open() && !sorting_open()) {
3610
+ close_modal_?.();
3611
+ set_extra_els_in_results_container_("");
3612
+ } else if (is_small()) {
3613
+ if ((0, $diwD4$solidjs.untrack)(()=>input_modal_open_?.())) {
3614
+ // we don't want to shove another modal into the users face, silently close the filters for them
3615
+ set_filters_open(false);
3616
+ set_sorting_open(false);
3617
+ return;
3504
3618
  }
3505
- });
3506
- (0, $diwD4$depictaiutilishared.catchify)(async ()=>{
3507
- ({ open_modal_: open_modal_ , close_modal_: close_modal_ } = await (0, $9abb0a35d4b60ed3$export$79b1565500412d9b)((0, $1872ceb56ede7a52$export$9bf11afa910f536e), {
3508
- args_for_sorting_: sorting_options,
3509
- args_for_filtering_: filter_options,
3510
- search_filters_open_: search_filters_open_,
3511
- search_sorting_open_: search_sorting_open_,
3512
- formatted_number_of_results_: formatted_number_of_results_,
3513
- dismiss_modal_: dismiss_modal_,
3514
- i18n_: i18n_
3515
- }));
3516
- const { remove: remove } = (0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches));
3517
- cleanup_promise.then(remove);
3518
- })();
3519
- get_extra_filters_button_?.(make_open_filters_button());
3520
- get_extra_sorting_button_?.(make_open_sorting_button());
3521
- return (0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(make_open_filters_button(true, true)), (0, $diwD4$solidjsweb.escape)(middle_elements_?.()), (0, $diwD4$solidjsweb.escape)(make_open_sorting_button(true, true)));
3619
+ open_modal_?.();
3620
+ set_extra_els_in_results_container_("");
3621
+ } else {
3622
+ close_modal_?.();
3623
+ if (filters_open()) set_extra_els_in_results_container_((0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $aff9a96d30ed3563$export$3f1a388cc0d8fed7), filter_options))));
3624
+ else set_extra_els_in_results_container_((0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $be89be42ce9ea60f$export$1f1775a58da589b5), sorting_options))));
3625
+ }
3626
+ });
3627
+ (0, $diwD4$depictaiutilishared.catchify)(async ()=>{
3628
+ ({ open_modal_: open_modal_ , close_modal_: close_modal_ } = await (0, $9abb0a35d4b60ed3$export$79b1565500412d9b)((0, $1872ceb56ede7a52$export$9bf11afa910f536e), {
3629
+ args_for_sorting_: sorting_options,
3630
+ args_for_filtering_: filter_options,
3631
+ search_filters_open_: search_filters_open_,
3632
+ search_sorting_open_: search_sorting_open_,
3633
+ formatted_number_of_results_: formatted_number_of_results_,
3634
+ dismiss_modal_: dismiss_modal_,
3635
+ i18n_: i18n_
3636
+ }));
3637
+ const { remove: remove } = (0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches));
3638
+ cleanup_promise.then(remove);
3639
+ })();
3640
+ get_extra_filters_button_?.(make_open_filters_button());
3641
+ get_extra_sorting_button_?.(make_open_sorting_button());
3642
+ return (0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(make_open_filters_button(true, true)), (0, $diwD4$solidjsweb.escape)(middle_elements_?.()), (0, $diwD4$solidjsweb.escape)(make_open_sorting_button(true, true)));
3643
+ };
3644
+ return (0, $diwD4$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
3645
+ message_: "Sorting and filters failed",
3646
+ severity_: "error",
3647
+ get children () {
3648
+ return (0, $diwD4$solidjsweb.createComponent)(Self, {});
3522
3649
  }
3523
- })();
3650
+ });
3524
3651
  }
3525
3652
  function $f8f64d05c525825b$var$OpenFiltersButton({ i18n_: i18n_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , filter_button_width_: filter_button_width_ , tabindex_: tabindex_ , number_of_rendered_selected_filters_items_: [num_selected_filters] }) {
3526
3653
  const filters_closed = (0, $diwD4$solidjs.createMemo)(()=>!search_filters_open_[0]());
@@ -3532,17 +3659,17 @@ function $f8f64d05c525825b$var$OpenFiltersButton({ i18n_: i18n_ , search_filters
3532
3659
  get children () {
3533
3660
  return (0, $diwD4$solidjsweb.ssr)($f8f64d05c525825b$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrStyle)(filters_closed() ? `` : `opacity:0`), (0, $diwD4$solidjsweb.escape)(num_selected_filters()));
3534
3661
  }
3535
- })), (0, $diwD4$solidjsweb.ssrAttribute)("tabindex", (0, $diwD4$solidjsweb.escape)(tabindex_, true), false), `${!filters_closed() ? "major" : ""} ${filters_closed() ? "minor" : ""}${"filter toggle-button major-minor-transition"}`, (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)((filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(), true), false), (0, $diwD4$solidjsweb.ssrStyle)(filter_button_width_?.() ? {
3662
+ })), (0, $diwD4$solidjsweb.ssrAttribute)("tabindex", (0, $diwD4$solidjsweb.escape)(tabindex_, true), false), `${!filters_closed() ? "major" : ""} ${filters_closed() ? "minor" : ""}${"filter toggle-button major-minor-transition" + ((0, $diwD4$solidjsweb.isServer) ? " minor" : "")}`, (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)((filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(), true), false), (0, $diwD4$solidjsweb.ssrStyle)(filter_button_width_?.() ? {
3536
3663
  width: filter_button_width_() + "px"
3537
3664
  } : {}), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
3538
3665
  get when () {
3539
3666
  return filters_closed();
3540
3667
  },
3541
3668
  get fallback () {
3542
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.MinusIcon), {});
3669
+ return (0, $diwD4$solidjsweb.createComponent)((0, $f49857214f7675b1$export$cb808a3c41736d8e), {});
3543
3670
  },
3544
3671
  get children () {
3545
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.FilterIcon), {});
3672
+ return (0, $diwD4$solidjsweb.createComponent)((0, $02215fefc955d01e$export$28f6150e232898de), {});
3546
3673
  }
3547
3674
  })), (0, $diwD4$solidjsweb.escape)(i18n_.filter_text_()));
3548
3675
  }
@@ -3559,10 +3686,10 @@ function $f8f64d05c525825b$var$OpenSortingButton({ i18n_: i18n_ , get_current_so
3559
3686
  return sorting_closed();
3560
3687
  },
3561
3688
  get fallback () {
3562
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.MinusIcon), {});
3689
+ return (0, $diwD4$solidjsweb.createComponent)((0, $f49857214f7675b1$export$cb808a3c41736d8e), {});
3563
3690
  },
3564
3691
  get children () {
3565
- return get_current_sorting_()?.order === "asc" ? (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SortIconAsc), {}) : (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SortIconDesc), {});
3692
+ return get_current_sorting_()?.order === "asc" ? (0, $diwD4$solidjsweb.createComponent)((0, $f958b5ac0e4a78da$export$da32f7add8a22e86), {}) : (0, $diwD4$solidjsweb.createComponent)((0, $046db47e0326c715$export$d10e63059ddb9fd4), {});
3566
3693
  }
3567
3694
  })));
3568
3695
  }
@@ -3679,6 +3806,21 @@ function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({ children: children , on_clo
3679
3806
 
3680
3807
 
3681
3808
 
3809
+
3810
+
3811
+
3812
+
3813
+
3814
+ const $084b6a0ee1d481de$var$_tmpl$ = [
3815
+ "<svg",
3816
+ ' 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>'
3817
+ ];
3818
+ function $084b6a0ee1d481de$export$2624c5890f1bbcf7() {
3819
+ return (0, $diwD4$solidjsweb.ssr)($084b6a0ee1d481de$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3820
+ }
3821
+
3822
+
3823
+
3682
3824
  const $2fb324fbcc7b4a7b$var$_tmpl$ = [
3683
3825
  "<div",
3684
3826
  ' class="',
@@ -3691,6 +3833,7 @@ const $2fb324fbcc7b4a7b$var$_tmpl$ = [
3691
3833
  "</div></button></div>"
3692
3834
  ];
3693
3835
  function $2fb324fbcc7b4a7b$export$b23abd26de154ede(props) {
3836
+ if (0, $diwD4$solidjsweb.isServer) return; // won't show in initial render and need scroll position
3694
3837
  const [is_small, set_is_small] = (0, $diwD4$solidjs.createSignal)(true);
3695
3838
  (0, $diwD4$solidjs.onCleanup)((0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
3696
3839
  return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
@@ -3773,7 +3916,7 @@ function $2fb324fbcc7b4a7b$var$ActualFloatingButtons({ search_filters_open_: [ge
3773
3916
  await cleanup_promise;
3774
3917
  is.disconnect();
3775
3918
  }));
3776
- return (0, $diwD4$solidjsweb.ssr)($2fb324fbcc7b4a7b$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `floating-buttons ${is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast() ? "show-them" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.filter_text_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.FilterIcon), {})), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.sorting_text_(), true), false), current_sorting_[0]()?.order === "asc" ? (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SortIconAsc), {})) : (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SortIconDesc), {})), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.scroll_to_top_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.ArrowUp), {})));
3919
+ return (0, $diwD4$solidjsweb.ssr)($2fb324fbcc7b4a7b$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `floating-buttons ${is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast() ? "show-them" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.filter_text_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $02215fefc955d01e$export$28f6150e232898de), {})), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.sorting_text_(), true), false), current_sorting_[0]()?.order === "asc" ? (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $f958b5ac0e4a78da$export$da32f7add8a22e86), {})) : (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $046db47e0326c715$export$d10e63059ddb9fd4), {})), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.scroll_to_top_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $084b6a0ee1d481de$export$2624c5890f1bbcf7), {})));
3777
3920
  }
3778
3921
 
3779
3922
 
@@ -4022,7 +4165,7 @@ const $8cceb1d3a967f369$var$_tmpl$ = [
4022
4165
  ">",
4023
4166
  "</a>"
4024
4167
  ];
4025
- function $8cceb1d3a967f369$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , slider_arrow_button_: slider_arrow_button_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
4168
+ function $8cceb1d3a967f369$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
4026
4169
  let scrolling_logic_ran_for_query_id = false;
4027
4170
  let last_scroll_position;
4028
4171
  let scroll_to_element_on_dom_insertion;
@@ -4078,7 +4221,6 @@ function $8cceb1d3a967f369$export$466cdc317043f6cb({ quicklinks_data_: quicklink
4078
4221
  get children () {
4079
4222
  return (0, $diwD4$solidjsweb.ssr)($8cceb1d3a967f369$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.quicklinks_aria_label_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $a0e53f99354809d9$export$6649caad96ef8870), {
4080
4223
  faded_opacity_: 0.5,
4081
- button_: slider_arrow_button_,
4082
4224
  mutation_plugins_: mutation_plugins,
4083
4225
  slider_ref_: (slider)=>{
4084
4226
  const { insert_here: insert_here , intersecting_items_object: intersecting_items_object } = slider;
@@ -4425,6 +4567,7 @@ function $cc7c480116d2eba0$var$clear_if_opened_new_tab_with_sideways_url_params_
4425
4567
 
4426
4568
 
4427
4569
 
4570
+
4428
4571
  const $840d88a04b2d22a7$var$_tmpl$ = [
4429
4572
  "<div",
4430
4573
  ' class="product-count"><!--#-->',
@@ -4450,7 +4593,7 @@ const $840d88a04b2d22a7$var$_tmpl$ = [
4450
4593
  "<!--/--><!--#-->",
4451
4594
  "<!--/--></div>"
4452
4595
  ];
4453
- function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , slider_arrow_button_: slider_arrow_button_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , router_: router_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
4596
+ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , router_: router_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
4454
4597
  let results_for;
4455
4598
  let only_show_filters_opener_;
4456
4599
  let middle_elements_;
@@ -4597,12 +4740,13 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4597
4740
  (0, $diwD4$solidjs.createRenderEffect)((0, $diwD4$depictaiutilishared.catchify)(async ()=>{
4598
4741
  const slim = is_slim_();
4599
4742
  const only_show_filters_opener = only_show_filters_opener_?.();
4743
+ const owner = (0, $diwD4$solidjs.getOwner)();
4600
4744
  await set_results_filters(); // remove elements, wait one microtask for updates to have been committed to the DOM, otherwise we'd try to do illegal DOM operations
4601
4745
  // signals can't be read reactively anymore after the await FYI
4602
- set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
4603
- results_for,
4604
- filters_opener
4605
- ] : (0, $diwD4$solidjsweb.ssr)($840d88a04b2d22a7$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(results_for), (0, $diwD4$solidjsweb.escape)(filters_opener)));
4746
+ (0, $diwD4$solidjs.runWithOwner)(owner, ()=>set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
4747
+ results_for,
4748
+ filters_opener
4749
+ ] : (0, $diwD4$solidjsweb.ssr)($840d88a04b2d22a7$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(results_for), (0, $diwD4$solidjsweb.escape)(filters_opener))));
4606
4750
  }));
4607
4751
  (0, $6b384adf40a5f4d7$export$e702733a056c40d6)({
4608
4752
  selected_filters_: selected_filters_,
@@ -4621,7 +4765,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4621
4765
  get_breadcrumb_accessor_?.(crumb_data_);
4622
4766
  get_quicklinks_accessor_?.(quicklinks_data_);
4623
4767
  return [
4624
- document.createComment("Category page based on Depict SDK"),
4768
+ (0, $diwD4$solidjsweb.isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"),
4625
4769
  (0, $diwD4$solidjsweb.ssr)($840d88a04b2d22a7$var$_tmpl$4, (0, $diwD4$solidjsweb.ssrHydrationKey)() + (0, $diwD4$solidjsweb.ssrAttribute)("id", (0, $diwD4$solidjsweb.escape)((0, $0b6e2070a98de347$export$44dad306455dddf).PLP_CATEGORY, true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
4626
4770
  when: show_breadcrumbs_,
4627
4771
  get children () {
@@ -4638,7 +4782,6 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4638
4782
  quicklinks_data_: quicklinks_data_,
4639
4783
  current_query_id_: query_id_,
4640
4784
  router_: router_,
4641
- slider_arrow_button_: slider_arrow_button_,
4642
4785
  breadcrumb_data_: crumb_data_,
4643
4786
  i18n_: i18n_
4644
4787
  });
@@ -4656,7 +4799,6 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4656
4799
  i18n_: i18n_,
4657
4800
  selected_filters_: selected_filters_,
4658
4801
  local_filter_cache_: local_filter_cache_,
4659
- slider_arrow_button_: slider_arrow_button_,
4660
4802
  search_filters_open_: category_filters_open_,
4661
4803
  search_sorting_open_: category_sorting_open_,
4662
4804
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -4723,7 +4865,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4723
4865
 
4724
4866
  let $d84fe647b84b5dc5$var$has_ran = false;
4725
4867
  function $d84fe647b84b5dc5$export$5162a71f252e6122() {
4726
- if ($d84fe647b84b5dc5$var$has_ran) return;
4868
+ if ($d84fe647b84b5dc5$var$has_ran || typeof history !== "object") return;
4727
4869
  $d84fe647b84b5dc5$var$has_ran = true;
4728
4870
  for (const function_name of [
4729
4871
  "replaceState",
@@ -4829,8 +4971,7 @@ function $0785f4c9947d9b5f$export$f091cbac892643a4(obj) {
4829
4971
 
4830
4972
  function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
4831
4973
  const component_in_error_boundary = (do_with_elements)=>{
4832
- // @ts-ignore
4833
- return (0, $edafe91daf3091d7$export$b69d0d92862de18b)({
4974
+ const error_boundary_wrapped = (0, $edafe91daf3091d7$export$b69d0d92862de18b)({
4834
4975
  severity_: "error",
4835
4976
  message_: error_message,
4836
4977
  get children () {
@@ -4838,7 +4979,12 @@ function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
4838
4979
  do_with_elements?.(elements);
4839
4980
  return elements;
4840
4981
  }
4841
- })();
4982
+ });
4983
+ // This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
4984
+ if (typeof error_boundary_wrapped === "function") // @ts-ignore
4985
+ return error_boundary_wrapped();
4986
+ // On the server it returns a string, so we just return that
4987
+ return error_boundary_wrapped;
4842
4988
  };
4843
4989
  const owner = (0, $diwD4$solidjs.getOwner)();
4844
4990
  if (owner == null) return (0, $diwD4$solidjs.createRoot)((dispose)=>{
@@ -4868,7 +5014,7 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
4868
5014
  const [get_sorting_, set_sorting] = current_sorting_;
4869
5015
  const [get_selected_filters_, set_selected_filters] = selected_filters_;
4870
5016
  const [get_has_sideways_filter_clearing_flag_, set_has_sideways_filter_clearing_flag] = sideways_filter_clearing_flag_;
4871
- const [get_current_href, set_current_href] = (0, $diwD4$solidjs.createSignal)(location.href);
5017
+ const [get_current_href, set_current_href] = (0, $diwD4$solidjs.createSignal)(globalThis?.location?.href ?? "https://example.com");
4872
5018
  const history_change_handler = (0, $diwD4$depictaiutilishared.catchify)(()=>set_current_href(location.href));
4873
5019
  const owner = (0, $diwD4$solidjs.getOwner)() || (0, $diwD4$solidjs.createRoot)(()=>(0, $diwD4$solidjs.getOwner)());
4874
5020
  let writer_started = false;
@@ -5004,7 +5150,7 @@ class $e96dd13889871fc0$export$7e1297a3a19f10d8 {
5004
5150
  * Call this if you *just* want to replace the state object in history.state
5005
5151
  */ replace_state_: (new_state)=>{
5006
5152
  // This doesn't break any router, so we just do this directly for now, since many don't expose an interface for changing the state
5007
- history.replaceState(new_state, "");
5153
+ globalThis?.history?.replaceState(new_state, "");
5008
5154
  },
5009
5155
  /**
5010
5156
  * Call this to change the URL
@@ -5046,6 +5192,7 @@ class $e96dd13889871fc0$export$7e1297a3a19f10d8 {
5046
5192
  }
5047
5193
 
5048
5194
 
5195
+
5049
5196
  const $48567ac5b39bac56$var$_tmpl$ = [
5050
5197
  "<div",
5051
5198
  ' class="depict plp category">',
@@ -5096,7 +5243,8 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
5096
5243
  constructor({ api: api , on_navigation: on_navigation , ...props_on_class }){
5097
5244
  const owner = (0, $diwD4$solidjs.getOwner)() || (0, $diwD4$solidjs.createRoot)(()=>(0, $diwD4$solidjs.getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
5098
5245
  (0, $diwD4$solidjs.runWithOwner)(owner, ()=>{
5099
- if ($48567ac5b39bac56$export$f34314aa9505732e.#has_been_constructed) throw new Error("You can only have one instance of DepictCategory due to state limitations");
5246
+ if ($48567ac5b39bac56$export$f34314aa9505732e.#has_been_constructed && !(0, $diwD4$solidjsweb.isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
5247
+ throw new Error("You can only have one instance of DepictCategory due to state limitations");
5100
5248
  $48567ac5b39bac56$export$f34314aa9505732e.#has_been_constructed = true;
5101
5249
  Object.assign(this, props_on_class); // set initial signal values
5102
5250
  (0, $d84fe647b84b5dc5$export$5162a71f252e6122)();
@@ -5124,11 +5272,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
5124
5272
  router_: this.#router,
5125
5273
  selected_filters_: selected_filters_,
5126
5274
  current_sorting_: current_sorting_,
5127
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
5128
- slider_arrow_button_: (0, $diwD4$depictaiutilishared.GenericSliderArrowButton)({
5129
- height_: 12,
5130
- width_: 6.46
5131
- })
5275
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
5132
5276
  });
5133
5277
  });
5134
5278
  }
@@ -5142,7 +5286,7 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
5142
5286
  grid_spacing: grid_spacing.horizontal
5143
5287
  };
5144
5288
  return (0, $95837413165cc2df$export$23fca46f3143581f)(()=>{
5145
- const { state_: { category_local_filter_cache: local_filter_cache_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , router_: router_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ , slider_arrow_button_: slider_arrow_button_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ } = shared_properties;
5289
+ const { state_: { category_local_filter_cache: local_filter_cache_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , router_: router_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ } = shared_properties;
5146
5290
  (0, $diwD4$solidjs.onCleanup)(reset_history_state_);
5147
5291
  return (0, $840d88a04b2d22a7$export$f7d2f673fc2f091d)({
5148
5292
  tenant_: ()=>depict_category.merchant,
@@ -5161,7 +5305,6 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
5161
5305
  get_quicklinks_accessor_: (accessor)=>(0, $diwD4$solidjs.createComputed)(()=>quicklinks_signal_[1](accessor())),
5162
5306
  category_filters_open_: category_filters_open_,
5163
5307
  category_sorting_open_: category_sorting_open_,
5164
- slider_arrow_button_: slider_arrow_button_,
5165
5308
  expanded_filters_: expanded_filters_,
5166
5309
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
5167
5310
  selected_filters_: selected_filters_,
@@ -5188,7 +5331,7 @@ function $48567ac5b39bac56$export$5b7c3ce0ebe51f86({ depict_category: depict_cat
5188
5331
  });
5189
5332
  }
5190
5333
  function $48567ac5b39bac56$export$de035477d6fef996({ depict_category: depict_category }) {
5191
- const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ , slider_arrow_button_: slider_arrow_button_ } = $48567ac5b39bac56$var$get_shared_properties(depict_category);
5334
+ const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ } = $48567ac5b39bac56$var$get_shared_properties(depict_category);
5192
5335
  return (0, $diwD4$solidjsweb.createComponent)($48567ac5b39bac56$var$InExternalAreaDiv, {
5193
5336
  get children () {
5194
5337
  return (0, $8cceb1d3a967f369$export$466cdc317043f6cb)({
@@ -5196,7 +5339,6 @@ function $48567ac5b39bac56$export$de035477d6fef996({ depict_category: depict_cat
5196
5339
  quicklinks_data_: quicklinks_data_,
5197
5340
  router_: router_,
5198
5341
  current_query_id_: ()=>depict_category.category_id,
5199
- slider_arrow_button_: slider_arrow_button_,
5200
5342
  breadcrumb_data_: breadcrumb_data_
5201
5343
  });
5202
5344
  }
@@ -5328,9 +5470,9 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
5328
5470
 
5329
5471
  const $7b4bc889571cc67b$var$TEN_MINUTES = 600000;
5330
5472
  const $7b4bc889571cc67b$var$TWENTY_FOUR_HOURS = 86400000;
5331
- async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market) {
5473
+ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market, type) {
5332
5474
  let localstorage_value;
5333
- const localstorage_key = `depict_categories_` + market;
5475
+ const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
5334
5476
  try {
5335
5477
  const in_ls = localStorage[localstorage_key];
5336
5478
  if (in_ls) localstorage_value = JSON.parse(in_ls);
@@ -5346,7 +5488,7 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market) {
5346
5488
  return stored_queries;
5347
5489
  else if (age < $7b4bc889571cc67b$var$TWENTY_FOUR_HOURS) {
5348
5490
  // if younger than a day, return stored value but still trigger re-fetch, so we have fresh data next page load (stale data this one but never a delay)
5349
- $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key).catch((e)=>(0, $diwD4$depictaiutilishared.report)([
5491
+ $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $diwD4$depictaiutilishared.report)([
5350
5492
  e,
5351
5493
  "couldn't fetch categories"
5352
5494
  ], "warning"));
@@ -5354,10 +5496,10 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market) {
5354
5496
  }
5355
5497
  // else: we are older and just fetch, store and return new queries
5356
5498
  }
5357
- return await $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key);
5499
+ return await $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
5358
5500
  }
5359
- async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key) {
5360
- const new_categories = await $7b4bc889571cc67b$var$download_categories(tenant, market);
5501
+ async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
5502
+ const new_categories = await $7b4bc889571cc67b$var$download_categories(tenant, market, type);
5361
5503
  try {
5362
5504
  localStorage[localstorage_key] = JSON.stringify({
5363
5505
  updated: +new Date(),
@@ -5371,12 +5513,15 @@ async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market,
5371
5513
  }
5372
5514
  return new_categories;
5373
5515
  }
5374
- async function $7b4bc889571cc67b$var$download_categories(tenant, market) {
5516
+ async function $7b4bc889571cc67b$var$download_categories(tenant, market, type) {
5375
5517
  const fetched = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.base_url) + "/v2/product-listing/queries", {
5376
5518
  method: "POST",
5377
5519
  body: JSON.stringify({
5378
5520
  tenant: tenant,
5379
- market: market
5521
+ market: market,
5522
+ ...type ? {
5523
+ type: type
5524
+ } : {}
5380
5525
  })
5381
5526
  });
5382
5527
  if (!fetched) return [];
@@ -5485,6 +5630,31 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({ category_suggestion_: categ
5485
5630
 
5486
5631
 
5487
5632
 
5633
+
5634
+
5635
+ const $3df11fc61432d1fd$var$_tmpl$ = [
5636
+ "<svg",
5637
+ ' 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>'
5638
+ ];
5639
+ function $3df11fc61432d1fd$export$1c641004b5485fed() {
5640
+ return (0, $diwD4$solidjsweb.ssr)($3df11fc61432d1fd$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
5641
+ }
5642
+
5643
+
5644
+
5645
+
5646
+
5647
+ const $87d7574e1d89d69b$var$_tmpl$ = '<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>';
5648
+ function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
5649
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
5650
+ ...props,
5651
+ "xmlns": "http://www.w3.org/2000/svg",
5652
+ "width": "20",
5653
+ "height": "22"
5654
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($87d7574e1d89d69b$var$_tmpl$), true);
5655
+ }
5656
+
5657
+
5488
5658
  const $66b8b9a9613c141d$var$_tmpl$ = [
5489
5659
  "<button",
5490
5660
  ' class="back" type="button"',
@@ -5517,9 +5687,9 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({ search_field_value_: search
5517
5687
  return (0, $diwD4$solidjsweb.ssr)($66b8b9a9613c141d$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
5518
5688
  when: on_back_,
5519
5689
  get children () {
5520
- return (0, $diwD4$solidjsweb.ssr)($66b8b9a9613c141d$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.back_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.BackIcon), {})));
5690
+ return (0, $diwD4$solidjsweb.ssr)($66b8b9a9613c141d$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.back_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $3df11fc61432d1fd$export$1c641004b5485fed), {})));
5521
5691
  }
5522
- })), `query ${!!on_back_ ? "has-adjacent-back-button" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.search_field_field_aria_label_(), true), false) + (0, $diwD4$solidjsweb.ssrAttribute)("value", (0, $diwD4$solidjsweb.escape)(search_field_value_[0](), true), false) + (0, $diwD4$solidjsweb.ssrAttribute)("placeholder", (0, $diwD4$solidjsweb.escape)(i18n_.placeholder_text_(), true), false), (0, $diwD4$solidjsweb.ssrAttribute)("title", (0, $diwD4$solidjsweb.escape)(i18n_.clear_filters_query_sorting_after_submit_(), true), false), (0, $diwD4$solidjsweb.ssrStyle)((0, $diwD4$solidjs.createMemo)(()=>search_field_value_[0]() ? "" : "display: none")()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.CrossIcon), {})), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.search_submit_button_aria_label_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SearchIcon), {})));
5692
+ })), `query ${!!on_back_ ? "has-adjacent-back-button" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.search_field_field_aria_label_(), true), false) + (0, $diwD4$solidjsweb.ssrAttribute)("value", (0, $diwD4$solidjsweb.escape)(search_field_value_[0](), true), false) + (0, $diwD4$solidjsweb.ssrAttribute)("placeholder", (0, $diwD4$solidjsweb.escape)(i18n_.placeholder_text_(), true), false), (0, $diwD4$solidjsweb.ssrAttribute)("title", (0, $diwD4$solidjsweb.escape)(i18n_.clear_filters_query_sorting_after_submit_(), true), false), (0, $diwD4$solidjsweb.ssrStyle)((0, $diwD4$solidjs.createMemo)(()=>search_field_value_[0]() ? "" : "display: none")()), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})), (0, $diwD4$solidjsweb.ssrAttribute)("aria-label", (0, $diwD4$solidjsweb.escape)(i18n_.search_submit_button_aria_label_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $87d7574e1d89d69b$export$82eafebb825fc23f), {})));
5523
5693
  }
5524
5694
 
5525
5695
 
@@ -5707,7 +5877,7 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({ selected_filters_: selected
5707
5877
 
5708
5878
 
5709
5879
  function $2b7a005a65221045$export$84bba84a7b837187(read_search_query) {
5710
- const ls = localStorage;
5880
+ const ls = globalThis?.localStorage || {};
5711
5881
  const key = "depict_searches";
5712
5882
  const previous_searches = (0, $diwD4$solidjs.createSignal)(JSON.parse(ls[key] || "[]"));
5713
5883
  const [read_previous_searches, write_previous_searches] = previous_searches;
@@ -5955,7 +6125,6 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({ depict_api_: depict_api_ ,
5955
6125
 
5956
6126
 
5957
6127
 
5958
-
5959
6128
  function $496cde876b53ce1e$export$91c3b6774e8be0f5({ param_: param_ , value_: value_ , url_transformer_: url_transformer_ }) {
5960
6129
  const [get_current_href, set_current_href] = (0, $diwD4$solidjs.createSignal)(location.href);
5961
6130
  const [exit_iterable, exitable_iterable] = (0, $diwD4$depictaiutilishared.make_asyncIterable_exiter)((0, $diwD4$depictaiutilishared.href_change_ipns));
@@ -5974,6 +6143,18 @@ function $496cde876b53ce1e$export$91c3b6774e8be0f5({ param_: param_ , value_: va
5974
6143
 
5975
6144
 
5976
6145
 
6146
+
6147
+
6148
+ const $9e30168c4b1661d2$var$_tmpl$ = [
6149
+ "<svg",
6150
+ ' 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>'
6151
+ ];
6152
+ function $9e30168c4b1661d2$export$5d2caaa6b530761c() {
6153
+ return (0, $diwD4$solidjsweb.ssr)($9e30168c4b1661d2$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
6154
+ }
6155
+
6156
+
6157
+
5977
6158
  const $9a268bf73b31a717$var$_tmpl$ = [
5978
6159
  "<div",
5979
6160
  ' class="previous-searches"><h2 class="text">',
@@ -6018,7 +6199,7 @@ function $9a268bf73b31a717$export$a146ac6fa8346a25({ text_: text_ , previous_sea
6018
6199
  value_: item,
6019
6200
  url_transformer_: url_transformer_
6020
6201
  });
6021
- return (0, $diwD4$solidjsweb.ssr)($9a268bf73b31a717$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `${`item` || ""} ${(0, $diwD4$solidjs.createMemo)(()=>read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)() ? "selected" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("href", (0, $diwD4$solidjsweb.escape)(href(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.PreviousSearchIcon), {})), (0, $diwD4$solidjsweb.escape)(item()), (0, $diwD4$solidjsweb.ssrAttribute)("title", (0, $diwD4$solidjsweb.escape)(i18n_.previous_searches_delete_entry_from_history_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.CrossIcon), {})));
6202
+ return (0, $diwD4$solidjsweb.ssr)($9a268bf73b31a717$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `${`item` || ""} ${(0, $diwD4$solidjs.createMemo)(()=>read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)() ? "selected" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("href", (0, $diwD4$solidjsweb.escape)(href(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $9e30168c4b1661d2$export$5d2caaa6b530761c), {})), (0, $diwD4$solidjsweb.escape)(item()), (0, $diwD4$solidjsweb.ssrAttribute)("title", (0, $diwD4$solidjsweb.escape)(i18n_.previous_searches_delete_entry_from_history_(), true), false), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $c77c68e559a1506c$export$3b621d86b1566b2), {})));
6022
6203
  }
6023
6204
  })));
6024
6205
  }
@@ -6038,7 +6219,6 @@ function $9a268bf73b31a717$export$a146ac6fa8346a25({ text_: text_ , previous_sea
6038
6219
 
6039
6220
 
6040
6221
 
6041
-
6042
6222
  const $d023ed916c84e75d$var$_tmpl$ = [
6043
6223
  "<span",
6044
6224
  ' class="highlighted-part">',
@@ -6098,6 +6278,8 @@ function $d023ed916c84e75d$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
6098
6278
  }
6099
6279
 
6100
6280
 
6281
+
6282
+
6101
6283
  const $6b65ba8af12c5a26$var$_tmpl$ = [
6102
6284
  "<a",
6103
6285
  ' class="',
@@ -6154,10 +6336,10 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
6154
6336
  (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
6155
6337
  when: is_history,
6156
6338
  get fallback () {
6157
- return (0, $diwD4$solidjsweb.ssr)($6b65ba8af12c5a26$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.SearchIcon), {})));
6339
+ return (0, $diwD4$solidjsweb.ssr)($6b65ba8af12c5a26$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $87d7574e1d89d69b$export$82eafebb825fc23f), {})));
6158
6340
  },
6159
6341
  get children () {
6160
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.PreviousSearchIcon), {});
6342
+ return (0, $diwD4$solidjsweb.createComponent)((0, $9e30168c4b1661d2$export$5d2caaa6b530761c), {});
6161
6343
  }
6162
6344
  }),
6163
6345
  (0, $diwD4$solidjsweb.createComponent)((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
@@ -6785,7 +6967,7 @@ const $04048c1bef16c249$var$_tmpl$ = [
6785
6967
  ' class="category-suggestion">',
6786
6968
  "</div>"
6787
6969
  ];
6788
- function $04048c1bef16c249$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children , slider_arrow_button_: slider_arrow_button_ }) {
6970
+ function $04048c1bef16c249$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children }) {
6789
6971
  const category_suggestions_ = (0, $diwD4$solidjs.createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
6790
6972
  return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
6791
6973
  get when () {
@@ -6793,7 +6975,6 @@ function $04048c1bef16c249$export$c05a196222ba1302({ suggestions_: suggestions_
6793
6975
  },
6794
6976
  get children () {
6795
6977
  return (0, $diwD4$solidjsweb.ssr)($04048c1bef16c249$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $a0e53f99354809d9$export$6649caad96ef8870), {
6796
- button_: slider_arrow_button_,
6797
6978
  faded_opacity_: 0.7,
6798
6979
  get children () {
6799
6980
  return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
@@ -6857,6 +7038,7 @@ function $65a0c4b1c2eb5d0b$export$9dd50d35b9d94fdf({ get_search_query_: get_sear
6857
7038
 
6858
7039
 
6859
7040
 
7041
+
6860
7042
  const $f1d7cb69f839a526$var$_tmpl$ = [
6861
7043
  "<div",
6862
7044
  ' class="filter-results-for-one-row"><!--#-->',
@@ -6875,7 +7057,7 @@ const $f1d7cb69f839a526$var$_tmpl$ = [
6875
7057
  "<!--/--></div>"
6876
7058
  ];
6877
7059
  function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
6878
- const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , get_search_query_: get_search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , slider_arrow_button_: slider_arrow_button_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , search_recs_view_more_: search_recs_view_more_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ } = opts;
7060
+ const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , get_search_query_: get_search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , search_recs_view_more_: search_recs_view_more_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ } = opts;
6879
7061
  const [get_sorting] = current_sorting_;
6880
7062
  const all_products_loaded_ = (0, $diwD4$solidjs.createSignal)(false);
6881
7063
  const [get_all_products_loaded, set_all_products_loaded] = all_products_loaded_;
@@ -6995,13 +7177,14 @@ function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
6995
7177
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
6996
7178
  });
6997
7179
  const results_filters = (0, $diwD4$solidjs.createSignal)();
7180
+ const owner = (0, $diwD4$solidjs.getOwner)();
6998
7181
  (0, $diwD4$solidjs.onCleanup)((0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:600px)", async ({ matches: matches })=>{
6999
7182
  results_filters[1]();
7000
7183
  await new Promise((r)=>queueMicrotask(r));
7001
- results_filters[1](matches ? [
7002
- results_for,
7003
- filters_opener
7004
- ] : (0, $diwD4$solidjsweb.ssr)($f1d7cb69f839a526$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(results_for), (0, $diwD4$solidjsweb.escape)(filters_opener)));
7184
+ (0, $diwD4$solidjs.runWithOwner)(owner, ()=>results_filters[1](matches ? [
7185
+ results_for,
7186
+ filters_opener
7187
+ ] : (0, $diwD4$solidjsweb.ssr)($f1d7cb69f839a526$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(results_for), (0, $diwD4$solidjsweb.escape)(filters_opener))));
7005
7188
  }).remove);
7006
7189
  (0, $diwD4$depictaiutilishared.catchify)((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
7007
7190
  scroll_restoration_data_: scroll_restoration_data_,
@@ -7023,14 +7206,13 @@ function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
7023
7206
  (0, $341a019928b8b91e$export$c7e181728ad525f)(location);
7024
7207
  });
7025
7208
  return [
7026
- document.createComment("Search page based on Depict SDK"),
7209
+ (0, $diwD4$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"),
7027
7210
  (0, $diwD4$solidjsweb.ssr)($f1d7cb69f839a526$var$_tmpl$2, (0, $diwD4$solidjsweb.ssrHydrationKey)() + (0, $diwD4$solidjsweb.ssrAttribute)("id", (0, $diwD4$solidjsweb.escape)((0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_PAGE, true), false), (0, $diwD4$solidjsweb.escape)(search_field), make_category_suggestion_card_ ? (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
7028
7211
  severity_: "error",
7029
7212
  message_: "Category suggestions failed",
7030
7213
  get children () {
7031
7214
  return (0, $diwD4$solidjsweb.createComponent)((0, $04048c1bef16c249$export$c05a196222ba1302), {
7032
7215
  suggestions_: suggestions,
7033
- slider_arrow_button_: slider_arrow_button_,
7034
7216
  children: make_category_suggestion_card_
7035
7217
  });
7036
7218
  }
@@ -7048,7 +7230,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
7048
7230
  i18n_: i18n_,
7049
7231
  selected_filters_: selected_filters_,
7050
7232
  local_filter_cache_: local_filter_cache_,
7051
- slider_arrow_button_: slider_arrow_button_,
7052
7233
  search_filters_open_: search_filters_open_,
7053
7234
  search_sorting_open_: search_sorting_open_,
7054
7235
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -7167,6 +7348,7 @@ function $d8e94ea381ab57fa$export$828dcdd425fd3231(aligner) {
7167
7348
 
7168
7349
 
7169
7350
 
7351
+
7170
7352
  const $2c61e4cd8229c49a$var$_tmpl$ = [
7171
7353
  "<div",
7172
7354
  ' class="depict plp search">',
@@ -7188,7 +7370,8 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
7188
7370
  disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
7189
7371
  const owner = (0, $diwD4$solidjs.getOwner)() || (0, $diwD4$solidjs.createRoot)(()=>(0, $diwD4$solidjs.getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
7190
7372
  (0, $diwD4$solidjs.runWithOwner)(owner, ()=>{
7191
- if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#has_been_constructed) throw new Error("You can only have one instance of DepictSearch");
7373
+ if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#has_been_constructed && !(0, $diwD4$solidjsweb.isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
7374
+ throw new Error("You can only have one instance of DepictSearch");
7192
7375
  Object.assign(this, props_on_class);
7193
7376
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
7194
7377
  const { current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , search_query_accessor_: raw_search_query_accessor } = (0, $c79fd10a3ab7d6e0$export$477caf01aecaeb2a)({
@@ -7196,7 +7379,7 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
7196
7379
  router_: this.#router
7197
7380
  });
7198
7381
  const [reset_history_state_, state_] = (0, $26a56f6b44703084$export$9862539c89138352)(()=>({
7199
- search_field_value: new URLSearchParams(location.search).get(search_query_url_param_name_) ?? "",
7382
+ search_field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
7200
7383
  search_filters_open: false,
7201
7384
  search_sorting_open: false,
7202
7385
  search_expanded_filters: [],
@@ -7455,10 +7638,6 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
7455
7638
  cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
7456
7639
  ...grid_spacing_override
7457
7640
  } : undefined,
7458
- slider_arrow_button_: (0, $diwD4$depictaiutilishared.GenericSliderArrowButton)({
7459
- height_: 12,
7460
- width_: 6.46
7461
- }),
7462
7641
  product_card_template_: product_card_template
7463
7642
  });
7464
7643
  }, "Entire SearchPage failed");