@depict-ai/ui 4.3.2 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/latest/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { add_to_version_info as $9HbP8$add_to_version_info, fetch_retry as $9HbP8$fetch_retry, base_url as $9HbP8$base_url, dwarn as $9HbP8$dwarn, slider_fractional_factory as $9HbP8$slider_fractional_factory, dlog as $9HbP8$dlog, camelCasifyObject as $9HbP8$camelCasifyObject, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, catchify as $9HbP8$catchify, layout_get_visible_recs_without_partial_rows as $9HbP8$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $9HbP8$layout_get_total_rec_amount_for_row, layout_media_query_header as $9HbP8$layout_media_query_header, report as $9HbP8$report, slider_fading_factory as $9HbP8$slider_fading_factory, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, observer as $9HbP8$observer, javascript_media_query as $9HbP8$javascript_media_query, queueMacroTask as $9HbP8$queueMacroTask, findMostFrequentItem as $9HbP8$findMostFrequentItem, standard_price_format as $9HbP8$standard_price_format, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, use_href_accessor as $9HbP8$use_href_accessor, get_session_id as $9HbP8$get_session_id, add_version_query_params as $9HbP8$add_version_query_params, useExpandingContainer as $9HbP8$useExpandingContainer, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, snakeCasifyObject as $9HbP8$snakeCasifyObject, sort_obj as $9HbP8$sort_obj, make_url_with_query_params as $9HbP8$make_url_with_query_params, ListenableSet as $9HbP8$ListenableSet1, insert_surfaces as $9HbP8$insert_surfaces, is_debug as $9HbP8$is_debug } from "@depict-ai/utilishared/latest";
2
- import { template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, insert as $9HbP8$insert, createComponent as $9HbP8$createComponent, mergeProps as $9HbP8$mergeProps1, isServer as $9HbP8$isServer, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, effect as $9HbP8$effect, classList as $9HbP8$classList, setAttribute as $9HbP8$setAttribute, style as $9HbP8$style, use as $9HbP8$use, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
3
- import { createSignal as $9HbP8$createSignal, createMemo as $9HbP8$createMemo, createResource as $9HbP8$createResource, createEffect as $9HbP8$createEffect, mergeProps as $9HbP8$mergeProps, Show as $9HbP8$Show, Suspense as $9HbP8$Suspense, untrack as $9HbP8$untrack, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, createRoot as $9HbP8$createRoot, onCleanup as $9HbP8$onCleanup, For as $9HbP8$For, getOwner as $9HbP8$getOwner, runWithOwner as $9HbP8$runWithOwner, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, createUniqueId as $9HbP8$createUniqueId, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, splitProps as $9HbP8$splitProps, on as $9HbP8$on, batch as $9HbP8$batch, createSelector as $9HbP8$createSelector, children as $9HbP8$children, createReaction as $9HbP8$createReaction, mapArray as $9HbP8$mapArray } from "solid-js";
2
+ import { template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, insert as $9HbP8$insert, createComponent as $9HbP8$createComponent, mergeProps as $9HbP8$mergeProps, isServer as $9HbP8$isServer, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, className as $9HbP8$className, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, effect as $9HbP8$effect, classList as $9HbP8$classList, setAttribute as $9HbP8$setAttribute, style as $9HbP8$style, use as $9HbP8$use, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
3
+ import { createSignal as $9HbP8$createSignal, createMemo as $9HbP8$createMemo, createResource as $9HbP8$createResource, createEffect as $9HbP8$createEffect, Show as $9HbP8$Show, mergeProps as $9HbP8$mergeProps1, Suspense as $9HbP8$Suspense, untrack as $9HbP8$untrack, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, createRoot as $9HbP8$createRoot, onCleanup as $9HbP8$onCleanup, For as $9HbP8$For, getOwner as $9HbP8$getOwner, runWithOwner as $9HbP8$runWithOwner, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, createUniqueId as $9HbP8$createUniqueId, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, splitProps as $9HbP8$splitProps, on as $9HbP8$on, batch as $9HbP8$batch, createSelector as $9HbP8$createSelector, children as $9HbP8$children, createReaction as $9HbP8$createReaction, mapArray as $9HbP8$mapArray } from "solid-js";
4
4
  import { ListenableSet as $9HbP8$ListenableSet, catchify as $9HbP8$catchify1, use_href_accessor as $9HbP8$use_href_accessor1, report as $9HbP8$report1 } from "@depict-ai/utilishared/latest";
5
5
  import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
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.3.2";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.4";
11
11
  const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
12
12
  const cols_at_size = [];
13
13
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -426,7 +426,7 @@ function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
426
426
  const container_class = "x" + $9HbP8$createUniqueId();
427
427
  const container_element_ = (() => {
428
428
  var _el$ = $9HbP8$getNextElement($c8d5ff4524619fcd$var$_tmpl$);
429
- $9HbP8$spread(_el$, $9HbP8$mergeProps1(() => props.element_attributes, {
429
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(() => props.element_attributes, {
430
430
  "classList": {
431
431
  [container_class]: true
432
432
  }
@@ -669,7 +669,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
669
669
  } = slider;
670
670
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
671
671
  // Do like this, so we don't have to call mergeProps ourselves
672
- $9HbP8$createComponent(Layout, $9HbP8$mergeProps1({
672
+ $9HbP8$createComponent(Layout, $9HbP8$mergeProps({
673
673
  rows: "all",
674
674
  layout: "slider"
675
675
  }, layout_options_));
@@ -990,7 +990,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
990
990
  if (loading === "force-lazy") return true;
991
991
  return loading === "lazy" && !isPrioritisedImage();
992
992
  });
993
- const modifiedOtherAttributes = $9HbP8$mergeProps(otherAttributes, {
993
+ const modifiedOtherAttributes = $9HbP8$mergeProps1(otherAttributes, {
994
994
  get loading() {
995
995
  return shouldActuallyEnableLazyLoading() ? "lazy" : undefined;
996
996
  }
@@ -1059,7 +1059,7 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
1059
1059
  $9HbP8$onCleanup(() => prevValue && aspectRatios.delete(prevValue));
1060
1060
  }
1061
1061
  $9HbP8$onCleanup(() => gotCleanedUp = true);
1062
- $9HbP8$spread(img, $9HbP8$mergeProps(modifiedOtherAttributes), false, true);
1062
+ $9HbP8$spread(img, $9HbP8$mergeProps1(modifiedOtherAttributes), false, true);
1063
1063
  $9HbP8$createRenderEffect(() => {
1064
1064
  props.src;
1065
1065
  srcJustChanged = true;
@@ -1162,7 +1162,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1162
1162
  $9HbP8$queueMacroTask(() => setCurrentImageSize()); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
1163
1163
  });
1164
1164
 
1165
- $9HbP8$insert(container, $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$mergeProps1({
1165
+ $9HbP8$insert(container, $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$mergeProps({
1166
1166
  get size() {
1167
1167
  return $9HbP8$createMemo(() => currentImageSize()?.() || 0);
1168
1168
  },
@@ -1177,7 +1177,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1177
1177
  return container;
1178
1178
  }
1179
1179
  function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
1180
- return $9HbP8$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $9HbP8$mergeProps1(props, {
1180
+ return $9HbP8$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $9HbP8$mergeProps(props, {
1181
1181
  get imgProps() {
1182
1182
  return {
1183
1183
  ...props.imgProps,
@@ -1207,7 +1207,7 @@ var $5a6c386e1bde5665$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=img-
1207
1207
  function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1208
1208
  display_: display_,
1209
1209
  FavoriteButton_: FavoriteButton_,
1210
- isExpanded_: isExpanded_,
1210
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1211
1211
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1212
1212
  outerRef_: outerRef_,
1213
1213
  animationDuration_: animationDuration_,
@@ -1220,12 +1220,12 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1220
1220
  });
1221
1221
  const imageUrl = $9HbP8$createMemo(() => variantToUse()?.image_urls?.[0]);
1222
1222
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1223
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $9HbP8$createSignal($9HbP8$untrack(isExpanded_));
1223
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $9HbP8$createSignal($9HbP8$untrack(userWantsExpanded));
1224
1224
  const [animationEffectExists, setAnimationEffectExists] = $9HbP8$createSignal(false);
1225
1225
  const [salePrice] = $9HbP8$createResource(() => variantToUse()?.sale_price);
1226
1226
  const [originalPrice] = $9HbP8$createResource(() => variantToUse()?.original_price);
1227
1227
  const isOnSale = $9HbP8$createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1228
- const enableLink = $9HbP8$createMemo(() => isExpanded_() && !animationIsRunning());
1228
+ const enableLink = $9HbP8$createMemo(() => userWantsExpanded() && !animationIsRunning());
1229
1229
  const href = $9HbP8$createMemo(() => variantToUse()?.page_url);
1230
1230
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1231
1231
  return (() => {
@@ -1236,15 +1236,22 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1236
1236
  [_el$15, _co$4] = $9HbP8$getNextMarker(_el$14.nextSibling);
1237
1237
  var _ref$ = outerRef_;
1238
1238
  typeof _ref$ === "function" ? $9HbP8$use(_ref$, _el$) : outerRef_ = _el$;
1239
- $9HbP8$spread(_el$, $9HbP8$mergeProps1(() => enableLink() ? {
1239
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(() => enableLink() ? {
1240
1240
  href: href()
1241
1241
  } : {}, {
1242
1242
  get onClick() {
1243
- return $9HbP8$catchify(event_ => enableLink() && pseudoRouter_.navigate_.go_to_({
1244
- new_url_: href(),
1245
- is_replace_: false,
1246
- event_: event_
1247
- }));
1243
+ return $9HbP8$catchify(event_ => {
1244
+ if (enableLink()) {
1245
+ pseudoRouter_.navigate_.go_to_({
1246
+ new_url_: href(),
1247
+ is_replace_: false,
1248
+ event_: event_
1249
+ });
1250
+ if (event_.defaultPrevented)
1251
+ // We single-page-navigated in this tab, close the look
1252
+ setUserWantsExpanded(false);
1253
+ }
1254
+ });
1248
1255
  }
1249
1256
  }), false, true);
1250
1257
  $9HbP8$insert(_el$, $9HbP8$createComponent((0, $9HbP8$Show), {
@@ -1271,10 +1278,10 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1271
1278
  return imageUrl();
1272
1279
  },
1273
1280
  get aspectRatio() {
1274
- return isExpanded_() ? 0.75 : 1;
1281
+ return userWantsExpanded() ? 0.75 : 1;
1275
1282
  },
1276
1283
  get autoAdjustAspectRatio() {
1277
- return isExpanded_();
1284
+ return userWantsExpanded();
1278
1285
  },
1279
1286
  imgProps: {
1280
1287
  keyRatioUpdating: true
@@ -1287,7 +1294,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1287
1294
  }), _el$13, _co$3);
1288
1295
  $9HbP8$insert(_el$, $9HbP8$createComponent((0, $9HbP8$Show), {
1289
1296
  get when() {
1290
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1297
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1291
1298
  },
1292
1299
  get children() {
1293
1300
  var _el$3 = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$3),
@@ -1314,7 +1321,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1314
1321
  setAnimationIsRunning(true);
1315
1322
  $9HbP8$runWithOwner(owner, () => {
1316
1323
  $9HbP8$createRenderEffect(() => {
1317
- const expanded = isExpanded_();
1324
+ const expanded = userWantsExpanded();
1318
1325
  // Still glitches in chrome (probably not fixable) and sometimes the timing is off in Safari but fuck it, I couldn't massage the WAAPI to improve it in any way (without reading computed style) to make the reversing of animations glitch less
1319
1326
  textContainerAnimation.pause();
1320
1327
  textContainerAnimation.updatePlaybackRate(expanded ? 1 : -1);
@@ -1469,7 +1476,7 @@ var $7555dcad3b8a4632$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=scro
1469
1476
  function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1470
1477
  displays_: displays_,
1471
1478
  FavoriteButton_: FavoriteButton_,
1472
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1479
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1473
1480
  containerWidth_: containerWidth_,
1474
1481
  animationDuration_: animationDuration_,
1475
1482
  supportsHover_: supportsHover_,
@@ -1483,6 +1490,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1483
1490
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1484
1491
  const textFadeInAnimationRunning = $9HbP8$createSignal(false);
1485
1492
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1493
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1486
1494
  $62a8f670f8464532$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1487
1495
  return $9HbP8$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
1488
1496
  get children() {
@@ -1504,7 +1512,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1504
1512
  behavior: "smooth"
1505
1513
  });
1506
1514
  }), _el$2);
1507
- $9HbP8$spread(_el$2, $9HbP8$mergeProps1({
1515
+ $9HbP8$spread(_el$2, $9HbP8$mergeProps({
1508
1516
  get classList() {
1509
1517
  return {
1510
1518
  expanded: userWantsExpanded(),
@@ -1532,7 +1540,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1532
1540
  animationDuration_: animationDuration_,
1533
1541
  display_: display,
1534
1542
  FavoriteButton_: FavoriteButton_,
1535
- isExpanded_: userWantsExpanded,
1543
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1536
1544
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1537
1545
  priceFormatting_: priceFormatting_,
1538
1546
  outerRef_: el => $9HbP8$createEffect(() => {
@@ -1761,11 +1769,100 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
1761
1769
  this.on_navigation_ = on_navigation;
1762
1770
  }
1763
1771
  }
1764
- var $f577edfe2240eec1$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict recommendations looks"style=--animation-duration:240ms>`);
1765
- let $f577edfe2240eec1$var$expandedLooksSignal_;
1766
- function $f577edfe2240eec1$export$1935e6bdfc5ed8ce(props) {
1772
+ var $3da8afe3ed57cf34$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="show-more major"type=button>`),
1773
+ $3da8afe3ed57cf34$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<h2 class=recs-title>`),
1774
+ $3da8afe3ed57cf34$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
1775
+ function $3da8afe3ed57cf34$export$7da560f849543dff({
1776
+ recommendations_resource_: recommendations_resource_,
1777
+ product_card_template_: product_card_template_,
1778
+ layout_options_: layout_options_,
1779
+ title_: title_,
1780
+ max_rows_: max_rows_,
1781
+ view_more_button_: view_more_button_
1782
+ }) {
1783
+ const rows_object_ = $9HbP8$createMemo(() => {
1784
+ const view_more_button = view_more_button_?.();
1785
+ const max_rows = max_rows_?.();
1786
+ if (!view_more_button) {
1787
+ if (max_rows) return {
1788
+ max_rows: max_rows
1789
+ };
1790
+ return "all";
1791
+ }
1792
+ return {
1793
+ max_rows: max_rows,
1794
+ start_rows: view_more_button.start_rows,
1795
+ rows_per_click: view_more_button.rows_per_click ?? 2,
1796
+ button: (() => {
1797
+ var _el$ = $9HbP8$getNextElement($3da8afe3ed57cf34$var$_tmpl$);
1798
+ $9HbP8$insert(_el$, () => view_more_button.text);
1799
+ return _el$;
1800
+ })()
1801
+ };
1802
+ });
1803
+ const is_showing_something = $9HbP8$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
1804
+ const title = $9HbP8$createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
1805
+ const num_placeholders_ = () => 20;
1806
+ const elements = [$9HbP8$createComponent((0, $9HbP8$Show), {
1807
+ get when() {
1808
+ return title();
1809
+ },
1810
+ get children() {
1811
+ var _el$2 = $9HbP8$getNextElement($3da8afe3ed57cf34$var$_tmpl$2);
1812
+ $9HbP8$insert(_el$2, title);
1813
+ return _el$2;
1814
+ }
1815
+ }), (() => {
1816
+ var _el$3 = $9HbP8$getNextElement($3da8afe3ed57cf34$var$_tmpl$3),
1817
+ _el$4 = _el$3.firstChild,
1818
+ [_el$5, _co$] = $9HbP8$getNextMarker(_el$4.nextSibling),
1819
+ _el$6 = _el$5.nextSibling,
1820
+ [_el$7, _co$2] = $9HbP8$getNextMarker(_el$6.nextSibling);
1821
+ $9HbP8$insert(_el$3, (0, $a458486f22b22f63$export$a2cc176055f8f08), _el$5, _co$);
1822
+ $9HbP8$insert(_el$3, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps({
1823
+ get rows() {
1824
+ return rows_object_();
1825
+ },
1826
+ layout: "grid",
1827
+ element_attributes: {
1828
+ class: "cards"
1829
+ }
1830
+ }, layout_options_, {
1831
+ get children() {
1832
+ return $9HbP8$createComponent((0, $9HbP8$Suspense), {
1833
+ get fallback() {
1834
+ return $6e41f1fde994db72$export$f33414a4df0afd3f({
1835
+ num_placeholders_: num_placeholders_,
1836
+ product_card_template_: product_card_template_
1837
+ });
1838
+ },
1839
+ get children() {
1840
+ return (() => {
1841
+ // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
1842
+ const displays_by_key_ = $29ec7cddbe1d3484$export$7f8bd308237ab5a5($9HbP8$createMemo(() => recommendations_resource_() || []));
1843
+ return $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
1844
+ displays_by_key_: displays_by_key_,
1845
+ product_card_template_: product_card_template_
1846
+ });
1847
+ })();
1848
+ }
1849
+ });
1850
+ }
1851
+ })), _el$7, _co$2);
1852
+ return _el$3;
1853
+ })()];
1854
+ return $9HbP8$createComponent((0, $9HbP8$Show), {
1855
+ get when() {
1856
+ return is_showing_something();
1857
+ },
1858
+ children: elements
1859
+ });
1860
+ }
1861
+ var $07ef910e8ef6b783$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict recommendations looks"style=--animation-duration:240ms>`);
1862
+ let $07ef910e8ef6b783$var$expandedLooksSignal_;
1863
+ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
1767
1864
  return $16b52438165aafe2$export$23fca46f3143581f(() => {
1768
- $f577edfe2240eec1$var$expandedLooksSignal_ ||= $9HbP8$createSignal(new Set(), {
1865
+ $07ef910e8ef6b783$var$expandedLooksSignal_ ||= $9HbP8$createSignal(new Set(), {
1769
1866
  equals: false
1770
1867
  });
1771
1868
  const expandingAnimationDuration = 240;
@@ -1805,8 +1902,25 @@ function $f577edfe2240eec1$export$1935e6bdfc5ed8ce(props) {
1805
1902
  market: market,
1806
1903
  locale: locale
1807
1904
  };
1808
- return $f577edfe2240eec1$var$runDisplayTransformersForLooks(baseData, listings, props.displayTransformers_);
1905
+ return $07ef910e8ef6b783$var$runDisplayTransformersForLooks(baseData, listings, props.displayTransformers_);
1809
1906
  });
1907
+ const sharedOptions = {
1908
+ product_card_template_: display => $28ee4f7db3cc44b8$export$44809a8a3e867e30({
1909
+ display_: display,
1910
+ FavoriteButton_: props.FavoriteButton_,
1911
+ placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
1912
+ animationDuration_: expandingAnimationDuration,
1913
+ expandedLooksSignal_: $07ef910e8ef6b783$var$expandedLooksSignal_,
1914
+ priceFormatting_: () => props.priceFormatting_,
1915
+ pseudoRouter_: pseudoRouter
1916
+ }),
1917
+ recommendations_resource_: looksResource,
1918
+ title_: () => props.title_,
1919
+ layout_options_: $9HbP8$createMemo(() => ({
1920
+ cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.columnsAtSize_),
1921
+ ...grid_spacing_override()
1922
+ }))
1923
+ };
1810
1924
  $9HbP8$createEffect(() => {
1811
1925
  const {
1812
1926
  onNavigation_: onNavigation_
@@ -1814,25 +1928,19 @@ function $f577edfe2240eec1$export$1935e6bdfc5ed8ce(props) {
1814
1928
  if (onNavigation_) pseudoRouter.on_navigation_ = onNavigation_;
1815
1929
  });
1816
1930
  return (() => {
1817
- var _el$ = $9HbP8$getNextElement($f577edfe2240eec1$var$_tmpl$);
1931
+ var _el$ = $9HbP8$getNextElement($07ef910e8ef6b783$var$_tmpl$);
1818
1932
  $9HbP8$insert(_el$, $9HbP8$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
1819
1933
  get children() {
1820
- return $c4492d24952ed731$export$d41d19e89346fa2({
1821
- product_card_template_: display => $28ee4f7db3cc44b8$export$44809a8a3e867e30({
1822
- display_: display,
1823
- FavoriteButton_: props.FavoriteButton_,
1824
- placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
1825
- animationDuration_: expandingAnimationDuration,
1826
- expandedLooksSignal_: $f577edfe2240eec1$var$expandedLooksSignal_,
1827
- priceFormatting_: () => props.priceFormatting_,
1828
- pseudoRouter_: pseudoRouter
1829
- }),
1830
- recommendations_resource_: looksResource,
1831
- title_: () => props.title_,
1832
- layout_options_: $9HbP8$createMemo(() => ({
1833
- cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.columnsAtSize_),
1834
- ...grid_spacing_override()
1835
- }))
1934
+ return $9HbP8$createComponent((0, $9HbP8$Show), {
1935
+ get when() {
1936
+ return props.gridOptions_;
1937
+ },
1938
+ get fallback() {
1939
+ return $9HbP8$createComponent((0, $c4492d24952ed731$export$d41d19e89346fa2), sharedOptions);
1940
+ },
1941
+ get children() {
1942
+ return $9HbP8$createComponent((0, $3da8afe3ed57cf34$export$7da560f849543dff), $9HbP8$mergeProps(sharedOptions, () => props.gridOptions_));
1943
+ }
1836
1944
  });
1837
1945
  }
1838
1946
  }));
@@ -1840,7 +1948,7 @@ function $f577edfe2240eec1$export$1935e6bdfc5ed8ce(props) {
1840
1948
  })();
1841
1949
  }, "LookSlider failed");
1842
1950
  }
1843
- async function $f577edfe2240eec1$var$runDisplayTransformersForLooks(baseData, listings, displayTransformers) {
1951
+ async function $07ef910e8ef6b783$var$runDisplayTransformersForLooks(baseData, listings, displayTransformers) {
1844
1952
  try {
1845
1953
  const {
1846
1954
  products: productTransformer,
@@ -1878,7 +1986,7 @@ async function $f577edfe2240eec1$var$runDisplayTransformersForLooks(baseData, li
1878
1986
  }) : displaysToTransform;
1879
1987
  const transformedListings = await transformedListingsPromise;
1880
1988
  const transformedDisplayById = Object.fromEntries(transformedProducts.map(display => [$16351e4c87b90b3d$export$548d053aba053d79(display), display]));
1881
- return transformedListings.map(listing => $9HbP8$mergeProps(listing, {
1989
+ return transformedListings.map(listing => $9HbP8$mergeProps1(listing, {
1882
1990
  // use mergeProps because in preview browser we add getters in this object, that would be called too early otherwise
1883
1991
  displays: (displayIdsPerListingId[listing.listing_id] || []).map(displayId => transformedDisplayById[displayId]).filter(v => v)
1884
1992
  }));
@@ -3332,7 +3440,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
3332
3440
  $9HbP8$insert(_el$5, $9HbP8$createComponent((0, $19976a74d273070d$export$3b621d86b1566b2), {}));
3333
3441
  var _ref$2 = submit_button_ref_;
3334
3442
  typeof _ref$2 === "function" ? $9HbP8$use(_ref$2, _el$6) : submit_button_ref_ = _el$6;
3335
- $9HbP8$spread(_el$6, $9HbP8$mergeProps1({
3443
+ $9HbP8$spread(_el$6, $9HbP8$mergeProps({
3336
3444
  get onClick() {
3337
3445
  return $9HbP8$catchify(() => submit_query_());
3338
3446
  }
@@ -3969,7 +4077,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
3969
4077
  const href = $9HbP8$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
3970
4078
  const LinkToListing = props => (() => {
3971
4079
  var _el$ = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$);
3972
- $9HbP8$spread(_el$, $9HbP8$mergeProps1(props, {
4080
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(props, {
3973
4081
  get href() {
3974
4082
  return href();
3975
4083
  },
@@ -4363,7 +4471,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
4363
4471
  $9HbP8$createComputed($9HbP8$on(search_field_value_[0], () => !suggestions_updating_blocked() && set_selected_index(undefined), {
4364
4472
  defer: true
4365
4473
  })); // reset autocomplete position if query changes
4366
- return [$9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps1(sharedSuggestionProps, {
4474
+ return [$9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps(sharedSuggestionProps, {
4367
4475
  get title_() {
4368
4476
  return i18n_.popular_;
4369
4477
  },
@@ -4373,7 +4481,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
4373
4481
  return itemIndexes_.suggestionsIndex_;
4374
4482
  },
4375
4483
  showPlaceholders_: () => showPlaceholders() || noResults_() && !noResultsPopularSuggestions.latest
4376
- })), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps1(sharedSuggestionProps, {
4484
+ })), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps(sharedSuggestionProps, {
4377
4485
  get title_() {
4378
4486
  return i18n_.previous_;
4379
4487
  },
@@ -4390,7 +4498,7 @@ function $2f3171b02c8f4a5d$export$af1fb307bbba2417({
4390
4498
  return _el$;
4391
4499
  })(),
4392
4500
  showPlaceholders_: () => false
4393
- })), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps1(sharedSuggestionProps, {
4501
+ })), $9HbP8$createComponent((0, $903297121898e5ff$export$d4994a86c6235f72), $9HbP8$mergeProps(sharedSuggestionProps, {
4394
4502
  get title_() {
4395
4503
  return i18n_.content_;
4396
4504
  },
@@ -4912,7 +5020,7 @@ function $024fbc0a2d796fad$export$b2539bed5023c21c(props) {
4912
5020
  return $9HbP8$createComponent($024fbc0a2d796fad$var$TabsContext.Provider, {
4913
5021
  value: new (0, $9HbP8$ListenableSet)(),
4914
5022
  get children() {
4915
- return $9HbP8$createComponent($024fbc0a2d796fad$var$ActualTabs, $9HbP8$mergeProps1(props, {
5023
+ return $9HbP8$createComponent($024fbc0a2d796fad$var$ActualTabs, $9HbP8$mergeProps(props, {
4916
5024
  get children() {
4917
5025
  return props.children;
4918
5026
  }
@@ -4942,7 +5050,7 @@ function $024fbc0a2d796fad$var$ActualTabs(props) {
4942
5050
  },
4943
5051
  children: item => {
4944
5052
  const weSelected = $9HbP8$createMemo(() => isSelected(item().id));
4945
- return $9HbP8$createComponent((0, $9HbP8$Dynamic), $9HbP8$mergeProps1({
5053
+ return $9HbP8$createComponent((0, $9HbP8$Dynamic), $9HbP8$mergeProps({
4946
5054
  get component() {
4947
5055
  return props.AnchorComponent;
4948
5056
  },
@@ -5049,7 +5157,7 @@ function $024fbc0a2d796fad$export$3e41faf802a29e71(props) {
5049
5157
  if (!currentTabs) throw new Error("Tab must be a child of Tabs");
5050
5158
  const id = $9HbP8$createUniqueId();
5051
5159
  const ourSet = currentTabs;
5052
- const extendedProps = $9HbP8$mergeProps({
5160
+ const extendedProps = $9HbP8$mergeProps1({
5053
5161
  id: id
5054
5162
  }, props);
5055
5163
  ourSet.add(extendedProps);
@@ -5251,99 +5359,9 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
5251
5359
  const $4690a06c8489dcd0$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
5252
5360
  const $4690a06c8489dcd0$export$864d304a0bc46829 = "2%";
5253
5361
  const $4690a06c8489dcd0$export$7bf543b9d9be2c22 = (0, $e4615ecd1849548f$export$b91cec6bdc6b32a1);
5254
- var $3da8afe3ed57cf34$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<h2 class=recs-title>`),
5255
- $3da8afe3ed57cf34$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
5256
- function $3da8afe3ed57cf34$export$7da560f849543dff({
5257
- recommendations_resource_: recommendations_resource_,
5258
- product_card_template_: product_card_template_,
5259
- layout_options_: layout_options_,
5260
- rows_object_: rows_object_,
5261
- title_: title_
5262
- }) {
5263
- const is_showing_something = $9HbP8$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
5264
- const title = $9HbP8$createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
5265
- const num_placeholders_ = () => 20;
5266
- const elements = [$9HbP8$createComponent((0, $9HbP8$Show), {
5267
- get when() {
5268
- return title();
5269
- },
5270
- get children() {
5271
- var _el$ = $9HbP8$getNextElement($3da8afe3ed57cf34$var$_tmpl$);
5272
- $9HbP8$insert(_el$, title);
5273
- return _el$;
5274
- }
5275
- }), (() => {
5276
- var _el$2 = $9HbP8$getNextElement($3da8afe3ed57cf34$var$_tmpl$2),
5277
- _el$3 = _el$2.firstChild,
5278
- [_el$4, _co$] = $9HbP8$getNextMarker(_el$3.nextSibling),
5279
- _el$5 = _el$4.nextSibling,
5280
- [_el$6, _co$2] = $9HbP8$getNextMarker(_el$5.nextSibling);
5281
- $9HbP8$insert(_el$2, (0, $a458486f22b22f63$export$a2cc176055f8f08), _el$4, _co$);
5282
- $9HbP8$insert(_el$2, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps1({
5283
- get rows() {
5284
- return rows_object_();
5285
- },
5286
- layout: "grid",
5287
- element_attributes: {
5288
- class: "cards"
5289
- }
5290
- }, layout_options_, {
5291
- get children() {
5292
- return $9HbP8$createComponent((0, $9HbP8$Suspense), {
5293
- get fallback() {
5294
- return $6e41f1fde994db72$export$f33414a4df0afd3f({
5295
- num_placeholders_: num_placeholders_,
5296
- product_card_template_: product_card_template_
5297
- });
5298
- },
5299
- get children() {
5300
- return (() => {
5301
- // IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
5302
- const displays_by_key_ = $29ec7cddbe1d3484$export$7f8bd308237ab5a5($9HbP8$createMemo(() => recommendations_resource_() || []));
5303
- return $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
5304
- displays_by_key_: displays_by_key_,
5305
- product_card_template_: product_card_template_
5306
- });
5307
- })();
5308
- }
5309
- });
5310
- }
5311
- })), _el$6, _co$2);
5312
- return _el$2;
5313
- })()];
5314
- return $9HbP8$createComponent((0, $9HbP8$Show), {
5315
- get when() {
5316
- return is_showing_something();
5317
- },
5318
- children: elements
5319
- });
5320
- }
5321
- var $9ea5383493360761$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class="show-more major"type=button>`),
5322
- $9ea5383493360761$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp recommendations">`);
5362
+ var $9ea5383493360761$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp recommendations">`);
5323
5363
  function $9ea5383493360761$export$9756467d34d91cdb(props) {
5324
5364
  return $16b52438165aafe2$export$23fca46f3143581f(() => {
5325
- const rows_object_ = $9HbP8$createMemo(() => {
5326
- const {
5327
- view_more_button: view_more_button,
5328
- max_rows: max_rows
5329
- } = props;
5330
- if (!view_more_button) {
5331
- if (max_rows) return {
5332
- max_rows: max_rows
5333
- };
5334
- return "all";
5335
- }
5336
- return {
5337
- max_rows: max_rows,
5338
- start_rows: view_more_button.start_rows,
5339
- rows_per_click: view_more_button.rows_per_click ?? 2,
5340
- button: (() => {
5341
- var _el$ = $9HbP8$getNextElement($9ea5383493360761$var$_tmpl$);
5342
- $9HbP8$insert(_el$, () => view_more_button.text);
5343
- return _el$;
5344
- })()
5345
- };
5346
- });
5347
5365
  const grid_spacing_override = $9HbP8$createMemo(() => {
5348
5366
  const {
5349
5367
  grid_spacing: grid_spacing
@@ -5357,11 +5375,12 @@ function $9ea5383493360761$export$9756467d34d91cdb(props) {
5357
5375
  });
5358
5376
  const [recommendations_resource_] = $9HbP8$createResource(() => props.recommendations, recs => recs);
5359
5377
  return (() => {
5360
- var _el$2 = $9HbP8$getNextElement($9ea5383493360761$var$_tmpl$2);
5361
- $9HbP8$insert(_el$2, $9HbP8$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
5378
+ var _el$ = $9HbP8$getNextElement($9ea5383493360761$var$_tmpl$);
5379
+ $9HbP8$insert(_el$, $9HbP8$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
5362
5380
  get children() {
5363
5381
  return $3da8afe3ed57cf34$export$7da560f849543dff({
5364
- rows_object_: rows_object_,
5382
+ max_rows_: () => props.max_rows,
5383
+ view_more_button_: () => props.view_more_button,
5365
5384
  product_card_template_: (...args) => props.product_card_template(...args),
5366
5385
  recommendations_resource_: recommendations_resource_,
5367
5386
  title_: () => props.title,
@@ -5372,7 +5391,7 @@ function $9ea5383493360761$export$9756467d34d91cdb(props) {
5372
5391
  });
5373
5392
  }
5374
5393
  }));
5375
- return _el$2;
5394
+ return _el$;
5376
5395
  })();
5377
5396
  }, "RecommendationGrid failed");
5378
5397
  }
@@ -5655,14 +5674,14 @@ function $8560c919ff763930$var$ActualShopTheLookButton(props) {
5655
5674
  const displayStyleValue = $9HbP8$createMemo(() => hasAnythingToShow() ? "" : "none");
5656
5675
  const button = (() => {
5657
5676
  var _el$2 = $9HbP8$getNextElement($8560c919ff763930$var$_tmpl$2);
5658
- $9HbP8$spread(_el$2, $9HbP8$mergeProps1(() => localProps.buttonAttributes), false, true);
5677
+ $9HbP8$spread(_el$2, $9HbP8$mergeProps(() => localProps.buttonAttributes), false, true);
5659
5678
  $9HbP8$insert(_el$2, () => localProps?.buttonAttributes?.children || "Shop the look");
5660
5679
  $9HbP8$runHydrationEvents();
5661
5680
  return _el$2;
5662
5681
  })();
5663
5682
  $9HbP8$createEffect(() => button.style.display = displayStyleValue()); // Set our attributes like this, so we allow total control over the button from the outside via buttonAttributes
5664
5683
  $9HbP8$createEffect(() => !hasAnythingToShow() && closeModal()); // close modal if we ever get into the state of having it open and not having anything to show
5665
- $8560c919ff763930$var$modalProps = $9HbP8$mergeProps(partForModal, {
5684
+ $8560c919ff763930$var$modalProps = $9HbP8$mergeProps1(partForModal, {
5666
5685
  products_to_shop_: products_to_shop_
5667
5686
  });
5668
5687
  button.addEventListener("click", openModal);
@@ -6398,7 +6417,7 @@ var $f8a56ba74eedd0c6$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg><path d="M
6398
6417
  function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
6399
6418
  return (() => {
6400
6419
  var _el$ = $9HbP8$getNextElement($f8a56ba74eedd0c6$var$_tmpl$);
6401
- $9HbP8$spread(_el$, $9HbP8$mergeProps1(props, {
6420
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(props, {
6402
6421
  "xmlns": "http://www.w3.org/2000/svg",
6403
6422
  "width": "11",
6404
6423
  "height": "12"
@@ -7873,7 +7892,7 @@ const $93716a9ad0dea854$export$414f6a19d38e655c = ({
7873
7892
  [_el$6, _co$] = $9HbP8$getNextMarker(_el$5.nextSibling),
7874
7893
  _el$7 = _el$6.nextSibling,
7875
7894
  [_el$8, _co$2] = $9HbP8$getNextMarker(_el$7.nextSibling);
7876
- $9HbP8$spread(_el$2, $9HbP8$mergeProps1(attributes, {
7895
+ $9HbP8$spread(_el$2, $9HbP8$mergeProps(attributes, {
7877
7896
  get disabled() {
7878
7897
  return $9HbP8$memo(() => !!count_zero())() && !is_selected();
7879
7898
  },
@@ -9271,7 +9290,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
9271
9290
  // Filter out our transformed ancestors
9272
9291
  const transformedAncestors = Object.fromEntries(transformerResult.filter(item => item.is_suggestion === false).map(item => [item.listing_id, item]));
9273
9292
  // Add the now transformed ancestors into the ancestors of the listing suggestions
9274
- const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $9HbP8$mergeProps(item, {
9293
+ const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $9HbP8$mergeProps1(item, {
9275
9294
  // Use mergeProps instead of spread since page_url and other properties could be a getter that solid components should call
9276
9295
  ancestors: item.ancestors.map(ancestor => {
9277
9296
  const newAncestor = transformedAncestors[ancestor.listing_id];
@@ -9831,7 +9850,7 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
9831
9850
  [_el$6, _co$2] = $9HbP8$getNextMarker(_el$5.nextSibling);
9832
9851
  $9HbP8$insert(_el$2, () => i18n_.search_recs_title_());
9833
9852
  $9HbP8$insert(_el$, (0, $a458486f22b22f63$export$a2cc176055f8f08), _el$4, _co$);
9834
- $9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps1({
9853
+ $9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps({
9835
9854
  rows: rows_object,
9836
9855
  layout: "grid",
9837
9856
  element_attributes: {
@@ -10560,7 +10579,7 @@ function $6dee9211e57ac31a$export$ab6b147eec64fea5(props) {
10560
10579
  const container_class = "x" + $9HbP8$createUniqueId();
10561
10580
  const container_element_ = (() => {
10562
10581
  var _el$ = $9HbP8$getNextElement($6dee9211e57ac31a$var$_tmpl$);
10563
- $9HbP8$spread(_el$, $9HbP8$mergeProps1(() => props.element_attributes, {
10582
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(() => props.element_attributes, {
10564
10583
  "classList": {
10565
10584
  [container_class]: true
10566
10585
  }
@@ -10835,7 +10854,7 @@ function $e7a7eb102ddc0c79$var$wrap_blocks_in_div(rendered_content_blocks, max_s
10835
10854
  return _el$;
10836
10855
  }
10837
10856
  });
10838
- return $9HbP8$mergeProps(block, {
10857
+ return $9HbP8$mergeProps1(block, {
10839
10858
  // Create content divs for the blocks with as much fine-grained diffing as possible?
10840
10859
  content: () => {
10841
10860
  // 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
@@ -11076,7 +11095,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11076
11095
  } = slider;
11077
11096
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
11078
11097
  // Do like this, so we don't have to call mergeProps ourselves
11079
- $9HbP8$createComponent(Layout, $9HbP8$mergeProps1(layout_options_, {
11098
+ $9HbP8$createComponent(Layout, $9HbP8$mergeProps(layout_options_, {
11080
11099
  rows: "all",
11081
11100
  get cols_at_size() {
11082
11101
  return modified_cols_at_size();
@@ -11581,7 +11600,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({
11581
11600
  get children() {
11582
11601
  return (() => {
11583
11602
  var _el$34 = $9HbP8$getNextElement($757dac7f7c6c5241$var$_tmpl$5);
11584
- $9HbP8$insert(_el$34, $9HbP8$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $9HbP8$mergeProps1(args_for_filtering_, {
11603
+ $9HbP8$insert(_el$34, $9HbP8$createComponent((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), $9HbP8$mergeProps(args_for_filtering_, {
11585
11604
  are_in_modal_: true
11586
11605
  })));
11587
11606
  return _el$34;
@@ -12347,7 +12366,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
12347
12366
  [_el$8, _co$] = $9HbP8$getNextMarker(_el$7.nextSibling),
12348
12367
  _el$9 = _el$8.nextSibling,
12349
12368
  [_el$10, _co$2] = $9HbP8$getNextMarker(_el$9.nextSibling);
12350
- $9HbP8$insert(_el$4, $9HbP8$createComponent(LinkIfPossible, $9HbP8$mergeProps1(make_link_attributes, {
12369
+ $9HbP8$insert(_el$4, $9HbP8$createComponent(LinkIfPossible, $9HbP8$mergeProps(make_link_attributes, {
12351
12370
  tabIndex: "-1",
12352
12371
  get children() {
12353
12372
  return $9HbP8$createComponent((0, $190927650b4840eb$export$605674723bcc715c), {
@@ -12356,7 +12375,7 @@ function $b2bf2cdcff8142d8$export$f631859cab12b342({
12356
12375
  });
12357
12376
  }
12358
12377
  })));
12359
- $9HbP8$insert(_el$5, $9HbP8$createComponent(LinkIfPossible, $9HbP8$mergeProps1({
12378
+ $9HbP8$insert(_el$5, $9HbP8$createComponent(LinkIfPossible, $9HbP8$mergeProps({
12360
12379
  "class": "content-title line-clamp"
12361
12380
  }, make_link_attributes, {
12362
12381
  get title() {
@@ -12503,7 +12522,7 @@ function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
12503
12522
  },
12504
12523
  number_of_results_: num_results
12505
12524
  }), _el$3, _co$);
12506
- $9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps1({
12525
+ $9HbP8$insert(_el$, $9HbP8$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $9HbP8$mergeProps({
12507
12526
  layout: "grid",
12508
12527
  element_attributes: {
12509
12528
  class: "cards"
@@ -12890,7 +12909,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
12890
12909
  });
12891
12910
  const [sort_and_filter_element_, set_sort_and_filter_element_] = $9HbP8$createSignal();
12892
12911
  const no_results_text_ = $9HbP8$createMemo(() => (search_results_()?.content_search_links?.length ? i18n_.no_products_ : i18n_.no_results_text_)());
12893
- const results_for = $9HbP8$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $9HbP8$mergeProps1({
12912
+ const results_for = $9HbP8$createComponent((0, $f8c929beb82c512b$export$9dd50d35b9d94fdf), $9HbP8$mergeProps({
12894
12913
  get type() {
12895
12914
  return (0, $f8c929beb82c512b$export$2452208c79fe93ea).products;
12896
12915
  },
@@ -14783,7 +14802,7 @@ function $df5d81d0fe61ff21$var$add_us_to_crumbs(plp_meta) {
14783
14802
  return $9HbP8$createMemo(() => {
14784
14803
  const api_value = plp_meta()?.breadcrumbs;
14785
14804
  if (!api_value) return api_value;
14786
- return [...api_value, $9HbP8$mergeProps(plp_meta(), {
14805
+ return [...api_value, $9HbP8$mergeProps1(plp_meta(), {
14787
14806
  get page_url() {
14788
14807
  return href_accessor();
14789
14808
  }
@@ -14889,4 +14908,4 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
14889
14908
  }, "Entire CategoryPage failed");
14890
14909
  }
14891
14910
  $9HbP8$add_to_version_info("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
14892
- export { $f577edfe2240eec1$export$1935e6bdfc5ed8ce as LooksSlider, $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, $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, $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 };
14911
+ export { $07ef910e8ef6b783$export$2c9f9bf2092486aa as LooksSlider, $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, $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, $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 };