@depict-ai/ui 4.7.28 → 4.7.30

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,238 @@
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.28";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.30";
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
+ }));
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 content_blocks_by_index;
121
+ for (let i = 0; i < wrapped_blocks_.length; i++) {
122
+ // i = row to show at
123
+ const block = wrapped_blocks_[i];
124
+ if (!block) continue; // Array can have holes/not defined places
125
+ const index_of_first_item_in_row = i * n_cols_currently_showing_;
126
+ const index_of_last_item_in_row = index_of_first_item_in_row + n_cols_currently_showing_;
127
+ const {
128
+ span_rows: span_rows,
129
+ position: position,
130
+ span_columns: span_columns
131
+ } = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
132
+ let target_index;
133
+ 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));
134
+ // Calculate displacement of us by content blocks above us
135
+ let displacement_by_added_blocks = 0;
136
+ for (let j = 0; j < i; j++) {
137
+ const row = displaced_products[j];
138
+ if (row === undefined) continue; // there were no blocks in this row
139
+ let displaced_items_in_row;
140
+ if (typeof row === "number") displaced_items_in_row = row;else {
141
+ displaced_items_in_row = row.filter(item => item).length;
142
+ displaced_products[j] = displaced_items_in_row;
143
+ }
144
+ displacement_by_added_blocks += displaced_items_in_row;
145
+ }
146
+ const index_of_us_in_row = target_index - index_of_first_item_in_row;
147
+ for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products[i]?.[j])
148
+ // Add blocks in our *current* row to the displacement, but only the ones to our left
149
+ displacement_by_added_blocks++;
150
+ // Add block to output array at the correct index
151
+ const final_target_index = target_index - displacement_by_added_blocks;
152
+ const existing_block = content_blocks_by_index[final_target_index];
153
+ const block_content = block.content;
154
+ // 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
155
+ if (existing_block) {
156
+ if (constructed_block_arrays.has(existing_block))
157
+ // Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
158
+ existing_block.push(block_content);else {
159
+ const array = [existing_block, block_content];
160
+ constructed_block_arrays.add(array);
161
+ content_blocks_by_index[final_target_index] = array;
162
+ }
163
+ } else content_blocks_by_index[final_target_index] = block_content;
164
+ // Update displacement
165
+ for (let j = 0; j < span_rows; j++) {
166
+ const row = displaced_products[i + j] ||= [];
167
+ for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
168
+ }
169
+ }
170
+ return content_blocks_by_index;
171
+ }
172
+ /**
173
+ * 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.
174
+ * Then renders the content and wraps it into a div with the correct styling.
175
+ * Also caps span_columns to max available columns
176
+ */
177
+ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
178
+ const get_wrapped_blocks = $i7OB2$mapArray(() => rendered_content_blocks, block => {
179
+ if (!block) return;
180
+ const final_span_columns = $i7OB2$createMemo(() => Math.min(block.span_columns, max_span_columns() ?? Infinity));
181
+ // 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
182
+ const final_span_rows = $i7OB2$createMemo(() => final_span_columns() === max_span_columns() ? 1 : block.span_rows);
183
+ const [rendering_delayed, set_rendering_delayed_] = $i7OB2$createSignal(true);
184
+ const content = $i7OB2$createComponent((0, $i7OB2$Show), {
185
+ get when() {
186
+ return !rendering_delayed();
187
+ },
188
+ get children() {
189
+ 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, {
190
+ get content() {
191
+ return block.content;
192
+ }
193
+ })));
194
+ }
195
+ });
196
+ return $i7OB2$mergeProps(block, {
197
+ // Create content divs for the blocks with as much fine-grained diffing as possible?
198
+ content: () => {
199
+ // 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
200
+ // 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
201
+ set_rendering_delayed_(false);
202
+ return content;
203
+ },
204
+ get span_columns() {
205
+ // Cap max width of block to the number of columns available, for everyone downstream
206
+ return final_span_columns();
207
+ },
208
+ get span_rows() {
209
+ return final_span_rows();
210
+ }
211
+ });
212
+ });
213
+ return get_wrapped_blocks;
214
+ }
215
+ /**
216
+ * 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.
217
+ */
218
+ function $e7a7eb102ddc0c79$var$RenderContent(props) {
219
+ const [resource] = $i7OB2$createResource(() => props.content,
220
+ // Could be reactive
221
+ fn => fn());
222
+ $i7OB2$createEffect(() => {
223
+ if (resource.error) console.error("Error in content block rendering", resource.error);
224
+ });
225
+ // 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)
226
+ return $i7OB2$createComponent((0, $i7OB2$Suspense), {
227
+ get fallback() {
228
+ return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
229
+ width: "100%",
230
+ height: "max(100%, 400px)"
231
+ });
232
+ },
233
+ children: resource
234
+ });
235
+ }
11
236
  let $4eb0a704f8f30273$var$elementsHoveredSignal;
12
237
  let $4eb0a704f8f30273$var$consumersSignal;
13
238
  function $4eb0a704f8f30273$export$d4d96868197be50e() {
@@ -684,7 +909,7 @@ var $c8d5ff4524619fcd$var$_tmpl$ = ["<div", ' class="', '">', "</div>"],
684
909
  $c8d5ff4524619fcd$var$_tmpl$2 = ["<style", ' type="text/css">', "</style>"];
685
910
  function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
686
911
  const container_class = "x" + $i7OB2$createUniqueId();
687
- const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps(() => props.element_attributes, {
912
+ const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps1(() => props.element_attributes, {
688
913
  classList: {
689
914
  [container_class]: true
690
915
  }
@@ -820,7 +1045,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
820
1045
  } = slider;
821
1046
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
822
1047
  // Do like this, so we don't have to call mergeProps ourselves
823
- $i7OB2$createComponent(Layout, $i7OB2$mergeProps({
1048
+ $i7OB2$createComponent(Layout, $i7OB2$mergeProps1({
824
1049
  rows: "all",
825
1050
  layout: "slider"
826
1051
  }, layout_options_));
@@ -912,49 +1137,6 @@ function $011607bdf658f807$export$e68cff63f76bd15b(props) {
912
1137
  function $011607bdf658f807$export$8d0c4fdbb05a2f2e() {
913
1138
  return $i7OB2$useContext($011607bdf658f807$var$ListingContext);
914
1139
  }
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
1140
  function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
959
1141
  const style = $i7OB2$createMemo(() => {
960
1142
  const {
@@ -1082,7 +1264,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1082
1264
  if (loading === "force-lazy") return true;
1083
1265
  return loading === "lazy" && !isPrioritisedImage();
1084
1266
  });
1085
- const modifiedOtherAttributes = $i7OB2$mergeProps1(otherAttributes, {
1267
+ const modifiedOtherAttributes = $i7OB2$mergeProps(otherAttributes, {
1086
1268
  get loading() {
1087
1269
  return shouldActuallyEnableLazyLoading() ? "lazy" : undefined;
1088
1270
  }
@@ -1152,7 +1334,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1152
1334
  $i7OB2$onCleanup(() => prevValue && aspectRatios.delete(prevValue));
1153
1335
  }
1154
1336
  $i7OB2$onCleanup(() => gotCleanedUp = true);
1155
- $i7OB2$spread(img, $i7OB2$mergeProps1(modifiedOtherAttributes), false, true);
1337
+ $i7OB2$spread(img, $i7OB2$mergeProps(modifiedOtherAttributes), false, true);
1156
1338
  $i7OB2$createRenderEffect(() => {
1157
1339
  props.src;
1158
1340
  srcJustChanged = true;
@@ -1256,7 +1438,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1256
1438
  $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
1439
  });
1258
1440
 
1259
- $i7OB2$insert(container, $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps({
1441
+ $i7OB2$insert(container, $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps1({
1260
1442
  get size() {
1261
1443
  return $i7OB2$createMemo(() => currentImageSize()?.() || 0);
1262
1444
  },
@@ -1271,7 +1453,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1271
1453
  return container;
1272
1454
  }
1273
1455
  function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
1274
- return $i7OB2$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $i7OB2$mergeProps(props, {
1456
+ return $i7OB2$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $i7OB2$mergeProps1(props, {
1275
1457
  get imgProps() {
1276
1458
  return {
1277
1459
  ...props.imgProps,
@@ -1322,7 +1504,7 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
1322
1504
  const href = $i7OB2$createMemo(() => variantToUse()?.page_url);
1323
1505
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1324
1506
  const title = $i7OB2$createMemo(() => variantToUse()?.title);
1325
- return $i7OB2$ssrElement("a", $i7OB2$mergeProps({
1507
+ return $i7OB2$ssrElement("a", $i7OB2$mergeProps1({
1326
1508
  "class": "look-item"
1327
1509
  }, () => enableLink() ? {
1328
1510
  href: href()
@@ -1366,7 +1548,7 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
1366
1548
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1367
1549
  },
1368
1550
  get children() {
1369
- return $i7OB2$ssr($08a49ecdcd5beaca$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("span", $i7OB2$mergeProps({
1551
+ return $i7OB2$ssr($08a49ecdcd5beaca$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("span", $i7OB2$mergeProps1({
1370
1552
  "class": "d-title line-clamp"
1371
1553
  }, () => title() && {
1372
1554
  title: title()
@@ -1524,7 +1706,7 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
1524
1706
  return containerWidth_() || !displays_();
1525
1707
  },
1526
1708
  get children() {
1527
- return $i7OB2$ssr($11fb4b33b36ecfac$var$_tmpl$, $i7OB2$ssrHydrationKey(), `look-overlay ${userWantsExpanded() && !!displays_() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`, $i7OB2$ssrStyle(displays_() &&
1709
+ return $i7OB2$ssr($11fb4b33b36ecfac$var$_tmpl$, $i7OB2$ssrHydrationKey(), `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`, $i7OB2$ssrStyle(displays_() &&
1528
1710
  // The styling is written like this to eke out animation smoothness on low CPU devices, git blame for previous, more readable versions.
1529
1711
  `--look-card-width:${containerWidth_()}px;--look-card-height:${containerHeight_()}px;--look-item-height:${lookItemHeight() || 200}px`), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Index), {
1530
1712
  get each() {
@@ -1612,6 +1794,7 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
1612
1794
  } else prev.delete(us);
1613
1795
  return prev;
1614
1796
  }));
1797
+ $i7OB2$createEffect(() => !display_() && setUserWantsExpanded(false));
1615
1798
  if (slidableInformation) {
1616
1799
  const ourVisiblityInSlider = $i7OB2$createMemo(() => {
1617
1800
  const currentCard = index?.();
@@ -1813,7 +1996,7 @@ function $3da8afe3ed57cf34$export$7da560f849543dff({
1813
1996
  get children() {
1814
1997
  return $i7OB2$ssr($3da8afe3ed57cf34$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape(title()));
1815
1998
  }
1816
- }), $i7OB2$ssr($3da8afe3ed57cf34$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps({
1999
+ }), $i7OB2$ssr($3da8afe3ed57cf34$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
1817
2000
  get rows() {
1818
2001
  return rows_object_();
1819
2002
  },
@@ -1942,7 +2125,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
1942
2125
  return $i7OB2$createComponent((0, $c4492d24952ed731$export$d41d19e89346fa2), sharedOptions);
1943
2126
  },
1944
2127
  get children() {
1945
- return $i7OB2$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $i7OB2$mergeProps(sharedOptions, {
2128
+ return $i7OB2$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $i7OB2$mergeProps1(sharedOptions, {
1946
2129
  view_more_button_: () => props.gridOptions_?.view_more_button,
1947
2130
  max_rows_: () => props.gridOptions_?.max_rows
1948
2131
  }));
@@ -1990,7 +2173,7 @@ async function $07ef910e8ef6b783$var$runDisplayTransformersForLooks(baseData, li
1990
2173
  }) : displaysToTransform;
1991
2174
  const transformedListings = await transformedListingsPromise;
1992
2175
  const transformedDisplayById = Object.fromEntries(transformedProducts.map(display => [$16351e4c87b90b3d$export$548d053aba053d79(display), display]));
1993
- return transformedListings.map(listing => $i7OB2$mergeProps1(listing, {
2176
+ return transformedListings.map(listing => $i7OB2$mergeProps(listing, {
1994
2177
  // use mergeProps because in preview browser we add getters in this object, that would be called too early otherwise
1995
2178
  displays: (displayIdsPerListingId[listing.listing_id] || []).map(displayId => transformedDisplayById[displayId]).filter(v => v)
1996
2179
  }));
@@ -2385,7 +2568,7 @@ function $694b7f90501fea4c$export$5d2caaa6b530761c() {
2385
2568
  }
2386
2569
  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>';
2387
2570
  function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
2388
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
2571
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
2389
2572
  xmlns: "http://www.w3.org/2000/svg",
2390
2573
  width: "21.064",
2391
2574
  height: "21.064",
@@ -2485,7 +2668,7 @@ function $f3213c0640246d58$export$ba17c5b7e6dda39f({
2485
2668
  }
2486
2669
  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>';
2487
2670
  function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
2488
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
2671
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
2489
2672
  xmlns: "http://www.w3.org/2000/svg",
2490
2673
  width: "20",
2491
2674
  height: "22",
@@ -2494,7 +2677,7 @@ function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
2494
2677
  }
2495
2678
  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>';
2496
2679
  function $190927650b4840eb$export$605674723bcc715c(props = {}) {
2497
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
2680
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
2498
2681
  xmlns: "http://www.w3.org/2000/svg",
2499
2682
  width: "32",
2500
2683
  height: "32",
@@ -3046,7 +3229,7 @@ function $2449872a62a75a20$export$ebdc3711f7e02ccd(what_to_watch) {
3046
3229
  }
3047
3230
  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>';
3048
3231
  function $081752ca508a876f$export$f7658c347b037c3f(props = {}) {
3049
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
3232
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
3050
3233
  xmlns: "http://www.w3.org/2000/svg",
3051
3234
  width: "21",
3052
3235
  height: "20",
@@ -3090,7 +3273,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
3090
3273
  const BackButton = () => $i7OB2$createComponent((0, $i7OB2$Show), {
3091
3274
  when: on_back_,
3092
3275
  get children() {
3093
- return $i7OB2$ssrElement("button", $i7OB2$mergeProps({
3276
+ return $i7OB2$ssrElement("button", $i7OB2$mergeProps1({
3094
3277
  "class": "back",
3095
3278
  type: "button",
3096
3279
  get ["aria-label"]() {
@@ -3104,7 +3287,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
3104
3287
  }), () => isNewModal ? $i7OB2$escape($i7OB2$createComponent((0, $19976a74d273070d$export$3b621d86b1566b2), {})) : $i7OB2$escape($i7OB2$createComponent(BackIcon_, {})), true);
3105
3288
  }
3106
3289
  });
3107
- const ClearButton = () => $i7OB2$ssrElement("button", $i7OB2$mergeProps({
3290
+ const ClearButton = () => $i7OB2$ssrElement("button", $i7OB2$mergeProps1({
3108
3291
  type: "button",
3109
3292
  get ["class"]() {
3110
3293
  return `clear ${searchFieldEmpty() ? "empty" : ""}`;
@@ -3654,7 +3837,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
3654
3837
  selected_index_: [read_selected_index_, write_selected_index_]
3655
3838
  }) {
3656
3839
  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
3657
- const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps(props, {
3840
+ const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps1(props, {
3658
3841
  get href() {
3659
3842
  return href();
3660
3843
  }
@@ -3944,7 +4127,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
3944
4127
  $i7OB2$createComputed($i7OB2$on(search_field_value_[0], () => !suggestions_updating_blocked() && set_selected_index(undefined), {
3945
4128
  defer: true
3946
4129
  })); // reset autocomplete position if query changes
3947
- return [$i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps(sharedSuggestionProps, {
4130
+ return [$i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps1(sharedSuggestionProps, {
3948
4131
  get title_() {
3949
4132
  return i18n_.popular_;
3950
4133
  },
@@ -3954,7 +4137,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
3954
4137
  return itemIndexes_.suggestionsIndex_;
3955
4138
  },
3956
4139
  showPlaceholders_: () => showPlaceholders() || noResults_() && !noResultsPopularSuggestions.latest
3957
- })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps(sharedSuggestionProps, {
4140
+ })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps1(sharedSuggestionProps, {
3958
4141
  get title_() {
3959
4142
  return i18n_.previous_;
3960
4143
  },
@@ -3965,7 +4148,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
3965
4148
  },
3966
4149
  extraTitleRowElements_: () => $i7OB2$ssr($2f3171b02c8f4a5d$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.clear_all_from_filter_crumbs_())),
3967
4150
  showPlaceholders_: () => false
3968
- })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps(sharedSuggestionProps, {
4151
+ })), $i7OB2$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $i7OB2$mergeProps1(sharedSuggestionProps, {
3969
4152
  get title_() {
3970
4153
  return i18n_.content_;
3971
4154
  },
@@ -4368,7 +4551,7 @@ function $024fbc0a2d796fad$export$b2539bed5023c21c(props) {
4368
4551
  return $i7OB2$createComponent($024fbc0a2d796fad$var$TabsContext.Provider, {
4369
4552
  value: new (0, $i7OB2$ListenableSet)(),
4370
4553
  get children() {
4371
- return $i7OB2$createComponent($024fbc0a2d796fad$var$ActualTabs, $i7OB2$mergeProps(props, {
4554
+ return $i7OB2$createComponent($024fbc0a2d796fad$var$ActualTabs, $i7OB2$mergeProps1(props, {
4372
4555
  get children() {
4373
4556
  return props.children;
4374
4557
  }
@@ -4398,7 +4581,7 @@ function $024fbc0a2d796fad$var$ActualTabs(props) {
4398
4581
  },
4399
4582
  children: item => {
4400
4583
  const weSelected = $i7OB2$createMemo(() => isSelected(item().id));
4401
- return $i7OB2$createComponent((0, $i7OB2$Dynamic), $i7OB2$mergeProps({
4584
+ return $i7OB2$createComponent((0, $i7OB2$Dynamic), $i7OB2$mergeProps1({
4402
4585
  get component() {
4403
4586
  return props.AnchorComponent;
4404
4587
  },
@@ -4477,7 +4660,7 @@ function $024fbc0a2d796fad$export$3e41faf802a29e71(props) {
4477
4660
  if (!currentTabs) throw new Error("Tab must be a child of Tabs");
4478
4661
  const id = $i7OB2$createUniqueId();
4479
4662
  const ourSet = currentTabs;
4480
- const extendedProps = $i7OB2$mergeProps1({
4663
+ const extendedProps = $i7OB2$mergeProps({
4481
4664
  id: id
4482
4665
  }, props);
4483
4666
  ourSet.add(extendedProps);
@@ -4894,7 +5077,7 @@ function $8560c919ff763930$var$ActualShopTheLookButton(props) {
4894
5077
  const button = $i7OB2$ssrElement("button", localProps.buttonAttributes, () => $i7OB2$escape(localProps?.buttonAttributes?.children) || "Shop the look", true);
4895
5078
  $i7OB2$createEffect(() => button.style.display = displayStyleValue()); // Set our attributes like this, so we allow total control over the button from the outside via buttonAttributes
4896
5079
  $i7OB2$createEffect(() => !hasAnythingToShow() && closeModal()); // close modal if we ever get into the state of having it open and not having anything to show
4897
- $8560c919ff763930$var$modalProps = $i7OB2$mergeProps1(partForModal, {
5080
+ $8560c919ff763930$var$modalProps = $i7OB2$mergeProps(partForModal, {
4898
5081
  products_to_shop_: products_to_shop_
4899
5082
  });
4900
5083
  button.addEventListener("click", openModal);
@@ -5286,7 +5469,7 @@ const $49b79728e7d9e2a1$export$48513f6b9f8ce62d = props => {
5286
5469
  };
5287
5470
  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>';
5288
5471
  function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
5289
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps(props, {
5472
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1(props, {
5290
5473
  xmlns: "http://www.w3.org/2000/svg",
5291
5474
  width: "11",
5292
5475
  height: "12"
@@ -6430,7 +6613,7 @@ const $93716a9ad0dea854$export$414f6a19d38e655c = ({
6430
6613
  const MakeButton = attributes => {
6431
6614
  const label = $i7OB2$createMemo(() => value().name_ || value().value_ + "");
6432
6615
  const count_zero = $i7OB2$createMemo(() => value().count_ === 0);
6433
- return $i7OB2$ssrElement("button", $i7OB2$mergeProps(attributes, {
6616
+ return $i7OB2$ssrElement("button", $i7OB2$mergeProps1(attributes, {
6434
6617
  get disabled() {
6435
6618
  return count_zero() && !is_selected();
6436
6619
  },
@@ -6732,7 +6915,7 @@ var $12497d09ef87296e$export$2e2bcd8739ae039 = {
6732
6915
  };
6733
6916
  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>';
6734
6917
  function $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4(props = {}) {
6735
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
6918
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
6736
6919
  xmlns: "http://www.w3.org/2000/svg",
6737
6920
  width: "16.8",
6738
6921
  height: "14"
@@ -7663,7 +7846,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
7663
7846
  // Filter out our transformed ancestors
7664
7847
  const transformedAncestors = Object.fromEntries(transformerResult.filter(item => item.is_suggestion === false).map(item => [item.listing_id, item]));
7665
7848
  // Add the now transformed ancestors into the ancestors of the listing suggestions
7666
- const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $i7OB2$mergeProps1(item, {
7849
+ const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $i7OB2$mergeProps(item, {
7667
7850
  // Use mergeProps instead of spread since page_url and other properties could be a getter that solid components should call
7668
7851
  ancestors: item.ancestors.map(ancestor => {
7669
7852
  const newAncestor = transformedAncestors[ancestor.listing_id];
@@ -8195,7 +8378,7 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
8195
8378
  return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
8196
8379
  });
8197
8380
  // Don't tear down elements every time one updates the page - don't put them within <Show>
8198
- 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({
8381
+ 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({
8199
8382
  rows: rows_object,
8200
8383
  layout: "grid",
8201
8384
  element_attributes: {
@@ -9007,7 +9190,7 @@ var $6dee9211e57ac31a$var$_tmpl$ = ["<style", ' type="text/css">', "</style>"];
9007
9190
  const $6dee9211e57ac31a$export$c500183c31c2b22e = "--spans-columns";
9008
9191
  function $6dee9211e57ac31a$export$ab6b147eec64fea5(props) {
9009
9192
  const container_class = "x" + $i7OB2$createUniqueId();
9010
- const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps(() => props.element_attributes, {
9193
+ const container_element_ = $i7OB2$ssrElement("div", $i7OB2$mergeProps1(() => props.element_attributes, {
9011
9194
  classList: {
9012
9195
  [container_class]: true
9013
9196
  }
@@ -9107,196 +9290,6 @@ function $15aa76e6da02e5c2$export$cb5808ba002cdeed({
9107
9290
  }) : when_filters_closed_cols;
9108
9291
  });
9109
9292
  }
9110
- function $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_) {
9111
- const size_active = $i7OB2$createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
9112
- const media_query = $i7OB2$layout_media_query_header(min_width, max_width).replaceAll("@media", "");
9113
- const matches = $dc9262ef6f786812$export$d9f36cf74e24d595(media_query);
9114
- return [matches, n_cols];
9115
- }));
9116
- const n_cols_currently_showing = $i7OB2$createMemo(() => {
9117
- try {
9118
- const [, n_cols_currently_showing] = size_active().find(([media_query]) => media_query());
9119
- return n_cols_currently_showing;
9120
- } catch (e) {
9121
- $i7OB2$dwarn("No active size found in columnsAtSize - can't render content blocks or looks");
9122
- return null;
9123
- }
9124
- });
9125
- return n_cols_currently_showing;
9126
- }
9127
- var $e7a7eb102ddc0c79$var$_tmpl$ = ["<div", ' class="content-block-wrapper" style="', '">', "</div>"];
9128
- function $e7a7eb102ddc0c79$export$791ef57e62e21c3f({
9129
- content_blocks_: incoming_content_blocks,
9130
- cols_at_size_: cols_at_size_,
9131
- set_top_row_shortened_by_: set_top_row_shortened_by_
9132
- }) {
9133
- // these are by row
9134
- const [content_blocks, set_content_blocks] = $i7OB2$createStore([]);
9135
- const n_cols_currently_showing_ = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
9136
- $i7OB2$createEffect(() => {
9137
- const incoming_value = incoming_content_blocks();
9138
- if (!incoming_value) {
9139
- set_content_blocks([]);
9140
- return;
9141
- }
9142
- set_content_blocks($i7OB2$reconcile(incoming_value, {
9143
- key: "content"
9144
- })); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
9145
- });
9146
-
9147
- const get_wrapped_blocks_ = $e7a7eb102ddc0c79$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
9148
- $i7OB2$createComputed(() => {
9149
- // 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
9150
- const top_row_block = get_wrapped_blocks_()[0];
9151
- const blocks_in_top_row_taken = top_row_block?.span_columns;
9152
- if (blocks_in_top_row_taken == undefined) {
9153
- // Fall back to zero if no content block in top row, since then no blocks in top row are taken
9154
- set_top_row_shortened_by_(0);
9155
- return;
9156
- }
9157
- set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
9158
- });
9159
-
9160
- return $e7a7eb102ddc0c79$var$remap_blocks_to_index({
9161
- get_wrapped_blocks_: get_wrapped_blocks_,
9162
- n_cols_currently_showing_: n_cols_currently_showing_
9163
- });
9164
- }
9165
- /**
9166
- * Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
9167
- * @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
9168
- */
9169
- function $e7a7eb102ddc0c79$var$remap_blocks_to_index({
9170
- get_wrapped_blocks_: get_wrapped_blocks_,
9171
- n_cols_currently_showing_: n_cols_currently_showing_
9172
- }) {
9173
- return $i7OB2$createMemo(() => {
9174
- // This computation should be quite cheap since it just moves around things into an array
9175
- const content_blocks_by_index = [];
9176
- const constructed_block_arrays = new WeakSet();
9177
- const wrapped_blocks = get_wrapped_blocks_();
9178
- const cols_showing = n_cols_currently_showing_();
9179
- // Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
9180
- 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
9181
- if (!cols_showing)
9182
- // Nope out of here if we don't know how many columns are showing
9183
- return content_blocks_by_index;
9184
- for (let i = 0; i < wrapped_blocks.length; i++) {
9185
- // i = row to show at
9186
- const block = wrapped_blocks[i];
9187
- if (!block) continue; // Array can have holes/not defined places
9188
- const index_of_first_item_in_row = i * cols_showing;
9189
- const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
9190
- const {
9191
- span_rows: span_rows,
9192
- position: position,
9193
- span_columns: span_columns
9194
- } = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
9195
- let target_index;
9196
- 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));
9197
- // Calculate displacement of us by content blocks above us
9198
- let displacement_by_added_blocks = 0;
9199
- for (let j = 0; j < i; j++) {
9200
- const row = displaced_products[j];
9201
- if (row === undefined) continue; // there were no blocks in this row
9202
- let displaced_items_in_row;
9203
- if (typeof row === "number") displaced_items_in_row = row;else {
9204
- displaced_items_in_row = row.filter(item => item).length;
9205
- displaced_products[j] = displaced_items_in_row;
9206
- }
9207
- displacement_by_added_blocks += displaced_items_in_row;
9208
- }
9209
- const index_of_us_in_row = target_index - index_of_first_item_in_row;
9210
- for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products[i]?.[j])
9211
- // Add blocks in our *current* row to the displacement, but only the ones to our left
9212
- displacement_by_added_blocks++;
9213
- // Add block to output array at the correct index
9214
- const final_target_index = target_index - displacement_by_added_blocks;
9215
- const existing_block = content_blocks_by_index[final_target_index];
9216
- const block_content = block.content;
9217
- // 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
9218
- if (existing_block) {
9219
- if (constructed_block_arrays.has(existing_block))
9220
- // Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
9221
- existing_block.push(block_content);else {
9222
- const array = [existing_block, block_content];
9223
- constructed_block_arrays.add(array);
9224
- content_blocks_by_index[final_target_index] = array;
9225
- }
9226
- } else content_blocks_by_index[final_target_index] = block_content;
9227
- // Update displacement
9228
- for (let j = 0; j < span_rows; j++) {
9229
- const row = displaced_products[i + j] ||= [];
9230
- for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
9231
- }
9232
- }
9233
- return content_blocks_by_index;
9234
- });
9235
- }
9236
- /**
9237
- * 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.
9238
- * Then renders the content and wraps it into a div with the correct styling.
9239
- * Also caps span_columns to max available columns
9240
- */
9241
- function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
9242
- const get_wrapped_blocks = $i7OB2$mapArray(() => rendered_content_blocks, block => {
9243
- if (!block) return;
9244
- const final_span_columns = $i7OB2$createMemo(() => Math.min(block.span_columns, max_span_columns() ?? Infinity));
9245
- // 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
9246
- const final_span_rows = $i7OB2$createMemo(() => final_span_columns() === max_span_columns() ? 1 : block.span_rows);
9247
- const [rendering_delayed, set_rendering_delayed_] = $i7OB2$createSignal(true);
9248
- const content = $i7OB2$createComponent((0, $i7OB2$Show), {
9249
- get when() {
9250
- return !rendering_delayed();
9251
- },
9252
- get children() {
9253
- 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, {
9254
- get content() {
9255
- return block.content;
9256
- }
9257
- })));
9258
- }
9259
- });
9260
- return $i7OB2$mergeProps1(block, {
9261
- // Create content divs for the blocks with as much fine-grained diffing as possible?
9262
- content: () => {
9263
- // 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
9264
- // 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
9265
- set_rendering_delayed_(false);
9266
- return content;
9267
- },
9268
- get span_columns() {
9269
- // Cap max width of block to the number of columns available, for everyone downstream
9270
- return final_span_columns();
9271
- },
9272
- get span_rows() {
9273
- return final_span_rows();
9274
- }
9275
- });
9276
- });
9277
- return get_wrapped_blocks;
9278
- }
9279
- /**
9280
- * 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.
9281
- */
9282
- function $e7a7eb102ddc0c79$var$RenderContent(props) {
9283
- const [resource] = $i7OB2$createResource(() => props.content,
9284
- // Could be reactive
9285
- fn => fn());
9286
- $i7OB2$createEffect(() => {
9287
- if (resource.error) console.error("Error in content block rendering", resource.error);
9288
- });
9289
- // 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)
9290
- return $i7OB2$createComponent((0, $i7OB2$Suspense), {
9291
- get fallback() {
9292
- return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
9293
- width: "100%",
9294
- height: "max(100%, 400px)"
9295
- });
9296
- },
9297
- children: resource
9298
- });
9299
- }
9300
9293
  var $2d25e42846eac370$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
9301
9294
  function $2d25e42846eac370$export$3925f87b1545cfc6({
9302
9295
  plp_results_: plp_results_,
@@ -9494,7 +9487,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9494
9487
  } = slider;
9495
9488
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
9496
9489
  // Do like this, so we don't have to call mergeProps ourselves
9497
- $i7OB2$createComponent(Layout, $i7OB2$mergeProps(layout_options_, {
9490
+ $i7OB2$createComponent(Layout, $i7OB2$mergeProps1(layout_options_, {
9498
9491
  rows: "all",
9499
9492
  get cols_at_size() {
9500
9493
  return modified_cols_at_size();
@@ -9640,7 +9633,7 @@ function $68a258a92b88f02f$export$1f1775a58da589b5({
9640
9633
  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>',
9641
9634
  $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>';
9642
9635
  function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
9643
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
9636
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
9644
9637
  xmlns: "http://www.w3.org/2000/svg",
9645
9638
  width: "14",
9646
9639
  height: "14",
@@ -9649,7 +9642,7 @@ function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
9649
9642
  }
9650
9643
  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>';
9651
9644
  function $05fbe84eb34564ec$export$d10e63059ddb9fd4(props = {}) {
9652
- return $i7OB2$ssrElement("svg", $i7OB2$mergeProps({
9645
+ return $i7OB2$ssrElement("svg", $i7OB2$mergeProps1({
9653
9646
  xmlns: "http://www.w3.org/2000/svg",
9654
9647
  width: "14",
9655
9648
  height: "14",
@@ -9762,7 +9755,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({
9762
9755
  })));
9763
9756
  },
9764
9757
  get children() {
9765
- return $i7OB2$ssr($757dac7f7c6c5241$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $i7OB2$mergeProps(args_for_filtering_, {
9758
+ return $i7OB2$ssr($757dac7f7c6c5241$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $i7OB2$mergeProps1(args_for_filtering_, {
9766
9759
  are_in_modal_: true
9767
9760
  }))));
9768
9761
  }
@@ -10318,7 +10311,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
10318
10311
  if (content_result_) return $i7OB2$ssrElement("a", attributes, () => $i7OB2$escape(children), true);
10319
10312
  return $i7OB2$ssrElement("div", attributes, () => $i7OB2$escape(children), true);
10320
10313
  };
10321
- return $i7OB2$ssr($b2bf2cdcff8142d8$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps(make_link_attributes, {
10314
+ return $i7OB2$ssr($b2bf2cdcff8142d8$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps1(make_link_attributes, {
10322
10315
  tabIndex: "-1",
10323
10316
  get children() {
10324
10317
  return $i7OB2$createComponent((0, $190927650b4840eb$export$605674723bcc715c), {
@@ -10326,7 +10319,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
10326
10319
  height: "28"
10327
10320
  });
10328
10321
  }
10329
- }))), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps({
10322
+ }))), $i7OB2$escape($i7OB2$createComponent(LinkIfPossible, $i7OB2$mergeProps1({
10330
10323
  "class": "content-title line-clamp"
10331
10324
  }, make_link_attributes, {
10332
10325
  get title() {
@@ -10467,7 +10460,7 @@ function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
10467
10460
  return (0, $f8c929beb82c512b$export$2452208c79fe93ea).content;
10468
10461
  },
10469
10462
  number_of_results_: num_results
10470
- })), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps({
10463
+ })), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
10471
10464
  layout: "grid",
10472
10465
  element_attributes: {
10473
10466
  class: "cards"
@@ -10846,7 +10839,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
10846
10839
  });
10847
10840
  const [sort_and_filter_element_, set_sort_and_filter_element_] = $i7OB2$createSignal();
10848
10841
  const no_results_text_ = $i7OB2$createMemo(() => (search_results_()?.content_search_links?.length ? i18n_.no_products_ : i18n_.no_results_text_)());
10849
- const results_for = $i7OB2$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $i7OB2$mergeProps({
10842
+ const results_for = $i7OB2$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $i7OB2$mergeProps1({
10850
10843
  get type() {
10851
10844
  return (0, $f8c929beb82c512b$export$2452208c79fe93ea).products;
10852
10845
  },
@@ -12592,7 +12585,7 @@ function $df5d81d0fe61ff21$var$add_us_to_crumbs(plp_meta) {
12592
12585
  return $i7OB2$createMemo(() => {
12593
12586
  const api_value = plp_meta()?.breadcrumbs;
12594
12587
  if (!api_value) return api_value;
12595
- return [...api_value, $i7OB2$mergeProps1(plp_meta(), {
12588
+ return [...api_value, $i7OB2$mergeProps(plp_meta(), {
12596
12589
  get page_url() {
12597
12590
  return href_accessor();
12598
12591
  }
@@ -12698,4 +12691,4 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
12698
12691
  }, "Entire CategoryPage failed");
12699
12692
  }
12700
12693
  $i7OB2$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
12701
- 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 };
12694
+ 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 };