@depict-ai/ui 1.3.5 → 1.3.7

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.
@@ -2,7 +2,7 @@ import {add_to_version_info as $gco9i$add_to_version_info, make_random_classname
2
2
  import {template as $gco9i$template, createComponent as $gco9i$createComponent, getNextElement as $gco9i$getNextElement, spread as $gco9i$spread, mergeProps as $gco9i$mergeProps, insert as $gco9i$insert, runHydrationEvents as $gco9i$runHydrationEvents, addEventListener as $gco9i$addEventListener, className as $gco9i$className, memo as $gco9i$memo, delegateEvents as $gco9i$delegateEvents, effect as $gco9i$effect, classList as $gco9i$classList, setAttribute as $gco9i$setAttribute, isServer as $gco9i$isServer, getNextMarker as $gco9i$getNextMarker, use as $gco9i$use, style as $gco9i$style, Dynamic as $gco9i$Dynamic} from "solid-js/web";
3
3
  import {createMemo as $gco9i$createMemo, createSignal as $gco9i$createSignal, createComputed as $gco9i$createComputed, createRenderEffect as $gco9i$createRenderEffect, untrack as $gco9i$untrack, onCleanup as $gco9i$onCleanup, ErrorBoundary as $gco9i$ErrorBoundary, createRoot as $gco9i$createRoot, getOwner as $gco9i$getOwner, runWithOwner as $gco9i$runWithOwner, createEffect as $gco9i$createEffect, batch as $gco9i$batch, createResource as $gco9i$createResource, Show as $gco9i$Show, createReaction as $gco9i$createReaction, on as $gco9i$on, Suspense as $gco9i$Suspense, For as $gco9i$For, Index as $gco9i$Index} from "solid-js";
4
4
 
5
- /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.3.5";
5
+ /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.3.7";
6
6
 
7
7
 
8
8
 
@@ -343,18 +343,30 @@ function $ca6f574bd8772184$var$history_state_change(signals, entries, state) {
343
343
  }
344
344
 
345
345
 
346
- function $a8fa7302d6f93c0b$export$9862539c89138352(get_default_values_, router_) {
347
- const state = (0, $ca6f574bd8772184$export$e183a13865960371)(get_default_values_(), router_);
346
+ function $a8fa7302d6f93c0b$export$9862539c89138352({ get_default_values_: get_default_values_ , router_: router_ , prefix_: prefix_ }) {
347
+ const get_prefixed_default_values_ = ()=>{
348
+ const default_values = get_default_values_();
349
+ return Object.fromEntries(Object.entries(default_values).map(([key, value])=>[
350
+ prefix_ + key,
351
+ value
352
+ ]));
353
+ };
354
+ const prefixed_state = (0, $ca6f574bd8772184$export$e183a13865960371)(get_prefixed_default_values_(), router_);
348
355
  const reset_state = ()=>{
349
- const new_defaults = get_default_values_();
350
- for(const key in state){
356
+ const new_defaults = get_prefixed_default_values_();
357
+ for(const key in prefixed_state){
351
358
  const new_value = new_defaults[key];
352
- state[key][1](new_value);
359
+ prefixed_state[key][1](new_value);
353
360
  }
354
361
  };
362
+ let unprefixed_state;
363
+ unprefixed_state = Object.fromEntries(Object.entries(prefixed_state).map(([key, value])=>[
364
+ key.slice(prefix_.length),
365
+ value
366
+ ]));
355
367
  return [
356
368
  reset_state,
357
- state
369
+ unprefixed_state
358
370
  ];
359
371
  }
360
372
 
@@ -411,7 +423,8 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
411
423
  ]
412
424
  });
413
425
  this.#guard_url_creator_length(category_suggestions, page_urls);
414
- while(page_urls.length)Object.assign(category_suggestions.pop(), page_urls.pop());
426
+ while(page_urls.length)// Copy over getters so we sneakily can make this reactive
427
+ Object.defineProperties(category_suggestions.pop(), Object.getOwnPropertyDescriptors(page_urls.pop()));
415
428
  return response;
416
429
  }
417
430
  async #run_url_creator_for_rest(merchant1, market1, input_data) {
@@ -457,7 +470,8 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
457
470
  ]
458
471
  });
459
472
  this.#guard_url_creator_length(category_display_array, page_urls);
460
- for(let i = 0; i < category_display_array.length; i++)Object.assign(category_display_array[i], page_urls[i]);
473
+ for(let i = 0; i < category_display_array.length; i++)// Copy over getters so we sneakily can make this reactive
474
+ Object.defineProperties(category_display_array[i], Object.getOwnPropertyDescriptors(page_urls[i]));
461
475
  }
462
476
  return input_data;
463
477
  }
@@ -4840,10 +4854,8 @@ const $4147651646da990a$var$operator_map = {
4840
4854
  "geq": "≥",
4841
4855
  "inrange": "\uD83D\uDD22"
4842
4856
  };
4843
- const $4147651646da990a$var$sorting_query_param = "sorting";
4844
4857
  const $4147651646da990a$var$ascending_token = "\uD83D\uDCC8";
4845
4858
  const $4147651646da990a$var$descending_token = "\uD83D\uDCC9";
4846
- const $4147651646da990a$var$filter_query_param_prefix = "filter_";
4847
4859
  const $4147651646da990a$var$range_delimiter = "-";
4848
4860
  const $4147651646da990a$var$string_item_delimiter = "‚"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
4849
4861
  const $4147651646da990a$var$array_item_delimiter = "‣"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
@@ -4909,17 +4921,17 @@ function $4147651646da990a$var$decode_filter_data(op, encoded_data) {
4909
4921
  }
4910
4922
  return null;
4911
4923
  }
4912
- function $4147651646da990a$export$58aa3f171519b6d7(filters, search_params) {
4924
+ function $4147651646da990a$export$58aa3f171519b6d7(filters, search_params, filter_query_param_prefix) {
4913
4925
  for (const filter of filters){
4914
4926
  const { field: field , op: op , data: data } = filter;
4915
4927
  const encoded_data = $4147651646da990a$var$encode_filter_data(op, data);
4916
- search_params.set($4147651646da990a$var$filter_query_param_prefix + field + $4147651646da990a$var$operator_map[op], encoded_data);
4928
+ search_params.set(filter_query_param_prefix + field + $4147651646da990a$var$operator_map[op], encoded_data);
4917
4929
  }
4918
4930
  }
4919
- function $4147651646da990a$export$f934fa24c3a86811(search_params) {
4931
+ function $4147651646da990a$export$f934fa24c3a86811(search_params, filter_query_param_prefix) {
4920
4932
  const found_filters = [];
4921
4933
  for (const key of search_params.keys()){
4922
- if (!key.startsWith($4147651646da990a$var$filter_query_param_prefix)) continue;
4934
+ if (!key.startsWith(filter_query_param_prefix)) continue;
4923
4935
  const encoded_data = search_params.get(key);
4924
4936
  if (!encoded_data) continue;
4925
4937
  for (const op of Object.keys($4147651646da990a$var$operator_map)){
@@ -4927,7 +4939,7 @@ function $4147651646da990a$export$f934fa24c3a86811(search_params) {
4927
4939
  if (!key.endsWith(token)) continue;
4928
4940
  const data = $4147651646da990a$var$decode_filter_data(op, encoded_data);
4929
4941
  if (!data) continue;
4930
- const field = key.slice($4147651646da990a$var$filter_query_param_prefix.length, -token.length);
4942
+ const field = key.slice(filter_query_param_prefix.length, -token.length);
4931
4943
  found_filters.push({
4932
4944
  field: field,
4933
4945
  op: op,
@@ -4937,14 +4949,14 @@ function $4147651646da990a$export$f934fa24c3a86811(search_params) {
4937
4949
  }
4938
4950
  return found_filters;
4939
4951
  }
4940
- function $4147651646da990a$export$62acb285a7579555(sorting, search_params) {
4952
+ function $4147651646da990a$export$62acb285a7579555(sorting, search_params, sorting_query_param) {
4941
4953
  if (!sorting) return;
4942
4954
  const { field: field , order: order } = sorting;
4943
4955
  const ascending = order === "asc";
4944
- search_params.set($4147651646da990a$var$sorting_query_param, field + (ascending ? $4147651646da990a$var$ascending_token : $4147651646da990a$var$descending_token));
4956
+ search_params.set(sorting_query_param, field + (ascending ? $4147651646da990a$var$ascending_token : $4147651646da990a$var$descending_token));
4945
4957
  }
4946
- function $4147651646da990a$export$766e9676e74997d3(search_params) {
4947
- const encoded_sorting = search_params.get($4147651646da990a$var$sorting_query_param);
4958
+ function $4147651646da990a$export$766e9676e74997d3(search_params, sorting_query_param_) {
4959
+ const encoded_sorting = search_params.get(sorting_query_param_);
4948
4960
  if (!encoded_sorting) return;
4949
4961
  if (encoded_sorting.endsWith($4147651646da990a$var$ascending_token)) return {
4950
4962
  field: encoded_sorting.slice(0, -$4147651646da990a$var$ascending_token.length),
@@ -4957,22 +4969,22 @@ function $4147651646da990a$export$766e9676e74997d3(search_params) {
4957
4969
  (0, $gco9i$dlog)("Invalid sorting query param value", encoded_sorting);
4958
4970
  return;
4959
4971
  }
4960
- function $4147651646da990a$export$af4a870a0ee262c4(search_params) {
4972
+ function $4147651646da990a$export$916e6850778505f6(search_params, filter_query_param_prefix, sorting_query_param) {
4961
4973
  // We'll be modifying the URLSearchParams object, so we need to make a copy of the keys first
4962
4974
  const keys = [
4963
4975
  ...search_params.keys()
4964
4976
  ];
4965
- for (const key of keys)if (key.startsWith($4147651646da990a$var$filter_query_param_prefix) || key === $4147651646da990a$var$sorting_query_param) search_params.delete(key);
4977
+ for (const key of keys)if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param) search_params.delete(key);
4966
4978
  }
4967
4979
  const $4147651646da990a$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4968
- function $4147651646da990a$export$43cd1e747fecd42e(to_url, set_clearing_flag, from_search_params = new URLSearchParams(location.search)) {
4969
- if (!to_url) return to_url;
4970
- const was_url_object = to_url instanceof URL;
4971
- const url_object = was_url_object ? to_url : new URL(to_url, location.origin);
4980
+ function $4147651646da990a$export$43cd1e747fecd42e({ to_url_: to_url_ , set_clearing_flag_: set_clearing_flag_ , from_search_params_: from_search_params_ = new URLSearchParams(location.search) , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ }) {
4981
+ if (!to_url_) return to_url_;
4982
+ const was_url_object = to_url_ instanceof URL;
4983
+ const url_object = was_url_object ? to_url_ : new URL(to_url_, location.origin);
4972
4984
  const { searchParams: searchParams } = url_object;
4973
- if (set_clearing_flag) searchParams.set($4147651646da990a$export$cf5feb2102aec7f2, "true");
4974
- if (from_search_params.has($4147651646da990a$var$sorting_query_param)) searchParams.set($4147651646da990a$var$sorting_query_param, from_search_params.get($4147651646da990a$var$sorting_query_param));
4975
- for (const key of from_search_params.keys())if (key.startsWith($4147651646da990a$var$filter_query_param_prefix)) searchParams.set(key, from_search_params.get(key));
4985
+ if (set_clearing_flag_) searchParams.set($4147651646da990a$export$cf5feb2102aec7f2, "true");
4986
+ if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4987
+ for (const key of from_search_params_.keys())if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
4976
4988
  if (was_url_object) return url_object;
4977
4989
  return url_object.href;
4978
4990
  }
@@ -4980,7 +4992,7 @@ function $4147651646da990a$export$43cd1e747fecd42e(to_url, set_clearing_flag, fr
4980
4992
 
4981
4993
 
4982
4994
  const $dfa5b6f7c5e421df$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<nav class="crumbs"></nav>`, 2), $dfa5b6f7c5e421df$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<a class="crumb"></a>`, 2), $dfa5b6f7c5e421df$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<span class="separator"></span>`, 2);
4983
- function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , router_: router_ , i18n_: i18n_ }) {
4995
+ function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , router_: router_ , i18n_: i18n_ , filter_query_param_prefix_: filter_query_param_prefix_ , sorting_query_param_: sorting_query_param_ }) {
4984
4996
  const placeholder_crumb_data = [
4985
4997
  ,
4986
4998
  ,
@@ -4997,7 +5009,11 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
4997
5009
  return crumb_data();
4998
5010
  },
4999
5011
  children: (display_accessor, index)=>{
5000
- const href = (0, $gco9i$createMemo)(()=>(0, $4147651646da990a$export$43cd1e747fecd42e)(display_accessor()?.page_url));
5012
+ const href = (0, $gco9i$createMemo)(()=>(0, $4147651646da990a$export$43cd1e747fecd42e)({
5013
+ to_url_: display_accessor()?.page_url,
5014
+ filter_query_param_prefix_: filter_query_param_prefix_,
5015
+ sorting_query_param_: sorting_query_param_
5016
+ }));
5001
5017
  return [
5002
5018
  (0, $gco9i$createComponent)((0, $gco9i$Show), {
5003
5019
  get when () {
@@ -5062,7 +5078,7 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
5062
5078
 
5063
5079
 
5064
5080
  const $06edf3aec9073663$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<nav class="quicklinks"></nav>`, 2), $06edf3aec9073663$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div>QuickLinks failed</div>`, 2), $06edf3aec9073663$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<a class="quicklink"></a>`, 2);
5065
- function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
5081
+ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ }) {
5066
5082
  let scrolling_logic_ran_for_query_id = false;
5067
5083
  let last_scroll_position;
5068
5084
  let scroll_to_element_on_dom_insertion;
@@ -5197,7 +5213,12 @@ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklink
5197
5213
  return quicklinks_data_()?.some(({ query_id: query_id })=>query_id === current_id);
5198
5214
  });
5199
5215
  const href = (0, $gco9i$createMemo)(()=>// We don't want these links to delete the sort and filter state by default, only if `clear_filters_when_going_sideways` explicitly clears them
5200
- (0, $4147651646da990a$export$43cd1e747fecd42e)(display_accessor()?.page_url, is_sibling()));
5216
+ (0, $4147651646da990a$export$43cd1e747fecd42e)({
5217
+ to_url_: display_accessor()?.page_url,
5218
+ set_clearing_flag_: is_sibling(),
5219
+ sorting_query_param_: sorting_query_param_,
5220
+ filter_query_param_prefix_: filter_query_param_prefix_
5221
+ }));
5201
5222
  return (()=>{
5202
5223
  const _el$3 = (0, $gco9i$getNextElement)($06edf3aec9073663$var$_tmpl$3);
5203
5224
  (0, $gco9i$addEventListener)(_el$3, "click", (0, $gco9i$catchify)((ev)=>{
@@ -5442,7 +5463,7 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
5442
5463
 
5443
5464
 
5444
5465
 
5445
- const $9f5cb586f34c14e6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="statement">No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.</div>`, 2), $9f5cb586f34c14e6$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="buttons"><button class="ok major"></button></div>`, 4);
5466
+ const $9f5cb586f34c14e6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="statement" style="white-space:pre-wrap">No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.</div>`, 2), $9f5cb586f34c14e6$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="buttons"><button class="ok major"></button></div>`, 4);
5446
5467
  function $9f5cb586f34c14e6$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
5447
5468
  if (!(0, $gco9i$is_debug)) return; // Just to make sure we don't show this in production
5448
5469
  const owner = (0, $gco9i$getOwner)();
@@ -5483,7 +5504,7 @@ const $4fb3a1cf207a7d5c$export$5c28802497c8a83c = /*@__PURE__*/ Symbol("category
5483
5504
 
5484
5505
 
5485
5506
  const $df5d81d0fe61ff21$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="product-count"><!#><!/> <!#><!/></div>`, 6), $df5d81d0fe61ff21$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div></div>`, 2), $df5d81d0fe61ff21$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6), $df5d81d0fe61ff21$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="depict plp category"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 20);
5486
- 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_ }) {
5507
+ 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_ , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ }) {
5487
5508
  let results_for;
5488
5509
  let only_show_filters_opener_;
5489
5510
  let middle_elements_;
@@ -5679,7 +5700,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
5679
5700
  return (0, $gco9i$createComponent)((0, $dfa5b6f7c5e421df$export$5646050d516e06bc), {
5680
5701
  crumb_data_: crumb_data_,
5681
5702
  router_: router_,
5682
- i18n_: i18n_
5703
+ i18n_: i18n_,
5704
+ sorting_query_param_: sorting_query_param_,
5705
+ filter_query_param_prefix_: filter_query_param_prefix_
5683
5706
  });
5684
5707
  }
5685
5708
  }), _el$16, _co$5);
@@ -5693,7 +5716,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
5693
5716
  current_query_id_: query_id_,
5694
5717
  router_: router_,
5695
5718
  breadcrumb_data_: crumb_data_,
5696
- i18n_: i18n_
5719
+ i18n_: i18n_,
5720
+ sorting_query_param_: sorting_query_param_,
5721
+ filter_query_param_prefix_: filter_query_param_prefix_
5697
5722
  });
5698
5723
  }
5699
5724
  }), _el$18, _co$6);
@@ -5936,19 +5961,20 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5936
5961
  const [get_current_href, set_current_href] = (0, $gco9i$createSignal)(globalThis?.location?.href ?? "https://example.com");
5937
5962
  const history_change_handler = (0, $gco9i$catchify)(()=>set_current_href(location.href));
5938
5963
  const owner = (0, $gco9i$getOwner)() || (0, $gco9i$createRoot)(()=>(0, $gco9i$getOwner)());
5964
+ const { sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ } = options;
5939
5965
  let writer_started = false;
5940
5966
  (0, $gco9i$instant_exec_on_suspect_history_change).add(history_change_handler);
5941
5967
  (0, $gco9i$onCleanup)(()=>(0, $gco9i$instant_exec_on_suspect_history_change).delete(history_change_handler));
5942
5968
  (0, $gco9i$createComputed)(()=>{
5943
5969
  const { searchParams: searchParams } = new URL(get_current_href());
5944
5970
  (0, $gco9i$batch)(()=>{
5945
- const found_sorting = (0, $4147651646da990a$export$766e9676e74997d3)(searchParams);
5971
+ const found_sorting = (0, $4147651646da990a$export$766e9676e74997d3)(searchParams, sorting_query_param_);
5946
5972
  if (found_sorting) {
5947
5973
  const current_sorting = (0, $gco9i$untrack)(get_sorting_);
5948
5974
  // Do some diffing since we might assume in certain places of the code that if the signal changes it means the sorting has changed
5949
5975
  if (current_sorting?.field !== found_sorting.field || current_sorting?.order !== found_sorting.order) set_sorting(found_sorting);
5950
5976
  } else set_sorting();
5951
- const found_filters = (0, $4147651646da990a$export$f934fa24c3a86811)(searchParams);
5977
+ const found_filters = (0, $4147651646da990a$export$f934fa24c3a86811)(searchParams, filter_query_param_prefix_);
5952
5978
  const selected_filters = (0, $gco9i$untrack)(get_selected_filters_);
5953
5979
  const found_filters_map = new Map(found_filters.map(({ field: field , op: op , data: data })=>[
5954
5980
  JSON.stringify([
@@ -5973,7 +5999,9 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5973
5999
  get_sorting_: get_sorting_,
5974
6000
  get_selected_filters_: get_selected_filters_,
5975
6001
  router_: router_,
5976
- get_has_sideways_filter_clearing_flag_: get_has_sideways_filter_clearing_flag_
6002
+ get_has_sideways_filter_clearing_flag_: get_has_sideways_filter_clearing_flag_,
6003
+ sorting_query_param_: sorting_query_param_,
6004
+ filter_query_param_prefix_: filter_query_param_prefix_
5977
6005
  }));
5978
6006
  writer_started = true;
5979
6007
  }
@@ -5992,7 +6020,7 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5992
6020
  }
5993
6021
  /**
5994
6022
  * Writes the sorting and filters to the URL query parameters when they change.
5995
- */ function $ccd5db07a3a069c5$var$start_href_writer({ get_sorting_: get_sorting_ , get_selected_filters_: get_selected_filters_ , router_: router_ , get_has_sideways_filter_clearing_flag_: get_has_sideways_filter_clearing_flag_ }) {
6023
+ */ function $ccd5db07a3a069c5$var$start_href_writer({ get_sorting_: get_sorting_ , get_selected_filters_: get_selected_filters_ , router_: router_ , get_has_sideways_filter_clearing_flag_: get_has_sideways_filter_clearing_flag_ , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ }) {
5996
6024
  (0, $gco9i$createEffect)((0, $gco9i$on)([
5997
6025
  get_sorting_,
5998
6026
  get_selected_filters_,
@@ -6001,9 +6029,9 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
6001
6029
  const current_href = location.href;
6002
6030
  const url_object = new URL(current_href);
6003
6031
  const { searchParams: searchParams } = url_object;
6004
- (0, $4147651646da990a$export$af4a870a0ee262c4)(searchParams);
6005
- (0, $4147651646da990a$export$62acb285a7579555)(sorting, searchParams);
6006
- (0, $4147651646da990a$export$58aa3f171519b6d7)(filters, searchParams);
6032
+ (0, $4147651646da990a$export$916e6850778505f6)(searchParams, filter_query_param_prefix_, sorting_query_param_);
6033
+ (0, $4147651646da990a$export$62acb285a7579555)(sorting, searchParams, sorting_query_param_);
6034
+ (0, $4147651646da990a$export$58aa3f171519b6d7)(filters, searchParams, filter_query_param_prefix_);
6007
6035
  if (!has_sideways_filter_clearing_flag) $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams);
6008
6036
  // We can't just check if the URL is equal since sometimes the order of the parameters in the URL changes (randomly?) so we need to compare them one by one
6009
6037
  const unmodified_search_params = [
@@ -6034,6 +6062,8 @@ function $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams) {
6034
6062
  class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
6035
6063
  /**
6036
6064
  * Function that will be called when we want to navigate, or a string saying it's not an SPA. You can change this OTG
6065
+ */ /**
6066
+ * We store query_id in history.state and do operate on this both here and in js-ui, this is the key to be used which js-ui provides
6037
6067
  */ #throwing_on_navigation(...args) {
6038
6068
  const { on_navigation_: on_navigation_ } = this;
6039
6069
  if (typeof on_navigation_ !== "function") throw new Error("on_navigation_ is not a function");
@@ -6096,8 +6126,11 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
6096
6126
  if (force_spa_navigation_ && wants_hard_navigation) {
6097
6127
  // Don't allow hard navigation if we're forcing SPA navigation, which we do for things where PageReplacer can be used for performance
6098
6128
  const new_state = history.state;
6099
- if (category_query_id_) // In JS-UI we need to know the query_id of the current category, therefore push it into state
6100
- new_state.category_current_query_id = category_query_id_;
6129
+ if (category_query_id_) {
6130
+ // In JS-UI we need to know the query_id of the current category, therefore push it into state
6131
+ if (!this.query_id_state_key) (0, $gco9i$report)(new Error("query_id_state_key is not set"), "error");
6132
+ new_state[this.query_id_state_key] = category_query_id_;
6133
+ }
6101
6134
  history[is_replace_ ? "replaceState" : "pushState"](new_state, "", new_url_);
6102
6135
  } else this.#throwing_on_navigation.call(this, {
6103
6136
  is_replace: is_replace_,
@@ -6107,7 +6140,8 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
6107
6140
  await promise;
6108
6141
  })
6109
6142
  };
6110
- constructor(on_navigation){
6143
+ constructor(on_navigation, query_id_state_key){
6144
+ this.query_id_state_key = query_id_state_key;
6111
6145
  this.on_navigation_ = on_navigation;
6112
6146
  }
6113
6147
  }
@@ -6124,13 +6158,13 @@ const $961b5c64bef4662f$var$InExternalAreaDiv = ({ children: children })=>(()=>
6124
6158
  return _el$;
6125
6159
  })();
6126
6160
  class $961b5c64bef4662f$export$f34314aa9505732e {
6127
- #router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation");
6161
+ #router;
6128
6162
  #locale_signal = (0, $gco9i$createSignal)();
6129
6163
  #merchant_signal = (0, $gco9i$createSignal)();
6130
6164
  #market_signal = (0, $gco9i$createSignal)();
6131
6165
  #query_id_signal = (0, $gco9i$createSignal)("");
6132
6166
  #listing_type_signal = (0, $gco9i$createSignal)();
6133
- static #has_been_constructed = false;
6167
+ static #keys_constructed_with = [];
6134
6168
  get localization() {
6135
6169
  // allow reactive access
6136
6170
  return this.#locale_signal[0]();
@@ -6169,27 +6203,35 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
6169
6203
  set on_navigation(new_function) {
6170
6204
  this.#router.on_navigation_ = new_function;
6171
6205
  }
6172
- constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , ...props_on_class }){
6206
+ constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , unique_instance_key_for_state: unique_instance_key_for_state = "" , query_id_state_key: query_id_state_key , ...props_on_class }){
6173
6207
  const owner = (0, $gco9i$getOwner)() || (0, $gco9i$createRoot)(()=>(0, $gco9i$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
6174
6208
  (0, $gco9i$runWithOwner)(owner, ()=>{
6175
- if ($961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed && !(0, $gco9i$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
6209
+ if ($961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.includes(unique_instance_key_for_state) && !(0, $gco9i$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
6176
6210
  throw new Error("You can only have one instance of DepictCategory due to state limitations");
6177
- $961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed = true;
6178
6211
  Object.assign(this, props_on_class); // set initial signal values
6179
6212
  (0, $90980bd87c9960f9$export$5162a71f252e6122)();
6213
+ this.#router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation", query_id_state_key);
6180
6214
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
6215
+ const sorting_query_param_ = "sorting" + unique_instance_key_for_state;
6216
+ const filter_query_param_prefix_ = "filter" + unique_instance_key_for_state + "_";
6181
6217
  const { selected_filters_: selected_filters_ , current_sorting_: current_sorting_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ } = (0, $ccd5db07a3a069c5$export$477caf01aecaeb2a)({
6182
- router_: this.#router
6218
+ router_: this.#router,
6219
+ sorting_query_param_: sorting_query_param_,
6220
+ filter_query_param_prefix_: filter_query_param_prefix_
6221
+ });
6222
+ const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)({
6223
+ get_default_values_: ()=>({
6224
+ filters_open: false,
6225
+ sorting_open: false,
6226
+ expanded_filters: [],
6227
+ // Please make sure that the signal created by below line always updates AFTER selected_filters_ updates on a "popstate" event. If the filter cache is popped before the selected filters are the code in create_modified_filters() is going to re-calculate search_local_filter_cache without knowing the real value of search_selected_filters, and we'll end up with too few filters in search_local_filter_cache in some cases
6228
+ local_filter_cache: [],
6229
+ expanded_hierarchical_filters: [],
6230
+ scroll_restoration_data: []
6231
+ }),
6232
+ router_: this.#router,
6233
+ prefix_: "category" + unique_instance_key_for_state + "_"
6183
6234
  });
6184
- const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)(()=>({
6185
- category_filters_open: false,
6186
- category_sorting_open: false,
6187
- category_expanded_filters: [],
6188
- // Please make sure that the signal created by below line always updates AFTER selected_filters_ updates on a "popstate" event. If the filter cache is popped before the selected filters are the code in create_modified_filters() is going to re-calculate search_local_filter_cache without knowing the real value of search_selected_filters, and we'll end up with too few filters in search_local_filter_cache in some cases
6189
- category_local_filter_cache: [],
6190
- category_expanded_hierarchical_filters: [],
6191
- category_scroll_restoration_data: []
6192
- }), this.#router);
6193
6235
  const i18n_ = (0, $c16e74cfe125bb05$export$f091cbac892643a4)(this.#locale_signal[0]);
6194
6236
  $961b5c64bef4662f$var$privately_shared_properties.set(this, {
6195
6237
  state_: state_,
@@ -6203,8 +6245,11 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
6203
6245
  router_: this.#router,
6204
6246
  selected_filters_: selected_filters_,
6205
6247
  current_sorting_: current_sorting_,
6206
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
6248
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
6249
+ sorting_query_param_: sorting_query_param_,
6250
+ filter_query_param_prefix_: filter_query_param_prefix_
6207
6251
  });
6252
+ $961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.push(unique_instance_key_for_state);
6208
6253
  });
6209
6254
  }
6210
6255
  }
@@ -6221,7 +6266,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
6221
6266
  grid_spacing: grid_spacing.horizontal
6222
6267
  };
6223
6268
  });
6224
- 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;
6269
+ const { state_: { local_filter_cache: local_filter_cache_ , filters_open: category_filters_open_ , sorting_open: category_sorting_open_ , expanded_filters: expanded_filters_ , expanded_hierarchical_filters: expanded_hierarchical_filters_ , 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_ , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ } = shared_properties;
6225
6270
  (0, $gco9i$onCleanup)(reset_history_state_);
6226
6271
  return (0, $df5d81d0fe61ff21$export$f7d2f673fc2f091d)({
6227
6272
  tenant_: ()=>depict_category.merchant,
@@ -6250,24 +6295,28 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
6250
6295
  cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(props.cols_at_size),
6251
6296
  ...grid_spacing_override()
6252
6297
  })),
6253
- product_card_template_: product_card_template
6298
+ product_card_template_: product_card_template,
6299
+ sorting_query_param_: sorting_query_param_,
6300
+ filter_query_param_prefix_: filter_query_param_prefix_
6254
6301
  });
6255
6302
  }, "Entire CategoryPage failed");
6256
6303
  }
6257
6304
  function $961b5c64bef4662f$export$5b7c3ce0ebe51f86({ depict_category: depict_category }) {
6258
- const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , router_: router_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
6305
+ const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , router_: router_ , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
6259
6306
  return (0, $gco9i$createComponent)($961b5c64bef4662f$var$InExternalAreaDiv, {
6260
6307
  get children () {
6261
6308
  return (0, $dfa5b6f7c5e421df$export$5646050d516e06bc)({
6262
6309
  i18n_: i18n_,
6263
6310
  crumb_data_: crumb_data_,
6264
- router_: router_
6311
+ router_: router_,
6312
+ sorting_query_param_: sorting_query_param_,
6313
+ filter_query_param_prefix_: filter_query_param_prefix_
6265
6314
  });
6266
6315
  }
6267
6316
  });
6268
6317
  }
6269
6318
  function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_category }) {
6270
- const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
6319
+ const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ , sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
6271
6320
  return (0, $gco9i$createComponent)($961b5c64bef4662f$var$InExternalAreaDiv, {
6272
6321
  get children () {
6273
6322
  return (0, $06edf3aec9073663$export$466cdc317043f6cb)({
@@ -6275,7 +6324,9 @@ function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_cat
6275
6324
  quicklinks_data_: quicklinks_data_,
6276
6325
  router_: router_,
6277
6326
  current_query_id_: ()=>depict_category.category_id,
6278
- breadcrumb_data_: breadcrumb_data_
6327
+ breadcrumb_data_: breadcrumb_data_,
6328
+ sorting_query_param_: sorting_query_param_,
6329
+ filter_query_param_prefix_: filter_query_param_prefix_
6279
6330
  });
6280
6331
  }
6281
6332
  });
@@ -8601,31 +8652,39 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
8601
8652
  #merchant_signal = (0, $gco9i$createSignal)();
8602
8653
  #market_signal = (0, $gco9i$createSignal)();
8603
8654
  #modal_open_signal = (0, $gco9i$createSignal)(false);
8604
- static #has_been_constructed = false;
8655
+ static #keys_constructed_with = [];
8605
8656
  #router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation");
8606
- constructor({ search_query_url_param_name: search_query_url_param_name_ = "query" , url_transformer: url_transformer , on_navigation: on_navigation , enable_category_suggestions: enable_category_suggestions = true , page_url_creator: page_url_creator , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
8657
+ constructor({ unique_instance_key_for_state: unique_instance_key_for_state = "" , search_query_url_param_name: search_query_url_param_name_ = "query" + unique_instance_key_for_state , url_transformer: url_transformer , on_navigation: on_navigation , enable_category_suggestions: enable_category_suggestions = true , page_url_creator: page_url_creator , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
8607
8658
  disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
8608
8659
  const owner = (0, $gco9i$getOwner)() || (0, $gco9i$createRoot)(()=>(0, $gco9i$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
8609
8660
  (0, $gco9i$runWithOwner)(owner, ()=>{
8610
- if ($806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed && !(0, $gco9i$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
8661
+ if ($806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.includes(unique_instance_key_for_state) && !(0, $gco9i$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
8611
8662
  throw new Error("You can only have one instance of DepictSearch");
8612
8663
  Object.assign(this, props_on_class);
8613
8664
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
8665
+ const sorting_query_param_ = "sorting" + unique_instance_key_for_state;
8666
+ const filter_query_param_prefix_ = "filter" + unique_instance_key_for_state + "_";
8614
8667
  const { current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , search_query_accessor_: raw_search_query_accessor } = (0, $ccd5db07a3a069c5$export$477caf01aecaeb2a)({
8615
8668
  search_query_url_param_name_: search_query_url_param_name_,
8616
- router_: this.#router
8669
+ router_: this.#router,
8670
+ sorting_query_param_: sorting_query_param_,
8671
+ filter_query_param_prefix_: filter_query_param_prefix_
8672
+ });
8673
+ const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)({
8674
+ get_default_values_: ()=>({
8675
+ field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
8676
+ filters_open: false,
8677
+ sorting_open: false,
8678
+ expanded_filters: [],
8679
+ // Please make sure that the signal created by below line always updates AFTER selected_filters_ updates on a "popstate" event. If the filter cache is popped before the selected filters are the code in create_modified_filters() is going to re-calculate search_local_filter_cache without knowing the real value of search_selected_filters, and we'll end up with too few filters in search_local_filter_cache in some cases
8680
+ local_filter_cache: [],
8681
+ expanded_hierarchical_filters: [],
8682
+ showing_recommendation_rows: (0, $172e1b898d457050$export$1c8c715550dc689d),
8683
+ scroll_restoration_data: []
8684
+ }),
8685
+ router_: this.#router,
8686
+ prefix_: "search" + unique_instance_key_for_state + "_"
8617
8687
  });
8618
- const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)(()=>({
8619
- search_field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
8620
- search_filters_open: false,
8621
- search_sorting_open: false,
8622
- search_expanded_filters: [],
8623
- // Please make sure that the signal created by below line always updates AFTER selected_filters_ updates on a "popstate" event. If the filter cache is popped before the selected filters are the code in create_modified_filters() is going to re-calculate search_local_filter_cache without knowing the real value of search_selected_filters, and we'll end up with too few filters in search_local_filter_cache in some cases
8624
- search_local_filter_cache: [],
8625
- search_expanded_hierarchical_filters: [],
8626
- search_showing_recommendation_rows: (0, $172e1b898d457050$export$1c8c715550dc689d),
8627
- search_scroll_restoration_data: []
8628
- }), this.#router);
8629
8688
  const search_query_updating_blocked_ = (0, $gco9i$createSignal)(false);
8630
8689
  const [get_search_query_updating_blocked] = search_query_updating_blocked_;
8631
8690
  const get_search_query_ = (0, $gco9i$createMemo)((previous_value)=>{
@@ -8636,10 +8695,10 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
8636
8695
  page_url_creator: page_url_creator
8637
8696
  });
8638
8697
  const previous_searches = (0, $21f51c14cb3f586f$export$84bba84a7b837187)(get_search_query_);
8639
- const [, set_search_showing_recommendation_rows] = state_.search_showing_recommendation_rows;
8698
+ const [, set_search_showing_recommendation_rows] = state_.showing_recommendation_rows;
8640
8699
  const after_submit_ = ()=>set_search_showing_recommendation_rows((0, $172e1b898d457050$export$1c8c715550dc689d)); // do this every time after we have submitted a new query - otherwise there might already be a saved number of rows in the state
8641
8700
  const on_submit_with_unchanged_value_ = ()=>this.modal_open = false;
8642
- const [get_search_field_value_, set_search_field_value_] = state_.search_field_value;
8701
+ const [get_search_field_value_, set_search_field_value_] = state_.field_value;
8643
8702
  const configured_submit_query_ = (new_query)=>(0, $bfd908d13d90934c$export$e16630ecb9644a1c)({
8644
8703
  on_submit_with_unchanged_value_: on_submit_with_unchanged_value_,
8645
8704
  set_search_field_value_: set_search_field_value_,
@@ -8655,9 +8714,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
8655
8714
  selected_filters_: selected_filters_,
8656
8715
  get_search_query_: get_search_query_,
8657
8716
  current_sorting_: current_sorting_,
8658
- expanded_hierarchical_filters_: state_.search_expanded_hierarchical_filters,
8717
+ expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
8659
8718
  i18n_: i18n_,
8660
- local_filter_cache_: state_.search_local_filter_cache
8719
+ local_filter_cache_: state_.local_filter_cache
8661
8720
  });
8662
8721
  $806c97b931758897$var$privately_shared_properties.set(this, {
8663
8722
  search_query_url_param_name_: search_query_url_param_name_,
@@ -8681,7 +8740,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
8681
8740
  (0, $gco9i$onCleanup)(()=>this.modal_open = false);
8682
8741
  return (0, $fabfda1230351b1a$export$1c593cbd6f1e10bc)(...args);
8683
8742
  }, {
8684
- search_field_value_: state_.search_field_value,
8743
+ search_field_value_: state_.field_value,
8685
8744
  get_search_query_: get_search_query_,
8686
8745
  search_query_url_param_name_: search_query_url_param_name_,
8687
8746
  previous_searches_: previous_searches,
@@ -8750,7 +8809,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
8750
8809
  };
8751
8810
  (0, $gco9i$runWithOwner)(owner, ()=>(0, $gco9i$createEffect)(modal_opening_effect));
8752
8811
  })();
8753
- $806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed = true;
8812
+ $806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.push(unique_instance_key_for_state);
8754
8813
  });
8755
8814
  }
8756
8815
  get on_navigation() {
@@ -8824,8 +8883,8 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
8824
8883
  market_: ()=>depict_search.market,
8825
8884
  depict_api_: shared_properties.depict_api_,
8826
8885
  min_products_to_fetch_: $806c97b931758897$var$min_products_to_fetch_,
8827
- local_filter_cache_: state_.search_local_filter_cache,
8828
- search_field_value_: state_.search_field_value,
8886
+ local_filter_cache_: state_.local_filter_cache,
8887
+ search_field_value_: state_.field_value,
8829
8888
  get_search_query_: shared_properties.get_search_query_,
8830
8889
  clear_filters_on_next_submit_: shared_properties.clear_filters_on_next_submit_,
8831
8890
  open_modal_: (...args)=>depict_search.modal_open = args,
@@ -8848,19 +8907,19 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
8848
8907
  });
8849
8908
  },
8850
8909
  current_sorting_: shared_properties.current_sorting_,
8851
- search_filters_open_: state_.search_filters_open,
8852
- search_sorting_open_: state_.search_sorting_open,
8853
- expanded_filters_: state_.search_expanded_filters,
8910
+ search_filters_open_: state_.filters_open,
8911
+ search_sorting_open_: state_.sorting_open,
8912
+ expanded_filters_: state_.expanded_filters,
8854
8913
  make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? (category_suggestion_)=>{
8855
8914
  return (0, $897bd4a76f611b38$export$d757d54550ebfb3d)({
8856
8915
  category_suggestion_: category_suggestion_,
8857
8916
  router_: shared_properties.router_
8858
8917
  });
8859
8918
  } : false,
8860
- expanded_hierarchical_filters_: state_.search_expanded_hierarchical_filters,
8919
+ expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
8861
8920
  selected_filters_: shared_properties.selected_filters_,
8862
- showing_recommendation_rows_: state_.search_showing_recommendation_rows,
8863
- scroll_restoration_data_: state_.search_scroll_restoration_data,
8921
+ showing_recommendation_rows_: state_.showing_recommendation_rows,
8922
+ scroll_restoration_data_: state_.scroll_restoration_data,
8864
8923
  include_input_field_: ()=>props.include_input_field,
8865
8924
  layout_options_: (0, $gco9i$createMemo)(()=>({
8866
8925
  cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(props.cols_at_size),
@@ -8884,7 +8943,7 @@ function $806c97b931758897$export$316f6f283ae64765(props) {
8884
8943
  let input_element;
8885
8944
  const search_field = (0, $gco9i$createComponent)((0, $5285d2814d0fac0c$export$b94867ecbd698f21), {
8886
8945
  get search_field_value_ () {
8887
- return shared_properties.state_.search_field_value;
8946
+ return shared_properties.state_.field_value;
8888
8947
  },
8889
8948
  get submit_query_ () {
8890
8949
  return shared_properties.configured_submit_query_;