@depict-ai/ui 1.3.6 → 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 $cV3wj$add_to_version_info, make_random_classname
2
2
  import {createComponent as $cV3wj$createComponent, ssrElement as $cV3wj$ssrElement, escape as $cV3wj$escape, ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrClassList as $cV3wj$ssrClassList, ssrAttribute as $cV3wj$ssrAttribute, isServer as $cV3wj$isServer, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps} from "solid-js/web";
3
3
  import {createMemo as $cV3wj$createMemo, createSignal as $cV3wj$createSignal, createComputed as $cV3wj$createComputed, createRenderEffect as $cV3wj$createRenderEffect, untrack as $cV3wj$untrack, onCleanup as $cV3wj$onCleanup, ErrorBoundary as $cV3wj$ErrorBoundary, createRoot as $cV3wj$createRoot, getOwner as $cV3wj$getOwner, runWithOwner as $cV3wj$runWithOwner, createEffect as $cV3wj$createEffect, batch as $cV3wj$batch, createResource as $cV3wj$createResource, Show as $cV3wj$Show, createReaction as $cV3wj$createReaction, on as $cV3wj$on, Suspense as $cV3wj$Suspense, 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.3.6";
5
+ /*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.3.7";
6
6
 
7
7
 
8
8
 
@@ -309,18 +309,30 @@ function $ca6f574bd8772184$var$history_state_change(signals, entries, state) {
309
309
  }
310
310
 
311
311
 
312
- function $a8fa7302d6f93c0b$export$9862539c89138352(get_default_values_, router_) {
313
- const state = (0, $ca6f574bd8772184$export$e183a13865960371)(get_default_values_(), router_);
312
+ function $a8fa7302d6f93c0b$export$9862539c89138352({ get_default_values_: get_default_values_ , router_: router_ , prefix_: prefix_ }) {
313
+ const get_prefixed_default_values_ = ()=>{
314
+ const default_values = get_default_values_();
315
+ return Object.fromEntries(Object.entries(default_values).map(([key, value])=>[
316
+ prefix_ + key,
317
+ value
318
+ ]));
319
+ };
320
+ const prefixed_state = (0, $ca6f574bd8772184$export$e183a13865960371)(get_prefixed_default_values_(), router_);
314
321
  const reset_state = ()=>{
315
- const new_defaults = get_default_values_();
316
- for(const key in state){
322
+ const new_defaults = get_prefixed_default_values_();
323
+ for(const key in prefixed_state){
317
324
  const new_value = new_defaults[key];
318
- state[key][1](new_value);
325
+ prefixed_state[key][1](new_value);
319
326
  }
320
327
  };
328
+ let unprefixed_state;
329
+ unprefixed_state = Object.fromEntries(Object.entries(prefixed_state).map(([key, value])=>[
330
+ key.slice(prefix_.length),
331
+ value
332
+ ]));
321
333
  return [
322
334
  reset_state,
323
- state
335
+ unprefixed_state
324
336
  ];
325
337
  }
326
338
 
@@ -377,7 +389,8 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
377
389
  ]
378
390
  });
379
391
  this.#guard_url_creator_length(category_suggestions, page_urls);
380
- while(page_urls.length)Object.assign(category_suggestions.pop(), page_urls.pop());
392
+ while(page_urls.length)// Copy over getters so we sneakily can make this reactive
393
+ Object.defineProperties(category_suggestions.pop(), Object.getOwnPropertyDescriptors(page_urls.pop()));
381
394
  return response;
382
395
  }
383
396
  async #run_url_creator_for_rest(merchant1, market1, input_data) {
@@ -423,7 +436,8 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
423
436
  ]
424
437
  });
425
438
  this.#guard_url_creator_length(category_display_array, page_urls);
426
- for(let i = 0; i < category_display_array.length; i++)Object.assign(category_display_array[i], page_urls[i]);
439
+ for(let i = 0; i < category_display_array.length; i++)// Copy over getters so we sneakily can make this reactive
440
+ Object.defineProperties(category_display_array[i], Object.getOwnPropertyDescriptors(page_urls[i]));
427
441
  }
428
442
  return input_data;
429
443
  }
@@ -4088,10 +4102,8 @@ const $4147651646da990a$var$operator_map = {
4088
4102
  "geq": "≥",
4089
4103
  "inrange": "\uD83D\uDD22"
4090
4104
  };
4091
- const $4147651646da990a$var$sorting_query_param = "sorting";
4092
4105
  const $4147651646da990a$var$ascending_token = "\uD83D\uDCC8";
4093
4106
  const $4147651646da990a$var$descending_token = "\uD83D\uDCC9";
4094
- const $4147651646da990a$var$filter_query_param_prefix = "filter_";
4095
4107
  const $4147651646da990a$var$range_delimiter = "-";
4096
4108
  const $4147651646da990a$var$string_item_delimiter = "‚"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
4097
4109
  const $4147651646da990a$var$array_item_delimiter = "‣"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
@@ -4157,17 +4169,17 @@ function $4147651646da990a$var$decode_filter_data(op, encoded_data) {
4157
4169
  }
4158
4170
  return null;
4159
4171
  }
4160
- function $4147651646da990a$export$58aa3f171519b6d7(filters, search_params) {
4172
+ function $4147651646da990a$export$58aa3f171519b6d7(filters, search_params, filter_query_param_prefix) {
4161
4173
  for (const filter of filters){
4162
4174
  const { field: field , op: op , data: data } = filter;
4163
4175
  const encoded_data = $4147651646da990a$var$encode_filter_data(op, data);
4164
- search_params.set($4147651646da990a$var$filter_query_param_prefix + field + $4147651646da990a$var$operator_map[op], encoded_data);
4176
+ search_params.set(filter_query_param_prefix + field + $4147651646da990a$var$operator_map[op], encoded_data);
4165
4177
  }
4166
4178
  }
4167
- function $4147651646da990a$export$f934fa24c3a86811(search_params) {
4179
+ function $4147651646da990a$export$f934fa24c3a86811(search_params, filter_query_param_prefix) {
4168
4180
  const found_filters = [];
4169
4181
  for (const key of search_params.keys()){
4170
- if (!key.startsWith($4147651646da990a$var$filter_query_param_prefix)) continue;
4182
+ if (!key.startsWith(filter_query_param_prefix)) continue;
4171
4183
  const encoded_data = search_params.get(key);
4172
4184
  if (!encoded_data) continue;
4173
4185
  for (const op of Object.keys($4147651646da990a$var$operator_map)){
@@ -4175,7 +4187,7 @@ function $4147651646da990a$export$f934fa24c3a86811(search_params) {
4175
4187
  if (!key.endsWith(token)) continue;
4176
4188
  const data = $4147651646da990a$var$decode_filter_data(op, encoded_data);
4177
4189
  if (!data) continue;
4178
- const field = key.slice($4147651646da990a$var$filter_query_param_prefix.length, -token.length);
4190
+ const field = key.slice(filter_query_param_prefix.length, -token.length);
4179
4191
  found_filters.push({
4180
4192
  field: field,
4181
4193
  op: op,
@@ -4185,14 +4197,14 @@ function $4147651646da990a$export$f934fa24c3a86811(search_params) {
4185
4197
  }
4186
4198
  return found_filters;
4187
4199
  }
4188
- function $4147651646da990a$export$62acb285a7579555(sorting, search_params) {
4200
+ function $4147651646da990a$export$62acb285a7579555(sorting, search_params, sorting_query_param) {
4189
4201
  if (!sorting) return;
4190
4202
  const { field: field , order: order } = sorting;
4191
4203
  const ascending = order === "asc";
4192
- search_params.set($4147651646da990a$var$sorting_query_param, field + (ascending ? $4147651646da990a$var$ascending_token : $4147651646da990a$var$descending_token));
4204
+ search_params.set(sorting_query_param, field + (ascending ? $4147651646da990a$var$ascending_token : $4147651646da990a$var$descending_token));
4193
4205
  }
4194
- function $4147651646da990a$export$766e9676e74997d3(search_params) {
4195
- const encoded_sorting = search_params.get($4147651646da990a$var$sorting_query_param);
4206
+ function $4147651646da990a$export$766e9676e74997d3(search_params, sorting_query_param_) {
4207
+ const encoded_sorting = search_params.get(sorting_query_param_);
4196
4208
  if (!encoded_sorting) return;
4197
4209
  if (encoded_sorting.endsWith($4147651646da990a$var$ascending_token)) return {
4198
4210
  field: encoded_sorting.slice(0, -$4147651646da990a$var$ascending_token.length),
@@ -4205,22 +4217,22 @@ function $4147651646da990a$export$766e9676e74997d3(search_params) {
4205
4217
  (0, $cV3wj$dlog)("Invalid sorting query param value", encoded_sorting);
4206
4218
  return;
4207
4219
  }
4208
- function $4147651646da990a$export$af4a870a0ee262c4(search_params) {
4220
+ function $4147651646da990a$export$916e6850778505f6(search_params, filter_query_param_prefix, sorting_query_param) {
4209
4221
  // We'll be modifying the URLSearchParams object, so we need to make a copy of the keys first
4210
4222
  const keys = [
4211
4223
  ...search_params.keys()
4212
4224
  ];
4213
- for (const key of keys)if (key.startsWith($4147651646da990a$var$filter_query_param_prefix) || key === $4147651646da990a$var$sorting_query_param) search_params.delete(key);
4225
+ for (const key of keys)if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param) search_params.delete(key);
4214
4226
  }
4215
4227
  const $4147651646da990a$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4216
- function $4147651646da990a$export$43cd1e747fecd42e(to_url, set_clearing_flag, from_search_params = new URLSearchParams(location.search)) {
4217
- if (!to_url) return to_url;
4218
- const was_url_object = to_url instanceof URL;
4219
- const url_object = was_url_object ? to_url : new URL(to_url, location.origin);
4228
+ 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_ }) {
4229
+ if (!to_url_) return to_url_;
4230
+ const was_url_object = to_url_ instanceof URL;
4231
+ const url_object = was_url_object ? to_url_ : new URL(to_url_, location.origin);
4220
4232
  const { searchParams: searchParams } = url_object;
4221
- if (set_clearing_flag) searchParams.set($4147651646da990a$export$cf5feb2102aec7f2, "true");
4222
- 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));
4223
- 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));
4233
+ if (set_clearing_flag_) searchParams.set($4147651646da990a$export$cf5feb2102aec7f2, "true");
4234
+ if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4235
+ for (const key of from_search_params_.keys())if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
4224
4236
  if (was_url_object) return url_object;
4225
4237
  return url_object.href;
4226
4238
  }
@@ -4242,7 +4254,7 @@ const $dfa5b6f7c5e421df$var$_tmpl$ = [
4242
4254
  ' class="separator">',
4243
4255
  "</span>"
4244
4256
  ];
4245
- function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , router_: router_ , i18n_: i18n_ }) {
4257
+ 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_ }) {
4246
4258
  const placeholder_crumb_data = [
4247
4259
  ,
4248
4260
  ,
@@ -4258,7 +4270,11 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
4258
4270
  return crumb_data();
4259
4271
  },
4260
4272
  children: (display_accessor, index)=>{
4261
- const href = (0, $cV3wj$createMemo)(()=>(0, $4147651646da990a$export$43cd1e747fecd42e)(display_accessor()?.page_url));
4273
+ const href = (0, $cV3wj$createMemo)(()=>(0, $4147651646da990a$export$43cd1e747fecd42e)({
4274
+ to_url_: display_accessor()?.page_url,
4275
+ filter_query_param_prefix_: filter_query_param_prefix_,
4276
+ sorting_query_param_: sorting_query_param_
4277
+ }));
4262
4278
  return [
4263
4279
  (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
4264
4280
  get when () {
@@ -4315,7 +4331,7 @@ const $06edf3aec9073663$var$_tmpl$ = [
4315
4331
  ">",
4316
4332
  "</a>"
4317
4333
  ];
4318
- function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
4334
+ 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_ }) {
4319
4335
  let scrolling_logic_ran_for_query_id = false;
4320
4336
  let last_scroll_position;
4321
4337
  let scroll_to_element_on_dom_insertion;
@@ -4449,7 +4465,12 @@ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklink
4449
4465
  return quicklinks_data_()?.some(({ query_id: query_id })=>query_id === current_id);
4450
4466
  });
4451
4467
  const href = (0, $cV3wj$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
4452
- (0, $4147651646da990a$export$43cd1e747fecd42e)(display_accessor()?.page_url, is_sibling()));
4468
+ (0, $4147651646da990a$export$43cd1e747fecd42e)({
4469
+ to_url_: display_accessor()?.page_url,
4470
+ set_clearing_flag_: is_sibling(),
4471
+ sorting_query_param_: sorting_query_param_,
4472
+ filter_query_param_prefix_: filter_query_param_prefix_
4473
+ }));
4453
4474
  return (0, $cV3wj$ssr)($06edf3aec9073663$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), `quicklink ${is_selected() ? "selected" : ""}`, (0, $cV3wj$ssrAttribute)("href", (0, $cV3wj$escape)(href(), true), false), (0, $cV3wj$escape)(display_accessor()?.title) || (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
4454
4475
  height: "1em",
4455
4476
  width: "10ch"
@@ -4753,7 +4774,7 @@ const $df5d81d0fe61ff21$var$_tmpl$ = [
4753
4774
  "<!--/--><!--#-->",
4754
4775
  "<!--/--></div>"
4755
4776
  ];
4756
- 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_ }) {
4777
+ 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_ }) {
4757
4778
  let results_for;
4758
4779
  let only_show_filters_opener_;
4759
4780
  let middle_elements_;
@@ -4936,7 +4957,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4936
4957
  return (0, $cV3wj$createComponent)((0, $dfa5b6f7c5e421df$export$5646050d516e06bc), {
4937
4958
  crumb_data_: crumb_data_,
4938
4959
  router_: router_,
4939
- i18n_: i18n_
4960
+ i18n_: i18n_,
4961
+ sorting_query_param_: sorting_query_param_,
4962
+ filter_query_param_prefix_: filter_query_param_prefix_
4940
4963
  });
4941
4964
  }
4942
4965
  })), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
@@ -4949,7 +4972,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
4949
4972
  current_query_id_: query_id_,
4950
4973
  router_: router_,
4951
4974
  breadcrumb_data_: crumb_data_,
4952
- i18n_: i18n_
4975
+ i18n_: i18n_,
4976
+ sorting_query_param_: sorting_query_param_,
4977
+ filter_query_param_prefix_: filter_query_param_prefix_
4953
4978
  });
4954
4979
  }
4955
4980
  })), (0, $cV3wj$escape)(observed_results_filters_elements()), (0, $cV3wj$escape)(results_filters()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
@@ -5183,19 +5208,20 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5183
5208
  const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(globalThis?.location?.href ?? "https://example.com");
5184
5209
  const history_change_handler = (0, $cV3wj$catchify)(()=>set_current_href(location.href));
5185
5210
  const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)());
5211
+ const { sorting_query_param_: sorting_query_param_ , filter_query_param_prefix_: filter_query_param_prefix_ } = options;
5186
5212
  let writer_started = false;
5187
5213
  (0, $cV3wj$instant_exec_on_suspect_history_change).add(history_change_handler);
5188
5214
  (0, $cV3wj$onCleanup)(()=>(0, $cV3wj$instant_exec_on_suspect_history_change).delete(history_change_handler));
5189
5215
  (0, $cV3wj$createComputed)(()=>{
5190
5216
  const { searchParams: searchParams } = new URL(get_current_href());
5191
5217
  (0, $cV3wj$batch)(()=>{
5192
- const found_sorting = (0, $4147651646da990a$export$766e9676e74997d3)(searchParams);
5218
+ const found_sorting = (0, $4147651646da990a$export$766e9676e74997d3)(searchParams, sorting_query_param_);
5193
5219
  if (found_sorting) {
5194
5220
  const current_sorting = (0, $cV3wj$untrack)(get_sorting_);
5195
5221
  // Do some diffing since we might assume in certain places of the code that if the signal changes it means the sorting has changed
5196
5222
  if (current_sorting?.field !== found_sorting.field || current_sorting?.order !== found_sorting.order) set_sorting(found_sorting);
5197
5223
  } else set_sorting();
5198
- const found_filters = (0, $4147651646da990a$export$f934fa24c3a86811)(searchParams);
5224
+ const found_filters = (0, $4147651646da990a$export$f934fa24c3a86811)(searchParams, filter_query_param_prefix_);
5199
5225
  const selected_filters = (0, $cV3wj$untrack)(get_selected_filters_);
5200
5226
  const found_filters_map = new Map(found_filters.map(({ field: field , op: op , data: data })=>[
5201
5227
  JSON.stringify([
@@ -5220,7 +5246,9 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5220
5246
  get_sorting_: get_sorting_,
5221
5247
  get_selected_filters_: get_selected_filters_,
5222
5248
  router_: router_,
5223
- get_has_sideways_filter_clearing_flag_: get_has_sideways_filter_clearing_flag_
5249
+ get_has_sideways_filter_clearing_flag_: get_has_sideways_filter_clearing_flag_,
5250
+ sorting_query_param_: sorting_query_param_,
5251
+ filter_query_param_prefix_: filter_query_param_prefix_
5224
5252
  }));
5225
5253
  writer_started = true;
5226
5254
  }
@@ -5239,7 +5267,7 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5239
5267
  }
5240
5268
  /**
5241
5269
  * Writes the sorting and filters to the URL query parameters when they change.
5242
- */ 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_ }) {
5270
+ */ 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_ }) {
5243
5271
  (0, $cV3wj$createEffect)((0, $cV3wj$on)([
5244
5272
  get_sorting_,
5245
5273
  get_selected_filters_,
@@ -5248,9 +5276,9 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
5248
5276
  const current_href = location.href;
5249
5277
  const url_object = new URL(current_href);
5250
5278
  const { searchParams: searchParams } = url_object;
5251
- (0, $4147651646da990a$export$af4a870a0ee262c4)(searchParams);
5252
- (0, $4147651646da990a$export$62acb285a7579555)(sorting, searchParams);
5253
- (0, $4147651646da990a$export$58aa3f171519b6d7)(filters, searchParams);
5279
+ (0, $4147651646da990a$export$916e6850778505f6)(searchParams, filter_query_param_prefix_, sorting_query_param_);
5280
+ (0, $4147651646da990a$export$62acb285a7579555)(sorting, searchParams, sorting_query_param_);
5281
+ (0, $4147651646da990a$export$58aa3f171519b6d7)(filters, searchParams, filter_query_param_prefix_);
5254
5282
  if (!has_sideways_filter_clearing_flag) $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams);
5255
5283
  // 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
5256
5284
  const unmodified_search_params = [
@@ -5281,6 +5309,8 @@ function $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams) {
5281
5309
  class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
5282
5310
  /**
5283
5311
  * Function that will be called when we want to navigate, or a string saying it's not an SPA. You can change this OTG
5312
+ */ /**
5313
+ * 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
5284
5314
  */ #throwing_on_navigation(...args) {
5285
5315
  const { on_navigation_: on_navigation_ } = this;
5286
5316
  if (typeof on_navigation_ !== "function") throw new Error("on_navigation_ is not a function");
@@ -5343,8 +5373,11 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
5343
5373
  if (force_spa_navigation_ && wants_hard_navigation) {
5344
5374
  // Don't allow hard navigation if we're forcing SPA navigation, which we do for things where PageReplacer can be used for performance
5345
5375
  const new_state = history.state;
5346
- if (category_query_id_) // In JS-UI we need to know the query_id of the current category, therefore push it into state
5347
- new_state.category_current_query_id = category_query_id_;
5376
+ if (category_query_id_) {
5377
+ // In JS-UI we need to know the query_id of the current category, therefore push it into state
5378
+ if (!this.query_id_state_key) (0, $cV3wj$report)(new Error("query_id_state_key is not set"), "error");
5379
+ new_state[this.query_id_state_key] = category_query_id_;
5380
+ }
5348
5381
  history[is_replace_ ? "replaceState" : "pushState"](new_state, "", new_url_);
5349
5382
  } else this.#throwing_on_navigation.call(this, {
5350
5383
  is_replace: is_replace_,
@@ -5354,7 +5387,8 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
5354
5387
  await promise;
5355
5388
  })
5356
5389
  };
5357
- constructor(on_navigation){
5390
+ constructor(on_navigation, query_id_state_key){
5391
+ this.query_id_state_key = query_id_state_key;
5358
5392
  this.on_navigation_ = on_navigation;
5359
5393
  }
5360
5394
  }
@@ -5370,13 +5404,13 @@ const $961b5c64bef4662f$var$min_products_to_fetch_ = 20;
5370
5404
  const $961b5c64bef4662f$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
5371
5405
  const $961b5c64bef4662f$var$InExternalAreaDiv = ({ children: children })=>(0, $cV3wj$ssr)($961b5c64bef4662f$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)() + (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)((0, $f86ba724282f6690$export$44dad306455dddf).PLP_CATEGORY, true), false), (0, $cV3wj$escape)(children));
5372
5406
  class $961b5c64bef4662f$export$f34314aa9505732e {
5373
- #router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation");
5407
+ #router;
5374
5408
  #locale_signal = (0, $cV3wj$createSignal)();
5375
5409
  #merchant_signal = (0, $cV3wj$createSignal)();
5376
5410
  #market_signal = (0, $cV3wj$createSignal)();
5377
5411
  #query_id_signal = (0, $cV3wj$createSignal)("");
5378
5412
  #listing_type_signal = (0, $cV3wj$createSignal)();
5379
- static #has_been_constructed = false;
5413
+ static #keys_constructed_with = [];
5380
5414
  get localization() {
5381
5415
  // allow reactive access
5382
5416
  return this.#locale_signal[0]();
@@ -5415,27 +5449,35 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5415
5449
  set on_navigation(new_function) {
5416
5450
  this.#router.on_navigation_ = new_function;
5417
5451
  }
5418
- constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , ...props_on_class }){
5452
+ 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 }){
5419
5453
  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
5420
5454
  (0, $cV3wj$runWithOwner)(owner, ()=>{
5421
- 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
5455
+ if ($961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.includes(unique_instance_key_for_state) && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
5422
5456
  throw new Error("You can only have one instance of DepictCategory due to state limitations");
5423
- $961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed = true;
5424
5457
  Object.assign(this, props_on_class); // set initial signal values
5425
5458
  (0, $90980bd87c9960f9$export$5162a71f252e6122)();
5459
+ this.#router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation", query_id_state_key);
5426
5460
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
5461
+ const sorting_query_param_ = "sorting" + unique_instance_key_for_state;
5462
+ const filter_query_param_prefix_ = "filter" + unique_instance_key_for_state + "_";
5427
5463
  const { selected_filters_: selected_filters_ , current_sorting_: current_sorting_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ } = (0, $ccd5db07a3a069c5$export$477caf01aecaeb2a)({
5428
- router_: this.#router
5464
+ router_: this.#router,
5465
+ sorting_query_param_: sorting_query_param_,
5466
+ filter_query_param_prefix_: filter_query_param_prefix_
5467
+ });
5468
+ const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)({
5469
+ get_default_values_: ()=>({
5470
+ filters_open: false,
5471
+ sorting_open: false,
5472
+ expanded_filters: [],
5473
+ // 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
5474
+ local_filter_cache: [],
5475
+ expanded_hierarchical_filters: [],
5476
+ scroll_restoration_data: []
5477
+ }),
5478
+ router_: this.#router,
5479
+ prefix_: "category" + unique_instance_key_for_state + "_"
5429
5480
  });
5430
- const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)(()=>({
5431
- category_filters_open: false,
5432
- category_sorting_open: false,
5433
- category_expanded_filters: [],
5434
- // 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
5435
- category_local_filter_cache: [],
5436
- category_expanded_hierarchical_filters: [],
5437
- category_scroll_restoration_data: []
5438
- }), this.#router);
5439
5481
  const i18n_ = (0, $c16e74cfe125bb05$export$f091cbac892643a4)(this.#locale_signal[0]);
5440
5482
  $961b5c64bef4662f$var$privately_shared_properties.set(this, {
5441
5483
  state_: state_,
@@ -5449,8 +5491,11 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
5449
5491
  router_: this.#router,
5450
5492
  selected_filters_: selected_filters_,
5451
5493
  current_sorting_: current_sorting_,
5452
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
5494
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
5495
+ sorting_query_param_: sorting_query_param_,
5496
+ filter_query_param_prefix_: filter_query_param_prefix_
5453
5497
  });
5498
+ $961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.push(unique_instance_key_for_state);
5454
5499
  });
5455
5500
  }
5456
5501
  }
@@ -5467,7 +5512,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
5467
5512
  grid_spacing: grid_spacing.horizontal
5468
5513
  };
5469
5514
  });
5470
- 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;
5515
+ 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;
5471
5516
  (0, $cV3wj$onCleanup)(reset_history_state_);
5472
5517
  return (0, $df5d81d0fe61ff21$export$f7d2f673fc2f091d)({
5473
5518
  tenant_: ()=>depict_category.merchant,
@@ -5496,24 +5541,28 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
5496
5541
  cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(props.cols_at_size),
5497
5542
  ...grid_spacing_override()
5498
5543
  })),
5499
- product_card_template_: product_card_template
5544
+ product_card_template_: product_card_template,
5545
+ sorting_query_param_: sorting_query_param_,
5546
+ filter_query_param_prefix_: filter_query_param_prefix_
5500
5547
  });
5501
5548
  }, "Entire CategoryPage failed");
5502
5549
  }
5503
5550
  function $961b5c64bef4662f$export$5b7c3ce0ebe51f86({ depict_category: depict_category }) {
5504
- const { i18n_: i18n_ , breadcrumb_signal_: [crumb_data_] , router_: router_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
5551
+ 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);
5505
5552
  return (0, $cV3wj$createComponent)($961b5c64bef4662f$var$InExternalAreaDiv, {
5506
5553
  get children () {
5507
5554
  return (0, $dfa5b6f7c5e421df$export$5646050d516e06bc)({
5508
5555
  i18n_: i18n_,
5509
5556
  crumb_data_: crumb_data_,
5510
- router_: router_
5557
+ router_: router_,
5558
+ sorting_query_param_: sorting_query_param_,
5559
+ filter_query_param_prefix_: filter_query_param_prefix_
5511
5560
  });
5512
5561
  }
5513
5562
  });
5514
5563
  }
5515
5564
  function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_category }) {
5516
- const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
5565
+ 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);
5517
5566
  return (0, $cV3wj$createComponent)($961b5c64bef4662f$var$InExternalAreaDiv, {
5518
5567
  get children () {
5519
5568
  return (0, $06edf3aec9073663$export$466cdc317043f6cb)({
@@ -5521,7 +5570,9 @@ function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_cat
5521
5570
  quicklinks_data_: quicklinks_data_,
5522
5571
  router_: router_,
5523
5572
  current_query_id_: ()=>depict_category.category_id,
5524
- breadcrumb_data_: breadcrumb_data_
5573
+ breadcrumb_data_: breadcrumb_data_,
5574
+ sorting_query_param_: sorting_query_param_,
5575
+ filter_query_param_prefix_: filter_query_param_prefix_
5525
5576
  });
5526
5577
  }
5527
5578
  });
@@ -7585,31 +7636,39 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7585
7636
  #merchant_signal = (0, $cV3wj$createSignal)();
7586
7637
  #market_signal = (0, $cV3wj$createSignal)();
7587
7638
  #modal_open_signal = (0, $cV3wj$createSignal)(false);
7588
- static #has_been_constructed = false;
7639
+ static #keys_constructed_with = [];
7589
7640
  #router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation");
7590
- 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
7641
+ 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
7591
7642
  disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
7592
7643
  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
7593
7644
  (0, $cV3wj$runWithOwner)(owner, ()=>{
7594
- 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
7645
+ if ($806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.includes(unique_instance_key_for_state) && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
7595
7646
  throw new Error("You can only have one instance of DepictSearch");
7596
7647
  Object.assign(this, props_on_class);
7597
7648
  if (on_navigation) this.#router.on_navigation_ = on_navigation;
7649
+ const sorting_query_param_ = "sorting" + unique_instance_key_for_state;
7650
+ const filter_query_param_prefix_ = "filter" + unique_instance_key_for_state + "_";
7598
7651
  const { current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , search_query_accessor_: raw_search_query_accessor } = (0, $ccd5db07a3a069c5$export$477caf01aecaeb2a)({
7599
7652
  search_query_url_param_name_: search_query_url_param_name_,
7600
- router_: this.#router
7653
+ router_: this.#router,
7654
+ sorting_query_param_: sorting_query_param_,
7655
+ filter_query_param_prefix_: filter_query_param_prefix_
7656
+ });
7657
+ const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)({
7658
+ get_default_values_: ()=>({
7659
+ field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
7660
+ filters_open: false,
7661
+ sorting_open: false,
7662
+ expanded_filters: [],
7663
+ // 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
7664
+ local_filter_cache: [],
7665
+ expanded_hierarchical_filters: [],
7666
+ showing_recommendation_rows: (0, $172e1b898d457050$export$1c8c715550dc689d),
7667
+ scroll_restoration_data: []
7668
+ }),
7669
+ router_: this.#router,
7670
+ prefix_: "search" + unique_instance_key_for_state + "_"
7601
7671
  });
7602
- const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)(()=>({
7603
- search_field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
7604
- search_filters_open: false,
7605
- search_sorting_open: false,
7606
- search_expanded_filters: [],
7607
- // 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
7608
- search_local_filter_cache: [],
7609
- search_expanded_hierarchical_filters: [],
7610
- search_showing_recommendation_rows: (0, $172e1b898d457050$export$1c8c715550dc689d),
7611
- search_scroll_restoration_data: []
7612
- }), this.#router);
7613
7672
  const search_query_updating_blocked_ = (0, $cV3wj$createSignal)(false);
7614
7673
  const [get_search_query_updating_blocked] = search_query_updating_blocked_;
7615
7674
  const get_search_query_ = (0, $cV3wj$createMemo)((previous_value)=>{
@@ -7620,10 +7679,10 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7620
7679
  page_url_creator: page_url_creator
7621
7680
  });
7622
7681
  const previous_searches = (0, $21f51c14cb3f586f$export$84bba84a7b837187)(get_search_query_);
7623
- const [, set_search_showing_recommendation_rows] = state_.search_showing_recommendation_rows;
7682
+ const [, set_search_showing_recommendation_rows] = state_.showing_recommendation_rows;
7624
7683
  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
7625
7684
  const on_submit_with_unchanged_value_ = ()=>this.modal_open = false;
7626
- const [get_search_field_value_, set_search_field_value_] = state_.search_field_value;
7685
+ const [get_search_field_value_, set_search_field_value_] = state_.field_value;
7627
7686
  const configured_submit_query_ = (new_query)=>(0, $bfd908d13d90934c$export$e16630ecb9644a1c)({
7628
7687
  on_submit_with_unchanged_value_: on_submit_with_unchanged_value_,
7629
7688
  set_search_field_value_: set_search_field_value_,
@@ -7639,9 +7698,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7639
7698
  selected_filters_: selected_filters_,
7640
7699
  get_search_query_: get_search_query_,
7641
7700
  current_sorting_: current_sorting_,
7642
- expanded_hierarchical_filters_: state_.search_expanded_hierarchical_filters,
7701
+ expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
7643
7702
  i18n_: i18n_,
7644
- local_filter_cache_: state_.search_local_filter_cache
7703
+ local_filter_cache_: state_.local_filter_cache
7645
7704
  });
7646
7705
  $806c97b931758897$var$privately_shared_properties.set(this, {
7647
7706
  search_query_url_param_name_: search_query_url_param_name_,
@@ -7665,7 +7724,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7665
7724
  (0, $cV3wj$onCleanup)(()=>this.modal_open = false);
7666
7725
  return (0, $fabfda1230351b1a$export$1c593cbd6f1e10bc)(...args);
7667
7726
  }, {
7668
- search_field_value_: state_.search_field_value,
7727
+ search_field_value_: state_.field_value,
7669
7728
  get_search_query_: get_search_query_,
7670
7729
  search_query_url_param_name_: search_query_url_param_name_,
7671
7730
  previous_searches_: previous_searches,
@@ -7734,7 +7793,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
7734
7793
  };
7735
7794
  (0, $cV3wj$runWithOwner)(owner, ()=>(0, $cV3wj$createEffect)(modal_opening_effect));
7736
7795
  })();
7737
- $806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed = true;
7796
+ $806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.push(unique_instance_key_for_state);
7738
7797
  });
7739
7798
  }
7740
7799
  get on_navigation() {
@@ -7808,8 +7867,8 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
7808
7867
  market_: ()=>depict_search.market,
7809
7868
  depict_api_: shared_properties.depict_api_,
7810
7869
  min_products_to_fetch_: $806c97b931758897$var$min_products_to_fetch_,
7811
- local_filter_cache_: state_.search_local_filter_cache,
7812
- search_field_value_: state_.search_field_value,
7870
+ local_filter_cache_: state_.local_filter_cache,
7871
+ search_field_value_: state_.field_value,
7813
7872
  get_search_query_: shared_properties.get_search_query_,
7814
7873
  clear_filters_on_next_submit_: shared_properties.clear_filters_on_next_submit_,
7815
7874
  open_modal_: (...args)=>depict_search.modal_open = args,
@@ -7832,19 +7891,19 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
7832
7891
  });
7833
7892
  },
7834
7893
  current_sorting_: shared_properties.current_sorting_,
7835
- search_filters_open_: state_.search_filters_open,
7836
- search_sorting_open_: state_.search_sorting_open,
7837
- expanded_filters_: state_.search_expanded_filters,
7894
+ search_filters_open_: state_.filters_open,
7895
+ search_sorting_open_: state_.sorting_open,
7896
+ expanded_filters_: state_.expanded_filters,
7838
7897
  make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? (category_suggestion_)=>{
7839
7898
  return (0, $897bd4a76f611b38$export$d757d54550ebfb3d)({
7840
7899
  category_suggestion_: category_suggestion_,
7841
7900
  router_: shared_properties.router_
7842
7901
  });
7843
7902
  } : false,
7844
- expanded_hierarchical_filters_: state_.search_expanded_hierarchical_filters,
7903
+ expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
7845
7904
  selected_filters_: shared_properties.selected_filters_,
7846
- showing_recommendation_rows_: state_.search_showing_recommendation_rows,
7847
- scroll_restoration_data_: state_.search_scroll_restoration_data,
7905
+ showing_recommendation_rows_: state_.showing_recommendation_rows,
7906
+ scroll_restoration_data_: state_.scroll_restoration_data,
7848
7907
  include_input_field_: ()=>props.include_input_field,
7849
7908
  layout_options_: (0, $cV3wj$createMemo)(()=>({
7850
7909
  cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(props.cols_at_size),
@@ -7868,7 +7927,7 @@ function $806c97b931758897$export$316f6f283ae64765(props) {
7868
7927
  let input_element;
7869
7928
  const search_field = (0, $cV3wj$createComponent)((0, $5285d2814d0fac0c$export$b94867ecbd698f21), {
7870
7929
  get search_field_value_ () {
7871
- return shared_properties.state_.search_field_value;
7930
+ return shared_properties.state_.field_value;
7872
7931
  },
7873
7932
  get submit_query_ () {
7874
7933
  return shared_properties.configured_submit_query_;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "main": "dist/client/main.cjs",