@depict-ai/ui 4.7.23 → 4.7.24

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.
package/ES10/index.cjs CHANGED
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.23";
112
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.24";
113
113
  function $e7a7d2fe8a8217d8$export$54299a3c81f5425() {
114
114
  const d = document;
115
115
  const [isVisible, setIsVisible] = $52FdA$solidjs.createSignal(d.visibilityState !== "hidden");
@@ -4578,7 +4578,7 @@ function $a68b73fd7ba0853f$export$916e6850778505f6(search_params, filter_query_p
4578
4578
  const keys = [...search_params.keys()];
4579
4579
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($a68b73fd7ba0853f$var$legacy_filter_prefix)) search_params.delete(key);
4580
4580
  }
4581
- const $a68b73fd7ba0853f$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4581
+ const $a68b73fd7ba0853f$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4582
4582
  function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
4583
4583
  let {
4584
4584
  to_url_: to_url_,
@@ -4593,9 +4593,13 @@ function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
4593
4593
  const {
4594
4594
  searchParams: searchParams
4595
4595
  } = url_object;
4596
- if (set_clearing_flag_) searchParams.set($a68b73fd7ba0853f$export$cf5feb2102aec7f2, "true");
4596
+ let transferredAnyFilters = false;
4597
4597
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4598
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
4598
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
4599
+ searchParams.set(key, from_search_params_.get(key));
4600
+ transferredAnyFilters = true;
4601
+ }
4602
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $a68b73fd7ba0853f$export$84daa4fa1471698b;
4599
4603
  if (was_url_object) return url_object;
4600
4604
  return url_object.href;
4601
4605
  }
@@ -10480,7 +10484,8 @@ function $5dd9d0d3ea82e2dd$export$477caf01aecaeb2a(options) {
10480
10484
  $52FdA$solidjs.onCleanup(() => (0, $52FdA$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
10481
10485
  $52FdA$solidjs.createComputed(() => {
10482
10486
  const {
10483
- searchParams: searchParams
10487
+ searchParams: searchParams,
10488
+ hash: hash
10484
10489
  } = new URL(get_current_href());
10485
10490
  $52FdA$solidjs.batch(() => {
10486
10491
  const found_sorting = $a68b73fd7ba0853f$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -10518,7 +10523,7 @@ function $5dd9d0d3ea82e2dd$export$477caf01aecaeb2a(options) {
10518
10523
  if (found_override_listing_id) $52FdA$depictaiutilishared.dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
10519
10524
  }
10520
10525
 
10521
- if (searchParams.get((0, $a68b73fd7ba0853f$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
10526
+ if (hash === (0, $a68b73fd7ba0853f$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
10522
10527
  if (!writer_started) {
10523
10528
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
10524
10529
  $52FdA$solidjs.runWithOwner(owner, () => $5dd9d0d3ea82e2dd$var$start_href_writer({
@@ -10561,24 +10566,24 @@ function $5dd9d0d3ea82e2dd$var$start_href_writer(_ref3) {
10561
10566
  } = _ref3;
10562
10567
  $52FdA$solidjs.createEffect($52FdA$solidjs.on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], _ref4 => {
10563
10568
  let [sorting, filters, has_sideways_filter_clearing_flag] = _ref4;
10564
- const current_href = location.href;
10565
- const url_object = new URL(current_href);
10569
+ const url_object = new URL(location.href);
10570
+ const unmodified_search_params = [...url_object.searchParams];
10571
+ const unmodified_hash = url_object.hash;
10566
10572
  const {
10567
10573
  searchParams: searchParams
10568
10574
  } = url_object;
10569
10575
  $a68b73fd7ba0853f$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
10570
10576
  $a68b73fd7ba0853f$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
10571
10577
  $a68b73fd7ba0853f$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
10572
- if (!has_sideways_filter_clearing_flag) $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(searchParams);
10578
+ if (!has_sideways_filter_clearing_flag) $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(url_object);
10573
10579
  // 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
10574
- const unmodified_search_params = [...new URL(current_href).searchParams];
10575
10580
  const new_search_params = [...searchParams];
10576
10581
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
10577
10582
  const new_search_params_map = new Map(new_search_params);
10578
10583
  if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(_ref5 => {
10579
10584
  let [key, value] = _ref5;
10580
10585
  return new_search_params_map.get(key) === value;
10581
- }))
10586
+ }) || unmodified_hash !== url_object.hash)
10582
10587
  // Only update URL if it actually changed
10583
10588
  router_.navigate_.go_to_({
10584
10589
  is_replace_: true,
@@ -10590,8 +10595,8 @@ function $5dd9d0d3ea82e2dd$var$start_href_writer(_ref3) {
10590
10595
  defer: true
10591
10596
  }));
10592
10597
  }
10593
- function $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(searchParams) {
10594
- if (searchParams.get((0, $a68b73fd7ba0853f$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $a68b73fd7ba0853f$export$cf5feb2102aec7f2));
10598
+ function $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(url_object) {
10599
+ if (url_object.hash === (0, $a68b73fd7ba0853f$export$84daa4fa1471698b)) url_object.hash = "";
10595
10600
  }
10596
10601
  function $9cbefc32b9dab36d$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
10597
10602
  $9cbefc32b9dab36d$var$_checkPrivateRedeclaration(obj, privateMap);
package/ES10/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.23";
14
+ export const version = "4.7.24";
15
15
  /**
16
16
  * Returns if the current tab is visible
17
17
  */
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.23";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.24";
14
14
  function $a35e6f680c5bbc60$export$54299a3c81f5425() {
15
15
  const d = document;
16
16
  const [isVisible, setIsVisible] = $8tj43$createSignal(d.visibilityState !== "hidden");
@@ -4479,7 +4479,7 @@ function $2855bffe06ef7a03$export$916e6850778505f6(search_params, filter_query_p
4479
4479
  const keys = [...search_params.keys()];
4480
4480
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($2855bffe06ef7a03$var$legacy_filter_prefix)) search_params.delete(key);
4481
4481
  }
4482
- const $2855bffe06ef7a03$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4482
+ const $2855bffe06ef7a03$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4483
4483
  function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
4484
4484
  let {
4485
4485
  to_url_: to_url_,
@@ -4494,9 +4494,13 @@ function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
4494
4494
  const {
4495
4495
  searchParams: searchParams
4496
4496
  } = url_object;
4497
- if (set_clearing_flag_) searchParams.set($2855bffe06ef7a03$export$cf5feb2102aec7f2, "true");
4497
+ let transferredAnyFilters = false;
4498
4498
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4499
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
4499
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
4500
+ searchParams.set(key, from_search_params_.get(key));
4501
+ transferredAnyFilters = true;
4502
+ }
4503
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $2855bffe06ef7a03$export$84daa4fa1471698b;
4500
4504
  if (was_url_object) return url_object;
4501
4505
  return url_object.href;
4502
4506
  }
@@ -10381,7 +10385,8 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
10381
10385
  $8tj43$onCleanup(() => (0, $8tj43$instant_exec_on_suspect_history_change).delete(history_change_handler));
10382
10386
  $8tj43$createComputed(() => {
10383
10387
  const {
10384
- searchParams: searchParams
10388
+ searchParams: searchParams,
10389
+ hash: hash
10385
10390
  } = new URL(get_current_href());
10386
10391
  $8tj43$batch(() => {
10387
10392
  const found_sorting = $2855bffe06ef7a03$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -10419,7 +10424,7 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
10419
10424
  if (found_override_listing_id) $8tj43$dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
10420
10425
  }
10421
10426
 
10422
- if (searchParams.get((0, $2855bffe06ef7a03$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
10427
+ if (hash === (0, $2855bffe06ef7a03$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
10423
10428
  if (!writer_started) {
10424
10429
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
10425
10430
  $8tj43$runWithOwner(owner, () => $9d3d794b62318ecc$var$start_href_writer({
@@ -10462,24 +10467,24 @@ function $9d3d794b62318ecc$var$start_href_writer(_ref3) {
10462
10467
  } = _ref3;
10463
10468
  $8tj43$createEffect($8tj43$on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], _ref4 => {
10464
10469
  let [sorting, filters, has_sideways_filter_clearing_flag] = _ref4;
10465
- const current_href = location.href;
10466
- const url_object = new URL(current_href);
10470
+ const url_object = new URL(location.href);
10471
+ const unmodified_search_params = [...url_object.searchParams];
10472
+ const unmodified_hash = url_object.hash;
10467
10473
  const {
10468
10474
  searchParams: searchParams
10469
10475
  } = url_object;
10470
10476
  $2855bffe06ef7a03$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
10471
10477
  $2855bffe06ef7a03$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
10472
10478
  $2855bffe06ef7a03$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
10473
- if (!has_sideways_filter_clearing_flag) $9d3d794b62318ecc$var$delete_sideways_param_flag(searchParams);
10479
+ if (!has_sideways_filter_clearing_flag) $9d3d794b62318ecc$var$delete_sideways_param_flag(url_object);
10474
10480
  // 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
10475
- const unmodified_search_params = [...new URL(current_href).searchParams];
10476
10481
  const new_search_params = [...searchParams];
10477
10482
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
10478
10483
  const new_search_params_map = new Map(new_search_params);
10479
10484
  if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(_ref5 => {
10480
10485
  let [key, value] = _ref5;
10481
10486
  return new_search_params_map.get(key) === value;
10482
- }))
10487
+ }) || unmodified_hash !== url_object.hash)
10483
10488
  // Only update URL if it actually changed
10484
10489
  router_.navigate_.go_to_({
10485
10490
  is_replace_: true,
@@ -10491,8 +10496,8 @@ function $9d3d794b62318ecc$var$start_href_writer(_ref3) {
10491
10496
  defer: true
10492
10497
  }));
10493
10498
  }
10494
- function $9d3d794b62318ecc$var$delete_sideways_param_flag(searchParams) {
10495
- if (searchParams.get((0, $2855bffe06ef7a03$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $2855bffe06ef7a03$export$cf5feb2102aec7f2));
10499
+ function $9d3d794b62318ecc$var$delete_sideways_param_flag(url_object) {
10500
+ if (url_object.hash === (0, $2855bffe06ef7a03$export$84daa4fa1471698b)) url_object.hash = "";
10496
10501
  }
10497
10502
  function $f5f54892fd0c7d9f$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
10498
10503
  $f5f54892fd0c7d9f$var$_checkPrivateRedeclaration(obj, privateMap);
package/latest/index.cjs CHANGED
@@ -103,7 +103,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
103
103
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
104
104
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
105
105
  /*! Depict.ai search and product listing SDK */
106
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.23";
106
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.24";
107
107
  function $55cbacb79d3e0cea$export$54299a3c81f5425() {
108
108
  const d = document;
109
109
  const [isVisible, setIsVisible] = $gVhhF$solidjs.createSignal(d.visibilityState !== "hidden");
@@ -4365,7 +4365,7 @@ function $1ab22f2cd39b3061$export$916e6850778505f6(search_params, filter_query_p
4365
4365
  const keys = [...search_params.keys()];
4366
4366
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($1ab22f2cd39b3061$var$legacy_filter_prefix)) search_params.delete(key);
4367
4367
  }
4368
- const $1ab22f2cd39b3061$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4368
+ const $1ab22f2cd39b3061$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4369
4369
  function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
4370
4370
  to_url_: to_url_,
4371
4371
  set_clearing_flag_: set_clearing_flag_,
@@ -4379,9 +4379,13 @@ function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
4379
4379
  const {
4380
4380
  searchParams: searchParams
4381
4381
  } = url_object;
4382
- if (set_clearing_flag_) searchParams.set($1ab22f2cd39b3061$export$cf5feb2102aec7f2, "true");
4382
+ let transferredAnyFilters = false;
4383
4383
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4384
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
4384
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
4385
+ searchParams.set(key, from_search_params_.get(key));
4386
+ transferredAnyFilters = true;
4387
+ }
4388
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $1ab22f2cd39b3061$export$84daa4fa1471698b;
4385
4389
  if (was_url_object) return url_object;
4386
4390
  return url_object.href;
4387
4391
  }
@@ -9914,7 +9918,8 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
9914
9918
  $gVhhF$solidjs.onCleanup(() => (0, $gVhhF$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
9915
9919
  $gVhhF$solidjs.createComputed(() => {
9916
9920
  const {
9917
- searchParams: searchParams
9921
+ searchParams: searchParams,
9922
+ hash: hash
9918
9923
  } = new URL(get_current_href());
9919
9924
  $gVhhF$solidjs.batch(() => {
9920
9925
  const found_sorting = $1ab22f2cd39b3061$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -9946,7 +9951,7 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
9946
9951
  if (found_override_listing_id) $gVhhF$depictaiutilishared.dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
9947
9952
  }
9948
9953
 
9949
- if (searchParams.get((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
9954
+ if (hash === (0, $1ab22f2cd39b3061$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
9950
9955
  if (!writer_started) {
9951
9956
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
9952
9957
  $gVhhF$solidjs.runWithOwner(owner, () => $c79fd10a3ab7d6e0$var$start_href_writer({
@@ -9987,21 +9992,21 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
9987
9992
  filter_query_param_prefix_: filter_query_param_prefix_
9988
9993
  }) {
9989
9994
  $gVhhF$solidjs.createEffect($gVhhF$solidjs.on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], ([sorting, filters, has_sideways_filter_clearing_flag]) => {
9990
- const current_href = location.href;
9991
- const url_object = new URL(current_href);
9995
+ const url_object = new URL(location.href);
9996
+ const unmodified_search_params = [...url_object.searchParams];
9997
+ const unmodified_hash = url_object.hash;
9992
9998
  const {
9993
9999
  searchParams: searchParams
9994
10000
  } = url_object;
9995
10001
  $1ab22f2cd39b3061$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
9996
10002
  $1ab22f2cd39b3061$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
9997
10003
  $1ab22f2cd39b3061$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
9998
- if (!has_sideways_filter_clearing_flag) $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(searchParams);
10004
+ if (!has_sideways_filter_clearing_flag) $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(url_object);
9999
10005
  // 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
10000
- const unmodified_search_params = [...new URL(current_href).searchParams];
10001
10006
  const new_search_params = [...searchParams];
10002
10007
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
10003
10008
  const new_search_params_map = new Map(new_search_params);
10004
- if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value))
10009
+ if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value) || unmodified_hash !== url_object.hash)
10005
10010
  // Only update URL if it actually changed
10006
10011
  router_.navigate_.go_to_({
10007
10012
  is_replace_: true,
@@ -10013,8 +10018,8 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
10013
10018
  defer: true
10014
10019
  }));
10015
10020
  }
10016
- function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(searchParams) {
10017
- if (searchParams.get((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2));
10021
+ function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(url_object) {
10022
+ if (url_object.hash === (0, $1ab22f2cd39b3061$export$84daa4fa1471698b)) url_object.hash = "";
10018
10023
  }
10019
10024
 
10020
10025
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
package/latest/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.23";
14
+ export const version = "4.7.24";
15
15
  /**
16
16
  * Returns if the current tab is visible
17
17
  */
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.23";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.24";
11
11
  function $5e3d278ef4c80cd7$export$54299a3c81f5425() {
12
12
  const d = document;
13
13
  const [isVisible, setIsVisible] = $9HbP8$createSignal(d.visibilityState !== "hidden");
@@ -4269,7 +4269,7 @@ function $4147651646da990a$export$916e6850778505f6(search_params, filter_query_p
4269
4269
  const keys = [...search_params.keys()];
4270
4270
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($4147651646da990a$var$legacy_filter_prefix)) search_params.delete(key);
4271
4271
  }
4272
- const $4147651646da990a$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4272
+ const $4147651646da990a$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4273
4273
  function $4147651646da990a$export$43cd1e747fecd42e({
4274
4274
  to_url_: to_url_,
4275
4275
  set_clearing_flag_: set_clearing_flag_,
@@ -4283,9 +4283,13 @@ function $4147651646da990a$export$43cd1e747fecd42e({
4283
4283
  const {
4284
4284
  searchParams: searchParams
4285
4285
  } = url_object;
4286
- if (set_clearing_flag_) searchParams.set($4147651646da990a$export$cf5feb2102aec7f2, "true");
4286
+ let transferredAnyFilters = false;
4287
4287
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4288
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
4288
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
4289
+ searchParams.set(key, from_search_params_.get(key));
4290
+ transferredAnyFilters = true;
4291
+ }
4292
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $4147651646da990a$export$84daa4fa1471698b;
4289
4293
  if (was_url_object) return url_object;
4290
4294
  return url_object.href;
4291
4295
  }
@@ -9818,7 +9822,8 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
9818
9822
  $9HbP8$onCleanup(() => (0, $9HbP8$instant_exec_on_suspect_history_change).delete(history_change_handler));
9819
9823
  $9HbP8$createComputed(() => {
9820
9824
  const {
9821
- searchParams: searchParams
9825
+ searchParams: searchParams,
9826
+ hash: hash
9822
9827
  } = new URL(get_current_href());
9823
9828
  $9HbP8$batch(() => {
9824
9829
  const found_sorting = $4147651646da990a$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -9850,7 +9855,7 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
9850
9855
  if (found_override_listing_id) $9HbP8$dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
9851
9856
  }
9852
9857
 
9853
- if (searchParams.get((0, $4147651646da990a$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
9858
+ if (hash === (0, $4147651646da990a$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
9854
9859
  if (!writer_started) {
9855
9860
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
9856
9861
  $9HbP8$runWithOwner(owner, () => $ccd5db07a3a069c5$var$start_href_writer({
@@ -9891,21 +9896,21 @@ function $ccd5db07a3a069c5$var$start_href_writer({
9891
9896
  filter_query_param_prefix_: filter_query_param_prefix_
9892
9897
  }) {
9893
9898
  $9HbP8$createEffect($9HbP8$on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], ([sorting, filters, has_sideways_filter_clearing_flag]) => {
9894
- const current_href = location.href;
9895
- const url_object = new URL(current_href);
9899
+ const url_object = new URL(location.href);
9900
+ const unmodified_search_params = [...url_object.searchParams];
9901
+ const unmodified_hash = url_object.hash;
9896
9902
  const {
9897
9903
  searchParams: searchParams
9898
9904
  } = url_object;
9899
9905
  $4147651646da990a$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
9900
9906
  $4147651646da990a$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
9901
9907
  $4147651646da990a$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
9902
- if (!has_sideways_filter_clearing_flag) $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams);
9908
+ if (!has_sideways_filter_clearing_flag) $ccd5db07a3a069c5$var$delete_sideways_param_flag(url_object);
9903
9909
  // 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
9904
- const unmodified_search_params = [...new URL(current_href).searchParams];
9905
9910
  const new_search_params = [...searchParams];
9906
9911
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
9907
9912
  const new_search_params_map = new Map(new_search_params);
9908
- if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value))
9913
+ if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value) || unmodified_hash !== url_object.hash)
9909
9914
  // Only update URL if it actually changed
9910
9915
  router_.navigate_.go_to_({
9911
9916
  is_replace_: true,
@@ -9917,8 +9922,8 @@ function $ccd5db07a3a069c5$var$start_href_writer({
9917
9922
  defer: true
9918
9923
  }));
9919
9924
  }
9920
- function $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams) {
9921
- if (searchParams.get((0, $4147651646da990a$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $4147651646da990a$export$cf5feb2102aec7f2));
9925
+ function $ccd5db07a3a069c5$var$delete_sideways_param_flag(url_object) {
9926
+ if (url_object.hash === (0, $4147651646da990a$export$84daa4fa1471698b)) url_object.hash = "";
9922
9927
  }
9923
9928
 
9924
9929
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.7.23",
3
+ "version": "4.7.24",
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
  "sass": "styles.scss",
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.23";
112
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.24";
113
113
  function $e7a7d2fe8a8217d8$export$54299a3c81f5425() {
114
114
  const d = document;
115
115
  const [isVisible, setIsVisible] = $3hooq$solidjs.createSignal(d.visibilityState !== "hidden");
@@ -3787,7 +3787,7 @@ function $a68b73fd7ba0853f$export$916e6850778505f6(search_params, filter_query_p
3787
3787
  const keys = [...search_params.keys()];
3788
3788
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($a68b73fd7ba0853f$var$legacy_filter_prefix)) search_params.delete(key);
3789
3789
  }
3790
- const $a68b73fd7ba0853f$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
3790
+ const $a68b73fd7ba0853f$export$84daa4fa1471698b = "#went_sideways_clear_filters";
3791
3791
  function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
3792
3792
  let {
3793
3793
  to_url_: to_url_,
@@ -3802,9 +3802,13 @@ function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
3802
3802
  const {
3803
3803
  searchParams: searchParams
3804
3804
  } = url_object;
3805
- if (set_clearing_flag_) searchParams.set($a68b73fd7ba0853f$export$cf5feb2102aec7f2, "true");
3805
+ let transferredAnyFilters = false;
3806
3806
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
3807
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
3807
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
3808
+ searchParams.set(key, from_search_params_.get(key));
3809
+ transferredAnyFilters = true;
3810
+ }
3811
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $a68b73fd7ba0853f$export$84daa4fa1471698b;
3808
3812
  if (was_url_object) return url_object;
3809
3813
  return url_object.href;
3810
3814
  }
@@ -8453,7 +8457,8 @@ function $5dd9d0d3ea82e2dd$export$477caf01aecaeb2a(options) {
8453
8457
  $3hooq$solidjs.onCleanup(() => (0, $3hooq$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
8454
8458
  $3hooq$solidjs.createComputed(() => {
8455
8459
  const {
8456
- searchParams: searchParams
8460
+ searchParams: searchParams,
8461
+ hash: hash
8457
8462
  } = new URL(get_current_href());
8458
8463
  $3hooq$solidjs.batch(() => {
8459
8464
  const found_sorting = $a68b73fd7ba0853f$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -8491,7 +8496,7 @@ function $5dd9d0d3ea82e2dd$export$477caf01aecaeb2a(options) {
8491
8496
  if (found_override_listing_id) $3hooq$depictaiutilishared.dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
8492
8497
  }
8493
8498
 
8494
- if (searchParams.get((0, $a68b73fd7ba0853f$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
8499
+ if (hash === (0, $a68b73fd7ba0853f$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
8495
8500
  if (!writer_started) {
8496
8501
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
8497
8502
  $3hooq$solidjs.runWithOwner(owner, () => $5dd9d0d3ea82e2dd$var$start_href_writer({
@@ -8534,24 +8539,24 @@ function $5dd9d0d3ea82e2dd$var$start_href_writer(_ref3) {
8534
8539
  } = _ref3;
8535
8540
  $3hooq$solidjs.createEffect($3hooq$solidjs.on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], _ref4 => {
8536
8541
  let [sorting, filters, has_sideways_filter_clearing_flag] = _ref4;
8537
- const current_href = location.href;
8538
- const url_object = new URL(current_href);
8542
+ const url_object = new URL(location.href);
8543
+ const unmodified_search_params = [...url_object.searchParams];
8544
+ const unmodified_hash = url_object.hash;
8539
8545
  const {
8540
8546
  searchParams: searchParams
8541
8547
  } = url_object;
8542
8548
  $a68b73fd7ba0853f$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
8543
8549
  $a68b73fd7ba0853f$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
8544
8550
  $a68b73fd7ba0853f$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
8545
- if (!has_sideways_filter_clearing_flag) $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(searchParams);
8551
+ if (!has_sideways_filter_clearing_flag) $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(url_object);
8546
8552
  // 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
8547
- const unmodified_search_params = [...new URL(current_href).searchParams];
8548
8553
  const new_search_params = [...searchParams];
8549
8554
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
8550
8555
  const new_search_params_map = new Map(new_search_params);
8551
8556
  if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(_ref5 => {
8552
8557
  let [key, value] = _ref5;
8553
8558
  return new_search_params_map.get(key) === value;
8554
- }))
8559
+ }) || unmodified_hash !== url_object.hash)
8555
8560
  // Only update URL if it actually changed
8556
8561
  router_.navigate_.go_to_({
8557
8562
  is_replace_: true,
@@ -8563,8 +8568,8 @@ function $5dd9d0d3ea82e2dd$var$start_href_writer(_ref3) {
8563
8568
  defer: true
8564
8569
  }));
8565
8570
  }
8566
- function $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(searchParams) {
8567
- if (searchParams.get((0, $a68b73fd7ba0853f$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $a68b73fd7ba0853f$export$cf5feb2102aec7f2));
8571
+ function $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(url_object) {
8572
+ if (url_object.hash === (0, $a68b73fd7ba0853f$export$84daa4fa1471698b)) url_object.hash = "";
8568
8573
  }
8569
8574
  function $9cbefc32b9dab36d$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
8570
8575
  $9cbefc32b9dab36d$var$_checkPrivateRedeclaration(obj, privateMap);
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.23";
14
+ export const version = "4.7.24";
15
15
  /**
16
16
  * Returns if the current tab is visible
17
17
  */
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.23";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.24";
14
14
  function $a35e6f680c5bbc60$export$54299a3c81f5425() {
15
15
  const d = document;
16
16
  const [isVisible, setIsVisible] = $b8hua$createSignal(d.visibilityState !== "hidden");
@@ -3688,7 +3688,7 @@ function $2855bffe06ef7a03$export$916e6850778505f6(search_params, filter_query_p
3688
3688
  const keys = [...search_params.keys()];
3689
3689
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($2855bffe06ef7a03$var$legacy_filter_prefix)) search_params.delete(key);
3690
3690
  }
3691
- const $2855bffe06ef7a03$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
3691
+ const $2855bffe06ef7a03$export$84daa4fa1471698b = "#went_sideways_clear_filters";
3692
3692
  function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
3693
3693
  let {
3694
3694
  to_url_: to_url_,
@@ -3703,9 +3703,13 @@ function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
3703
3703
  const {
3704
3704
  searchParams: searchParams
3705
3705
  } = url_object;
3706
- if (set_clearing_flag_) searchParams.set($2855bffe06ef7a03$export$cf5feb2102aec7f2, "true");
3706
+ let transferredAnyFilters = false;
3707
3707
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
3708
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
3708
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
3709
+ searchParams.set(key, from_search_params_.get(key));
3710
+ transferredAnyFilters = true;
3711
+ }
3712
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $2855bffe06ef7a03$export$84daa4fa1471698b;
3709
3713
  if (was_url_object) return url_object;
3710
3714
  return url_object.href;
3711
3715
  }
@@ -8354,7 +8358,8 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
8354
8358
  $b8hua$onCleanup(() => (0, $b8hua$instant_exec_on_suspect_history_change).delete(history_change_handler));
8355
8359
  $b8hua$createComputed(() => {
8356
8360
  const {
8357
- searchParams: searchParams
8361
+ searchParams: searchParams,
8362
+ hash: hash
8358
8363
  } = new URL(get_current_href());
8359
8364
  $b8hua$batch(() => {
8360
8365
  const found_sorting = $2855bffe06ef7a03$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -8392,7 +8397,7 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
8392
8397
  if (found_override_listing_id) $b8hua$dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
8393
8398
  }
8394
8399
 
8395
- if (searchParams.get((0, $2855bffe06ef7a03$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
8400
+ if (hash === (0, $2855bffe06ef7a03$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
8396
8401
  if (!writer_started) {
8397
8402
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
8398
8403
  $b8hua$runWithOwner(owner, () => $9d3d794b62318ecc$var$start_href_writer({
@@ -8435,24 +8440,24 @@ function $9d3d794b62318ecc$var$start_href_writer(_ref3) {
8435
8440
  } = _ref3;
8436
8441
  $b8hua$createEffect($b8hua$on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], _ref4 => {
8437
8442
  let [sorting, filters, has_sideways_filter_clearing_flag] = _ref4;
8438
- const current_href = location.href;
8439
- const url_object = new URL(current_href);
8443
+ const url_object = new URL(location.href);
8444
+ const unmodified_search_params = [...url_object.searchParams];
8445
+ const unmodified_hash = url_object.hash;
8440
8446
  const {
8441
8447
  searchParams: searchParams
8442
8448
  } = url_object;
8443
8449
  $2855bffe06ef7a03$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
8444
8450
  $2855bffe06ef7a03$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
8445
8451
  $2855bffe06ef7a03$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
8446
- if (!has_sideways_filter_clearing_flag) $9d3d794b62318ecc$var$delete_sideways_param_flag(searchParams);
8452
+ if (!has_sideways_filter_clearing_flag) $9d3d794b62318ecc$var$delete_sideways_param_flag(url_object);
8447
8453
  // 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
8448
- const unmodified_search_params = [...new URL(current_href).searchParams];
8449
8454
  const new_search_params = [...searchParams];
8450
8455
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
8451
8456
  const new_search_params_map = new Map(new_search_params);
8452
8457
  if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(_ref5 => {
8453
8458
  let [key, value] = _ref5;
8454
8459
  return new_search_params_map.get(key) === value;
8455
- }))
8460
+ }) || unmodified_hash !== url_object.hash)
8456
8461
  // Only update URL if it actually changed
8457
8462
  router_.navigate_.go_to_({
8458
8463
  is_replace_: true,
@@ -8464,8 +8469,8 @@ function $9d3d794b62318ecc$var$start_href_writer(_ref3) {
8464
8469
  defer: true
8465
8470
  }));
8466
8471
  }
8467
- function $9d3d794b62318ecc$var$delete_sideways_param_flag(searchParams) {
8468
- if (searchParams.get((0, $2855bffe06ef7a03$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $2855bffe06ef7a03$export$cf5feb2102aec7f2));
8472
+ function $9d3d794b62318ecc$var$delete_sideways_param_flag(url_object) {
8473
+ if (url_object.hash === (0, $2855bffe06ef7a03$export$84daa4fa1471698b)) url_object.hash = "";
8469
8474
  }
8470
8475
  function $f5f54892fd0c7d9f$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
8471
8476
  $f5f54892fd0c7d9f$var$_checkPrivateRedeclaration(obj, privateMap);
@@ -103,7 +103,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
103
103
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
104
104
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
105
105
  /*! Depict.ai search and product listing SDK */
106
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.23";
106
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.24";
107
107
  function $55cbacb79d3e0cea$export$54299a3c81f5425() {
108
108
  const d = document;
109
109
  const [isVisible, setIsVisible] = $5vyXB$solidjs.createSignal(d.visibilityState !== "hidden");
@@ -3595,7 +3595,7 @@ function $1ab22f2cd39b3061$export$916e6850778505f6(search_params, filter_query_p
3595
3595
  const keys = [...search_params.keys()];
3596
3596
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($1ab22f2cd39b3061$var$legacy_filter_prefix)) search_params.delete(key);
3597
3597
  }
3598
- const $1ab22f2cd39b3061$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
3598
+ const $1ab22f2cd39b3061$export$84daa4fa1471698b = "#went_sideways_clear_filters";
3599
3599
  function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
3600
3600
  to_url_: to_url_,
3601
3601
  set_clearing_flag_: set_clearing_flag_,
@@ -3609,9 +3609,13 @@ function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
3609
3609
  const {
3610
3610
  searchParams: searchParams
3611
3611
  } = url_object;
3612
- if (set_clearing_flag_) searchParams.set($1ab22f2cd39b3061$export$cf5feb2102aec7f2, "true");
3612
+ let transferredAnyFilters = false;
3613
3613
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
3614
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
3614
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
3615
+ searchParams.set(key, from_search_params_.get(key));
3616
+ transferredAnyFilters = true;
3617
+ }
3618
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $1ab22f2cd39b3061$export$84daa4fa1471698b;
3615
3619
  if (was_url_object) return url_object;
3616
3620
  return url_object.href;
3617
3621
  }
@@ -7943,7 +7947,8 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
7943
7947
  $5vyXB$solidjs.onCleanup(() => (0, $5vyXB$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
7944
7948
  $5vyXB$solidjs.createComputed(() => {
7945
7949
  const {
7946
- searchParams: searchParams
7950
+ searchParams: searchParams,
7951
+ hash: hash
7947
7952
  } = new URL(get_current_href());
7948
7953
  $5vyXB$solidjs.batch(() => {
7949
7954
  const found_sorting = $1ab22f2cd39b3061$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -7975,7 +7980,7 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
7975
7980
  if (found_override_listing_id) $5vyXB$depictaiutilishared.dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
7976
7981
  }
7977
7982
 
7978
- if (searchParams.get((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
7983
+ if (hash === (0, $1ab22f2cd39b3061$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
7979
7984
  if (!writer_started) {
7980
7985
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
7981
7986
  $5vyXB$solidjs.runWithOwner(owner, () => $c79fd10a3ab7d6e0$var$start_href_writer({
@@ -8016,21 +8021,21 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
8016
8021
  filter_query_param_prefix_: filter_query_param_prefix_
8017
8022
  }) {
8018
8023
  $5vyXB$solidjs.createEffect($5vyXB$solidjs.on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], ([sorting, filters, has_sideways_filter_clearing_flag]) => {
8019
- const current_href = location.href;
8020
- const url_object = new URL(current_href);
8024
+ const url_object = new URL(location.href);
8025
+ const unmodified_search_params = [...url_object.searchParams];
8026
+ const unmodified_hash = url_object.hash;
8021
8027
  const {
8022
8028
  searchParams: searchParams
8023
8029
  } = url_object;
8024
8030
  $1ab22f2cd39b3061$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
8025
8031
  $1ab22f2cd39b3061$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
8026
8032
  $1ab22f2cd39b3061$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
8027
- if (!has_sideways_filter_clearing_flag) $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(searchParams);
8033
+ if (!has_sideways_filter_clearing_flag) $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(url_object);
8028
8034
  // 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
8029
- const unmodified_search_params = [...new URL(current_href).searchParams];
8030
8035
  const new_search_params = [...searchParams];
8031
8036
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
8032
8037
  const new_search_params_map = new Map(new_search_params);
8033
- if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value))
8038
+ if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value) || unmodified_hash !== url_object.hash)
8034
8039
  // Only update URL if it actually changed
8035
8040
  router_.navigate_.go_to_({
8036
8041
  is_replace_: true,
@@ -8042,8 +8047,8 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
8042
8047
  defer: true
8043
8048
  }));
8044
8049
  }
8045
- function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(searchParams) {
8046
- if (searchParams.get((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $1ab22f2cd39b3061$export$cf5feb2102aec7f2));
8050
+ function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(url_object) {
8051
+ if (url_object.hash === (0, $1ab22f2cd39b3061$export$84daa4fa1471698b)) url_object.hash = "";
8047
8052
  }
8048
8053
 
8049
8054
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.7.23";
14
+ export const version = "4.7.24";
15
15
  /**
16
16
  * Returns if the current tab is visible
17
17
  */
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.23";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.24";
11
11
  function $5e3d278ef4c80cd7$export$54299a3c81f5425() {
12
12
  const d = document;
13
13
  const [isVisible, setIsVisible] = $i7OB2$createSignal(d.visibilityState !== "hidden");
@@ -3499,7 +3499,7 @@ function $4147651646da990a$export$916e6850778505f6(search_params, filter_query_p
3499
3499
  const keys = [...search_params.keys()];
3500
3500
  for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($4147651646da990a$var$legacy_filter_prefix)) search_params.delete(key);
3501
3501
  }
3502
- const $4147651646da990a$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
3502
+ const $4147651646da990a$export$84daa4fa1471698b = "#went_sideways_clear_filters";
3503
3503
  function $4147651646da990a$export$43cd1e747fecd42e({
3504
3504
  to_url_: to_url_,
3505
3505
  set_clearing_flag_: set_clearing_flag_,
@@ -3513,9 +3513,13 @@ function $4147651646da990a$export$43cd1e747fecd42e({
3513
3513
  const {
3514
3514
  searchParams: searchParams
3515
3515
  } = url_object;
3516
- if (set_clearing_flag_) searchParams.set($4147651646da990a$export$cf5feb2102aec7f2, "true");
3516
+ let transferredAnyFilters = false;
3517
3517
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
3518
- for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) searchParams.set(key, from_search_params_.get(key));
3518
+ for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
3519
+ searchParams.set(key, from_search_params_.get(key));
3520
+ transferredAnyFilters = true;
3521
+ }
3522
+ if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $4147651646da990a$export$84daa4fa1471698b;
3519
3523
  if (was_url_object) return url_object;
3520
3524
  return url_object.href;
3521
3525
  }
@@ -7847,7 +7851,8 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
7847
7851
  $i7OB2$onCleanup(() => (0, $i7OB2$instant_exec_on_suspect_history_change).delete(history_change_handler));
7848
7852
  $i7OB2$createComputed(() => {
7849
7853
  const {
7850
- searchParams: searchParams
7854
+ searchParams: searchParams,
7855
+ hash: hash
7851
7856
  } = new URL(get_current_href());
7852
7857
  $i7OB2$batch(() => {
7853
7858
  const found_sorting = $4147651646da990a$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -7879,7 +7884,7 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
7879
7884
  if (found_override_listing_id) $i7OB2$dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
7880
7885
  }
7881
7886
 
7882
- if (searchParams.get((0, $4147651646da990a$export$cf5feb2102aec7f2)) === "true") set_has_sideways_filter_clearing_flag(true);
7887
+ if (hash === (0, $4147651646da990a$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
7883
7888
  if (!writer_started) {
7884
7889
  // The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
7885
7890
  $i7OB2$runWithOwner(owner, () => $ccd5db07a3a069c5$var$start_href_writer({
@@ -7920,21 +7925,21 @@ function $ccd5db07a3a069c5$var$start_href_writer({
7920
7925
  filter_query_param_prefix_: filter_query_param_prefix_
7921
7926
  }) {
7922
7927
  $i7OB2$createEffect($i7OB2$on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], ([sorting, filters, has_sideways_filter_clearing_flag]) => {
7923
- const current_href = location.href;
7924
- const url_object = new URL(current_href);
7928
+ const url_object = new URL(location.href);
7929
+ const unmodified_search_params = [...url_object.searchParams];
7930
+ const unmodified_hash = url_object.hash;
7925
7931
  const {
7926
7932
  searchParams: searchParams
7927
7933
  } = url_object;
7928
7934
  $4147651646da990a$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
7929
7935
  $4147651646da990a$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
7930
7936
  $4147651646da990a$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
7931
- if (!has_sideways_filter_clearing_flag) $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams);
7937
+ if (!has_sideways_filter_clearing_flag) $ccd5db07a3a069c5$var$delete_sideways_param_flag(url_object);
7932
7938
  // 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
7933
- const unmodified_search_params = [...new URL(current_href).searchParams];
7934
7939
  const new_search_params = [...searchParams];
7935
7940
  // Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
7936
7941
  const new_search_params_map = new Map(new_search_params);
7937
- if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value))
7942
+ if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value) || unmodified_hash !== url_object.hash)
7938
7943
  // Only update URL if it actually changed
7939
7944
  router_.navigate_.go_to_({
7940
7945
  is_replace_: true,
@@ -7946,8 +7951,8 @@ function $ccd5db07a3a069c5$var$start_href_writer({
7946
7951
  defer: true
7947
7952
  }));
7948
7953
  }
7949
- function $ccd5db07a3a069c5$var$delete_sideways_param_flag(searchParams) {
7950
- if (searchParams.get((0, $4147651646da990a$export$cf5feb2102aec7f2)) === "true") searchParams.delete((0, $4147651646da990a$export$cf5feb2102aec7f2));
7954
+ function $ccd5db07a3a069c5$var$delete_sideways_param_flag(url_object) {
7955
+ if (url_object.hash === (0, $4147651646da990a$export$84daa4fa1471698b)) url_object.hash = "";
7951
7956
  }
7952
7957
 
7953
7958
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified