@depict-ai/ui 4.7.14 → 4.7.16

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, 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, dlog as $8tj43$dlog, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, catchify as $8tj43$catchify, 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";
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
2
  import { 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, isServer as $8tj43$isServer, 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 { createSignal as $8tj43$createSignal, createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, createEffect as $8tj43$createEffect, Show as $8tj43$Show, mergeProps as $8tj43$mergeProps1, Suspense as $8tj43$Suspense, untrack as $8tj43$untrack, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, onCleanup as $8tj43$onCleanup, For as $8tj43$For, getOwner as $8tj43$getOwner, runWithOwner as $8tj43$runWithOwner, createContext as $8tj43$createContext, useContext as $8tj43$useContext, 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 { 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";
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,78 +10,18 @@ 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.14";
14
- function $8e8b179489080711$export$5bad61ecde080b1f() {
15
- const {
16
- collapse: collapse,
17
- expand: expand,
18
- ExpandingContainer: ExpandingContainer
19
- } = $8tj43$useExpandingContainer(...arguments);
20
- return {
21
- collapse: collapse,
22
- expand: expand,
23
- ExpandingContainer: _ref => {
24
- let {
25
- children: children
26
- } = _ref;
27
- // get reactive signals/solid's jsx elements into `ExpandingContainer`
28
- const fake_div = document.createElement("div");
29
- const outer_expanding = $8tj43$createComponent(ExpandingContainer, {
30
- children: [fake_div]
31
- });
32
- const parent = fake_div.parentElement;
33
- fake_div.remove();
34
- $8tj43$insert(parent, children);
35
- return outer_expanding;
36
- }
37
- };
38
- }
39
- const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
40
- const cols_at_size = [];
41
- for (let i = 0; i < sorted_cols_at_size.length; i++) {
42
- var _sorted_cols_at_size;
43
- const [nb_cols, width] = sorted_cols_at_size[i];
44
- const next_width = (_sorted_cols_at_size = sorted_cols_at_size[i + 1]) === null || _sorted_cols_at_size === void 0 ? void 0 : _sorted_cols_at_size[1];
45
- const max_width = i === 0 ? "" : "".concat(width, "px");
46
- const min_width = next_width !== undefined ? "".concat(next_width + 1, "px") : "";
47
- const col_at_size = [nb_cols, min_width, max_width];
48
- cols_at_size.push(col_at_size);
49
- }
50
- return cols_at_size;
51
- };
52
- const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
53
- var _cols_at_size$every;
54
- // Check that every element is an array
55
- const are_arrays = cols_at_size === null || cols_at_size === void 0 ? void 0 : (_cols_at_size$every = cols_at_size.every) === null || _cols_at_size$every === void 0 ? void 0 : _cols_at_size$every.call(cols_at_size, element => Array.isArray(element));
56
- if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
57
- // Check width duplicates
58
- const widths = cols_at_size.map(_ref => {
59
- let [_, width] = _ref;
60
- return width;
61
- });
62
- const widths_set = new Set(widths);
63
- if (widths_set.size < widths.length) throw new Error("There are duplicate widths in cols_at_size");
64
- if (cols_at_size.length === 1) {
65
- const [nb_cols, width] = cols_at_size[0];
66
- const max_width = width !== undefined ? "".concat(width, "px") : "";
67
- return [[nb_cols, "", max_width]];
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.16";
14
+
15
+ /**
16
+ * Gets product_id (the thing we key the rendering on) from a display
17
+ */
18
+ function $6a4c7ed6d005505c$export$548d053aba053d79(display) {
19
+ if ("variant_index" in display) {
20
+ const actual_display = display.variant_displays[display.variant_index];
21
+ return actual_display.product_id;
68
22
  }
69
- // Sort widths in ascending order
70
- const sorted_cols_at_size = [...cols_at_size].sort((a, b) => {
71
- const [_b, width_A] = a;
72
- const [_a, width_b] = b;
73
- if (width_A === undefined) return -1;
74
- if (width_b === undefined) return 1;
75
- return width_b - width_A;
76
- });
77
- return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
78
- };
79
- function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
80
- let what = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "grid";
81
- const text = "Please try setting `columnsAtSize`/`gridSpacing` on the `SearchPage`/`CategoryPage` components to change the " + what + " before setting it with CSS. If you do with CSS, set `columnsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
82
- return (0, $8tj43$isServer) ? {
83
- t: "<!-- ".concat(text, " -->")
84
- } : document.createComment(text);
23
+ if ("listing_id" in display) return display.listing_id;
24
+ return display.product_id;
85
25
  }
86
26
  function $cb64b315b25cfc59$export$2f0cbfbb4354bb52(elements) {
87
27
  // FYI this probably doesn't work on hugely deep nestings or large amount of elements
@@ -95,121 +35,6 @@ function $cb64b315b25cfc59$var$unwrapping_helper(elements) {
95
35
  } else if (typeof elements == "function") result.push(...$cb64b315b25cfc59$var$unwrapping_helper(elements()));else if (elements != undefined && typeof elements != "boolean") result.push(elements);
96
36
  return result;
97
37
  }
98
- let $bdd80c7862246dc2$var$cached_placeholder_element;
99
- let $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
100
- function $bdd80c7862246dc2$export$f33414a4df0afd3f(_ref) {
101
- let {
102
- product_card_template_: product_card_template_,
103
- num_placeholders_: num_placeholders_,
104
- content_blocks_: content_blocks_
105
- } = _ref;
106
- const [num_to_actually_show, set_num_to_actually_show] = $8tj43$createSignal($8tj43$untrack(num_placeholders_));
107
- if (0, $8tj43$isServer)
108
- // want to render simple placeholders on server, effects don't run there
109
- // FIXME when adding proper SSR: also SSR content blocks
110
- return $8tj43$createMemo(() => Array.from({
111
- length: num_placeholders_()
112
- }).map(() => {
113
- const template_result = product_card_template_(null, undefined);
114
- // @ts-ignore
115
- if (typeof (template_result === null || template_result === void 0 ? void 0 : template_result.then) !== "function") return template_result;
116
- }));
117
- $8tj43$createRenderEffect(() => {
118
- const existing_num = num_to_actually_show();
119
- const to_add = num_placeholders_() - existing_num;
120
- if (to_add <= 0) return;
121
- // Below comment is from when we used recommendation renderer and manual DOM manipulation for this, but I'm still scared to remove placeholders and mess up scroll restoration, so I'm keeping the way it worked. Otherwise, <Index> could be used which would be far more elegant.
122
- // We don't need to remove placeholders, only need to add. The reason for that is that chrome restores the scroll position once all tasks queued as reaction of the "popstate" events have been completed in the task queue. That means that we need to get the placeholders in fast, or we might lose scroll position if the previous site was shorter.
123
- // The query id and the amount might update in separate tasks because one comes from href_change_ipns and the other one from another "popstate" listener. Therefore, we need to be able to dynamically add more placeholders. I'm not entirely sure about this anymore though, since we have the scroll position on a per-id basis it might work anyway but THIS WORKS, and I've been working on this bug for 3 hours so let's just keep it this way.
124
- // Above comments were from when we added elements in this createRenderEffect. Now I changed it to just increment the number and render them from an <Index> instead, so I can add content blocks better
125
- // Functionality should be the same
126
- set_num_to_actually_show(existing_num + to_add);
127
- });
128
- return $8tj43$createComponent((0, $8tj43$Index), {
129
- get each() {
130
- return Array.from({
131
- length: num_to_actually_show()
132
- });
133
- },
134
- children: (_item, index) => {
135
- const possible_content_block = $8tj43$createMemo(() => {
136
- var _content_blocks_, _content_blocks_2;
137
- return content_blocks_ === null || content_blocks_ === void 0 ? void 0 : (_content_blocks_ = content_blocks_()) === null || _content_blocks_ === void 0 ? void 0 : (_content_blocks_2 = _content_blocks_()) === null || _content_blocks_2 === void 0 ? void 0 : _content_blocks_2[index];
138
- });
139
- // Show content block before product card, so it's *at* that index
140
- return [possible_content_block, $bdd80c7862246dc2$var$Placeholder({
141
- product_card_template_: product_card_template_
142
- })]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
143
- }
144
- });
145
- }
146
- /**
147
- * Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
148
- */
149
- function $bdd80c7862246dc2$var$Placeholder(_ref2) {
150
- let {
151
- product_card_template_: product_card_template_
152
- } = _ref2;
153
- const get_cloned_placeholders = function () {
154
- let element_to_clone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $bdd80c7862246dc2$var$cached_placeholder_element;
155
- return Array.isArray(element_to_clone) ? element_to_clone.map(el => el instanceof Node ? el.cloneNode(true) : el) : element_to_clone;
156
- };
157
- if ($bdd80c7862246dc2$var$cached_placeholder_element) return get_cloned_placeholders();
158
- let dispose_original_copy;
159
- const get_unwrapped_element = $8tj43$createRoot(dispose => {
160
- dispose_original_copy = dispose;
161
- // if product_card_template_ is async and rejects the resource will take care of throwing upwards here in the solid-js error handling system
162
- const [resource] = $8tj43$createResource(() => {
163
- if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) return $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
164
- const return_value = product_card_template_(null, undefined);
165
- if (typeof return_value === "object" && typeof (return_value === null || return_value === void 0 ? void 0 : return_value.then) === "function")
166
- // Is Promise or promise-like object
167
- $bdd80c7862246dc2$var$rendering_cached_placeholder_element = return_value;
168
- return return_value;
169
- });
170
- return $8tj43$createMemo(() => {
171
- if (resource.loading) return () => [];
172
- return $cb64b315b25cfc59$export$2f0cbfbb4354bb52(resource);
173
- });
174
- });
175
- $8tj43$onCleanup(() => {
176
- if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) {
177
- var _rendering_cached_pla;
178
- // If we're still rendering in our separate root, let the rendering finish or other <Placeholder> components waiting for it might get an incomplete result
179
- const unset_current_rendering = () => {
180
- dispose_original_copy();
181
- $bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
182
- };
183
- (_rendering_cached_pla = $bdd80c7862246dc2$var$rendering_cached_placeholder_element) === null || _rendering_cached_pla === void 0 || _rendering_cached_pla.then(unset_current_rendering, unset_current_rendering);
184
- } else
185
- // Otherwise, just make sure we've disposed our root
186
- dispose_original_copy();
187
- });
188
- return $8tj43$createMemo(() => {
189
- const unwrapped_array = get_unwrapped_element()();
190
- if (!(unwrapped_array !== null && unwrapped_array !== void 0 && unwrapped_array.length) || !unwrapped_array.every(item => item))
191
- // Haven't finished rendering yet in case of "async" rendering, so don't freeze the elements yet
192
- return;
193
- // placeholders have finished rendering, freeze the elements
194
- // here we might receive the result of a promise that has already been received, tore down and put into cached_placeholder_element, so don't overwrite that more valid result if it's already set
195
- $bdd80c7862246dc2$var$cached_placeholder_element || ($bdd80c7862246dc2$var$cached_placeholder_element = get_cloned_placeholders(unwrapped_array)); // Clone initial return value so that who gave us the elements can't mutate them, which has caused issues before with react
196
- $bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
197
- dispose_original_copy(); // So that this memo will never re-run and the placeholder rendering function can clean up
198
- return get_cloned_placeholders(); // clone, just in case. If we wouldn't, someone could modify the copy in the DOM, and it would affect the cached version
199
- });
200
- }
201
-
202
- /**
203
- * Gets product_id (the thing we key the rendering on) from a display
204
- */
205
- function $6a4c7ed6d005505c$export$548d053aba053d79(display) {
206
- if ("variant_index" in display) {
207
- const actual_display = display.variant_displays[display.variant_index];
208
- return actual_display.product_id;
209
- }
210
- if ("listing_id" in display) return display.listing_id;
211
- return display.product_id;
212
- }
213
38
  const $1e69163caedaab4e$var$ProductCardIndexContext = /*@__PURE__*/$8tj43$createContext();
214
39
  function $1e69163caedaab4e$export$11354f017ddc9790(props) {
215
40
  return $8tj43$createComponent($1e69163caedaab4e$var$ProductCardIndexContext.Provider, {
@@ -427,6 +252,266 @@ function $2d7bad8684bc7f44$var$deep_equal(obj1, obj2) {
427
252
  }
428
253
  return true;
429
254
  }
255
+ const $618bd53ea0a41cd4$var$CurrentlyIntersectingContext = /*@__PURE__*/$8tj43$createContext();
256
+ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
257
+ let {
258
+ displays_by_key_: displays_by_key_,
259
+ product_card_template_: product_card_template_,
260
+ content_blocks_: content_blocks_,
261
+ alwaysObserveCards_: alwaysObserveCards_
262
+ } = _ref;
263
+ // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
264
+ const targetToIndexMap_ = new Map();
265
+ const indexToTargetMap_ = new Map();
266
+ const [listenersForIntersecting, setListenersForIntersecting] = $8tj43$createSignal(0);
267
+ const [currentlyIntersecting, setCurrentlyIntersecting] = $8tj43$createSignal(new Set(), {
268
+ equals: false
269
+ });
270
+ const shouldObserve = $8tj43$createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
271
+ const intersection_observer = new IntersectionObserver($8tj43$catchify(records => {
272
+ const intersectingValue = currentlyIntersecting();
273
+ for (let i = 0; i < records.length; i++) {
274
+ const record = records[i];
275
+ const {
276
+ target: target,
277
+ intersectionRatio: intersectionRatio
278
+ } = record;
279
+ const index_of_target = targetToIndexMap_.get(target);
280
+ if (index_of_target == undefined) return; // It seems like it can happen that we get IntersectionObserverEntries after the onCleanup function for a recommendation card has run, in Firefox. Probably a bug in Firefox? If I understood the bug correctly, this is a workaround.
281
+ const is_in_set = intersectingValue.has(index_of_target);
282
+ if (intersectionRatio > 0) {
283
+ if (!is_in_set) intersectingValue.add(index_of_target);
284
+ } else if (is_in_set) intersectingValue.delete(index_of_target);
285
+ }
286
+ setCurrentlyIntersecting(intersectingValue);
287
+ }, "renderDisplays IO failed"));
288
+ const renderedDisplays_ = $8tj43$createComponent($618bd53ea0a41cd4$var$CurrentlyIntersectingContext.Provider, {
289
+ value: {
290
+ currentlyIntersecting_: currentlyIntersecting,
291
+ setIsListening_: setListenersForIntersecting
292
+ },
293
+ get children() {
294
+ return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
295
+ displays_by_key_: displays_by_key_,
296
+ product_card_template_: product_card_template_,
297
+ content_blocks_: content_blocks_,
298
+ do_per_elements_: (elements, index_accessor) =>
299
+ // Adds/removes elements from the "results in viewport" intersection observer above
300
+ $8tj43$createEffect(() => {
301
+ if (!shouldObserve()) return;
302
+ const display_index = index_accessor();
303
+ // Nested createEffect because we only want to re-run this when the index changes (or we should/shouldn't observe)
304
+ // We need to save in a map which index the elements of this template are so that we can know that in the IntersectionObserver callback
305
+ for (let i = 0; i < elements.length; i++) {
306
+ const element = elements[i];
307
+ targetToIndexMap_.set(element, display_index);
308
+ intersection_observer.observe(element);
309
+ $8tj43$onCleanup(() => {
310
+ intersection_observer.unobserve(element);
311
+ targetToIndexMap_.delete(element);
312
+ const intersecting = $8tj43$untrack(currentlyIntersecting);
313
+ const wasDeleted = intersecting.delete(display_index);
314
+ if (wasDeleted) setCurrentlyIntersecting(intersecting);
315
+ });
316
+ }
317
+ indexToTargetMap_.set(display_index, elements);
318
+ $8tj43$onCleanup(() => indexToTargetMap_.delete(display_index));
319
+ })
320
+ });
321
+ }
322
+ });
323
+ return {
324
+ renderedDisplays_: renderedDisplays_,
325
+ indexToTargetMap_: indexToTargetMap_,
326
+ currentlyIntersecting: currentlyIntersecting
327
+ };
328
+ }
329
+ function $618bd53ea0a41cd4$export$80bb7300ce6a8be3() {
330
+ const {
331
+ setIsListening_: setIsListening_,
332
+ currentlyIntersecting_: currentlyIntersecting_
333
+ } = $8tj43$useContext($618bd53ea0a41cd4$var$CurrentlyIntersectingContext) || {};
334
+ const getOurIndex = $1e69163caedaab4e$export$e3faf4d95300054f();
335
+ const isVisible = $8tj43$createMemo(() => currentlyIntersecting_ === null || currentlyIntersecting_ === void 0 ? void 0 : currentlyIntersecting_().has(getOurIndex === null || getOurIndex === void 0 ? void 0 : getOurIndex()));
336
+ setIsListening_ === null || setIsListening_ === void 0 || setIsListening_(prev => prev + 1);
337
+ $8tj43$onCleanup(() => setIsListening_ === null || setIsListening_ === void 0 ? void 0 : setIsListening_(prev => prev + 1));
338
+ return isVisible;
339
+ }
340
+ function $8e8b179489080711$export$5bad61ecde080b1f() {
341
+ const {
342
+ collapse: collapse,
343
+ expand: expand,
344
+ ExpandingContainer: ExpandingContainer
345
+ } = $8tj43$useExpandingContainer(...arguments);
346
+ return {
347
+ collapse: collapse,
348
+ expand: expand,
349
+ ExpandingContainer: _ref => {
350
+ let {
351
+ children: children
352
+ } = _ref;
353
+ // get reactive signals/solid's jsx elements into `ExpandingContainer`
354
+ const fake_div = document.createElement("div");
355
+ const outer_expanding = $8tj43$createComponent(ExpandingContainer, {
356
+ children: [fake_div]
357
+ });
358
+ const parent = fake_div.parentElement;
359
+ fake_div.remove();
360
+ $8tj43$insert(parent, children);
361
+ return outer_expanding;
362
+ }
363
+ };
364
+ }
365
+ const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
366
+ const cols_at_size = [];
367
+ for (let i = 0; i < sorted_cols_at_size.length; i++) {
368
+ var _sorted_cols_at_size;
369
+ const [nb_cols, width] = sorted_cols_at_size[i];
370
+ const next_width = (_sorted_cols_at_size = sorted_cols_at_size[i + 1]) === null || _sorted_cols_at_size === void 0 ? void 0 : _sorted_cols_at_size[1];
371
+ const max_width = i === 0 ? "" : "".concat(width, "px");
372
+ const min_width = next_width !== undefined ? "".concat(next_width + 1, "px") : "";
373
+ const col_at_size = [nb_cols, min_width, max_width];
374
+ cols_at_size.push(col_at_size);
375
+ }
376
+ return cols_at_size;
377
+ };
378
+ const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
379
+ var _cols_at_size$every;
380
+ // Check that every element is an array
381
+ const are_arrays = cols_at_size === null || cols_at_size === void 0 ? void 0 : (_cols_at_size$every = cols_at_size.every) === null || _cols_at_size$every === void 0 ? void 0 : _cols_at_size$every.call(cols_at_size, element => Array.isArray(element));
382
+ if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
383
+ // Check width duplicates
384
+ const widths = cols_at_size.map(_ref => {
385
+ let [_, width] = _ref;
386
+ return width;
387
+ });
388
+ const widths_set = new Set(widths);
389
+ if (widths_set.size < widths.length) throw new Error("There are duplicate widths in cols_at_size");
390
+ if (cols_at_size.length === 1) {
391
+ const [nb_cols, width] = cols_at_size[0];
392
+ const max_width = width !== undefined ? "".concat(width, "px") : "";
393
+ return [[nb_cols, "", max_width]];
394
+ }
395
+ // Sort widths in ascending order
396
+ const sorted_cols_at_size = [...cols_at_size].sort((a, b) => {
397
+ const [_b, width_A] = a;
398
+ const [_a, width_b] = b;
399
+ if (width_A === undefined) return -1;
400
+ if (width_b === undefined) return 1;
401
+ return width_b - width_A;
402
+ });
403
+ return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
404
+ };
405
+ function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
406
+ let what = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "grid";
407
+ const text = "Please try setting `columnsAtSize`/`gridSpacing` on the `SearchPage`/`CategoryPage` components to change the " + what + " before setting it with CSS. If you do with CSS, set `columnsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
408
+ return (0, $8tj43$isServer) ? {
409
+ t: "<!-- ".concat(text, " -->")
410
+ } : document.createComment(text);
411
+ }
412
+ let $bdd80c7862246dc2$var$cached_placeholder_element;
413
+ let $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
414
+ function $bdd80c7862246dc2$export$f33414a4df0afd3f(_ref) {
415
+ let {
416
+ product_card_template_: product_card_template_,
417
+ num_placeholders_: num_placeholders_,
418
+ content_blocks_: content_blocks_
419
+ } = _ref;
420
+ const [num_to_actually_show, set_num_to_actually_show] = $8tj43$createSignal($8tj43$untrack(num_placeholders_));
421
+ if (0, $8tj43$isServer)
422
+ // want to render simple placeholders on server, effects don't run there
423
+ // FIXME when adding proper SSR: also SSR content blocks
424
+ return $8tj43$createMemo(() => Array.from({
425
+ length: num_placeholders_()
426
+ }).map(() => {
427
+ const template_result = product_card_template_(null, undefined);
428
+ // @ts-ignore
429
+ if (typeof (template_result === null || template_result === void 0 ? void 0 : template_result.then) !== "function") return template_result;
430
+ }));
431
+ $8tj43$createRenderEffect(() => {
432
+ const existing_num = num_to_actually_show();
433
+ const to_add = num_placeholders_() - existing_num;
434
+ if (to_add <= 0) return;
435
+ // Below comment is from when we used recommendation renderer and manual DOM manipulation for this, but I'm still scared to remove placeholders and mess up scroll restoration, so I'm keeping the way it worked. Otherwise, <Index> could be used which would be far more elegant.
436
+ // We don't need to remove placeholders, only need to add. The reason for that is that chrome restores the scroll position once all tasks queued as reaction of the "popstate" events have been completed in the task queue. That means that we need to get the placeholders in fast, or we might lose scroll position if the previous site was shorter.
437
+ // The query id and the amount might update in separate tasks because one comes from href_change_ipns and the other one from another "popstate" listener. Therefore, we need to be able to dynamically add more placeholders. I'm not entirely sure about this anymore though, since we have the scroll position on a per-id basis it might work anyway but THIS WORKS, and I've been working on this bug for 3 hours so let's just keep it this way.
438
+ // Above comments were from when we added elements in this createRenderEffect. Now I changed it to just increment the number and render them from an <Index> instead, so I can add content blocks better
439
+ // Functionality should be the same
440
+ set_num_to_actually_show(existing_num + to_add);
441
+ });
442
+ return $8tj43$createComponent((0, $8tj43$Index), {
443
+ get each() {
444
+ return Array.from({
445
+ length: num_to_actually_show()
446
+ });
447
+ },
448
+ children: (_item, index) => {
449
+ const possible_content_block = $8tj43$createMemo(() => {
450
+ var _content_blocks_, _content_blocks_2;
451
+ return content_blocks_ === null || content_blocks_ === void 0 ? void 0 : (_content_blocks_ = content_blocks_()) === null || _content_blocks_ === void 0 ? void 0 : (_content_blocks_2 = _content_blocks_()) === null || _content_blocks_2 === void 0 ? void 0 : _content_blocks_2[index];
452
+ });
453
+ // Show content block before product card, so it's *at* that index
454
+ return [possible_content_block, $bdd80c7862246dc2$var$Placeholder({
455
+ product_card_template_: product_card_template_
456
+ })]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
457
+ }
458
+ });
459
+ }
460
+ /**
461
+ * Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
462
+ */
463
+ function $bdd80c7862246dc2$var$Placeholder(_ref2) {
464
+ let {
465
+ product_card_template_: product_card_template_
466
+ } = _ref2;
467
+ const get_cloned_placeholders = function () {
468
+ let element_to_clone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $bdd80c7862246dc2$var$cached_placeholder_element;
469
+ return Array.isArray(element_to_clone) ? element_to_clone.map(el => el instanceof Node ? el.cloneNode(true) : el) : element_to_clone;
470
+ };
471
+ if ($bdd80c7862246dc2$var$cached_placeholder_element) return get_cloned_placeholders();
472
+ let dispose_original_copy;
473
+ const get_unwrapped_element = $8tj43$createRoot(dispose => {
474
+ dispose_original_copy = dispose;
475
+ // if product_card_template_ is async and rejects the resource will take care of throwing upwards here in the solid-js error handling system
476
+ const [resource] = $8tj43$createResource(() => {
477
+ if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) return $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
478
+ const return_value = product_card_template_(null, undefined);
479
+ if (typeof return_value === "object" && typeof (return_value === null || return_value === void 0 ? void 0 : return_value.then) === "function")
480
+ // Is Promise or promise-like object
481
+ $bdd80c7862246dc2$var$rendering_cached_placeholder_element = return_value;
482
+ return return_value;
483
+ });
484
+ return $8tj43$createMemo(() => {
485
+ if (resource.loading) return () => [];
486
+ return $cb64b315b25cfc59$export$2f0cbfbb4354bb52(resource);
487
+ });
488
+ });
489
+ $8tj43$onCleanup(() => {
490
+ if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) {
491
+ var _rendering_cached_pla;
492
+ // If we're still rendering in our separate root, let the rendering finish or other <Placeholder> components waiting for it might get an incomplete result
493
+ const unset_current_rendering = () => {
494
+ dispose_original_copy();
495
+ $bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
496
+ };
497
+ (_rendering_cached_pla = $bdd80c7862246dc2$var$rendering_cached_placeholder_element) === null || _rendering_cached_pla === void 0 || _rendering_cached_pla.then(unset_current_rendering, unset_current_rendering);
498
+ } else
499
+ // Otherwise, just make sure we've disposed our root
500
+ dispose_original_copy();
501
+ });
502
+ return $8tj43$createMemo(() => {
503
+ const unwrapped_array = get_unwrapped_element()();
504
+ if (!(unwrapped_array !== null && unwrapped_array !== void 0 && unwrapped_array.length) || !unwrapped_array.every(item => item))
505
+ // Haven't finished rendering yet in case of "async" rendering, so don't freeze the elements yet
506
+ return;
507
+ // placeholders have finished rendering, freeze the elements
508
+ // here we might receive the result of a promise that has already been received, tore down and put into cached_placeholder_element, so don't overwrite that more valid result if it's already set
509
+ $bdd80c7862246dc2$var$cached_placeholder_element || ($bdd80c7862246dc2$var$cached_placeholder_element = get_cloned_placeholders(unwrapped_array)); // Clone initial return value so that who gave us the elements can't mutate them, which has caused issues before with react
510
+ $bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
511
+ dispose_original_copy(); // So that this memo will never re-run and the placeholder rendering function can clean up
512
+ return get_cloned_placeholders(); // clone, just in case. If we wouldn't, someone could modify the copy in the DOM, and it would affect the cached version
513
+ });
514
+ }
430
515
 
431
516
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
432
517
  class $f3b7124b76123e44$export$e1d52e4f0c7557a1 extends Error {}
@@ -787,10 +872,13 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
787
872
  return (() => {
788
873
  // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
789
874
  const displays_by_key_ = $2d7bad8684bc7f44$export$7f8bd308237ab5a5($8tj43$createMemo(() => recommendations_resource_() || []));
790
- return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
875
+ const {
876
+ renderedDisplays_: renderedDisplays_
877
+ } = $618bd53ea0a41cd4$export$4a14175d33d81a96({
791
878
  displays_by_key_: displays_by_key_,
792
879
  product_card_template_: product_card_template_
793
880
  });
881
+ return renderedDisplays_;
794
882
  })();
795
883
  }
796
884
  });
@@ -2018,10 +2106,13 @@ function $e3efeb558d952696$export$7da560f849543dff(_ref) {
2018
2106
  return (() => {
2019
2107
  // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
2020
2108
  const displays_by_key_ = $2d7bad8684bc7f44$export$7f8bd308237ab5a5($8tj43$createMemo(() => recommendations_resource_() || []));
2021
- return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
2109
+ const {
2110
+ renderedDisplays_: renderedDisplays_
2111
+ } = $618bd53ea0a41cd4$export$4a14175d33d81a96({
2022
2112
  displays_by_key_: displays_by_key_,
2023
2113
  product_card_template_: product_card_template_
2024
2114
  });
2115
+ return renderedDisplays_;
2025
2116
  })();
2026
2117
  }
2027
2118
  });
@@ -10676,10 +10767,13 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
10676
10767
  if (!should_show() && prev) return prev; // When we're invisible, don't update what we're rendering to be possibly undefined to preserve the same products if possible
10677
10768
  return recommendations_resource() || [];
10678
10769
  }));
10679
- return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
10770
+ const {
10771
+ renderedDisplays_: renderedDisplays_
10772
+ } = $618bd53ea0a41cd4$export$4a14175d33d81a96({
10680
10773
  displays_by_key_: displays_by_key_,
10681
10774
  product_card_template_: product_card_template_
10682
10775
  });
10776
+ return renderedDisplays_;
10683
10777
  })();
10684
10778
  }
10685
10779
  });
@@ -11346,8 +11440,8 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
11346
11440
  let {
11347
11441
  plp_results_: plp_results_,
11348
11442
  product_card_template_: product_card_template_,
11349
- first_result_in_viewport_: [, set_first_result_in_viewport],
11350
- last_result_in_viewport_: [get_last_result_in_viewport_, set_last_result_in_viewport],
11443
+ first_result_in_viewport_: [, setFirstResultInViewport],
11444
+ last_result_in_viewport_: [lastResultInViewport, setLastResultsInViewport],
11351
11445
  all_products_loaded_: all_products_loaded_,
11352
11446
  min_products_to_fetch_: min_products_to_fetch_,
11353
11447
  query_base_: query_base_,
@@ -11355,27 +11449,6 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
11355
11449
  is_loading_: is_loading_,
11356
11450
  content_blocks_: content_blocks_
11357
11451
  } = _ref;
11358
- // The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator and knowing when to load more
11359
- const target_to_index_map = new Map();
11360
- const index_to_target_map_ = new Map();
11361
- const currently_intersecting = new Set();
11362
- const intersection_observer = new IntersectionObserver($8tj43$catchify(records => {
11363
- for (let i = 0; i < records.length; i++) {
11364
- const record = records[i];
11365
- const {
11366
- target: target,
11367
- intersectionRatio: intersectionRatio
11368
- } = record;
11369
- const index_of_target = target_to_index_map.get(target);
11370
- if (index_of_target == undefined) return; // It seems like it can happen that we get IntersectionObserverEntries after the onCleanup function for a recommendation card has run, in Firefox. Probably a bug in Firefox? If I understood the bug correctly, this is a workaround.
11371
- const is_in_set = currently_intersecting.has(index_of_target);
11372
- if (intersectionRatio > 0) {
11373
- if (!is_in_set) currently_intersecting.add(index_of_target);
11374
- } else if (is_in_set) currently_intersecting.delete(index_of_target);
11375
- }
11376
- set_first_result_in_viewport(Math.min(...currently_intersecting) + 1); // +1 because we want to start counting at 1
11377
- set_last_result_in_viewport(Math.max(...currently_intersecting) + 1);
11378
- }, "PLPResults IO failed"));
11379
11452
  // Although typing doesn't reflect it, plp_results is guaranteed to contain an array of at least one display at this point
11380
11453
  const [get_extra_displays, set_extra_displays_] = $8tj43$createSignal([], {
11381
11454
  equals: false
@@ -11384,10 +11457,20 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
11384
11457
  var _plp_results_;
11385
11458
  return [...(((_plp_results_ = plp_results_()) === null || _plp_results_ === void 0 ? void 0 : _plp_results_.displays) || []), ...get_extra_displays()];
11386
11459
  }));
11460
+ const {
11461
+ indexToTargetMap_: indexToTargetMap_,
11462
+ renderedDisplays_: renderedDisplays_,
11463
+ currentlyIntersecting: currentlyIntersecting
11464
+ } = $618bd53ea0a41cd4$export$4a14175d33d81a96({
11465
+ displays_by_key_: displays_by_key_,
11466
+ product_card_template_: product_card_template_,
11467
+ content_blocks_: content_blocks_,
11468
+ alwaysObserveCards_: true
11469
+ });
11387
11470
  const percentage_in_view_ = $e6dd9dfff4603d8c$export$63dd0350f8559dda({
11388
- get_last_result_in_viewport_: get_last_result_in_viewport_,
11471
+ get_last_result_in_viewport_: lastResultInViewport,
11389
11472
  displays_by_key_: displays_by_key_,
11390
- index_to_target_map_: index_to_target_map_,
11473
+ index_to_target_map_: indexToTargetMap_,
11391
11474
  is_loading_: is_loading_,
11392
11475
  get_extra_displays: get_extra_displays
11393
11476
  });
@@ -11400,30 +11483,12 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
11400
11483
  query_base_: query_base_,
11401
11484
  depict_api_: depict_api_
11402
11485
  });
11403
- return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
11404
- displays_by_key_: displays_by_key_,
11405
- product_card_template_: product_card_template_,
11406
- content_blocks_: content_blocks_,
11407
- do_per_elements_: (elements, index_accessor) =>
11408
- // Adds/removes elements from the "results in viewport" intersection observer above
11409
- $8tj43$createEffect(() => {
11410
- const display_index = index_accessor();
11411
- // Nested createEffect because we only want to re-run this when the index changes
11412
- // We need to save in a map which index the elements of this template are so that we can know that in the IntersectionObserver callback
11413
- for (let i = 0; i < elements.length; i++) {
11414
- const element = elements[i];
11415
- target_to_index_map.set(element, display_index);
11416
- intersection_observer.observe(element);
11417
- $8tj43$onCleanup(() => {
11418
- intersection_observer.unobserve(element);
11419
- target_to_index_map.delete(element);
11420
- currently_intersecting.delete(display_index);
11421
- });
11422
- }
11423
- index_to_target_map_.set(display_index, elements);
11424
- $8tj43$onCleanup(() => index_to_target_map_.delete(display_index));
11425
- })
11486
+ $8tj43$createEffect(() => {
11487
+ const intersecting = currentlyIntersecting();
11488
+ setFirstResultInViewport(Math.min(...intersecting) + 1); // +1 because we want to start counting at 1
11489
+ setLastResultsInViewport(Math.max(...intersecting) + 1);
11426
11490
  });
11491
+ return renderedDisplays_;
11427
11492
  }
11428
11493
  var $64d94dcaa058dc7b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
11429
11494
  $64d94dcaa058dc7b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<style type=text/css>`);
@@ -11854,11 +11919,13 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11854
11919
  cols_at_size_: modified_cols_at_size,
11855
11920
  set_top_row_shortened_by_: set_top_row_shortened_by_
11856
11921
  }));
11857
- const rendered_placeholders = $8tj43$createMemo(() => get_should_have_placeholders_rendered() ? $bdd80c7862246dc2$export$f33414a4df0afd3f({
11858
- content_blocks_: content_blocks_,
11859
- product_card_template_: product_card_template_,
11860
- num_placeholders_: num_placeholders_
11861
- }) : undefined);
11922
+ const rendered_placeholders = $8tj43$createMemo(() => {
11923
+ if (get_should_have_placeholders_rendered()) return $bdd80c7862246dc2$export$f33414a4df0afd3f({
11924
+ content_blocks_: content_blocks_,
11925
+ product_card_template_: product_card_template_,
11926
+ num_placeholders_: num_placeholders_
11927
+ });
11928
+ });
11862
11929
  const layout = $8tj43$createMemo(() => {
11863
11930
  const incoming_layout = layout_options_().layout;
11864
11931
  if (incoming_layout === "slider-without-filters") return "slider";
@@ -16194,4 +16261,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
16194
16261
  }, "Entire CategoryPage failed");
16195
16262
  }
16196
16263
  $8tj43$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
16197
- export { $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, $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 };
16264
+ export { $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $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, $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 };