@depict-ai/ui 4.7.21 → 4.7.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { JSX, Accessor, Setter, Signal } from "solid-js";
2
- import { Display, useExpandingContainer, ColsAtSize, report, Amazing_Slider, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/ES10";
1
+ import { Accessor, JSX, Setter, Signal } from "solid-js";
2
+ import { Amazing_Slider, Display, useExpandingContainer, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/ES10";
3
3
  import { SearchFilter, SearchRequestV3, SortModel } from "@depict-ai/types/api/SearchRequestV3";
4
4
  import { ContentLink, SearchResponse, SearchFilter as _SearchFilter1 } from "@depict-ai/types/api/SearchResponse";
5
5
  import { Ancestors, ListingSuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
@@ -11,7 +11,34 @@ 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.21";
14
+ export const version = "4.7.23";
15
+ /**
16
+ * Returns if the current tab is visible
17
+ */
18
+ export function useVisibilityState(): import("solid-js").Accessor<boolean>;
19
+ /** @jsxImportSource solid-js */
20
+ export function GenericSliderArrowButton(props?: {
21
+ width_?: number;
22
+ height_?: number;
23
+ }): SVGElement;
24
+ export function SlidableItems(props: {
25
+ children?: JSX.Element;
26
+ slider_ref_?: (slider: Amazing_Slider) => any;
27
+ faded_opacity_?: number;
28
+ disable_fading_?: boolean;
29
+ snapAlign_?: "start" | "end" | "center";
30
+ fadingThreshold_?: number;
31
+ mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
32
+ arrow_width_?: number;
33
+ arrow_height_?: number;
34
+ }): JSX.Element;
35
+ /**
36
+ * Use this inside the children of a <SlidableItems> component to get the slider instance and a signal that contains the latest intersection obsrever entries (note they are accessible on the slider instance in a processed format already at the time this acessor updates)
37
+ */
38
+ export function useSlidableInformation(): {
39
+ slider_: Amazing_Slider;
40
+ intersectionEntries_: Accessor<IntersectionObserverEntry[]>;
41
+ } | undefined;
15
42
  declare const LISTING_ID = "listingId";
16
43
  declare const EXTERNAL_ID = "externalId";
17
44
  type ScrollRestorationData = {
@@ -129,22 +156,6 @@ export function SolidLayout(props: SolidLayoutOptions): JSX.Element;
129
156
  * When using insert_after_container, view more and view less buttons are not currently supported.
130
157
  */
131
158
  export function SolidLayoutWithProvidedElement(props: Omit<SolidLayoutOptions, "children" | "element_attributes">, container_element: HTMLDivElement, insert_after_container?: boolean, container_class?: string): JSX.Element;
132
- /** @jsxImportSource solid-js */
133
- export function GenericSliderArrowButton(props?: {
134
- width_?: number;
135
- height_?: number;
136
- }): SVGElement;
137
- export function SlidableItems(props: {
138
- children?: JSX.Element;
139
- slider_ref_?: (slider: Amazing_Slider) => any;
140
- faded_opacity_?: number;
141
- disable_fading_?: boolean;
142
- snapAlign_?: "start" | "end" | "center";
143
- fadingThreshold_?: number;
144
- mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
145
- arrow_width_?: number;
146
- arrow_height_?: number;
147
- }): JSX.Element;
148
159
  /**
149
160
  * Provider to wrap every listing (group of products) in
150
161
  * Used for example for deduplicating ResizeObservers for responsive images
@@ -1,6 +1,6 @@
1
- import { add_to_version_info as $b8hua$add_to_version_info, catchify as $b8hua$catchify, dlog as $b8hua$dlog, camelCasifyObject as $b8hua$camelCasifyObject, useExpandingContainer as $b8hua$useExpandingContainer, fetch_retry as $b8hua$fetch_retry, base_url as $b8hua$base_url, dwarn as $b8hua$dwarn, slider_fractional_factory as $b8hua$slider_fractional_factory, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, slider_fading_factory as $b8hua$slider_fading_factory, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, observer as $b8hua$observer, javascript_media_query as $b8hua$javascript_media_query, queueMacroTask as $b8hua$queueMacroTask, findMostFrequentItem as $b8hua$findMostFrequentItem, standard_price_format as $b8hua$standard_price_format, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, deparallelize_no_drop as $b8hua$deparallelize_no_drop, ContainedImage as $b8hua$ContainedImage, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, use_href_accessor as $b8hua$use_href_accessor, get_session_id as $b8hua$get_session_id, add_version_query_params as $b8hua$add_version_query_params, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, snakeCasifyObject as $b8hua$snakeCasifyObject, make_url_with_query_params as $b8hua$make_url_with_query_params, sort_obj as $b8hua$sort_obj, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
- import { isServer as $b8hua$isServer, createComponent as $b8hua$createComponent, insert as $b8hua$insert, ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, ssrStyle as $b8hua$ssrStyle, mergeProps as $b8hua$mergeProps, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, ssrAttribute as $b8hua$ssrAttribute, spread as $b8hua$spread, Dynamic as $b8hua$Dynamic } from "solid-js/web";
3
- import { createContext as $b8hua$createContext, createSignal as $b8hua$createSignal, createMemo as $b8hua$createMemo, createEffect as $b8hua$createEffect, onCleanup as $b8hua$onCleanup, untrack as $b8hua$untrack, useContext as $b8hua$useContext, For as $b8hua$For, getOwner as $b8hua$getOwner, createResource as $b8hua$createResource, runWithOwner as $b8hua$runWithOwner, Show as $b8hua$Show, mergeProps as $b8hua$mergeProps1, Suspense as $b8hua$Suspense, createRenderEffect as $b8hua$createRenderEffect, Index as $b8hua$Index, createRoot as $b8hua$createRoot, createUniqueId as $b8hua$createUniqueId, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, splitProps as $b8hua$splitProps, on as $b8hua$on, batch as $b8hua$batch, createSelector as $b8hua$createSelector, children as $b8hua$children, createReaction as $b8hua$createReaction, mapArray as $b8hua$mapArray } from "solid-js";
1
+ import { add_to_version_info as $b8hua$add_to_version_info, slider_fading_factory as $b8hua$slider_fading_factory, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, catchify as $b8hua$catchify, dlog as $b8hua$dlog, camelCasifyObject as $b8hua$camelCasifyObject, useExpandingContainer as $b8hua$useExpandingContainer, fetch_retry as $b8hua$fetch_retry, base_url as $b8hua$base_url, dwarn as $b8hua$dwarn, slider_fractional_factory as $b8hua$slider_fractional_factory, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, observer as $b8hua$observer, javascript_media_query as $b8hua$javascript_media_query, queueMacroTask as $b8hua$queueMacroTask, findMostFrequentItem as $b8hua$findMostFrequentItem, standard_price_format as $b8hua$standard_price_format, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, deparallelize_no_drop as $b8hua$deparallelize_no_drop, ContainedImage as $b8hua$ContainedImage, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, use_href_accessor as $b8hua$use_href_accessor, get_session_id as $b8hua$get_session_id, add_version_query_params as $b8hua$add_version_query_params, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, snakeCasifyObject as $b8hua$snakeCasifyObject, make_url_with_query_params as $b8hua$make_url_with_query_params, sort_obj as $b8hua$sort_obj, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
2
+ import { createSignal as $b8hua$createSignal, onCleanup as $b8hua$onCleanup, createContext as $b8hua$createContext, createEffect as $b8hua$createEffect, Show as $b8hua$Show, useContext as $b8hua$useContext, createMemo as $b8hua$createMemo, untrack as $b8hua$untrack, For as $b8hua$For, getOwner as $b8hua$getOwner, createResource as $b8hua$createResource, runWithOwner as $b8hua$runWithOwner, mergeProps as $b8hua$mergeProps1, Suspense as $b8hua$Suspense, createRenderEffect as $b8hua$createRenderEffect, Index as $b8hua$Index, createRoot as $b8hua$createRoot, createUniqueId as $b8hua$createUniqueId, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, splitProps as $b8hua$splitProps, on as $b8hua$on, batch as $b8hua$batch, createSelector as $b8hua$createSelector, children as $b8hua$children, createReaction as $b8hua$createReaction, mapArray as $b8hua$mapArray } from "solid-js";
3
+ import { ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, createComponent as $b8hua$createComponent, isServer as $b8hua$isServer, insert as $b8hua$insert, ssrAttribute as $b8hua$ssrAttribute, ssrStyle as $b8hua$ssrStyle, mergeProps as $b8hua$mergeProps, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, spread as $b8hua$spread, Dynamic as $b8hua$Dynamic } from "solid-js/web";
4
4
  import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import { ListenableSet as $b8hua$ListenableSet, catchify as $b8hua$catchify1, use_href_accessor as $b8hua$use_href_accessor1, queueMacroTask as $b8hua$queueMacroTask1, report as $b8hua$report1 } from "@depict-ai/utilishared/ES10";
6
6
  import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
@@ -10,7 +10,90 @@ 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.21";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.23";
14
+ function $a35e6f680c5bbc60$export$54299a3c81f5425() {
15
+ const d = document;
16
+ const [isVisible, setIsVisible] = $b8hua$createSignal(d.visibilityState !== "hidden");
17
+ const handleVisibilityChange = () => setIsVisible(d.visibilityState !== "hidden");
18
+ d.addEventListener("visibilitychange", handleVisibilityChange);
19
+ $b8hua$onCleanup(() => d.removeEventListener("visibilitychange", handleVisibilityChange));
20
+ return isVisible;
21
+ }
22
+ var $ca6ab5f08bd28bca$var$_tmpl$ = ["<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"></path></svg>'];
23
+ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
24
+ var _$escape2, _$escape3;
25
+ let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26
+ return $b8hua$ssr($ca6ab5f08bd28bca$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("width", (_$escape2 = $b8hua$escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $b8hua$ssrAttribute("height", (_$escape3 = $b8hua$escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
27
+ }
28
+ var $002f09d00aac50b2$var$_tmpl$ = ["<div", ">", "</div>"],
29
+ $002f09d00aac50b2$var$_tmpl$2 = ["<div", ' class="depict-slider depict"><button aria-label="Scroll left" class="left d-navbutton" type="button">', '</button><button aria-label="Scroll right" class="right d-navbutton" type="button">', '</button><div class="sliding">', "</div></div>"];
30
+ const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$b8hua$createContext();
31
+ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
32
+ const {
33
+ slider_ref_: slider_ref_,
34
+ faded_opacity_ = 0.7,
35
+ mutation_plugins_ = [],
36
+ disable_fading_: disable_fading_,
37
+ snapAlign_: snapAlign_,
38
+ fadingThreshold_ = 0.96
39
+ } = props;
40
+ const [hasHydrated, setHasHydrated] = $b8hua$createSignal(false);
41
+ $b8hua$createEffect(() => setHasHydrated(true));
42
+ const MakeButton = () => $b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
43
+ get height_() {
44
+ return props.arrow_height_;
45
+ },
46
+ get width_() {
47
+ return props.arrow_width_;
48
+ }
49
+ })));
50
+ // To support SSR it would be very hard to make Amazing_Slider compatible with solid's SSR because it would have to be rewritten in a more JSX way
51
+ // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
52
+ // Therefore, we just bail on the server (and first render on the client which is the hydration) and return a static version of the slider
53
+ // Once we have hydrated, we construct and insert the actual slider
54
+ return $b8hua$createComponent((0, $b8hua$Show), {
55
+ get when() {
56
+ return hasHydrated() && !(0, $b8hua$isServer);
57
+ },
58
+ get fallback() {
59
+ return $b8hua$ssr($002f09d00aac50b2$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {})), $b8hua$escape($b8hua$createComponent(MakeButton, {})), $b8hua$escape(props.children));
60
+ },
61
+ get children() {
62
+ return (() => {
63
+ const [intersectionEntries_, setIntersectionEntries] = $b8hua$createSignal([]);
64
+ const fading_plugin = disable_fading_ ? undefined : $b8hua$slider_fading_factory({
65
+ threshold_: fadingThreshold_,
66
+ faded_opacity_: faded_opacity_
67
+ });
68
+ const slider = new (0, $b8hua$Amazing_Slider)({
69
+ button_contents: {
70
+ left: [MakeButton()],
71
+ right: [MakeButton()]
72
+ },
73
+ constructor_plugins: [$b8hua$slider_snap_css(0, {
74
+ align: snapAlign_
75
+ }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
76
+ mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
77
+ });
78
+ $b8hua$insert(slider.insert_here, () => $b8hua$createComponent($002f09d00aac50b2$var$SlidableContext.Provider, {
79
+ value: {
80
+ slider_: slider,
81
+ intersectionEntries_: intersectionEntries_
82
+ },
83
+ get children() {
84
+ return props.children;
85
+ }
86
+ }));
87
+ $b8hua$onCleanup(() => slider.observer.disconnect());
88
+ slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
89
+ return slider.container;
90
+ })();
91
+ }
92
+ });
93
+ }
94
+ function $002f09d00aac50b2$export$eaa625fb39439e37() {
95
+ return $b8hua$useContext($002f09d00aac50b2$var$SlidableContext);
96
+ }
14
97
 
15
98
  /**
16
99
  * Gets product_id (the thing we key the rendering on) from a display
@@ -684,81 +767,6 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
684
767
  if (insert_after_container) container_element.after(style_element);
685
768
  return [container_element, view_more_button_container(), view_less_button_container(), style_element];
686
769
  }
687
- var $ca6ab5f08bd28bca$var$_tmpl$ = ["<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"></path></svg>'];
688
- function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
689
- var _$escape2, _$escape3;
690
- let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
691
- return $b8hua$ssr($ca6ab5f08bd28bca$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("width", (_$escape2 = $b8hua$escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $b8hua$ssrAttribute("height", (_$escape3 = $b8hua$escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
692
- }
693
- var $002f09d00aac50b2$var$_tmpl$ = ["<div", ">", "</div>"],
694
- $002f09d00aac50b2$var$_tmpl$2 = ["<div", ' class="depict-slider depict"><button aria-label="Scroll left" class="left d-navbutton" type="button">', '</button><button aria-label="Scroll right" class="right d-navbutton" type="button">', '</button><div class="sliding">', "</div></div>"];
695
- const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$b8hua$createContext();
696
- function $002f09d00aac50b2$export$6649caad96ef8870(props) {
697
- const {
698
- slider_ref_: slider_ref_,
699
- faded_opacity_ = 0.7,
700
- mutation_plugins_ = [],
701
- disable_fading_: disable_fading_,
702
- snapAlign_: snapAlign_,
703
- fadingThreshold_ = 0.96
704
- } = props;
705
- const [hasHydrated, setHasHydrated] = $b8hua$createSignal(false);
706
- $b8hua$createEffect(() => setHasHydrated(true));
707
- const MakeButton = () => $b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
708
- get height_() {
709
- return props.arrow_height_;
710
- },
711
- get width_() {
712
- return props.arrow_width_;
713
- }
714
- })));
715
- // To support SSR it would be very hard to make Amazing_Slider compatible with solid's SSR because it would have to be rewritten in a more JSX way
716
- // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
717
- // Therefore, we just bail on the server (and first render on the client which is the hydration) and return a static version of the slider
718
- // Once we have hydrated, we construct and insert the actual slider
719
- return $b8hua$createComponent((0, $b8hua$Show), {
720
- get when() {
721
- return hasHydrated() && !(0, $b8hua$isServer);
722
- },
723
- get fallback() {
724
- return $b8hua$ssr($002f09d00aac50b2$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {})), $b8hua$escape($b8hua$createComponent(MakeButton, {})), $b8hua$escape(props.children));
725
- },
726
- get children() {
727
- return (() => {
728
- const [intersectionEntries_, setIntersectionEntries] = $b8hua$createSignal([]);
729
- const fading_plugin = disable_fading_ ? undefined : $b8hua$slider_fading_factory({
730
- threshold_: fadingThreshold_,
731
- faded_opacity_: faded_opacity_
732
- });
733
- const slider = new (0, $b8hua$Amazing_Slider)({
734
- button_contents: {
735
- left: [MakeButton()],
736
- right: [MakeButton()]
737
- },
738
- constructor_plugins: [$b8hua$slider_snap_css(0, {
739
- align: snapAlign_
740
- }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
741
- mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
742
- });
743
- $b8hua$insert(slider.insert_here, () => $b8hua$createComponent($002f09d00aac50b2$var$SlidableContext.Provider, {
744
- value: {
745
- slider_: slider,
746
- intersectionEntries_: intersectionEntries_
747
- },
748
- get children() {
749
- return props.children;
750
- }
751
- }));
752
- $b8hua$onCleanup(() => slider.observer.disconnect());
753
- slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
754
- return slider.container;
755
- })();
756
- }
757
- });
758
- }
759
- function $002f09d00aac50b2$export$eaa625fb39439e37() {
760
- return $b8hua$useContext($002f09d00aac50b2$var$SlidableContext);
761
- }
762
770
  var $39ddb986053fb759$var$_tmpl$ = ["<h2", ' class="recs-title">', "</h2>"];
763
771
  function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
764
772
  let {
@@ -1451,17 +1459,17 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1451
1459
  }
1452
1460
  })), "<!--/-->"], true);
1453
1461
  }
1454
- var $72017ebd8b9df947$var$_tmpl$ = ["<div", ' style="position:absolute;width:10px;height:10px;overflow:hidden"></div>'];
1455
- let $72017ebd8b9df947$var$cachedValue;
1456
- async function $72017ebd8b9df947$export$7b9a0e99f0aeb2f3() {
1457
- if ($72017ebd8b9df947$var$cachedValue != undefined) return $72017ebd8b9df947$var$cachedValue;
1458
- return $72017ebd8b9df947$var$cachedValue = $72017ebd8b9df947$var$checkIfIsAffectedByChromeBug326498383();
1462
+ var $c4103af154850e50$var$_tmpl$ = ["<div", ' style="position:absolute;width:10px;height:10px;overflow:hidden"></div>'];
1463
+ let $c4103af154850e50$var$cachedValue;
1464
+ async function $c4103af154850e50$export$7b9a0e99f0aeb2f3() {
1465
+ if ($c4103af154850e50$var$cachedValue != undefined) return $c4103af154850e50$var$cachedValue;
1466
+ return $c4103af154850e50$var$cachedValue = $c4103af154850e50$var$checkIfIsAffectedByChromeBug326498383();
1459
1467
  }
1460
- async function $72017ebd8b9df947$var$checkIfIsAffectedByChromeBug326498383() {
1468
+ async function $c4103af154850e50$var$checkIfIsAffectedByChromeBug326498383() {
1461
1469
  let isAffected = true;
1462
1470
  let resolveTimeoutPromise;
1463
1471
  try {
1464
- const div = $b8hua$ssr($72017ebd8b9df947$var$_tmpl$, $b8hua$ssrHydrationKey());
1472
+ const div = $b8hua$ssr($c4103af154850e50$var$_tmpl$, $b8hua$ssrHydrationKey());
1465
1473
  const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
1466
1474
  const timeoutPromise = new Promise(r => {
1467
1475
  resolveTimeoutPromise = r;
@@ -1474,7 +1482,7 @@ async function $72017ebd8b9df947$var$checkIfIsAffectedByChromeBug326498383() {
1474
1482
  style: style
1475
1483
  } = div;
1476
1484
  // Just to get a long string
1477
- div.append($72017ebd8b9df947$export$7b9a0e99f0aeb2f3 + "");
1485
+ div.append($c4103af154850e50$export$7b9a0e99f0aeb2f3 + "");
1478
1486
  document.documentElement.append(div);
1479
1487
  style.overflow = "auto";
1480
1488
  await waitAFrame();
@@ -1522,7 +1530,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1522
1530
  const textFadeInAnimationRunning = $b8hua$createSignal(false);
1523
1531
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1524
1532
  const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1525
- $72017ebd8b9df947$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1533
+ $c4103af154850e50$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1526
1534
  return $b8hua$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
1527
1535
  get children() {
1528
1536
  return $b8hua$createComponent((0, $b8hua$Show), {
@@ -13626,4 +13634,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
13626
13634
  }, "Entire CategoryPage failed");
13627
13635
  }
13628
13636
  $b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
13629
- export { $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 };
13637
+ 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 };
@@ -1,6 +1,6 @@
1
1
  var $5vyXB$depictaiutilishared = require("@depict-ai/utilishared/latest");
2
- var $5vyXB$solidjsweb = require("solid-js/web");
3
2
  var $5vyXB$solidjs = require("solid-js");
3
+ var $5vyXB$solidjsweb = require("solid-js/web");
4
4
  var $5vyXB$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
5
5
  var $5vyXB$solidjsstore = require("solid-js/store");
6
6
  require("../../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
@@ -12,6 +12,8 @@ function $parcel$export(e, n, v, s) {
12
12
  configurable: true
13
13
  });
14
14
  }
15
+ $parcel$export(module.exports, "useVisibilityState", () => $55cbacb79d3e0cea$export$54299a3c81f5425);
16
+ $parcel$export(module.exports, "useSlidableInformation", () => $a0e53f99354809d9$export$eaa625fb39439e37);
15
17
  $parcel$export(module.exports, "useProductCardIsVisible", () => $67155e1aeb7073f6$export$80bb7300ce6a8be3);
16
18
  $parcel$export(module.exports, "CurrentlyIntersectingContext", () => $67155e1aeb7073f6$export$f223d69ed12f5fb7);
17
19
  $parcel$export(module.exports, "useExpandingContainerReactive", () => $4b455f60dadde8b8$export$5bad61ecde080b1f);
@@ -101,7 +103,88 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
101
103
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
102
104
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
103
105
  /*! Depict.ai search and product listing SDK */
104
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.21";
106
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.23";
107
+ function $55cbacb79d3e0cea$export$54299a3c81f5425() {
108
+ const d = document;
109
+ const [isVisible, setIsVisible] = $5vyXB$solidjs.createSignal(d.visibilityState !== "hidden");
110
+ const handleVisibilityChange = () => setIsVisible(d.visibilityState !== "hidden");
111
+ d.addEventListener("visibilitychange", handleVisibilityChange);
112
+ $5vyXB$solidjs.onCleanup(() => d.removeEventListener("visibilitychange", handleVisibilityChange));
113
+ return isVisible;
114
+ }
115
+ var $0f313083912e447a$var$_tmpl$ = ["<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"></path></svg>'];
116
+ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
117
+ return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
118
+ }
119
+ var $a0e53f99354809d9$var$_tmpl$ = ["<div", ">", "</div>"],
120
+ $a0e53f99354809d9$var$_tmpl$2 = ["<div", ' class="depict-slider depict"><button aria-label="Scroll left" class="left d-navbutton" type="button">', '</button><button aria-label="Scroll right" class="right d-navbutton" type="button">', '</button><div class="sliding">', "</div></div>"];
121
+ const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$5vyXB$solidjs.createContext();
122
+ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
123
+ const {
124
+ slider_ref_: slider_ref_,
125
+ faded_opacity_ = 0.7,
126
+ mutation_plugins_ = [],
127
+ disable_fading_: disable_fading_,
128
+ snapAlign_: snapAlign_,
129
+ fadingThreshold_ = 0.96
130
+ } = props;
131
+ const [hasHydrated, setHasHydrated] = $5vyXB$solidjs.createSignal(false);
132
+ $5vyXB$solidjs.createEffect(() => setHasHydrated(true));
133
+ const MakeButton = () => $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
134
+ get height_() {
135
+ return props.arrow_height_;
136
+ },
137
+ get width_() {
138
+ return props.arrow_width_;
139
+ }
140
+ })));
141
+ // To support SSR it would be very hard to make Amazing_Slider compatible with solid's SSR because it would have to be rewritten in a more JSX way
142
+ // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
143
+ // Therefore, we just bail on the server (and first render on the client which is the hydration) and return a static version of the slider
144
+ // Once we have hydrated, we construct and insert the actual slider
145
+ return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
146
+ get when() {
147
+ return hasHydrated() && !(0, $5vyXB$solidjsweb.isServer);
148
+ },
149
+ get fallback() {
150
+ return $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(MakeButton, {})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(MakeButton, {})), $5vyXB$solidjsweb.escape(props.children));
151
+ },
152
+ get children() {
153
+ return (() => {
154
+ const [intersectionEntries_, setIntersectionEntries] = $5vyXB$solidjs.createSignal([]);
155
+ const fading_plugin = disable_fading_ ? undefined : $5vyXB$depictaiutilishared.slider_fading_factory({
156
+ threshold_: fadingThreshold_,
157
+ faded_opacity_: faded_opacity_
158
+ });
159
+ const slider = new (0, $5vyXB$depictaiutilishared.Amazing_Slider)({
160
+ button_contents: {
161
+ left: [MakeButton()],
162
+ right: [MakeButton()]
163
+ },
164
+ constructor_plugins: [$5vyXB$depictaiutilishared.slider_snap_css(0, {
165
+ align: snapAlign_
166
+ }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
167
+ mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
168
+ });
169
+ $5vyXB$solidjsweb.insert(slider.insert_here, () => $5vyXB$solidjsweb.createComponent($a0e53f99354809d9$var$SlidableContext.Provider, {
170
+ value: {
171
+ slider_: slider,
172
+ intersectionEntries_: intersectionEntries_
173
+ },
174
+ get children() {
175
+ return props.children;
176
+ }
177
+ }));
178
+ $5vyXB$solidjs.onCleanup(() => slider.observer.disconnect());
179
+ slider_ref_?.(slider);
180
+ return slider.container;
181
+ })();
182
+ }
183
+ });
184
+ }
185
+ function $a0e53f99354809d9$export$eaa625fb39439e37() {
186
+ return $5vyXB$solidjs.useContext($a0e53f99354809d9$var$SlidableContext);
187
+ }
105
188
 
106
189
  /**
107
190
  * Gets product_id (the thing we key the rendering on) from a display
@@ -749,79 +832,6 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
749
832
  if (insert_after_container) container_element.after(style_element);
750
833
  return [container_element, view_more_button_container(), view_less_button_container(), style_element];
751
834
  }
752
- var $0f313083912e447a$var$_tmpl$ = ["<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"></path></svg>'];
753
- function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
754
- return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
755
- }
756
- var $a0e53f99354809d9$var$_tmpl$ = ["<div", ">", "</div>"],
757
- $a0e53f99354809d9$var$_tmpl$2 = ["<div", ' class="depict-slider depict"><button aria-label="Scroll left" class="left d-navbutton" type="button">', '</button><button aria-label="Scroll right" class="right d-navbutton" type="button">', '</button><div class="sliding">', "</div></div>"];
758
- const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$5vyXB$solidjs.createContext();
759
- function $a0e53f99354809d9$export$6649caad96ef8870(props) {
760
- const {
761
- slider_ref_: slider_ref_,
762
- faded_opacity_ = 0.7,
763
- mutation_plugins_ = [],
764
- disable_fading_: disable_fading_,
765
- snapAlign_: snapAlign_,
766
- fadingThreshold_ = 0.96
767
- } = props;
768
- const [hasHydrated, setHasHydrated] = $5vyXB$solidjs.createSignal(false);
769
- $5vyXB$solidjs.createEffect(() => setHasHydrated(true));
770
- const MakeButton = () => $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
771
- get height_() {
772
- return props.arrow_height_;
773
- },
774
- get width_() {
775
- return props.arrow_width_;
776
- }
777
- })));
778
- // To support SSR it would be very hard to make Amazing_Slider compatible with solid's SSR because it would have to be rewritten in a more JSX way
779
- // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
780
- // Therefore, we just bail on the server (and first render on the client which is the hydration) and return a static version of the slider
781
- // Once we have hydrated, we construct and insert the actual slider
782
- return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
783
- get when() {
784
- return hasHydrated() && !(0, $5vyXB$solidjsweb.isServer);
785
- },
786
- get fallback() {
787
- return $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(MakeButton, {})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(MakeButton, {})), $5vyXB$solidjsweb.escape(props.children));
788
- },
789
- get children() {
790
- return (() => {
791
- const [intersectionEntries_, setIntersectionEntries] = $5vyXB$solidjs.createSignal([]);
792
- const fading_plugin = disable_fading_ ? undefined : $5vyXB$depictaiutilishared.slider_fading_factory({
793
- threshold_: fadingThreshold_,
794
- faded_opacity_: faded_opacity_
795
- });
796
- const slider = new (0, $5vyXB$depictaiutilishared.Amazing_Slider)({
797
- button_contents: {
798
- left: [MakeButton()],
799
- right: [MakeButton()]
800
- },
801
- constructor_plugins: [$5vyXB$depictaiutilishared.slider_snap_css(0, {
802
- align: snapAlign_
803
- }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
804
- mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
805
- });
806
- $5vyXB$solidjsweb.insert(slider.insert_here, () => $5vyXB$solidjsweb.createComponent($a0e53f99354809d9$var$SlidableContext.Provider, {
807
- value: {
808
- slider_: slider,
809
- intersectionEntries_: intersectionEntries_
810
- },
811
- get children() {
812
- return props.children;
813
- }
814
- }));
815
- $5vyXB$solidjs.onCleanup(() => slider.observer.disconnect());
816
- slider_ref_?.(slider);
817
- return slider.container;
818
- })();
819
- }
820
- });
821
- }
822
- function $a0e53f99354809d9$export$eaa625fb39439e37() {
823
- return $5vyXB$solidjs.useContext($a0e53f99354809d9$var$SlidableContext);
824
- }
825
835
  var $363ce4d1d71041aa$var$_tmpl$ = ["<h2", ' class="recs-title">', "</h2>"];
826
836
  function $363ce4d1d71041aa$export$d41d19e89346fa2({
827
837
  recommendations_resource_: recommendations_resource_,
@@ -1477,17 +1487,17 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1477
1487
  }
1478
1488
  })), "<!--/-->"], true);
1479
1489
  }
1480
- var $b9e830d616d01b31$var$_tmpl$ = ["<div", ' style="position:absolute;width:10px;height:10px;overflow:hidden"></div>'];
1481
- let $b9e830d616d01b31$var$cachedValue;
1482
- async function $b9e830d616d01b31$export$7b9a0e99f0aeb2f3() {
1483
- if ($b9e830d616d01b31$var$cachedValue != undefined) return $b9e830d616d01b31$var$cachedValue;
1484
- return $b9e830d616d01b31$var$cachedValue = $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383();
1490
+ var $4f38102efa525ee0$var$_tmpl$ = ["<div", ' style="position:absolute;width:10px;height:10px;overflow:hidden"></div>'];
1491
+ let $4f38102efa525ee0$var$cachedValue;
1492
+ async function $4f38102efa525ee0$export$7b9a0e99f0aeb2f3() {
1493
+ if ($4f38102efa525ee0$var$cachedValue != undefined) return $4f38102efa525ee0$var$cachedValue;
1494
+ return $4f38102efa525ee0$var$cachedValue = $4f38102efa525ee0$var$checkIfIsAffectedByChromeBug326498383();
1485
1495
  }
1486
- async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
1496
+ async function $4f38102efa525ee0$var$checkIfIsAffectedByChromeBug326498383() {
1487
1497
  let isAffected = true;
1488
1498
  let resolveTimeoutPromise;
1489
1499
  try {
1490
- const div = $5vyXB$solidjsweb.ssr($b9e830d616d01b31$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey());
1500
+ const div = $5vyXB$solidjsweb.ssr($4f38102efa525ee0$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey());
1491
1501
  const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
1492
1502
  const timeoutPromise = new Promise(r => {
1493
1503
  resolveTimeoutPromise = r;
@@ -1500,7 +1510,7 @@ async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
1500
1510
  style: style
1501
1511
  } = div;
1502
1512
  // Just to get a long string
1503
- div.append($b9e830d616d01b31$export$7b9a0e99f0aeb2f3 + "");
1513
+ div.append($4f38102efa525ee0$export$7b9a0e99f0aeb2f3 + "");
1504
1514
  document.documentElement.append(div);
1505
1515
  style.overflow = "auto";
1506
1516
  await waitAFrame();
@@ -1547,7 +1557,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1547
1557
  const textFadeInAnimationRunning = $5vyXB$solidjs.createSignal(false);
1548
1558
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1549
1559
  const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1550
- $b9e830d616d01b31$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1560
+ $4f38102efa525ee0$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1551
1561
  return $5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
1552
1562
  get children() {
1553
1563
  return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
@@ -1,5 +1,5 @@
1
- import { JSX, Accessor, Setter, Signal } from "solid-js";
2
- import { Display, useExpandingContainer, ColsAtSize, report, Amazing_Slider, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/latest";
1
+ import { Accessor, JSX, Setter, Signal } from "solid-js";
2
+ import { Amazing_Slider, Display, useExpandingContainer, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/latest";
3
3
  import { SearchFilter, SearchRequestV3, SortModel } from "@depict-ai/types/api/SearchRequestV3";
4
4
  import { ContentLink, SearchResponse, SearchFilter as _SearchFilter1 } from "@depict-ai/types/api/SearchResponse";
5
5
  import { Ancestors, ListingSuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
@@ -11,7 +11,34 @@ 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.21";
14
+ export const version = "4.7.23";
15
+ /**
16
+ * Returns if the current tab is visible
17
+ */
18
+ export function useVisibilityState(): import("solid-js").Accessor<boolean>;
19
+ /** @jsxImportSource solid-js */
20
+ export function GenericSliderArrowButton(props?: {
21
+ width_?: number;
22
+ height_?: number;
23
+ }): SVGElement;
24
+ export function SlidableItems(props: {
25
+ children?: JSX.Element;
26
+ slider_ref_?: (slider: Amazing_Slider) => any;
27
+ faded_opacity_?: number;
28
+ disable_fading_?: boolean;
29
+ snapAlign_?: "start" | "end" | "center";
30
+ fadingThreshold_?: number;
31
+ mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
32
+ arrow_width_?: number;
33
+ arrow_height_?: number;
34
+ }): JSX.Element;
35
+ /**
36
+ * Use this inside the children of a <SlidableItems> component to get the slider instance and a signal that contains the latest intersection obsrever entries (note they are accessible on the slider instance in a processed format already at the time this acessor updates)
37
+ */
38
+ export function useSlidableInformation(): {
39
+ slider_: Amazing_Slider;
40
+ intersectionEntries_: Accessor<IntersectionObserverEntry[]>;
41
+ } | undefined;
15
42
  declare const LISTING_ID = "listingId";
16
43
  declare const EXTERNAL_ID = "externalId";
17
44
  type ScrollRestorationData = {
@@ -129,22 +156,6 @@ export function SolidLayout(props: SolidLayoutOptions): JSX.Element;
129
156
  * When using insert_after_container, view more and view less buttons are not currently supported.
130
157
  */
131
158
  export function SolidLayoutWithProvidedElement(props: Omit<SolidLayoutOptions, "children" | "element_attributes">, container_element: HTMLDivElement, insert_after_container?: boolean, container_class?: string): JSX.Element;
132
- /** @jsxImportSource solid-js */
133
- export function GenericSliderArrowButton(props?: {
134
- width_?: number;
135
- height_?: number;
136
- }): SVGElement;
137
- export function SlidableItems(props: {
138
- children?: JSX.Element;
139
- slider_ref_?: (slider: Amazing_Slider) => any;
140
- faded_opacity_?: number;
141
- disable_fading_?: boolean;
142
- snapAlign_?: "start" | "end" | "center";
143
- fadingThreshold_?: number;
144
- mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
145
- arrow_width_?: number;
146
- arrow_height_?: number;
147
- }): JSX.Element;
148
159
  /**
149
160
  * Provider to wrap every listing (group of products) in
150
161
  * Used for example for deduplicating ResizeObservers for responsive images