@depict-ai/ui 1.4.21 → 1.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +694 -494
- package/ES10/index.d.ts +131 -74
- package/ES10/index.js +696 -498
- package/latest/index.cjs +656 -469
- package/latest/index.d.ts +131 -74
- package/latest/index.js +658 -473
- package/package.json +4 -4
- package/server/ES10/index.cjs +615 -434
- package/server/ES10/index.d.ts +131 -74
- package/server/ES10/index.js +617 -438
- package/server/latest/index.cjs +588 -420
- package/server/latest/index.d.ts +131 -74
- package/server/latest/index.js +590 -424
package/server/ES10/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { add_to_version_info as $b8hua$add_to_version_info,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { add_to_version_info as $b8hua$add_to_version_info, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, catchify as $b8hua$catchify, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, is_safari as $b8hua$is_safari, observer as $b8hua$observer, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, use_href_accessor as $b8hua$use_href_accessor, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
2
|
+
import { ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, createComponent as $b8hua$createComponent, mergeProps as $b8hua$mergeProps, isServer as $b8hua$isServer, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, insert as $b8hua$insert, ssrAttribute as $b8hua$ssrAttribute, ssrStyle as $b8hua$ssrStyle, Dynamic as $b8hua$Dynamic } from "solid-js/web";
|
|
3
|
+
import { createMemo as $b8hua$createMemo, createResource as $b8hua$createResource, Suspense as $b8hua$Suspense, Show as $b8hua$Show, createSignal as $b8hua$createSignal, createRenderEffect as $b8hua$createRenderEffect, createRoot as $b8hua$createRoot, onCleanup as $b8hua$onCleanup, For as $b8hua$For, getOwner as $b8hua$getOwner, runWithOwner as $b8hua$runWithOwner, createEffect as $b8hua$createEffect, untrack as $b8hua$untrack, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, Index as $b8hua$Index, on as $b8hua$on, batch as $b8hua$batch, createReaction as $b8hua$createReaction } from "solid-js";
|
|
4
4
|
import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
5
5
|
import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
6
6
|
import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
@@ -8,7 +8,600 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
|
|
|
8
8
|
/*! Depict.ai search and product listing SDK */
|
|
9
9
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
10
10
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.
|
|
11
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.23";
|
|
12
|
+
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
13
|
+
const cols_at_size = [];
|
|
14
|
+
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
15
|
+
var _sorted_cols_at_size;
|
|
16
|
+
const [nb_cols, width] = sorted_cols_at_size[i];
|
|
17
|
+
const next_width = (_sorted_cols_at_size = sorted_cols_at_size[i + 1]) === null || _sorted_cols_at_size === void 0 ? void 0 : _sorted_cols_at_size[1];
|
|
18
|
+
const max_width = i === 0 ? "" : "".concat(width, "px");
|
|
19
|
+
const min_width = next_width !== undefined ? "".concat(next_width + 1, "px") : "";
|
|
20
|
+
const col_at_size = [nb_cols, min_width, max_width];
|
|
21
|
+
cols_at_size.push(col_at_size);
|
|
22
|
+
}
|
|
23
|
+
return cols_at_size;
|
|
24
|
+
};
|
|
25
|
+
const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
|
|
26
|
+
// Check that every element is an array
|
|
27
|
+
const are_arrays = cols_at_size.every(element => Array.isArray(element));
|
|
28
|
+
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
29
|
+
// Check width duplicates
|
|
30
|
+
const widths = cols_at_size.map(_ref => {
|
|
31
|
+
let [_, width] = _ref;
|
|
32
|
+
return width;
|
|
33
|
+
});
|
|
34
|
+
const widths_set = new Set(widths);
|
|
35
|
+
if (widths_set.size < widths.length) throw new Error("There are duplicate widths in cols_at_size");
|
|
36
|
+
if (cols_at_size.length === 1) {
|
|
37
|
+
const [nb_cols, width] = cols_at_size[0];
|
|
38
|
+
const max_width = width !== undefined ? "".concat(width, "px") : "";
|
|
39
|
+
return [[nb_cols, "", max_width]];
|
|
40
|
+
}
|
|
41
|
+
// Sort widths in ascending order
|
|
42
|
+
const sorted_cols_at_size = [...cols_at_size].sort((a, b) => {
|
|
43
|
+
const [_b, width_A] = a;
|
|
44
|
+
const [_a, width_b] = b;
|
|
45
|
+
if (width_A === undefined) return -1;
|
|
46
|
+
if (width_b === undefined) return 1;
|
|
47
|
+
return width_b - width_A;
|
|
48
|
+
});
|
|
49
|
+
return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Content results ContentCard look stupid on mobile if there are two columns of them, so we limit the number of columns to 1 if the screen is too small
|
|
54
|
+
*/
|
|
55
|
+
function $3f7203368ad0d3ca$export$ff7109b9b2b206ba(sdk_cols_at_size) {
|
|
56
|
+
let min_width_for_more_than_one_column = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
57
|
+
if (!sdk_cols_at_size.length) return sdk_cols_at_size;
|
|
58
|
+
const sorted_sizes = sdk_cols_at_size.map(_ref => {
|
|
59
|
+
let [cols, max_width] = _ref;
|
|
60
|
+
return [cols, max_width !== null && max_width !== void 0 ? max_width : Infinity];
|
|
61
|
+
}).sort((_ref2, _ref3) => {
|
|
62
|
+
let [, a] = _ref2;
|
|
63
|
+
let [, b] = _ref3;
|
|
64
|
+
return a - b;
|
|
65
|
+
});
|
|
66
|
+
const [[, smallest_max_width]] = sorted_sizes;
|
|
67
|
+
if (smallest_max_width > min_width_for_more_than_one_column)
|
|
68
|
+
// If everything above min_width_for_more_than_one_column, we can just add a 1 column at the beginning
|
|
69
|
+
return [[1, min_width_for_more_than_one_column], ...sdk_cols_at_size];
|
|
70
|
+
const to_delete = [];
|
|
71
|
+
for (let i = 0; i < sorted_sizes.length; i++) {
|
|
72
|
+
const [, max_width] = sorted_sizes[i];
|
|
73
|
+
if (max_width > min_width_for_more_than_one_column) continue;
|
|
74
|
+
to_delete.push(i);
|
|
75
|
+
}
|
|
76
|
+
while (to_delete.length) sorted_sizes.splice(to_delete.pop(), 1);
|
|
77
|
+
sorted_sizes.unshift([1, min_width_for_more_than_one_column]);
|
|
78
|
+
return sorted_sizes.map(_ref4 => {
|
|
79
|
+
let [cols, max_width] = _ref4;
|
|
80
|
+
return max_width == Infinity ? [cols] : [cols, max_width];
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
|
|
84
|
+
const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
|
|
85
|
+
return (0, $b8hua$isServer) ? "<!-- ".concat(text, " -->") : document.createComment(text);
|
|
86
|
+
}
|
|
87
|
+
function $cb64b315b25cfc59$export$2f0cbfbb4354bb52(elements) {
|
|
88
|
+
// FYI this probably doesn't work on hugely deep nestings or large amount of elements
|
|
89
|
+
return $b8hua$createMemo(() => $cb64b315b25cfc59$var$unwrapping_helper(elements));
|
|
90
|
+
}
|
|
91
|
+
function $cb64b315b25cfc59$var$unwrapping_helper(elements) {
|
|
92
|
+
const result = [];
|
|
93
|
+
if (Array.isArray(elements)) for (let i = 0; i < elements.length; i++) {
|
|
94
|
+
const element = elements[i];
|
|
95
|
+
result.push(...$cb64b315b25cfc59$var$unwrapping_helper(element));
|
|
96
|
+
} else if (typeof elements == "function") result.push(...$cb64b315b25cfc59$var$unwrapping_helper(elements()));else if (elements != undefined && typeof elements != "boolean") result.push(elements);
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
let $bdd80c7862246dc2$var$cached_placeholder_element;
|
|
100
|
+
let $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
|
|
101
|
+
function $bdd80c7862246dc2$export$f33414a4df0afd3f(_ref) {
|
|
102
|
+
let {
|
|
103
|
+
product_card_template_: product_card_template_,
|
|
104
|
+
num_placeholders_: num_placeholders_
|
|
105
|
+
} = _ref;
|
|
106
|
+
const [get_elements, set_elements] = $b8hua$createSignal([]);
|
|
107
|
+
let existing_num = 0;
|
|
108
|
+
if (0, $b8hua$isServer)
|
|
109
|
+
// want to render simple placeholders on server, effects don't run there
|
|
110
|
+
return $b8hua$createMemo(() => Array.from({
|
|
111
|
+
length: num_placeholders_()
|
|
112
|
+
}).map(() => {
|
|
113
|
+
const template_result = product_card_template_(null, undefined);
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
if (typeof (template_result === null || template_result === void 0 ? void 0 : template_result.then) !== "function") return template_result;
|
|
116
|
+
}));
|
|
117
|
+
$b8hua$createRenderEffect(() => {
|
|
118
|
+
const to_add = num_placeholders_() - existing_num;
|
|
119
|
+
if (to_add <= 0) return;
|
|
120
|
+
// Below comment is from when we used recommendation renderer and manual DOM manipulation for this, but I'm still scared to remove placeholders and mess up scroll restoration, so I'm keeping the way it worked. Otherwise, <Index> could be used which would be far more elegant.
|
|
121
|
+
// We don't need to remove placeholders, only need to add. The reason for that is that chrome restores the scroll position once all tasks queued as reaction of the "popstate" events have been completed in the task queue. That means that we need to get the placeholders in fast, or we might lose scroll position if the previous site was shorter.
|
|
122
|
+
// The query id and the amount might update in separate tasks because one comes from href_change_ipns and the other one from another "popstate" listener. Therefore, we need to be able to dynamically add more placeholders. I'm not entirely sure about this anymore though, since we have the scroll position on a per-id basis it might work anyway but THIS WORKS, and I've been working on this bug for 3 hours so let's just keep it this way.
|
|
123
|
+
set_elements(prev => [...prev, ...Array.from({
|
|
124
|
+
length: to_add
|
|
125
|
+
}).map(() => $bdd80c7862246dc2$var$Placeholder({
|
|
126
|
+
product_card_template_: product_card_template_
|
|
127
|
+
}))]);
|
|
128
|
+
existing_num += to_add;
|
|
129
|
+
});
|
|
130
|
+
return get_elements; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
|
|
134
|
+
*/
|
|
135
|
+
function $bdd80c7862246dc2$var$Placeholder(_ref2) {
|
|
136
|
+
let {
|
|
137
|
+
product_card_template_: product_card_template_
|
|
138
|
+
} = _ref2;
|
|
139
|
+
const get_cloned_placeholders = function () {
|
|
140
|
+
let element_to_clone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $bdd80c7862246dc2$var$cached_placeholder_element;
|
|
141
|
+
return Array.isArray(element_to_clone) ? element_to_clone.map(el => el instanceof Node ? el.cloneNode(true) : el) : element_to_clone;
|
|
142
|
+
};
|
|
143
|
+
if ($bdd80c7862246dc2$var$cached_placeholder_element) return get_cloned_placeholders();
|
|
144
|
+
let dispose_original_copy;
|
|
145
|
+
const get_unwrapped_element = $b8hua$createRoot(dispose => {
|
|
146
|
+
dispose_original_copy = dispose;
|
|
147
|
+
// if product_card_template_ is async and rejects the resource will take care of throwing upwards here in the solid-js error handling system
|
|
148
|
+
const [resource] = $b8hua$createResource(() => {
|
|
149
|
+
if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) return $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
|
|
150
|
+
const return_value = product_card_template_(null, undefined);
|
|
151
|
+
if (typeof return_value === "object" && typeof (return_value === null || return_value === void 0 ? void 0 : return_value.then) === "function")
|
|
152
|
+
// Is Promise or promise-like object
|
|
153
|
+
$bdd80c7862246dc2$var$rendering_cached_placeholder_element = return_value;
|
|
154
|
+
return return_value;
|
|
155
|
+
});
|
|
156
|
+
return $b8hua$createMemo(() => {
|
|
157
|
+
if (resource.loading) return () => [];
|
|
158
|
+
return $cb64b315b25cfc59$export$2f0cbfbb4354bb52(resource);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
$b8hua$onCleanup(() => {
|
|
162
|
+
if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) {
|
|
163
|
+
var _rendering_cached_pla;
|
|
164
|
+
// If we're still rendering in our separate root, let the rendering finish or other <Placeholder> components waiting for it might get an incomplete result
|
|
165
|
+
const unset_current_rendering = () => {
|
|
166
|
+
dispose_original_copy();
|
|
167
|
+
$bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
|
|
168
|
+
};
|
|
169
|
+
(_rendering_cached_pla = $bdd80c7862246dc2$var$rendering_cached_placeholder_element) === null || _rendering_cached_pla === void 0 || _rendering_cached_pla.then(unset_current_rendering, unset_current_rendering);
|
|
170
|
+
} else
|
|
171
|
+
// Otherwise, just make sure we've disposed our root
|
|
172
|
+
dispose_original_copy();
|
|
173
|
+
});
|
|
174
|
+
return $b8hua$createMemo(() => {
|
|
175
|
+
const unwrapped_array = get_unwrapped_element()();
|
|
176
|
+
if (!(unwrapped_array !== null && unwrapped_array !== void 0 && unwrapped_array.length) || !unwrapped_array.every(item => item))
|
|
177
|
+
// Haven't finished rendering yet in case of "async" rendering, so don't freeze the elements yet
|
|
178
|
+
return;
|
|
179
|
+
// placeholders have finished rendering, freeze the elements
|
|
180
|
+
// 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
|
|
181
|
+
$bdd80c7862246dc2$var$cached_placeholder_element || ($bdd80c7862246dc2$var$cached_placeholder_element = get_cloned_placeholders(unwrapped_array)); // Clone initial return value so that who gave us the elements can't mutate them, which has caused issues before with react
|
|
182
|
+
$bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
|
|
183
|
+
dispose_original_copy(); // So that this memo will never re-run and the placeholder rendering function can clean up
|
|
184
|
+
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
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Gets product_id (the thing we key the rendering on) from a display
|
|
190
|
+
*/
|
|
191
|
+
function $6a4c7ed6d005505c$export$548d053aba053d79(display) {
|
|
192
|
+
if ("variant_index" in display) {
|
|
193
|
+
const actual_display = display.variant_displays[display.variant_index];
|
|
194
|
+
return actual_display.product_id;
|
|
195
|
+
}
|
|
196
|
+
return display.product_id;
|
|
197
|
+
}
|
|
198
|
+
function $2d7bad8684bc7f44$export$7f8bd308237ab5a5(get_displays_) {
|
|
199
|
+
const displays_by_key_ = $b8hua$createMemo(() => {
|
|
200
|
+
const displays = get_displays_();
|
|
201
|
+
// We key by product_id because that's what can be used to uniquely identify products
|
|
202
|
+
// This way <For> can optimize the rendering
|
|
203
|
+
const map = new Map();
|
|
204
|
+
for (let i = 0; i < displays.length; i++) {
|
|
205
|
+
const display = displays[i];
|
|
206
|
+
const product_id = $6a4c7ed6d005505c$export$548d053aba053d79(display);
|
|
207
|
+
map.set(product_id, display);
|
|
208
|
+
}
|
|
209
|
+
return map;
|
|
210
|
+
});
|
|
211
|
+
return displays_by_key_;
|
|
212
|
+
}
|
|
213
|
+
function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
|
|
214
|
+
let {
|
|
215
|
+
displays_by_key_: displays_by_key_,
|
|
216
|
+
merchant_: merchant_,
|
|
217
|
+
market_: market_,
|
|
218
|
+
product_card_template_: product_card_template_,
|
|
219
|
+
do_per_elements_: do_per_elements_
|
|
220
|
+
} = _ref;
|
|
221
|
+
return $b8hua$createComponent((0, $b8hua$For), {
|
|
222
|
+
get each() {
|
|
223
|
+
return [...displays_by_key_().keys()];
|
|
224
|
+
},
|
|
225
|
+
children: (product_id, index) => {
|
|
226
|
+
const owner = $b8hua$getOwner();
|
|
227
|
+
const display_accessor = $b8hua$createMemo(() => displays_by_key_().get(product_id));
|
|
228
|
+
const [product_card_resource] = $b8hua$createResource(display_accessor,
|
|
229
|
+
// re-render when the reference to the display object changes
|
|
230
|
+
// this should only be the case when the merchant or market changes and the new request has completed
|
|
231
|
+
display => {
|
|
232
|
+
// get display in the function that re-runs when merchant or market have changed, since the display may have changed but product_id not
|
|
233
|
+
return product_card_template_(display, {
|
|
234
|
+
set_on_index_change: fn => $b8hua$runWithOwner(owner, () => $b8hua$createEffect(() => fn(index()))),
|
|
235
|
+
merchant: $b8hua$untrack(merchant_),
|
|
236
|
+
// this means that the merchant and market provided to the template is wrong while we do another fetch, but I don't see how anyone would need to know the correct market there
|
|
237
|
+
market: $b8hua$untrack(market_) // recommendation_grid can provide a sneaky undefined here just FYI
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
const node_accessor = $cb64b315b25cfc59$export$2f0cbfbb4354bb52(product_card_resource);
|
|
242
|
+
$b8hua$createEffect(() => {
|
|
243
|
+
const product_card_nodes = node_accessor();
|
|
244
|
+
const display = display_accessor();
|
|
245
|
+
const elements = [];
|
|
246
|
+
for (let i = 0; i < product_card_nodes.length; i++) {
|
|
247
|
+
const element = product_card_nodes[i];
|
|
248
|
+
if (!(element instanceof Element)) continue;
|
|
249
|
+
elements.push(element);
|
|
250
|
+
// Add tracking ids
|
|
251
|
+
if (!(element instanceof HTMLElement)) continue; // Apparently only HTMLElements have dataset
|
|
252
|
+
const {
|
|
253
|
+
dataset: dataset
|
|
254
|
+
} = element;
|
|
255
|
+
const {
|
|
256
|
+
search_result_id: search_result_id,
|
|
257
|
+
product_listing_result_id: product_listing_result_id,
|
|
258
|
+
recommendation_id: recommendation_id
|
|
259
|
+
} = display;
|
|
260
|
+
if (search_result_id) dataset.searchResultId = search_result_id;else if (product_listing_result_id) dataset.productListingResultId = product_listing_result_id;else if (recommendation_id) dataset.recommendationId = recommendation_id;
|
|
261
|
+
}
|
|
262
|
+
do_per_elements_ === null || do_per_elements_ === void 0 || do_per_elements_(elements, index);
|
|
263
|
+
});
|
|
264
|
+
return product_card_resource; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
|
|
270
|
+
class $f3b7124b76123e44$export$e1d52e4f0c7557a1 extends Error {}
|
|
271
|
+
class $f3b7124b76123e44$export$aa14a9f43128f61f extends $f3b7124b76123e44$export$e1d52e4f0c7557a1 {
|
|
272
|
+
constructor(templateError) {
|
|
273
|
+
super("Uncaught error in product card template", {
|
|
274
|
+
cause: templateError
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
const $74777e8fe65b3dcb$var$_tmpl$ = ["<div", ' class="', '">', "</div>"];
|
|
279
|
+
function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
|
|
280
|
+
return $b8hua$ErrorBoundary({
|
|
281
|
+
fallback(err, retry) {
|
|
282
|
+
var _props$on_error_, _props$class_list_;
|
|
283
|
+
const {
|
|
284
|
+
message_: message_,
|
|
285
|
+
severity_: severity_
|
|
286
|
+
} = props;
|
|
287
|
+
let message = message_;
|
|
288
|
+
if (err instanceof (0, $f3b7124b76123e44$export$aa14a9f43128f61f)) {
|
|
289
|
+
console.error(err.cause);
|
|
290
|
+
message = "".concat(message, ": ").concat(err.message);
|
|
291
|
+
} else $b8hua$report([err, message_], severity_);
|
|
292
|
+
(_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 || _props$on_error_.call(props, retry);
|
|
293
|
+
return $b8hua$ssr($74777e8fe65b3dcb$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrClassList(Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || [])), $b8hua$escape(message));
|
|
294
|
+
},
|
|
295
|
+
get children() {
|
|
296
|
+
return props.children;
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
const $63f1f8dbcd07d3b0$var$_tmpl$ = ["<style", ' type="text/css">', "</style>"],
|
|
301
|
+
$63f1f8dbcd07d3b0$var$_tmpl$2 = ["<div", ' class="', '">', "</div>"];
|
|
302
|
+
function $63f1f8dbcd07d3b0$export$d21e32dfedac04be(props) {
|
|
303
|
+
const container_element_ = $b8hua$ssrElement("div", props.element_attributes, () => $b8hua$escape(props.children), true); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
304
|
+
return $b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
305
|
+
get message_() {
|
|
306
|
+
return "Failed calculating " + props.layout + " layout";
|
|
307
|
+
},
|
|
308
|
+
severity_: "error",
|
|
309
|
+
get children() {
|
|
310
|
+
return $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element_);
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
|
|
315
|
+
let insert_after_container = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
316
|
+
// Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
|
|
317
|
+
const show_all_rows = $b8hua$createMemo(() => props.rows === "all");
|
|
318
|
+
const rows_or_empty_object = $b8hua$createMemo(() => show_all_rows() ? {} : props.rows);
|
|
319
|
+
const view_more_button_elements = $cb64b315b25cfc59$export$2f0cbfbb4354bb52($b8hua$createMemo(() => rows_or_empty_object().button));
|
|
320
|
+
const view_less_button_elements = $cb64b315b25cfc59$export$2f0cbfbb4354bb52($b8hua$createMemo(() => rows_or_empty_object().view_less_button));
|
|
321
|
+
const have_a_view_more_button = $b8hua$createMemo(() => {
|
|
322
|
+
const button = view_more_button_elements();
|
|
323
|
+
return !(!button || Array.isArray(button) && !button.length);
|
|
324
|
+
});
|
|
325
|
+
const have_a_view_less_button = $b8hua$createMemo(() => {
|
|
326
|
+
const button = view_less_button_elements();
|
|
327
|
+
return !(!button || Array.isArray(button) && !button.length);
|
|
328
|
+
});
|
|
329
|
+
const [get_styling, set_styling] = $b8hua$createSignal();
|
|
330
|
+
const container_class = $b8hua$make_random_classname();
|
|
331
|
+
const selector_beginning = ".depict .".concat(container_class, ">"); // class so ppl can have id if needed
|
|
332
|
+
const [get_children_count, set_children_count] = $b8hua$createSignal(0);
|
|
333
|
+
const update_children_count = () => set_children_count(container_element.children.length);
|
|
334
|
+
const col_styling = $b8hua$createMemo(() => $b8hua$n_col_styling_with_dist(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
|
|
335
|
+
const default_currently_visible_signal = $b8hua$createSignal($b8hua$untrack(() => {
|
|
336
|
+
var _rows_or_empty_object;
|
|
337
|
+
return (_rows_or_empty_object = rows_or_empty_object().start_rows) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1;
|
|
338
|
+
})); // Keep this signal here, so it doesn't change when rows_or_empty_object and I think it's to be expected that the "internal default signal" stays the same
|
|
339
|
+
const rows_visible_signal = $b8hua$createMemo(() => rows_or_empty_object().currently_visible || default_currently_visible_signal);
|
|
340
|
+
const get_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[0]());
|
|
341
|
+
const set_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[1]);
|
|
342
|
+
const view_more_button_class = $b8hua$make_random_classname();
|
|
343
|
+
const view_less_button_class = $b8hua$make_random_classname();
|
|
344
|
+
const style_element = $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), get_styling);
|
|
345
|
+
const view_more_button_container = $b8hua$createMemo(() => have_a_view_more_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$2, $b8hua$ssrHydrationKey(), "load-more-container ".concat($b8hua$escape(view_more_button_class, true)), $b8hua$escape(rows_or_empty_object().button)));
|
|
346
|
+
// We need to have duplicate buttons because which ones is shown depends on the number of rows visible and therefore on the viewport size and therefore on the css media queries
|
|
347
|
+
const view_less_button_container = $b8hua$createMemo(() => have_a_view_less_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$2, $b8hua$ssrHydrationKey(), "load-less-container ".concat($b8hua$escape(view_less_button_class, true)), $b8hua$escape(rows_or_empty_object().view_less_button)));
|
|
348
|
+
container_element.classList.add(container_class);
|
|
349
|
+
$b8hua$createComputed(() => {
|
|
350
|
+
// Make sure we don't have more rows visible than max_rows (this could happen by max_rows being decreased)
|
|
351
|
+
const rows_visible = get_rows_visible();
|
|
352
|
+
const max_rows = rows_or_empty_object().max_rows;
|
|
353
|
+
if (!isNaN(max_rows) && max_rows >= 0 && rows_visible > max_rows) set_rows_visible()(max_rows);
|
|
354
|
+
});
|
|
355
|
+
$b8hua$createRenderEffect(() => {
|
|
356
|
+
// Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
|
|
357
|
+
if (show_all_rows()) {
|
|
358
|
+
// no view more functionality requested
|
|
359
|
+
set_styling(() => col_styling);
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
update_children_count();
|
|
363
|
+
const mutation_observer = new MutationObserver($b8hua$catchify(update_children_count));
|
|
364
|
+
mutation_observer.observe(container_element, {
|
|
365
|
+
childList: true
|
|
366
|
+
});
|
|
367
|
+
$b8hua$onCleanup(() => mutation_observer.disconnect());
|
|
368
|
+
set_styling(
|
|
369
|
+
// this is needed because solid will think that the memo-accessor is a setter function otherwise
|
|
370
|
+
() => $b8hua$createMemo(() => {
|
|
371
|
+
const {
|
|
372
|
+
rows_per_click: rows_per_click,
|
|
373
|
+
max_rows = -1,
|
|
374
|
+
start_rows: start_rows
|
|
375
|
+
} = rows_or_empty_object();
|
|
376
|
+
const rows_visible = get_rows_visible();
|
|
377
|
+
const children_count = get_children_count();
|
|
378
|
+
return col_styling() + props.cols_at_size.map(options => {
|
|
379
|
+
const [recs_per_row, min, max] = options;
|
|
380
|
+
let should_hide_view_more_button;
|
|
381
|
+
let visible_recs;
|
|
382
|
+
if (props.disable_partial_rows) {
|
|
383
|
+
visible_recs = $b8hua$layout_get_visible_recs_without_partial_rows(rows_visible, children_count, options);
|
|
384
|
+
const visible_recs_next_show_more = $b8hua$layout_get_visible_recs_without_partial_rows(rows_visible + (rows_per_click || 0),
|
|
385
|
+
// Should this really be zero when we default rows_per_click to 1?
|
|
386
|
+
children_count, options);
|
|
387
|
+
should_hide_view_more_button = visible_recs === visible_recs_next_show_more;
|
|
388
|
+
} else {
|
|
389
|
+
visible_recs = $b8hua$layout_get_total_rec_amount_for_row(rows_visible, options);
|
|
390
|
+
should_hide_view_more_button = visible_recs >= children_count;
|
|
391
|
+
}
|
|
392
|
+
const should_hide_button_final = should_hide_view_more_button || max_rows !== -1 && rows_visible >= max_rows;
|
|
393
|
+
// I don't really understand the logic for when the view more button gets hidden so IDK if below is correct, but it works how it should for now
|
|
394
|
+
const should_hide_view_less_button = !should_hide_view_more_button || start_rows == undefined || rows_visible <= start_rows || children_count <= recs_per_row * start_rows;
|
|
395
|
+
return "".concat($b8hua$layout_media_query_header(min, max), "{").concat(selector_beginning, ":nth-child(n+").concat(visible_recs + 1, "){display:none}").concat(props.layout == "slider" ? "".concat(selector_beginning, ":nth-child(n+").concat(visible_recs, "){margin-right:0}") : "").concat(should_hide_button_final ? ".depict .".concat(view_more_button_class, "{display:none!important}") : "").concat(should_hide_view_less_button ? ".depict .".concat(view_less_button_class, "{display:none!important}") : "", "}");
|
|
396
|
+
}).join("");
|
|
397
|
+
}));
|
|
398
|
+
});
|
|
399
|
+
if (insert_after_container) container_element.after(style_element);
|
|
400
|
+
return [container_element, view_more_button_container(), view_less_button_container(), style_element];
|
|
401
|
+
}
|
|
402
|
+
const $ca6ab5f08bd28bca$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
403
|
+
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
404
|
+
var _$escape2, _$escape3;
|
|
405
|
+
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
406
|
+
return $b8hua$ssr($ca6ab5f08bd28bca$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("width", (_$escape2 = $b8hua$escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $b8hua$ssrAttribute("height", (_$escape3 = $b8hua$escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
|
|
407
|
+
}
|
|
408
|
+
const $002f09d00aac50b2$var$_tmpl$ = ["<div", ">", "</div>"];
|
|
409
|
+
function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
|
|
410
|
+
let {
|
|
411
|
+
children: children,
|
|
412
|
+
slider_ref_: slider_ref_,
|
|
413
|
+
faded_opacity_ = 0.7,
|
|
414
|
+
mutation_plugins_ = []
|
|
415
|
+
} = _ref;
|
|
416
|
+
const slider = new (0, $b8hua$Amazing_Slider)({
|
|
417
|
+
button_contents: {
|
|
418
|
+
left: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))],
|
|
419
|
+
right: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))]
|
|
420
|
+
},
|
|
421
|
+
constructor_plugins: [$b8hua$slider_snap_css().constructor_plugin],
|
|
422
|
+
mutation_plugins: [$b8hua$slider_fading_factory({
|
|
423
|
+
threshold_: 0.96,
|
|
424
|
+
faded_opacity_: faded_opacity_
|
|
425
|
+
}).mutation_plugin_, ...mutation_plugins_]
|
|
426
|
+
});
|
|
427
|
+
$b8hua$insert(slider.insert_here, children);
|
|
428
|
+
$b8hua$onCleanup(() => slider.observer.disconnect());
|
|
429
|
+
slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
|
|
430
|
+
return slider.container;
|
|
431
|
+
}
|
|
432
|
+
function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
433
|
+
let {
|
|
434
|
+
recommendations_resource_: recommendations_resource_,
|
|
435
|
+
product_card_template_: product_card_template_,
|
|
436
|
+
layout_options_: layout_options_,
|
|
437
|
+
merchant_: merchant_,
|
|
438
|
+
market_: market_
|
|
439
|
+
} = _ref;
|
|
440
|
+
const is_showing_something = $b8hua$createMemo(() => {
|
|
441
|
+
var _recommendations_reso;
|
|
442
|
+
return recommendations_resource_.loading || ((_recommendations_reso = recommendations_resource_()) === null || _recommendations_reso === void 0 ? void 0 : _recommendations_reso.length);
|
|
443
|
+
});
|
|
444
|
+
const num_placeholders_ = () => 20;
|
|
445
|
+
const slider = $b8hua$createComponent((0, $002f09d00aac50b2$export$6649caad96ef8870), {
|
|
446
|
+
slider_ref_: slider => {
|
|
447
|
+
const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, slider.insert_here, true);
|
|
448
|
+
// Do like this, so we don't have to call mergeProps ourselves
|
|
449
|
+
$b8hua$createComponent(Layout, $b8hua$mergeProps({
|
|
450
|
+
rows: "all",
|
|
451
|
+
layout: "slider"
|
|
452
|
+
}, layout_options_));
|
|
453
|
+
slider.insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
|
|
454
|
+
},
|
|
455
|
+
get children() {
|
|
456
|
+
return $b8hua$createComponent((0, $b8hua$Suspense), {
|
|
457
|
+
get fallback() {
|
|
458
|
+
return $bdd80c7862246dc2$export$f33414a4df0afd3f({
|
|
459
|
+
num_placeholders_: num_placeholders_,
|
|
460
|
+
product_card_template_: product_card_template_
|
|
461
|
+
});
|
|
462
|
+
},
|
|
463
|
+
get children() {
|
|
464
|
+
return (() => {
|
|
465
|
+
// IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
|
|
466
|
+
const displays_by_key_ = $2d7bad8684bc7f44$export$7f8bd308237ab5a5($b8hua$createMemo(() => recommendations_resource_() || []));
|
|
467
|
+
return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
|
|
468
|
+
displays_by_key_: displays_by_key_,
|
|
469
|
+
merchant_: merchant_,
|
|
470
|
+
market_: market_,
|
|
471
|
+
product_card_template_: product_card_template_
|
|
472
|
+
});
|
|
473
|
+
})();
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
479
|
+
get when() {
|
|
480
|
+
return is_showing_something();
|
|
481
|
+
},
|
|
482
|
+
children: slider
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
const $d5d7e58c5c9d8db0$var$_tmpl$ = ["<div", ' class="depict plp">', "</div>"];
|
|
486
|
+
function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
487
|
+
const grid_spacing_override = $b8hua$createMemo(() => {
|
|
488
|
+
const {
|
|
489
|
+
grid_spacing: grid_spacing
|
|
490
|
+
} = props; // can be reactive
|
|
491
|
+
return typeof grid_spacing === "string" ? {
|
|
492
|
+
grid_spacing: grid_spacing
|
|
493
|
+
} : {
|
|
494
|
+
override_vertical_spacing: grid_spacing.vertical,
|
|
495
|
+
grid_spacing: grid_spacing.horizontal
|
|
496
|
+
};
|
|
497
|
+
});
|
|
498
|
+
const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
|
|
499
|
+
return $b8hua$ssr($d5d7e58c5c9d8db0$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($39ddb986053fb759$export$d41d19e89346fa2({
|
|
500
|
+
product_card_template_: function () {
|
|
501
|
+
return props.product_card_template(...arguments);
|
|
502
|
+
},
|
|
503
|
+
recommendations_resource_: recommendations_resource_,
|
|
504
|
+
market_: () => props.market,
|
|
505
|
+
merchant_: () => props.merchant,
|
|
506
|
+
layout_options_: $b8hua$createMemo(() => ({
|
|
507
|
+
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
508
|
+
...grid_spacing_override()
|
|
509
|
+
}))
|
|
510
|
+
})));
|
|
511
|
+
}
|
|
512
|
+
const $e3efeb558d952696$var$_tmpl$ = ["<div", ' class="recommendation-grid"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"];
|
|
513
|
+
function $e3efeb558d952696$export$7da560f849543dff(_ref) {
|
|
514
|
+
let {
|
|
515
|
+
recommendations_resource_: recommendations_resource_,
|
|
516
|
+
product_card_template_: product_card_template_,
|
|
517
|
+
layout_options_: layout_options_,
|
|
518
|
+
merchant_: merchant_,
|
|
519
|
+
market_: market_,
|
|
520
|
+
rows_object_: rows_object_
|
|
521
|
+
} = _ref;
|
|
522
|
+
const is_showing_something = $b8hua$createMemo(() => {
|
|
523
|
+
var _recommendations_reso;
|
|
524
|
+
return recommendations_resource_.loading || ((_recommendations_reso = recommendations_resource_()) === null || _recommendations_reso === void 0 ? void 0 : _recommendations_reso.length);
|
|
525
|
+
});
|
|
526
|
+
const num_placeholders_ = () => 20;
|
|
527
|
+
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
528
|
+
get when() {
|
|
529
|
+
return is_showing_something();
|
|
530
|
+
},
|
|
531
|
+
get children() {
|
|
532
|
+
return $b8hua$ssr($e3efeb558d952696$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($ca55612a53dbbdd2$export$a2cc176055f8f08()), $b8hua$escape($b8hua$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $b8hua$mergeProps({
|
|
533
|
+
get rows() {
|
|
534
|
+
return rows_object_();
|
|
535
|
+
},
|
|
536
|
+
layout: "grid",
|
|
537
|
+
element_attributes: {
|
|
538
|
+
class: "cards"
|
|
539
|
+
}
|
|
540
|
+
}, layout_options_, {
|
|
541
|
+
get children() {
|
|
542
|
+
return $b8hua$createComponent((0, $b8hua$Suspense), {
|
|
543
|
+
get fallback() {
|
|
544
|
+
return $bdd80c7862246dc2$export$f33414a4df0afd3f({
|
|
545
|
+
num_placeholders_: num_placeholders_,
|
|
546
|
+
product_card_template_: product_card_template_
|
|
547
|
+
});
|
|
548
|
+
},
|
|
549
|
+
get children() {
|
|
550
|
+
return (() => {
|
|
551
|
+
// IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
|
|
552
|
+
const displays_by_key_ = $2d7bad8684bc7f44$export$7f8bd308237ab5a5($b8hua$createMemo(() => recommendations_resource_() || []));
|
|
553
|
+
return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
|
|
554
|
+
displays_by_key_: displays_by_key_,
|
|
555
|
+
merchant_: merchant_,
|
|
556
|
+
market_: market_,
|
|
557
|
+
product_card_template_: product_card_template_
|
|
558
|
+
});
|
|
559
|
+
})();
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}))));
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
const $b432b11321ad4c97$var$_tmpl$ = ["<button", ' class="show-more major" type="button">', "</button>"],
|
|
568
|
+
$b432b11321ad4c97$var$_tmpl$2 = ["<div", ' class="depict plp">', "</div>"];
|
|
569
|
+
function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
570
|
+
const rows_object_ = $b8hua$createMemo(() => {
|
|
571
|
+
const view_more_button = props.view_more_button;
|
|
572
|
+
if (!view_more_button) return "all";
|
|
573
|
+
return {
|
|
574
|
+
start_rows: view_more_button.start_rows,
|
|
575
|
+
rows_per_click: view_more_button.rows_per_click,
|
|
576
|
+
button: $b8hua$ssr($b432b11321ad4c97$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(view_more_button.text))
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
const grid_spacing_override = $b8hua$createMemo(() => {
|
|
580
|
+
const {
|
|
581
|
+
grid_spacing: grid_spacing
|
|
582
|
+
} = props; // can be reactive
|
|
583
|
+
return typeof grid_spacing === "string" ? {
|
|
584
|
+
grid_spacing: grid_spacing
|
|
585
|
+
} : {
|
|
586
|
+
override_vertical_spacing: grid_spacing.vertical,
|
|
587
|
+
grid_spacing: grid_spacing.horizontal
|
|
588
|
+
};
|
|
589
|
+
});
|
|
590
|
+
const [recommendations_resource_] = $b8hua$createResource(() => props.recommendations, recs => recs);
|
|
591
|
+
return $b8hua$ssr($b432b11321ad4c97$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($e3efeb558d952696$export$7da560f849543dff({
|
|
592
|
+
rows_object_: rows_object_,
|
|
593
|
+
product_card_template_: function () {
|
|
594
|
+
return props.product_card_template(...arguments);
|
|
595
|
+
},
|
|
596
|
+
recommendations_resource_: recommendations_resource_,
|
|
597
|
+
market_: () => props.market,
|
|
598
|
+
merchant_: () => props.merchant,
|
|
599
|
+
layout_options_: $b8hua$createMemo(() => ({
|
|
600
|
+
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
601
|
+
...grid_spacing_override()
|
|
602
|
+
}))
|
|
603
|
+
})));
|
|
604
|
+
}
|
|
12
605
|
function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
|
|
13
606
|
const [size, setSize] = $b8hua$createSignal(0);
|
|
14
607
|
const resizeObserver = new ResizeObserver($b8hua$catchify(records => {
|
|
@@ -54,38 +647,6 @@ const $801e8845d3fa3653$var$_tmpl$ = ["<div", ' style="', '"></div>'];
|
|
|
54
647
|
function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
|
|
55
648
|
return $b8hua$ssr($801e8845d3fa3653$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle("position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%")));
|
|
56
649
|
}
|
|
57
|
-
|
|
58
|
-
// Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
|
|
59
|
-
class $f3b7124b76123e44$export$e1d52e4f0c7557a1 extends Error {}
|
|
60
|
-
class $f3b7124b76123e44$export$aa14a9f43128f61f extends $f3b7124b76123e44$export$e1d52e4f0c7557a1 {
|
|
61
|
-
constructor(templateError) {
|
|
62
|
-
super("Uncaught error in product card template", {
|
|
63
|
-
cause: templateError
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const $74777e8fe65b3dcb$var$_tmpl$ = ["<div", ' class="', '">', "</div>"];
|
|
68
|
-
function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
|
|
69
|
-
return $b8hua$ErrorBoundary({
|
|
70
|
-
fallback(err, retry) {
|
|
71
|
-
var _props$on_error_, _props$class_list_;
|
|
72
|
-
const {
|
|
73
|
-
message_: message_,
|
|
74
|
-
severity_: severity_
|
|
75
|
-
} = props;
|
|
76
|
-
let message = message_;
|
|
77
|
-
if (err instanceof (0, $f3b7124b76123e44$export$aa14a9f43128f61f)) {
|
|
78
|
-
console.error(err.cause);
|
|
79
|
-
message = "".concat(message, ": ").concat(err.message);
|
|
80
|
-
} else $b8hua$report([err, message_], severity_);
|
|
81
|
-
(_props$on_error_ = props.on_error_) === null || _props$on_error_ === void 0 || _props$on_error_.call(props, retry);
|
|
82
|
-
return $b8hua$ssr($74777e8fe65b3dcb$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrClassList(Object.fromEntries(((_props$class_list_ = props.class_list_) === null || _props$class_list_ === void 0 ? void 0 : _props$class_list_.map(c => [c, true])) || [])), $b8hua$escape(message));
|
|
83
|
-
},
|
|
84
|
-
get children() {
|
|
85
|
-
return props.children;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
650
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
90
651
|
const {
|
|
91
652
|
collapse: collapse,
|
|
@@ -205,36 +766,6 @@ function $60ec7a29849d81db$export$a71e92cfbb498adc(props) {
|
|
|
205
766
|
return $b8hua$standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
|
|
206
767
|
});
|
|
207
768
|
}
|
|
208
|
-
const $ca6ab5f08bd28bca$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
|
|
209
|
-
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
210
|
-
var _$escape2, _$escape3;
|
|
211
|
-
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
212
|
-
return $b8hua$ssr($ca6ab5f08bd28bca$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("width", (_$escape2 = $b8hua$escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $b8hua$ssrAttribute("height", (_$escape3 = $b8hua$escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
|
|
213
|
-
}
|
|
214
|
-
const $002f09d00aac50b2$var$_tmpl$ = ["<div", ">", "</div>"];
|
|
215
|
-
function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
|
|
216
|
-
let {
|
|
217
|
-
children: children,
|
|
218
|
-
slider_ref_: slider_ref_,
|
|
219
|
-
faded_opacity_ = 0.7,
|
|
220
|
-
mutation_plugins_ = []
|
|
221
|
-
} = _ref;
|
|
222
|
-
const slider = new (0, $b8hua$Amazing_Slider)({
|
|
223
|
-
button_contents: {
|
|
224
|
-
left: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))],
|
|
225
|
-
right: [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {})))]
|
|
226
|
-
},
|
|
227
|
-
constructor_plugins: [$b8hua$slider_snap_css().constructor_plugin],
|
|
228
|
-
mutation_plugins: [$b8hua$slider_fading_factory({
|
|
229
|
-
threshold_: 0.96,
|
|
230
|
-
faded_opacity_: faded_opacity_
|
|
231
|
-
}).mutation_plugin_, ...mutation_plugins_]
|
|
232
|
-
});
|
|
233
|
-
$b8hua$insert(slider.insert_here, children);
|
|
234
|
-
$b8hua$onCleanup(() => slider.observer.disconnect());
|
|
235
|
-
slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
|
|
236
|
-
return slider.container;
|
|
237
|
-
}
|
|
238
769
|
const $9783d437ad61594c$var$_tmpl$ = '<path d="M11.669 10.531l9.156-9.156a.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569A.8.8 0 0 0 20.24 0a.77.77 0 0 0-.569.237l-9.14 9.14-9.14-9.14A.79.79 0 0 0 .807 0a.77.77 0 0 0-.569.237A.78.78 0 0 0 0 .807a.77.77 0 0 0 .237.569l9.156 9.156-9.156 9.14c-.159.157-.237.349-.237.569s.079.412.237.569c.085.085.174.148.268.19a1.095 1.095 0 0 0 .316.048.894.894 0 0 0 .285-.048.84.84 0 0 0 .285-.19l9.139-9.14 9.14 9.14a.894.894 0 0 0 .268.19 1.049 1.049 0 0 0 .301.048.941.941 0 0 0 .301-.048.84.84 0 0 0 .285-.19.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569z"></path>';
|
|
239
770
|
function $9783d437ad61594c$export$3b621d86b1566b2() {
|
|
240
771
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -2024,128 +2555,17 @@ function $44aa24b1bb793549$var$modify_only_local_filter(local_filter_object, sel
|
|
|
2024
2555
|
const value = values[i];
|
|
2025
2556
|
if (!jsond_set_values.includes(JSON.stringify(value)))
|
|
2026
2557
|
// We want to remove the entry with this value from the filter object because it's not selected
|
|
2027
|
-
indexes_to_remove.add(i);
|
|
2028
|
-
}
|
|
2029
|
-
new_meta.values = values.filter((_, index) => !indexes_to_remove.has(index));
|
|
2030
|
-
if (new_meta.names) new_meta.names = new_meta.names.filter((_, index) => !indexes_to_remove.has(index));
|
|
2031
|
-
if (new_meta.counts)
|
|
2032
|
-
// remove counts that are too much, they're all zero anyway if they exist
|
|
2033
|
-
new_meta.counts.length -= indexes_to_remove.size;
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
return modified_filter_object;
|
|
2038
|
-
}
|
|
2039
|
-
function $cb64b315b25cfc59$export$2f0cbfbb4354bb52(elements) {
|
|
2040
|
-
// FYI this probably doesn't work on hugely deep nestings or large amount of elements
|
|
2041
|
-
return $b8hua$createMemo(() => $cb64b315b25cfc59$var$unwrapping_helper(elements));
|
|
2042
|
-
}
|
|
2043
|
-
function $cb64b315b25cfc59$var$unwrapping_helper(elements) {
|
|
2044
|
-
const result = [];
|
|
2045
|
-
if (Array.isArray(elements)) for (let i = 0; i < elements.length; i++) {
|
|
2046
|
-
const element = elements[i];
|
|
2047
|
-
result.push(...$cb64b315b25cfc59$var$unwrapping_helper(element));
|
|
2048
|
-
} else if (typeof elements == "function") result.push(...$cb64b315b25cfc59$var$unwrapping_helper(elements()));else if (elements != undefined && typeof elements != "boolean") result.push(elements);
|
|
2049
|
-
return result;
|
|
2050
|
-
}
|
|
2051
|
-
const $63f1f8dbcd07d3b0$var$_tmpl$ = ["<div", ' class="', '">', "</div>"],
|
|
2052
|
-
$63f1f8dbcd07d3b0$var$_tmpl$2 = ["<style", ' type="text/css">', "</style>"];
|
|
2053
|
-
function $63f1f8dbcd07d3b0$export$d21e32dfedac04be(props) {
|
|
2054
|
-
const container_element_ = $b8hua$ssrElement("div", props.element_attributes, () => $b8hua$escape(props.children), true); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
2055
|
-
return $b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
2056
|
-
get message_() {
|
|
2057
|
-
return "Failed calculating " + props.layout + " layout";
|
|
2058
|
-
},
|
|
2059
|
-
severity_: "error",
|
|
2060
|
-
get children() {
|
|
2061
|
-
return $63f1f8dbcd07d3b0$var$ActualSolidLayout(props, container_element_);
|
|
2062
|
-
}
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
function $63f1f8dbcd07d3b0$var$ActualSolidLayout(props, container_element) {
|
|
2066
|
-
// Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
|
|
2067
|
-
const show_all_rows = $b8hua$createMemo(() => props.rows === "all");
|
|
2068
|
-
const rows_or_empty_object = $b8hua$createMemo(() => show_all_rows() ? {} : props.rows);
|
|
2069
|
-
const view_more_button_elements = $cb64b315b25cfc59$export$2f0cbfbb4354bb52($b8hua$createMemo(() => rows_or_empty_object().button));
|
|
2070
|
-
const view_less_button_elements = $cb64b315b25cfc59$export$2f0cbfbb4354bb52($b8hua$createMemo(() => rows_or_empty_object().view_less_button));
|
|
2071
|
-
const have_a_view_more_button = $b8hua$createMemo(() => {
|
|
2072
|
-
const button = view_more_button_elements();
|
|
2073
|
-
return !(!button || Array.isArray(button) && !button.length);
|
|
2074
|
-
});
|
|
2075
|
-
const have_a_view_less_button = $b8hua$createMemo(() => {
|
|
2076
|
-
const button = view_less_button_elements();
|
|
2077
|
-
return !(!button || Array.isArray(button) && !button.length);
|
|
2078
|
-
});
|
|
2079
|
-
const [get_styling, set_styling] = $b8hua$createSignal();
|
|
2080
|
-
const container_class = $b8hua$make_random_classname();
|
|
2081
|
-
const selector_beginning = ".depict .".concat(container_class, ">"); // class so ppl can have id if needed
|
|
2082
|
-
const [get_children_count, set_children_count] = $b8hua$createSignal(0);
|
|
2083
|
-
const update_children_count = () => set_children_count(container_element.children.length);
|
|
2084
|
-
const col_styling = $b8hua$createMemo(() => $b8hua$n_col_styling_with_dist(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
|
|
2085
|
-
const default_currently_visible_signal = $b8hua$createSignal($b8hua$untrack(() => {
|
|
2086
|
-
var _rows_or_empty_object;
|
|
2087
|
-
return (_rows_or_empty_object = rows_or_empty_object().start_rows) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1;
|
|
2088
|
-
})); // Keep this signal here, so it doesn't change when rows_or_empty_object and I think it's to be expected that the "internal default signal" stays the same
|
|
2089
|
-
const rows_visible_signal = $b8hua$createMemo(() => rows_or_empty_object().currently_visible || default_currently_visible_signal);
|
|
2090
|
-
const get_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[0]());
|
|
2091
|
-
const set_rows_visible = $b8hua$createMemo(() => rows_visible_signal()[1]);
|
|
2092
|
-
const view_more_button_class = $b8hua$make_random_classname();
|
|
2093
|
-
const view_less_button_class = $b8hua$make_random_classname();
|
|
2094
|
-
const view_more_button_container = $b8hua$createMemo(() => have_a_view_more_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), "load-more-container ".concat($b8hua$escape(view_more_button_class, true)), $b8hua$escape(rows_or_empty_object().button)));
|
|
2095
|
-
// We need to have duplicate buttons because which ones is shown depends on the number of rows visible and therefore on the viewport size and therefore on the css media queries
|
|
2096
|
-
const view_less_button_container = $b8hua$createMemo(() => have_a_view_less_button() && $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$, $b8hua$ssrHydrationKey(), "load-less-container ".concat($b8hua$escape(view_less_button_class, true)), $b8hua$escape(rows_or_empty_object().view_less_button)));
|
|
2097
|
-
container_element.classList.add(container_class);
|
|
2098
|
-
$b8hua$createComputed(() => {
|
|
2099
|
-
// Make sure we don't have more rows visible than max_rows (this could happen by max_rows being decreased)
|
|
2100
|
-
const rows_visible = get_rows_visible();
|
|
2101
|
-
const max_rows = rows_or_empty_object().max_rows;
|
|
2102
|
-
if (!isNaN(max_rows) && max_rows >= 0 && rows_visible > max_rows) set_rows_visible()(max_rows);
|
|
2103
|
-
});
|
|
2104
|
-
$b8hua$createRenderEffect(() => {
|
|
2105
|
-
// Be careful to only read show_all_rows in here (ofc doesn't apply to nested effects)
|
|
2106
|
-
if (show_all_rows()) {
|
|
2107
|
-
// no view more functionality requested
|
|
2108
|
-
set_styling(() => col_styling);
|
|
2109
|
-
return;
|
|
2110
|
-
}
|
|
2111
|
-
update_children_count();
|
|
2112
|
-
const mutation_observer = new MutationObserver($b8hua$catchify(update_children_count));
|
|
2113
|
-
mutation_observer.observe(container_element, {
|
|
2114
|
-
childList: true
|
|
2115
|
-
});
|
|
2116
|
-
$b8hua$onCleanup(() => mutation_observer.disconnect());
|
|
2117
|
-
set_styling(
|
|
2118
|
-
// this is needed because solid will think that the memo-accessor is a setter function otherwise
|
|
2119
|
-
() => $b8hua$createMemo(() => {
|
|
2120
|
-
const {
|
|
2121
|
-
rows_per_click: rows_per_click,
|
|
2122
|
-
max_rows = -1,
|
|
2123
|
-
start_rows: start_rows
|
|
2124
|
-
} = rows_or_empty_object();
|
|
2125
|
-
const rows_visible = get_rows_visible();
|
|
2126
|
-
const children_count = get_children_count();
|
|
2127
|
-
return col_styling() + props.cols_at_size.map(options => {
|
|
2128
|
-
const [recs_per_row, min, max] = options;
|
|
2129
|
-
let should_hide_view_more_button;
|
|
2130
|
-
let visible_recs;
|
|
2131
|
-
if (props.disable_partial_rows) {
|
|
2132
|
-
visible_recs = $b8hua$layout_get_visible_recs_without_partial_rows(rows_visible, children_count, options);
|
|
2133
|
-
const visible_recs_next_show_more = $b8hua$layout_get_visible_recs_without_partial_rows(rows_visible + (rows_per_click || 0),
|
|
2134
|
-
// Should this really be zero when we default rows_per_click to 1?
|
|
2135
|
-
children_count, options);
|
|
2136
|
-
should_hide_view_more_button = visible_recs === visible_recs_next_show_more;
|
|
2137
|
-
} else {
|
|
2138
|
-
visible_recs = $b8hua$layout_get_total_rec_amount_for_row(rows_visible, options);
|
|
2139
|
-
should_hide_view_more_button = visible_recs >= children_count;
|
|
2140
|
-
}
|
|
2141
|
-
const should_hide_button_final = should_hide_view_more_button || max_rows !== -1 && rows_visible >= max_rows;
|
|
2142
|
-
// I don't really understand the logic for when the view more button gets hidden so IDK if below is correct, but it works how it should for now
|
|
2143
|
-
const should_hide_view_less_button = !should_hide_view_more_button || start_rows == undefined || rows_visible <= start_rows || children_count <= recs_per_row * start_rows;
|
|
2144
|
-
return "".concat($b8hua$layout_media_query_header(min, max), "{").concat(selector_beginning, ":nth-child(n+").concat(visible_recs + 1, "){display:none}").concat(props.layout == "slider" ? "".concat(selector_beginning, ":nth-child(n+").concat(visible_recs, "){margin-right:0}") : "").concat(should_hide_button_final ? ".depict .".concat(view_more_button_class, "{display:none!important}") : "").concat(should_hide_view_less_button ? ".depict .".concat(view_less_button_class, "{display:none!important}") : "", "}");
|
|
2145
|
-
}).join("");
|
|
2146
|
-
}));
|
|
2147
|
-
});
|
|
2148
|
-
return [container_element, view_more_button_container(), view_less_button_container(), $b8hua$ssr($63f1f8dbcd07d3b0$var$_tmpl$2, $b8hua$ssrHydrationKey(), get_styling)];
|
|
2558
|
+
indexes_to_remove.add(i);
|
|
2559
|
+
}
|
|
2560
|
+
new_meta.values = values.filter((_, index) => !indexes_to_remove.has(index));
|
|
2561
|
+
if (new_meta.names) new_meta.names = new_meta.names.filter((_, index) => !indexes_to_remove.has(index));
|
|
2562
|
+
if (new_meta.counts)
|
|
2563
|
+
// remove counts that are too much, they're all zero anyway if they exist
|
|
2564
|
+
new_meta.counts.length -= indexes_to_remove.size;
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
return modified_filter_object;
|
|
2149
2569
|
}
|
|
2150
2570
|
async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_opts) {
|
|
2151
2571
|
const body = await (0, $b8hua$observer).wait_for_element("body");
|
|
@@ -2884,98 +3304,6 @@ function $94af29837186eb21$export$ef6006467f04ee41(_ref) {
|
|
|
2884
3304
|
}
|
|
2885
3305
|
})))];
|
|
2886
3306
|
}
|
|
2887
|
-
function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
|
|
2888
|
-
const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
|
|
2889
|
-
return (0, $b8hua$isServer) ? "<!-- ".concat(text, " -->") : document.createComment(text);
|
|
2890
|
-
}
|
|
2891
|
-
let $bdd80c7862246dc2$var$cached_placeholder_element;
|
|
2892
|
-
let $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
|
|
2893
|
-
function $bdd80c7862246dc2$export$f33414a4df0afd3f(_ref) {
|
|
2894
|
-
let {
|
|
2895
|
-
product_card_template_: product_card_template_,
|
|
2896
|
-
num_placeholders_: num_placeholders_
|
|
2897
|
-
} = _ref;
|
|
2898
|
-
const [get_elements, set_elements] = $b8hua$createSignal([]);
|
|
2899
|
-
let existing_num = 0;
|
|
2900
|
-
if (0, $b8hua$isServer)
|
|
2901
|
-
// want to render simple placeholders on server, effects don't run there
|
|
2902
|
-
return $b8hua$createMemo(() => Array.from({
|
|
2903
|
-
length: num_placeholders_()
|
|
2904
|
-
}).map(() => {
|
|
2905
|
-
const template_result = product_card_template_(null, undefined);
|
|
2906
|
-
// @ts-ignore
|
|
2907
|
-
if (typeof (template_result === null || template_result === void 0 ? void 0 : template_result.then) !== "function") return template_result;
|
|
2908
|
-
}));
|
|
2909
|
-
$b8hua$createRenderEffect(() => {
|
|
2910
|
-
const to_add = num_placeholders_() - existing_num;
|
|
2911
|
-
if (to_add <= 0) return;
|
|
2912
|
-
// Below comment is from when we used recommendation renderer and manual DOM manipulation for this, but I'm still scared to remove placeholders and mess up scroll restoration, so I'm keeping the way it worked. Otherwise, <Index> could be used which would be far more elegant.
|
|
2913
|
-
// We don't need to remove placeholders, only need to add. The reason for that is that chrome restores the scroll position once all tasks queued as reaction of the "popstate" events have been completed in the task queue. That means that we need to get the placeholders in fast, or we might lose scroll position if the previous site was shorter.
|
|
2914
|
-
// The query id and the amount might update in separate tasks because one comes from href_change_ipns and the other one from another "popstate" listener. Therefore, we need to be able to dynamically add more placeholders. I'm not entirely sure about this anymore though, since we have the scroll position on a per-id basis it might work anyway but THIS WORKS, and I've been working on this bug for 3 hours so let's just keep it this way.
|
|
2915
|
-
set_elements(prev => [...prev, ...Array.from({
|
|
2916
|
-
length: to_add
|
|
2917
|
-
}).map(() => $bdd80c7862246dc2$var$Placeholder({
|
|
2918
|
-
product_card_template_: product_card_template_
|
|
2919
|
-
}))]);
|
|
2920
|
-
existing_num += to_add;
|
|
2921
|
-
});
|
|
2922
|
-
return get_elements; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
2923
|
-
}
|
|
2924
|
-
/**
|
|
2925
|
-
* Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
|
|
2926
|
-
*/
|
|
2927
|
-
function $bdd80c7862246dc2$var$Placeholder(_ref2) {
|
|
2928
|
-
let {
|
|
2929
|
-
product_card_template_: product_card_template_
|
|
2930
|
-
} = _ref2;
|
|
2931
|
-
const get_cloned_placeholders = function () {
|
|
2932
|
-
let element_to_clone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $bdd80c7862246dc2$var$cached_placeholder_element;
|
|
2933
|
-
return Array.isArray(element_to_clone) ? element_to_clone.map(el => el instanceof Node ? el.cloneNode(true) : el) : element_to_clone;
|
|
2934
|
-
};
|
|
2935
|
-
if ($bdd80c7862246dc2$var$cached_placeholder_element) return get_cloned_placeholders();
|
|
2936
|
-
let dispose_original_copy;
|
|
2937
|
-
const get_unwrapped_element = $b8hua$createRoot(dispose => {
|
|
2938
|
-
dispose_original_copy = dispose;
|
|
2939
|
-
// if product_card_template_ is async and rejects the resource will take care of throwing upwards here in the solid-js error handling system
|
|
2940
|
-
const [resource] = $b8hua$createResource(() => {
|
|
2941
|
-
if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) return $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
|
|
2942
|
-
const return_value = product_card_template_(null, undefined);
|
|
2943
|
-
if (typeof return_value === "object" && typeof (return_value === null || return_value === void 0 ? void 0 : return_value.then) === "function")
|
|
2944
|
-
// Is Promise or promise-like object
|
|
2945
|
-
$bdd80c7862246dc2$var$rendering_cached_placeholder_element = return_value;
|
|
2946
|
-
return return_value;
|
|
2947
|
-
});
|
|
2948
|
-
return $b8hua$createMemo(() => {
|
|
2949
|
-
if (resource.loading) return () => [];
|
|
2950
|
-
return $cb64b315b25cfc59$export$2f0cbfbb4354bb52(resource);
|
|
2951
|
-
});
|
|
2952
|
-
});
|
|
2953
|
-
$b8hua$onCleanup(() => {
|
|
2954
|
-
if ($bdd80c7862246dc2$var$rendering_cached_placeholder_element) {
|
|
2955
|
-
var _rendering_cached_pla;
|
|
2956
|
-
// If we're still rendering in our separate root, let the rendering finish or other <Placeholder> components waiting for it might get an incomplete result
|
|
2957
|
-
const unset_current_rendering = () => {
|
|
2958
|
-
dispose_original_copy();
|
|
2959
|
-
$bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
|
|
2960
|
-
};
|
|
2961
|
-
(_rendering_cached_pla = $bdd80c7862246dc2$var$rendering_cached_placeholder_element) === null || _rendering_cached_pla === void 0 || _rendering_cached_pla.then(unset_current_rendering, unset_current_rendering);
|
|
2962
|
-
} else
|
|
2963
|
-
// Otherwise, just make sure we've disposed our root
|
|
2964
|
-
dispose_original_copy();
|
|
2965
|
-
});
|
|
2966
|
-
return $b8hua$createMemo(() => {
|
|
2967
|
-
const unwrapped_array = get_unwrapped_element()();
|
|
2968
|
-
if (!(unwrapped_array !== null && unwrapped_array !== void 0 && unwrapped_array.length) || !unwrapped_array.every(item => item))
|
|
2969
|
-
// Haven't finished rendering yet in case of "async" rendering, so don't freeze the elements yet
|
|
2970
|
-
return;
|
|
2971
|
-
// placeholders have finished rendering, freeze the elements
|
|
2972
|
-
// 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
|
|
2973
|
-
$bdd80c7862246dc2$var$cached_placeholder_element || ($bdd80c7862246dc2$var$cached_placeholder_element = get_cloned_placeholders(unwrapped_array)); // Clone initial return value so that who gave us the elements can't mutate them, which has caused issues before with react
|
|
2974
|
-
$bdd80c7862246dc2$var$rendering_cached_placeholder_element = undefined;
|
|
2975
|
-
dispose_original_copy(); // So that this memo will never re-run and the placeholder rendering function can clean up
|
|
2976
|
-
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
|
|
2977
|
-
});
|
|
2978
|
-
}
|
|
2979
3307
|
|
|
2980
3308
|
/*
|
|
2981
3309
|
* Usually product templates are somewhat height-elastic depending on the content, i.e. if the title is longer we might up to two extra rows for this. That means that the placeholders almost never will reflect the size of the actual content when we do scroll restoration. This magic number specifies how many extra placeholders we should render everytime to compensate for this, since if the placeholders are in total shorter than the old scroll location the scroll restoration won't work.
|
|
@@ -3007,6 +3335,7 @@ function $6d2962bc9370f884$export$5e4aed86c12acdd9(_ref) {
|
|
|
3007
3335
|
last_loaded = +new Date();
|
|
3008
3336
|
is_first_load = true;
|
|
3009
3337
|
});
|
|
3338
|
+
// percentage_in_view_ has equals: false so it should update even when set to the same value. That is to make sure that if the user bounces around below the "viewport" of our product listing we still start fetching as soon as is_loading_more becomes false again and we get IntersectionObserverEntries
|
|
3010
3339
|
$b8hua$createEffect($b8hua$catchify(async () => {
|
|
3011
3340
|
const be_above_percentage = is_first_load ? 50 : 75; // if first load, load earlier
|
|
3012
3341
|
if (percentage_in_view_() < be_above_percentage || is_loading_more) return;
|
|
@@ -3079,89 +3408,10 @@ function $e6dd9dfff4603d8c$export$63dd0350f8559dda(_ref) {
|
|
|
3079
3408
|
// No product card in view and not after last card, assume first card
|
|
3080
3409
|
return 0;
|
|
3081
3410
|
return last / displays_by_key_().size * 100;
|
|
3411
|
+
}, undefined, {
|
|
3412
|
+
equals: false
|
|
3082
3413
|
});
|
|
3083
3414
|
}
|
|
3084
|
-
|
|
3085
|
-
/**
|
|
3086
|
-
* Gets product_id (the thing we key the rendering on) from a display
|
|
3087
|
-
*/
|
|
3088
|
-
function $6a4c7ed6d005505c$export$548d053aba053d79(display) {
|
|
3089
|
-
if ("variant_index" in display) {
|
|
3090
|
-
const actual_display = display.variant_displays[display.variant_index];
|
|
3091
|
-
return actual_display.product_id;
|
|
3092
|
-
}
|
|
3093
|
-
return display.product_id;
|
|
3094
|
-
}
|
|
3095
|
-
function $2d7bad8684bc7f44$export$7f8bd308237ab5a5(get_displays_) {
|
|
3096
|
-
const displays_by_key_ = $b8hua$createMemo(() => {
|
|
3097
|
-
const displays = get_displays_();
|
|
3098
|
-
// We key by product_id because that's what can be used to uniquely identify products
|
|
3099
|
-
// This way <For> can optimize the rendering
|
|
3100
|
-
const map = new Map();
|
|
3101
|
-
for (let i = 0; i < displays.length; i++) {
|
|
3102
|
-
const display = displays[i];
|
|
3103
|
-
const product_id = $6a4c7ed6d005505c$export$548d053aba053d79(display);
|
|
3104
|
-
map.set(product_id, display);
|
|
3105
|
-
}
|
|
3106
|
-
return map;
|
|
3107
|
-
});
|
|
3108
|
-
return displays_by_key_;
|
|
3109
|
-
}
|
|
3110
|
-
function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
|
|
3111
|
-
let {
|
|
3112
|
-
displays_by_key_: displays_by_key_,
|
|
3113
|
-
merchant_: merchant_,
|
|
3114
|
-
market_: market_,
|
|
3115
|
-
product_card_template_: product_card_template_,
|
|
3116
|
-
do_per_elements_: do_per_elements_
|
|
3117
|
-
} = _ref;
|
|
3118
|
-
return $b8hua$createComponent((0, $b8hua$For), {
|
|
3119
|
-
get each() {
|
|
3120
|
-
return [...displays_by_key_().keys()];
|
|
3121
|
-
},
|
|
3122
|
-
children: (product_id, index) => {
|
|
3123
|
-
const owner = $b8hua$getOwner();
|
|
3124
|
-
const display_accessor = $b8hua$createMemo(() => displays_by_key_().get(product_id));
|
|
3125
|
-
const [product_card_resource] = $b8hua$createResource(display_accessor,
|
|
3126
|
-
// re-render when the reference to the display object changes
|
|
3127
|
-
// this should only be the case when the merchant or market changes and the new request has completed
|
|
3128
|
-
display => {
|
|
3129
|
-
// get display in the function that re-runs when merchant or market have changed, since the display may have changed but product_id not
|
|
3130
|
-
return product_card_template_(display, {
|
|
3131
|
-
set_on_index_change: fn => $b8hua$runWithOwner(owner, () => $b8hua$createEffect(() => fn(index()))),
|
|
3132
|
-
merchant: $b8hua$untrack(merchant_),
|
|
3133
|
-
// this means that the merchant and market provided to the template is wrong while we do another fetch, but I don't see how anyone would need to know the correct market there
|
|
3134
|
-
market: $b8hua$untrack(market_)
|
|
3135
|
-
});
|
|
3136
|
-
});
|
|
3137
|
-
const node_accessor = $cb64b315b25cfc59$export$2f0cbfbb4354bb52(product_card_resource);
|
|
3138
|
-
$b8hua$createEffect(() => {
|
|
3139
|
-
const product_card_nodes = node_accessor();
|
|
3140
|
-
const display = display_accessor();
|
|
3141
|
-
const elements = [];
|
|
3142
|
-
for (let i = 0; i < product_card_nodes.length; i++) {
|
|
3143
|
-
const element = product_card_nodes[i];
|
|
3144
|
-
if (!(element instanceof Element)) continue;
|
|
3145
|
-
elements.push(element);
|
|
3146
|
-
// Add tracking ids
|
|
3147
|
-
if (!(element instanceof HTMLElement)) continue; // Apparently only HTMLElements have dataset
|
|
3148
|
-
const {
|
|
3149
|
-
dataset: dataset
|
|
3150
|
-
} = element;
|
|
3151
|
-
const {
|
|
3152
|
-
search_result_id: search_result_id,
|
|
3153
|
-
product_listing_result_id: product_listing_result_id,
|
|
3154
|
-
recommendation_id: recommendation_id
|
|
3155
|
-
} = display;
|
|
3156
|
-
if (search_result_id) dataset.searchResultId = search_result_id;else if (product_listing_result_id) dataset.productListingResultId = product_listing_result_id;else if (recommendation_id) dataset.recommendationId = recommendation_id;
|
|
3157
|
-
}
|
|
3158
|
-
do_per_elements_ === null || do_per_elements_ === void 0 || do_per_elements_(elements, index);
|
|
3159
|
-
});
|
|
3160
|
-
return product_card_resource; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
3161
|
-
}
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
|
|
3165
3415
|
function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
|
|
3166
3416
|
let {
|
|
3167
3417
|
plp_results_: plp_results_,
|
|
@@ -5180,45 +5430,6 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
5180
5430
|
}
|
|
5181
5431
|
})))];
|
|
5182
5432
|
}
|
|
5183
|
-
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
5184
|
-
const cols_at_size = [];
|
|
5185
|
-
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
5186
|
-
var _sorted_cols_at_size;
|
|
5187
|
-
const [nb_cols, width] = sorted_cols_at_size[i];
|
|
5188
|
-
const next_width = (_sorted_cols_at_size = sorted_cols_at_size[i + 1]) === null || _sorted_cols_at_size === void 0 ? void 0 : _sorted_cols_at_size[1];
|
|
5189
|
-
const max_width = i === 0 ? "" : "".concat(width, "px");
|
|
5190
|
-
const min_width = next_width !== undefined ? "".concat(next_width + 1, "px") : "";
|
|
5191
|
-
const col_at_size = [nb_cols, min_width, max_width];
|
|
5192
|
-
cols_at_size.push(col_at_size);
|
|
5193
|
-
}
|
|
5194
|
-
return cols_at_size;
|
|
5195
|
-
};
|
|
5196
|
-
const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
|
|
5197
|
-
// Check that every element is an array
|
|
5198
|
-
const are_arrays = cols_at_size.every(element => Array.isArray(element));
|
|
5199
|
-
if (!are_arrays) throw new Error("Every element in cols_at_size must be an array");
|
|
5200
|
-
// Check width duplicates
|
|
5201
|
-
const widths = cols_at_size.map(_ref => {
|
|
5202
|
-
let [_, width] = _ref;
|
|
5203
|
-
return width;
|
|
5204
|
-
});
|
|
5205
|
-
const widths_set = new Set(widths);
|
|
5206
|
-
if (widths_set.size < widths.length) throw new Error("There are duplicate widths in cols_at_size");
|
|
5207
|
-
if (cols_at_size.length === 1) {
|
|
5208
|
-
const [nb_cols, width] = cols_at_size[0];
|
|
5209
|
-
const max_width = width !== undefined ? "".concat(width, "px") : "";
|
|
5210
|
-
return [[nb_cols, "", max_width]];
|
|
5211
|
-
}
|
|
5212
|
-
// Sort widths in ascending order
|
|
5213
|
-
const sorted_cols_at_size = [...cols_at_size].sort((a, b) => {
|
|
5214
|
-
const [_b, width_A] = a;
|
|
5215
|
-
const [_a, width_b] = b;
|
|
5216
|
-
if (width_A === undefined) return -1;
|
|
5217
|
-
if (width_b === undefined) return 1;
|
|
5218
|
-
return width_b - width_A;
|
|
5219
|
-
});
|
|
5220
|
-
return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
|
|
5221
|
-
};
|
|
5222
5433
|
function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
|
|
5223
5434
|
const component_in_error_boundary = do_with_elements => {
|
|
5224
5435
|
const error_boundary_wrapped = $74777e8fe65b3dcb$export$b69d0d92862de18b({
|
|
@@ -5734,7 +5945,7 @@ class $f5f54892fd0c7d9f$export$f34314aa9505732e {
|
|
|
5734
5945
|
*/
|
|
5735
5946
|
var $f5f54892fd0c7d9f$var$_keys_constructed_with = {
|
|
5736
5947
|
writable: true,
|
|
5737
|
-
value: new Set()
|
|
5948
|
+
value: /*@__PURE__*/new Set()
|
|
5738
5949
|
};
|
|
5739
5950
|
function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
5740
5951
|
const {
|
|
@@ -8394,38 +8605,6 @@ function $37e8c97bb6876197$export$828dcdd425fd3231(aligner) {
|
|
|
8394
8605
|
cleanup: cleanup
|
|
8395
8606
|
};
|
|
8396
8607
|
}
|
|
8397
|
-
|
|
8398
|
-
/**
|
|
8399
|
-
* Content results ContentCard look stupid on mobile if there are two columns of them, so we limit the number of columns to 1 if the screen is too small
|
|
8400
|
-
*/
|
|
8401
|
-
function $3f7203368ad0d3ca$export$ff7109b9b2b206ba(sdk_cols_at_size) {
|
|
8402
|
-
let min_width_for_more_than_one_column = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
8403
|
-
if (!sdk_cols_at_size.length) return sdk_cols_at_size;
|
|
8404
|
-
const sorted_sizes = sdk_cols_at_size.map(_ref => {
|
|
8405
|
-
let [cols, max_width] = _ref;
|
|
8406
|
-
return [cols, max_width !== null && max_width !== void 0 ? max_width : Infinity];
|
|
8407
|
-
}).sort((_ref2, _ref3) => {
|
|
8408
|
-
let [, a] = _ref2;
|
|
8409
|
-
let [, b] = _ref3;
|
|
8410
|
-
return a - b;
|
|
8411
|
-
});
|
|
8412
|
-
const [[, smallest_max_width]] = sorted_sizes;
|
|
8413
|
-
if (smallest_max_width > min_width_for_more_than_one_column)
|
|
8414
|
-
// If everything above min_width_for_more_than_one_column, we can just add a 1 column at the beginning
|
|
8415
|
-
return [[1, min_width_for_more_than_one_column], ...sdk_cols_at_size];
|
|
8416
|
-
const to_delete = [];
|
|
8417
|
-
for (let i = 0; i < sorted_sizes.length; i++) {
|
|
8418
|
-
const [, max_width] = sorted_sizes[i];
|
|
8419
|
-
if (max_width > min_width_for_more_than_one_column) continue;
|
|
8420
|
-
to_delete.push(i);
|
|
8421
|
-
}
|
|
8422
|
-
while (to_delete.length) sorted_sizes.splice(to_delete.pop(), 1);
|
|
8423
|
-
sorted_sizes.unshift([1, min_width_for_more_than_one_column]);
|
|
8424
|
-
return sorted_sizes.map(_ref4 => {
|
|
8425
|
-
let [cols, max_width] = _ref4;
|
|
8426
|
-
return max_width == Infinity ? [cols] : [cols, max_width];
|
|
8427
|
-
});
|
|
8428
|
-
}
|
|
8429
8608
|
const $eb064bc3350276c1$var$_tmpl$ = ["<div", ' class="depict plp search">', "</div>"];
|
|
8430
8609
|
function $eb064bc3350276c1$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
8431
8610
|
$eb064bc3350276c1$var$_checkPrivateRedeclaration(obj, privateMap);
|
|
@@ -8751,7 +8930,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
8751
8930
|
}
|
|
8752
8931
|
var $eb064bc3350276c1$var$_keys_constructed_with = {
|
|
8753
8932
|
writable: true,
|
|
8754
|
-
value: new Set()
|
|
8933
|
+
value: /*@__PURE__*/new Set()
|
|
8755
8934
|
};
|
|
8756
8935
|
function $eb064bc3350276c1$var$get_shared_properties(depict_search) {
|
|
8757
8936
|
const shared_properties = $eb064bc3350276c1$var$privately_shared_properties.get(depict_search);
|
|
@@ -9120,7 +9299,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
9120
9299
|
});
|
|
9121
9300
|
$f9fd3017c20b774a$var$_classPrivateFieldInitSpec(this, $f9fd3017c20b774a$var$_unload, {
|
|
9122
9301
|
writable: true,
|
|
9123
|
-
value:
|
|
9302
|
+
value: /*@__PURE__*/$b8hua$catchify(() => {
|
|
9124
9303
|
var _classPrivateFieldGet3;
|
|
9125
9304
|
if (!$b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_is_open)) return;
|
|
9126
9305
|
(_classPrivateFieldGet3 = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_disconnect_observer)) === null || _classPrivateFieldGet3 === void 0 || _classPrivateFieldGet3.call(this);
|
|
@@ -9134,7 +9313,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
9134
9313
|
});
|
|
9135
9314
|
$f9fd3017c20b774a$var$_classPrivateFieldInitSpec(this, $f9fd3017c20b774a$var$_load, {
|
|
9136
9315
|
writable: true,
|
|
9137
|
-
value:
|
|
9316
|
+
value: /*@__PURE__*/$b8hua$catchify(async els => {
|
|
9138
9317
|
$b8hua$babelruntimehelpersclassPrivateFieldSet(this, $f9fd3017c20b774a$var$_is_open, true);
|
|
9139
9318
|
// So that #load doesn't get called again
|
|
9140
9319
|
let set_should_stay_inserted;
|
|
@@ -9262,7 +9441,7 @@ var $f9fd3017c20b774a$var$_reverting_permitted = {
|
|
|
9262
9441
|
};
|
|
9263
9442
|
var $f9fd3017c20b774a$var$_visited_urls = {
|
|
9264
9443
|
writable: true,
|
|
9265
|
-
value: (() => {
|
|
9444
|
+
value: /*@__PURE__*/(() => {
|
|
9266
9445
|
// Keep track of all URLs that have been visited since the document that was initially loaded (loaded means the process where the browser creates a new `document` and `window` object).
|
|
9267
9446
|
$b8hua$catchify(async () => {
|
|
9268
9447
|
// Static initialization blocks aren't supported in MobileSafari yet, otherwise this would be one.
|
|
@@ -9284,4 +9463,4 @@ const $d399250dfa491636$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
|
|
|
9284
9463
|
const $d399250dfa491636$export$864d304a0bc46829 = "2%";
|
|
9285
9464
|
const $d399250dfa491636$export$7bf543b9d9be2c22 = (0, $fa332ea03168857c$export$b91cec6bdc6b32a1);
|
|
9286
9465
|
$b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
|
|
9287
|
-
export { $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version };
|
|
9466
|
+
export { $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version };
|