@depict-ai/ui 4.7.29 → 4.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +630 -547
- package/ES10/index.d.ts +105 -81
- package/ES10/index.js +665 -583
- package/latest/index.cjs +580 -499
- package/latest/index.d.ts +105 -81
- package/latest/index.js +616 -536
- package/package.json +1 -1
- package/server/ES10/index.cjs +288 -261
- package/server/ES10/index.d.ts +105 -81
- package/server/ES10/index.js +329 -303
- package/server/latest/index.cjs +263 -238
- package/server/latest/index.d.ts +105 -81
- package/server/latest/index.js +305 -281
package/latest/index.js
CHANGED
|
@@ -1,13 +1,418 @@
|
|
|
1
|
-
import { add_to_version_info as $9HbP8$add_to_version_info,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, insert as $9HbP8$insert, createComponent as $9HbP8$createComponent, isServer as $9HbP8$isServer, effect as $9HbP8$effect, setAttribute as $9HbP8$setAttribute, mergeProps as $9HbP8$mergeProps, className as $9HbP8$className, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, classList as $9HbP8$classList, use as $9HbP8$use, style as $9HbP8$style, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
|
|
1
|
+
import { add_to_version_info as $9HbP8$add_to_version_info, layout_media_query_header as $9HbP8$layout_media_query_header, dwarn as $9HbP8$dwarn, javascript_media_query as $9HbP8$javascript_media_query, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, report as $9HbP8$report, slider_fading_factory as $9HbP8$slider_fading_factory, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, catchify as $9HbP8$catchify1, dlog as $9HbP8$dlog1, camelCasifyObject as $9HbP8$camelCasifyObject, useExpandingContainer as $9HbP8$useExpandingContainer, fetch_retry as $9HbP8$fetch_retry, base_url as $9HbP8$base_url, slider_fractional_factory as $9HbP8$slider_fractional_factory, layout_get_visible_recs_without_partial_rows as $9HbP8$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $9HbP8$layout_get_total_rec_amount_for_row, observer as $9HbP8$observer, queueMacroTask as $9HbP8$queueMacroTask, findMostFrequentItem as $9HbP8$findMostFrequentItem, standard_price_format as $9HbP8$standard_price_format, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, use_href_accessor as $9HbP8$use_href_accessor, get_session_id as $9HbP8$get_session_id, add_version_query_params as $9HbP8$add_version_query_params, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, snakeCasifyObject as $9HbP8$snakeCasifyObject, sort_obj as $9HbP8$sort_obj, make_url_with_query_params as $9HbP8$make_url_with_query_params, insert_surfaces as $9HbP8$insert_surfaces, is_debug as $9HbP8$is_debug } from "@depict-ai/utilishared/latest";
|
|
2
|
+
import { template as $9HbP8$template, createComponent as $9HbP8$createComponent, getNextElement as $9HbP8$getNextElement, insert as $9HbP8$insert, effect as $9HbP8$effect, style as $9HbP8$style, spread as $9HbP8$spread, mergeProps as $9HbP8$mergeProps1, runHydrationEvents as $9HbP8$runHydrationEvents, getNextMarker as $9HbP8$getNextMarker, classList as $9HbP8$classList, className as $9HbP8$className, isServer as $9HbP8$isServer, setAttribute as $9HbP8$setAttribute, addEventListener as $9HbP8$addEventListener, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, use as $9HbP8$use, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
|
|
3
|
+
import { createEffect as $9HbP8$createEffect, createComputed as $9HbP8$createComputed, createMemo as $9HbP8$createMemo, mapArray as $9HbP8$mapArray, createSignal as $9HbP8$createSignal, Show as $9HbP8$Show, mergeProps as $9HbP8$mergeProps, createResource as $9HbP8$createResource, Suspense as $9HbP8$Suspense, onCleanup as $9HbP8$onCleanup, createUniqueId as $9HbP8$createUniqueId, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, ErrorBoundary as $9HbP8$ErrorBoundary, createRoot as $9HbP8$createRoot, untrack as $9HbP8$untrack, For as $9HbP8$For, getOwner as $9HbP8$getOwner, runWithOwner as $9HbP8$runWithOwner, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, splitProps as $9HbP8$splitProps, on as $9HbP8$on, batch as $9HbP8$batch, createSelector as $9HbP8$createSelector, children as $9HbP8$children, createReaction as $9HbP8$createReaction } from "solid-js";
|
|
5
4
|
import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
|
|
5
|
+
import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify, ListenableSet as $9HbP8$ListenableSet, use_href_accessor as $9HbP8$use_href_accessor1, queueMacroTask as $9HbP8$queueMacroTask1, report as $9HbP8$report1 } from "@depict-ai/utilishared/latest";
|
|
6
6
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.31";
|
|
11
|
+
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
|
+
const signal = $9HbP8$createSignal(false);
|
|
13
|
+
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
14
|
+
matches: matches
|
|
15
|
+
}) => signal[1](matches)).remove);
|
|
16
|
+
return signal[0];
|
|
17
|
+
}
|
|
18
|
+
function $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_) {
|
|
19
|
+
const size_active = $9HbP8$createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
|
|
20
|
+
const media_query = $9HbP8$layout_media_query_header(min_width, max_width).replaceAll("@media", "");
|
|
21
|
+
const matches = $dc9262ef6f786812$export$d9f36cf74e24d595(media_query);
|
|
22
|
+
return [matches, n_cols];
|
|
23
|
+
}));
|
|
24
|
+
const n_cols_currently_showing = $9HbP8$createMemo(() => {
|
|
25
|
+
try {
|
|
26
|
+
const [, n_cols_currently_showing] = size_active().find(([media_query]) => media_query());
|
|
27
|
+
return n_cols_currently_showing;
|
|
28
|
+
} catch (e) {
|
|
29
|
+
$9HbP8$dwarn("No active size found in columnsAtSize - can't render content blocks or looks");
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return n_cols_currently_showing;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
|
|
37
|
+
class $4fd48cb976bf1789$export$e1d52e4f0c7557a1 extends Error {}
|
|
38
|
+
class $4fd48cb976bf1789$export$aa14a9f43128f61f extends $4fd48cb976bf1789$export$e1d52e4f0c7557a1 {
|
|
39
|
+
constructor(templateError) {
|
|
40
|
+
super("Uncaught error in product card template", {
|
|
41
|
+
cause: templateError
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var $b7436a6d1fd64e3b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div><!$><!/><!$><!/>`);
|
|
46
|
+
const $b7436a6d1fd64e3b$var$ExtraInfoContext = /*@__PURE__*/$9HbP8$createContext();
|
|
47
|
+
function $b7436a6d1fd64e3b$export$240ecf5363d76c0f(props) {
|
|
48
|
+
return $9HbP8$createComponent($b7436a6d1fd64e3b$var$ExtraInfoContext.Provider, {
|
|
49
|
+
get value() {
|
|
50
|
+
return props.getContext_;
|
|
51
|
+
},
|
|
52
|
+
get children() {
|
|
53
|
+
return props.children;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function $b7436a6d1fd64e3b$export$b69d0d92862de18b(props) {
|
|
58
|
+
const getContextFunction = $9HbP8$useContext($b7436a6d1fd64e3b$var$ExtraInfoContext);
|
|
59
|
+
return $9HbP8$ErrorBoundary({
|
|
60
|
+
fallback(err, retry) {
|
|
61
|
+
const {
|
|
62
|
+
message_: message_,
|
|
63
|
+
severity_: severity_
|
|
64
|
+
} = props;
|
|
65
|
+
let message = message_;
|
|
66
|
+
if (err instanceof (0, $4fd48cb976bf1789$export$aa14a9f43128f61f)) {
|
|
67
|
+
console.error(err.cause);
|
|
68
|
+
message = `${message}: ${err.message}`;
|
|
69
|
+
} else $9HbP8$report([err, message_], severity_, getContextFunction?.());
|
|
70
|
+
return (() => {
|
|
71
|
+
var _el$ = $9HbP8$getNextElement($b7436a6d1fd64e3b$var$_tmpl$),
|
|
72
|
+
_el$2 = _el$.firstChild,
|
|
73
|
+
[_el$3, _co$] = $9HbP8$getNextMarker(_el$2.nextSibling),
|
|
74
|
+
_el$4 = _el$3.nextSibling,
|
|
75
|
+
[_el$5, _co$2] = $9HbP8$getNextMarker(_el$4.nextSibling);
|
|
76
|
+
$9HbP8$insert(_el$, message, _el$3, _co$);
|
|
77
|
+
$9HbP8$insert(_el$, () => props.on_error_?.(retry), _el$5, _co$2);
|
|
78
|
+
$9HbP8$effect(_$p => $9HbP8$classList(_el$, Object.fromEntries(props.class_list_?.map(c => [c, true]) || []), _$p));
|
|
79
|
+
return _el$;
|
|
80
|
+
})();
|
|
81
|
+
},
|
|
82
|
+
get children() {
|
|
83
|
+
return props.children;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
var $6dee9211e57ac31a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
|
|
88
|
+
$6dee9211e57ac31a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<style type=text/css>`);
|
|
89
|
+
const $6dee9211e57ac31a$export$c500183c31c2b22e = "--spans-columns";
|
|
90
|
+
function $6dee9211e57ac31a$export$ab6b147eec64fea5(props) {
|
|
91
|
+
const container_class = "x" + $9HbP8$createUniqueId();
|
|
92
|
+
const container_element_ = (() => {
|
|
93
|
+
var _el$ = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$);
|
|
94
|
+
$9HbP8$spread(_el$, $9HbP8$mergeProps1(() => props.element_attributes, {
|
|
95
|
+
"classList": {
|
|
96
|
+
[container_class]: true
|
|
97
|
+
}
|
|
98
|
+
}), false, true);
|
|
99
|
+
$9HbP8$insert(_el$, () => props.children);
|
|
100
|
+
$9HbP8$runHydrationEvents();
|
|
101
|
+
return _el$;
|
|
102
|
+
})(); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
103
|
+
return $9HbP8$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
104
|
+
message_: "Failed calculating css grid layout",
|
|
105
|
+
severity_: "error",
|
|
106
|
+
get children() {
|
|
107
|
+
return $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element_, false, container_class);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element, insert_after_container = false, container_class) {
|
|
112
|
+
if (!container_class) {
|
|
113
|
+
// only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
|
|
114
|
+
container_class = $9HbP8$make_random_classname();
|
|
115
|
+
container_element.classList.add(container_class);
|
|
116
|
+
}
|
|
117
|
+
const container_selector = `.depict .${container_class}`; // class so ppl can have id if needed
|
|
118
|
+
const col_styling = $9HbP8$createMemo(() => $6dee9211e57ac31a$var$generate_media_queried_declarations({
|
|
119
|
+
container_selector_: container_selector,
|
|
120
|
+
default_grid_spacing_text: props.grid_spacing,
|
|
121
|
+
cols_at_size_: props.cols_at_size,
|
|
122
|
+
override_vertical_spacing_: props.override_vertical_spacing,
|
|
123
|
+
top_row_shortened_by_: props.top_row_shortened_by_()
|
|
124
|
+
}));
|
|
125
|
+
const base_styling = $9HbP8$createMemo(() => {
|
|
126
|
+
return `${container_selector}{display:grid;}`;
|
|
127
|
+
});
|
|
128
|
+
const get_styling = $9HbP8$createMemo(() => base_styling() + col_styling());
|
|
129
|
+
const style_element = (() => {
|
|
130
|
+
var _el$2 = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$2);
|
|
131
|
+
$9HbP8$insert(_el$2, get_styling);
|
|
132
|
+
return _el$2;
|
|
133
|
+
})(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
134
|
+
if (insert_after_container) container_element.after(style_element);
|
|
135
|
+
return [container_element, style_element];
|
|
136
|
+
}
|
|
137
|
+
function $6dee9211e57ac31a$var$generate_media_queried_declarations({
|
|
138
|
+
container_selector_: container_selector_,
|
|
139
|
+
default_grid_spacing_text: default_grid_spacing_text,
|
|
140
|
+
cols_at_size_: cols_at_size_,
|
|
141
|
+
override_vertical_spacing_: override_vertical_spacing_,
|
|
142
|
+
top_row_shortened_by_: top_row_shortened_by_
|
|
143
|
+
}) {
|
|
144
|
+
return cols_at_size_.map(options => {
|
|
145
|
+
const [n_cols, min, max, grid_spacing_for_size] = options;
|
|
146
|
+
const main_spacing_to_use = grid_spacing_for_size || default_grid_spacing_text;
|
|
147
|
+
// See comment in else block below
|
|
148
|
+
const can_use_gap = override_vertical_spacing_ ? $6dee9211e57ac31a$var$can_use_gap_for_unit(override_vertical_spacing_) : $6dee9211e57ac31a$var$can_use_gap_for_unit(main_spacing_to_use);
|
|
149
|
+
let spacing_styling;
|
|
150
|
+
let additional_styling = ""; // outside the media query
|
|
151
|
+
if (can_use_gap) spacing_styling = `gap:${main_spacing_to_use};${override_vertical_spacing_ ? `row-gap:${override_vertical_spacing_};` : ``}`;else {
|
|
152
|
+
// When using percent units, which our default styling does (because convenient) and our interface relies on (hard to specify different gaps for different screen sizes)
|
|
153
|
+
// row gaps in grids are relative to the whole height of the grid, maybe see also https://stackoverflow.com/a/53563865. The issue with that is that as we load more products, the gap grows. Also, it breaks existing integrations.
|
|
154
|
+
// Logical thought: use margins for the vertical spacing. But margins in grids are apparently relative to the size of the individual items in grids.
|
|
155
|
+
// Given that, and that content blocks can be of different width, we have to do some complicated calculations to convert the provided gap, which is in gap of the total container width, to a margin of the individual items.
|
|
156
|
+
const vertical_spacing_to_use = override_vertical_spacing_ ?? main_spacing_to_use;
|
|
157
|
+
const width_multiplier = `var(${$6dee9211e57ac31a$export$c500183c31c2b22e}, 1)`; // How many cards wide the current item is (needed because content blocks)
|
|
158
|
+
const one_item_width_exclusing_gaps = `calc(calc(100 / ${n_cols}) - calc(calc(${n_cols * 2 - 2} * calc(${$6dee9211e57ac31a$var$strip_percent_unit(vertical_spacing_to_use)} / 2)) / ${n_cols}))`; // Width of one item in percent of the whole
|
|
159
|
+
// Equation from layout.tsx, also used in CheckboxGrid. Needs half spacing for some reason
|
|
160
|
+
const this_item_width_meat = `calc(${one_item_width_exclusing_gaps} * ${width_multiplier})`; // Width of just the card
|
|
161
|
+
const this_item_width_gaps = `calc(calc(${width_multiplier} - 1) * ${$6dee9211e57ac31a$var$strip_percent_unit(vertical_spacing_to_use)})`; // Width of the gaps
|
|
162
|
+
const this_item_width = `calc(${this_item_width_meat} + ${this_item_width_gaps})`; // Width of this item including gaps
|
|
163
|
+
// this_item_width needs to be unitless, and since plain css can't do calc(40% / 5%) which would become unitless we need to strip all units in the calculations before
|
|
164
|
+
const convert_top_spacing_to_item_width_percentage = spacing => `calc(calc(100 / ${this_item_width}) * ${spacing})`; // Now finally we can convert the desired spacing to a percentage of this individual item's width (including gaps that would be there but aren't because content blocks span them)
|
|
165
|
+
spacing_styling = `column-gap:${main_spacing_to_use};`; // Still use gaps in the horizontal direction because that works flawlessly
|
|
166
|
+
// Re-use old layout code to get the correct :nth-child declarations for the top margins
|
|
167
|
+
additional_styling = $9HbP8$n_col_styling_with_dist(container_selector_ + ">", convert_top_spacing_to_item_width_percentage(default_grid_spacing_text), [[n_cols, min, max, grid_spacing_for_size ? convert_top_spacing_to_item_width_percentage(grid_spacing_for_size) : null]], "grid", override_vertical_spacing_ ? convert_top_spacing_to_item_width_percentage(override_vertical_spacing_) : override_vertical_spacing_, top_row_shortened_by_);
|
|
168
|
+
}
|
|
169
|
+
const media_query_body = `${container_selector_}{${spacing_styling}grid-template-columns:repeat(${n_cols},minmax(0,1fr));}`;
|
|
170
|
+
return `${$9HbP8$layout_media_query_header(min, max)}{${media_query_body}}${additional_styling}`;
|
|
171
|
+
}).join("");
|
|
172
|
+
}
|
|
173
|
+
function $6dee9211e57ac31a$var$can_use_gap_for_unit(spacing) {
|
|
174
|
+
const trimmed_spacing = spacing.trim();
|
|
175
|
+
return !trimmed_spacing.includes("%");
|
|
176
|
+
}
|
|
177
|
+
function $6dee9211e57ac31a$var$strip_percent_unit(css_value) {
|
|
178
|
+
return css_value.replaceAll("%", "");
|
|
179
|
+
}
|
|
180
|
+
var $d20eff0aadc28983$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span>`);
|
|
181
|
+
function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
|
|
182
|
+
// Work around https://github.com/solidjs/solid/issues/1980
|
|
183
|
+
return (() => {
|
|
184
|
+
var _el$ = $9HbP8$getNextElement($d20eff0aadc28983$var$_tmpl$);
|
|
185
|
+
$9HbP8$effect(_p$ => {
|
|
186
|
+
var _v$ = `${props.class || ""} depict-placeholder`,
|
|
187
|
+
_v$2 = props.style;
|
|
188
|
+
_v$ !== _p$.e && $9HbP8$className(_el$, _p$.e = _v$);
|
|
189
|
+
_p$.t = $9HbP8$style(_el$, _v$2, _p$.t);
|
|
190
|
+
return _p$;
|
|
191
|
+
}, {
|
|
192
|
+
e: undefined,
|
|
193
|
+
t: undefined
|
|
194
|
+
});
|
|
195
|
+
return _el$;
|
|
196
|
+
})();
|
|
197
|
+
}
|
|
198
|
+
function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
|
|
199
|
+
const style = $9HbP8$createMemo(() => {
|
|
200
|
+
const {
|
|
201
|
+
style: style,
|
|
202
|
+
height: height,
|
|
203
|
+
width: width,
|
|
204
|
+
aspectRatio: aspectRatio
|
|
205
|
+
} = props;
|
|
206
|
+
const is_image = aspectRatio != undefined;
|
|
207
|
+
const size_data = is_image ? {
|
|
208
|
+
width: "100%",
|
|
209
|
+
"padding-bottom": `calc(calc(1 / ${aspectRatio}) * 100%)`
|
|
210
|
+
} : {
|
|
211
|
+
width: width,
|
|
212
|
+
height: height
|
|
213
|
+
};
|
|
214
|
+
return {
|
|
215
|
+
display: "block",
|
|
216
|
+
...(style || {}),
|
|
217
|
+
...size_data
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
return $9HbP8$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
|
|
221
|
+
get style() {
|
|
222
|
+
return style();
|
|
223
|
+
},
|
|
224
|
+
get ["class"]() {
|
|
225
|
+
return props.class;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
var $e7a7eb102ddc0c79$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=content-block-wrapper>`);
|
|
230
|
+
function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
|
|
231
|
+
content_blocks_: incoming_content_blocks,
|
|
232
|
+
cols_at_size_: cols_at_size_,
|
|
233
|
+
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
234
|
+
}) {
|
|
235
|
+
// these are by row
|
|
236
|
+
const [content_blocks, set_content_blocks] = $9HbP8$createStore([]);
|
|
237
|
+
const n_cols_currently_showing_ = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
|
|
238
|
+
$9HbP8$createEffect(() => {
|
|
239
|
+
const incoming_value = incoming_content_blocks();
|
|
240
|
+
if (!incoming_value) {
|
|
241
|
+
set_content_blocks([]);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
set_content_blocks($9HbP8$reconcile(incoming_value, {
|
|
245
|
+
key: "content"
|
|
246
|
+
})); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
const get_wrapped_blocks_ = $e7a7eb102ddc0c79$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
|
|
250
|
+
$9HbP8$createComputed(() => {
|
|
251
|
+
// Update our styling if a content block forces some items that should be in the top row into a lower one, so we can generate margin-top declarations for them
|
|
252
|
+
const top_row_block = get_wrapped_blocks_()[0];
|
|
253
|
+
const blocks_in_top_row_taken = top_row_block?.span_columns;
|
|
254
|
+
if (blocks_in_top_row_taken == undefined) {
|
|
255
|
+
// Fall back to zero if no content block in top row, since then no blocks in top row are taken
|
|
256
|
+
set_top_row_shortened_by_(0);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
return $9HbP8$createMemo(() => $e7a7eb102ddc0c79$export$92aa5d691d588f3f({
|
|
263
|
+
wrapped_blocks_: get_wrapped_blocks_(),
|
|
264
|
+
n_cols_currently_showing_: n_cols_currently_showing_()
|
|
265
|
+
}).content_blocks_by_index_);
|
|
266
|
+
}
|
|
267
|
+
function $e7a7eb102ddc0c79$export$92aa5d691d588f3f({
|
|
268
|
+
wrapped_blocks_: wrapped_blocks_,
|
|
269
|
+
n_cols_currently_showing_: n_cols_currently_showing_
|
|
270
|
+
}) {
|
|
271
|
+
// This computation should be quite cheap since it just moves around things into an array
|
|
272
|
+
const content_blocks_by_index_ = [];
|
|
273
|
+
const constructed_block_arrays = new WeakSet();
|
|
274
|
+
// Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
|
|
275
|
+
const displaced_products_ = []; // undefined = is product, true = is content block if number instead of tuple number indicates content blocks in that row. Index in first array is row, index in second array is column
|
|
276
|
+
if (!n_cols_currently_showing_)
|
|
277
|
+
// Nope out of here if we don't know how many columns are showing
|
|
278
|
+
return {
|
|
279
|
+
content_blocks_by_index_: content_blocks_by_index_
|
|
280
|
+
};
|
|
281
|
+
for (let i = 0; i < wrapped_blocks_.length; i++) {
|
|
282
|
+
// i = row to show at
|
|
283
|
+
const block = wrapped_blocks_[i];
|
|
284
|
+
if (!block) continue; // Array can have holes/not defined places
|
|
285
|
+
const index_of_first_item_in_row = i * n_cols_currently_showing_;
|
|
286
|
+
const index_of_last_item_in_row = index_of_first_item_in_row + n_cols_currently_showing_;
|
|
287
|
+
const {
|
|
288
|
+
span_rows: span_rows,
|
|
289
|
+
position: position,
|
|
290
|
+
span_columns: span_columns
|
|
291
|
+
} = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
|
|
292
|
+
let target_index;
|
|
293
|
+
if (position === "left") target_index = index_of_first_item_in_row;else if (position === "right") target_index = index_of_last_item_in_row - span_columns;else if (position === "center") target_index = index_of_first_item_in_row + Math.floor((n_cols_currently_showing_ - span_columns) / 2);else throw new Error("Invalid position for content block - must be left, right or center: " + JSON.stringify(position));
|
|
294
|
+
// Calculate displacement of us by content blocks above us
|
|
295
|
+
let displacement_by_added_blocks = 0;
|
|
296
|
+
for (let j = 0; j < i; j++) {
|
|
297
|
+
const row = displaced_products_[j];
|
|
298
|
+
if (row === undefined) continue; // there were no blocks in this row
|
|
299
|
+
let displaced_items_in_row;
|
|
300
|
+
if (typeof row === "number") displaced_items_in_row = row;else {
|
|
301
|
+
displaced_items_in_row = row.filter(item => item).length;
|
|
302
|
+
displaced_products_[j] = displaced_items_in_row;
|
|
303
|
+
}
|
|
304
|
+
displacement_by_added_blocks += displaced_items_in_row;
|
|
305
|
+
}
|
|
306
|
+
const index_of_us_in_row = target_index - index_of_first_item_in_row;
|
|
307
|
+
for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products_[i]?.[j])
|
|
308
|
+
// Add blocks in our *current* row to the displacement, but only the ones to our left
|
|
309
|
+
displacement_by_added_blocks++;
|
|
310
|
+
// Add block to output array at the correct index
|
|
311
|
+
const final_target_index = target_index - displacement_by_added_blocks;
|
|
312
|
+
const existing_block = content_blocks_by_index_[final_target_index];
|
|
313
|
+
const block_content = block.content;
|
|
314
|
+
// If two blocks want to exist at the same location (can happen, for example if one block wants to be at the end of a row and the other one at the start of the next row) add an array with both
|
|
315
|
+
if (existing_block) {
|
|
316
|
+
if (constructed_block_arrays.has(existing_block))
|
|
317
|
+
// Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
|
|
318
|
+
existing_block.push(block_content);else {
|
|
319
|
+
const array = [existing_block, block_content];
|
|
320
|
+
constructed_block_arrays.add(array);
|
|
321
|
+
content_blocks_by_index_[final_target_index] = array;
|
|
322
|
+
}
|
|
323
|
+
} else content_blocks_by_index_[final_target_index] = block_content;
|
|
324
|
+
// Update displacement
|
|
325
|
+
for (let j = 0; j < span_rows; j++) {
|
|
326
|
+
const row = displaced_products_[i + j] ||= [];
|
|
327
|
+
for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return {
|
|
331
|
+
content_blocks_by_index_: content_blocks_by_index_,
|
|
332
|
+
displaced_products_: displaced_products_
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Takes a store that contains an array from where index is number of row and value is the result of executing the content block rendering function.
|
|
337
|
+
* Then renders the content and wraps it into a div with the correct styling.
|
|
338
|
+
* Also caps span_columns to max available columns
|
|
339
|
+
*/
|
|
340
|
+
function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
|
|
341
|
+
const get_wrapped_blocks = $9HbP8$mapArray(() => rendered_content_blocks, block => {
|
|
342
|
+
if (!block) return;
|
|
343
|
+
const final_span_columns = $9HbP8$createMemo(() => Math.min(block.span_columns, max_span_columns() ?? Infinity));
|
|
344
|
+
// If the item spans an entire row, limit the height to 1 row since there's no concept of "rows" if there are no products beside the block
|
|
345
|
+
const final_span_rows = $9HbP8$createMemo(() => final_span_columns() === max_span_columns() ? 1 : block.span_rows);
|
|
346
|
+
const [rendering_delayed, set_rendering_delayed_] = $9HbP8$createSignal(true);
|
|
347
|
+
const content = $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
348
|
+
get when() {
|
|
349
|
+
return !rendering_delayed();
|
|
350
|
+
},
|
|
351
|
+
get children() {
|
|
352
|
+
var _el$ = $9HbP8$getNextElement($e7a7eb102ddc0c79$var$_tmpl$);
|
|
353
|
+
$9HbP8$insert(_el$, $9HbP8$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
|
|
354
|
+
get content() {
|
|
355
|
+
return block.content;
|
|
356
|
+
}
|
|
357
|
+
}));
|
|
358
|
+
$9HbP8$effect(_p$ => {
|
|
359
|
+
var _v$ = {
|
|
360
|
+
[(0, $6dee9211e57ac31a$export$c500183c31c2b22e)]: final_span_columns()
|
|
361
|
+
},
|
|
362
|
+
_v$2 = `span ${final_span_columns()}`,
|
|
363
|
+
_v$3 = `span ${final_span_rows()}`;
|
|
364
|
+
_p$.e = $9HbP8$style(_el$, _v$, _p$.e);
|
|
365
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
|
|
366
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
|
|
367
|
+
return _p$;
|
|
368
|
+
}, {
|
|
369
|
+
e: undefined,
|
|
370
|
+
t: undefined,
|
|
371
|
+
a: undefined
|
|
372
|
+
});
|
|
373
|
+
return _el$;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
return $9HbP8$mergeProps(block, {
|
|
377
|
+
// Create content divs for the blocks with as much fine-grained diffing as possible?
|
|
378
|
+
content: () => {
|
|
379
|
+
// Sneaky on-demand rendering, so we don't render more blocks than we can show: we have the rendered value here and don't return a function that renders because if our block would be moved around we'd be guaranteed to re-render
|
|
380
|
+
// However, no need to count products to know if we should render: the <For> loops in Placeholders and render_displays will only call this function if there's actually a product here that wants to display this block
|
|
381
|
+
set_rendering_delayed_(false);
|
|
382
|
+
return content;
|
|
383
|
+
},
|
|
384
|
+
get span_columns() {
|
|
385
|
+
// Cap max width of block to the number of columns available, for everyone downstream
|
|
386
|
+
return final_span_columns();
|
|
387
|
+
},
|
|
388
|
+
get span_rows() {
|
|
389
|
+
return final_span_rows();
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
return get_wrapped_blocks;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Basically adds support for async content block functions and shows a rudimentary placeholder if rendering is delayed. Required due to react having a rendering delay.
|
|
397
|
+
*/
|
|
398
|
+
function $e7a7eb102ddc0c79$var$RenderContent(props) {
|
|
399
|
+
const [resource] = $9HbP8$createResource(() => props.content,
|
|
400
|
+
// Could be reactive
|
|
401
|
+
fn => fn());
|
|
402
|
+
$9HbP8$createEffect(() => {
|
|
403
|
+
if (resource.error) console.error("Error in content block rendering", resource.error);
|
|
404
|
+
});
|
|
405
|
+
// The suspense is for when there's an async content block (which we have to support due to react having a rendering delay) so that we can show some height while it's loading (should kinda never be visible)
|
|
406
|
+
return $9HbP8$createComponent((0, $9HbP8$Suspense), {
|
|
407
|
+
get fallback() {
|
|
408
|
+
return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
409
|
+
width: "100%",
|
|
410
|
+
height: "max(100%, 400px)"
|
|
411
|
+
});
|
|
412
|
+
},
|
|
413
|
+
children: resource
|
|
414
|
+
});
|
|
415
|
+
}
|
|
11
416
|
let $4eb0a704f8f30273$var$elementsHoveredSignal;
|
|
12
417
|
let $4eb0a704f8f30273$var$consumersSignal;
|
|
13
418
|
function $4eb0a704f8f30273$export$d4d96868197be50e() {
|
|
@@ -646,83 +1051,32 @@ function $6e41f1fde994db72$var$Placeholder({
|
|
|
646
1051
|
dispose_original_copy();
|
|
647
1052
|
$6e41f1fde994db72$var$renderingCachedPlaceholderElement[placeholderCacheKey_] = undefined;
|
|
648
1053
|
};
|
|
649
|
-
rendering?.then(unset_current_rendering, unset_current_rendering);
|
|
650
|
-
} else
|
|
651
|
-
// Otherwise, just make sure we've disposed our root
|
|
652
|
-
dispose_original_copy();
|
|
653
|
-
});
|
|
654
|
-
return $9HbP8$createMemo(() => {
|
|
655
|
-
const unwrapped_array = get_unwrapped_element()();
|
|
656
|
-
if (!unwrapped_array?.length || !unwrapped_array.every(item => item))
|
|
657
|
-
// Haven't finished rendering yet in case of "async" rendering, so don't freeze the elements yet
|
|
658
|
-
return;
|
|
659
|
-
// placeholders have finished rendering, freeze the elements
|
|
660
|
-
// 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
|
|
661
|
-
$6e41f1fde994db72$var$cachedPlaceholderElements[placeholderCacheKey_] ||= 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
|
|
662
|
-
$6e41f1fde994db72$var$renderingCachedPlaceholderElement[placeholderCacheKey_] = undefined;
|
|
663
|
-
dispose_original_copy(); // So that this memo will never re-run and the placeholder rendering function can clean up
|
|
664
|
-
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
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
// Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
|
|
669
|
-
class $4fd48cb976bf1789$export$e1d52e4f0c7557a1 extends Error {}
|
|
670
|
-
class $4fd48cb976bf1789$export$aa14a9f43128f61f extends $4fd48cb976bf1789$export$e1d52e4f0c7557a1 {
|
|
671
|
-
constructor(templateError) {
|
|
672
|
-
super("Uncaught error in product card template", {
|
|
673
|
-
cause: templateError
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
var $b7436a6d1fd64e3b$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div><!$><!/><!$><!/>`);
|
|
678
|
-
const $b7436a6d1fd64e3b$var$ExtraInfoContext = /*@__PURE__*/$9HbP8$createContext();
|
|
679
|
-
function $b7436a6d1fd64e3b$export$240ecf5363d76c0f(props) {
|
|
680
|
-
return $9HbP8$createComponent($b7436a6d1fd64e3b$var$ExtraInfoContext.Provider, {
|
|
681
|
-
get value() {
|
|
682
|
-
return props.getContext_;
|
|
683
|
-
},
|
|
684
|
-
get children() {
|
|
685
|
-
return props.children;
|
|
686
|
-
}
|
|
1054
|
+
rendering?.then(unset_current_rendering, unset_current_rendering);
|
|
1055
|
+
} else
|
|
1056
|
+
// Otherwise, just make sure we've disposed our root
|
|
1057
|
+
dispose_original_copy();
|
|
687
1058
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
console.error(err.cause);
|
|
700
|
-
message = `${message}: ${err.message}`;
|
|
701
|
-
} else $9HbP8$report([err, message_], severity_, getContextFunction?.());
|
|
702
|
-
return (() => {
|
|
703
|
-
var _el$ = $9HbP8$getNextElement($b7436a6d1fd64e3b$var$_tmpl$),
|
|
704
|
-
_el$2 = _el$.firstChild,
|
|
705
|
-
[_el$3, _co$] = $9HbP8$getNextMarker(_el$2.nextSibling),
|
|
706
|
-
_el$4 = _el$3.nextSibling,
|
|
707
|
-
[_el$5, _co$2] = $9HbP8$getNextMarker(_el$4.nextSibling);
|
|
708
|
-
$9HbP8$insert(_el$, message, _el$3, _co$);
|
|
709
|
-
$9HbP8$insert(_el$, () => props.on_error_?.(retry), _el$5, _co$2);
|
|
710
|
-
$9HbP8$effect(_$p => $9HbP8$classList(_el$, Object.fromEntries(props.class_list_?.map(c => [c, true]) || []), _$p));
|
|
711
|
-
return _el$;
|
|
712
|
-
})();
|
|
713
|
-
},
|
|
714
|
-
get children() {
|
|
715
|
-
return props.children;
|
|
716
|
-
}
|
|
1059
|
+
return $9HbP8$createMemo(() => {
|
|
1060
|
+
const unwrapped_array = get_unwrapped_element()();
|
|
1061
|
+
if (!unwrapped_array?.length || !unwrapped_array.every(item => item))
|
|
1062
|
+
// Haven't finished rendering yet in case of "async" rendering, so don't freeze the elements yet
|
|
1063
|
+
return;
|
|
1064
|
+
// placeholders have finished rendering, freeze the elements
|
|
1065
|
+
// 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
|
|
1066
|
+
$6e41f1fde994db72$var$cachedPlaceholderElements[placeholderCacheKey_] ||= 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
|
|
1067
|
+
$6e41f1fde994db72$var$renderingCachedPlaceholderElement[placeholderCacheKey_] = undefined;
|
|
1068
|
+
dispose_original_copy(); // So that this memo will never re-run and the placeholder rendering function can clean up
|
|
1069
|
+
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
|
|
717
1070
|
});
|
|
718
1071
|
}
|
|
1072
|
+
|
|
719
1073
|
var $c8d5ff4524619fcd$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
|
|
720
1074
|
$c8d5ff4524619fcd$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<style type=text/css>`);
|
|
721
1075
|
function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
|
|
722
1076
|
const container_class = "x" + $9HbP8$createUniqueId();
|
|
723
1077
|
const container_element_ = (() => {
|
|
724
1078
|
var _el$ = $9HbP8$getNextElement($c8d5ff4524619fcd$var$_tmpl$);
|
|
725
|
-
$9HbP8$spread(_el$, $9HbP8$
|
|
1079
|
+
$9HbP8$spread(_el$, $9HbP8$mergeProps1(() => props.element_attributes, {
|
|
726
1080
|
"classList": {
|
|
727
1081
|
[container_class]: true
|
|
728
1082
|
}
|
|
@@ -883,7 +1237,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
|
|
|
883
1237
|
} = slider;
|
|
884
1238
|
const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
|
|
885
1239
|
// Do like this, so we don't have to call mergeProps ourselves
|
|
886
|
-
$9HbP8$createComponent(Layout, $9HbP8$
|
|
1240
|
+
$9HbP8$createComponent(Layout, $9HbP8$mergeProps1({
|
|
887
1241
|
rows: "all",
|
|
888
1242
|
layout: "slider"
|
|
889
1243
|
}, layout_options_));
|
|
@@ -975,62 +1329,6 @@ function $011607bdf658f807$export$e68cff63f76bd15b(props) {
|
|
|
975
1329
|
function $011607bdf658f807$export$8d0c4fdbb05a2f2e() {
|
|
976
1330
|
return $9HbP8$useContext($011607bdf658f807$var$ListingContext);
|
|
977
1331
|
}
|
|
978
|
-
var $d20eff0aadc28983$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span>`);
|
|
979
|
-
function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
|
|
980
|
-
// Work around https://github.com/solidjs/solid/issues/1980
|
|
981
|
-
return (() => {
|
|
982
|
-
var _el$ = $9HbP8$getNextElement($d20eff0aadc28983$var$_tmpl$);
|
|
983
|
-
$9HbP8$effect(_p$ => {
|
|
984
|
-
var _v$ = `${props.class || ""} depict-placeholder`,
|
|
985
|
-
_v$2 = props.style;
|
|
986
|
-
_v$ !== _p$.e && $9HbP8$className(_el$, _p$.e = _v$);
|
|
987
|
-
_p$.t = $9HbP8$style(_el$, _v$2, _p$.t);
|
|
988
|
-
return _p$;
|
|
989
|
-
}, {
|
|
990
|
-
e: undefined,
|
|
991
|
-
t: undefined
|
|
992
|
-
});
|
|
993
|
-
return _el$;
|
|
994
|
-
})();
|
|
995
|
-
}
|
|
996
|
-
function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
|
|
997
|
-
const style = $9HbP8$createMemo(() => {
|
|
998
|
-
const {
|
|
999
|
-
style: style,
|
|
1000
|
-
height: height,
|
|
1001
|
-
width: width,
|
|
1002
|
-
aspectRatio: aspectRatio
|
|
1003
|
-
} = props;
|
|
1004
|
-
const is_image = aspectRatio != undefined;
|
|
1005
|
-
const size_data = is_image ? {
|
|
1006
|
-
width: "100%",
|
|
1007
|
-
"padding-bottom": `calc(calc(1 / ${aspectRatio}) * 100%)`
|
|
1008
|
-
} : {
|
|
1009
|
-
width: width,
|
|
1010
|
-
height: height
|
|
1011
|
-
};
|
|
1012
|
-
return {
|
|
1013
|
-
display: "block",
|
|
1014
|
-
...(style || {}),
|
|
1015
|
-
...size_data
|
|
1016
|
-
};
|
|
1017
|
-
});
|
|
1018
|
-
return $9HbP8$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
|
|
1019
|
-
get style() {
|
|
1020
|
-
return style();
|
|
1021
|
-
},
|
|
1022
|
-
get ["class"]() {
|
|
1023
|
-
return props.class;
|
|
1024
|
-
}
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
1028
|
-
const signal = $9HbP8$createSignal(false);
|
|
1029
|
-
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
1030
|
-
matches: matches
|
|
1031
|
-
}) => signal[1](matches)).remove);
|
|
1032
|
-
return signal[0];
|
|
1033
|
-
}
|
|
1034
1332
|
function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
|
|
1035
1333
|
const style = $9HbP8$createMemo(() => {
|
|
1036
1334
|
const {
|
|
@@ -1183,7 +1481,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
|
|
|
1183
1481
|
if (loading === "force-lazy") return true;
|
|
1184
1482
|
return loading === "lazy" && !isPrioritisedImage();
|
|
1185
1483
|
});
|
|
1186
|
-
const modifiedOtherAttributes = $9HbP8$
|
|
1484
|
+
const modifiedOtherAttributes = $9HbP8$mergeProps(otherAttributes, {
|
|
1187
1485
|
get loading() {
|
|
1188
1486
|
return shouldActuallyEnableLazyLoading() ? "lazy" : undefined;
|
|
1189
1487
|
}
|
|
@@ -1253,7 +1551,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
|
|
|
1253
1551
|
$9HbP8$onCleanup(() => prevValue && aspectRatios.delete(prevValue));
|
|
1254
1552
|
}
|
|
1255
1553
|
$9HbP8$onCleanup(() => gotCleanedUp = true);
|
|
1256
|
-
$9HbP8$spread(img, $9HbP8$
|
|
1554
|
+
$9HbP8$spread(img, $9HbP8$mergeProps(modifiedOtherAttributes), false, true);
|
|
1257
1555
|
$9HbP8$createRenderEffect(() => {
|
|
1258
1556
|
props.src;
|
|
1259
1557
|
srcJustChanged = true;
|
|
@@ -1357,7 +1655,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
|
|
|
1357
1655
|
$9HbP8$queueMacroTask(() => setCurrentImageSize()); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
|
|
1358
1656
|
});
|
|
1359
1657
|
|
|
1360
|
-
$9HbP8$insert(container, $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$
|
|
1658
|
+
$9HbP8$insert(container, $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$mergeProps1({
|
|
1361
1659
|
get size() {
|
|
1362
1660
|
return $9HbP8$createMemo(() => currentImageSize()?.() || 0);
|
|
1363
1661
|
},
|
|
@@ -1372,7 +1670,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
|
|
|
1372
1670
|
return container;
|
|
1373
1671
|
}
|
|
1374
1672
|
function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
1375
|
-
return $9HbP8$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $9HbP8$
|
|
1673
|
+
return $9HbP8$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $9HbP8$mergeProps1(props, {
|
|
1376
1674
|
get imgProps() {
|
|
1377
1675
|
return {
|
|
1378
1676
|
...props.imgProps,
|
|
@@ -1432,7 +1730,7 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
|
|
|
1432
1730
|
[_el$15, _co$4] = $9HbP8$getNextMarker(_el$14.nextSibling);
|
|
1433
1731
|
var _ref$ = outerRef_;
|
|
1434
1732
|
typeof _ref$ === "function" ? $9HbP8$use(_ref$, _el$) : outerRef_ = _el$;
|
|
1435
|
-
$9HbP8$spread(_el$, $9HbP8$
|
|
1733
|
+
$9HbP8$spread(_el$, $9HbP8$mergeProps1(() => enableLink() ? {
|
|
1436
1734
|
href: href()
|
|
1437
1735
|
} : {}, {
|
|
1438
1736
|
get onClick() {
|
|
@@ -1533,7 +1831,7 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
|
|
|
1533
1831
|
disconnector();
|
|
1534
1832
|
}));
|
|
1535
1833
|
}, _el$3);
|
|
1536
|
-
$9HbP8$spread(_el$5, $9HbP8$
|
|
1834
|
+
$9HbP8$spread(_el$5, $9HbP8$mergeProps1(() => title() && {
|
|
1537
1835
|
title: title()
|
|
1538
1836
|
}), false, true);
|
|
1539
1837
|
$9HbP8$insert(_el$5, () => title() ?? $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
@@ -1861,7 +2159,7 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
1861
2159
|
[_el$3, _co$] = $9HbP8$getNextMarker(_el$2.nextSibling),
|
|
1862
2160
|
_el$4 = _el$3.nextSibling,
|
|
1863
2161
|
[_el$5, _co$2] = $9HbP8$getNextMarker(_el$4.nextSibling);
|
|
1864
|
-
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify1(() => setUserWantsExpanded(prev =>
|
|
2162
|
+
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify1(() => display_() && setUserWantsExpanded(prev => !prev)), true);
|
|
1865
2163
|
$9HbP8$use(el => {
|
|
1866
2164
|
container = el;
|
|
1867
2165
|
const ro = new ResizeObserver($9HbP8$catchify1(records => {
|
|
@@ -2077,7 +2375,7 @@ function $3da8afe3ed57cf34$export$7da560f849543dff({
|
|
|
2077
2375
|
_el$6 = _el$5.nextSibling,
|
|
2078
2376
|
[_el$7, _co$2] = $9HbP8$getNextMarker(_el$6.nextSibling);
|
|
2079
2377
|
$9HbP8$insert(_el$3, (0, $a458486f22b22f63$export$a2cc176055f8f08), _el$5, _co$);
|
|
2080
|
-
$9HbP8$insert(_el$3, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$
|
|
2378
|
+
$9HbP8$insert(_el$3, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps1({
|
|
2081
2379
|
get rows() {
|
|
2082
2380
|
return rows_object_();
|
|
2083
2381
|
},
|
|
@@ -2210,7 +2508,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
2210
2508
|
return $9HbP8$createComponent((0, $c4492d24952ed731$export$d41d19e89346fa2), sharedOptions);
|
|
2211
2509
|
},
|
|
2212
2510
|
get children() {
|
|
2213
|
-
return $9HbP8$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $9HbP8$
|
|
2511
|
+
return $9HbP8$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $9HbP8$mergeProps1(sharedOptions, {
|
|
2214
2512
|
view_more_button_: () => props.gridOptions_?.view_more_button,
|
|
2215
2513
|
max_rows_: () => props.gridOptions_?.max_rows
|
|
2216
2514
|
}));
|
|
@@ -2261,7 +2559,7 @@ async function $07ef910e8ef6b783$var$runDisplayTransformersForLooks(baseData, li
|
|
|
2261
2559
|
}) : displaysToTransform;
|
|
2262
2560
|
const transformedListings = await transformedListingsPromise;
|
|
2263
2561
|
const transformedDisplayById = Object.fromEntries(transformedProducts.map(display => [$16351e4c87b90b3d$export$548d053aba053d79(display), display]));
|
|
2264
|
-
return transformedListings.map(listing => $9HbP8$
|
|
2562
|
+
return transformedListings.map(listing => $9HbP8$mergeProps(listing, {
|
|
2265
2563
|
// use mergeProps because in preview browser we add getters in this object, that would be called too early otherwise
|
|
2266
2564
|
displays: (displayIdsPerListingId[listing.listing_id] || []).map(displayId => transformedDisplayById[displayId]).filter(v => v)
|
|
2267
2565
|
}));
|
|
@@ -3657,7 +3955,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
3657
3955
|
when: on_back_,
|
|
3658
3956
|
get children() {
|
|
3659
3957
|
var _el$ = $9HbP8$getNextElement($5285d2814d0fac0c$var$_tmpl$);
|
|
3660
|
-
$9HbP8$spread(_el$, $9HbP8$
|
|
3958
|
+
$9HbP8$spread(_el$, $9HbP8$mergeProps1({
|
|
3661
3959
|
get onClick() {
|
|
3662
3960
|
return $9HbP8$catchify1(on_back_);
|
|
3663
3961
|
},
|
|
@@ -3679,7 +3977,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
3679
3977
|
var _el$2 = $9HbP8$getNextElement($5285d2814d0fac0c$var$_tmpl$2);
|
|
3680
3978
|
var _ref$ = buttonInFieldRef_;
|
|
3681
3979
|
typeof _ref$ === "function" ? $9HbP8$use(_ref$, _el$2) : buttonInFieldRef_ = _el$2;
|
|
3682
|
-
$9HbP8$spread(_el$2, $9HbP8$
|
|
3980
|
+
$9HbP8$spread(_el$2, $9HbP8$mergeProps1({
|
|
3683
3981
|
get classList() {
|
|
3684
3982
|
return {
|
|
3685
3983
|
empty: searchFieldEmpty()
|
|
@@ -4464,7 +4762,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
4464
4762
|
const href = $9HbP8$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
|
|
4465
4763
|
const LinkToListing = props => (() => {
|
|
4466
4764
|
var _el$ = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$);
|
|
4467
|
-
$9HbP8$spread(_el$, $9HbP8$
|
|
4765
|
+
$9HbP8$spread(_el$, $9HbP8$mergeProps1(props, {
|
|
4468
4766
|
get href() {
|
|
4469
4767
|
return href();
|
|
4470
4768
|
},
|
|
@@ -4858,7 +5156,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
|
|
|
4858
5156
|
$9HbP8$createComputed($9HbP8$on(search_field_value_[0], () => !suggestions_updating_blocked() && set_selected_index(undefined), {
|
|
4859
5157
|
defer: true
|
|
4860
5158
|
})); // reset autocomplete position if query changes
|
|
4861
|
-
return [$9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$
|
|
5159
|
+
return [$9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps1(sharedSuggestionProps, {
|
|
4862
5160
|
get title_() {
|
|
4863
5161
|
return i18n_.popular_;
|
|
4864
5162
|
},
|
|
@@ -4868,7 +5166,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
|
|
|
4868
5166
|
return itemIndexes_.suggestionsIndex_;
|
|
4869
5167
|
},
|
|
4870
5168
|
showPlaceholders_: () => showPlaceholders() || noResults_() && !noResultsPopularSuggestions.latest
|
|
4871
|
-
})), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$
|
|
5169
|
+
})), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps1(sharedSuggestionProps, {
|
|
4872
5170
|
get title_() {
|
|
4873
5171
|
return i18n_.previous_;
|
|
4874
5172
|
},
|
|
@@ -4885,7 +5183,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
|
|
|
4885
5183
|
return _el$;
|
|
4886
5184
|
})(),
|
|
4887
5185
|
showPlaceholders_: () => false
|
|
4888
|
-
})), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$
|
|
5186
|
+
})), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps1(sharedSuggestionProps, {
|
|
4889
5187
|
get title_() {
|
|
4890
5188
|
return i18n_.content_;
|
|
4891
5189
|
},
|
|
@@ -5409,7 +5707,7 @@ function $024fbc0a2d796fad$export$b2539bed5023c21c(props) {
|
|
|
5409
5707
|
return $9HbP8$createComponent($024fbc0a2d796fad$var$TabsContext.Provider, {
|
|
5410
5708
|
value: new (0, $9HbP8$ListenableSet)(),
|
|
5411
5709
|
get children() {
|
|
5412
|
-
return $9HbP8$createComponent($024fbc0a2d796fad$var$ActualTabs, $9HbP8$
|
|
5710
|
+
return $9HbP8$createComponent($024fbc0a2d796fad$var$ActualTabs, $9HbP8$mergeProps1(props, {
|
|
5413
5711
|
get children() {
|
|
5414
5712
|
return props.children;
|
|
5415
5713
|
}
|
|
@@ -5439,7 +5737,7 @@ function $024fbc0a2d796fad$var$ActualTabs(props) {
|
|
|
5439
5737
|
},
|
|
5440
5738
|
children: item => {
|
|
5441
5739
|
const weSelected = $9HbP8$createMemo(() => isSelected(item().id));
|
|
5442
|
-
return $9HbP8$createComponent((0, $9HbP8$Dynamic), $9HbP8$
|
|
5740
|
+
return $9HbP8$createComponent((0, $9HbP8$Dynamic), $9HbP8$mergeProps1({
|
|
5443
5741
|
get component() {
|
|
5444
5742
|
return props.AnchorComponent;
|
|
5445
5743
|
},
|
|
@@ -5546,7 +5844,7 @@ function $024fbc0a2d796fad$export$3e41faf802a29e71(props) {
|
|
|
5546
5844
|
if (!currentTabs) throw new Error("Tab must be a child of Tabs");
|
|
5547
5845
|
const id = $9HbP8$createUniqueId();
|
|
5548
5846
|
const ourSet = currentTabs;
|
|
5549
|
-
const extendedProps = $9HbP8$
|
|
5847
|
+
const extendedProps = $9HbP8$mergeProps({
|
|
5550
5848
|
id: id
|
|
5551
5849
|
}, props);
|
|
5552
5850
|
ourSet.add(extendedProps);
|
|
@@ -6064,14 +6362,14 @@ function $8560c919ff763930$var$ActualShopTheLookButton(props) {
|
|
|
6064
6362
|
const displayStyleValue = $9HbP8$createMemo(() => hasAnythingToShow() ? "" : "none");
|
|
6065
6363
|
const button = (() => {
|
|
6066
6364
|
var _el$2 = $9HbP8$getNextElement($8560c919ff763930$var$_tmpl$2);
|
|
6067
|
-
$9HbP8$spread(_el$2, $9HbP8$
|
|
6365
|
+
$9HbP8$spread(_el$2, $9HbP8$mergeProps1(() => localProps.buttonAttributes), false, true);
|
|
6068
6366
|
$9HbP8$insert(_el$2, () => localProps?.buttonAttributes?.children || "Shop the look");
|
|
6069
6367
|
$9HbP8$runHydrationEvents();
|
|
6070
6368
|
return _el$2;
|
|
6071
6369
|
})();
|
|
6072
6370
|
$9HbP8$createEffect(() => button.style.display = displayStyleValue()); // Set our attributes like this, so we allow total control over the button from the outside via buttonAttributes
|
|
6073
6371
|
$9HbP8$createEffect(() => !hasAnythingToShow() && closeModal()); // close modal if we ever get into the state of having it open and not having anything to show
|
|
6074
|
-
$8560c919ff763930$var$modalProps = $9HbP8$
|
|
6372
|
+
$8560c919ff763930$var$modalProps = $9HbP8$mergeProps(partForModal, {
|
|
6075
6373
|
products_to_shop_: products_to_shop_
|
|
6076
6374
|
});
|
|
6077
6375
|
button.addEventListener("click", openModal);
|
|
@@ -6792,7 +7090,7 @@ var $f8a56ba74eedd0c6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M
|
|
|
6792
7090
|
function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
|
|
6793
7091
|
return (() => {
|
|
6794
7092
|
var _el$ = $9HbP8$getNextElement($f8a56ba74eedd0c6$var$_tmpl$);
|
|
6795
|
-
$9HbP8$spread(_el$, $9HbP8$
|
|
7093
|
+
$9HbP8$spread(_el$, $9HbP8$mergeProps1(props, {
|
|
6796
7094
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
6797
7095
|
"width": "11",
|
|
6798
7096
|
"height": "12"
|
|
@@ -8243,7 +8541,7 @@ const $93716a9ad0dea854$export$414f6a19d38e655c = ({
|
|
|
8243
8541
|
[_el$6, _co$] = $9HbP8$getNextMarker(_el$5.nextSibling),
|
|
8244
8542
|
_el$7 = _el$6.nextSibling,
|
|
8245
8543
|
[_el$8, _co$2] = $9HbP8$getNextMarker(_el$7.nextSibling);
|
|
8246
|
-
$9HbP8$spread(_el$2, $9HbP8$
|
|
8544
|
+
$9HbP8$spread(_el$2, $9HbP8$mergeProps1(attributes, {
|
|
8247
8545
|
get disabled() {
|
|
8248
8546
|
return $9HbP8$memo(() => !!count_zero())() && !is_selected();
|
|
8249
8547
|
},
|
|
@@ -9651,7 +9949,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
9651
9949
|
// Filter out our transformed ancestors
|
|
9652
9950
|
const transformedAncestors = Object.fromEntries(transformerResult.filter(item => item.is_suggestion === false).map(item => [item.listing_id, item]));
|
|
9653
9951
|
// Add the now transformed ancestors into the ancestors of the listing suggestions
|
|
9654
|
-
const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $9HbP8$
|
|
9952
|
+
const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $9HbP8$mergeProps(item, {
|
|
9655
9953
|
// Use mergeProps instead of spread since page_url and other properties could be a getter that solid components should call
|
|
9656
9954
|
ancestors: item.ancestors.map(ancestor => {
|
|
9657
9955
|
const newAncestor = transformedAncestors[ancestor.listing_id];
|
|
@@ -9833,7 +10131,8 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
9833
10131
|
breadcrumbs: [],
|
|
9834
10132
|
quick_links: [],
|
|
9835
10133
|
image_urls: [],
|
|
9836
|
-
failed: true
|
|
10134
|
+
failed: true,
|
|
10135
|
+
content_blocks: []
|
|
9837
10136
|
}),
|
|
9838
10137
|
method_: "GET"
|
|
9839
10138
|
});
|
|
@@ -10212,7 +10511,7 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
|
|
|
10212
10511
|
[_el$6, _co$2] = $9HbP8$getNextMarker(_el$5.nextSibling);
|
|
10213
10512
|
$9HbP8$insert(_el$2, () => i18n_.search_recs_title_());
|
|
10214
10513
|
$9HbP8$insert(_el$, (0, $a458486f22b22f63$export$a2cc176055f8f08), _el$4, _co$);
|
|
10215
|
-
$9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$
|
|
10514
|
+
$9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps1({
|
|
10216
10515
|
rows: rows_object,
|
|
10217
10516
|
layout: "grid",
|
|
10218
10517
|
element_attributes: {
|
|
@@ -10846,172 +11145,79 @@ function $0e0b96a8dc1ad492$export$63dd0350f8559dda({
|
|
|
10846
11145
|
return $9HbP8$createMemo(() => {
|
|
10847
11146
|
const last = get_last_result_in_viewport_();
|
|
10848
11147
|
// Check if we are past the last result, in that case we want it to count as 100% for a better infinite scroll experience
|
|
10849
|
-
past_last_result_check: {
|
|
10850
|
-
const elements_of_last_result = index_to_target_map_.get(index_to_target_map_.size - 1);
|
|
10851
|
-
if (elements_of_last_result) {
|
|
10852
|
-
if ($9HbP8$untrack(is_loading_)) {
|
|
10853
|
-
// We're loading, wait check again after we have inserted our new results
|
|
10854
|
-
get_has_rendered_toggle();
|
|
10855
|
-
break past_last_result_check;
|
|
10856
|
-
}
|
|
10857
|
-
for (const element of elements_of_last_result) {
|
|
10858
|
-
if (document.documentElement.contains(element) && element.getBoundingClientRect().top <= 0)
|
|
10859
|
-
// dlog(element, "which is of last product card is in or above viewport, probably loading more");
|
|
10860
|
-
return 100;
|
|
10861
|
-
}
|
|
10862
|
-
}
|
|
10863
|
-
}
|
|
10864
|
-
if (isNaN(last)) return 0;
|
|
10865
|
-
if (Math.abs(last) === Infinity)
|
|
10866
|
-
// No product card in view and not after last card, assume first card
|
|
10867
|
-
return 0;
|
|
10868
|
-
return last / displays_by_key_().size * 100;
|
|
10869
|
-
}, undefined, {
|
|
10870
|
-
equals: false
|
|
10871
|
-
});
|
|
10872
|
-
}
|
|
10873
|
-
function $0449e7d49398c077$export$a1fd619a4743ca08({
|
|
10874
|
-
plp_results_: plp_results_,
|
|
10875
|
-
product_card_template_: product_card_template_,
|
|
10876
|
-
first_result_in_viewport_: [, setFirstResultInViewport],
|
|
10877
|
-
last_result_in_viewport_: [lastResultInViewport, setLastResultsInViewport],
|
|
10878
|
-
all_products_loaded_: all_products_loaded_,
|
|
10879
|
-
min_products_to_fetch_: min_products_to_fetch_,
|
|
10880
|
-
query_base_: query_base_,
|
|
10881
|
-
depict_api_: depict_api_,
|
|
10882
|
-
is_loading_: is_loading_,
|
|
10883
|
-
content_blocks_: content_blocks_
|
|
10884
|
-
}) {
|
|
10885
|
-
// Although typing doesn't reflect it, plp_results is guaranteed to contain an array of at least one display at this point
|
|
10886
|
-
const [get_extra_displays, set_extra_displays_] = $9HbP8$createSignal([], {
|
|
10887
|
-
equals: false
|
|
10888
|
-
});
|
|
10889
|
-
const displays_by_key_ = $29ec7cddbe1d3484$export$7f8bd308237ab5a5($9HbP8$createMemo(() => [...(plp_results_()?.displays || []), ...get_extra_displays()]));
|
|
10890
|
-
const {
|
|
10891
|
-
indexToTargetMap_: indexToTargetMap_,
|
|
10892
|
-
renderedDisplays_: renderedDisplays_,
|
|
10893
|
-
currentlyIntersecting: currentlyIntersecting
|
|
10894
|
-
} = $f091294da861020c$export$4a14175d33d81a96({
|
|
10895
|
-
displays_by_key_: displays_by_key_,
|
|
10896
|
-
product_card_template_: product_card_template_,
|
|
10897
|
-
content_blocks_: content_blocks_,
|
|
10898
|
-
alwaysObserveCards_: true
|
|
10899
|
-
});
|
|
10900
|
-
const percentage_in_view_ = $0e0b96a8dc1ad492$export$63dd0350f8559dda({
|
|
10901
|
-
get_last_result_in_viewport_: lastResultInViewport,
|
|
10902
|
-
displays_by_key_: displays_by_key_,
|
|
10903
|
-
index_to_target_map_: indexToTargetMap_,
|
|
10904
|
-
is_loading_: is_loading_,
|
|
10905
|
-
get_extra_displays: get_extra_displays
|
|
10906
|
-
});
|
|
10907
|
-
$056f6ac0a6caa919$export$5e4aed86c12acdd9({
|
|
10908
|
-
percentage_in_view_: percentage_in_view_,
|
|
10909
|
-
set_extra_displays_: set_extra_displays_,
|
|
10910
|
-
all_products_loaded_: all_products_loaded_,
|
|
10911
|
-
plp_results_: plp_results_,
|
|
10912
|
-
min_products_to_fetch_: min_products_to_fetch_,
|
|
10913
|
-
query_base_: query_base_,
|
|
10914
|
-
depict_api_: depict_api_
|
|
10915
|
-
});
|
|
10916
|
-
$9HbP8$createEffect(() => {
|
|
10917
|
-
const intersecting = currentlyIntersecting();
|
|
10918
|
-
setFirstResultInViewport(Math.min(...intersecting) + 1); // +1 because we want to start counting at 1
|
|
10919
|
-
setLastResultsInViewport(Math.max(...intersecting) + 1);
|
|
10920
|
-
});
|
|
10921
|
-
return renderedDisplays_;
|
|
10922
|
-
}
|
|
10923
|
-
var $6dee9211e57ac31a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
|
|
10924
|
-
$6dee9211e57ac31a$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<style type=text/css>`);
|
|
10925
|
-
const $6dee9211e57ac31a$export$c500183c31c2b22e = "--spans-columns";
|
|
10926
|
-
function $6dee9211e57ac31a$export$ab6b147eec64fea5(props) {
|
|
10927
|
-
const container_class = "x" + $9HbP8$createUniqueId();
|
|
10928
|
-
const container_element_ = (() => {
|
|
10929
|
-
var _el$ = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$);
|
|
10930
|
-
$9HbP8$spread(_el$, $9HbP8$mergeProps(() => props.element_attributes, {
|
|
10931
|
-
"classList": {
|
|
10932
|
-
[container_class]: true
|
|
10933
|
-
}
|
|
10934
|
-
}), false, true);
|
|
10935
|
-
$9HbP8$insert(_el$, () => props.children);
|
|
10936
|
-
$9HbP8$runHydrationEvents();
|
|
10937
|
-
return _el$;
|
|
10938
|
-
})(); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
10939
|
-
return $9HbP8$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
10940
|
-
message_: "Failed calculating css grid layout",
|
|
10941
|
-
severity_: "error",
|
|
10942
|
-
get children() {
|
|
10943
|
-
return $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element_, false, container_class);
|
|
10944
|
-
}
|
|
10945
|
-
});
|
|
10946
|
-
}
|
|
10947
|
-
function $6dee9211e57ac31a$export$e2f22da34aaf310a(props, container_element, insert_after_container = false, container_class) {
|
|
10948
|
-
if (!container_class) {
|
|
10949
|
-
// only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
|
|
10950
|
-
container_class = $9HbP8$make_random_classname();
|
|
10951
|
-
container_element.classList.add(container_class);
|
|
10952
|
-
}
|
|
10953
|
-
const container_selector = `.depict .${container_class}`; // class so ppl can have id if needed
|
|
10954
|
-
const col_styling = $9HbP8$createMemo(() => $6dee9211e57ac31a$var$generate_media_queried_declarations({
|
|
10955
|
-
container_selector_: container_selector,
|
|
10956
|
-
default_grid_spacing_text: props.grid_spacing,
|
|
10957
|
-
cols_at_size_: props.cols_at_size,
|
|
10958
|
-
override_vertical_spacing_: props.override_vertical_spacing,
|
|
10959
|
-
top_row_shortened_by_: props.top_row_shortened_by_()
|
|
10960
|
-
}));
|
|
10961
|
-
const base_styling = $9HbP8$createMemo(() => {
|
|
10962
|
-
return `${container_selector}{display:grid;}`;
|
|
10963
|
-
});
|
|
10964
|
-
const get_styling = $9HbP8$createMemo(() => base_styling() + col_styling());
|
|
10965
|
-
const style_element = (() => {
|
|
10966
|
-
var _el$2 = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$2);
|
|
10967
|
-
$9HbP8$insert(_el$2, get_styling);
|
|
10968
|
-
return _el$2;
|
|
10969
|
-
})(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
10970
|
-
if (insert_after_container) container_element.after(style_element);
|
|
10971
|
-
return [container_element, style_element];
|
|
10972
|
-
}
|
|
10973
|
-
function $6dee9211e57ac31a$var$generate_media_queried_declarations({
|
|
10974
|
-
container_selector_: container_selector_,
|
|
10975
|
-
default_grid_spacing_text: default_grid_spacing_text,
|
|
10976
|
-
cols_at_size_: cols_at_size_,
|
|
10977
|
-
override_vertical_spacing_: override_vertical_spacing_,
|
|
10978
|
-
top_row_shortened_by_: top_row_shortened_by_
|
|
10979
|
-
}) {
|
|
10980
|
-
return cols_at_size_.map(options => {
|
|
10981
|
-
const [n_cols, min, max, grid_spacing_for_size] = options;
|
|
10982
|
-
const main_spacing_to_use = grid_spacing_for_size || default_grid_spacing_text;
|
|
10983
|
-
// See comment in else block below
|
|
10984
|
-
const can_use_gap = override_vertical_spacing_ ? $6dee9211e57ac31a$var$can_use_gap_for_unit(override_vertical_spacing_) : $6dee9211e57ac31a$var$can_use_gap_for_unit(main_spacing_to_use);
|
|
10985
|
-
let spacing_styling;
|
|
10986
|
-
let additional_styling = ""; // outside the media query
|
|
10987
|
-
if (can_use_gap) spacing_styling = `gap:${main_spacing_to_use};${override_vertical_spacing_ ? `row-gap:${override_vertical_spacing_};` : ``}`;else {
|
|
10988
|
-
// When using percent units, which our default styling does (because convenient) and our interface relies on (hard to specify different gaps for different screen sizes)
|
|
10989
|
-
// row gaps in grids are relative to the whole height of the grid, maybe see also https://stackoverflow.com/a/53563865. The issue with that is that as we load more products, the gap grows. Also, it breaks existing integrations.
|
|
10990
|
-
// Logical thought: use margins for the vertical spacing. But margins in grids are apparently relative to the size of the individual items in grids.
|
|
10991
|
-
// Given that, and that content blocks can be of different width, we have to do some complicated calculations to convert the provided gap, which is in gap of the total container width, to a margin of the individual items.
|
|
10992
|
-
const vertical_spacing_to_use = override_vertical_spacing_ ?? main_spacing_to_use;
|
|
10993
|
-
const width_multiplier = `var(${$6dee9211e57ac31a$export$c500183c31c2b22e}, 1)`; // How many cards wide the current item is (needed because content blocks)
|
|
10994
|
-
const one_item_width_exclusing_gaps = `calc(calc(100 / ${n_cols}) - calc(calc(${n_cols * 2 - 2} * calc(${$6dee9211e57ac31a$var$strip_percent_unit(vertical_spacing_to_use)} / 2)) / ${n_cols}))`; // Width of one item in percent of the whole
|
|
10995
|
-
// Equation from layout.tsx, also used in CheckboxGrid. Needs half spacing for some reason
|
|
10996
|
-
const this_item_width_meat = `calc(${one_item_width_exclusing_gaps} * ${width_multiplier})`; // Width of just the card
|
|
10997
|
-
const this_item_width_gaps = `calc(calc(${width_multiplier} - 1) * ${$6dee9211e57ac31a$var$strip_percent_unit(vertical_spacing_to_use)})`; // Width of the gaps
|
|
10998
|
-
const this_item_width = `calc(${this_item_width_meat} + ${this_item_width_gaps})`; // Width of this item including gaps
|
|
10999
|
-
// this_item_width needs to be unitless, and since plain css can't do calc(40% / 5%) which would become unitless we need to strip all units in the calculations before
|
|
11000
|
-
const convert_top_spacing_to_item_width_percentage = spacing => `calc(calc(100 / ${this_item_width}) * ${spacing})`; // Now finally we can convert the desired spacing to a percentage of this individual item's width (including gaps that would be there but aren't because content blocks span them)
|
|
11001
|
-
spacing_styling = `column-gap:${main_spacing_to_use};`; // Still use gaps in the horizontal direction because that works flawlessly
|
|
11002
|
-
// Re-use old layout code to get the correct :nth-child declarations for the top margins
|
|
11003
|
-
additional_styling = $9HbP8$n_col_styling_with_dist(container_selector_ + ">", convert_top_spacing_to_item_width_percentage(default_grid_spacing_text), [[n_cols, min, max, grid_spacing_for_size ? convert_top_spacing_to_item_width_percentage(grid_spacing_for_size) : null]], "grid", override_vertical_spacing_ ? convert_top_spacing_to_item_width_percentage(override_vertical_spacing_) : override_vertical_spacing_, top_row_shortened_by_);
|
|
11148
|
+
past_last_result_check: {
|
|
11149
|
+
const elements_of_last_result = index_to_target_map_.get(index_to_target_map_.size - 1);
|
|
11150
|
+
if (elements_of_last_result) {
|
|
11151
|
+
if ($9HbP8$untrack(is_loading_)) {
|
|
11152
|
+
// We're loading, wait check again after we have inserted our new results
|
|
11153
|
+
get_has_rendered_toggle();
|
|
11154
|
+
break past_last_result_check;
|
|
11155
|
+
}
|
|
11156
|
+
for (const element of elements_of_last_result) {
|
|
11157
|
+
if (document.documentElement.contains(element) && element.getBoundingClientRect().top <= 0)
|
|
11158
|
+
// dlog(element, "which is of last product card is in or above viewport, probably loading more");
|
|
11159
|
+
return 100;
|
|
11160
|
+
}
|
|
11161
|
+
}
|
|
11004
11162
|
}
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11163
|
+
if (isNaN(last)) return 0;
|
|
11164
|
+
if (Math.abs(last) === Infinity)
|
|
11165
|
+
// No product card in view and not after last card, assume first card
|
|
11166
|
+
return 0;
|
|
11167
|
+
return last / displays_by_key_().size * 100;
|
|
11168
|
+
}, undefined, {
|
|
11169
|
+
equals: false
|
|
11170
|
+
});
|
|
11012
11171
|
}
|
|
11013
|
-
function $
|
|
11014
|
-
|
|
11172
|
+
function $0449e7d49398c077$export$a1fd619a4743ca08({
|
|
11173
|
+
plp_results_: plp_results_,
|
|
11174
|
+
product_card_template_: product_card_template_,
|
|
11175
|
+
first_result_in_viewport_: [, setFirstResultInViewport],
|
|
11176
|
+
last_result_in_viewport_: [lastResultInViewport, setLastResultsInViewport],
|
|
11177
|
+
all_products_loaded_: all_products_loaded_,
|
|
11178
|
+
min_products_to_fetch_: min_products_to_fetch_,
|
|
11179
|
+
query_base_: query_base_,
|
|
11180
|
+
depict_api_: depict_api_,
|
|
11181
|
+
is_loading_: is_loading_,
|
|
11182
|
+
content_blocks_: content_blocks_
|
|
11183
|
+
}) {
|
|
11184
|
+
// Although typing doesn't reflect it, plp_results is guaranteed to contain an array of at least one display at this point
|
|
11185
|
+
const [get_extra_displays, set_extra_displays_] = $9HbP8$createSignal([], {
|
|
11186
|
+
equals: false
|
|
11187
|
+
});
|
|
11188
|
+
const displays_by_key_ = $29ec7cddbe1d3484$export$7f8bd308237ab5a5($9HbP8$createMemo(() => [...(plp_results_()?.displays || []), ...get_extra_displays()]));
|
|
11189
|
+
const {
|
|
11190
|
+
indexToTargetMap_: indexToTargetMap_,
|
|
11191
|
+
renderedDisplays_: renderedDisplays_,
|
|
11192
|
+
currentlyIntersecting: currentlyIntersecting
|
|
11193
|
+
} = $f091294da861020c$export$4a14175d33d81a96({
|
|
11194
|
+
displays_by_key_: displays_by_key_,
|
|
11195
|
+
product_card_template_: product_card_template_,
|
|
11196
|
+
content_blocks_: content_blocks_,
|
|
11197
|
+
alwaysObserveCards_: true
|
|
11198
|
+
});
|
|
11199
|
+
const percentage_in_view_ = $0e0b96a8dc1ad492$export$63dd0350f8559dda({
|
|
11200
|
+
get_last_result_in_viewport_: lastResultInViewport,
|
|
11201
|
+
displays_by_key_: displays_by_key_,
|
|
11202
|
+
index_to_target_map_: indexToTargetMap_,
|
|
11203
|
+
is_loading_: is_loading_,
|
|
11204
|
+
get_extra_displays: get_extra_displays
|
|
11205
|
+
});
|
|
11206
|
+
$056f6ac0a6caa919$export$5e4aed86c12acdd9({
|
|
11207
|
+
percentage_in_view_: percentage_in_view_,
|
|
11208
|
+
set_extra_displays_: set_extra_displays_,
|
|
11209
|
+
all_products_loaded_: all_products_loaded_,
|
|
11210
|
+
plp_results_: plp_results_,
|
|
11211
|
+
min_products_to_fetch_: min_products_to_fetch_,
|
|
11212
|
+
query_base_: query_base_,
|
|
11213
|
+
depict_api_: depict_api_
|
|
11214
|
+
});
|
|
11215
|
+
$9HbP8$createEffect(() => {
|
|
11216
|
+
const intersecting = currentlyIntersecting();
|
|
11217
|
+
setFirstResultInViewport(Math.min(...intersecting) + 1); // +1 because we want to start counting at 1
|
|
11218
|
+
setLastResultsInViewport(Math.max(...intersecting) + 1);
|
|
11219
|
+
});
|
|
11220
|
+
return renderedDisplays_;
|
|
11015
11221
|
}
|
|
11016
11222
|
function $15aa76e6da02e5c2$export$cb5808ba002cdeed({
|
|
11017
11223
|
layout_options_: layout_options_,
|
|
@@ -11035,213 +11241,6 @@ function $15aa76e6da02e5c2$export$cb5808ba002cdeed({
|
|
|
11035
11241
|
}) : when_filters_closed_cols;
|
|
11036
11242
|
});
|
|
11037
11243
|
}
|
|
11038
|
-
function $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_) {
|
|
11039
|
-
const size_active = $9HbP8$createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
|
|
11040
|
-
const media_query = $9HbP8$layout_media_query_header(min_width, max_width).replaceAll("@media", "");
|
|
11041
|
-
const matches = $dc9262ef6f786812$export$d9f36cf74e24d595(media_query);
|
|
11042
|
-
return [matches, n_cols];
|
|
11043
|
-
}));
|
|
11044
|
-
const n_cols_currently_showing = $9HbP8$createMemo(() => {
|
|
11045
|
-
try {
|
|
11046
|
-
const [, n_cols_currently_showing] = size_active().find(([media_query]) => media_query());
|
|
11047
|
-
return n_cols_currently_showing;
|
|
11048
|
-
} catch (e) {
|
|
11049
|
-
$9HbP8$dwarn("No active size found in columnsAtSize - can't render content blocks or looks");
|
|
11050
|
-
return null;
|
|
11051
|
-
}
|
|
11052
|
-
});
|
|
11053
|
-
return n_cols_currently_showing;
|
|
11054
|
-
}
|
|
11055
|
-
var $e7a7eb102ddc0c79$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=content-block-wrapper>`);
|
|
11056
|
-
function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
|
|
11057
|
-
content_blocks_: incoming_content_blocks,
|
|
11058
|
-
cols_at_size_: cols_at_size_,
|
|
11059
|
-
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
11060
|
-
}) {
|
|
11061
|
-
// these are by row
|
|
11062
|
-
const [content_blocks, set_content_blocks] = $9HbP8$createStore([]);
|
|
11063
|
-
const n_cols_currently_showing_ = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
|
|
11064
|
-
$9HbP8$createEffect(() => {
|
|
11065
|
-
const incoming_value = incoming_content_blocks();
|
|
11066
|
-
if (!incoming_value) {
|
|
11067
|
-
set_content_blocks([]);
|
|
11068
|
-
return;
|
|
11069
|
-
}
|
|
11070
|
-
set_content_blocks($9HbP8$reconcile(incoming_value, {
|
|
11071
|
-
key: "content"
|
|
11072
|
-
})); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
|
|
11073
|
-
});
|
|
11074
|
-
|
|
11075
|
-
const get_wrapped_blocks_ = $e7a7eb102ddc0c79$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
|
|
11076
|
-
$9HbP8$createComputed(() => {
|
|
11077
|
-
// Update our styling if a content block forces some items that should be in the top row into a lower one, so we can generate margin-top declarations for them
|
|
11078
|
-
const top_row_block = get_wrapped_blocks_()[0];
|
|
11079
|
-
const blocks_in_top_row_taken = top_row_block?.span_columns;
|
|
11080
|
-
if (blocks_in_top_row_taken == undefined) {
|
|
11081
|
-
// Fall back to zero if no content block in top row, since then no blocks in top row are taken
|
|
11082
|
-
set_top_row_shortened_by_(0);
|
|
11083
|
-
return;
|
|
11084
|
-
}
|
|
11085
|
-
set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
|
|
11086
|
-
});
|
|
11087
|
-
|
|
11088
|
-
return $e7a7eb102ddc0c79$var$remap_blocks_to_index({
|
|
11089
|
-
get_wrapped_blocks_: get_wrapped_blocks_,
|
|
11090
|
-
n_cols_currently_showing_: n_cols_currently_showing_
|
|
11091
|
-
});
|
|
11092
|
-
}
|
|
11093
|
-
/**
|
|
11094
|
-
* Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
|
|
11095
|
-
* @returns an array where index is index of the blocks in the "displays array" and value is the content block (elements) to show at that index
|
|
11096
|
-
*/
|
|
11097
|
-
function $e7a7eb102ddc0c79$var$remap_blocks_to_index({
|
|
11098
|
-
get_wrapped_blocks_: get_wrapped_blocks_,
|
|
11099
|
-
n_cols_currently_showing_: n_cols_currently_showing_
|
|
11100
|
-
}) {
|
|
11101
|
-
return $9HbP8$createMemo(() => {
|
|
11102
|
-
// This computation should be quite cheap since it just moves around things into an array
|
|
11103
|
-
const content_blocks_by_index = [];
|
|
11104
|
-
const constructed_block_arrays = new WeakSet();
|
|
11105
|
-
const wrapped_blocks = get_wrapped_blocks_();
|
|
11106
|
-
const cols_showing = n_cols_currently_showing_();
|
|
11107
|
-
// Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
|
|
11108
|
-
const displaced_products = []; // undefined = is product, true = is content block if number instead of tuple number indicates content blocks in that row. Index in first array is row, index in second array is column
|
|
11109
|
-
if (!cols_showing)
|
|
11110
|
-
// Nope out of here if we don't know how many columns are showing
|
|
11111
|
-
return content_blocks_by_index;
|
|
11112
|
-
for (let i = 0; i < wrapped_blocks.length; i++) {
|
|
11113
|
-
// i = row to show at
|
|
11114
|
-
const block = wrapped_blocks[i];
|
|
11115
|
-
if (!block) continue; // Array can have holes/not defined places
|
|
11116
|
-
const index_of_first_item_in_row = i * cols_showing;
|
|
11117
|
-
const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
|
|
11118
|
-
const {
|
|
11119
|
-
span_rows: span_rows,
|
|
11120
|
-
position: position,
|
|
11121
|
-
span_columns: span_columns
|
|
11122
|
-
} = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
|
|
11123
|
-
let target_index;
|
|
11124
|
-
if (position === "left") target_index = index_of_first_item_in_row;else if (position === "right") target_index = index_of_last_item_in_row - span_columns;else if (position === "center") target_index = index_of_first_item_in_row + Math.floor((cols_showing - span_columns) / 2);else throw new Error("Invalid position for content block - must be left, right or center: " + JSON.stringify(position));
|
|
11125
|
-
// Calculate displacement of us by content blocks above us
|
|
11126
|
-
let displacement_by_added_blocks = 0;
|
|
11127
|
-
for (let j = 0; j < i; j++) {
|
|
11128
|
-
const row = displaced_products[j];
|
|
11129
|
-
if (row === undefined) continue; // there were no blocks in this row
|
|
11130
|
-
let displaced_items_in_row;
|
|
11131
|
-
if (typeof row === "number") displaced_items_in_row = row;else {
|
|
11132
|
-
displaced_items_in_row = row.filter(item => item).length;
|
|
11133
|
-
displaced_products[j] = displaced_items_in_row;
|
|
11134
|
-
}
|
|
11135
|
-
displacement_by_added_blocks += displaced_items_in_row;
|
|
11136
|
-
}
|
|
11137
|
-
const index_of_us_in_row = target_index - index_of_first_item_in_row;
|
|
11138
|
-
for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products[i]?.[j])
|
|
11139
|
-
// Add blocks in our *current* row to the displacement, but only the ones to our left
|
|
11140
|
-
displacement_by_added_blocks++;
|
|
11141
|
-
// Add block to output array at the correct index
|
|
11142
|
-
const final_target_index = target_index - displacement_by_added_blocks;
|
|
11143
|
-
const existing_block = content_blocks_by_index[final_target_index];
|
|
11144
|
-
const block_content = block.content;
|
|
11145
|
-
// If two blocks want to exist at the same location (can happen, for example if one block wants to be at the end of a row and the other one at the start of the next row) add an array with both
|
|
11146
|
-
if (existing_block) {
|
|
11147
|
-
if (constructed_block_arrays.has(existing_block))
|
|
11148
|
-
// Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
|
|
11149
|
-
existing_block.push(block_content);else {
|
|
11150
|
-
const array = [existing_block, block_content];
|
|
11151
|
-
constructed_block_arrays.add(array);
|
|
11152
|
-
content_blocks_by_index[final_target_index] = array;
|
|
11153
|
-
}
|
|
11154
|
-
} else content_blocks_by_index[final_target_index] = block_content;
|
|
11155
|
-
// Update displacement
|
|
11156
|
-
for (let j = 0; j < span_rows; j++) {
|
|
11157
|
-
const row = displaced_products[i + j] ||= [];
|
|
11158
|
-
for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
|
|
11159
|
-
}
|
|
11160
|
-
}
|
|
11161
|
-
return content_blocks_by_index;
|
|
11162
|
-
});
|
|
11163
|
-
}
|
|
11164
|
-
/**
|
|
11165
|
-
* Takes a store that contains an array from where index is number of row and value is the result of executing the content block rendering function.
|
|
11166
|
-
* Then renders the content and wraps it into a div with the correct styling.
|
|
11167
|
-
* Also caps span_columns to max available columns
|
|
11168
|
-
*/
|
|
11169
|
-
function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
|
|
11170
|
-
const get_wrapped_blocks = $9HbP8$mapArray(() => rendered_content_blocks, block => {
|
|
11171
|
-
if (!block) return;
|
|
11172
|
-
const final_span_columns = $9HbP8$createMemo(() => Math.min(block.span_columns, max_span_columns() ?? Infinity));
|
|
11173
|
-
// If the item spans an entire row, limit the height to 1 row since there's no concept of "rows" if there are no products beside the block
|
|
11174
|
-
const final_span_rows = $9HbP8$createMemo(() => final_span_columns() === max_span_columns() ? 1 : block.span_rows);
|
|
11175
|
-
const [rendering_delayed, set_rendering_delayed_] = $9HbP8$createSignal(true);
|
|
11176
|
-
const content = $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
11177
|
-
get when() {
|
|
11178
|
-
return !rendering_delayed();
|
|
11179
|
-
},
|
|
11180
|
-
get children() {
|
|
11181
|
-
var _el$ = $9HbP8$getNextElement($e7a7eb102ddc0c79$var$_tmpl$);
|
|
11182
|
-
$9HbP8$insert(_el$, $9HbP8$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
|
|
11183
|
-
get content() {
|
|
11184
|
-
return block.content;
|
|
11185
|
-
}
|
|
11186
|
-
}));
|
|
11187
|
-
$9HbP8$effect(_p$ => {
|
|
11188
|
-
var _v$ = {
|
|
11189
|
-
[(0, $6dee9211e57ac31a$export$c500183c31c2b22e)]: final_span_columns()
|
|
11190
|
-
},
|
|
11191
|
-
_v$2 = `span ${final_span_columns()}`,
|
|
11192
|
-
_v$3 = `span ${final_span_rows()}`;
|
|
11193
|
-
_p$.e = $9HbP8$style(_el$, _v$, _p$.e);
|
|
11194
|
-
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
|
|
11195
|
-
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
|
|
11196
|
-
return _p$;
|
|
11197
|
-
}, {
|
|
11198
|
-
e: undefined,
|
|
11199
|
-
t: undefined,
|
|
11200
|
-
a: undefined
|
|
11201
|
-
});
|
|
11202
|
-
return _el$;
|
|
11203
|
-
}
|
|
11204
|
-
});
|
|
11205
|
-
return $9HbP8$mergeProps1(block, {
|
|
11206
|
-
// Create content divs for the blocks with as much fine-grained diffing as possible?
|
|
11207
|
-
content: () => {
|
|
11208
|
-
// Sneaky on-demand rendering, so we don't render more blocks than we can show: we have the rendered value here and don't return a function that renders because if our block would be moved around we'd be guaranteed to re-render
|
|
11209
|
-
// However, no need to count products to know if we should render: the <For> loops in Placeholders and render_displays will only call this function if there's actually a product here that wants to display this block
|
|
11210
|
-
set_rendering_delayed_(false);
|
|
11211
|
-
return content;
|
|
11212
|
-
},
|
|
11213
|
-
get span_columns() {
|
|
11214
|
-
// Cap max width of block to the number of columns available, for everyone downstream
|
|
11215
|
-
return final_span_columns();
|
|
11216
|
-
},
|
|
11217
|
-
get span_rows() {
|
|
11218
|
-
return final_span_rows();
|
|
11219
|
-
}
|
|
11220
|
-
});
|
|
11221
|
-
});
|
|
11222
|
-
return get_wrapped_blocks;
|
|
11223
|
-
}
|
|
11224
|
-
/**
|
|
11225
|
-
* Basically adds support for async content block functions and shows a rudimentary placeholder if rendering is delayed. Required due to react having a rendering delay.
|
|
11226
|
-
*/
|
|
11227
|
-
function $e7a7eb102ddc0c79$var$RenderContent(props) {
|
|
11228
|
-
const [resource] = $9HbP8$createResource(() => props.content,
|
|
11229
|
-
// Could be reactive
|
|
11230
|
-
fn => fn());
|
|
11231
|
-
$9HbP8$createEffect(() => {
|
|
11232
|
-
if (resource.error) console.error("Error in content block rendering", resource.error);
|
|
11233
|
-
});
|
|
11234
|
-
// The suspense is for when there's an async content block (which we have to support due to react having a rendering delay) so that we can show some height while it's loading (should kinda never be visible)
|
|
11235
|
-
return $9HbP8$createComponent((0, $9HbP8$Suspense), {
|
|
11236
|
-
get fallback() {
|
|
11237
|
-
return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
11238
|
-
width: "100%",
|
|
11239
|
-
height: "max(100%, 400px)"
|
|
11240
|
-
});
|
|
11241
|
-
},
|
|
11242
|
-
children: resource
|
|
11243
|
-
});
|
|
11244
|
-
}
|
|
11245
11244
|
var $2d25e42846eac370$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=PLP-results><!$><!/><!$><!/>`);
|
|
11246
11245
|
function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
11247
11246
|
plp_results_: plp_results_,
|
|
@@ -11445,7 +11444,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
11445
11444
|
} = slider;
|
|
11446
11445
|
const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
|
|
11447
11446
|
// Do like this, so we don't have to call mergeProps ourselves
|
|
11448
|
-
$9HbP8$createComponent(Layout, $9HbP8$
|
|
11447
|
+
$9HbP8$createComponent(Layout, $9HbP8$mergeProps1(layout_options_, {
|
|
11449
11448
|
rows: "all",
|
|
11450
11449
|
get cols_at_size() {
|
|
11451
11450
|
return modified_cols_at_size();
|
|
@@ -11950,7 +11949,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({
|
|
|
11950
11949
|
get children() {
|
|
11951
11950
|
return (() => {
|
|
11952
11951
|
var _el$34 = $9HbP8$getNextElement($757dac7f7c6c5241$var$_tmpl$5);
|
|
11953
|
-
$9HbP8$insert(_el$34, $9HbP8$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $9HbP8$
|
|
11952
|
+
$9HbP8$insert(_el$34, $9HbP8$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $9HbP8$mergeProps1(args_for_filtering_, {
|
|
11954
11953
|
are_in_modal_: true
|
|
11955
11954
|
})));
|
|
11956
11955
|
return _el$34;
|
|
@@ -12716,7 +12715,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
|
|
|
12716
12715
|
[_el$8, _co$] = $9HbP8$getNextMarker(_el$7.nextSibling),
|
|
12717
12716
|
_el$9 = _el$8.nextSibling,
|
|
12718
12717
|
[_el$10, _co$2] = $9HbP8$getNextMarker(_el$9.nextSibling);
|
|
12719
|
-
$9HbP8$insert(_el$4, $9HbP8$createComponent(LinkIfPossible, $9HbP8$
|
|
12718
|
+
$9HbP8$insert(_el$4, $9HbP8$createComponent(LinkIfPossible, $9HbP8$mergeProps1(make_link_attributes, {
|
|
12720
12719
|
tabIndex: "-1",
|
|
12721
12720
|
get children() {
|
|
12722
12721
|
return $9HbP8$createComponent((0, $190927650b4840eb$export$605674723bcc715c), {
|
|
@@ -12725,7 +12724,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
|
|
|
12725
12724
|
});
|
|
12726
12725
|
}
|
|
12727
12726
|
})));
|
|
12728
|
-
$9HbP8$insert(_el$5, $9HbP8$createComponent(LinkIfPossible, $9HbP8$
|
|
12727
|
+
$9HbP8$insert(_el$5, $9HbP8$createComponent(LinkIfPossible, $9HbP8$mergeProps1({
|
|
12729
12728
|
"class": "content-title line-clamp"
|
|
12730
12729
|
}, make_link_attributes, {
|
|
12731
12730
|
get title() {
|
|
@@ -12878,7 +12877,7 @@ function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
|
|
|
12878
12877
|
},
|
|
12879
12878
|
number_of_results_: num_results
|
|
12880
12879
|
}), _el$3, _co$);
|
|
12881
|
-
$9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$
|
|
12880
|
+
$9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps1({
|
|
12882
12881
|
layout: "grid",
|
|
12883
12882
|
element_attributes: {
|
|
12884
12883
|
class: "cards"
|
|
@@ -13272,7 +13271,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13272
13271
|
});
|
|
13273
13272
|
const [sort_and_filter_element_, set_sort_and_filter_element_] = $9HbP8$createSignal();
|
|
13274
13273
|
const no_results_text_ = $9HbP8$createMemo(() => (search_results_()?.content_search_links?.length ? i18n_.no_products_ : i18n_.no_results_text_)());
|
|
13275
|
-
const results_for = $9HbP8$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $9HbP8$
|
|
13274
|
+
const results_for = $9HbP8$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $9HbP8$mergeProps1({
|
|
13276
13275
|
get type() {
|
|
13277
13276
|
return (0, $f8c929beb82c512b$export$2452208c79fe93ea).products;
|
|
13278
13277
|
},
|
|
@@ -14790,6 +14789,70 @@ function $cc6f5b69378cd164$export$7af06a63c5a976c9(el, listing_id, i18n_) {
|
|
|
14790
14789
|
$9HbP8$onCleanup(disconnect);
|
|
14791
14790
|
}
|
|
14792
14791
|
$9HbP8$delegateEvents(["click"]);
|
|
14792
|
+
var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a><img>`),
|
|
14793
|
+
$f916989c4b1be9f7$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<a><video loop>`);
|
|
14794
|
+
function $f916989c4b1be9f7$export$780a853d15174484({
|
|
14795
|
+
contentBlock: contentBlock,
|
|
14796
|
+
router_: router_
|
|
14797
|
+
}) {
|
|
14798
|
+
if (contentBlock.content.type === "image") return () => (() => {
|
|
14799
|
+
var _el$ = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$),
|
|
14800
|
+
_el$2 = _el$.firstChild;
|
|
14801
|
+
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(ev => router_.navigate_.go_to_({
|
|
14802
|
+
new_url_: contentBlock.content.link,
|
|
14803
|
+
is_replace_: false,
|
|
14804
|
+
event_: ev
|
|
14805
|
+
})), true);
|
|
14806
|
+
_el$2.style.setProperty("width", "100%");
|
|
14807
|
+
_el$2.style.setProperty("height", "100%");
|
|
14808
|
+
_el$2.style.setProperty("object-fit", "cover");
|
|
14809
|
+
_el$2.style.setProperty("position", "absolute");
|
|
14810
|
+
_el$2.style.setProperty("inset", "0");
|
|
14811
|
+
$9HbP8$effect(_p$ => {
|
|
14812
|
+
var _v$ = contentBlock.content.link,
|
|
14813
|
+
_v$2 = contentBlock.content.url;
|
|
14814
|
+
_v$ !== _p$.e && $9HbP8$setAttribute(_el$, "href", _p$.e = _v$);
|
|
14815
|
+
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$2, "src", _p$.t = _v$2);
|
|
14816
|
+
return _p$;
|
|
14817
|
+
}, {
|
|
14818
|
+
e: undefined,
|
|
14819
|
+
t: undefined
|
|
14820
|
+
});
|
|
14821
|
+
$9HbP8$runHydrationEvents();
|
|
14822
|
+
return _el$;
|
|
14823
|
+
})();
|
|
14824
|
+
if (contentBlock.content.type === "video") return () => (() => {
|
|
14825
|
+
var _el$3 = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$2),
|
|
14826
|
+
_el$4 = _el$3.firstChild;
|
|
14827
|
+
$9HbP8$addEventListener(_el$3, "click", $9HbP8$catchify(ev => router_.navigate_.go_to_({
|
|
14828
|
+
new_url_: contentBlock.content.link,
|
|
14829
|
+
is_replace_: false,
|
|
14830
|
+
event_: ev
|
|
14831
|
+
})), true);
|
|
14832
|
+
$9HbP8$setProperty(_el$4, "controls", false);
|
|
14833
|
+
$9HbP8$setProperty(_el$4, "muted", true);
|
|
14834
|
+
$9HbP8$setProperty(_el$4, "autoplay", true);
|
|
14835
|
+
$9HbP8$setProperty(_el$4, "playsinline", true);
|
|
14836
|
+
_el$4.style.setProperty("width", "100%");
|
|
14837
|
+
_el$4.style.setProperty("height", "100%");
|
|
14838
|
+
_el$4.style.setProperty("object-fit", "cover");
|
|
14839
|
+
_el$4.style.setProperty("position", "absolute");
|
|
14840
|
+
_el$4.style.setProperty("inset", "0");
|
|
14841
|
+
$9HbP8$effect(_p$ => {
|
|
14842
|
+
var _v$3 = contentBlock.content.link,
|
|
14843
|
+
_v$4 = contentBlock.content.url;
|
|
14844
|
+
_v$3 !== _p$.e && $9HbP8$setAttribute(_el$3, "href", _p$.e = _v$3);
|
|
14845
|
+
_v$4 !== _p$.t && $9HbP8$setAttribute(_el$4, "src", _p$.t = _v$4);
|
|
14846
|
+
return _p$;
|
|
14847
|
+
}, {
|
|
14848
|
+
e: undefined,
|
|
14849
|
+
t: undefined
|
|
14850
|
+
});
|
|
14851
|
+
$9HbP8$runHydrationEvents();
|
|
14852
|
+
return _el$3;
|
|
14853
|
+
})();
|
|
14854
|
+
}
|
|
14855
|
+
$9HbP8$delegateEvents(["click"]);
|
|
14793
14856
|
var $df5d81d0fe61ff21$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=product-count><!$><!/> <!$><!/>`),
|
|
14794
14857
|
$df5d81d0fe61ff21$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>`),
|
|
14795
14858
|
$df5d81d0fe61ff21$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
@@ -14885,6 +14948,23 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14885
14948
|
}));
|
|
14886
14949
|
// Make "Get Listing" request to get quicklinks, breadcrumbs, title, etc
|
|
14887
14950
|
const [plp_meta] = $9HbP8$createResource(meta_query_base, $9HbP8$catchify(query => depict_api_.get_listing(query)));
|
|
14951
|
+
const contentBlocksByRow = $9HbP8$createMemo(() => {
|
|
14952
|
+
if (content_blocks_by_row_()) return content_blocks_by_row_();
|
|
14953
|
+
const content = [];
|
|
14954
|
+
plp_meta()?.content_blocks?.forEach(row => {
|
|
14955
|
+
const contentBlock = {
|
|
14956
|
+
span_columns: row.span_columns,
|
|
14957
|
+
span_rows: row.span_rows,
|
|
14958
|
+
position: row.position,
|
|
14959
|
+
content: $f916989c4b1be9f7$export$780a853d15174484({
|
|
14960
|
+
contentBlock: row,
|
|
14961
|
+
router_: router_
|
|
14962
|
+
})
|
|
14963
|
+
};
|
|
14964
|
+
content[row.row] = contentBlock;
|
|
14965
|
+
});
|
|
14966
|
+
return content;
|
|
14967
|
+
});
|
|
14888
14968
|
const available_sortings_ = $9HbP8$createMemo(() => plp_products_()?.sorts?.map(sort => ({
|
|
14889
14969
|
...sort,
|
|
14890
14970
|
order: sort.order ?? "desc"
|
|
@@ -15145,7 +15225,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
15145
15225
|
product_card_template_: product_card_template_,
|
|
15146
15226
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
15147
15227
|
desktop_filter_elements_: desktop_filter_elements_,
|
|
15148
|
-
content_blocks_by_row_:
|
|
15228
|
+
content_blocks_by_row_: contentBlocksByRow,
|
|
15149
15229
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
15150
15230
|
id_currently_querying_for_: id_to_query_for_,
|
|
15151
15231
|
no_results_options_: {
|
|
@@ -15191,7 +15271,7 @@ function $df5d81d0fe61ff21$var$add_us_to_crumbs(plp_meta) {
|
|
|
15191
15271
|
return $9HbP8$createMemo(() => {
|
|
15192
15272
|
const api_value = plp_meta()?.breadcrumbs;
|
|
15193
15273
|
if (!api_value) return api_value;
|
|
15194
|
-
return [...api_value, $9HbP8$
|
|
15274
|
+
return [...api_value, $9HbP8$mergeProps(plp_meta(), {
|
|
15195
15275
|
get page_url() {
|
|
15196
15276
|
return href_accessor();
|
|
15197
15277
|
}
|
|
@@ -15297,4 +15377,4 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15297
15377
|
}, "Entire CategoryPage failed");
|
|
15298
15378
|
}
|
|
15299
15379
|
$9HbP8$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
|
|
15300
|
-
export { $4eb0a704f8f30273$export$d4d96868197be50e as useMobileHover, $5e3d278ef4c80cd7$export$54299a3c81f5425 as useVisibilityState, $f32e14878e75af51$export$eaa625fb39439e37 as useSlidableInformation, $f091294da861020c$export$80bb7300ce6a8be3 as useProductCardIsVisible, $f091294da861020c$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $24e27fab9c821b86$export$5bad61ecde080b1f as useExpandingContainerReactive, $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSliderOrGrid, $e9d1d09be9e6471e$export$44809a8a3e867e30 as LookCard, $4fd2ba03703a7d92$export$7e1297a3a19f10d8 as PseudoRouter, $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $70bb27cc6be01fc7$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $b7436a6d1fd64e3b$export$240ecf5363d76c0f as ExtraSentryContextProvider, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $c8d5ff4524619fcd$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField, $feffae76d8dc0135$export$5b7c3ce0ebe51f86 as BreadCrumbs, $feffae76d8dc0135$export$de035477d6fef996 as QuickLinks, $442f32a4d80abbde$export$e2bf8ce7779e827e as CategoryPage };
|
|
15380
|
+
export { $e7a7eb102ddc0c79$export$92aa5d691d588f3f as remap_blocks_to_index, $4eb0a704f8f30273$export$d4d96868197be50e as useMobileHover, $5e3d278ef4c80cd7$export$54299a3c81f5425 as useVisibilityState, $f32e14878e75af51$export$eaa625fb39439e37 as useSlidableInformation, $f091294da861020c$export$80bb7300ce6a8be3 as useProductCardIsVisible, $f091294da861020c$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $24e27fab9c821b86$export$5bad61ecde080b1f as useExpandingContainerReactive, $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSliderOrGrid, $e9d1d09be9e6471e$export$44809a8a3e867e30 as LookCard, $4fd2ba03703a7d92$export$7e1297a3a19f10d8 as PseudoRouter, $de6ccd37192b5fc2$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $90980bd87c9960f9$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $90980bd87c9960f9$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $a281666e5c15c2ec$export$29d28dadc2d6b631 as allowNativeNavigation, $66db7a014e20802e$export$1ea76ea778b880dd as modalVersionSymbol, $136f1d4d6c7ba6ac$export$e417c49320921907 as createDeparallelizedNoDropResource, $d8dbf52fea1773e2$export$f50b88e2a00918b5 as throw_globally, $42912431795f188e$export$9265e66f26f8e383 as ClassicSearchModal, $500a16dd18ee5a71$export$b0c55aa2e87c4be7 as SearchModalV2, $70bb27cc6be01fc7$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $024fbc0a2d796fad$export$3e41faf802a29e71 as Tab, $024fbc0a2d796fad$export$b2539bed5023c21c as Tabs, $8560c919ff763930$export$d4973c31938cbfd1 as ShopTheLookButton, $ca6f574bd8772184$export$e183a13865960371 as history_dot_state_to_state, $4147651646da990a$export$916e6850778505f6 as strip_encoded_filter_and_sort, $4147651646da990a$export$58aa3f171519b6d7 as encode_filters, $4147651646da990a$export$f934fa24c3a86811 as decode_filters, $4147651646da990a$export$62acb285a7579555 as encode_sorting, $4147651646da990a$export$766e9676e74997d3 as decode_sorting, $660070e2a394b3c3$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $011607bdf658f807$export$e68cff63f76bd15b as ListingProvider, $011607bdf658f807$export$8d0c4fdbb05a2f2e as useListing, $b6440e72ed83671a$export$11354f017ddc9790 as ProductCardIndexProvider, $b6440e72ed83671a$export$e3faf4d95300054f as useProductCardIndex, $660070e2a394b3c3$export$e4b984597b71e989 as ShopifyContainedImage, $f32e14878e75af51$export$6649caad96ef8870 as SlidableItems, $2449872a62a75a20$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $ee116da074deb002$export$9574e176201e5e8d as RecommendationSlider, $9ea5383493360761$export$9756467d34d91cdb as RecommendationGrid, $e8ffe11ed01df0fe$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $e8ffe11ed01df0fe$export$e6fffe67d4cdd848 as makeSizeAccessor, $f18d425032111270$export$94026ee33dbabc26 as ImageContainer, $b7436a6d1fd64e3b$export$b69d0d92862de18b as SentryErrorBoundary, $b7436a6d1fd64e3b$export$240ecf5363d76c0f as ExtraSentryContextProvider, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d as ExpandingDetails, $c16e74cfe125bb05$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $1adfe60f3a14a1d7$export$fecbb157621501bd as SelectedFilters, $fab07f52c9861732$export$3f1a388cc0d8fed7 as FilterBody, $5efb5894079b220e$export$b288c38ae3fddb56 as create_modified_filters, $c8d5ff4524619fcd$export$d21e32dfedac04be as SolidLayout, $c8d5ff4524619fcd$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $a0f0e923bad68a9b$export$58e808b1db15d3bc as fetchDepictRecommendations, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $4b2134398dfa83fa$export$c1a6b039e689a58e as get_listings, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b6d5529b253681aa$export$3f238c96c45e6cc6 as ALIGN_TOP, $b6d5529b253681aa$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $b6d5529b253681aa$export$7895aadd1956b1c7 as ALIGN_LEFT, $b6d5529b253681aa$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version, $58b3487626e85ece$export$316f6f283ae64765 as SearchField, $feffae76d8dc0135$export$5b7c3ce0ebe51f86 as BreadCrumbs, $feffae76d8dc0135$export$de035477d6fef996 as QuickLinks, $442f32a4d80abbde$export$e2bf8ce7779e827e as CategoryPage };
|