@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.
@@ -1,12 +1,40 @@
1
- import {add_to_version_info as $cV3wj$add_to_version_info, fetch_recs as $cV3wj$fetch_recs, snakeCasifyObject as $cV3wj$snakeCasifyObject, GenericSliderArrowButton as $cV3wj$GenericSliderArrowButton, catchify as $cV3wj$catchify, instant_exec_on_suspect_history_change as $cV3wj$instant_exec_on_suspect_history_change, base_url as $cV3wj$base_url, dlog as $cV3wj$dlog, get_depict_id as $cV3wj$get_depict_id, get_user_id as $cV3wj$get_user_id, get_session_id as $cV3wj$get_session_id, make_url_with_query_params as $cV3wj$make_url_with_query_params, fetch_retry as $cV3wj$fetch_retry, add_version_query_params as $cV3wj$add_version_query_params, sort_obj as $cV3wj$sort_obj, report as $cV3wj$report, javascript_media_query as $cV3wj$javascript_media_query, standard_price_format as $cV3wj$standard_price_format, observer as $cV3wj$observer, make_random_classname as $cV3wj$make_random_classname, n_col_styling_with_dist as $cV3wj$n_col_styling_with_dist, CrossIcon as $cV3wj$CrossIcon, useExpandingContainer as $cV3wj$useExpandingContainer, Amazing_Slider as $cV3wj$Amazing_Slider, slider_snap_css as $cV3wj$slider_snap_css, slider_fading_factory as $cV3wj$slider_fading_factory, MinusIcon as $cV3wj$MinusIcon, FilterIcon as $cV3wj$FilterIcon, SortIconAsc as $cV3wj$SortIconAsc, SortIconDesc as $cV3wj$SortIconDesc, PlusIcon as $cV3wj$PlusIcon, hsl_to_rgb as $cV3wj$hsl_to_rgb, relative_luminance_from_rgb as $cV3wj$relative_luminance_from_rgb, TickIcon as $cV3wj$TickIcon, ArrowUp as $cV3wj$ArrowUp, base64_encode_unicode as $cV3wj$base64_encode_unicode, base64_decode_unicode as $cV3wj$base64_decode_unicode, queueMacroTask as $cV3wj$queueMacroTask, dwarn as $cV3wj$dwarn, BackIcon as $cV3wj$BackIcon, SearchIcon as $cV3wj$SearchIcon, Layout as $cV3wj$Layout, async_iterable_ipns as $cV3wj$async_iterable_ipns, make_asyncIterable_exiter as $cV3wj$make_asyncIterable_exiter, href_change_ipns as $cV3wj$href_change_ipns, ContainedImage as $cV3wj$ContainedImage, deparallelize_no_drop as $cV3wj$deparallelize_no_drop, PreviousSearchIcon as $cV3wj$PreviousSearchIcon, insert_surfaces as $cV3wj$insert_surfaces} from "@depict-ai/utilishared";
2
- import {ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrAttribute as $cV3wj$ssrAttribute, escape as $cV3wj$escape, createComponent as $cV3wj$createComponent, ssrClassList as $cV3wj$ssrClassList, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps, ssrElement as $cV3wj$ssrElement} from "solid-js/web";
1
+ import {add_to_version_info as $cV3wj$add_to_version_info, fetch_recs as $cV3wj$fetch_recs, snakeCasifyObject as $cV3wj$snakeCasifyObject, catchify as $cV3wj$catchify, instant_exec_on_suspect_history_change as $cV3wj$instant_exec_on_suspect_history_change, base_url as $cV3wj$base_url, dlog as $cV3wj$dlog, get_depict_id as $cV3wj$get_depict_id, get_user_id as $cV3wj$get_user_id, get_session_id as $cV3wj$get_session_id, make_url_with_query_params as $cV3wj$make_url_with_query_params, fetch_retry as $cV3wj$fetch_retry, add_version_query_params as $cV3wj$add_version_query_params, sort_obj as $cV3wj$sort_obj, report as $cV3wj$report, javascript_media_query as $cV3wj$javascript_media_query, standard_price_format as $cV3wj$standard_price_format, observer as $cV3wj$observer, make_random_classname as $cV3wj$make_random_classname, n_col_styling_with_dist as $cV3wj$n_col_styling_with_dist, useExpandingContainer as $cV3wj$useExpandingContainer, Amazing_Slider as $cV3wj$Amazing_Slider, slider_snap_css as $cV3wj$slider_snap_css, slider_fading_factory as $cV3wj$slider_fading_factory, hsl_to_rgb as $cV3wj$hsl_to_rgb, relative_luminance_from_rgb as $cV3wj$relative_luminance_from_rgb, base64_encode_unicode as $cV3wj$base64_encode_unicode, base64_decode_unicode as $cV3wj$base64_decode_unicode, queueMacroTask as $cV3wj$queueMacroTask, dwarn as $cV3wj$dwarn, Layout as $cV3wj$Layout, async_iterable_ipns as $cV3wj$async_iterable_ipns, make_asyncIterable_exiter as $cV3wj$make_asyncIterable_exiter, href_change_ipns as $cV3wj$href_change_ipns, ContainedImage as $cV3wj$ContainedImage, deparallelize_no_drop as $cV3wj$deparallelize_no_drop, insert_surfaces as $cV3wj$insert_surfaces} from "@depict-ai/utilishared";
2
+ import {ssrElement as $cV3wj$ssrElement, ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrAttribute as $cV3wj$ssrAttribute, escape as $cV3wj$escape, isServer as $cV3wj$isServer, createComponent as $cV3wj$createComponent, ssrClassList as $cV3wj$ssrClassList, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps} from "solid-js/web";
3
3
  import {createSignal as $cV3wj$createSignal, getOwner as $cV3wj$getOwner, createRoot as $cV3wj$createRoot, runWithOwner as $cV3wj$runWithOwner, onCleanup as $cV3wj$onCleanup, createComputed as $cV3wj$createComputed, createRenderEffect as $cV3wj$createRenderEffect, createEffect as $cV3wj$createEffect, untrack as $cV3wj$untrack, batch as $cV3wj$batch, createResource as $cV3wj$createResource, createMemo as $cV3wj$createMemo, Show as $cV3wj$Show, createReaction as $cV3wj$createReaction, Suspense as $cV3wj$Suspense, on as $cV3wj$on, ErrorBoundary as $cV3wj$ErrorBoundary, For as $cV3wj$For, Index as $cV3wj$Index} from "solid-js";
4
4
 
5
- /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.0.15";
5
+ /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.0.18";
6
6
 
7
7
 
8
8
 
9
9
 
10
+
11
+ const $19976a74d273070d$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>';
12
+ function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
13
+ return (0, $cV3wj$ssrElement)("svg", ()=>({
14
+ ...props,
15
+ "xmlns": "http://www.w3.org/2000/svg",
16
+ "width": "21.064",
17
+ "height": "21.047",
18
+ "viewBox": "0 0 21.064 21.064"
19
+ }), ()=>(0, $cV3wj$ssr)($19976a74d273070d$var$_tmpl$), true);
20
+ }
21
+
22
+
23
+
24
+
25
+
26
+
27
+ const $fbbadcb080ad1d4a$var$_tmpl$ = [
28
+ "<svg",
29
+ ' xmlns="http://www.w3.org/2000/svg"',
30
+ ' 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>'
31
+ ];
32
+ function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
33
+ return (0, $cV3wj$ssr)($fbbadcb080ad1d4a$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("width", (0, $cV3wj$escape)(props.width_, true) ?? 14, false) + (0, $cV3wj$ssrAttribute)("height", (0, $cV3wj$escape)(props.height_, true) ?? 26, false));
34
+ }
35
+
36
+
37
+
10
38
  async function $c58717f39bf51647$export$58e808b1db15d3bc({ merchant: merchant , market: market , headers: headers , ...fetch_recs_options }) {
11
39
  return await (0, $cV3wj$fetch_recs)({
12
40
  tenant: merchant,
@@ -23,7 +51,6 @@ async function $c58717f39bf51647$export$58e808b1db15d3bc({ merchant: merchant ,
23
51
 
24
52
 
25
53
 
26
-
27
54
  function $ca6f574bd8772184$export$e183a13865960371(params_to_default_value, router_) {
28
55
  const signals = {};
29
56
  const entries = Object.entries(params_to_default_value);
@@ -33,7 +60,9 @@ function $ca6f574bd8772184$export$e183a13865960371(params_to_default_value, rout
33
60
  // createRenderEffect because we need the instant execution so the signals always contain values, even before solid's render phase
34
61
  (0, $cV3wj$createRenderEffect)(()=>{
35
62
  let signal_changed = false;
36
- let { state: state } = history; // cloning isn't necessary because we're calling replaceState on it anyway
63
+ let { state: state } = globalThis?.history || {
64
+ state: {}
65
+ }; // cloning isn't necessary because we're calling replaceState on it anyway
37
66
  if (state === null || typeof state != "object") state = {};
38
67
  for (const [param, default_value] of entries){
39
68
  const [read_signal] = signals[param] ||= (0, $cV3wj$createSignal)(state[param] ?? default_value);
@@ -144,10 +173,23 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
144
173
  let resolve_in_progress;
145
174
  cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
146
175
  try {
147
- const search_results = await (0, $cV3wj$fetch_retry)((0, $cV3wj$add_version_query_params)(endpoint1), {
176
+ let search_results = await (0, $cV3wj$fetch_retry)((0, $cV3wj$add_version_query_params)(endpoint1), {
148
177
  method: "POST",
149
178
  body: body
150
179
  });
180
+ if ("query_id" in request && request.type === "collection") // FIXME: Remove. Backwards compatibility layer
181
+ // This will retry the request without the collection type if the first request fails
182
+ {
183
+ if (!search_results || search_results?.status === 404) {
184
+ (0, $cV3wj$dlog)("Fallback request for collections due to failure");
185
+ const fallback_body = JSON.parse(body);
186
+ delete fallback_body.type;
187
+ search_results = await (0, $cV3wj$fetch_retry)((0, $cV3wj$add_version_query_params)(endpoint1), {
188
+ method: "POST",
189
+ body: JSON.stringify(fallback_body)
190
+ });
191
+ }
192
+ }
151
193
  if (!search_results || search_results.status !== 200) {
152
194
  const retval = fallback_response(input_req);
153
195
  resolve_in_progress(retval);
@@ -306,13 +348,14 @@ function $8c0f86cb3e266eeb$export$a71e92cfbb498adc(props) {
306
348
 
307
349
  function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
308
350
  const catchified_handler = (0, $cV3wj$catchify)(handler);
351
+ const owner = (0, $cV3wj$getOwner)();
309
352
  // 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.
310
353
  // Use observer in case that this gets called before body exists
311
354
  const disconnect = (0, $cV3wj$observer).onexists("body", ({ element: element })=>{
312
355
  element.addEventListener("scroll", catchified_handler, {
313
356
  passive: passive
314
357
  });
315
- (0, $cV3wj$onCleanup)(()=>element.removeEventListener("scroll", catchified_handler));
358
+ (0, $cV3wj$runWithOwner)(owner, ()=>(0, $cV3wj$onCleanup)(()=>element.removeEventListener("scroll", catchified_handler)));
316
359
  });
317
360
  (0, $cV3wj$onCleanup)(disconnect);
318
361
  for (const event of [
@@ -328,6 +371,7 @@ function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
328
371
  }
329
372
 
330
373
 
374
+
331
375
  const $6db49ca163afa2c3$var$_tmpl$ = [
332
376
  "<div",
333
377
  ' class="scroll-status" style="display:none"><span class="text"><b>',
@@ -337,6 +381,7 @@ const $6db49ca163afa2c3$var$_tmpl$ = [
337
381
  "</b></span></div>"
338
382
  ];
339
383
  function $6db49ca163afa2c3$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_ } }) {
384
+ if (0, $cV3wj$isServer) return; // won't show in initial render and need scroll position
340
385
  const [first_to_show, set_first_to_show] = (0, $cV3wj$createSignal)(0);
341
386
  const [last_to_show, set_last_to_show] = (0, $cV3wj$createSignal)(0);
342
387
  const [count_to_show, set_count_to_show] = (0, $cV3wj$createSignal)("");
@@ -469,6 +514,7 @@ const $598245ecfe38f34b$var$_tmpl$ = [
469
514
  "<!--/--></div>"
470
515
  ];
471
516
  function $598245ecfe38f34b$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
517
+ const root = (0, $cV3wj$getOwner)();
472
518
  return [
473
519
  (0, $cV3wj$ssr)($598245ecfe38f34b$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.no_results_text_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
474
520
  get when () {
@@ -482,8 +528,10 @@ function $598245ecfe38f34b$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hie
482
528
  }
483
529
 
484
530
 
531
+
485
532
  function $a458486f22b22f63$export$a2cc176055f8f08() {
486
- 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.");
533
+ 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.";
534
+ return (0, $cV3wj$isServer) ? `<!-- ${text} -->` : document.createComment(text);
487
535
  }
488
536
 
489
537
 
@@ -554,11 +602,20 @@ function $a52235d12ccf9c88$var$unwrapping_helper(elements) {
554
602
  }
555
603
 
556
604
 
605
+
557
606
  let $6e41f1fde994db72$var$cached_placeholder_element;
558
607
  let $6e41f1fde994db72$var$rendering_cached_placeholder_element;
559
608
  function $6e41f1fde994db72$export$f33414a4df0afd3f({ product_card_template_: product_card_template_ , num_placeholders_: num_placeholders_ }) {
560
609
  const [get_elements, set_elements] = (0, $cV3wj$createSignal)([]);
561
610
  let existing_num = 0;
611
+ if (0, $cV3wj$isServer) // want to render simple placeholders on server, effects don't run there
612
+ return (0, $cV3wj$createMemo)(()=>Array.from({
613
+ length: num_placeholders_()
614
+ }).map(()=>{
615
+ const template_result = product_card_template_(null, undefined);
616
+ // @ts-ignore
617
+ if (typeof template_result?.then !== "function") return template_result;
618
+ }));
562
619
  (0, $cV3wj$createRenderEffect)(()=>{
563
620
  const to_add = num_placeholders_() - existing_num;
564
621
  if (to_add <= 0) return;
@@ -751,22 +808,17 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({ displays_by_key_: displays_
751
808
  ];
752
809
  },
753
810
  children: (product_id, index)=>{
754
- // We're using `untrack` here since we don't want to react in here to displays_by_key changing
755
- // As long as our key stays the same we assume that the display hasn't changed, so we don't want to rerender
756
- // If the key gets removed, <For> will remove us
757
811
  const owner = (0, $cV3wj$getOwner)();
758
812
  const display_accessor = (0, $cV3wj$createMemo)(()=>displays_by_key_().get(product_id));
759
- const [product_card_resource] = (0, $cV3wj$createResource)((0, $cV3wj$createMemo)(()=>[
760
- merchant_(),
761
- market_()
762
- ]), // re-render when merchant or market changes
763
- ([merchant, market])=>{
813
+ const [product_card_resource] = (0, $cV3wj$createResource)(display_accessor, // re-render when the reference to the display object changes
814
+ // this should only be the case when the merchant or market changes and the new request has completed
815
+ (display)=>{
764
816
  // get display in the function that re-runs when merchant or market have changed, since the display may have changed but product_id not
765
- const display = (0, $cV3wj$untrack)(display_accessor);
766
817
  return product_card_template_(display, {
767
818
  set_on_index_change: (fn)=>(0, $cV3wj$runWithOwner)(owner, ()=>(0, $cV3wj$createEffect)(()=>fn(index()))),
768
- merchant: merchant,
769
- market: market
819
+ merchant: (0, $cV3wj$untrack)(merchant_),
820
+ // 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
821
+ market: (0, $cV3wj$untrack)(market_)
770
822
  });
771
823
  });
772
824
  const node_accessor = (0, $a52235d12ccf9c88$export$2f0cbfbb4354bb52)(product_card_resource);
@@ -922,7 +974,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
922
974
  const random_id = (0, $cV3wj$make_random_classname)();
923
975
  const selector_beginning_ = `.depict.plp #${random_id}>`;
924
976
  const [get_styling, set_styling_] = (0, $cV3wj$createSignal)("");
925
- const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $cV3wj$createSignal)(false);
977
+ const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $cV3wj$createSignal)(true);
926
978
  const rendered_placeholders = (0, $cV3wj$createMemo)(()=>get_should_have_placeholders_rendered() ? (0, $6e41f1fde994db72$export$f33414a4df0afd3f)({
927
979
  product_card_template_: product_card_template_,
928
980
  num_placeholders_: (0, $cV3wj$createMemo)(()=>{
@@ -1160,19 +1212,21 @@ function $6bb0a0c563dff4bb$export$e13dddbb31c3a42f() {
1160
1212
 
1161
1213
 
1162
1214
 
1215
+
1216
+
1163
1217
  const $f32e14878e75af51$var$_tmpl$ = [
1164
1218
  "<div",
1165
1219
  ">",
1166
1220
  "</div>"
1167
1221
  ];
1168
- function $f32e14878e75af51$export$6649caad96ef8870({ children: children , button_: button_ , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
1222
+ function $f32e14878e75af51$export$6649caad96ef8870({ children: children , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
1169
1223
  const slider = new (0, $cV3wj$Amazing_Slider)({
1170
1224
  button_contents: {
1171
1225
  left: [
1172
- (0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(button_.cloneNode(true)))
1226
+ (0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fbbadcb080ad1d4a$export$8be2714ec7f169ee), {})))
1173
1227
  ],
1174
1228
  right: [
1175
- (0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(button_.cloneNode(true)))
1229
+ (0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fbbadcb080ad1d4a$export$8be2714ec7f169ee), {})))
1176
1230
  ]
1177
1231
  },
1178
1232
  constructor_plugins: [
@@ -1193,6 +1247,7 @@ function $f32e14878e75af51$export$6649caad96ef8870({ children: children , button
1193
1247
  }
1194
1248
 
1195
1249
 
1250
+
1196
1251
  const $1adfe60f3a14a1d7$var$_tmpl$ = [
1197
1252
  "<button",
1198
1253
  ' class="clear-all-filters minor">',
@@ -1218,7 +1273,7 @@ const $1adfe60f3a14a1d7$var$_tmpl$ = [
1218
1273
  "<!--/--><span>",
1219
1274
  "</span></button>"
1220
1275
  ];
1221
- function $1adfe60f3a14a1d7$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_ }) {
1276
+ function $1adfe60f3a14a1d7$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_ }) {
1222
1277
  const { price_formatting_: price_formatting_ } = i18n_;
1223
1278
  const [read_selected_filters, write_selected_filters] = selected_filters_;
1224
1279
  const { collapse: collapse , expand: expand , ExpandingContainer: ExpandingContainer } = (0, $24e27fab9c821b86$export$5bad61ecde080b1f)({
@@ -1233,7 +1288,6 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected
1233
1288
  },
1234
1289
  get children () {
1235
1290
  return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.selected_filters_title_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f32e14878e75af51$export$6649caad96ef8870), {
1236
- button_: slider_arrow_button_,
1237
1291
  slider_ref_: (slider)=>slider.container.classList.add("filter-crumbs"),
1238
1292
  get children () {
1239
1293
  return [
@@ -1308,7 +1362,7 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected
1308
1362
  return (()=>{
1309
1363
  number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
1310
1364
  (0, $cV3wj$onCleanup)(()=>number_of_rendered_selected_filters_items_[1]((prev)=>prev - 1));
1311
- return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$CrossIcon), {})), (0, $cV3wj$escape)(price_formatting_().pre_), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
1365
+ return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$escape)(price_formatting_().pre_), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
1312
1366
  get price_ () {
1313
1367
  return filter().data[0];
1314
1368
  },
@@ -1371,7 +1425,7 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected
1371
1425
  return (()=>{
1372
1426
  number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
1373
1427
  (0, $cV3wj$onCleanup)(()=>number_of_rendered_selected_filters_items_[1]((prev)=>prev - 1));
1374
- return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$CrossIcon), {})), (0, $cV3wj$escape)(name()));
1428
+ return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$escape)(name()));
1375
1429
  })();
1376
1430
  }
1377
1431
  });
@@ -1481,7 +1535,6 @@ async function $194bd6b8e4c59830$export$79b1565500412d9b(search_modal, modal_fn_
1481
1535
 
1482
1536
 
1483
1537
 
1484
-
1485
1538
 
1486
1539
  const $87c712b5b33f24f7$var$_tmpl$ = [
1487
1540
  "<span",
@@ -1522,6 +1575,18 @@ const $87c712b5b33f24f7$export$48513f6b9f8ce62d = (props)=>{
1522
1575
 
1523
1576
 
1524
1577
 
1578
+
1579
+ const $f8a56ba74eedd0c6$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>';
1580
+ function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
1581
+ return (0, $cV3wj$ssrElement)("svg", ()=>({
1582
+ ...props,
1583
+ "xmlns": "http://www.w3.org/2000/svg",
1584
+ "width": "11",
1585
+ "height": "12"
1586
+ }), ()=>(0, $cV3wj$ssr)($f8a56ba74eedd0c6$var$_tmpl$), true);
1587
+ }
1588
+
1589
+
1525
1590
  const $67b173f9db427028$var$_tmpl$ = [
1526
1591
  "<button",
1527
1592
  ' type="button" class="',
@@ -1530,7 +1595,7 @@ const $67b173f9db427028$var$_tmpl$ = [
1530
1595
  "</span></button>"
1531
1596
  ];
1532
1597
  function $67b173f9db427028$export$ca21a16d65b3dd8({ show_extras_: [get_show_extras, set_show_extras] , i18n_: i18n_ }) {
1533
- return (0, $cV3wj$ssr)($67b173f9db427028$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$PlusIcon), {})), get_show_extras() ? (0, $cV3wj$escape)(i18n_.view_less_()) : (0, $cV3wj$escape)(i18n_.view_more_()));
1598
+ return (0, $cV3wj$ssr)($67b173f9db427028$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f8a56ba74eedd0c6$export$f21ab0717a89c77f), {})), get_show_extras() ? (0, $cV3wj$escape)(i18n_.view_less_()) : (0, $cV3wj$escape)(i18n_.view_more_()));
1534
1599
  }
1535
1600
 
1536
1601
 
@@ -2537,6 +2602,18 @@ var $12497d09ef87296e$export$2e2bcd8739ae039 = {
2537
2602
 
2538
2603
 
2539
2604
 
2605
+
2606
+ const $9bc34983fc5f7bdb$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>';
2607
+ function $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4(props = {}) {
2608
+ return (0, $cV3wj$ssrElement)("svg", ()=>({
2609
+ "xmlns": "http://www.w3.org/2000/svg",
2610
+ "width": "16.8",
2611
+ "height": "14",
2612
+ ...props
2613
+ }), ()=>(0, $cV3wj$ssr)($9bc34983fc5f7bdb$var$_tmpl$), true);
2614
+ }
2615
+
2616
+
2540
2617
  const $a7b58cb3bcffd156$var$_tmpl$ = [
2541
2618
  "<span",
2542
2619
  ' class="show-selected" aria-hidden="true"><span>',
@@ -2598,7 +2675,7 @@ function $a7b58cb3bcffd156$export$53c59af873b303c9({ selected_filters_in_group_:
2598
2675
  return show_tick_icon();
2599
2676
  },
2600
2677
  get children () {
2601
- return (0, $cV3wj$createComponent)((0, $cV3wj$TickIcon), {});
2678
+ return (0, $cV3wj$createComponent)((0, $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4), {});
2602
2679
  }
2603
2680
  })));
2604
2681
  }
@@ -2695,6 +2772,7 @@ function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
2695
2772
  }
2696
2773
 
2697
2774
 
2775
+
2698
2776
  const $fab07f52c9861732$var$_tmpl$ = [
2699
2777
  "<div",
2700
2778
  ' class="filter-collapsible">',
@@ -2862,7 +2940,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
2862
2940
  return a_filter_is_selected();
2863
2941
  },
2864
2942
  get children () {
2865
- return (0, $cV3wj$ssr)($fab07f52c9861732$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$CrossIcon), {})), (0, $cV3wj$escape)(props.i18n_.clear_individual_filter_()));
2943
+ return (0, $cV3wj$ssr)($fab07f52c9861732$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$escape)(props.i18n_.clear_individual_filter_()));
2866
2944
  }
2867
2945
  })));
2868
2946
  }
@@ -3057,6 +3135,49 @@ function $aea1edf92433e81e$export$fe334901e8bebd57() {
3057
3135
 
3058
3136
 
3059
3137
 
3138
+
3139
+
3140
+
3141
+ const $e1bb71e65e01a3a0$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>', $e1bb71e65e01a3a0$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>';
3142
+ function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
3143
+ return (0, $cV3wj$ssrElement)("svg", ()=>({
3144
+ "xmlns": "http://www.w3.org/2000/svg",
3145
+ "width": "14",
3146
+ "height": "14",
3147
+ "class": "sort-icon",
3148
+ ...props
3149
+ }), ()=>[
3150
+ (0, $cV3wj$ssr)($e1bb71e65e01a3a0$var$_tmpl$),
3151
+ (0, $cV3wj$ssr)($e1bb71e65e01a3a0$var$_tmpl$2)
3152
+ ], true);
3153
+ }
3154
+
3155
+
3156
+
3157
+
3158
+ const $05fbe84eb34564ec$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>';
3159
+ function $05fbe84eb34564ec$export$d10e63059ddb9fd4(props = {}) {
3160
+ return (0, $cV3wj$ssrElement)("svg", ()=>({
3161
+ "xmlns": "http://www.w3.org/2000/svg",
3162
+ "width": "14",
3163
+ "height": "14",
3164
+ "class": "sort-icon",
3165
+ ...props
3166
+ }), ()=>(0, $cV3wj$ssr)($05fbe84eb34564ec$var$_tmpl$), true);
3167
+ }
3168
+
3169
+
3170
+
3171
+
3172
+ const $b9bf7fce0ae60241$var$_tmpl$ = [
3173
+ "<svg",
3174
+ ' 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>'
3175
+ ];
3176
+ function $b9bf7fce0ae60241$export$28f6150e232898de() {
3177
+ return (0, $cV3wj$ssr)($b9bf7fce0ae60241$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
3178
+ }
3179
+
3180
+
3060
3181
  const $757dac7f7c6c5241$var$_tmpl$ = [
3061
3182
  "<button",
3062
3183
  ' class="clear minor">',
@@ -3140,7 +3261,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({ args_for_sorting_: args_for
3140
3261
  });
3141
3262
  (0, $cV3wj$onCleanup)(resolve_cleanup_promise);
3142
3263
  return [
3143
- (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.close_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$CrossIcon), {})), (0, $cV3wj$ssrStyle)(modal_scrolling_prevented[0]() ? "overflow:hidden" : ""), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
3264
+ (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.close_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$ssrStyle)(modal_scrolling_prevented[0]() ? "overflow:hidden" : ""), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
3144
3265
  is_open_: [
3145
3266
  sorting_expanded,
3146
3267
  set_sorting_expanded
@@ -3149,7 +3270,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({ args_for_sorting_: args_for
3149
3270
  return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)());
3150
3271
  },
3151
3272
  get summary_ () {
3152
- return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), args_for_sorting_.current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$SortIconAsc), {})) : (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$SortIconDesc), {})), (0, $cV3wj$escape)(i18n_.sorting_text_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
3273
+ return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), args_for_sorting_.current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $e1bb71e65e01a3a0$export$da32f7add8a22e86), {})) : (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $05fbe84eb34564ec$export$d10e63059ddb9fd4), {})), (0, $cV3wj$escape)(i18n_.sorting_text_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
3153
3274
  expanded_: sorting_expanded,
3154
3275
  i18n_: i18n_
3155
3276
  })));
@@ -3166,7 +3287,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({ args_for_sorting_: args_for
3166
3287
  return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$6, (0, $cV3wj$ssrHydrationKey)());
3167
3288
  },
3168
3289
  get summary_ () {
3169
- return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$FilterIcon), {})), (0, $cV3wj$escape)(i18n_.filters_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
3290
+ return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $b9bf7fce0ae60241$export$28f6150e232898de), {})), (0, $cV3wj$escape)(i18n_.filters_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
3170
3291
  expanded_: filters_expanded,
3171
3292
  i18n_: i18n_
3172
3293
  })));
@@ -3338,6 +3459,21 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({ available_filters_: availab
3338
3459
  }
3339
3460
 
3340
3461
 
3462
+
3463
+
3464
+ const $11d594c749b76228$var$_tmpl$ = [
3465
+ "<svg",
3466
+ ' 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>'
3467
+ ];
3468
+ function $11d594c749b76228$export$cb808a3c41736d8e() {
3469
+ return (0, $cV3wj$ssr)($11d594c749b76228$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
3470
+ }
3471
+
3472
+
3473
+
3474
+
3475
+
3476
+
3341
3477
  const $cdea4cf8c5c071ef$var$_tmpl$ = [
3342
3478
  "<div",
3343
3479
  ' class="filters"><div class="body">',
@@ -3377,112 +3513,114 @@ const $cdea4cf8c5c071ef$var$_tmpl$ = [
3377
3513
  "<!--/--></button>"
3378
3514
  ];
3379
3515
  function $cdea4cf8c5c071ef$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_ }) {
3380
- // @ts-ignore
3381
- return (0, $b7436a6d1fd64e3b$export$b69d0d92862de18b)({
3382
- severity_: "error",
3383
- message_: "Sorting and filters failed",
3384
- get children () {
3385
- // 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
3386
- (0, $5efb5894079b220e$export$b288c38ae3fddb56)({
3387
- available_filters_: available_filters_,
3388
- selected_filters_: selected_filters_,
3389
- local_filter_cache_: local_filter_cache_
3390
- });
3391
- const cleanup_promise = new Promise((r)=>(0, $cV3wj$onCleanup)(r));
3392
- const [filters_open, set_filters_open] = search_filters_open_;
3393
- const [sorting_open, set_sorting_open] = search_sorting_open_;
3394
- const [get_current_sorting_] = current_sorting_;
3395
- const [is_small, set_is_small] = (0, $cV3wj$createSignal)(false);
3396
- const dismiss_modal_ = (0, $cV3wj$catchify)(()=>{
3397
- set_filters_open(false);
3398
- set_sorting_open(false);
3516
+ const Self = ()=>{
3517
+ // 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
3518
+ (0, $5efb5894079b220e$export$b288c38ae3fddb56)({
3519
+ available_filters_: available_filters_,
3520
+ selected_filters_: selected_filters_,
3521
+ local_filter_cache_: local_filter_cache_
3522
+ });
3523
+ const cleanup_promise = new Promise((r)=>(0, $cV3wj$onCleanup)(r));
3524
+ const [filters_open, set_filters_open] = search_filters_open_;
3525
+ const [sorting_open, set_sorting_open] = search_sorting_open_;
3526
+ const [get_current_sorting_] = current_sorting_;
3527
+ const [is_small, set_is_small] = (0, $cV3wj$createSignal)(false);
3528
+ const dismiss_modal_ = (0, $cV3wj$catchify)(()=>{
3529
+ set_filters_open(false);
3530
+ set_sorting_open(false);
3531
+ });
3532
+ const meta_of_currently_selected_sorting_ = (0, $cV3wj$createMemo)(()=>available_sortings_()?.find?.((sorting)=>sorting.field === get_current_sorting_()?.field)?.meta);
3533
+ const filter_options = {
3534
+ expanded_hierarchical_filters_: expanded_hierarchical_filters_,
3535
+ local_filter_cache_: local_filter_cache_,
3536
+ available_filters_: available_filters_,
3537
+ expanded_filters_: expanded_filters_,
3538
+ selected_filters_: selected_filters_,
3539
+ i18n_: i18n_
3540
+ };
3541
+ const sorting_options = {
3542
+ current_sorting_: current_sorting_,
3543
+ available_sortings_: available_sortings_,
3544
+ meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3545
+ };
3546
+ const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenFiltersButton, {
3547
+ tabindex_: is_tabbable ? 0 : -1,
3548
+ i18n_: i18n_,
3549
+ search_filters_open_: search_filters_open_,
3550
+ search_sorting_open_: search_sorting_open_,
3551
+ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
3552
+ filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
3399
3553
  });
3400
- const meta_of_currently_selected_sorting_ = (0, $cV3wj$createMemo)(()=>available_sortings_()?.find?.((sorting)=>sorting.field === get_current_sorting_()?.field)?.meta);
3401
- const filter_options = {
3402
- expanded_hierarchical_filters_: expanded_hierarchical_filters_,
3403
- local_filter_cache_: local_filter_cache_,
3404
- available_filters_: available_filters_,
3405
- expanded_filters_: expanded_filters_,
3406
- selected_filters_: selected_filters_,
3407
- i18n_: i18n_
3408
- };
3409
- const sorting_options = {
3410
- current_sorting_: current_sorting_,
3554
+ const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenSortingButton, {
3555
+ tabindex_: is_tabbable ? 0 : -1,
3556
+ i18n_: i18n_,
3557
+ get_current_sorting_: get_current_sorting_,
3558
+ search_filters_open_: search_filters_open_,
3559
+ search_sorting_open_: search_sorting_open_,
3411
3560
  available_sortings_: available_sortings_,
3561
+ sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
3412
3562
  meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3413
- };
3414
- const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenFiltersButton, {
3415
- tabindex_: is_tabbable ? 0 : -1,
3416
- i18n_: i18n_,
3417
- search_filters_open_: search_filters_open_,
3418
- search_sorting_open_: search_sorting_open_,
3419
- number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
3420
- filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
3421
- });
3422
- const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenSortingButton, {
3423
- tabindex_: is_tabbable ? 0 : -1,
3424
- i18n_: i18n_,
3425
- get_current_sorting_: get_current_sorting_,
3426
- search_filters_open_: search_filters_open_,
3427
- search_sorting_open_: search_sorting_open_,
3428
- available_sortings_: available_sortings_,
3429
- sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
3430
- meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
3431
- });
3432
- let open_modal_;
3433
- let close_modal_;
3434
- let grid_is_in_original_state = true;
3435
- (0, $cV3wj$createComputed)(()=>{
3436
- const fi_o = filters_open();
3437
- const so_o = sorting_open();
3438
- const i_s = is_small();
3439
- // 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
3440
- if ((fi_o || so_o) && !i_s) {
3441
- if (!grid_is_in_original_state) return;
3442
- set_sort_or_filter_open_(true);
3443
- grid_is_in_original_state = false;
3444
- } else if (!grid_is_in_original_state) {
3445
- set_sort_or_filter_open_(false);
3446
- grid_is_in_original_state = true;
3447
- }
3448
3563
  });
3449
- (0, $cV3wj$createEffect)(()=>{
3450
- if (!filters_open() && !sorting_open()) {
3451
- close_modal_?.();
3452
- set_extra_els_in_results_container_("");
3453
- } else if (is_small()) {
3454
- if ((0, $cV3wj$untrack)(()=>input_modal_open_?.())) {
3455
- // we don't want to shove another modal into the users face, silently close the filters for them
3456
- set_filters_open(false);
3457
- set_sorting_open(false);
3458
- return;
3459
- }
3460
- open_modal_?.();
3461
- set_extra_els_in_results_container_("");
3462
- } else {
3463
- close_modal_?.();
3464
- if (filters_open()) set_extra_els_in_results_container_((0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), filter_options))));
3465
- else set_extra_els_in_results_container_((0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $68a258a92b88f02f$export$1f1775a58da589b5), sorting_options))));
3564
+ let open_modal_;
3565
+ let close_modal_;
3566
+ let grid_is_in_original_state = true;
3567
+ (0, $cV3wj$createComputed)(()=>{
3568
+ const fi_o = filters_open();
3569
+ const so_o = sorting_open();
3570
+ const i_s = is_small();
3571
+ // 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
3572
+ if ((fi_o || so_o) && !i_s) {
3573
+ if (!grid_is_in_original_state) return;
3574
+ set_sort_or_filter_open_(true);
3575
+ grid_is_in_original_state = false;
3576
+ } else if (!grid_is_in_original_state) {
3577
+ set_sort_or_filter_open_(false);
3578
+ grid_is_in_original_state = true;
3579
+ }
3580
+ });
3581
+ (0, $cV3wj$createEffect)(()=>{
3582
+ if (!filters_open() && !sorting_open()) {
3583
+ close_modal_?.();
3584
+ set_extra_els_in_results_container_("");
3585
+ } else if (is_small()) {
3586
+ if ((0, $cV3wj$untrack)(()=>input_modal_open_?.())) {
3587
+ // we don't want to shove another modal into the users face, silently close the filters for them
3588
+ set_filters_open(false);
3589
+ set_sorting_open(false);
3590
+ return;
3466
3591
  }
3467
- });
3468
- (0, $cV3wj$catchify)(async ()=>{
3469
- ({ open_modal_: open_modal_ , close_modal_: close_modal_ } = await (0, $194bd6b8e4c59830$export$79b1565500412d9b)((0, $757dac7f7c6c5241$export$9bf11afa910f536e), {
3470
- args_for_sorting_: sorting_options,
3471
- args_for_filtering_: filter_options,
3472
- search_filters_open_: search_filters_open_,
3473
- search_sorting_open_: search_sorting_open_,
3474
- formatted_number_of_results_: formatted_number_of_results_,
3475
- dismiss_modal_: dismiss_modal_,
3476
- i18n_: i18n_
3477
- }));
3478
- const { remove: remove } = (0, $cV3wj$javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches));
3479
- cleanup_promise.then(remove);
3480
- })();
3481
- get_extra_filters_button_?.(make_open_filters_button());
3482
- get_extra_sorting_button_?.(make_open_sorting_button());
3483
- return (0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(make_open_filters_button(true, true)), (0, $cV3wj$escape)(middle_elements_?.()), (0, $cV3wj$escape)(make_open_sorting_button(true, true)));
3592
+ open_modal_?.();
3593
+ set_extra_els_in_results_container_("");
3594
+ } else {
3595
+ close_modal_?.();
3596
+ if (filters_open()) set_extra_els_in_results_container_((0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), filter_options))));
3597
+ else set_extra_els_in_results_container_((0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $68a258a92b88f02f$export$1f1775a58da589b5), sorting_options))));
3598
+ }
3599
+ });
3600
+ (0, $cV3wj$catchify)(async ()=>{
3601
+ ({ open_modal_: open_modal_ , close_modal_: close_modal_ } = await (0, $194bd6b8e4c59830$export$79b1565500412d9b)((0, $757dac7f7c6c5241$export$9bf11afa910f536e), {
3602
+ args_for_sorting_: sorting_options,
3603
+ args_for_filtering_: filter_options,
3604
+ search_filters_open_: search_filters_open_,
3605
+ search_sorting_open_: search_sorting_open_,
3606
+ formatted_number_of_results_: formatted_number_of_results_,
3607
+ dismiss_modal_: dismiss_modal_,
3608
+ i18n_: i18n_
3609
+ }));
3610
+ const { remove: remove } = (0, $cV3wj$javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches));
3611
+ cleanup_promise.then(remove);
3612
+ })();
3613
+ get_extra_filters_button_?.(make_open_filters_button());
3614
+ get_extra_sorting_button_?.(make_open_sorting_button());
3615
+ return (0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(make_open_filters_button(true, true)), (0, $cV3wj$escape)(middle_elements_?.()), (0, $cV3wj$escape)(make_open_sorting_button(true, true)));
3616
+ };
3617
+ return (0, $cV3wj$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
3618
+ message_: "Sorting and filters failed",
3619
+ severity_: "error",
3620
+ get children () {
3621
+ return (0, $cV3wj$createComponent)(Self, {});
3484
3622
  }
3485
- })();
3623
+ });
3486
3624
  }
3487
3625
  function $cdea4cf8c5c071ef$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] }) {
3488
3626
  const filters_closed = (0, $cV3wj$createMemo)(()=>!search_filters_open_[0]());
@@ -3494,17 +3632,17 @@ function $cdea4cf8c5c071ef$var$OpenFiltersButton({ i18n_: i18n_ , search_filters
3494
3632
  get children () {
3495
3633
  return (0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrStyle)(filters_closed() ? `` : `opacity:0`), (0, $cV3wj$escape)(num_selected_filters()));
3496
3634
  }
3497
- })), (0, $cV3wj$ssrAttribute)("tabindex", (0, $cV3wj$escape)(tabindex_, true), false), `${!filters_closed() ? "major" : ""} ${filters_closed() ? "minor" : ""}${"filter toggle-button major-minor-transition"}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)((filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(), true), false), (0, $cV3wj$ssrStyle)(filter_button_width_?.() ? {
3635
+ })), (0, $cV3wj$ssrAttribute)("tabindex", (0, $cV3wj$escape)(tabindex_, true), false), `${!filters_closed() ? "major" : ""} ${filters_closed() ? "minor" : ""}${"filter toggle-button major-minor-transition" + ((0, $cV3wj$isServer) ? " minor" : "")}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)((filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(), true), false), (0, $cV3wj$ssrStyle)(filter_button_width_?.() ? {
3498
3636
  width: filter_button_width_() + "px"
3499
3637
  } : {}), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
3500
3638
  get when () {
3501
3639
  return filters_closed();
3502
3640
  },
3503
3641
  get fallback () {
3504
- return (0, $cV3wj$createComponent)((0, $cV3wj$MinusIcon), {});
3642
+ return (0, $cV3wj$createComponent)((0, $11d594c749b76228$export$cb808a3c41736d8e), {});
3505
3643
  },
3506
3644
  get children () {
3507
- return (0, $cV3wj$createComponent)((0, $cV3wj$FilterIcon), {});
3645
+ return (0, $cV3wj$createComponent)((0, $b9bf7fce0ae60241$export$28f6150e232898de), {});
3508
3646
  }
3509
3647
  })), (0, $cV3wj$escape)(i18n_.filter_text_()));
3510
3648
  }
@@ -3521,10 +3659,10 @@ function $cdea4cf8c5c071ef$var$OpenSortingButton({ i18n_: i18n_ , get_current_so
3521
3659
  return sorting_closed();
3522
3660
  },
3523
3661
  get fallback () {
3524
- return (0, $cV3wj$createComponent)((0, $cV3wj$MinusIcon), {});
3662
+ return (0, $cV3wj$createComponent)((0, $11d594c749b76228$export$cb808a3c41736d8e), {});
3525
3663
  },
3526
3664
  get children () {
3527
- return get_current_sorting_()?.order === "asc" ? (0, $cV3wj$createComponent)((0, $cV3wj$SortIconAsc), {}) : (0, $cV3wj$createComponent)((0, $cV3wj$SortIconDesc), {});
3665
+ return get_current_sorting_()?.order === "asc" ? (0, $cV3wj$createComponent)((0, $e1bb71e65e01a3a0$export$da32f7add8a22e86), {}) : (0, $cV3wj$createComponent)((0, $05fbe84eb34564ec$export$d10e63059ddb9fd4), {});
3528
3666
  }
3529
3667
  })));
3530
3668
  }
@@ -3641,6 +3779,21 @@ function $bf52d9f9eebd1938$export$5196e4c01fa56fcb({ children: children , on_clo
3641
3779
 
3642
3780
 
3643
3781
 
3782
+
3783
+
3784
+
3785
+
3786
+
3787
+ const $f9182ab2348d1080$var$_tmpl$ = [
3788
+ "<svg",
3789
+ ' 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>'
3790
+ ];
3791
+ function $f9182ab2348d1080$export$2624c5890f1bbcf7() {
3792
+ return (0, $cV3wj$ssr)($f9182ab2348d1080$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
3793
+ }
3794
+
3795
+
3796
+
3644
3797
  const $0b0380f75d729d63$var$_tmpl$ = [
3645
3798
  "<div",
3646
3799
  ' class="',
@@ -3653,6 +3806,7 @@ const $0b0380f75d729d63$var$_tmpl$ = [
3653
3806
  "</div></button></div>"
3654
3807
  ];
3655
3808
  function $0b0380f75d729d63$export$b23abd26de154ede(props) {
3809
+ if (0, $cV3wj$isServer) return; // won't show in initial render and need scroll position
3656
3810
  const [is_small, set_is_small] = (0, $cV3wj$createSignal)(true);
3657
3811
  (0, $cV3wj$onCleanup)((0, $cV3wj$javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
3658
3812
  return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
@@ -3735,7 +3889,7 @@ function $0b0380f75d729d63$var$ActualFloatingButtons({ search_filters_open_: [ge
3735
3889
  await cleanup_promise;
3736
3890
  is.disconnect();
3737
3891
  }));
3738
- return (0, $cV3wj$ssr)($0b0380f75d729d63$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `floating-buttons ${is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast() ? "show-them" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.filter_text_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$FilterIcon), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.sorting_text_(), true), false), current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$SortIconAsc), {})) : (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$SortIconDesc), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.scroll_to_top_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$ArrowUp), {})));
3892
+ return (0, $cV3wj$ssr)($0b0380f75d729d63$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `floating-buttons ${is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast() ? "show-them" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.filter_text_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $b9bf7fce0ae60241$export$28f6150e232898de), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.sorting_text_(), true), false), current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $e1bb71e65e01a3a0$export$da32f7add8a22e86), {})) : (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $05fbe84eb34564ec$export$d10e63059ddb9fd4), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.scroll_to_top_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f9182ab2348d1080$export$2624c5890f1bbcf7), {})));
3739
3893
  }
3740
3894
 
3741
3895
 
@@ -3984,7 +4138,7 @@ const $06edf3aec9073663$var$_tmpl$ = [
3984
4138
  ">",
3985
4139
  "</a>"
3986
4140
  ];
3987
- function $06edf3aec9073663$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_ }) {
4141
+ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
3988
4142
  let scrolling_logic_ran_for_query_id = false;
3989
4143
  let last_scroll_position;
3990
4144
  let scroll_to_element_on_dom_insertion;
@@ -4040,7 +4194,6 @@ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklink
4040
4194
  get children () {
4041
4195
  return (0, $cV3wj$ssr)($06edf3aec9073663$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.quicklinks_aria_label_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f32e14878e75af51$export$6649caad96ef8870), {
4042
4196
  faded_opacity_: 0.5,
4043
- button_: slider_arrow_button_,
4044
4197
  mutation_plugins_: mutation_plugins,
4045
4198
  slider_ref_: (slider)=>{
4046
4199
  const { insert_here: insert_here , intersecting_items_object: intersecting_items_object } = slider;
@@ -4387,6 +4540,7 @@ function $a1c4da51ff91dd01$var$clear_if_opened_new_tab_with_sideways_url_params_
4387
4540
 
4388
4541
 
4389
4542
 
4543
+
4390
4544
  const $df5d81d0fe61ff21$var$_tmpl$ = [
4391
4545
  "<div",
4392
4546
  ' class="product-count"><!--#-->',
@@ -4412,7 +4566,7 @@ const $df5d81d0fe61ff21$var$_tmpl$ = [
4412
4566
  "<!--/--><!--#-->",
4413
4567
  "<!--/--></div>"
4414
4568
  ];
4415
- function $df5d81d0fe61ff21$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_ }) {
4569
+ function $df5d81d0fe61ff21$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_ }) {
4416
4570
  let results_for;
4417
4571
  let only_show_filters_opener_;
4418
4572
  let middle_elements_;
@@ -4437,6 +4591,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4437
4591
  tenant: tenant_(),
4438
4592
  market: market_(),
4439
4593
  query_id: query_id_(),
4594
+ type: listing_type_(),
4440
4595
  ...f.length ? {
4441
4596
  filters: f
4442
4597
  } : {},
@@ -4559,12 +4714,13 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4559
4714
  (0, $cV3wj$createRenderEffect)((0, $cV3wj$catchify)(async ()=>{
4560
4715
  const slim = is_slim_();
4561
4716
  const only_show_filters_opener = only_show_filters_opener_?.();
4717
+ const owner = (0, $cV3wj$getOwner)();
4562
4718
  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
4563
4719
  // signals can't be read reactively anymore after the await FYI
4564
- set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
4565
- results_for,
4566
- filters_opener
4567
- ] : (0, $cV3wj$ssr)($df5d81d0fe61ff21$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(results_for), (0, $cV3wj$escape)(filters_opener)));
4720
+ (0, $cV3wj$runWithOwner)(owner, ()=>set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
4721
+ results_for,
4722
+ filters_opener
4723
+ ] : (0, $cV3wj$ssr)($df5d81d0fe61ff21$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(results_for), (0, $cV3wj$escape)(filters_opener))));
4568
4724
  }));
4569
4725
  (0, $fc5a12f3a857ca30$export$e702733a056c40d6)({
4570
4726
  selected_filters_: selected_filters_,
@@ -4583,7 +4739,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4583
4739
  get_breadcrumb_accessor_?.(crumb_data_);
4584
4740
  get_quicklinks_accessor_?.(quicklinks_data_);
4585
4741
  return [
4586
- document.createComment("Category page based on Depict SDK"),
4742
+ (0, $cV3wj$isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"),
4587
4743
  (0, $cV3wj$ssr)($df5d81d0fe61ff21$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)() + (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)((0, $f86ba724282f6690$export$44dad306455dddf).PLP_CATEGORY, true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
4588
4744
  when: show_breadcrumbs_,
4589
4745
  get children () {
@@ -4600,7 +4756,6 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4600
4756
  quicklinks_data_: quicklinks_data_,
4601
4757
  current_query_id_: query_id_,
4602
4758
  router_: router_,
4603
- slider_arrow_button_: slider_arrow_button_,
4604
4759
  breadcrumb_data_: crumb_data_,
4605
4760
  i18n_: i18n_
4606
4761
  });
@@ -4618,7 +4773,6 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4618
4773
  i18n_: i18n_,
4619
4774
  selected_filters_: selected_filters_,
4620
4775
  local_filter_cache_: local_filter_cache_,
4621
- slider_arrow_button_: slider_arrow_button_,
4622
4776
  search_filters_open_: category_filters_open_,
4623
4777
  search_sorting_open_: category_sorting_open_,
4624
4778
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -4685,7 +4839,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4685
4839
 
4686
4840
  let $90980bd87c9960f9$var$has_ran = false;
4687
4841
  function $90980bd87c9960f9$export$5162a71f252e6122() {
4688
- if ($90980bd87c9960f9$var$has_ran) return;
4842
+ if ($90980bd87c9960f9$var$has_ran || typeof history !== "object") return;
4689
4843
  $90980bd87c9960f9$var$has_ran = true;
4690
4844
  for (const function_name of [
4691
4845
  "replaceState",
@@ -4791,8 +4945,7 @@ function $c16e74cfe125bb05$export$f091cbac892643a4(obj) {
4791
4945
 
4792
4946
  function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
4793
4947
  const component_in_error_boundary = (do_with_elements)=>{
4794
- // @ts-ignore
4795
- return (0, $b7436a6d1fd64e3b$export$b69d0d92862de18b)({
4948
+ const error_boundary_wrapped = (0, $b7436a6d1fd64e3b$export$b69d0d92862de18b)({
4796
4949
  severity_: "error",
4797
4950
  message_: error_message,
4798
4951
  get children () {
@@ -4800,7 +4953,12 @@ function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
4800
4953
  do_with_elements?.(elements);
4801
4954
  return elements;
4802
4955
  }
4803
- })();
4956
+ });
4957
+ // This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
4958
+ if (typeof error_boundary_wrapped === "function") // @ts-ignore
4959
+ return error_boundary_wrapped();
4960
+ // On the server it returns a string, so we just return that
4961
+ return error_boundary_wrapped;
4804
4962
  };
4805
4963
  const owner = (0, $cV3wj$getOwner)();
4806
4964
  if (owner == null) return (0, $cV3wj$createRoot)((dispose)=>{
@@ -4830,7 +4988,7 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
4830
4988
  const [get_sorting_, set_sorting] = current_sorting_;
4831
4989
  const [get_selected_filters_, set_selected_filters] = selected_filters_;
4832
4990
  const [get_has_sideways_filter_clearing_flag_, set_has_sideways_filter_clearing_flag] = sideways_filter_clearing_flag_;
4833
- const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(location.href);
4991
+ const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(globalThis?.location?.href ?? "https://example.com");
4834
4992
  const history_change_handler = (0, $cV3wj$catchify)(()=>set_current_href(location.href));
4835
4993
  const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)());
4836
4994
  let writer_started = false;
@@ -4966,7 +5124,7 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
4966
5124
  * Call this if you *just* want to replace the state object in history.state
4967
5125
  */ replace_state_: (new_state)=>{
4968
5126
  // 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
4969
- history.replaceState(new_state, "");
5127
+ globalThis?.history?.replaceState(new_state, "");
4970
5128
  },
4971
5129
  /**
4972
5130
  * Call this to change the URL
@@ -5008,6 +5166,7 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
5008
5166
  }
5009
5167
 
5010
5168
 
5169
+
5011
5170
  const $961b5c64bef4662f$var$_tmpl$ = [
5012
5171
  "<div",
5013
5172
  ' class="depict plp category">',
@@ -5022,6 +5181,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5022
5181
  #merchant_signal = (0, $cV3wj$createSignal)();
5023
5182
  #market_signal = (0, $cV3wj$createSignal)();
5024
5183
  #query_id_signal = (0, $cV3wj$createSignal)("");
5184
+ #listing_type_signal = (0, $cV3wj$createSignal)();
5025
5185
  static #has_been_constructed = false;
5026
5186
  get localization() {
5027
5187
  // allow reactive access
@@ -5048,6 +5208,12 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5048
5208
  set market(market) {
5049
5209
  this.#market_signal[1](market);
5050
5210
  }
5211
+ get listing_type() {
5212
+ return this.#listing_type_signal[0]();
5213
+ }
5214
+ set listing_type(listing_type) {
5215
+ this.#listing_type_signal[1](listing_type);
5216
+ }
5051
5217
  get on_navigation() {
5052
5218
  // The only non-reactive public property on the class (I don't see it making sense to have it reactive)
5053
5219
  return this.#router.on_navigation_;
@@ -5058,7 +5224,8 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5058
5224
  constructor({ api: api , on_navigation: on_navigation , ...props_on_class }){
5059
5225
  const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
5060
5226
  (0, $cV3wj$runWithOwner)(owner, ()=>{
5061
- if ($961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed) throw new Error("You can only have one instance of DepictCategory due to state limitations");
5227
+ if ($961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
5228
+ throw new Error("You can only have one instance of DepictCategory due to state limitations");
5062
5229
  $961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed = true;
5063
5230
  Object.assign(this, props_on_class); // set initial signal values
5064
5231
  (0, $90980bd87c9960f9$export$5162a71f252e6122)();
@@ -5086,11 +5253,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5086
5253
  router_: this.#router,
5087
5254
  selected_filters_: selected_filters_,
5088
5255
  current_sorting_: current_sorting_,
5089
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
5090
- slider_arrow_button_: (0, $cV3wj$GenericSliderArrowButton)({
5091
- height_: 12,
5092
- width_: 6.46
5093
- })
5256
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
5094
5257
  });
5095
5258
  });
5096
5259
  }
@@ -5104,7 +5267,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
5104
5267
  grid_spacing: grid_spacing.horizontal
5105
5268
  };
5106
5269
  return (0, $16b52438165aafe2$export$23fca46f3143581f)(()=>{
5107
- 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;
5270
+ 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;
5108
5271
  (0, $cV3wj$onCleanup)(reset_history_state_);
5109
5272
  return (0, $df5d81d0fe61ff21$export$f7d2f673fc2f091d)({
5110
5273
  tenant_: ()=>depict_category.merchant,
@@ -5113,6 +5276,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
5113
5276
  min_products_to_fetch_: $961b5c64bef4662f$var$min_products_to_fetch_,
5114
5277
  local_filter_cache_: local_filter_cache_,
5115
5278
  query_id_: ()=>depict_category.category_id,
5279
+ listing_type_: ()=>depict_category.listing_type,
5116
5280
  i18n_: i18n_,
5117
5281
  show_quicklinks_: show_quicklinks,
5118
5282
  category_title_: category_title,
@@ -5123,7 +5287,6 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
5123
5287
  get_quicklinks_accessor_: (accessor)=>(0, $cV3wj$createComputed)(()=>quicklinks_signal_[1](accessor())),
5124
5288
  category_filters_open_: category_filters_open_,
5125
5289
  category_sorting_open_: category_sorting_open_,
5126
- slider_arrow_button_: slider_arrow_button_,
5127
5290
  expanded_filters_: expanded_filters_,
5128
5291
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
5129
5292
  selected_filters_: selected_filters_,
@@ -5150,7 +5313,7 @@ function $961b5c64bef4662f$export$5b7c3ce0ebe51f86({ depict_category: depict_cat
5150
5313
  });
5151
5314
  }
5152
5315
  function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_category }) {
5153
- const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ , slider_arrow_button_: slider_arrow_button_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
5316
+ const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
5154
5317
  return (0, $cV3wj$createComponent)($961b5c64bef4662f$var$InExternalAreaDiv, {
5155
5318
  get children () {
5156
5319
  return (0, $06edf3aec9073663$export$466cdc317043f6cb)({
@@ -5158,7 +5321,6 @@ function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_cat
5158
5321
  quicklinks_data_: quicklinks_data_,
5159
5322
  router_: router_,
5160
5323
  current_query_id_: ()=>depict_category.category_id,
5161
- slider_arrow_button_: slider_arrow_button_,
5162
5324
  breadcrumb_data_: breadcrumb_data_
5163
5325
  });
5164
5326
  }
@@ -5290,9 +5452,9 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
5290
5452
 
5291
5453
  const $5c5f95951393e5d1$var$TEN_MINUTES = 600000;
5292
5454
  const $5c5f95951393e5d1$var$TWENTY_FOUR_HOURS = 86400000;
5293
- async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market) {
5455
+ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market, type) {
5294
5456
  let localstorage_value;
5295
- const localstorage_key = `depict_categories_` + market;
5457
+ const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
5296
5458
  try {
5297
5459
  const in_ls = localStorage[localstorage_key];
5298
5460
  if (in_ls) localstorage_value = JSON.parse(in_ls);
@@ -5308,7 +5470,7 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market) {
5308
5470
  return stored_queries;
5309
5471
  else if (age < $5c5f95951393e5d1$var$TWENTY_FOUR_HOURS) {
5310
5472
  // 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)
5311
- $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key).catch((e)=>(0, $cV3wj$report)([
5473
+ $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $cV3wj$report)([
5312
5474
  e,
5313
5475
  "couldn't fetch categories"
5314
5476
  ], "warning"));
@@ -5316,10 +5478,10 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market) {
5316
5478
  }
5317
5479
  // else: we are older and just fetch, store and return new queries
5318
5480
  }
5319
- return await $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key);
5481
+ return await $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
5320
5482
  }
5321
- async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key) {
5322
- const new_categories = await $5c5f95951393e5d1$var$download_categories(tenant, market);
5483
+ async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
5484
+ const new_categories = await $5c5f95951393e5d1$var$download_categories(tenant, market, type);
5323
5485
  try {
5324
5486
  localStorage[localstorage_key] = JSON.stringify({
5325
5487
  updated: +new Date(),
@@ -5333,12 +5495,15 @@ async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market,
5333
5495
  }
5334
5496
  return new_categories;
5335
5497
  }
5336
- async function $5c5f95951393e5d1$var$download_categories(tenant, market) {
5498
+ async function $5c5f95951393e5d1$var$download_categories(tenant, market, type) {
5337
5499
  const fetched = await (0, $cV3wj$fetch_retry)((0, $cV3wj$base_url) + "/v2/product-listing/queries", {
5338
5500
  method: "POST",
5339
5501
  body: JSON.stringify({
5340
5502
  tenant: tenant,
5341
- market: market
5503
+ market: market,
5504
+ ...type ? {
5505
+ type: type
5506
+ } : {}
5342
5507
  })
5343
5508
  });
5344
5509
  if (!fetched) return [];
@@ -5447,6 +5612,31 @@ function $897bd4a76f611b38$export$d757d54550ebfb3d({ category_suggestion_: categ
5447
5612
 
5448
5613
 
5449
5614
 
5615
+
5616
+
5617
+ const $22e59517c2ec94d3$var$_tmpl$ = [
5618
+ "<svg",
5619
+ ' 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>'
5620
+ ];
5621
+ function $22e59517c2ec94d3$export$1c641004b5485fed() {
5622
+ return (0, $cV3wj$ssr)($22e59517c2ec94d3$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
5623
+ }
5624
+
5625
+
5626
+
5627
+
5628
+
5629
+ const $16f0ed5ea30d8d9c$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>';
5630
+ function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
5631
+ return (0, $cV3wj$ssrElement)("svg", ()=>({
5632
+ ...props,
5633
+ "xmlns": "http://www.w3.org/2000/svg",
5634
+ "width": "20",
5635
+ "height": "22"
5636
+ }), ()=>(0, $cV3wj$ssr)($16f0ed5ea30d8d9c$var$_tmpl$), true);
5637
+ }
5638
+
5639
+
5450
5640
  const $5285d2814d0fac0c$var$_tmpl$ = [
5451
5641
  "<button",
5452
5642
  ' class="back" type="button"',
@@ -5479,9 +5669,9 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({ search_field_value_: search
5479
5669
  return (0, $cV3wj$ssr)($5285d2814d0fac0c$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
5480
5670
  when: on_back_,
5481
5671
  get children () {
5482
- return (0, $cV3wj$ssr)($5285d2814d0fac0c$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.back_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$BackIcon), {})));
5672
+ return (0, $cV3wj$ssr)($5285d2814d0fac0c$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.back_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $22e59517c2ec94d3$export$1c641004b5485fed), {})));
5483
5673
  }
5484
- })), `query ${!!on_back_ ? "has-adjacent-back-button" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_field_field_aria_label_(), true), false) + (0, $cV3wj$ssrAttribute)("value", (0, $cV3wj$escape)(search_field_value_[0](), true), false) + (0, $cV3wj$ssrAttribute)("placeholder", (0, $cV3wj$escape)(i18n_.placeholder_text_(), true), false), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.clear_filters_query_sorting_after_submit_(), true), false), (0, $cV3wj$ssrStyle)((0, $cV3wj$createMemo)(()=>search_field_value_[0]() ? "" : "display: none")()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$CrossIcon), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_submit_button_aria_label_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$SearchIcon), {})));
5674
+ })), `query ${!!on_back_ ? "has-adjacent-back-button" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_field_field_aria_label_(), true), false) + (0, $cV3wj$ssrAttribute)("value", (0, $cV3wj$escape)(search_field_value_[0](), true), false) + (0, $cV3wj$ssrAttribute)("placeholder", (0, $cV3wj$escape)(i18n_.placeholder_text_(), true), false), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.clear_filters_query_sorting_after_submit_(), true), false), (0, $cV3wj$ssrStyle)((0, $cV3wj$createMemo)(()=>search_field_value_[0]() ? "" : "display: none")()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_submit_button_aria_label_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $16f0ed5ea30d8d9c$export$82eafebb825fc23f), {})));
5485
5675
  }
5486
5676
 
5487
5677
 
@@ -5669,7 +5859,7 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({ selected_filters_: selected
5669
5859
 
5670
5860
 
5671
5861
  function $21f51c14cb3f586f$export$84bba84a7b837187(read_search_query) {
5672
- const ls = localStorage;
5862
+ const ls = globalThis?.localStorage || {};
5673
5863
  const key = "depict_searches";
5674
5864
  const previous_searches = (0, $cV3wj$createSignal)(JSON.parse(ls[key] || "[]"));
5675
5865
  const [read_previous_searches, write_previous_searches] = previous_searches;
@@ -5917,7 +6107,6 @@ function $eea41f703612261b$export$62f101a8aa597bf8({ depict_api_: depict_api_ ,
5917
6107
 
5918
6108
 
5919
6109
 
5920
-
5921
6110
  function $a36cbc4f68bfd590$export$91c3b6774e8be0f5({ param_: param_ , value_: value_ , url_transformer_: url_transformer_ }) {
5922
6111
  const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(location.href);
5923
6112
  const [exit_iterable, exitable_iterable] = (0, $cV3wj$make_asyncIterable_exiter)((0, $cV3wj$href_change_ipns));
@@ -5936,6 +6125,18 @@ function $a36cbc4f68bfd590$export$91c3b6774e8be0f5({ param_: param_ , value_: va
5936
6125
 
5937
6126
 
5938
6127
 
6128
+
6129
+
6130
+ const $694b7f90501fea4c$var$_tmpl$ = [
6131
+ "<svg",
6132
+ ' 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>'
6133
+ ];
6134
+ function $694b7f90501fea4c$export$5d2caaa6b530761c() {
6135
+ return (0, $cV3wj$ssr)($694b7f90501fea4c$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
6136
+ }
6137
+
6138
+
6139
+
5939
6140
  const $7ad3a93cbe6fa208$var$_tmpl$ = [
5940
6141
  "<div",
5941
6142
  ' class="previous-searches"><h2 class="text">',
@@ -5980,7 +6181,7 @@ function $7ad3a93cbe6fa208$export$a146ac6fa8346a25({ text_: text_ , previous_sea
5980
6181
  value_: item,
5981
6182
  url_transformer_: url_transformer_
5982
6183
  });
5983
- return (0, $cV3wj$ssr)($7ad3a93cbe6fa208$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), `${`item` || ""} ${(0, $cV3wj$createMemo)(()=>read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)() ? "selected" : ""}`, (0, $cV3wj$ssrAttribute)("href", (0, $cV3wj$escape)(href(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$PreviousSearchIcon), {})), (0, $cV3wj$escape)(item()), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.previous_searches_delete_entry_from_history_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$CrossIcon), {})));
6184
+ return (0, $cV3wj$ssr)($7ad3a93cbe6fa208$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), `${`item` || ""} ${(0, $cV3wj$createMemo)(()=>read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)() ? "selected" : ""}`, (0, $cV3wj$ssrAttribute)("href", (0, $cV3wj$escape)(href(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $694b7f90501fea4c$export$5d2caaa6b530761c), {})), (0, $cV3wj$escape)(item()), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.previous_searches_delete_entry_from_history_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})));
5984
6185
  }
5985
6186
  })));
5986
6187
  }
@@ -6000,7 +6201,6 @@ function $7ad3a93cbe6fa208$export$a146ac6fa8346a25({ text_: text_ , previous_sea
6000
6201
 
6001
6202
 
6002
6203
 
6003
-
6004
6204
  const $f3213c0640246d58$var$_tmpl$ = [
6005
6205
  "<span",
6006
6206
  ' class="highlighted-part">',
@@ -6060,6 +6260,8 @@ function $f3213c0640246d58$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
6060
6260
  }
6061
6261
 
6062
6262
 
6263
+
6264
+
6063
6265
  const $cea52f6b24092f05$var$_tmpl$ = [
6064
6266
  "<a",
6065
6267
  ' class="',
@@ -6116,10 +6318,10 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
6116
6318
  (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
6117
6319
  when: is_history,
6118
6320
  get fallback () {
6119
- return (0, $cV3wj$ssr)($cea52f6b24092f05$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$SearchIcon), {})));
6321
+ return (0, $cV3wj$ssr)($cea52f6b24092f05$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $16f0ed5ea30d8d9c$export$82eafebb825fc23f), {})));
6120
6322
  },
6121
6323
  get children () {
6122
- return (0, $cV3wj$createComponent)((0, $cV3wj$PreviousSearchIcon), {});
6324
+ return (0, $cV3wj$createComponent)((0, $694b7f90501fea4c$export$5d2caaa6b530761c), {});
6123
6325
  }
6124
6326
  }),
6125
6327
  (0, $cV3wj$createComponent)((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
@@ -6747,7 +6949,7 @@ const $793905995512612d$var$_tmpl$ = [
6747
6949
  ' class="category-suggestion">',
6748
6950
  "</div>"
6749
6951
  ];
6750
- function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children , slider_arrow_button_: slider_arrow_button_ }) {
6952
+ function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children }) {
6751
6953
  const category_suggestions_ = (0, $cV3wj$createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
6752
6954
  return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
6753
6955
  get when () {
@@ -6755,7 +6957,6 @@ function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_
6755
6957
  },
6756
6958
  get children () {
6757
6959
  return (0, $cV3wj$ssr)($793905995512612d$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f32e14878e75af51$export$6649caad96ef8870), {
6758
- button_: slider_arrow_button_,
6759
6960
  faded_opacity_: 0.7,
6760
6961
  get children () {
6761
6962
  return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
@@ -6819,6 +7020,7 @@ function $f8c929beb82c512b$export$9dd50d35b9d94fdf({ get_search_query_: get_sear
6819
7020
 
6820
7021
 
6821
7022
 
7023
+
6822
7024
  const $7097477c78a89208$var$_tmpl$ = [
6823
7025
  "<div",
6824
7026
  ' class="filter-results-for-one-row"><!--#-->',
@@ -6837,7 +7039,7 @@ const $7097477c78a89208$var$_tmpl$ = [
6837
7039
  "<!--/--></div>"
6838
7040
  ];
6839
7041
  function $7097477c78a89208$export$a54ec244c8863715(opts) {
6840
- 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;
7042
+ 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;
6841
7043
  const [get_sorting] = current_sorting_;
6842
7044
  const all_products_loaded_ = (0, $cV3wj$createSignal)(false);
6843
7045
  const [get_all_products_loaded, set_all_products_loaded] = all_products_loaded_;
@@ -6957,13 +7159,14 @@ function $7097477c78a89208$export$a54ec244c8863715(opts) {
6957
7159
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
6958
7160
  });
6959
7161
  const results_filters = (0, $cV3wj$createSignal)();
7162
+ const owner = (0, $cV3wj$getOwner)();
6960
7163
  (0, $cV3wj$onCleanup)((0, $cV3wj$javascript_media_query)("(max-width:600px)", async ({ matches: matches })=>{
6961
7164
  results_filters[1]();
6962
7165
  await new Promise((r)=>queueMicrotask(r));
6963
- results_filters[1](matches ? [
6964
- results_for,
6965
- filters_opener
6966
- ] : (0, $cV3wj$ssr)($7097477c78a89208$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(results_for), (0, $cV3wj$escape)(filters_opener)));
7166
+ (0, $cV3wj$runWithOwner)(owner, ()=>results_filters[1](matches ? [
7167
+ results_for,
7168
+ filters_opener
7169
+ ] : (0, $cV3wj$ssr)($7097477c78a89208$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(results_for), (0, $cV3wj$escape)(filters_opener))));
6967
7170
  }).remove);
6968
7171
  (0, $cV3wj$catchify)((0, $641bba2917fe862b$export$6e49da55e449af7c))({
6969
7172
  scroll_restoration_data_: scroll_restoration_data_,
@@ -6985,14 +7188,13 @@ function $7097477c78a89208$export$a54ec244c8863715(opts) {
6985
7188
  (0, $d78eea1e8707dc2d$export$c7e181728ad525f)(location);
6986
7189
  });
6987
7190
  return [
6988
- document.createComment("Search page based on Depict SDK"),
7191
+ (0, $cV3wj$isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"),
6989
7192
  (0, $cV3wj$ssr)($7097477c78a89208$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)() + (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)((0, $f86ba724282f6690$export$44dad306455dddf).SEARCH_PAGE, true), false), (0, $cV3wj$escape)(search_field), make_category_suggestion_card_ ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
6990
7193
  severity_: "error",
6991
7194
  message_: "Category suggestions failed",
6992
7195
  get children () {
6993
7196
  return (0, $cV3wj$createComponent)((0, $793905995512612d$export$c05a196222ba1302), {
6994
7197
  suggestions_: suggestions,
6995
- slider_arrow_button_: slider_arrow_button_,
6996
7198
  children: make_category_suggestion_card_
6997
7199
  });
6998
7200
  }
@@ -7010,7 +7212,6 @@ function $7097477c78a89208$export$a54ec244c8863715(opts) {
7010
7212
  i18n_: i18n_,
7011
7213
  selected_filters_: selected_filters_,
7012
7214
  local_filter_cache_: local_filter_cache_,
7013
- slider_arrow_button_: slider_arrow_button_,
7014
7215
  search_filters_open_: search_filters_open_,
7015
7216
  search_sorting_open_: search_sorting_open_,
7016
7217
  number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
@@ -7129,6 +7330,7 @@ function $4ca91518c9a35379$export$828dcdd425fd3231(aligner) {
7129
7330
 
7130
7331
 
7131
7332
 
7333
+
7132
7334
  const $806c97b931758897$var$_tmpl$ = [
7133
7335
  "<div",
7134
7336
  ' class="depict plp search">',
@@ -7150,7 +7352,8 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7150
7352
  disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
7151
7353
  const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
7152
7354
  (0, $cV3wj$runWithOwner)(owner, ()=>{
7153
- if ($806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed) throw new Error("You can only have one instance of DepictSearch");
7355
+ if ($806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
7356
+ throw new Error("You can only have one instance of DepictSearch");
7154
7357
  Object.assign(this, props_on_class);
7155
7358
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
7156
7359
  const { current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , search_query_accessor_: raw_search_query_accessor } = (0, $ccd5db07a3a069c5$export$477caf01aecaeb2a)({
@@ -7158,7 +7361,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7158
7361
  router_: this.#router
7159
7362
  });
7160
7363
  const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)(()=>({
7161
- search_field_value: new URLSearchParams(location.search).get(search_query_url_param_name_) ?? "",
7364
+ search_field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
7162
7365
  search_filters_open: false,
7163
7366
  search_sorting_open: false,
7164
7367
  search_expanded_filters: [],
@@ -7417,10 +7620,6 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
7417
7620
  cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
7418
7621
  ...grid_spacing_override
7419
7622
  } : undefined,
7420
- slider_arrow_button_: (0, $cV3wj$GenericSliderArrowButton)({
7421
- height_: 12,
7422
- width_: 6.46
7423
- }),
7424
7623
  product_card_template_: product_card_template
7425
7624
  });
7426
7625
  }, "Entire SearchPage failed");
@@ -7790,4 +7989,4 @@ const $4690a06c8489dcd0$export$7bf543b9d9be2c22 = (0, $e4615ecd1849548f$export$b
7790
7989
  (0, $cV3wj$add_to_version_info)("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
7791
7990
 
7792
7991
 
7793
- export {$c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a79d86d64fb64e8e$export$824dde41348efed1 as embedded_num_products, $5c5f95951393e5d1$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
7992
+ export {$19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a79d86d64fb64e8e$export$824dde41348efed1 as embedded_num_products, $5c5f95951393e5d1$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};