@depict-ai/ui 4.7.22 → 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
@@ -1,6 +1,6 @@
1
1
  var $52FdA$depictaiutilishared = require("@depict-ai/utilishared/ES10");
2
- var $52FdA$solidjsweb = require("solid-js/web");
3
2
  var $52FdA$solidjs = require("solid-js");
3
+ var $52FdA$solidjsweb = require("solid-js/web");
4
4
  var $52FdA$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
5
5
  var $52FdA$depictaiutilisharedlatest = require("@depict-ai/utilishared/ES10");
6
6
  var $52FdA$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
@@ -18,6 +18,7 @@ function $parcel$export(e, n, v, s) {
18
18
  function $parcel$interopDefault(a) {
19
19
  return a && a.__esModule ? a.default : a;
20
20
  }
21
+ $parcel$export(module.exports, "useVisibilityState", () => $e7a7d2fe8a8217d8$export$54299a3c81f5425);
21
22
  $parcel$export(module.exports, "useSlidableInformation", () => $ad8ec7729fffeb9c$export$eaa625fb39439e37);
22
23
  $parcel$export(module.exports, "useProductCardIsVisible", () => $a52942afacbced93$export$80bb7300ce6a8be3);
23
24
  $parcel$export(module.exports, "CurrentlyIntersectingContext", () => $a52942afacbced93$export$f223d69ed12f5fb7);
@@ -108,7 +109,15 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
108
109
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
109
110
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
110
111
  /*! Depict.ai search and product listing SDK */
111
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.22";
112
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.24";
113
+ function $e7a7d2fe8a8217d8$export$54299a3c81f5425() {
114
+ const d = document;
115
+ const [isVisible, setIsVisible] = $52FdA$solidjs.createSignal(d.visibilityState !== "hidden");
116
+ const handleVisibilityChange = () => setIsVisible(d.visibilityState !== "hidden");
117
+ d.addEventListener("visibilitychange", handleVisibilityChange);
118
+ $52FdA$solidjs.onCleanup(() => d.removeEventListener("visibilitychange", handleVisibilityChange));
119
+ return isVisible;
120
+ }
112
121
  var $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
113
122
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
114
123
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1738,17 +1747,17 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1738
1747
  return _el$;
1739
1748
  })();
1740
1749
  }
1741
- var $dfa95866b27a2a53$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1742
- let $dfa95866b27a2a53$var$cachedValue;
1743
- async function $dfa95866b27a2a53$export$7b9a0e99f0aeb2f3() {
1744
- if ($dfa95866b27a2a53$var$cachedValue != undefined) return $dfa95866b27a2a53$var$cachedValue;
1745
- return $dfa95866b27a2a53$var$cachedValue = $dfa95866b27a2a53$var$checkIfIsAffectedByChromeBug326498383();
1750
+ var $b5e1e9638abb90ff$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1751
+ let $b5e1e9638abb90ff$var$cachedValue;
1752
+ async function $b5e1e9638abb90ff$export$7b9a0e99f0aeb2f3() {
1753
+ if ($b5e1e9638abb90ff$var$cachedValue != undefined) return $b5e1e9638abb90ff$var$cachedValue;
1754
+ return $b5e1e9638abb90ff$var$cachedValue = $b5e1e9638abb90ff$var$checkIfIsAffectedByChromeBug326498383();
1746
1755
  }
1747
- async function $dfa95866b27a2a53$var$checkIfIsAffectedByChromeBug326498383() {
1756
+ async function $b5e1e9638abb90ff$var$checkIfIsAffectedByChromeBug326498383() {
1748
1757
  let isAffected = true;
1749
1758
  let resolveTimeoutPromise;
1750
1759
  try {
1751
- const div = $52FdA$solidjsweb.getNextElement($dfa95866b27a2a53$var$_tmpl$);
1760
+ const div = $52FdA$solidjsweb.getNextElement($b5e1e9638abb90ff$var$_tmpl$);
1752
1761
  const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
1753
1762
  const timeoutPromise = new Promise(r => {
1754
1763
  resolveTimeoutPromise = r;
@@ -1761,7 +1770,7 @@ async function $dfa95866b27a2a53$var$checkIfIsAffectedByChromeBug326498383() {
1761
1770
  style: style
1762
1771
  } = div;
1763
1772
  // Just to get a long string
1764
- div.append($dfa95866b27a2a53$export$7b9a0e99f0aeb2f3 + "");
1773
+ div.append($b5e1e9638abb90ff$export$7b9a0e99f0aeb2f3 + "");
1765
1774
  document.documentElement.append(div);
1766
1775
  style.overflow = "auto";
1767
1776
  await waitAFrame();
@@ -1809,7 +1818,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1809
1818
  const textFadeInAnimationRunning = $52FdA$solidjs.createSignal(false);
1810
1819
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1811
1820
  const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1812
- $dfa95866b27a2a53$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1821
+ $b5e1e9638abb90ff$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1813
1822
  return $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
1814
1823
  get children() {
1815
1824
  return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
@@ -4569,7 +4578,7 @@ function $a68b73fd7ba0853f$export$916e6850778505f6(search_params, filter_query_p
4569
4578
  const keys = [...search_params.keys()];
4570
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);
4571
4580
  }
4572
- const $a68b73fd7ba0853f$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4581
+ const $a68b73fd7ba0853f$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4573
4582
  function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
4574
4583
  let {
4575
4584
  to_url_: to_url_,
@@ -4584,9 +4593,13 @@ function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
4584
4593
  const {
4585
4594
  searchParams: searchParams
4586
4595
  } = url_object;
4587
- if (set_clearing_flag_) searchParams.set($a68b73fd7ba0853f$export$cf5feb2102aec7f2, "true");
4596
+ let transferredAnyFilters = false;
4588
4597
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4589
- 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;
4590
4603
  if (was_url_object) return url_object;
4591
4604
  return url_object.href;
4592
4605
  }
@@ -10471,7 +10484,8 @@ function $5dd9d0d3ea82e2dd$export$477caf01aecaeb2a(options) {
10471
10484
  $52FdA$solidjs.onCleanup(() => (0, $52FdA$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
10472
10485
  $52FdA$solidjs.createComputed(() => {
10473
10486
  const {
10474
- searchParams: searchParams
10487
+ searchParams: searchParams,
10488
+ hash: hash
10475
10489
  } = new URL(get_current_href());
10476
10490
  $52FdA$solidjs.batch(() => {
10477
10491
  const found_sorting = $a68b73fd7ba0853f$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -10509,7 +10523,7 @@ function $5dd9d0d3ea82e2dd$export$477caf01aecaeb2a(options) {
10509
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
10510
10524
  }
10511
10525
 
10512
- 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);
10513
10527
  if (!writer_started) {
10514
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
10515
10529
  $52FdA$solidjs.runWithOwner(owner, () => $5dd9d0d3ea82e2dd$var$start_href_writer({
@@ -10552,24 +10566,24 @@ function $5dd9d0d3ea82e2dd$var$start_href_writer(_ref3) {
10552
10566
  } = _ref3;
10553
10567
  $52FdA$solidjs.createEffect($52FdA$solidjs.on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], _ref4 => {
10554
10568
  let [sorting, filters, has_sideways_filter_clearing_flag] = _ref4;
10555
- const current_href = location.href;
10556
- 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;
10557
10572
  const {
10558
10573
  searchParams: searchParams
10559
10574
  } = url_object;
10560
10575
  $a68b73fd7ba0853f$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
10561
10576
  $a68b73fd7ba0853f$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
10562
10577
  $a68b73fd7ba0853f$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
10563
- 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);
10564
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
10565
- const unmodified_search_params = [...new URL(current_href).searchParams];
10566
10580
  const new_search_params = [...searchParams];
10567
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
10568
10582
  const new_search_params_map = new Map(new_search_params);
10569
10583
  if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(_ref5 => {
10570
10584
  let [key, value] = _ref5;
10571
10585
  return new_search_params_map.get(key) === value;
10572
- }))
10586
+ }) || unmodified_hash !== url_object.hash)
10573
10587
  // Only update URL if it actually changed
10574
10588
  router_.navigate_.go_to_({
10575
10589
  is_replace_: true,
@@ -10581,8 +10595,8 @@ function $5dd9d0d3ea82e2dd$var$start_href_writer(_ref3) {
10581
10595
  defer: true
10582
10596
  }));
10583
10597
  }
10584
- function $5dd9d0d3ea82e2dd$var$delete_sideways_param_flag(searchParams) {
10585
- 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 = "";
10586
10600
  }
10587
10601
  function $9cbefc32b9dab36d$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
10588
10602
  $9cbefc32b9dab36d$var$_checkPrivateRedeclaration(obj, privateMap);
package/ES10/index.d.ts CHANGED
@@ -11,7 +11,11 @@ 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.22";
14
+ export const version = "4.7.24";
15
+ /**
16
+ * Returns if the current tab is visible
17
+ */
18
+ export function useVisibilityState(): import("solid-js").Accessor<boolean>;
15
19
  /** @jsxImportSource solid-js */
16
20
  export function GenericSliderArrowButton(props?: {
17
21
  width_?: number;
package/ES10/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { add_to_version_info as $8tj43$add_to_version_info, slider_fading_factory as $8tj43$slider_fading_factory, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, catchify as $8tj43$catchify, dlog as $8tj43$dlog, camelCasifyObject as $8tj43$camelCasifyObject, useExpandingContainer as $8tj43$useExpandingContainer, fetch_retry as $8tj43$fetch_retry, base_url as $8tj43$base_url, dwarn as $8tj43$dwarn, slider_fractional_factory as $8tj43$slider_fractional_factory, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, observer as $8tj43$observer, javascript_media_query as $8tj43$javascript_media_query, queueMacroTask as $8tj43$queueMacroTask, findMostFrequentItem as $8tj43$findMostFrequentItem, standard_price_format as $8tj43$standard_price_format, instant_exec_on_suspect_history_change as $8tj43$instant_exec_on_suspect_history_change, deparallelize_no_drop as $8tj43$deparallelize_no_drop, ContainedImage as $8tj43$ContainedImage, buildThresholdList as $8tj43$buildThresholdList, make_asyncIterable_exiter as $8tj43$make_asyncIterable_exiter, href_change_ipns as $8tj43$href_change_ipns, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, use_href_accessor as $8tj43$use_href_accessor, get_session_id as $8tj43$get_session_id, add_version_query_params as $8tj43$add_version_query_params, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, snakeCasifyObject as $8tj43$snakeCasifyObject, make_url_with_query_params as $8tj43$make_url_with_query_params, sort_obj as $8tj43$sort_obj, insert_surfaces as $8tj43$insert_surfaces, is_debug as $8tj43$is_debug } from "@depict-ai/utilishared/ES10";
2
+ import { createSignal as $8tj43$createSignal, onCleanup as $8tj43$onCleanup, createContext as $8tj43$createContext, createEffect as $8tj43$createEffect, Show as $8tj43$Show, useContext as $8tj43$useContext, createMemo as $8tj43$createMemo, untrack as $8tj43$untrack, For as $8tj43$For, getOwner as $8tj43$getOwner, createResource as $8tj43$createResource, runWithOwner as $8tj43$runWithOwner, mergeProps as $8tj43$mergeProps1, Suspense as $8tj43$Suspense, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, splitProps as $8tj43$splitProps, on as $8tj43$on, batch as $8tj43$batch, createSelector as $8tj43$createSelector, children as $8tj43$children, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray } from "solid-js";
2
3
  import { template as $8tj43$template, getNextElement as $8tj43$getNextElement, insert as $8tj43$insert, createComponent as $8tj43$createComponent, isServer as $8tj43$isServer, effect as $8tj43$effect, setAttribute as $8tj43$setAttribute, mergeProps as $8tj43$mergeProps, className as $8tj43$className, spread as $8tj43$spread, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, getNextMarker as $8tj43$getNextMarker, classList as $8tj43$classList, use as $8tj43$use, style as $8tj43$style, setProperty as $8tj43$setProperty, Dynamic as $8tj43$Dynamic } from "solid-js/web";
3
- import { createContext as $8tj43$createContext, createSignal as $8tj43$createSignal, createEffect as $8tj43$createEffect, Show as $8tj43$Show, onCleanup as $8tj43$onCleanup, useContext as $8tj43$useContext, createMemo as $8tj43$createMemo, untrack as $8tj43$untrack, For as $8tj43$For, getOwner as $8tj43$getOwner, createResource as $8tj43$createResource, runWithOwner as $8tj43$runWithOwner, mergeProps as $8tj43$mergeProps1, Suspense as $8tj43$Suspense, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, splitProps as $8tj43$splitProps, on as $8tj43$on, batch as $8tj43$batch, createSelector as $8tj43$createSelector, children as $8tj43$children, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray } from "solid-js";
4
4
  import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import { ListenableSet as $8tj43$ListenableSet, catchify as $8tj43$catchify1, use_href_accessor as $8tj43$use_href_accessor1, queueMacroTask as $8tj43$queueMacroTask1, report as $8tj43$report1 } from "@depict-ai/utilishared/ES10";
6
6
  import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
@@ -10,7 +10,15 @@ 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.22";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.24";
14
+ function $a35e6f680c5bbc60$export$54299a3c81f5425() {
15
+ const d = document;
16
+ const [isVisible, setIsVisible] = $8tj43$createSignal(d.visibilityState !== "hidden");
17
+ const handleVisibilityChange = () => setIsVisible(d.visibilityState !== "hidden");
18
+ d.addEventListener("visibilitychange", handleVisibilityChange);
19
+ $8tj43$onCleanup(() => d.removeEventListener("visibilitychange", handleVisibilityChange));
20
+ return isVisible;
21
+ }
14
22
  var $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
15
23
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
16
24
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1640,17 +1648,17 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1640
1648
  return _el$;
1641
1649
  })();
1642
1650
  }
1643
- var $72017ebd8b9df947$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1644
- let $72017ebd8b9df947$var$cachedValue;
1645
- async function $72017ebd8b9df947$export$7b9a0e99f0aeb2f3() {
1646
- if ($72017ebd8b9df947$var$cachedValue != undefined) return $72017ebd8b9df947$var$cachedValue;
1647
- return $72017ebd8b9df947$var$cachedValue = $72017ebd8b9df947$var$checkIfIsAffectedByChromeBug326498383();
1651
+ var $c4103af154850e50$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1652
+ let $c4103af154850e50$var$cachedValue;
1653
+ async function $c4103af154850e50$export$7b9a0e99f0aeb2f3() {
1654
+ if ($c4103af154850e50$var$cachedValue != undefined) return $c4103af154850e50$var$cachedValue;
1655
+ return $c4103af154850e50$var$cachedValue = $c4103af154850e50$var$checkIfIsAffectedByChromeBug326498383();
1648
1656
  }
1649
- async function $72017ebd8b9df947$var$checkIfIsAffectedByChromeBug326498383() {
1657
+ async function $c4103af154850e50$var$checkIfIsAffectedByChromeBug326498383() {
1650
1658
  let isAffected = true;
1651
1659
  let resolveTimeoutPromise;
1652
1660
  try {
1653
- const div = $8tj43$getNextElement($72017ebd8b9df947$var$_tmpl$);
1661
+ const div = $8tj43$getNextElement($c4103af154850e50$var$_tmpl$);
1654
1662
  const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
1655
1663
  const timeoutPromise = new Promise(r => {
1656
1664
  resolveTimeoutPromise = r;
@@ -1663,7 +1671,7 @@ async function $72017ebd8b9df947$var$checkIfIsAffectedByChromeBug326498383() {
1663
1671
  style: style
1664
1672
  } = div;
1665
1673
  // Just to get a long string
1666
- div.append($72017ebd8b9df947$export$7b9a0e99f0aeb2f3 + "");
1674
+ div.append($c4103af154850e50$export$7b9a0e99f0aeb2f3 + "");
1667
1675
  document.documentElement.append(div);
1668
1676
  style.overflow = "auto";
1669
1677
  await waitAFrame();
@@ -1711,7 +1719,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1711
1719
  const textFadeInAnimationRunning = $8tj43$createSignal(false);
1712
1720
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1713
1721
  const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1714
- $72017ebd8b9df947$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1722
+ $c4103af154850e50$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1715
1723
  return $8tj43$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
1716
1724
  get children() {
1717
1725
  return $8tj43$createComponent((0, $8tj43$Show), {
@@ -4471,7 +4479,7 @@ function $2855bffe06ef7a03$export$916e6850778505f6(search_params, filter_query_p
4471
4479
  const keys = [...search_params.keys()];
4472
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);
4473
4481
  }
4474
- const $2855bffe06ef7a03$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4482
+ const $2855bffe06ef7a03$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4475
4483
  function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
4476
4484
  let {
4477
4485
  to_url_: to_url_,
@@ -4486,9 +4494,13 @@ function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
4486
4494
  const {
4487
4495
  searchParams: searchParams
4488
4496
  } = url_object;
4489
- if (set_clearing_flag_) searchParams.set($2855bffe06ef7a03$export$cf5feb2102aec7f2, "true");
4497
+ let transferredAnyFilters = false;
4490
4498
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4491
- 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;
4492
4504
  if (was_url_object) return url_object;
4493
4505
  return url_object.href;
4494
4506
  }
@@ -10373,7 +10385,8 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
10373
10385
  $8tj43$onCleanup(() => (0, $8tj43$instant_exec_on_suspect_history_change).delete(history_change_handler));
10374
10386
  $8tj43$createComputed(() => {
10375
10387
  const {
10376
- searchParams: searchParams
10388
+ searchParams: searchParams,
10389
+ hash: hash
10377
10390
  } = new URL(get_current_href());
10378
10391
  $8tj43$batch(() => {
10379
10392
  const found_sorting = $2855bffe06ef7a03$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -10411,7 +10424,7 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
10411
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
10412
10425
  }
10413
10426
 
10414
- 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);
10415
10428
  if (!writer_started) {
10416
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
10417
10430
  $8tj43$runWithOwner(owner, () => $9d3d794b62318ecc$var$start_href_writer({
@@ -10454,24 +10467,24 @@ function $9d3d794b62318ecc$var$start_href_writer(_ref3) {
10454
10467
  } = _ref3;
10455
10468
  $8tj43$createEffect($8tj43$on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], _ref4 => {
10456
10469
  let [sorting, filters, has_sideways_filter_clearing_flag] = _ref4;
10457
- const current_href = location.href;
10458
- 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;
10459
10473
  const {
10460
10474
  searchParams: searchParams
10461
10475
  } = url_object;
10462
10476
  $2855bffe06ef7a03$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
10463
10477
  $2855bffe06ef7a03$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
10464
10478
  $2855bffe06ef7a03$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
10465
- 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);
10466
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
10467
- const unmodified_search_params = [...new URL(current_href).searchParams];
10468
10481
  const new_search_params = [...searchParams];
10469
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
10470
10483
  const new_search_params_map = new Map(new_search_params);
10471
10484
  if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(_ref5 => {
10472
10485
  let [key, value] = _ref5;
10473
10486
  return new_search_params_map.get(key) === value;
10474
- }))
10487
+ }) || unmodified_hash !== url_object.hash)
10475
10488
  // Only update URL if it actually changed
10476
10489
  router_.navigate_.go_to_({
10477
10490
  is_replace_: true,
@@ -10483,8 +10496,8 @@ function $9d3d794b62318ecc$var$start_href_writer(_ref3) {
10483
10496
  defer: true
10484
10497
  }));
10485
10498
  }
10486
- function $9d3d794b62318ecc$var$delete_sideways_param_flag(searchParams) {
10487
- 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 = "";
10488
10501
  }
10489
10502
  function $f5f54892fd0c7d9f$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
10490
10503
  $f5f54892fd0c7d9f$var$_checkPrivateRedeclaration(obj, privateMap);
@@ -16281,4 +16294,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
16281
16294
  }, "Entire CategoryPage failed");
16282
16295
  }
16283
16296
  $8tj43$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
16284
- export { $002f09d00aac50b2$export$eaa625fb39439e37 as useSlidableInformation, $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $618bd53ea0a41cd4$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $697d8713dc82b9ab$export$44809a8a3e867e30 as LookCard, $ac571292d606f30b$export$7e1297a3a19f10d8 as PseudoRouter, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $63f1f8dbcd07d3b0$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
16297
+ export { $a35e6f680c5bbc60$export$54299a3c81f5425 as useVisibilityState, $002f09d00aac50b2$export$eaa625fb39439e37 as useSlidableInformation, $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $618bd53ea0a41cd4$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $697d8713dc82b9ab$export$44809a8a3e867e30 as LookCard, $ac571292d606f30b$export$7e1297a3a19f10d8 as PseudoRouter, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $63f1f8dbcd07d3b0$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
package/latest/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var $gVhhF$depictaiutilishared = require("@depict-ai/utilishared/latest");
2
- var $gVhhF$solidjsweb = require("solid-js/web");
3
2
  var $gVhhF$solidjs = require("solid-js");
3
+ var $gVhhF$solidjsweb = require("solid-js/web");
4
4
  var $gVhhF$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
5
5
  var $gVhhF$solidjsstore = require("solid-js/store");
6
6
  require("../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
@@ -12,6 +12,7 @@ function $parcel$export(e, n, v, s) {
12
12
  configurable: true
13
13
  });
14
14
  }
15
+ $parcel$export(module.exports, "useVisibilityState", () => $55cbacb79d3e0cea$export$54299a3c81f5425);
15
16
  $parcel$export(module.exports, "useSlidableInformation", () => $a0e53f99354809d9$export$eaa625fb39439e37);
16
17
  $parcel$export(module.exports, "useProductCardIsVisible", () => $67155e1aeb7073f6$export$80bb7300ce6a8be3);
17
18
  $parcel$export(module.exports, "CurrentlyIntersectingContext", () => $67155e1aeb7073f6$export$f223d69ed12f5fb7);
@@ -102,7 +103,15 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
102
103
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
103
104
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
104
105
  /*! Depict.ai search and product listing SDK */
105
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.22";
106
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.24";
107
+ function $55cbacb79d3e0cea$export$54299a3c81f5425() {
108
+ const d = document;
109
+ const [isVisible, setIsVisible] = $gVhhF$solidjs.createSignal(d.visibilityState !== "hidden");
110
+ const handleVisibilityChange = () => setIsVisible(d.visibilityState !== "hidden");
111
+ d.addEventListener("visibilitychange", handleVisibilityChange);
112
+ $gVhhF$solidjs.onCleanup(() => d.removeEventListener("visibilitychange", handleVisibilityChange));
113
+ return isVisible;
114
+ }
106
115
  var $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
107
116
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
108
117
  return (() => {
@@ -1655,17 +1664,17 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1655
1664
  return _el$;
1656
1665
  })();
1657
1666
  }
1658
- var $b9e830d616d01b31$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1659
- let $b9e830d616d01b31$var$cachedValue;
1660
- async function $b9e830d616d01b31$export$7b9a0e99f0aeb2f3() {
1661
- if ($b9e830d616d01b31$var$cachedValue != undefined) return $b9e830d616d01b31$var$cachedValue;
1662
- return $b9e830d616d01b31$var$cachedValue = $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383();
1667
+ var $4f38102efa525ee0$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1668
+ let $4f38102efa525ee0$var$cachedValue;
1669
+ async function $4f38102efa525ee0$export$7b9a0e99f0aeb2f3() {
1670
+ if ($4f38102efa525ee0$var$cachedValue != undefined) return $4f38102efa525ee0$var$cachedValue;
1671
+ return $4f38102efa525ee0$var$cachedValue = $4f38102efa525ee0$var$checkIfIsAffectedByChromeBug326498383();
1663
1672
  }
1664
- async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
1673
+ async function $4f38102efa525ee0$var$checkIfIsAffectedByChromeBug326498383() {
1665
1674
  let isAffected = true;
1666
1675
  let resolveTimeoutPromise;
1667
1676
  try {
1668
- const div = $gVhhF$solidjsweb.getNextElement($b9e830d616d01b31$var$_tmpl$);
1677
+ const div = $gVhhF$solidjsweb.getNextElement($4f38102efa525ee0$var$_tmpl$);
1669
1678
  const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
1670
1679
  const timeoutPromise = new Promise(r => {
1671
1680
  resolveTimeoutPromise = r;
@@ -1678,7 +1687,7 @@ async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
1678
1687
  style: style
1679
1688
  } = div;
1680
1689
  // Just to get a long string
1681
- div.append($b9e830d616d01b31$export$7b9a0e99f0aeb2f3 + "");
1690
+ div.append($4f38102efa525ee0$export$7b9a0e99f0aeb2f3 + "");
1682
1691
  document.documentElement.append(div);
1683
1692
  style.overflow = "auto";
1684
1693
  await waitAFrame();
@@ -1725,7 +1734,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1725
1734
  const textFadeInAnimationRunning = $gVhhF$solidjs.createSignal(false);
1726
1735
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1727
1736
  const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1728
- $b9e830d616d01b31$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1737
+ $4f38102efa525ee0$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1729
1738
  return $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
1730
1739
  get children() {
1731
1740
  return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
@@ -4356,7 +4365,7 @@ function $1ab22f2cd39b3061$export$916e6850778505f6(search_params, filter_query_p
4356
4365
  const keys = [...search_params.keys()];
4357
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);
4358
4367
  }
4359
- const $1ab22f2cd39b3061$export$cf5feb2102aec7f2 = "went_sideways_clear_filters";
4368
+ const $1ab22f2cd39b3061$export$84daa4fa1471698b = "#went_sideways_clear_filters";
4360
4369
  function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
4361
4370
  to_url_: to_url_,
4362
4371
  set_clearing_flag_: set_clearing_flag_,
@@ -4370,9 +4379,13 @@ function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
4370
4379
  const {
4371
4380
  searchParams: searchParams
4372
4381
  } = url_object;
4373
- if (set_clearing_flag_) searchParams.set($1ab22f2cd39b3061$export$cf5feb2102aec7f2, "true");
4382
+ let transferredAnyFilters = false;
4374
4383
  if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
4375
- 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;
4376
4389
  if (was_url_object) return url_object;
4377
4390
  return url_object.href;
4378
4391
  }
@@ -9905,7 +9918,8 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
9905
9918
  $gVhhF$solidjs.onCleanup(() => (0, $gVhhF$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
9906
9919
  $gVhhF$solidjs.createComputed(() => {
9907
9920
  const {
9908
- searchParams: searchParams
9921
+ searchParams: searchParams,
9922
+ hash: hash
9909
9923
  } = new URL(get_current_href());
9910
9924
  $gVhhF$solidjs.batch(() => {
9911
9925
  const found_sorting = $1ab22f2cd39b3061$export$766e9676e74997d3(searchParams, sorting_query_param_);
@@ -9937,7 +9951,7 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
9937
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
9938
9952
  }
9939
9953
 
9940
- 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);
9941
9955
  if (!writer_started) {
9942
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
9943
9957
  $gVhhF$solidjs.runWithOwner(owner, () => $c79fd10a3ab7d6e0$var$start_href_writer({
@@ -9978,21 +9992,21 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
9978
9992
  filter_query_param_prefix_: filter_query_param_prefix_
9979
9993
  }) {
9980
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]) => {
9981
- const current_href = location.href;
9982
- 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;
9983
9998
  const {
9984
9999
  searchParams: searchParams
9985
10000
  } = url_object;
9986
10001
  $1ab22f2cd39b3061$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
9987
10002
  $1ab22f2cd39b3061$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
9988
10003
  $1ab22f2cd39b3061$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
9989
- 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);
9990
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
9991
- const unmodified_search_params = [...new URL(current_href).searchParams];
9992
10006
  const new_search_params = [...searchParams];
9993
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
9994
10008
  const new_search_params_map = new Map(new_search_params);
9995
- 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)
9996
10010
  // Only update URL if it actually changed
9997
10011
  router_.navigate_.go_to_({
9998
10012
  is_replace_: true,
@@ -10004,8 +10018,8 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
10004
10018
  defer: true
10005
10019
  }));
10006
10020
  }
10007
- function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(searchParams) {
10008
- 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 = "";
10009
10023
  }
10010
10024
 
10011
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,11 @@ 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.22";
14
+ export const version = "4.7.24";
15
+ /**
16
+ * Returns if the current tab is visible
17
+ */
18
+ export function useVisibilityState(): import("solid-js").Accessor<boolean>;
15
19
  /** @jsxImportSource solid-js */
16
20
  export function GenericSliderArrowButton(props?: {
17
21
  width_?: number;