@depict-ai/ui 1.0.17 → 1.1.0

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);
@@ -182,10 +213,23 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
182
213
  let resolve_in_progress;
183
214
  cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
184
215
  try {
185
- const search_results = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.add_version_query_params)(endpoint1), {
216
+ let search_results = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.add_version_query_params)(endpoint1), {
186
217
  method: "POST",
187
218
  body: body
188
219
  });
220
+ if ("query_id" in request && request.type === "collection") // FIXME: Remove. Backwards compatibility layer
221
+ // This will retry the request without the collection type if the first request fails
222
+ {
223
+ if (!search_results || search_results?.status === 404) {
224
+ (0, $diwD4$depictaiutilishared.dlog)("Fallback request for collections due to failure");
225
+ const fallback_body = JSON.parse(body);
226
+ delete fallback_body.type;
227
+ search_results = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.add_version_query_params)(endpoint1), {
228
+ method: "POST",
229
+ body: JSON.stringify(fallback_body)
230
+ });
231
+ }
232
+ }
189
233
  if (!search_results || search_results.status !== 200) {
190
234
  const retval = fallback_response(input_req);
191
235
  resolve_in_progress(retval);
@@ -344,13 +388,14 @@ function $d659702496cb72ea$export$a71e92cfbb498adc(props) {
344
388
 
345
389
  function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
346
390
  const catchified_handler = (0, $diwD4$depictaiutilishared.catchify)(handler);
391
+ const owner = (0, $diwD4$solidjs.getOwner)();
347
392
  // 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
393
  // Use observer in case that this gets called before body exists
349
394
  const disconnect = (0, $diwD4$depictaiutilishared.observer).onexists("body", ({ element: element })=>{
350
395
  element.addEventListener("scroll", catchified_handler, {
351
396
  passive: passive
352
397
  });
353
- (0, $diwD4$solidjs.onCleanup)(()=>element.removeEventListener("scroll", catchified_handler));
398
+ (0, $diwD4$solidjs.runWithOwner)(owner, ()=>(0, $diwD4$solidjs.onCleanup)(()=>element.removeEventListener("scroll", catchified_handler)));
354
399
  });
355
400
  (0, $diwD4$solidjs.onCleanup)(disconnect);
356
401
  for (const event of [
@@ -366,6 +411,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
366
411
  }
367
412
 
368
413
 
414
+
369
415
  const $401aee5f33dca9e2$var$_tmpl$ = [
370
416
  "<div",
371
417
  ' class="scroll-status" style="display:none"><span class="text"><b>',
@@ -375,6 +421,7 @@ const $401aee5f33dca9e2$var$_tmpl$ = [
375
421
  "</b></span></div>"
376
422
  ];
377
423
  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_ } }) {
424
+ if (0, $diwD4$solidjsweb.isServer) return; // won't show in initial render and need scroll position
378
425
  const [first_to_show, set_first_to_show] = (0, $diwD4$solidjs.createSignal)(0);
379
426
  const [last_to_show, set_last_to_show] = (0, $diwD4$solidjs.createSignal)(0);
380
427
  const [count_to_show, set_count_to_show] = (0, $diwD4$solidjs.createSignal)("");
@@ -507,6 +554,7 @@ const $0d0b172488865048$var$_tmpl$ = [
507
554
  "<!--/--></div>"
508
555
  ];
509
556
  function $0d0b172488865048$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
557
+ const root = (0, $diwD4$solidjs.getOwner)();
510
558
  return [
511
559
  (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
560
  get when () {
@@ -520,8 +568,10 @@ function $0d0b172488865048$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hie
520
568
  }
521
569
 
522
570
 
571
+
523
572
  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.");
573
+ 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.";
574
+ return (0, $diwD4$solidjsweb.isServer) ? `<!-- ${text} -->` : document.createComment(text);
525
575
  }
526
576
 
527
577
 
@@ -592,11 +642,20 @@ function $5f7d55c710fd1bc2$var$unwrapping_helper(elements) {
592
642
  }
593
643
 
594
644
 
645
+
595
646
  let $0caf87eaa19079da$var$cached_placeholder_element;
596
647
  let $0caf87eaa19079da$var$rendering_cached_placeholder_element;
597
648
  function $0caf87eaa19079da$export$f33414a4df0afd3f({ product_card_template_: product_card_template_ , num_placeholders_: num_placeholders_ }) {
598
649
  const [get_elements, set_elements] = (0, $diwD4$solidjs.createSignal)([]);
599
650
  let existing_num = 0;
651
+ if (0, $diwD4$solidjsweb.isServer) // want to render simple placeholders on server, effects don't run there
652
+ return (0, $diwD4$solidjs.createMemo)(()=>Array.from({
653
+ length: num_placeholders_()
654
+ }).map(()=>{
655
+ const template_result = product_card_template_(null, undefined);
656
+ // @ts-ignore
657
+ if (typeof template_result?.then !== "function") return template_result;
658
+ }));
600
659
  (0, $diwD4$solidjs.createRenderEffect)(()=>{
601
660
  const to_add = num_placeholders_() - existing_num;
602
661
  if (to_add <= 0) return;
@@ -789,22 +848,17 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({ displays_by_key_: displays_
789
848
  ];
790
849
  },
791
850
  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
851
  const owner = (0, $diwD4$solidjs.getOwner)();
796
852
  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])=>{
853
+ const [product_card_resource] = (0, $diwD4$solidjs.createResource)(display_accessor, // re-render when the reference to the display object changes
854
+ // this should only be the case when the merchant or market changes and the new request has completed
855
+ (display)=>{
802
856
  // 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
857
  return product_card_template_(display, {
805
858
  set_on_index_change: (fn)=>(0, $diwD4$solidjs.runWithOwner)(owner, ()=>(0, $diwD4$solidjs.createEffect)(()=>fn(index()))),
806
- merchant: merchant,
807
- market: market
859
+ merchant: (0, $diwD4$solidjs.untrack)(merchant_),
860
+ // 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
861
+ market: (0, $diwD4$solidjs.untrack)(market_)
808
862
  });
809
863
  });
810
864
  const node_accessor = (0, $5f7d55c710fd1bc2$export$2f0cbfbb4354bb52)(product_card_resource);
@@ -960,7 +1014,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({ plp_results_: plp_results_
960
1014
  const random_id = (0, $diwD4$depictaiutilishared.make_random_classname)();
961
1015
  const selector_beginning_ = `.depict.plp #${random_id}>`;
962
1016
  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);
1017
+ const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $diwD4$solidjs.createSignal)(true);
964
1018
  const rendered_placeholders = (0, $diwD4$solidjs.createMemo)(()=>get_should_have_placeholders_rendered() ? (0, $0caf87eaa19079da$export$f33414a4df0afd3f)({
965
1019
  product_card_template_: product_card_template_,
966
1020
  num_placeholders_: (0, $diwD4$solidjs.createMemo)(()=>{
@@ -1198,19 +1252,21 @@ function $a69e505a12a77874$export$e13dddbb31c3a42f() {
1198
1252
 
1199
1253
 
1200
1254
 
1255
+
1256
+
1201
1257
  const $a0e53f99354809d9$var$_tmpl$ = [
1202
1258
  "<div",
1203
1259
  ">",
1204
1260
  "</div>"
1205
1261
  ];
1206
- function $a0e53f99354809d9$export$6649caad96ef8870({ children: children , button_: button_ , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
1262
+ function $a0e53f99354809d9$export$6649caad96ef8870({ children: children , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
1207
1263
  const slider = new (0, $diwD4$depictaiutilishared.Amazing_Slider)({
1208
1264
  button_contents: {
1209
1265
  left: [
1210
- (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(button_.cloneNode(true)))
1266
+ (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $0f313083912e447a$export$8be2714ec7f169ee), {})))
1211
1267
  ],
1212
1268
  right: [
1213
- (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(button_.cloneNode(true)))
1269
+ (0, $diwD4$solidjsweb.ssr)($a0e53f99354809d9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $0f313083912e447a$export$8be2714ec7f169ee), {})))
1214
1270
  ]
1215
1271
  },
1216
1272
  constructor_plugins: [
@@ -1231,6 +1287,7 @@ function $a0e53f99354809d9$export$6649caad96ef8870({ children: children , button
1231
1287
  }
1232
1288
 
1233
1289
 
1290
+
1234
1291
  const $235a2771a44e28e9$var$_tmpl$ = [
1235
1292
  "<button",
1236
1293
  ' class="clear-all-filters minor">',
@@ -1256,7 +1313,7 @@ const $235a2771a44e28e9$var$_tmpl$ = [
1256
1313
  "<!--/--><span>",
1257
1314
  "</span></button>"
1258
1315
  ];
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_ }) {
1316
+ 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
1317
  const { price_formatting_: price_formatting_ } = i18n_;
1261
1318
  const [read_selected_filters, write_selected_filters] = selected_filters_;
1262
1319
  const { collapse: collapse , expand: expand , ExpandingContainer: ExpandingContainer } = (0, $4b455f60dadde8b8$export$5bad61ecde080b1f)({
@@ -1271,7 +1328,6 @@ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected
1271
1328
  },
1272
1329
  get children () {
1273
1330
  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
1331
  slider_ref_: (slider)=>slider.container.classList.add("filter-crumbs"),
1276
1332
  get children () {
1277
1333
  return [
@@ -1346,7 +1402,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected
1346
1402
  return (()=>{
1347
1403
  number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
1348
1404
  (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), {
1405
+ 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
1406
  get price_ () {
1351
1407
  return filter().data[0];
1352
1408
  },
@@ -1409,7 +1465,7 @@ function $235a2771a44e28e9$export$fecbb157621501bd({ number_of_rendered_selected
1409
1465
  return (()=>{
1410
1466
  number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
1411
1467
  (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()));
1468
+ 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
1469
  })();
1414
1470
  }
1415
1471
  });
@@ -1519,7 +1575,6 @@ async function $9abb0a35d4b60ed3$export$79b1565500412d9b(search_modal, modal_fn_
1519
1575
 
1520
1576
 
1521
1577
 
1522
-
1523
1578
 
1524
1579
  const $b3cf6ca8dc0e9998$var$_tmpl$ = [
1525
1580
  "<span",
@@ -1560,6 +1615,18 @@ const $b3cf6ca8dc0e9998$export$48513f6b9f8ce62d = (props)=>{
1560
1615
 
1561
1616
 
1562
1617
 
1618
+
1619
+ 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>';
1620
+ function $cc43b6428000c4bf$export$f21ab0717a89c77f(props) {
1621
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
1622
+ ...props,
1623
+ "xmlns": "http://www.w3.org/2000/svg",
1624
+ "width": "11",
1625
+ "height": "12"
1626
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($cc43b6428000c4bf$var$_tmpl$), true);
1627
+ }
1628
+
1629
+
1563
1630
  const $0fe1e7efdf4200d6$var$_tmpl$ = [
1564
1631
  "<button",
1565
1632
  ' type="button" class="',
@@ -1568,7 +1635,7 @@ const $0fe1e7efdf4200d6$var$_tmpl$ = [
1568
1635
  "</span></button>"
1569
1636
  ];
1570
1637
  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_()));
1638
+ 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
1639
  }
1573
1640
 
1574
1641
 
@@ -2575,6 +2642,18 @@ var $a636ca15e3d3570d$export$2e2bcd8739ae039 = {
2575
2642
 
2576
2643
 
2577
2644
 
2645
+
2646
+ 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>';
2647
+ function $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4(props = {}) {
2648
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
2649
+ "xmlns": "http://www.w3.org/2000/svg",
2650
+ "width": "16.8",
2651
+ "height": "14",
2652
+ ...props
2653
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($0f4656eaf6c22d1d$var$_tmpl$), true);
2654
+ }
2655
+
2656
+
2578
2657
  const $b064919833b3e80b$var$_tmpl$ = [
2579
2658
  "<span",
2580
2659
  ' class="show-selected" aria-hidden="true"><span>',
@@ -2636,7 +2715,7 @@ function $b064919833b3e80b$export$53c59af873b303c9({ selected_filters_in_group_:
2636
2715
  return show_tick_icon();
2637
2716
  },
2638
2717
  get children () {
2639
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.TickIcon), {});
2718
+ return (0, $diwD4$solidjsweb.createComponent)((0, $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4), {});
2640
2719
  }
2641
2720
  })));
2642
2721
  }
@@ -2733,6 +2812,7 @@ function $061ff5b4c3d36171$export$89c6019e4baa40b1(props) {
2733
2812
  }
2734
2813
 
2735
2814
 
2815
+
2736
2816
  const $aff9a96d30ed3563$var$_tmpl$ = [
2737
2817
  "<div",
2738
2818
  ' class="filter-collapsible">',
@@ -2900,7 +2980,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
2900
2980
  return a_filter_is_selected();
2901
2981
  },
2902
2982
  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_()));
2983
+ 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
2984
  }
2905
2985
  })));
2906
2986
  }
@@ -3095,6 +3175,49 @@ function $ca1176b694a6ee2e$export$fe334901e8bebd57() {
3095
3175
 
3096
3176
 
3097
3177
 
3178
+
3179
+
3180
+
3181
+ 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>';
3182
+ function $f958b5ac0e4a78da$export$da32f7add8a22e86(props = {}) {
3183
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
3184
+ "xmlns": "http://www.w3.org/2000/svg",
3185
+ "width": "14",
3186
+ "height": "14",
3187
+ "class": "sort-icon",
3188
+ ...props
3189
+ }), ()=>[
3190
+ (0, $diwD4$solidjsweb.ssr)($f958b5ac0e4a78da$var$_tmpl$),
3191
+ (0, $diwD4$solidjsweb.ssr)($f958b5ac0e4a78da$var$_tmpl$2)
3192
+ ], true);
3193
+ }
3194
+
3195
+
3196
+
3197
+
3198
+ 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>';
3199
+ function $046db47e0326c715$export$d10e63059ddb9fd4(props = {}) {
3200
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
3201
+ "xmlns": "http://www.w3.org/2000/svg",
3202
+ "width": "14",
3203
+ "height": "14",
3204
+ "class": "sort-icon",
3205
+ ...props
3206
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($046db47e0326c715$var$_tmpl$), true);
3207
+ }
3208
+
3209
+
3210
+
3211
+
3212
+ const $02215fefc955d01e$var$_tmpl$ = [
3213
+ "<svg",
3214
+ ' 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>'
3215
+ ];
3216
+ function $02215fefc955d01e$export$28f6150e232898de() {
3217
+ return (0, $diwD4$solidjsweb.ssr)($02215fefc955d01e$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3218
+ }
3219
+
3220
+
3098
3221
  const $1872ceb56ede7a52$var$_tmpl$ = [
3099
3222
  "<button",
3100
3223
  ' class="clear minor">',
@@ -3178,7 +3301,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({ args_for_sorting_: args_for
3178
3301
  });
3179
3302
  (0, $diwD4$solidjs.onCleanup)(resolve_cleanup_promise);
3180
3303
  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), {
3304
+ (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
3305
  is_open_: [
3183
3306
  sorting_expanded,
3184
3307
  set_sorting_expanded
@@ -3187,7 +3310,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({ args_for_sorting_: args_for
3187
3310
  return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3188
3311
  },
3189
3312
  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), {
3313
+ 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
3314
  expanded_: sorting_expanded,
3192
3315
  i18n_: i18n_
3193
3316
  })));
@@ -3204,7 +3327,7 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({ args_for_sorting_: args_for
3204
3327
  return (0, $diwD4$solidjsweb.ssr)($1872ceb56ede7a52$var$_tmpl$6, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3205
3328
  },
3206
3329
  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), {
3330
+ 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
3331
  expanded_: filters_expanded,
3209
3332
  i18n_: i18n_
3210
3333
  })));
@@ -3376,6 +3499,21 @@ function $70482f04605572e2$export$b288c38ae3fddb56({ available_filters_: availab
3376
3499
  }
3377
3500
 
3378
3501
 
3502
+
3503
+
3504
+ const $f49857214f7675b1$var$_tmpl$ = [
3505
+ "<svg",
3506
+ ' 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>'
3507
+ ];
3508
+ function $f49857214f7675b1$export$cb808a3c41736d8e() {
3509
+ return (0, $diwD4$solidjsweb.ssr)($f49857214f7675b1$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3510
+ }
3511
+
3512
+
3513
+
3514
+
3515
+
3516
+
3379
3517
  const $f8f64d05c525825b$var$_tmpl$ = [
3380
3518
  "<div",
3381
3519
  ' class="filters"><div class="body">',
@@ -3415,112 +3553,114 @@ const $f8f64d05c525825b$var$_tmpl$ = [
3415
3553
  "<!--/--></button>"
3416
3554
  ];
3417
3555
  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);
3556
+ const Self = ()=>{
3557
+ // 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
3558
+ (0, $70482f04605572e2$export$b288c38ae3fddb56)({
3559
+ available_filters_: available_filters_,
3560
+ selected_filters_: selected_filters_,
3561
+ local_filter_cache_: local_filter_cache_
3562
+ });
3563
+ const cleanup_promise = new Promise((r)=>(0, $diwD4$solidjs.onCleanup)(r));
3564
+ const [filters_open, set_filters_open] = search_filters_open_;
3565
+ const [sorting_open, set_sorting_open] = search_sorting_open_;
3566
+ const [get_current_sorting_] = current_sorting_;
3567
+ const [is_small, set_is_small] = (0, $diwD4$solidjs.createSignal)(false);
3568
+ const dismiss_modal_ = (0, $diwD4$depictaiutilishared.catchify)(()=>{
3569
+ set_filters_open(false);
3570
+ set_sorting_open(false);
3571
+ });
3572
+ const meta_of_currently_selected_sorting_ = (0, $diwD4$solidjs.createMemo)(()=>available_sortings_()?.find?.((sorting)=>sorting.field === get_current_sorting_()?.field)?.meta);
3573
+ const filter_options = {
3574
+ expanded_hierarchical_filters_: expanded_hierarchical_filters_,
3575
+ local_filter_cache_: local_filter_cache_,
3576
+ available_filters_: available_filters_,
3577
+ expanded_filters_: expanded_filters_,
3578
+ selected_filters_: selected_filters_,
3579
+ i18n_: i18n_
3580
+ };
3581
+ const sorting_options = {
3582
+ current_sorting_: current_sorting_,
3583
+ available_sortings_: available_sortings_,
3584
+ meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3585
+ };
3586
+ const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $diwD4$solidjsweb.createComponent)($f8f64d05c525825b$var$OpenFiltersButton, {
3587
+ tabindex_: is_tabbable ? 0 : -1,
3588
+ i18n_: i18n_,
3589
+ search_filters_open_: search_filters_open_,
3590
+ search_sorting_open_: search_sorting_open_,
3591
+ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
3592
+ filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
3437
3593
  });
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_,
3594
+ const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $diwD4$solidjsweb.createComponent)($f8f64d05c525825b$var$OpenSortingButton, {
3595
+ tabindex_: is_tabbable ? 0 : -1,
3596
+ i18n_: i18n_,
3597
+ get_current_sorting_: get_current_sorting_,
3598
+ search_filters_open_: search_filters_open_,
3599
+ search_sorting_open_: search_sorting_open_,
3449
3600
  available_sortings_: available_sortings_,
3601
+ sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
3450
3602
  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
3603
  });
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))));
3604
+ let open_modal_;
3605
+ let close_modal_;
3606
+ let grid_is_in_original_state = true;
3607
+ (0, $diwD4$solidjs.createComputed)(()=>{
3608
+ const fi_o = filters_open();
3609
+ const so_o = sorting_open();
3610
+ const i_s = is_small();
3611
+ // 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
3612
+ if ((fi_o || so_o) && !i_s) {
3613
+ if (!grid_is_in_original_state) return;
3614
+ set_sort_or_filter_open_(true);
3615
+ grid_is_in_original_state = false;
3616
+ } else if (!grid_is_in_original_state) {
3617
+ set_sort_or_filter_open_(false);
3618
+ grid_is_in_original_state = true;
3619
+ }
3620
+ });
3621
+ (0, $diwD4$solidjs.createEffect)(()=>{
3622
+ if (!filters_open() && !sorting_open()) {
3623
+ close_modal_?.();
3624
+ set_extra_els_in_results_container_("");
3625
+ } else if (is_small()) {
3626
+ if ((0, $diwD4$solidjs.untrack)(()=>input_modal_open_?.())) {
3627
+ // we don't want to shove another modal into the users face, silently close the filters for them
3628
+ set_filters_open(false);
3629
+ set_sorting_open(false);
3630
+ return;
3504
3631
  }
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)));
3632
+ open_modal_?.();
3633
+ set_extra_els_in_results_container_("");
3634
+ } else {
3635
+ close_modal_?.();
3636
+ 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))));
3637
+ 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))));
3638
+ }
3639
+ });
3640
+ (0, $diwD4$depictaiutilishared.catchify)(async ()=>{
3641
+ ({ open_modal_: open_modal_ , close_modal_: close_modal_ } = await (0, $9abb0a35d4b60ed3$export$79b1565500412d9b)((0, $1872ceb56ede7a52$export$9bf11afa910f536e), {
3642
+ args_for_sorting_: sorting_options,
3643
+ args_for_filtering_: filter_options,
3644
+ search_filters_open_: search_filters_open_,
3645
+ search_sorting_open_: search_sorting_open_,
3646
+ formatted_number_of_results_: formatted_number_of_results_,
3647
+ dismiss_modal_: dismiss_modal_,
3648
+ i18n_: i18n_
3649
+ }));
3650
+ const { remove: remove } = (0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches));
3651
+ cleanup_promise.then(remove);
3652
+ })();
3653
+ get_extra_filters_button_?.(make_open_filters_button());
3654
+ get_extra_sorting_button_?.(make_open_sorting_button());
3655
+ 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)));
3656
+ };
3657
+ return (0, $diwD4$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
3658
+ message_: "Sorting and filters failed",
3659
+ severity_: "error",
3660
+ get children () {
3661
+ return (0, $diwD4$solidjsweb.createComponent)(Self, {});
3522
3662
  }
3523
- })();
3663
+ });
3524
3664
  }
3525
3665
  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
3666
  const filters_closed = (0, $diwD4$solidjs.createMemo)(()=>!search_filters_open_[0]());
@@ -3532,17 +3672,17 @@ function $f8f64d05c525825b$var$OpenFiltersButton({ i18n_: i18n_ , search_filters
3532
3672
  get children () {
3533
3673
  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
3674
  }
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_?.() ? {
3675
+ })), (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
3676
  width: filter_button_width_() + "px"
3537
3677
  } : {}), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
3538
3678
  get when () {
3539
3679
  return filters_closed();
3540
3680
  },
3541
3681
  get fallback () {
3542
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.MinusIcon), {});
3682
+ return (0, $diwD4$solidjsweb.createComponent)((0, $f49857214f7675b1$export$cb808a3c41736d8e), {});
3543
3683
  },
3544
3684
  get children () {
3545
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.FilterIcon), {});
3685
+ return (0, $diwD4$solidjsweb.createComponent)((0, $02215fefc955d01e$export$28f6150e232898de), {});
3546
3686
  }
3547
3687
  })), (0, $diwD4$solidjsweb.escape)(i18n_.filter_text_()));
3548
3688
  }
@@ -3559,10 +3699,10 @@ function $f8f64d05c525825b$var$OpenSortingButton({ i18n_: i18n_ , get_current_so
3559
3699
  return sorting_closed();
3560
3700
  },
3561
3701
  get fallback () {
3562
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.MinusIcon), {});
3702
+ return (0, $diwD4$solidjsweb.createComponent)((0, $f49857214f7675b1$export$cb808a3c41736d8e), {});
3563
3703
  },
3564
3704
  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), {});
3705
+ return get_current_sorting_()?.order === "asc" ? (0, $diwD4$solidjsweb.createComponent)((0, $f958b5ac0e4a78da$export$da32f7add8a22e86), {}) : (0, $diwD4$solidjsweb.createComponent)((0, $046db47e0326c715$export$d10e63059ddb9fd4), {});
3566
3706
  }
3567
3707
  })));
3568
3708
  }
@@ -3679,6 +3819,21 @@ function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({ children: children , on_clo
3679
3819
 
3680
3820
 
3681
3821
 
3822
+
3823
+
3824
+
3825
+
3826
+
3827
+ const $084b6a0ee1d481de$var$_tmpl$ = [
3828
+ "<svg",
3829
+ ' 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>'
3830
+ ];
3831
+ function $084b6a0ee1d481de$export$2624c5890f1bbcf7() {
3832
+ return (0, $diwD4$solidjsweb.ssr)($084b6a0ee1d481de$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
3833
+ }
3834
+
3835
+
3836
+
3682
3837
  const $2fb324fbcc7b4a7b$var$_tmpl$ = [
3683
3838
  "<div",
3684
3839
  ' class="',
@@ -3691,6 +3846,7 @@ const $2fb324fbcc7b4a7b$var$_tmpl$ = [
3691
3846
  "</div></button></div>"
3692
3847
  ];
3693
3848
  function $2fb324fbcc7b4a7b$export$b23abd26de154ede(props) {
3849
+ if (0, $diwD4$solidjsweb.isServer) return; // won't show in initial render and need scroll position
3694
3850
  const [is_small, set_is_small] = (0, $diwD4$solidjs.createSignal)(true);
3695
3851
  (0, $diwD4$solidjs.onCleanup)((0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
3696
3852
  return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
@@ -3773,7 +3929,7 @@ function $2fb324fbcc7b4a7b$var$ActualFloatingButtons({ search_filters_open_: [ge
3773
3929
  await cleanup_promise;
3774
3930
  is.disconnect();
3775
3931
  }));
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), {})));
3932
+ 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
3933
  }
3778
3934
 
3779
3935
 
@@ -4022,7 +4178,7 @@ const $8cceb1d3a967f369$var$_tmpl$ = [
4022
4178
  ">",
4023
4179
  "</a>"
4024
4180
  ];
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_ }) {
4181
+ function $8cceb1d3a967f369$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
4026
4182
  let scrolling_logic_ran_for_query_id = false;
4027
4183
  let last_scroll_position;
4028
4184
  let scroll_to_element_on_dom_insertion;
@@ -4078,7 +4234,6 @@ function $8cceb1d3a967f369$export$466cdc317043f6cb({ quicklinks_data_: quicklink
4078
4234
  get children () {
4079
4235
  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
4236
  faded_opacity_: 0.5,
4081
- button_: slider_arrow_button_,
4082
4237
  mutation_plugins_: mutation_plugins,
4083
4238
  slider_ref_: (slider)=>{
4084
4239
  const { insert_here: insert_here , intersecting_items_object: intersecting_items_object } = slider;
@@ -4425,6 +4580,7 @@ function $cc7c480116d2eba0$var$clear_if_opened_new_tab_with_sideways_url_params_
4425
4580
 
4426
4581
 
4427
4582
 
4583
+
4428
4584
  const $840d88a04b2d22a7$var$_tmpl$ = [
4429
4585
  "<div",
4430
4586
  ' class="product-count"><!--#-->',
@@ -4450,7 +4606,7 @@ const $840d88a04b2d22a7$var$_tmpl$ = [
4450
4606
  "<!--/--><!--#-->",
4451
4607
  "<!--/--></div>"
4452
4608
  ];
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_ }) {
4609
+ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , listing_type_: listing_type_ , 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
4610
  let results_for;
4455
4611
  let only_show_filters_opener_;
4456
4612
  let middle_elements_;
@@ -4475,6 +4631,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4475
4631
  tenant: tenant_(),
4476
4632
  market: market_(),
4477
4633
  query_id: query_id_(),
4634
+ type: listing_type_(),
4478
4635
  ...f.length ? {
4479
4636
  filters: f
4480
4637
  } : {},
@@ -4597,12 +4754,13 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4597
4754
  (0, $diwD4$solidjs.createRenderEffect)((0, $diwD4$depictaiutilishared.catchify)(async ()=>{
4598
4755
  const slim = is_slim_();
4599
4756
  const only_show_filters_opener = only_show_filters_opener_?.();
4757
+ const owner = (0, $diwD4$solidjs.getOwner)();
4600
4758
  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
4759
  // 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)));
4760
+ (0, $diwD4$solidjs.runWithOwner)(owner, ()=>set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
4761
+ results_for,
4762
+ filters_opener
4763
+ ] : (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
4764
  }));
4607
4765
  (0, $6b384adf40a5f4d7$export$e702733a056c40d6)({
4608
4766
  selected_filters_: selected_filters_,
@@ -4621,7 +4779,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4621
4779
  get_breadcrumb_accessor_?.(crumb_data_);
4622
4780
  get_quicklinks_accessor_?.(quicklinks_data_);
4623
4781
  return [
4624
- document.createComment("Category page based on Depict SDK"),
4782
+ (0, $diwD4$solidjsweb.isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"),
4625
4783
  (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
4784
  when: show_breadcrumbs_,
4627
4785
  get children () {
@@ -4638,7 +4796,6 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4638
4796
  quicklinks_data_: quicklinks_data_,
4639
4797
  current_query_id_: query_id_,
4640
4798
  router_: router_,
4641
- slider_arrow_button_: slider_arrow_button_,
4642
4799
  breadcrumb_data_: crumb_data_,
4643
4800
  i18n_: i18n_
4644
4801
  });
@@ -4656,7 +4813,6 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4656
4813
  i18n_: i18n_,
4657
4814
  selected_filters_: selected_filters_,
4658
4815
  local_filter_cache_: local_filter_cache_,
4659
- slider_arrow_button_: slider_arrow_button_,
4660
4816
  search_filters_open_: category_filters_open_,
4661
4817
  search_sorting_open_: category_sorting_open_,
4662
4818
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -4723,7 +4879,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4723
4879
 
4724
4880
  let $d84fe647b84b5dc5$var$has_ran = false;
4725
4881
  function $d84fe647b84b5dc5$export$5162a71f252e6122() {
4726
- if ($d84fe647b84b5dc5$var$has_ran) return;
4882
+ if ($d84fe647b84b5dc5$var$has_ran || typeof history !== "object") return;
4727
4883
  $d84fe647b84b5dc5$var$has_ran = true;
4728
4884
  for (const function_name of [
4729
4885
  "replaceState",
@@ -4829,8 +4985,7 @@ function $0785f4c9947d9b5f$export$f091cbac892643a4(obj) {
4829
4985
 
4830
4986
  function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
4831
4987
  const component_in_error_boundary = (do_with_elements)=>{
4832
- // @ts-ignore
4833
- return (0, $edafe91daf3091d7$export$b69d0d92862de18b)({
4988
+ const error_boundary_wrapped = (0, $edafe91daf3091d7$export$b69d0d92862de18b)({
4834
4989
  severity_: "error",
4835
4990
  message_: error_message,
4836
4991
  get children () {
@@ -4838,7 +4993,12 @@ function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
4838
4993
  do_with_elements?.(elements);
4839
4994
  return elements;
4840
4995
  }
4841
- })();
4996
+ });
4997
+ // This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
4998
+ if (typeof error_boundary_wrapped === "function") // @ts-ignore
4999
+ return error_boundary_wrapped();
5000
+ // On the server it returns a string, so we just return that
5001
+ return error_boundary_wrapped;
4842
5002
  };
4843
5003
  const owner = (0, $diwD4$solidjs.getOwner)();
4844
5004
  if (owner == null) return (0, $diwD4$solidjs.createRoot)((dispose)=>{
@@ -4868,7 +5028,7 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
4868
5028
  const [get_sorting_, set_sorting] = current_sorting_;
4869
5029
  const [get_selected_filters_, set_selected_filters] = selected_filters_;
4870
5030
  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);
5031
+ const [get_current_href, set_current_href] = (0, $diwD4$solidjs.createSignal)(globalThis?.location?.href ?? "https://example.com");
4872
5032
  const history_change_handler = (0, $diwD4$depictaiutilishared.catchify)(()=>set_current_href(location.href));
4873
5033
  const owner = (0, $diwD4$solidjs.getOwner)() || (0, $diwD4$solidjs.createRoot)(()=>(0, $diwD4$solidjs.getOwner)());
4874
5034
  let writer_started = false;
@@ -5004,7 +5164,7 @@ class $e96dd13889871fc0$export$7e1297a3a19f10d8 {
5004
5164
  * Call this if you *just* want to replace the state object in history.state
5005
5165
  */ replace_state_: (new_state)=>{
5006
5166
  // 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, "");
5167
+ globalThis?.history?.replaceState(new_state, "");
5008
5168
  },
5009
5169
  /**
5010
5170
  * Call this to change the URL
@@ -5046,6 +5206,7 @@ class $e96dd13889871fc0$export$7e1297a3a19f10d8 {
5046
5206
  }
5047
5207
 
5048
5208
 
5209
+
5049
5210
  const $48567ac5b39bac56$var$_tmpl$ = [
5050
5211
  "<div",
5051
5212
  ' class="depict plp category">',
@@ -5060,6 +5221,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
5060
5221
  #merchant_signal = (0, $diwD4$solidjs.createSignal)();
5061
5222
  #market_signal = (0, $diwD4$solidjs.createSignal)();
5062
5223
  #query_id_signal = (0, $diwD4$solidjs.createSignal)("");
5224
+ #listing_type_signal = (0, $diwD4$solidjs.createSignal)();
5063
5225
  static #has_been_constructed = false;
5064
5226
  get localization() {
5065
5227
  // allow reactive access
@@ -5086,6 +5248,12 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
5086
5248
  set market(market) {
5087
5249
  this.#market_signal[1](market);
5088
5250
  }
5251
+ get listing_type() {
5252
+ return this.#listing_type_signal[0]();
5253
+ }
5254
+ set listing_type(listing_type) {
5255
+ this.#listing_type_signal[1](listing_type);
5256
+ }
5089
5257
  get on_navigation() {
5090
5258
  // The only non-reactive public property on the class (I don't see it making sense to have it reactive)
5091
5259
  return this.#router.on_navigation_;
@@ -5096,7 +5264,8 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
5096
5264
  constructor({ api: api , on_navigation: on_navigation , ...props_on_class }){
5097
5265
  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
5266
  (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");
5267
+ 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
5268
+ throw new Error("You can only have one instance of DepictCategory due to state limitations");
5100
5269
  $48567ac5b39bac56$export$f34314aa9505732e.#has_been_constructed = true;
5101
5270
  Object.assign(this, props_on_class); // set initial signal values
5102
5271
  (0, $d84fe647b84b5dc5$export$5162a71f252e6122)();
@@ -5124,11 +5293,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
5124
5293
  router_: this.#router,
5125
5294
  selected_filters_: selected_filters_,
5126
5295
  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
- })
5296
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
5132
5297
  });
5133
5298
  });
5134
5299
  }
@@ -5142,7 +5307,7 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
5142
5307
  grid_spacing: grid_spacing.horizontal
5143
5308
  };
5144
5309
  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;
5310
+ 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
5311
  (0, $diwD4$solidjs.onCleanup)(reset_history_state_);
5147
5312
  return (0, $840d88a04b2d22a7$export$f7d2f673fc2f091d)({
5148
5313
  tenant_: ()=>depict_category.merchant,
@@ -5151,6 +5316,7 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
5151
5316
  min_products_to_fetch_: $48567ac5b39bac56$var$min_products_to_fetch_,
5152
5317
  local_filter_cache_: local_filter_cache_,
5153
5318
  query_id_: ()=>depict_category.category_id,
5319
+ listing_type_: ()=>depict_category.listing_type,
5154
5320
  i18n_: i18n_,
5155
5321
  show_quicklinks_: show_quicklinks,
5156
5322
  category_title_: category_title,
@@ -5161,7 +5327,6 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e({ depict_category: depict_cat
5161
5327
  get_quicklinks_accessor_: (accessor)=>(0, $diwD4$solidjs.createComputed)(()=>quicklinks_signal_[1](accessor())),
5162
5328
  category_filters_open_: category_filters_open_,
5163
5329
  category_sorting_open_: category_sorting_open_,
5164
- slider_arrow_button_: slider_arrow_button_,
5165
5330
  expanded_filters_: expanded_filters_,
5166
5331
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
5167
5332
  selected_filters_: selected_filters_,
@@ -5188,7 +5353,7 @@ function $48567ac5b39bac56$export$5b7c3ce0ebe51f86({ depict_category: depict_cat
5188
5353
  });
5189
5354
  }
5190
5355
  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);
5356
+ const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ } = $48567ac5b39bac56$var$get_shared_properties(depict_category);
5192
5357
  return (0, $diwD4$solidjsweb.createComponent)($48567ac5b39bac56$var$InExternalAreaDiv, {
5193
5358
  get children () {
5194
5359
  return (0, $8cceb1d3a967f369$export$466cdc317043f6cb)({
@@ -5196,7 +5361,6 @@ function $48567ac5b39bac56$export$de035477d6fef996({ depict_category: depict_cat
5196
5361
  quicklinks_data_: quicklinks_data_,
5197
5362
  router_: router_,
5198
5363
  current_query_id_: ()=>depict_category.category_id,
5199
- slider_arrow_button_: slider_arrow_button_,
5200
5364
  breadcrumb_data_: breadcrumb_data_
5201
5365
  });
5202
5366
  }
@@ -5328,9 +5492,9 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
5328
5492
 
5329
5493
  const $7b4bc889571cc67b$var$TEN_MINUTES = 600000;
5330
5494
  const $7b4bc889571cc67b$var$TWENTY_FOUR_HOURS = 86400000;
5331
- async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market) {
5495
+ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market, type) {
5332
5496
  let localstorage_value;
5333
- const localstorage_key = `depict_categories_` + market;
5497
+ const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
5334
5498
  try {
5335
5499
  const in_ls = localStorage[localstorage_key];
5336
5500
  if (in_ls) localstorage_value = JSON.parse(in_ls);
@@ -5346,7 +5510,7 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market) {
5346
5510
  return stored_queries;
5347
5511
  else if (age < $7b4bc889571cc67b$var$TWENTY_FOUR_HOURS) {
5348
5512
  // 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)([
5513
+ $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $diwD4$depictaiutilishared.report)([
5350
5514
  e,
5351
5515
  "couldn't fetch categories"
5352
5516
  ], "warning"));
@@ -5354,10 +5518,10 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market) {
5354
5518
  }
5355
5519
  // else: we are older and just fetch, store and return new queries
5356
5520
  }
5357
- return await $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key);
5521
+ return await $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
5358
5522
  }
5359
- async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key) {
5360
- const new_categories = await $7b4bc889571cc67b$var$download_categories(tenant, market);
5523
+ async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
5524
+ const new_categories = await $7b4bc889571cc67b$var$download_categories(tenant, market, type);
5361
5525
  try {
5362
5526
  localStorage[localstorage_key] = JSON.stringify({
5363
5527
  updated: +new Date(),
@@ -5371,12 +5535,15 @@ async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market,
5371
5535
  }
5372
5536
  return new_categories;
5373
5537
  }
5374
- async function $7b4bc889571cc67b$var$download_categories(tenant, market) {
5538
+ async function $7b4bc889571cc67b$var$download_categories(tenant, market, type) {
5375
5539
  const fetched = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.base_url) + "/v2/product-listing/queries", {
5376
5540
  method: "POST",
5377
5541
  body: JSON.stringify({
5378
5542
  tenant: tenant,
5379
- market: market
5543
+ market: market,
5544
+ ...type ? {
5545
+ type: type
5546
+ } : {}
5380
5547
  })
5381
5548
  });
5382
5549
  if (!fetched) return [];
@@ -5485,6 +5652,31 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({ category_suggestion_: categ
5485
5652
 
5486
5653
 
5487
5654
 
5655
+
5656
+
5657
+ const $3df11fc61432d1fd$var$_tmpl$ = [
5658
+ "<svg",
5659
+ ' 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>'
5660
+ ];
5661
+ function $3df11fc61432d1fd$export$1c641004b5485fed() {
5662
+ return (0, $diwD4$solidjsweb.ssr)($3df11fc61432d1fd$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
5663
+ }
5664
+
5665
+
5666
+
5667
+
5668
+
5669
+ 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>';
5670
+ function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
5671
+ return (0, $diwD4$solidjsweb.ssrElement)("svg", ()=>({
5672
+ ...props,
5673
+ "xmlns": "http://www.w3.org/2000/svg",
5674
+ "width": "20",
5675
+ "height": "22"
5676
+ }), ()=>(0, $diwD4$solidjsweb.ssr)($87d7574e1d89d69b$var$_tmpl$), true);
5677
+ }
5678
+
5679
+
5488
5680
  const $66b8b9a9613c141d$var$_tmpl$ = [
5489
5681
  "<button",
5490
5682
  ' class="back" type="button"',
@@ -5517,9 +5709,9 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({ search_field_value_: search
5517
5709
  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
5710
  when: on_back_,
5519
5711
  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), {})));
5712
+ 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
5713
  }
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), {})));
5714
+ })), `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
5715
  }
5524
5716
 
5525
5717
 
@@ -5707,7 +5899,7 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({ selected_filters_: selected
5707
5899
 
5708
5900
 
5709
5901
  function $2b7a005a65221045$export$84bba84a7b837187(read_search_query) {
5710
- const ls = localStorage;
5902
+ const ls = globalThis?.localStorage || {};
5711
5903
  const key = "depict_searches";
5712
5904
  const previous_searches = (0, $diwD4$solidjs.createSignal)(JSON.parse(ls[key] || "[]"));
5713
5905
  const [read_previous_searches, write_previous_searches] = previous_searches;
@@ -5955,7 +6147,6 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({ depict_api_: depict_api_ ,
5955
6147
 
5956
6148
 
5957
6149
 
5958
-
5959
6150
  function $496cde876b53ce1e$export$91c3b6774e8be0f5({ param_: param_ , value_: value_ , url_transformer_: url_transformer_ }) {
5960
6151
  const [get_current_href, set_current_href] = (0, $diwD4$solidjs.createSignal)(location.href);
5961
6152
  const [exit_iterable, exitable_iterable] = (0, $diwD4$depictaiutilishared.make_asyncIterable_exiter)((0, $diwD4$depictaiutilishared.href_change_ipns));
@@ -5974,6 +6165,18 @@ function $496cde876b53ce1e$export$91c3b6774e8be0f5({ param_: param_ , value_: va
5974
6165
 
5975
6166
 
5976
6167
 
6168
+
6169
+
6170
+ const $9e30168c4b1661d2$var$_tmpl$ = [
6171
+ "<svg",
6172
+ ' 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>'
6173
+ ];
6174
+ function $9e30168c4b1661d2$export$5d2caaa6b530761c() {
6175
+ return (0, $diwD4$solidjsweb.ssr)($9e30168c4b1661d2$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)());
6176
+ }
6177
+
6178
+
6179
+
5977
6180
  const $9a268bf73b31a717$var$_tmpl$ = [
5978
6181
  "<div",
5979
6182
  ' class="previous-searches"><h2 class="text">',
@@ -6018,7 +6221,7 @@ function $9a268bf73b31a717$export$a146ac6fa8346a25({ text_: text_ , previous_sea
6018
6221
  value_: item,
6019
6222
  url_transformer_: url_transformer_
6020
6223
  });
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), {})));
6224
+ 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
6225
  }
6023
6226
  })));
6024
6227
  }
@@ -6038,7 +6241,6 @@ function $9a268bf73b31a717$export$a146ac6fa8346a25({ text_: text_ , previous_sea
6038
6241
 
6039
6242
 
6040
6243
 
6041
-
6042
6244
  const $d023ed916c84e75d$var$_tmpl$ = [
6043
6245
  "<span",
6044
6246
  ' class="highlighted-part">',
@@ -6098,6 +6300,8 @@ function $d023ed916c84e75d$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
6098
6300
  }
6099
6301
 
6100
6302
 
6303
+
6304
+
6101
6305
  const $6b65ba8af12c5a26$var$_tmpl$ = [
6102
6306
  "<a",
6103
6307
  ' class="',
@@ -6154,10 +6358,10 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
6154
6358
  (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
6155
6359
  when: is_history,
6156
6360
  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), {})));
6361
+ 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
6362
  },
6159
6363
  get children () {
6160
- return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$depictaiutilishared.PreviousSearchIcon), {});
6364
+ return (0, $diwD4$solidjsweb.createComponent)((0, $9e30168c4b1661d2$export$5d2caaa6b530761c), {});
6161
6365
  }
6162
6366
  }),
6163
6367
  (0, $diwD4$solidjsweb.createComponent)((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
@@ -6785,7 +6989,7 @@ const $04048c1bef16c249$var$_tmpl$ = [
6785
6989
  ' class="category-suggestion">',
6786
6990
  "</div>"
6787
6991
  ];
6788
- function $04048c1bef16c249$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children , slider_arrow_button_: slider_arrow_button_ }) {
6992
+ function $04048c1bef16c249$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children }) {
6789
6993
  const category_suggestions_ = (0, $diwD4$solidjs.createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
6790
6994
  return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
6791
6995
  get when () {
@@ -6793,7 +6997,6 @@ function $04048c1bef16c249$export$c05a196222ba1302({ suggestions_: suggestions_
6793
6997
  },
6794
6998
  get children () {
6795
6999
  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
7000
  faded_opacity_: 0.7,
6798
7001
  get children () {
6799
7002
  return (0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
@@ -6857,6 +7060,7 @@ function $65a0c4b1c2eb5d0b$export$9dd50d35b9d94fdf({ get_search_query_: get_sear
6857
7060
 
6858
7061
 
6859
7062
 
7063
+
6860
7064
  const $f1d7cb69f839a526$var$_tmpl$ = [
6861
7065
  "<div",
6862
7066
  ' class="filter-results-for-one-row"><!--#-->',
@@ -6875,7 +7079,7 @@ const $f1d7cb69f839a526$var$_tmpl$ = [
6875
7079
  "<!--/--></div>"
6876
7080
  ];
6877
7081
  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;
7082
+ 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
7083
  const [get_sorting] = current_sorting_;
6880
7084
  const all_products_loaded_ = (0, $diwD4$solidjs.createSignal)(false);
6881
7085
  const [get_all_products_loaded, set_all_products_loaded] = all_products_loaded_;
@@ -6995,13 +7199,14 @@ function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
6995
7199
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
6996
7200
  });
6997
7201
  const results_filters = (0, $diwD4$solidjs.createSignal)();
7202
+ const owner = (0, $diwD4$solidjs.getOwner)();
6998
7203
  (0, $diwD4$solidjs.onCleanup)((0, $diwD4$depictaiutilishared.javascript_media_query)("(max-width:600px)", async ({ matches: matches })=>{
6999
7204
  results_filters[1]();
7000
7205
  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)));
7206
+ (0, $diwD4$solidjs.runWithOwner)(owner, ()=>results_filters[1](matches ? [
7207
+ results_for,
7208
+ filters_opener
7209
+ ] : (0, $diwD4$solidjsweb.ssr)($f1d7cb69f839a526$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(results_for), (0, $diwD4$solidjsweb.escape)(filters_opener))));
7005
7210
  }).remove);
7006
7211
  (0, $diwD4$depictaiutilishared.catchify)((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
7007
7212
  scroll_restoration_data_: scroll_restoration_data_,
@@ -7023,14 +7228,13 @@ function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
7023
7228
  (0, $341a019928b8b91e$export$c7e181728ad525f)(location);
7024
7229
  });
7025
7230
  return [
7026
- document.createComment("Search page based on Depict SDK"),
7231
+ (0, $diwD4$solidjsweb.isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"),
7027
7232
  (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
7233
  severity_: "error",
7029
7234
  message_: "Category suggestions failed",
7030
7235
  get children () {
7031
7236
  return (0, $diwD4$solidjsweb.createComponent)((0, $04048c1bef16c249$export$c05a196222ba1302), {
7032
7237
  suggestions_: suggestions,
7033
- slider_arrow_button_: slider_arrow_button_,
7034
7238
  children: make_category_suggestion_card_
7035
7239
  });
7036
7240
  }
@@ -7048,7 +7252,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715(opts) {
7048
7252
  i18n_: i18n_,
7049
7253
  selected_filters_: selected_filters_,
7050
7254
  local_filter_cache_: local_filter_cache_,
7051
- slider_arrow_button_: slider_arrow_button_,
7052
7255
  search_filters_open_: search_filters_open_,
7053
7256
  search_sorting_open_: search_sorting_open_,
7054
7257
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -7167,6 +7370,7 @@ function $d8e94ea381ab57fa$export$828dcdd425fd3231(aligner) {
7167
7370
 
7168
7371
 
7169
7372
 
7373
+
7170
7374
  const $2c61e4cd8229c49a$var$_tmpl$ = [
7171
7375
  "<div",
7172
7376
  ' class="depict plp search">',
@@ -7188,7 +7392,8 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
7188
7392
  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
7393
  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
7394
  (0, $diwD4$solidjs.runWithOwner)(owner, ()=>{
7191
- if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#has_been_constructed) throw new Error("You can only have one instance of DepictSearch");
7395
+ 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
7396
+ throw new Error("You can only have one instance of DepictSearch");
7192
7397
  Object.assign(this, props_on_class);
7193
7398
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
7194
7399
  const { current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , search_query_accessor_: raw_search_query_accessor } = (0, $c79fd10a3ab7d6e0$export$477caf01aecaeb2a)({
@@ -7196,7 +7401,7 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
7196
7401
  router_: this.#router
7197
7402
  });
7198
7403
  const [reset_history_state_, state_] = (0, $26a56f6b44703084$export$9862539c89138352)(()=>({
7199
- search_field_value: new URLSearchParams(location.search).get(search_query_url_param_name_) ?? "",
7404
+ search_field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
7200
7405
  search_filters_open: false,
7201
7406
  search_sorting_open: false,
7202
7407
  search_expanded_filters: [],
@@ -7455,10 +7660,6 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
7455
7660
  cols_at_size: (0, $4e04be41243c3d80$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
7456
7661
  ...grid_spacing_override
7457
7662
  } : undefined,
7458
- slider_arrow_button_: (0, $diwD4$depictaiutilishared.GenericSliderArrowButton)({
7459
- height_: 12,
7460
- width_: 6.46
7461
- }),
7462
7663
  product_card_template_: product_card_template
7463
7664
  });
7464
7665
  }, "Entire SearchPage failed");