@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.
package/ES10/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { add_to_version_info as $8tj43$add_to_version_info, 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, slider_fading_factory as $8tj43$slider_fading_factory, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, 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 { isServer as $8tj43$isServer, createComponent as $8tj43$createComponent, insert as $8tj43$insert, template as $8tj43$template, getNextElement as $8tj43$getNextElement, mergeProps as $8tj43$mergeProps, effect as $8tj43$effect, 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, setAttribute as $8tj43$setAttribute, 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, createMemo as $8tj43$createMemo, createEffect as $8tj43$createEffect, onCleanup as $8tj43$onCleanup, untrack as $8tj43$untrack, useContext as $8tj43$useContext, For as $8tj43$For, getOwner as $8tj43$getOwner, createResource as $8tj43$createResource, runWithOwner as $8tj43$runWithOwner, Show as $8tj43$Show, 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";
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";
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";
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,116 @@ 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.21";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.23";
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
+ }
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>`);
23
+ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
24
+ let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
25
+ return (() => {
26
+ var _el$ = $8tj43$getNextElement($ca6ab5f08bd28bca$var$_tmpl$);
27
+ $8tj43$effect(_p$ => {
28
+ var _props$width_, _props$height_;
29
+ var _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
30
+ _v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
31
+ _v$ !== _p$.e && $8tj43$setAttribute(_el$, "width", _p$.e = _v$);
32
+ _v$2 !== _p$.t && $8tj43$setAttribute(_el$, "height", _p$.t = _v$2);
33
+ return _p$;
34
+ }, {
35
+ e: undefined,
36
+ t: undefined
37
+ });
38
+ return _el$;
39
+ })();
40
+ }
41
+ var $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
42
+ $002f09d00aac50b2$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<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>`);
43
+ const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$8tj43$createContext();
44
+ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
45
+ const {
46
+ slider_ref_: slider_ref_,
47
+ faded_opacity_ = 0.7,
48
+ mutation_plugins_ = [],
49
+ disable_fading_: disable_fading_,
50
+ snapAlign_: snapAlign_,
51
+ fadingThreshold_ = 0.96
52
+ } = props;
53
+ const [hasHydrated, setHasHydrated] = $8tj43$createSignal(false);
54
+ $8tj43$createEffect(() => setHasHydrated(true));
55
+ const MakeButton = () => (() => {
56
+ var _el$ = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
57
+ $8tj43$insert(_el$, $8tj43$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
58
+ get height_() {
59
+ return props.arrow_height_;
60
+ },
61
+ get width_() {
62
+ return props.arrow_width_;
63
+ }
64
+ }));
65
+ return _el$;
66
+ })();
67
+ // 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
68
+ // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
69
+ // 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
70
+ // Once we have hydrated, we construct and insert the actual slider
71
+ return $8tj43$createComponent((0, $8tj43$Show), {
72
+ get when() {
73
+ return hasHydrated() && !(0, $8tj43$isServer);
74
+ },
75
+ get fallback() {
76
+ return (() => {
77
+ var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$2),
78
+ _el$3 = _el$2.firstChild,
79
+ _el$4 = _el$3.nextSibling,
80
+ _el$5 = _el$4.nextSibling;
81
+ $8tj43$insert(_el$3, $8tj43$createComponent(MakeButton, {}));
82
+ $8tj43$insert(_el$4, $8tj43$createComponent(MakeButton, {}));
83
+ $8tj43$insert(_el$5, () => props.children);
84
+ return _el$2;
85
+ })();
86
+ },
87
+ get children() {
88
+ return (() => {
89
+ const [intersectionEntries_, setIntersectionEntries] = $8tj43$createSignal([]);
90
+ const fading_plugin = disable_fading_ ? undefined : $8tj43$slider_fading_factory({
91
+ threshold_: fadingThreshold_,
92
+ faded_opacity_: faded_opacity_
93
+ });
94
+ const slider = new (0, $8tj43$Amazing_Slider)({
95
+ button_contents: {
96
+ left: [MakeButton()],
97
+ right: [MakeButton()]
98
+ },
99
+ constructor_plugins: [$8tj43$slider_snap_css(0, {
100
+ align: snapAlign_
101
+ }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
102
+ mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
103
+ });
104
+ $8tj43$insert(slider.insert_here, () => $8tj43$createComponent($002f09d00aac50b2$var$SlidableContext.Provider, {
105
+ value: {
106
+ slider_: slider,
107
+ intersectionEntries_: intersectionEntries_
108
+ },
109
+ get children() {
110
+ return props.children;
111
+ }
112
+ }));
113
+ $8tj43$onCleanup(() => slider.observer.disconnect());
114
+ slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
115
+ return slider.container;
116
+ })();
117
+ }
118
+ });
119
+ }
120
+ function $002f09d00aac50b2$export$eaa625fb39439e37() {
121
+ return $8tj43$useContext($002f09d00aac50b2$var$SlidableContext);
122
+ }
14
123
 
15
124
  /**
16
125
  * Gets product_id (the thing we key the rendering on) from a display
@@ -730,107 +839,6 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
730
839
  return [container_element, $8tj43$memo(view_more_button_container), $8tj43$memo(view_less_button_container), style_element];
731
840
  }
732
841
  $8tj43$delegateEvents(["click"]);
733
- 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>`);
734
- function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
735
- let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
736
- return (() => {
737
- var _el$ = $8tj43$getNextElement($ca6ab5f08bd28bca$var$_tmpl$);
738
- $8tj43$effect(_p$ => {
739
- var _props$width_, _props$height_;
740
- var _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
741
- _v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
742
- _v$ !== _p$.e && $8tj43$setAttribute(_el$, "width", _p$.e = _v$);
743
- _v$2 !== _p$.t && $8tj43$setAttribute(_el$, "height", _p$.t = _v$2);
744
- return _p$;
745
- }, {
746
- e: undefined,
747
- t: undefined
748
- });
749
- return _el$;
750
- })();
751
- }
752
- var $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
753
- $002f09d00aac50b2$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<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>`);
754
- const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$8tj43$createContext();
755
- function $002f09d00aac50b2$export$6649caad96ef8870(props) {
756
- const {
757
- slider_ref_: slider_ref_,
758
- faded_opacity_ = 0.7,
759
- mutation_plugins_ = [],
760
- disable_fading_: disable_fading_,
761
- snapAlign_: snapAlign_,
762
- fadingThreshold_ = 0.96
763
- } = props;
764
- const [hasHydrated, setHasHydrated] = $8tj43$createSignal(false);
765
- $8tj43$createEffect(() => setHasHydrated(true));
766
- const MakeButton = () => (() => {
767
- var _el$ = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
768
- $8tj43$insert(_el$, $8tj43$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
769
- get height_() {
770
- return props.arrow_height_;
771
- },
772
- get width_() {
773
- return props.arrow_width_;
774
- }
775
- }));
776
- return _el$;
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 $8tj43$createComponent((0, $8tj43$Show), {
783
- get when() {
784
- return hasHydrated() && !(0, $8tj43$isServer);
785
- },
786
- get fallback() {
787
- return (() => {
788
- var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$2),
789
- _el$3 = _el$2.firstChild,
790
- _el$4 = _el$3.nextSibling,
791
- _el$5 = _el$4.nextSibling;
792
- $8tj43$insert(_el$3, $8tj43$createComponent(MakeButton, {}));
793
- $8tj43$insert(_el$4, $8tj43$createComponent(MakeButton, {}));
794
- $8tj43$insert(_el$5, () => props.children);
795
- return _el$2;
796
- })();
797
- },
798
- get children() {
799
- return (() => {
800
- const [intersectionEntries_, setIntersectionEntries] = $8tj43$createSignal([]);
801
- const fading_plugin = disable_fading_ ? undefined : $8tj43$slider_fading_factory({
802
- threshold_: fadingThreshold_,
803
- faded_opacity_: faded_opacity_
804
- });
805
- const slider = new (0, $8tj43$Amazing_Slider)({
806
- button_contents: {
807
- left: [MakeButton()],
808
- right: [MakeButton()]
809
- },
810
- constructor_plugins: [$8tj43$slider_snap_css(0, {
811
- align: snapAlign_
812
- }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
813
- mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
814
- });
815
- $8tj43$insert(slider.insert_here, () => $8tj43$createComponent($002f09d00aac50b2$var$SlidableContext.Provider, {
816
- value: {
817
- slider_: slider,
818
- intersectionEntries_: intersectionEntries_
819
- },
820
- get children() {
821
- return props.children;
822
- }
823
- }));
824
- $8tj43$onCleanup(() => slider.observer.disconnect());
825
- slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
826
- return slider.container;
827
- })();
828
- }
829
- });
830
- }
831
- function $002f09d00aac50b2$export$eaa625fb39439e37() {
832
- return $8tj43$useContext($002f09d00aac50b2$var$SlidableContext);
833
- }
834
842
  var $39ddb986053fb759$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<h2 class=recs-title>`);
835
843
  function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
836
844
  let {
@@ -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), {
@@ -16281,4 +16289,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
16281
16289
  }, "Entire CategoryPage failed");
16282
16290
  }
16283
16291
  $8tj43$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
16284
- 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 };
16292
+ 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,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,114 @@ $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] = $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
+ }
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>`);
116
+ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
117
+ return (() => {
118
+ var _el$ = $gVhhF$solidjsweb.getNextElement($0f313083912e447a$var$_tmpl$);
119
+ $gVhhF$solidjsweb.effect(_p$ => {
120
+ var _v$ = props.width_ ?? 14,
121
+ _v$2 = props.height_ ?? 26;
122
+ _v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "width", _p$.e = _v$);
123
+ _v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "height", _p$.t = _v$2);
124
+ return _p$;
125
+ }, {
126
+ e: undefined,
127
+ t: undefined
128
+ });
129
+ return _el$;
130
+ })();
131
+ }
132
+ var $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
133
+ $a0e53f99354809d9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<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>`);
134
+ const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
135
+ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
136
+ const {
137
+ slider_ref_: slider_ref_,
138
+ faded_opacity_ = 0.7,
139
+ mutation_plugins_ = [],
140
+ disable_fading_: disable_fading_,
141
+ snapAlign_: snapAlign_,
142
+ fadingThreshold_ = 0.96
143
+ } = props;
144
+ const [hasHydrated, setHasHydrated] = $gVhhF$solidjs.createSignal(false);
145
+ $gVhhF$solidjs.createEffect(() => setHasHydrated(true));
146
+ const MakeButton = () => (() => {
147
+ var _el$ = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
148
+ $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
149
+ get height_() {
150
+ return props.arrow_height_;
151
+ },
152
+ get width_() {
153
+ return props.arrow_width_;
154
+ }
155
+ }));
156
+ return _el$;
157
+ })();
158
+ // 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
159
+ // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
160
+ // 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
161
+ // Once we have hydrated, we construct and insert the actual slider
162
+ return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
163
+ get when() {
164
+ return hasHydrated() && !(0, $gVhhF$solidjsweb.isServer);
165
+ },
166
+ get fallback() {
167
+ return (() => {
168
+ var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$2),
169
+ _el$3 = _el$2.firstChild,
170
+ _el$4 = _el$3.nextSibling,
171
+ _el$5 = _el$4.nextSibling;
172
+ $gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
173
+ $gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
174
+ $gVhhF$solidjsweb.insert(_el$5, () => props.children);
175
+ return _el$2;
176
+ })();
177
+ },
178
+ get children() {
179
+ return (() => {
180
+ const [intersectionEntries_, setIntersectionEntries] = $gVhhF$solidjs.createSignal([]);
181
+ const fading_plugin = disable_fading_ ? undefined : $gVhhF$depictaiutilishared.slider_fading_factory({
182
+ threshold_: fadingThreshold_,
183
+ faded_opacity_: faded_opacity_
184
+ });
185
+ const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
186
+ button_contents: {
187
+ left: [MakeButton()],
188
+ right: [MakeButton()]
189
+ },
190
+ constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css(0, {
191
+ align: snapAlign_
192
+ }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
193
+ mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
194
+ });
195
+ $gVhhF$solidjsweb.insert(slider.insert_here, () => $gVhhF$solidjsweb.createComponent($a0e53f99354809d9$var$SlidableContext.Provider, {
196
+ value: {
197
+ slider_: slider,
198
+ intersectionEntries_: intersectionEntries_
199
+ },
200
+ get children() {
201
+ return props.children;
202
+ }
203
+ }));
204
+ $gVhhF$solidjs.onCleanup(() => slider.observer.disconnect());
205
+ slider_ref_?.(slider);
206
+ return slider.container;
207
+ })();
208
+ }
209
+ });
210
+ }
211
+ function $a0e53f99354809d9$export$eaa625fb39439e37() {
212
+ return $gVhhF$solidjs.useContext($a0e53f99354809d9$var$SlidableContext);
213
+ }
105
214
 
106
215
  /**
107
216
  * Gets product_id (the thing we key the rendering on) from a display
@@ -784,105 +893,6 @@ function $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, container_element, ins
784
893
  return [container_element, $gVhhF$solidjsweb.memo(view_more_button_container), $gVhhF$solidjsweb.memo(view_less_button_container), style_element];
785
894
  }
786
895
  $gVhhF$solidjsweb.delegateEvents(["click"]);
787
- 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>`);
788
- function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
789
- return (() => {
790
- var _el$ = $gVhhF$solidjsweb.getNextElement($0f313083912e447a$var$_tmpl$);
791
- $gVhhF$solidjsweb.effect(_p$ => {
792
- var _v$ = props.width_ ?? 14,
793
- _v$2 = props.height_ ?? 26;
794
- _v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "width", _p$.e = _v$);
795
- _v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "height", _p$.t = _v$2);
796
- return _p$;
797
- }, {
798
- e: undefined,
799
- t: undefined
800
- });
801
- return _el$;
802
- })();
803
- }
804
- var $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
805
- $a0e53f99354809d9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<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>`);
806
- const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
807
- function $a0e53f99354809d9$export$6649caad96ef8870(props) {
808
- const {
809
- slider_ref_: slider_ref_,
810
- faded_opacity_ = 0.7,
811
- mutation_plugins_ = [],
812
- disable_fading_: disable_fading_,
813
- snapAlign_: snapAlign_,
814
- fadingThreshold_ = 0.96
815
- } = props;
816
- const [hasHydrated, setHasHydrated] = $gVhhF$solidjs.createSignal(false);
817
- $gVhhF$solidjs.createEffect(() => setHasHydrated(true));
818
- const MakeButton = () => (() => {
819
- var _el$ = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
820
- $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
821
- get height_() {
822
- return props.arrow_height_;
823
- },
824
- get width_() {
825
- return props.arrow_width_;
826
- }
827
- }));
828
- return _el$;
829
- })();
830
- // 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
831
- // However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
832
- // 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
833
- // Once we have hydrated, we construct and insert the actual slider
834
- return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
835
- get when() {
836
- return hasHydrated() && !(0, $gVhhF$solidjsweb.isServer);
837
- },
838
- get fallback() {
839
- return (() => {
840
- var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$2),
841
- _el$3 = _el$2.firstChild,
842
- _el$4 = _el$3.nextSibling,
843
- _el$5 = _el$4.nextSibling;
844
- $gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
845
- $gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
846
- $gVhhF$solidjsweb.insert(_el$5, () => props.children);
847
- return _el$2;
848
- })();
849
- },
850
- get children() {
851
- return (() => {
852
- const [intersectionEntries_, setIntersectionEntries] = $gVhhF$solidjs.createSignal([]);
853
- const fading_plugin = disable_fading_ ? undefined : $gVhhF$depictaiutilishared.slider_fading_factory({
854
- threshold_: fadingThreshold_,
855
- faded_opacity_: faded_opacity_
856
- });
857
- const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
858
- button_contents: {
859
- left: [MakeButton()],
860
- right: [MakeButton()]
861
- },
862
- constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css(0, {
863
- align: snapAlign_
864
- }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
865
- mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
866
- });
867
- $gVhhF$solidjsweb.insert(slider.insert_here, () => $gVhhF$solidjsweb.createComponent($a0e53f99354809d9$var$SlidableContext.Provider, {
868
- value: {
869
- slider_: slider,
870
- intersectionEntries_: intersectionEntries_
871
- },
872
- get children() {
873
- return props.children;
874
- }
875
- }));
876
- $gVhhF$solidjs.onCleanup(() => slider.observer.disconnect());
877
- slider_ref_?.(slider);
878
- return slider.container;
879
- })();
880
- }
881
- });
882
- }
883
- function $a0e53f99354809d9$export$eaa625fb39439e37() {
884
- return $gVhhF$solidjs.useContext($a0e53f99354809d9$var$SlidableContext);
885
- }
886
896
  var $363ce4d1d71041aa$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<h2 class=recs-title>`);
887
897
  function $363ce4d1d71041aa$export$d41d19e89346fa2({
888
898
  recommendations_resource_: recommendations_resource_,
@@ -1654,17 +1664,17 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1654
1664
  return _el$;
1655
1665
  })();
1656
1666
  }
1657
- var $b9e830d616d01b31$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
1658
- let $b9e830d616d01b31$var$cachedValue;
1659
- async function $b9e830d616d01b31$export$7b9a0e99f0aeb2f3() {
1660
- if ($b9e830d616d01b31$var$cachedValue != undefined) return $b9e830d616d01b31$var$cachedValue;
1661
- 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();
1662
1672
  }
1663
- async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
1673
+ async function $4f38102efa525ee0$var$checkIfIsAffectedByChromeBug326498383() {
1664
1674
  let isAffected = true;
1665
1675
  let resolveTimeoutPromise;
1666
1676
  try {
1667
- const div = $gVhhF$solidjsweb.getNextElement($b9e830d616d01b31$var$_tmpl$);
1677
+ const div = $gVhhF$solidjsweb.getNextElement($4f38102efa525ee0$var$_tmpl$);
1668
1678
  const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
1669
1679
  const timeoutPromise = new Promise(r => {
1670
1680
  resolveTimeoutPromise = r;
@@ -1677,7 +1687,7 @@ async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
1677
1687
  style: style
1678
1688
  } = div;
1679
1689
  // Just to get a long string
1680
- div.append($b9e830d616d01b31$export$7b9a0e99f0aeb2f3 + "");
1690
+ div.append($4f38102efa525ee0$export$7b9a0e99f0aeb2f3 + "");
1681
1691
  document.documentElement.append(div);
1682
1692
  style.overflow = "auto";
1683
1693
  await waitAFrame();
@@ -1724,7 +1734,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1724
1734
  const textFadeInAnimationRunning = $gVhhF$solidjs.createSignal(false);
1725
1735
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1726
1736
  const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1727
- $b9e830d616d01b31$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1737
+ $4f38102efa525ee0$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1728
1738
  return $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
1729
1739
  get children() {
1730
1740
  return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {