@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.
@@ -1,13 +1,243 @@
1
- import { add_to_version_info as $i7OB2$add_to_version_info, slider_fading_factory as $i7OB2$slider_fading_factory, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, catchify as $i7OB2$catchify1, dlog as $i7OB2$dlog1, camelCasifyObject as $i7OB2$camelCasifyObject, useExpandingContainer as $i7OB2$useExpandingContainer, fetch_retry as $i7OB2$fetch_retry, base_url as $i7OB2$base_url, dwarn as $i7OB2$dwarn, slider_fractional_factory as $i7OB2$slider_fractional_factory, make_random_classname as $i7OB2$make_random_classname, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, report as $i7OB2$report, observer as $i7OB2$observer, javascript_media_query as $i7OB2$javascript_media_query, queueMacroTask as $i7OB2$queueMacroTask, findMostFrequentItem as $i7OB2$findMostFrequentItem, standard_price_format as $i7OB2$standard_price_format, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, ContainedImage as $i7OB2$ContainedImage, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, use_href_accessor as $i7OB2$use_href_accessor, get_session_id as $i7OB2$get_session_id, add_version_query_params as $i7OB2$add_version_query_params, hex_to_rgb as $i7OB2$hex_to_rgb, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, snakeCasifyObject as $i7OB2$snakeCasifyObject, sort_obj as $i7OB2$sort_obj, make_url_with_query_params as $i7OB2$make_url_with_query_params, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
2
- import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify, ListenableSet as $i7OB2$ListenableSet, use_href_accessor as $i7OB2$use_href_accessor1, queueMacroTask as $i7OB2$queueMacroTask1, report as $i7OB2$report1 } from "@depict-ai/utilishared/latest";
3
- import { createRoot as $i7OB2$createRoot, createSignal as $i7OB2$createSignal, createEffect as $i7OB2$createEffect, onCleanup as $i7OB2$onCleanup, createContext as $i7OB2$createContext, Show as $i7OB2$Show, useContext as $i7OB2$useContext, createMemo as $i7OB2$createMemo, untrack as $i7OB2$untrack, For as $i7OB2$For, getOwner as $i7OB2$getOwner, createResource as $i7OB2$createResource, runWithOwner as $i7OB2$runWithOwner, mergeProps as $i7OB2$mergeProps1, Suspense as $i7OB2$Suspense, createRenderEffect as $i7OB2$createRenderEffect, Index as $i7OB2$Index, createUniqueId as $i7OB2$createUniqueId, createComputed as $i7OB2$createComputed, ErrorBoundary as $i7OB2$ErrorBoundary, splitProps as $i7OB2$splitProps, on as $i7OB2$on, batch as $i7OB2$batch, createSelector as $i7OB2$createSelector, children as $i7OB2$children, createReaction as $i7OB2$createReaction, mapArray as $i7OB2$mapArray } from "solid-js";
4
- import { ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, createComponent as $i7OB2$createComponent, isServer as $i7OB2$isServer, insert as $i7OB2$insert, ssrAttribute as $i7OB2$ssrAttribute, ssrStyle as $i7OB2$ssrStyle, mergeProps as $i7OB2$mergeProps, ssrElement as $i7OB2$ssrElement, ssrClassList as $i7OB2$ssrClassList, spread as $i7OB2$spread, Dynamic as $i7OB2$Dynamic } from "solid-js/web";
1
+ import { add_to_version_info as $i7OB2$add_to_version_info, layout_media_query_header as $i7OB2$layout_media_query_header, dwarn as $i7OB2$dwarn, javascript_media_query as $i7OB2$javascript_media_query, slider_fading_factory as $i7OB2$slider_fading_factory, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, catchify as $i7OB2$catchify1, dlog as $i7OB2$dlog1, camelCasifyObject as $i7OB2$camelCasifyObject, useExpandingContainer as $i7OB2$useExpandingContainer, fetch_retry as $i7OB2$fetch_retry, base_url as $i7OB2$base_url, slider_fractional_factory as $i7OB2$slider_fractional_factory, make_random_classname as $i7OB2$make_random_classname, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, report as $i7OB2$report, observer as $i7OB2$observer, queueMacroTask as $i7OB2$queueMacroTask, findMostFrequentItem as $i7OB2$findMostFrequentItem, standard_price_format as $i7OB2$standard_price_format, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, ContainedImage as $i7OB2$ContainedImage, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, use_href_accessor as $i7OB2$use_href_accessor, get_session_id as $i7OB2$get_session_id, add_version_query_params as $i7OB2$add_version_query_params, hex_to_rgb as $i7OB2$hex_to_rgb, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, snakeCasifyObject as $i7OB2$snakeCasifyObject, sort_obj as $i7OB2$sort_obj, make_url_with_query_params as $i7OB2$make_url_with_query_params, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
2
+ import { createComponent as $i7OB2$createComponent, ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, ssrStyle as $i7OB2$ssrStyle, isServer as $i7OB2$isServer, insert as $i7OB2$insert, ssrAttribute as $i7OB2$ssrAttribute, mergeProps as $i7OB2$mergeProps1, ssrElement as $i7OB2$ssrElement, ssrClassList as $i7OB2$ssrClassList, spread as $i7OB2$spread, Dynamic as $i7OB2$Dynamic } from "solid-js/web";
3
+ import { createEffect as $i7OB2$createEffect, createComputed as $i7OB2$createComputed, createMemo as $i7OB2$createMemo, mapArray as $i7OB2$mapArray, createSignal as $i7OB2$createSignal, Show as $i7OB2$Show, mergeProps as $i7OB2$mergeProps, createResource as $i7OB2$createResource, Suspense as $i7OB2$Suspense, onCleanup as $i7OB2$onCleanup, createRoot as $i7OB2$createRoot, createContext as $i7OB2$createContext, useContext as $i7OB2$useContext, untrack as $i7OB2$untrack, For as $i7OB2$For, getOwner as $i7OB2$getOwner, runWithOwner as $i7OB2$runWithOwner, createRenderEffect as $i7OB2$createRenderEffect, Index as $i7OB2$Index, createUniqueId as $i7OB2$createUniqueId, ErrorBoundary as $i7OB2$ErrorBoundary, splitProps as $i7OB2$splitProps, on as $i7OB2$on, batch as $i7OB2$batch, createSelector as $i7OB2$createSelector, children as $i7OB2$children, createReaction as $i7OB2$createReaction } from "solid-js";
5
4
  import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from "solid-js/store";
5
+ import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify, ListenableSet as $i7OB2$ListenableSet, use_href_accessor as $i7OB2$use_href_accessor1, queueMacroTask as $i7OB2$queueMacroTask1, report as $i7OB2$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.29";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.31";
11
+ function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
+ const signal = $i7OB2$createSignal(false);
13
+ $i7OB2$onCleanup($i7OB2$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 = $i7OB2$createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
20
+ const media_query = $i7OB2$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 = $i7OB2$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
+ $i7OB2$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
+ var $d20eff0aadc28983$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
36
+ function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
37
+ // Work around https://github.com/solidjs/solid/issues/1980
38
+ return $i7OB2$ssr($d20eff0aadc28983$var$_tmpl$, $i7OB2$ssrHydrationKey(), `${$i7OB2$escape(props.class, true) || ""} depict-placeholder`, $i7OB2$ssrStyle(props.style));
39
+ }
40
+ function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
41
+ const style = $i7OB2$createMemo(() => {
42
+ const {
43
+ style: style,
44
+ height: height,
45
+ width: width,
46
+ aspectRatio: aspectRatio
47
+ } = props;
48
+ const is_image = aspectRatio != undefined;
49
+ const size_data = is_image ? {
50
+ width: "100%",
51
+ "padding-bottom": `calc(calc(1 / ${aspectRatio}) * 100%)`
52
+ } : {
53
+ width: width,
54
+ height: height
55
+ };
56
+ return {
57
+ display: "block",
58
+ ...(style || {}),
59
+ ...size_data
60
+ };
61
+ });
62
+ return $i7OB2$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
63
+ get style() {
64
+ return style();
65
+ },
66
+ get ["class"]() {
67
+ return props.class;
68
+ }
69
+ });
70
+ }
71
+ var $e7a7eb102ddc0c79$var$_tmpl$ = ["<div", ' class="content-block-wrapper" style="', '">', "</div>"];
72
+ function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
73
+ content_blocks_: incoming_content_blocks,
74
+ cols_at_size_: cols_at_size_,
75
+ set_top_row_shortened_by_: set_top_row_shortened_by_
76
+ }) {
77
+ // these are by row
78
+ const [content_blocks, set_content_blocks] = $i7OB2$createStore([]);
79
+ const n_cols_currently_showing_ = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
80
+ $i7OB2$createEffect(() => {
81
+ const incoming_value = incoming_content_blocks();
82
+ if (!incoming_value) {
83
+ set_content_blocks([]);
84
+ return;
85
+ }
86
+ set_content_blocks($i7OB2$reconcile(incoming_value, {
87
+ key: "content"
88
+ })); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
89
+ });
90
+
91
+ const get_wrapped_blocks_ = $e7a7eb102ddc0c79$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
92
+ $i7OB2$createComputed(() => {
93
+ // 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
94
+ const top_row_block = get_wrapped_blocks_()[0];
95
+ const blocks_in_top_row_taken = top_row_block?.span_columns;
96
+ if (blocks_in_top_row_taken == undefined) {
97
+ // Fall back to zero if no content block in top row, since then no blocks in top row are taken
98
+ set_top_row_shortened_by_(0);
99
+ return;
100
+ }
101
+ set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
102
+ });
103
+
104
+ return $i7OB2$createMemo(() => $e7a7eb102ddc0c79$export$92aa5d691d588f3f({
105
+ wrapped_blocks_: get_wrapped_blocks_(),
106
+ n_cols_currently_showing_: n_cols_currently_showing_()
107
+ }).content_blocks_by_index_);
108
+ }
109
+ function $e7a7eb102ddc0c79$export$92aa5d691d588f3f({
110
+ wrapped_blocks_: wrapped_blocks_,
111
+ n_cols_currently_showing_: n_cols_currently_showing_
112
+ }) {
113
+ // This computation should be quite cheap since it just moves around things into an array
114
+ const content_blocks_by_index_ = [];
115
+ const constructed_block_arrays = new WeakSet();
116
+ // Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
117
+ 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
118
+ if (!n_cols_currently_showing_)
119
+ // Nope out of here if we don't know how many columns are showing
120
+ return {
121
+ content_blocks_by_index_: content_blocks_by_index_
122
+ };
123
+ for (let i = 0; i < wrapped_blocks_.length; i++) {
124
+ // i = row to show at
125
+ const block = wrapped_blocks_[i];
126
+ if (!block) continue; // Array can have holes/not defined places
127
+ const index_of_first_item_in_row = i * n_cols_currently_showing_;
128
+ const index_of_last_item_in_row = index_of_first_item_in_row + n_cols_currently_showing_;
129
+ const {
130
+ span_rows: span_rows,
131
+ position: position,
132
+ span_columns: span_columns
133
+ } = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
134
+ let target_index;
135
+ 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));
136
+ // Calculate displacement of us by content blocks above us
137
+ let displacement_by_added_blocks = 0;
138
+ for (let j = 0; j < i; j++) {
139
+ const row = displaced_products_[j];
140
+ if (row === undefined) continue; // there were no blocks in this row
141
+ let displaced_items_in_row;
142
+ if (typeof row === "number") displaced_items_in_row = row;else {
143
+ displaced_items_in_row = row.filter(item => item).length;
144
+ displaced_products_[j] = displaced_items_in_row;
145
+ }
146
+ displacement_by_added_blocks += displaced_items_in_row;
147
+ }
148
+ const index_of_us_in_row = target_index - index_of_first_item_in_row;
149
+ for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products_[i]?.[j])
150
+ // Add blocks in our *current* row to the displacement, but only the ones to our left
151
+ displacement_by_added_blocks++;
152
+ // Add block to output array at the correct index
153
+ const final_target_index = target_index - displacement_by_added_blocks;
154
+ const existing_block = content_blocks_by_index_[final_target_index];
155
+ const block_content = block.content;
156
+ // 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
157
+ if (existing_block) {
158
+ if (constructed_block_arrays.has(existing_block))
159
+ // Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
160
+ existing_block.push(block_content);else {
161
+ const array = [existing_block, block_content];
162
+ constructed_block_arrays.add(array);
163
+ content_blocks_by_index_[final_target_index] = array;
164
+ }
165
+ } else content_blocks_by_index_[final_target_index] = block_content;
166
+ // Update displacement
167
+ for (let j = 0; j < span_rows; j++) {
168
+ const row = displaced_products_[i + j] ||= [];
169
+ for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
170
+ }
171
+ }
172
+ return {
173
+ content_blocks_by_index_: content_blocks_by_index_,
174
+ displaced_products_: displaced_products_
175
+ };
176
+ }
177
+ /**
178
+ * 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.
179
+ * Then renders the content and wraps it into a div with the correct styling.
180
+ * Also caps span_columns to max available columns
181
+ */
182
+ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
183
+ const get_wrapped_blocks = $i7OB2$mapArray(() => rendered_content_blocks, block => {
184
+ if (!block) return;
185
+ const final_span_columns = $i7OB2$createMemo(() => Math.min(block.span_columns, max_span_columns() ?? Infinity));
186
+ // 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
187
+ const final_span_rows = $i7OB2$createMemo(() => final_span_columns() === max_span_columns() ? 1 : block.span_rows);
188
+ const [rendering_delayed, set_rendering_delayed_] = $i7OB2$createSignal(true);
189
+ const content = $i7OB2$createComponent((0, $i7OB2$Show), {
190
+ get when() {
191
+ return !rendering_delayed();
192
+ },
193
+ get children() {
194
+ return $i7OB2$ssr($e7a7eb102ddc0c79$var$_tmpl$, $i7OB2$ssrHydrationKey(), "grid-column:" + `span ${$i7OB2$escape(final_span_columns(), true)}` + (";grid-row:" + `span ${$i7OB2$escape(final_span_rows(), true)}`) + (";spans_columns_variable_name:" + $i7OB2$escape(final_span_columns(), true)), $i7OB2$escape($i7OB2$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
195
+ get content() {
196
+ return block.content;
197
+ }
198
+ })));
199
+ }
200
+ });
201
+ return $i7OB2$mergeProps(block, {
202
+ // Create content divs for the blocks with as much fine-grained diffing as possible?
203
+ content: () => {
204
+ // 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
205
+ // 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
206
+ set_rendering_delayed_(false);
207
+ return content;
208
+ },
209
+ get span_columns() {
210
+ // Cap max width of block to the number of columns available, for everyone downstream
211
+ return final_span_columns();
212
+ },
213
+ get span_rows() {
214
+ return final_span_rows();
215
+ }
216
+ });
217
+ });
218
+ return get_wrapped_blocks;
219
+ }
220
+ /**
221
+ * 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.
222
+ */
223
+ function $e7a7eb102ddc0c79$var$RenderContent(props) {
224
+ const [resource] = $i7OB2$createResource(() => props.content,
225
+ // Could be reactive
226
+ fn => fn());
227
+ $i7OB2$createEffect(() => {
228
+ if (resource.error) console.error("Error in content block rendering", resource.error);
229
+ });
230
+ // 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)
231
+ return $i7OB2$createComponent((0, $i7OB2$Suspense), {
232
+ get fallback() {
233
+ return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
234
+ width: "100%",
235
+ height: "max(100%, 400px)"
236
+ });
237
+ },
238
+ children: resource
239
+ });
240
+ }
11
241
  let $4eb0a704f8f30273$var$elementsHoveredSignal;
12
242
  let $4eb0a704f8f30273$var$consumersSignal;
13
243
  function $4eb0a704f8f30273$export$d4d96868197be50e() {
@@ -684,7 +914,7 @@ var $c8d5ff4524619fcd$var$_tmpl$ = ["<div", ' class="', '">', "</div>"],
684
914
  $c8d5ff4524619fcd$var$_tmpl$2 = ["<style", ' type="text/css">', "</style>"];
685
915
  function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
686
916
  const container_class = "x" + $i7OB2$createUniqueId();
687
- const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps(() => props.element_attributes, {
917
+ const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps1(() => props.element_attributes, {
688
918
  classList: {
689
919
  [container_class]: true
690
920
  }
@@ -820,7 +1050,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
820
1050
  } = slider;
821
1051
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
822
1052
  // Do like this, so we don't have to call mergeProps ourselves
823
- $i7OB2$createComponent(Layout, $i7OB2$mergeProps({
1053
+ $i7OB2$createComponent(Layout, $i7OB2$mergeProps1({
824
1054
  rows: "all",
825
1055
  layout: "slider"
826
1056
  }, layout_options_));
@@ -912,49 +1142,6 @@ function $011607bdf658f807$export$e68cff63f76bd15b(props) {
912
1142
  function $011607bdf658f807$export$8d0c4fdbb05a2f2e() {
913
1143
  return $i7OB2$useContext($011607bdf658f807$var$ListingContext);
914
1144
  }
915
- var $d20eff0aadc28983$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
916
- function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
917
- // Work around https://github.com/solidjs/solid/issues/1980
918
- return $i7OB2$ssr($d20eff0aadc28983$var$_tmpl$, $i7OB2$ssrHydrationKey(), `${$i7OB2$escape(props.class, true) || ""} depict-placeholder`, $i7OB2$ssrStyle(props.style));
919
- }
920
- function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
921
- const style = $i7OB2$createMemo(() => {
922
- const {
923
- style: style,
924
- height: height,
925
- width: width,
926
- aspectRatio: aspectRatio
927
- } = props;
928
- const is_image = aspectRatio != undefined;
929
- const size_data = is_image ? {
930
- width: "100%",
931
- "padding-bottom": `calc(calc(1 / ${aspectRatio}) * 100%)`
932
- } : {
933
- width: width,
934
- height: height
935
- };
936
- return {
937
- display: "block",
938
- ...(style || {}),
939
- ...size_data
940
- };
941
- });
942
- return $i7OB2$createComponent((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
943
- get style() {
944
- return style();
945
- },
946
- get ["class"]() {
947
- return props.class;
948
- }
949
- });
950
- }
951
- function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
952
- const signal = $i7OB2$createSignal(false);
953
- $i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
954
- matches: matches
955
- }) => signal[1](matches)).remove);
956
- return signal[0];
957
- }
958
1145
  function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
959
1146
  const style = $i7OB2$createMemo(() => {
960
1147
  const {
@@ -1082,7 +1269,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1082
1269
  if (loading === "force-lazy") return true;
1083
1270
  return loading === "lazy" && !isPrioritisedImage();
1084
1271
  });
1085
- const modifiedOtherAttributes = $i7OB2$mergeProps1(otherAttributes, {
1272
+ const modifiedOtherAttributes = $i7OB2$mergeProps(otherAttributes, {
1086
1273
  get loading() {
1087
1274
  return shouldActuallyEnableLazyLoading() ? "lazy" : undefined;
1088
1275
  }
@@ -1152,7 +1339,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1152
1339
  $i7OB2$onCleanup(() => prevValue && aspectRatios.delete(prevValue));
1153
1340
  }
1154
1341
  $i7OB2$onCleanup(() => gotCleanedUp = true);
1155
- $i7OB2$spread(img, $i7OB2$mergeProps1(modifiedOtherAttributes), false, true);
1342
+ $i7OB2$spread(img, $i7OB2$mergeProps(modifiedOtherAttributes), false, true);
1156
1343
  $i7OB2$createRenderEffect(() => {
1157
1344
  props.src;
1158
1345
  srcJustChanged = true;
@@ -1256,7 +1443,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1256
1443
  $i7OB2$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
1257
1444
  });
1258
1445
 
1259
- $i7OB2$insert(container, $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps({
1446
+ $i7OB2$insert(container, $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps1({
1260
1447
  get size() {
1261
1448
  return $i7OB2$createMemo(() => currentImageSize()?.() || 0);
1262
1449
  },
@@ -1271,7 +1458,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1271
1458
  return container;
1272
1459
  }
1273
1460
  function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
1274
- return $i7OB2$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $i7OB2$mergeProps(props, {
1461
+ return $i7OB2$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $i7OB2$mergeProps1(props, {
1275
1462
  get imgProps() {
1276
1463
  return {
1277
1464
  ...props.imgProps,
@@ -1322,7 +1509,7 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
1322
1509
  const href = $i7OB2$createMemo(() => variantToUse()?.page_url);
1323
1510
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1324
1511
  const title = $i7OB2$createMemo(() => variantToUse()?.title);
1325
- return $i7OB2$ssrElement("a", $i7OB2$mergeProps({
1512
+ return $i7OB2$ssrElement("a", $i7OB2$mergeProps1({
1326
1513
  "class": "look-item"
1327
1514
  }, () => enableLink() ? {
1328
1515
  href: href()
@@ -1366,7 +1553,7 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
1366
1553
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1367
1554
  },
1368
1555
  get children() {
1369
- return $i7OB2$ssr($08a49ecdcd5beaca$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("span", $i7OB2$mergeProps({
1556
+ return $i7OB2$ssr($08a49ecdcd5beaca$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("span", $i7OB2$mergeProps1({
1370
1557
  "class": "d-title line-clamp"
1371
1558
  }, () => title() && {
1372
1559
  title: title()
@@ -1814,7 +2001,7 @@ function $3da8afe3ed57cf34$export$7da560f849543dff({
1814
2001
  get children() {
1815
2002
  return $i7OB2$ssr($3da8afe3ed57cf34$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape(title()));
1816
2003
  }
1817
- }), $i7OB2$ssr($3da8afe3ed57cf34$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps({
2004
+ }), $i7OB2$ssr($3da8afe3ed57cf34$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
1818
2005
  get rows() {
1819
2006
  return rows_object_();
1820
2007
  },
@@ -1943,7 +2130,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
1943
2130
  return $i7OB2$createComponent((0, $c4492d24952ed731$export$d41d19e89346fa2), sharedOptions);
1944
2131
  },
1945
2132
  get children() {
1946
- return $i7OB2$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $i7OB2$mergeProps(sharedOptions, {
2133
+ return $i7OB2$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $i7OB2$mergeProps1(sharedOptions, {
1947
2134
  view_more_button_: () => props.gridOptions_?.view_more_button,
1948
2135
  max_rows_: () => props.gridOptions_?.max_rows
1949
2136
  }));
@@ -1991,7 +2178,7 @@ async function $07ef910e8ef6b783$var$runDisplayTransformersForLooks(baseData, li
1991
2178
  }) : displaysToTransform;
1992
2179
  const transformedListings = await transformedListingsPromise;
1993
2180
  const transformedDisplayById = Object.fromEntries(transformedProducts.map(display => [$16351e4c87b90b3d$export$548d053aba053d79(display), display]));
1994
- return transformedListings.map(listing => $i7OB2$mergeProps1(listing, {
2181
+ return transformedListings.map(listing => $i7OB2$mergeProps(listing, {
1995
2182
  // use mergeProps because in preview browser we add getters in this object, that would be called too early otherwise
1996
2183
  displays: (displayIdsPerListingId[listing.listing_id] || []).map(displayId => transformedDisplayById[displayId]).filter(v => v)
1997
2184
  }));
@@ -2386,7 +2573,7 @@ function $694b7f90501fea4c$export$5d2caaa6b530761c() {
2386
2573
  }
2387
2574
  var $19976a74d273070d$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>';
2388
2575
  function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
2389
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
2576
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
2390
2577
  xmlns: "http://www.w3.org/2000/svg",
2391
2578
  width: "21.064",
2392
2579
  height: "21.064",
@@ -2486,7 +2673,7 @@ function $f3213c0640246d58$export$ba17c5b7e6dda39f({
2486
2673
  }
2487
2674
  var $16f0ed5ea30d8d9c$var$_tmpl$ = '<path d="M19.811 20.174l-6.234-6.809a7.96 7.96 0 0 0 .923-1.179c.274-.424.502-.865.687-1.323a8.04 8.04 0 0 0 .42-1.436 7.88 7.88 0 0 0 .144-1.507c0-.526-.051-1.042-.154-1.548-.096-.506-.243-.995-.441-1.466s-.441-.919-.728-1.343a8.28 8.28 0 0 0-.984-1.21 7.86 7.86 0 0 0-1.2-.984A7.56 7.56 0 0 0 10.89.651C10.418.453 9.929.302 9.423.2S8.401.046 7.875.046 6.833.097 6.327.2 5.332.453 4.86.651a7.56 7.56 0 0 0-1.354.718c-.431.287-.831.615-1.2.984a8.28 8.28 0 0 0-.984 1.21 7.73 7.73 0 0 0-.728 1.343c-.198.472-.349.96-.451 1.466A8.31 8.31 0 0 0 0 7.921a8.31 8.31 0 0 0 .144 1.548c.103.506.253.995.451 1.466a8.08 8.08 0 0 0 .728 1.354 7.86 7.86 0 0 0 .984 1.2 7.54 7.54 0 0 0 1.2.995c.431.287.882.53 1.354.728.472.191.96.338 1.466.441a8.31 8.31 0 0 0 1.548.144c.451 0 .896-.038 1.333-.113a7.83 7.83 0 0 0 1.282-.328 7.55 7.55 0 0 0 1.2-.533 8.08 8.08 0 0 0 1.107-.749l6.245 6.809a.45.45 0 0 0 .174.123.55.55 0 0 0 .205.041.61.61 0 0 0 .195-.031c.061-.021.116-.055.164-.102.109-.096.164-.219.164-.369.007-.144-.038-.267-.133-.369zM1.046 7.921c0-.937.178-1.818.533-2.646.362-.834.851-1.559 1.466-2.174.622-.615 1.347-1.101 2.174-1.456.827-.362 1.712-.543 2.656-.543s1.829.181 2.656.543c.827.355 1.548.841 2.164 1.456.622.615 1.111 1.34 1.466 2.174a6.52 6.52 0 0 1 .543 2.646c0 .943-.181 1.829-.543 2.656a6.89 6.89 0 0 1-1.466 2.174c-.615.615-1.336 1.104-2.164 1.466-.827.356-1.712.533-2.656.533s-1.829-.178-2.656-.533c-.827-.362-1.552-.851-2.174-1.466-.615-.622-1.104-1.347-1.466-2.174-.355-.827-.533-1.712-.533-2.656z"></path>';
2488
2675
  function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
2489
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
2676
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
2490
2677
  xmlns: "http://www.w3.org/2000/svg",
2491
2678
  width: "20",
2492
2679
  height: "22",
@@ -2495,7 +2682,7 @@ function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
2495
2682
  }
2496
2683
  var $190927650b4840eb$var$_tmpl$ = '<path d="M56 26.455a13.71 13.71 0 0 0-9.578 3.967A13.71 13.71 0 0 0 42.455 40v176a13.71 13.71 0 0 0 3.967 9.578A13.71 13.71 0 0 0 56 229.545h144A13.71 13.71 0 0 0 213.545 216V88a2.456 2.456 0 0 1 0-.002c.001-1.452-.597-2.895-1.623-3.922l-55.998-55.998a5.61 5.61 0 0 0-3.922-1.623 2.456 2.456 0 0 1-.002 0zm0 11.09h88A2.456 2.456 0 0 1 146.455 40v48c0 2.903 2.642 5.545 5.545 5.545h48A2.456 2.456 0 0 1 202.455 96v120a2.456 2.456 0 0 1-2.455 2.455H56A2.456 2.456 0 0 1 53.545 216V40A2.456 2.456 0 0 1 56 37.545zm103.061 11.498a2.456 2.456 0 0 1 2.676.531l28.689 28.689a2.456 2.456 0 0 1-1.736 4.191H160A2.456 2.456 0 0 1 157.545 80V51.311a2.456 2.456 0 0 1 1.516-2.268zM96 130.455c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545zm0 32c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545z"></path>';
2497
2684
  function $190927650b4840eb$export$605674723bcc715c(props = {}) {
2498
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
2685
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
2499
2686
  xmlns: "http://www.w3.org/2000/svg",
2500
2687
  width: "32",
2501
2688
  height: "32",
@@ -3047,7 +3234,7 @@ function $2449872a62a75a20$export$ebdc3711f7e02ccd(what_to_watch) {
3047
3234
  }
3048
3235
  var $081752ca508a876f$var$_tmpl$ = '<path fill-rule="evenodd" d="M9.563 3.438c-3.107 0-5.625 2.518-5.625 5.625s2.518 5.625 5.625 5.625 5.625-2.518 5.625-5.625-2.518-5.625-5.625-5.625zm-7.5 5.625a7.5 7.5 0 1 1 15 0c0 1.733-.588 3.329-1.575 4.599l3.176 3.176a.94.94 0 0 1 0 1.326.94.94 0 0 1-1.326 0l-3.176-3.176a7.47 7.47 0 0 1-4.599 1.575 7.5 7.5 0 0 1-7.5-7.5z" fill="#0f0f0f"></path>';
3049
3236
  function $081752ca508a876f$export$f7658c347b037c3f(props = {}) {
3050
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
3237
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
3051
3238
  xmlns: "http://www.w3.org/2000/svg",
3052
3239
  width: "21",
3053
3240
  height: "20",
@@ -3091,7 +3278,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
3091
3278
  const BackButton = () => $i7OB2$createComponent((0, $i7OB2$Show), {
3092
3279
  when: on_back_,
3093
3280
  get children() {
3094
- return $i7OB2$ssrElement("button", $i7OB2$mergeProps({
3281
+ return $i7OB2$ssrElement("button", $i7OB2$mergeProps1({
3095
3282
  "class": "back",
3096
3283
  type: "button",
3097
3284
  get ["aria-label"]() {
@@ -3105,7 +3292,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
3105
3292
  }), () => isNewModal ? $i7OB2$escape($i7OB2$createComponent((0, $19976a74d273070d$export$3b621d86b1566b2), {})) : $i7OB2$escape($i7OB2$createComponent(BackIcon_, {})), true);
3106
3293
  }
3107
3294
  });
3108
- const ClearButton = () => $i7OB2$ssrElement("button", $i7OB2$mergeProps({
3295
+ const ClearButton = () => $i7OB2$ssrElement("button", $i7OB2$mergeProps1({
3109
3296
  type: "button",
3110
3297
  get ["class"]() {
3111
3298
  return `clear ${searchFieldEmpty() ? "empty" : ""}`;
@@ -3655,7 +3842,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
3655
3842
  selected_index_: [read_selected_index_, write_selected_index_]
3656
3843
  }) {
3657
3844
  const href = $i7OB2$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
3658
- const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps(props, {
3845
+ const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps1(props, {
3659
3846
  get href() {
3660
3847
  return href();
3661
3848
  }
@@ -3945,7 +4132,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
3945
4132
  $i7OB2$createComputed($i7OB2$on(search_field_value_[0], () => !suggestions_updating_blocked() && set_selected_index(undefined), {
3946
4133
  defer: true
3947
4134
  })); // reset autocomplete position if query changes
3948
- return [$i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps(sharedSuggestionProps, {
4135
+ return [$i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps1(sharedSuggestionProps, {
3949
4136
  get title_() {
3950
4137
  return i18n_.popular_;
3951
4138
  },
@@ -3955,7 +4142,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
3955
4142
  return itemIndexes_.suggestionsIndex_;
3956
4143
  },
3957
4144
  showPlaceholders_: () => showPlaceholders() || noResults_() && !noResultsPopularSuggestions.latest
3958
- })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps(sharedSuggestionProps, {
4145
+ })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps1(sharedSuggestionProps, {
3959
4146
  get title_() {
3960
4147
  return i18n_.previous_;
3961
4148
  },
@@ -3966,7 +4153,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
3966
4153
  },
3967
4154
  extraTitleRowElements_: () => $i7OB2$ssr($2f3171b02c8f4a5d$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.clear_all_from_filter_crumbs_())),
3968
4155
  showPlaceholders_: () => false
3969
- })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps(sharedSuggestionProps, {
4156
+ })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps1(sharedSuggestionProps, {
3970
4157
  get title_() {
3971
4158
  return i18n_.content_;
3972
4159
  },
@@ -4369,7 +4556,7 @@ function $024fbc0a2d796fad$export$b2539bed5023c21c(props) {
4369
4556
  return $i7OB2$createComponent($024fbc0a2d796fad$var$TabsContext.Provider, {
4370
4557
  value: new (0, $i7OB2$ListenableSet)(),
4371
4558
  get children() {
4372
- return $i7OB2$createComponent($024fbc0a2d796fad$var$ActualTabs, $i7OB2$mergeProps(props, {
4559
+ return $i7OB2$createComponent($024fbc0a2d796fad$var$ActualTabs, $i7OB2$mergeProps1(props, {
4373
4560
  get children() {
4374
4561
  return props.children;
4375
4562
  }
@@ -4399,7 +4586,7 @@ function $024fbc0a2d796fad$var$ActualTabs(props) {
4399
4586
  },
4400
4587
  children: item => {
4401
4588
  const weSelected = $i7OB2$createMemo(() => isSelected(item().id));
4402
- return $i7OB2$createComponent((0, $i7OB2$Dynamic), $i7OB2$mergeProps({
4589
+ return $i7OB2$createComponent((0, $i7OB2$Dynamic), $i7OB2$mergeProps1({
4403
4590
  get component() {
4404
4591
  return props.AnchorComponent;
4405
4592
  },
@@ -4478,7 +4665,7 @@ function $024fbc0a2d796fad$export$3e41faf802a29e71(props) {
4478
4665
  if (!currentTabs) throw new Error("Tab must be a child of Tabs");
4479
4666
  const id = $i7OB2$createUniqueId();
4480
4667
  const ourSet = currentTabs;
4481
- const extendedProps = $i7OB2$mergeProps1({
4668
+ const extendedProps = $i7OB2$mergeProps({
4482
4669
  id: id
4483
4670
  }, props);
4484
4671
  ourSet.add(extendedProps);
@@ -4895,7 +5082,7 @@ function $8560c919ff763930$var$ActualShopTheLookButton(props) {
4895
5082
  const button = $i7OB2$ssrElement("button", localProps.buttonAttributes, () => $i7OB2$escape(localProps?.buttonAttributes?.children) || "Shop the look", true);
4896
5083
  $i7OB2$createEffect(() => button.style.display = displayStyleValue()); // Set our attributes like this, so we allow total control over the button from the outside via buttonAttributes
4897
5084
  $i7OB2$createEffect(() => !hasAnythingToShow() && closeModal()); // close modal if we ever get into the state of having it open and not having anything to show
4898
- $8560c919ff763930$var$modalProps = $i7OB2$mergeProps1(partForModal, {
5085
+ $8560c919ff763930$var$modalProps = $i7OB2$mergeProps(partForModal, {
4899
5086
  products_to_shop_: products_to_shop_
4900
5087
  });
4901
5088
  button.addEventListener("click", openModal);
@@ -5287,7 +5474,7 @@ const $49b79728e7d9e2a1$export$48513f6b9f8ce62d = props => {
5287
5474
  };
5288
5475
  var $f8a56ba74eedd0c6$var$_tmpl$ = '<path d="M10.173 5.548H5.5V.875c0-.075-.027-.14-.081-.193S5.301.601 5.226.601s-.14.027-.193.081-.081.118-.081.193v4.673H.274c-.075 0-.14.027-.193.081A.27.27 0 0 0 0 5.827c0 .075.027.14.081.193s.118.081.193.081h4.678v4.673c0 .075.027.14.081.193s.118.081.193.081.14-.027.193-.081.081-.118.081-.193V6.101h4.673a.27.27 0 0 0 .199-.081c.054-.054.08-.118.08-.193a.27.27 0 0 0-.279-.279z" fill="#000"></path>';
5289
5476
  function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
5290
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps(props, {
5477
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1(props, {
5291
5478
  xmlns: "http://www.w3.org/2000/svg",
5292
5479
  width: "11",
5293
5480
  height: "12"
@@ -6431,7 +6618,7 @@ const $93716a9ad0dea854$export$414f6a19d38e655c = ({
6431
6618
  const MakeButton = attributes => {
6432
6619
  const label = $i7OB2$createMemo(() => value().name_ || value().value_ + "");
6433
6620
  const count_zero = $i7OB2$createMemo(() => value().count_ === 0);
6434
- return $i7OB2$ssrElement("button", $i7OB2$mergeProps(attributes, {
6621
+ return $i7OB2$ssrElement("button", $i7OB2$mergeProps1(attributes, {
6435
6622
  get disabled() {
6436
6623
  return count_zero() && !is_selected();
6437
6624
  },
@@ -6733,7 +6920,7 @@ var $12497d09ef87296e$export$2e2bcd8739ae039 = {
6733
6920
  };
6734
6921
  var $9bc34983fc5f7bdb$var$_tmpl$ = '<path d="M4.617 12.738a.48.48 0 0 1-.164-.027c-.051-.023-.094-.055-.129-.098L.125 8.414A.39.39 0 0 1 0 8.117c0-.113.039-.211.125-.293s.18-.125.293-.125.215.043.297.125l3.902 3.902L16.086.262c.082-.082.18-.125.297-.125s.211.043.293.125.125.184.125.301-.043.215-.125.297L4.914 12.613c-.039.043-.086.078-.141.098s-.102.027-.156.027zm0 0"></path>';
6735
6922
  function $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4(props = {}) {
6736
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
6923
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
6737
6924
  xmlns: "http://www.w3.org/2000/svg",
6738
6925
  width: "16.8",
6739
6926
  height: "14"
@@ -7664,7 +7851,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
7664
7851
  // Filter out our transformed ancestors
7665
7852
  const transformedAncestors = Object.fromEntries(transformerResult.filter(item => item.is_suggestion === false).map(item => [item.listing_id, item]));
7666
7853
  // Add the now transformed ancestors into the ancestors of the listing suggestions
7667
- const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $i7OB2$mergeProps1(item, {
7854
+ const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $i7OB2$mergeProps(item, {
7668
7855
  // Use mergeProps instead of spread since page_url and other properties could be a getter that solid components should call
7669
7856
  ancestors: item.ancestors.map(ancestor => {
7670
7857
  const newAncestor = transformedAncestors[ancestor.listing_id];
@@ -7846,7 +8033,8 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
7846
8033
  breadcrumbs: [],
7847
8034
  quick_links: [],
7848
8035
  image_urls: [],
7849
- failed: true
8036
+ failed: true,
8037
+ content_blocks: []
7850
8038
  }),
7851
8039
  method_: "GET"
7852
8040
  });
@@ -8196,7 +8384,7 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
8196
8384
  return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
8197
8385
  });
8198
8386
  // Don't tear down elements every time one updates the page - don't put them within <Show>
8199
- const elements = $i7OB2$ssr($172e1b898d457050$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.search_recs_title_()), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps({
8387
+ const elements = $i7OB2$ssr($172e1b898d457050$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.search_recs_title_()), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
8200
8388
  rows: rows_object,
8201
8389
  layout: "grid",
8202
8390
  element_attributes: {
@@ -9008,7 +9196,7 @@ var $6dee9211e57ac31a$var$_tmpl$ = ["<style", ' type="text/css">', "</style>"];
9008
9196
  const $6dee9211e57ac31a$export$c500183c31c2b22e = "--spans-columns";
9009
9197
  function $6dee9211e57ac31a$export$ab6b147eec64fea5(props) {
9010
9198
  const container_class = "x" + $i7OB2$createUniqueId();
9011
- const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps(() => props.element_attributes, {
9199
+ const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps1(() => props.element_attributes, {
9012
9200
  classList: {
9013
9201
  [container_class]: true
9014
9202
  }
@@ -9108,196 +9296,6 @@ function $15aa76e6da02e5c2$export$cb5808ba002cdeed({
9108
9296
  }) : when_filters_closed_cols;
9109
9297
  });
9110
9298
  }
9111
- function $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_) {
9112
- const size_active = $i7OB2$createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
9113
- const media_query = $i7OB2$layout_media_query_header(min_width, max_width).replaceAll("@media", "");
9114
- const matches = $dc9262ef6f786812$export$d9f36cf74e24d595(media_query);
9115
- return [matches, n_cols];
9116
- }));
9117
- const n_cols_currently_showing = $i7OB2$createMemo(() => {
9118
- try {
9119
- const [, n_cols_currently_showing] = size_active().find(([media_query]) => media_query());
9120
- return n_cols_currently_showing;
9121
- } catch (e) {
9122
- $i7OB2$dwarn("No active size found in columnsAtSize - can't render content blocks or looks");
9123
- return null;
9124
- }
9125
- });
9126
- return n_cols_currently_showing;
9127
- }
9128
- var $e7a7eb102ddc0c79$var$_tmpl$ = ["<div", ' class="content-block-wrapper" style="', '">', "</div>"];
9129
- function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
9130
- content_blocks_: incoming_content_blocks,
9131
- cols_at_size_: cols_at_size_,
9132
- set_top_row_shortened_by_: set_top_row_shortened_by_
9133
- }) {
9134
- // these are by row
9135
- const [content_blocks, set_content_blocks] = $i7OB2$createStore([]);
9136
- const n_cols_currently_showing_ = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
9137
- $i7OB2$createEffect(() => {
9138
- const incoming_value = incoming_content_blocks();
9139
- if (!incoming_value) {
9140
- set_content_blocks([]);
9141
- return;
9142
- }
9143
- set_content_blocks($i7OB2$reconcile(incoming_value, {
9144
- key: "content"
9145
- })); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
9146
- });
9147
-
9148
- const get_wrapped_blocks_ = $e7a7eb102ddc0c79$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
9149
- $i7OB2$createComputed(() => {
9150
- // 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
9151
- const top_row_block = get_wrapped_blocks_()[0];
9152
- const blocks_in_top_row_taken = top_row_block?.span_columns;
9153
- if (blocks_in_top_row_taken == undefined) {
9154
- // Fall back to zero if no content block in top row, since then no blocks in top row are taken
9155
- set_top_row_shortened_by_(0);
9156
- return;
9157
- }
9158
- set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
9159
- });
9160
-
9161
- return $e7a7eb102ddc0c79$var$remap_blocks_to_index({
9162
- get_wrapped_blocks_: get_wrapped_blocks_,
9163
- n_cols_currently_showing_: n_cols_currently_showing_
9164
- });
9165
- }
9166
- /**
9167
- * Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
9168
- * @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
9169
- */
9170
- function $e7a7eb102ddc0c79$var$remap_blocks_to_index({
9171
- get_wrapped_blocks_: get_wrapped_blocks_,
9172
- n_cols_currently_showing_: n_cols_currently_showing_
9173
- }) {
9174
- return $i7OB2$createMemo(() => {
9175
- // This computation should be quite cheap since it just moves around things into an array
9176
- const content_blocks_by_index = [];
9177
- const constructed_block_arrays = new WeakSet();
9178
- const wrapped_blocks = get_wrapped_blocks_();
9179
- const cols_showing = n_cols_currently_showing_();
9180
- // Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
9181
- 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
9182
- if (!cols_showing)
9183
- // Nope out of here if we don't know how many columns are showing
9184
- return content_blocks_by_index;
9185
- for (let i = 0; i < wrapped_blocks.length; i++) {
9186
- // i = row to show at
9187
- const block = wrapped_blocks[i];
9188
- if (!block) continue; // Array can have holes/not defined places
9189
- const index_of_first_item_in_row = i * cols_showing;
9190
- const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
9191
- const {
9192
- span_rows: span_rows,
9193
- position: position,
9194
- span_columns: span_columns
9195
- } = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
9196
- let target_index;
9197
- 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));
9198
- // Calculate displacement of us by content blocks above us
9199
- let displacement_by_added_blocks = 0;
9200
- for (let j = 0; j < i; j++) {
9201
- const row = displaced_products[j];
9202
- if (row === undefined) continue; // there were no blocks in this row
9203
- let displaced_items_in_row;
9204
- if (typeof row === "number") displaced_items_in_row = row;else {
9205
- displaced_items_in_row = row.filter(item => item).length;
9206
- displaced_products[j] = displaced_items_in_row;
9207
- }
9208
- displacement_by_added_blocks += displaced_items_in_row;
9209
- }
9210
- const index_of_us_in_row = target_index - index_of_first_item_in_row;
9211
- for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products[i]?.[j])
9212
- // Add blocks in our *current* row to the displacement, but only the ones to our left
9213
- displacement_by_added_blocks++;
9214
- // Add block to output array at the correct index
9215
- const final_target_index = target_index - displacement_by_added_blocks;
9216
- const existing_block = content_blocks_by_index[final_target_index];
9217
- const block_content = block.content;
9218
- // 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
9219
- if (existing_block) {
9220
- if (constructed_block_arrays.has(existing_block))
9221
- // Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
9222
- existing_block.push(block_content);else {
9223
- const array = [existing_block, block_content];
9224
- constructed_block_arrays.add(array);
9225
- content_blocks_by_index[final_target_index] = array;
9226
- }
9227
- } else content_blocks_by_index[final_target_index] = block_content;
9228
- // Update displacement
9229
- for (let j = 0; j < span_rows; j++) {
9230
- const row = displaced_products[i + j] ||= [];
9231
- for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
9232
- }
9233
- }
9234
- return content_blocks_by_index;
9235
- });
9236
- }
9237
- /**
9238
- * 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.
9239
- * Then renders the content and wraps it into a div with the correct styling.
9240
- * Also caps span_columns to max available columns
9241
- */
9242
- function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
9243
- const get_wrapped_blocks = $i7OB2$mapArray(() => rendered_content_blocks, block => {
9244
- if (!block) return;
9245
- const final_span_columns = $i7OB2$createMemo(() => Math.min(block.span_columns, max_span_columns() ?? Infinity));
9246
- // 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
9247
- const final_span_rows = $i7OB2$createMemo(() => final_span_columns() === max_span_columns() ? 1 : block.span_rows);
9248
- const [rendering_delayed, set_rendering_delayed_] = $i7OB2$createSignal(true);
9249
- const content = $i7OB2$createComponent((0, $i7OB2$Show), {
9250
- get when() {
9251
- return !rendering_delayed();
9252
- },
9253
- get children() {
9254
- return $i7OB2$ssr($e7a7eb102ddc0c79$var$_tmpl$, $i7OB2$ssrHydrationKey(), "grid-column:" + `span ${$i7OB2$escape(final_span_columns(), true)}` + (";grid-row:" + `span ${$i7OB2$escape(final_span_rows(), true)}`) + (";spans_columns_variable_name:" + $i7OB2$escape(final_span_columns(), true)), $i7OB2$escape($i7OB2$createComponent($e7a7eb102ddc0c79$var$RenderContent, {
9255
- get content() {
9256
- return block.content;
9257
- }
9258
- })));
9259
- }
9260
- });
9261
- return $i7OB2$mergeProps1(block, {
9262
- // Create content divs for the blocks with as much fine-grained diffing as possible?
9263
- content: () => {
9264
- // 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
9265
- // 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
9266
- set_rendering_delayed_(false);
9267
- return content;
9268
- },
9269
- get span_columns() {
9270
- // Cap max width of block to the number of columns available, for everyone downstream
9271
- return final_span_columns();
9272
- },
9273
- get span_rows() {
9274
- return final_span_rows();
9275
- }
9276
- });
9277
- });
9278
- return get_wrapped_blocks;
9279
- }
9280
- /**
9281
- * 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.
9282
- */
9283
- function $e7a7eb102ddc0c79$var$RenderContent(props) {
9284
- const [resource] = $i7OB2$createResource(() => props.content,
9285
- // Could be reactive
9286
- fn => fn());
9287
- $i7OB2$createEffect(() => {
9288
- if (resource.error) console.error("Error in content block rendering", resource.error);
9289
- });
9290
- // 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)
9291
- return $i7OB2$createComponent((0, $i7OB2$Suspense), {
9292
- get fallback() {
9293
- return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
9294
- width: "100%",
9295
- height: "max(100%, 400px)"
9296
- });
9297
- },
9298
- children: resource
9299
- });
9300
- }
9301
9299
  var $2d25e42846eac370$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
9302
9300
  function $2d25e42846eac370$export$3925f87b1545cfc6({
9303
9301
  plp_results_: plp_results_,
@@ -9495,7 +9493,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9495
9493
  } = slider;
9496
9494
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
9497
9495
  // Do like this, so we don't have to call mergeProps ourselves
9498
- $i7OB2$createComponent(Layout, $i7OB2$mergeProps(layout_options_, {
9496
+ $i7OB2$createComponent(Layout, $i7OB2$mergeProps1(layout_options_, {
9499
9497
  rows: "all",
9500
9498
  get cols_at_size() {
9501
9499
  return modified_cols_at_size();
@@ -9641,7 +9639,7 @@ function $68a258a92b88f02f$export$1f1775a58da589b5({
9641
9639
  var $e1bb71e65e01a3a0$var$_tmpl$ = '<path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zM9.449 3.5H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h1.398c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-1.051-.699h.703v-.699h-.703zm0 0"></path>',
9642
9640
  $e1bb71e65e01a3a0$var$_tmpl$2 = '<path d="M10.852 6.301H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h2.801a.35.35 0 0 1 .348.352v1.398a.35.35 0 0 1-.348.352zm-2.453-.699H10.5v-.703H8.398zm3.851 3.5H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h4.199c.191 0 .352.156.352.352V8.75c0 .191-.16.352-.352.352zm-3.852-.703h3.5V7.7h-3.5zm5.25 3.499H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h5.598a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-5.25-.699H13.3V10.5H8.398zm0 0"></path>';
9643
9641
  function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
9644
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
9642
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
9645
9643
  xmlns: "http://www.w3.org/2000/svg",
9646
9644
  width: "14",
9647
9645
  height: "14",
@@ -9650,7 +9648,7 @@ function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
9650
9648
  }
9651
9649
  var $05fbe84eb34564ec$var$_tmpl$ = '<path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zm3.25 1.644H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h1.398a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-1.051-.699h.703V10.5h-.703zm2.454-2.097H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h2.801a.35.35 0 0 1 .348.352V8.75c0 .191-.156.352-.348.352zm-2.453-.703H10.5V7.7H8.398zm3.851-2.098H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h4.199c.191 0 .352.156.352.352v1.398c0 .195-.16.352-.352.352zm-3.852-.699h3.5v-.703h-3.5zm5.25-2.102H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h5.598c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-5.25-.699H13.3v-.699H8.398zm0 0"></path>';
9652
9650
  function $05fbe84eb34564ec$export$d10e63059ddb9fd4(props = {}) {
9653
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
9651
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
9654
9652
  xmlns: "http://www.w3.org/2000/svg",
9655
9653
  width: "14",
9656
9654
  height: "14",
@@ -9763,7 +9761,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({
9763
9761
  })));
9764
9762
  },
9765
9763
  get children() {
9766
- return $i7OB2$ssr($757dac7f7c6c5241$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $i7OB2$mergeProps(args_for_filtering_, {
9764
+ return $i7OB2$ssr($757dac7f7c6c5241$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $i7OB2$mergeProps1(args_for_filtering_, {
9767
9765
  are_in_modal_: true
9768
9766
  }))));
9769
9767
  }
@@ -10319,7 +10317,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
10319
10317
  if (content_result_) return $i7OB2$ssrElement("a", attributes, () => $i7OB2$escape(children), true);
10320
10318
  return $i7OB2$ssrElement("div", attributes, () => $i7OB2$escape(children), true);
10321
10319
  };
10322
- return $i7OB2$ssr($b2bf2cdcff8142d8$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps(make_link_attributes, {
10320
+ return $i7OB2$ssr($b2bf2cdcff8142d8$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps1(make_link_attributes, {
10323
10321
  tabIndex: "-1",
10324
10322
  get children() {
10325
10323
  return $i7OB2$createComponent((0, $190927650b4840eb$export$605674723bcc715c), {
@@ -10327,7 +10325,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
10327
10325
  height: "28"
10328
10326
  });
10329
10327
  }
10330
- }))), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps({
10328
+ }))), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps1({
10331
10329
  "class": "content-title line-clamp"
10332
10330
  }, make_link_attributes, {
10333
10331
  get title() {
@@ -10468,7 +10466,7 @@ function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
10468
10466
  return (0, $f8c929beb82c512b$export$2452208c79fe93ea).content;
10469
10467
  },
10470
10468
  number_of_results_: num_results
10471
- })), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps({
10469
+ })), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
10472
10470
  layout: "grid",
10473
10471
  element_attributes: {
10474
10472
  class: "cards"
@@ -10847,7 +10845,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
10847
10845
  });
10848
10846
  const [sort_and_filter_element_, set_sort_and_filter_element_] = $i7OB2$createSignal();
10849
10847
  const no_results_text_ = $i7OB2$createMemo(() => (search_results_()?.content_search_links?.length ? i18n_.no_products_ : i18n_.no_results_text_)());
10850
- const results_for = $i7OB2$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $i7OB2$mergeProps({
10848
+ const results_for = $i7OB2$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $i7OB2$mergeProps1({
10851
10849
  get type() {
10852
10850
  return (0, $f8c929beb82c512b$export$2452208c79fe93ea).products;
10853
10851
  },
@@ -12238,6 +12236,15 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
12238
12236
  });
12239
12237
  tracking_function_for_plp_results(plp_results_);
12240
12238
  }
12239
+ var $f916989c4b1be9f7$var$_tmpl$ = ["<a", "><img", ' style="', '"></a>'],
12240
+ $f916989c4b1be9f7$var$_tmpl$2 = ["<a", "><video", ' muted="" autoplay="" playsinline="" loop style="', '"></video></a>'];
12241
+ function $f916989c4b1be9f7$export$780a853d15174484({
12242
+ contentBlock: contentBlock,
12243
+ router_: router_
12244
+ }) {
12245
+ if (contentBlock.content.type === "image") return () => $i7OB2$ssr($f916989c4b1be9f7$var$_tmpl$, $i7OB2$ssrHydrationKey() + $i7OB2$ssrAttribute("href", $i7OB2$escape(contentBlock.content.link, true), false), $i7OB2$ssrAttribute("src", $i7OB2$escape(contentBlock.content.url, true), false), "width:100%;height:100%;object-fit:cover;position:absolute;inset:0");
12246
+ if (contentBlock.content.type === "video") return () => $i7OB2$ssr($f916989c4b1be9f7$var$_tmpl$2, $i7OB2$ssrHydrationKey() + $i7OB2$ssrAttribute("href", $i7OB2$escape(contentBlock.content.link, true), false), $i7OB2$ssrAttribute("src", $i7OB2$escape(contentBlock.content.url, true), false), "width:100%;height:100%;object-fit:cover;position:absolute;inset:0");
12247
+ }
12241
12248
  var $df5d81d0fe61ff21$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->', "<!--/--> <!--$-->", "<!--/--></div>"],
12242
12249
  $df5d81d0fe61ff21$var$_tmpl$2 = ["<div", "></div>"],
12243
12250
  $df5d81d0fe61ff21$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
@@ -12333,6 +12340,23 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
12333
12340
  }));
12334
12341
  // Make "Get Listing" request to get quicklinks, breadcrumbs, title, etc
12335
12342
  const [plp_meta] = $i7OB2$createResource(meta_query_base, $i7OB2$catchify(query => depict_api_.get_listing(query)));
12343
+ const contentBlocksByRow = $i7OB2$createMemo(() => {
12344
+ if (content_blocks_by_row_()) return content_blocks_by_row_();
12345
+ const content = [];
12346
+ plp_meta()?.content_blocks?.forEach(row => {
12347
+ const contentBlock = {
12348
+ span_columns: row.span_columns,
12349
+ span_rows: row.span_rows,
12350
+ position: row.position,
12351
+ content: $f916989c4b1be9f7$export$780a853d15174484({
12352
+ contentBlock: row,
12353
+ router_: router_
12354
+ })
12355
+ };
12356
+ content[row.row] = contentBlock;
12357
+ });
12358
+ return content;
12359
+ });
12336
12360
  const available_sortings_ = $i7OB2$createMemo(() => plp_products_()?.sorts?.map(sort => ({
12337
12361
  ...sort,
12338
12362
  order: sort.order ?? "desc"
@@ -12551,7 +12575,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
12551
12575
  product_card_template_: product_card_template_,
12552
12576
  sort_or_filter_open_: sort_or_filter_open_,
12553
12577
  desktop_filter_elements_: desktop_filter_elements_,
12554
- content_blocks_by_row_: content_blocks_by_row_,
12578
+ content_blocks_by_row_: contentBlocksByRow,
12555
12579
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
12556
12580
  id_currently_querying_for_: id_to_query_for_,
12557
12581
  no_results_options_: {
@@ -12593,7 +12617,7 @@ function $df5d81d0fe61ff21$var$add_us_to_crumbs(plp_meta) {
12593
12617
  return $i7OB2$createMemo(() => {
12594
12618
  const api_value = plp_meta()?.breadcrumbs;
12595
12619
  if (!api_value) return api_value;
12596
- return [...api_value, $i7OB2$mergeProps1(plp_meta(), {
12620
+ return [...api_value, $i7OB2$mergeProps(plp_meta(), {
12597
12621
  get page_url() {
12598
12622
  return href_accessor();
12599
12623
  }
@@ -12699,4 +12723,4 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
12699
12723
  }, "Entire CategoryPage failed");
12700
12724
  }
12701
12725
  $i7OB2$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
12702
- 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 };
12726
+ 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 };