@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/ES10/index.cjs +159 -140
- package/ES10/index.d.ts +12 -1
- package/ES10/index.js +193 -174
- package/latest/index.cjs +153 -134
- package/latest/index.d.ts +12 -1
- package/latest/index.js +187 -168
- package/package.json +2 -2
- package/server/ES10/index.cjs +129 -117
- package/server/ES10/index.d.ts +12 -1
- package/server/ES10/index.js +168 -156
- package/server/latest/index.cjs +123 -111
- package/server/latest/index.d.ts +12 -1
- package/server/latest/index.js +162 -150
package/ES10/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { add_to_version_info as $8tj43$add_to_version_info, fetch_retry as $8tj43$fetch_retry, base_url as $8tj43$base_url, dwarn as $8tj43$dwarn, slider_fractional_factory as $8tj43$slider_fractional_factory, dlog as $8tj43$dlog, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, catchify as $8tj43$catchify, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, slider_fading_factory as $8tj43$slider_fading_factory, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, observer as $8tj43$observer, javascript_media_query as $8tj43$javascript_media_query, queueMacroTask as $8tj43$queueMacroTask, findMostFrequentItem as $8tj43$findMostFrequentItem, standard_price_format as $8tj43$standard_price_format, instant_exec_on_suspect_history_change as $8tj43$instant_exec_on_suspect_history_change, deparallelize_no_drop as $8tj43$deparallelize_no_drop, ContainedImage as $8tj43$ContainedImage, buildThresholdList as $8tj43$buildThresholdList, make_asyncIterable_exiter as $8tj43$make_asyncIterable_exiter, href_change_ipns as $8tj43$href_change_ipns, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, use_href_accessor as $8tj43$use_href_accessor, get_session_id as $8tj43$get_session_id, add_version_query_params as $8tj43$add_version_query_params, useExpandingContainer as $8tj43$useExpandingContainer, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, snakeCasifyObject as $8tj43$snakeCasifyObject, make_url_with_query_params as $8tj43$make_url_with_query_params, sort_obj as $8tj43$sort_obj, ListenableSet as $8tj43$ListenableSet1, insert_surfaces as $8tj43$insert_surfaces, is_debug as $8tj43$is_debug } from "@depict-ai/utilishared/ES10";
|
|
2
|
-
import { template as $8tj43$template, getNextElement as $8tj43$getNextElement, insert as $8tj43$insert, createComponent as $8tj43$createComponent, mergeProps as $8tj43$
|
|
3
|
-
import { createSignal as $8tj43$createSignal, createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, createEffect as $8tj43$createEffect,
|
|
2
|
+
import { template as $8tj43$template, getNextElement as $8tj43$getNextElement, insert as $8tj43$insert, createComponent as $8tj43$createComponent, mergeProps as $8tj43$mergeProps, isServer as $8tj43$isServer, spread as $8tj43$spread, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, className as $8tj43$className, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, getNextMarker as $8tj43$getNextMarker, effect as $8tj43$effect, classList as $8tj43$classList, setAttribute as $8tj43$setAttribute, style as $8tj43$style, use as $8tj43$use, setProperty as $8tj43$setProperty, Dynamic as $8tj43$Dynamic } from "solid-js/web";
|
|
3
|
+
import { createSignal as $8tj43$createSignal, createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, createEffect as $8tj43$createEffect, Show as $8tj43$Show, mergeProps as $8tj43$mergeProps1, Suspense as $8tj43$Suspense, untrack as $8tj43$untrack, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, onCleanup as $8tj43$onCleanup, For as $8tj43$For, getOwner as $8tj43$getOwner, runWithOwner as $8tj43$runWithOwner, createContext as $8tj43$createContext, useContext as $8tj43$useContext, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, splitProps as $8tj43$splitProps, on as $8tj43$on, batch as $8tj43$batch, createSelector as $8tj43$createSelector, children as $8tj43$children, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray } from "solid-js";
|
|
4
4
|
import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import { ListenableSet as $8tj43$ListenableSet, catchify as $8tj43$catchify1, use_href_accessor as $8tj43$use_href_accessor1, report as $8tj43$report1 } from "@depict-ai/utilishared/ES10";
|
|
6
6
|
import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.4";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -453,7 +453,7 @@ function $63f1f8dbcd07d3b0$export$d21e32dfedac04be(props) {
|
|
|
453
453
|
const container_class = "x" + $8tj43$createUniqueId();
|
|
454
454
|
const container_element_ = (() => {
|
|
455
455
|
var _el$ = $8tj43$getNextElement($63f1f8dbcd07d3b0$var$_tmpl$);
|
|
456
|
-
$8tj43$spread(_el$, $8tj43$
|
|
456
|
+
$8tj43$spread(_el$, $8tj43$mergeProps(() => props.element_attributes, {
|
|
457
457
|
"classList": {
|
|
458
458
|
[container_class]: true
|
|
459
459
|
}
|
|
@@ -714,7 +714,7 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
714
714
|
} = slider;
|
|
715
715
|
const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, insert_here, true);
|
|
716
716
|
// Do like this, so we don't have to call mergeProps ourselves
|
|
717
|
-
$8tj43$createComponent(Layout, $8tj43$
|
|
717
|
+
$8tj43$createComponent(Layout, $8tj43$mergeProps({
|
|
718
718
|
rows: "all",
|
|
719
719
|
layout: "slider"
|
|
720
720
|
}, layout_options_));
|
|
@@ -1047,7 +1047,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
|
|
|
1047
1047
|
if (loading === "force-lazy") return true;
|
|
1048
1048
|
return loading === "lazy" && !isPrioritisedImage();
|
|
1049
1049
|
});
|
|
1050
|
-
const modifiedOtherAttributes = $8tj43$
|
|
1050
|
+
const modifiedOtherAttributes = $8tj43$mergeProps1(otherAttributes, {
|
|
1051
1051
|
get loading() {
|
|
1052
1052
|
return shouldActuallyEnableLazyLoading() ? "lazy" : undefined;
|
|
1053
1053
|
}
|
|
@@ -1119,7 +1119,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
|
|
|
1119
1119
|
$8tj43$onCleanup(() => prevValue && aspectRatios.delete(prevValue));
|
|
1120
1120
|
}
|
|
1121
1121
|
$8tj43$onCleanup(() => gotCleanedUp = true);
|
|
1122
|
-
$8tj43$spread(img, $8tj43$
|
|
1122
|
+
$8tj43$spread(img, $8tj43$mergeProps1(modifiedOtherAttributes), false, true);
|
|
1123
1123
|
$8tj43$createRenderEffect(() => {
|
|
1124
1124
|
props.src;
|
|
1125
1125
|
srcJustChanged = true;
|
|
@@ -1220,7 +1220,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
|
|
|
1220
1220
|
$8tj43$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
|
|
1221
1221
|
});
|
|
1222
1222
|
|
|
1223
|
-
$8tj43$insert(container, $8tj43$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), $8tj43$
|
|
1223
|
+
$8tj43$insert(container, $8tj43$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), $8tj43$mergeProps({
|
|
1224
1224
|
get size() {
|
|
1225
1225
|
return $8tj43$createMemo(() => {
|
|
1226
1226
|
var _currentImageSize;
|
|
@@ -1239,7 +1239,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
|
|
|
1239
1239
|
return container;
|
|
1240
1240
|
}
|
|
1241
1241
|
function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
1242
|
-
return $8tj43$createComponent((0, $4df489344a0f97c7$export$e4b984597b71e989), $8tj43$
|
|
1242
|
+
return $8tj43$createComponent((0, $4df489344a0f97c7$export$e4b984597b71e989), $8tj43$mergeProps(props, {
|
|
1243
1243
|
get imgProps() {
|
|
1244
1244
|
return {
|
|
1245
1245
|
...props.imgProps,
|
|
@@ -1270,7 +1270,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1270
1270
|
let {
|
|
1271
1271
|
display_: display_,
|
|
1272
1272
|
FavoriteButton_: FavoriteButton_,
|
|
1273
|
-
|
|
1273
|
+
userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
|
|
1274
1274
|
textFadeInAnimationRunning_: textFadeInAnimationRunning_,
|
|
1275
1275
|
outerRef_: outerRef_,
|
|
1276
1276
|
animationDuration_: animationDuration_,
|
|
@@ -1286,7 +1286,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1286
1286
|
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
|
|
1287
1287
|
});
|
|
1288
1288
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1289
|
-
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $8tj43$createSignal($8tj43$untrack(
|
|
1289
|
+
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $8tj43$createSignal($8tj43$untrack(userWantsExpanded));
|
|
1290
1290
|
const [animationEffectExists, setAnimationEffectExists] = $8tj43$createSignal(false);
|
|
1291
1291
|
const [salePrice] = $8tj43$createResource(() => {
|
|
1292
1292
|
var _variantToUse2;
|
|
@@ -1297,7 +1297,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1297
1297
|
return (_variantToUse3 = variantToUse()) === null || _variantToUse3 === void 0 ? void 0 : _variantToUse3.original_price;
|
|
1298
1298
|
});
|
|
1299
1299
|
const isOnSale = $8tj43$createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
|
|
1300
|
-
const enableLink = $8tj43$createMemo(() =>
|
|
1300
|
+
const enableLink = $8tj43$createMemo(() => userWantsExpanded() && !animationIsRunning());
|
|
1301
1301
|
const href = $8tj43$createMemo(() => {
|
|
1302
1302
|
var _variantToUse4;
|
|
1303
1303
|
return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
|
|
@@ -1311,15 +1311,22 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1311
1311
|
[_el$15, _co$4] = $8tj43$getNextMarker(_el$14.nextSibling);
|
|
1312
1312
|
var _ref$ = outerRef_;
|
|
1313
1313
|
typeof _ref$ === "function" ? $8tj43$use(_ref$, _el$) : outerRef_ = _el$;
|
|
1314
|
-
$8tj43$spread(_el$, $8tj43$
|
|
1314
|
+
$8tj43$spread(_el$, $8tj43$mergeProps(() => enableLink() ? {
|
|
1315
1315
|
href: href()
|
|
1316
1316
|
} : {}, {
|
|
1317
1317
|
get onClick() {
|
|
1318
|
-
return $8tj43$catchify(event_ =>
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1318
|
+
return $8tj43$catchify(event_ => {
|
|
1319
|
+
if (enableLink()) {
|
|
1320
|
+
pseudoRouter_.navigate_.go_to_({
|
|
1321
|
+
new_url_: href(),
|
|
1322
|
+
is_replace_: false,
|
|
1323
|
+
event_: event_
|
|
1324
|
+
});
|
|
1325
|
+
if (event_.defaultPrevented)
|
|
1326
|
+
// We single-page-navigated in this tab, close the look
|
|
1327
|
+
setUserWantsExpanded(false);
|
|
1328
|
+
}
|
|
1329
|
+
});
|
|
1323
1330
|
}
|
|
1324
1331
|
}), false, true);
|
|
1325
1332
|
$8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
|
|
@@ -1346,10 +1353,10 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1346
1353
|
return imageUrl();
|
|
1347
1354
|
},
|
|
1348
1355
|
get aspectRatio() {
|
|
1349
|
-
return
|
|
1356
|
+
return userWantsExpanded() ? 0.75 : 1;
|
|
1350
1357
|
},
|
|
1351
1358
|
get autoAdjustAspectRatio() {
|
|
1352
|
-
return
|
|
1359
|
+
return userWantsExpanded();
|
|
1353
1360
|
},
|
|
1354
1361
|
imgProps: {
|
|
1355
1362
|
keyRatioUpdating: true
|
|
@@ -1362,7 +1369,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1362
1369
|
}), _el$13, _co$3);
|
|
1363
1370
|
$8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1364
1371
|
get when() {
|
|
1365
|
-
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() :
|
|
1372
|
+
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
|
|
1366
1373
|
},
|
|
1367
1374
|
get children() {
|
|
1368
1375
|
var _el$3 = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$3),
|
|
@@ -1390,7 +1397,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1390
1397
|
setAnimationIsRunning(true);
|
|
1391
1398
|
$8tj43$runWithOwner(owner, () => {
|
|
1392
1399
|
$8tj43$createRenderEffect(() => {
|
|
1393
|
-
const expanded =
|
|
1400
|
+
const expanded = userWantsExpanded();
|
|
1394
1401
|
// 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
|
|
1395
1402
|
textContainerAnimation.pause();
|
|
1396
1403
|
textContainerAnimation.updatePlaybackRate(expanded ? 1 : -1);
|
|
@@ -1549,7 +1556,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1549
1556
|
let {
|
|
1550
1557
|
displays_: displays_,
|
|
1551
1558
|
FavoriteButton_: FavoriteButton_,
|
|
1552
|
-
userWantsExpandedSignal_:
|
|
1559
|
+
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
1553
1560
|
containerWidth_: containerWidth_,
|
|
1554
1561
|
animationDuration_: animationDuration_,
|
|
1555
1562
|
supportsHover_: supportsHover_,
|
|
@@ -1563,6 +1570,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1563
1570
|
// The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
|
|
1564
1571
|
const textFadeInAnimationRunning = $8tj43$createSignal(false);
|
|
1565
1572
|
const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
|
|
1573
|
+
const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
|
|
1566
1574
|
$72017ebd8b9df947$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
|
|
1567
1575
|
return $8tj43$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
1568
1576
|
get children() {
|
|
@@ -1584,7 +1592,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1584
1592
|
behavior: "smooth"
|
|
1585
1593
|
});
|
|
1586
1594
|
}), _el$2);
|
|
1587
|
-
$8tj43$spread(_el$2, $8tj43$
|
|
1595
|
+
$8tj43$spread(_el$2, $8tj43$mergeProps({
|
|
1588
1596
|
get classList() {
|
|
1589
1597
|
return {
|
|
1590
1598
|
expanded: userWantsExpanded(),
|
|
@@ -1612,7 +1620,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1612
1620
|
animationDuration_: animationDuration_,
|
|
1613
1621
|
display_: display,
|
|
1614
1622
|
FavoriteButton_: FavoriteButton_,
|
|
1615
|
-
|
|
1623
|
+
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
1616
1624
|
textFadeInAnimationRunning_: textFadeInAnimationRunning,
|
|
1617
1625
|
priceFormatting_: priceFormatting_,
|
|
1618
1626
|
outerRef_: el => $8tj43$createEffect(() => {
|
|
@@ -1856,11 +1864,105 @@ function $ac571292d606f30b$var$_get_navigation_happened_promise2(is_replace) {
|
|
|
1856
1864
|
(0, $8tj43$instant_exec_on_suspect_history_change).add(handler);
|
|
1857
1865
|
});
|
|
1858
1866
|
}
|
|
1859
|
-
var $
|
|
1860
|
-
|
|
1861
|
-
|
|
1867
|
+
var $e3efeb558d952696$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="show-more major"type=button>`),
|
|
1868
|
+
$e3efeb558d952696$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<h2 class=recs-title>`),
|
|
1869
|
+
$e3efeb558d952696$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
1870
|
+
function $e3efeb558d952696$export$7da560f849543dff(_ref) {
|
|
1871
|
+
let {
|
|
1872
|
+
recommendations_resource_: recommendations_resource_,
|
|
1873
|
+
product_card_template_: product_card_template_,
|
|
1874
|
+
layout_options_: layout_options_,
|
|
1875
|
+
title_: title_,
|
|
1876
|
+
max_rows_: max_rows_,
|
|
1877
|
+
view_more_button_: view_more_button_
|
|
1878
|
+
} = _ref;
|
|
1879
|
+
const rows_object_ = $8tj43$createMemo(() => {
|
|
1880
|
+
var _view_more_button$row;
|
|
1881
|
+
const view_more_button = view_more_button_ === null || view_more_button_ === void 0 ? void 0 : view_more_button_();
|
|
1882
|
+
const max_rows = max_rows_ === null || max_rows_ === void 0 ? void 0 : max_rows_();
|
|
1883
|
+
if (!view_more_button) {
|
|
1884
|
+
if (max_rows) return {
|
|
1885
|
+
max_rows: max_rows
|
|
1886
|
+
};
|
|
1887
|
+
return "all";
|
|
1888
|
+
}
|
|
1889
|
+
return {
|
|
1890
|
+
max_rows: max_rows,
|
|
1891
|
+
start_rows: view_more_button.start_rows,
|
|
1892
|
+
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
1893
|
+
button: (() => {
|
|
1894
|
+
var _el$ = $8tj43$getNextElement($e3efeb558d952696$var$_tmpl$);
|
|
1895
|
+
$8tj43$insert(_el$, () => view_more_button.text);
|
|
1896
|
+
return _el$;
|
|
1897
|
+
})()
|
|
1898
|
+
};
|
|
1899
|
+
});
|
|
1900
|
+
const is_showing_something = $8tj43$createMemo(() => {
|
|
1901
|
+
var _recommendations_reso;
|
|
1902
|
+
return recommendations_resource_.loading || ((_recommendations_reso = recommendations_resource_()) === null || _recommendations_reso === void 0 ? void 0 : _recommendations_reso.length);
|
|
1903
|
+
});
|
|
1904
|
+
const title = $8tj43$createMemo(() => title_ === null || title_ === void 0 ? void 0 : title_()); // In case getter/accessor creates elements, don't create them twice
|
|
1905
|
+
const num_placeholders_ = () => 20;
|
|
1906
|
+
const elements = [$8tj43$createComponent((0, $8tj43$Show), {
|
|
1907
|
+
get when() {
|
|
1908
|
+
return title();
|
|
1909
|
+
},
|
|
1910
|
+
get children() {
|
|
1911
|
+
var _el$2 = $8tj43$getNextElement($e3efeb558d952696$var$_tmpl$2);
|
|
1912
|
+
$8tj43$insert(_el$2, title);
|
|
1913
|
+
return _el$2;
|
|
1914
|
+
}
|
|
1915
|
+
}), (() => {
|
|
1916
|
+
var _el$3 = $8tj43$getNextElement($e3efeb558d952696$var$_tmpl$3),
|
|
1917
|
+
_el$4 = _el$3.firstChild,
|
|
1918
|
+
[_el$5, _co$] = $8tj43$getNextMarker(_el$4.nextSibling),
|
|
1919
|
+
_el$6 = _el$5.nextSibling,
|
|
1920
|
+
[_el$7, _co$2] = $8tj43$getNextMarker(_el$6.nextSibling);
|
|
1921
|
+
$8tj43$insert(_el$3, (0, $ca55612a53dbbdd2$export$a2cc176055f8f08), _el$5, _co$);
|
|
1922
|
+
$8tj43$insert(_el$3, $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $8tj43$mergeProps({
|
|
1923
|
+
get rows() {
|
|
1924
|
+
return rows_object_();
|
|
1925
|
+
},
|
|
1926
|
+
layout: "grid",
|
|
1927
|
+
element_attributes: {
|
|
1928
|
+
class: "cards"
|
|
1929
|
+
}
|
|
1930
|
+
}, layout_options_, {
|
|
1931
|
+
get children() {
|
|
1932
|
+
return $8tj43$createComponent((0, $8tj43$Suspense), {
|
|
1933
|
+
get fallback() {
|
|
1934
|
+
return $bdd80c7862246dc2$export$f33414a4df0afd3f({
|
|
1935
|
+
num_placeholders_: num_placeholders_,
|
|
1936
|
+
product_card_template_: product_card_template_
|
|
1937
|
+
});
|
|
1938
|
+
},
|
|
1939
|
+
get children() {
|
|
1940
|
+
return (() => {
|
|
1941
|
+
// IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
|
|
1942
|
+
const displays_by_key_ = $2d7bad8684bc7f44$export$7f8bd308237ab5a5($8tj43$createMemo(() => recommendations_resource_() || []));
|
|
1943
|
+
return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
|
|
1944
|
+
displays_by_key_: displays_by_key_,
|
|
1945
|
+
product_card_template_: product_card_template_
|
|
1946
|
+
});
|
|
1947
|
+
})();
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
})), _el$7, _co$2);
|
|
1952
|
+
return _el$3;
|
|
1953
|
+
})()];
|
|
1954
|
+
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
1955
|
+
get when() {
|
|
1956
|
+
return is_showing_something();
|
|
1957
|
+
},
|
|
1958
|
+
children: elements
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
var $bb34cd283e904784$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict recommendations looks"style=--animation-duration:240ms>`);
|
|
1962
|
+
let $bb34cd283e904784$var$expandedLooksSignal_;
|
|
1963
|
+
function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
1862
1964
|
return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
|
|
1863
|
-
$
|
|
1965
|
+
$bb34cd283e904784$var$expandedLooksSignal_ || ($bb34cd283e904784$var$expandedLooksSignal_ = $8tj43$createSignal(new Set(), {
|
|
1864
1966
|
equals: false
|
|
1865
1967
|
}));
|
|
1866
1968
|
const expandingAnimationDuration = 240;
|
|
@@ -1902,8 +2004,25 @@ function $cee56a95f722f55f$export$1935e6bdfc5ed8ce(props) {
|
|
|
1902
2004
|
market: market,
|
|
1903
2005
|
locale: locale
|
|
1904
2006
|
};
|
|
1905
|
-
return $
|
|
1906
|
-
});
|
|
2007
|
+
return $bb34cd283e904784$var$runDisplayTransformersForLooks(baseData, listings, props.displayTransformers_);
|
|
2008
|
+
});
|
|
2009
|
+
const sharedOptions = {
|
|
2010
|
+
product_card_template_: display => $697d8713dc82b9ab$export$44809a8a3e867e30({
|
|
2011
|
+
display_: display,
|
|
2012
|
+
FavoriteButton_: props.FavoriteButton_,
|
|
2013
|
+
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2014
|
+
animationDuration_: expandingAnimationDuration,
|
|
2015
|
+
expandedLooksSignal_: $bb34cd283e904784$var$expandedLooksSignal_,
|
|
2016
|
+
priceFormatting_: () => props.priceFormatting_,
|
|
2017
|
+
pseudoRouter_: pseudoRouter
|
|
2018
|
+
}),
|
|
2019
|
+
recommendations_resource_: looksResource,
|
|
2020
|
+
title_: () => props.title_,
|
|
2021
|
+
layout_options_: $8tj43$createMemo(() => ({
|
|
2022
|
+
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.columnsAtSize_),
|
|
2023
|
+
...grid_spacing_override()
|
|
2024
|
+
}))
|
|
2025
|
+
};
|
|
1907
2026
|
$8tj43$createEffect(() => {
|
|
1908
2027
|
const {
|
|
1909
2028
|
onNavigation_: onNavigation_
|
|
@@ -1911,25 +2030,19 @@ function $cee56a95f722f55f$export$1935e6bdfc5ed8ce(props) {
|
|
|
1911
2030
|
if (onNavigation_) pseudoRouter.on_navigation_ = onNavigation_;
|
|
1912
2031
|
});
|
|
1913
2032
|
return (() => {
|
|
1914
|
-
var _el$ = $8tj43$getNextElement($
|
|
2033
|
+
var _el$ = $8tj43$getNextElement($bb34cd283e904784$var$_tmpl$);
|
|
1915
2034
|
$8tj43$insert(_el$, $8tj43$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
1916
2035
|
get children() {
|
|
1917
|
-
return $
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
}
|
|
1927
|
-
recommendations_resource_: looksResource,
|
|
1928
|
-
title_: () => props.title_,
|
|
1929
|
-
layout_options_: $8tj43$createMemo(() => ({
|
|
1930
|
-
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.columnsAtSize_),
|
|
1931
|
-
...grid_spacing_override()
|
|
1932
|
-
}))
|
|
2036
|
+
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
2037
|
+
get when() {
|
|
2038
|
+
return props.gridOptions_;
|
|
2039
|
+
},
|
|
2040
|
+
get fallback() {
|
|
2041
|
+
return $8tj43$createComponent((0, $39ddb986053fb759$export$d41d19e89346fa2), sharedOptions);
|
|
2042
|
+
},
|
|
2043
|
+
get children() {
|
|
2044
|
+
return $8tj43$createComponent((0, $e3efeb558d952696$export$7da560f849543dff), $8tj43$mergeProps(sharedOptions, () => props.gridOptions_));
|
|
2045
|
+
}
|
|
1933
2046
|
});
|
|
1934
2047
|
}
|
|
1935
2048
|
}));
|
|
@@ -1937,7 +2050,7 @@ function $cee56a95f722f55f$export$1935e6bdfc5ed8ce(props) {
|
|
|
1937
2050
|
})();
|
|
1938
2051
|
}, "LookSlider failed");
|
|
1939
2052
|
}
|
|
1940
|
-
async function $
|
|
2053
|
+
async function $bb34cd283e904784$var$runDisplayTransformersForLooks(baseData, listings, displayTransformers) {
|
|
1941
2054
|
try {
|
|
1942
2055
|
const {
|
|
1943
2056
|
products: productTransformer,
|
|
@@ -1980,7 +2093,7 @@ async function $cee56a95f722f55f$var$runDisplayTransformersForLooks(baseData, li
|
|
|
1980
2093
|
}) : displaysToTransform;
|
|
1981
2094
|
const transformedListings = await transformedListingsPromise;
|
|
1982
2095
|
const transformedDisplayById = Object.fromEntries(transformedProducts.map(display => [$6a4c7ed6d005505c$export$548d053aba053d79(display), display]));
|
|
1983
|
-
return transformedListings.map(listing => $8tj43$
|
|
2096
|
+
return transformedListings.map(listing => $8tj43$mergeProps1(listing, {
|
|
1984
2097
|
// use mergeProps because in preview browser we add getters in this object, that would be called too early otherwise
|
|
1985
2098
|
displays: (displayIdsPerListingId[listing.listing_id] || []).map(displayId => transformedDisplayById[displayId]).filter(v => v)
|
|
1986
2099
|
}));
|
|
@@ -3507,7 +3620,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
3507
3620
|
$8tj43$insert(_el$5, $8tj43$createComponent((0, $9783d437ad61594c$export$3b621d86b1566b2), {}));
|
|
3508
3621
|
var _ref$2 = submit_button_ref_;
|
|
3509
3622
|
typeof _ref$2 === "function" ? $8tj43$use(_ref$2, _el$6) : submit_button_ref_ = _el$6;
|
|
3510
|
-
$8tj43$spread(_el$6, $8tj43$
|
|
3623
|
+
$8tj43$spread(_el$6, $8tj43$mergeProps({
|
|
3511
3624
|
get onClick() {
|
|
3512
3625
|
return $8tj43$catchify(() => submit_query_());
|
|
3513
3626
|
}
|
|
@@ -4164,7 +4277,7 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
4164
4277
|
}); // <- 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
|
|
4165
4278
|
const LinkToListing = props => (() => {
|
|
4166
4279
|
var _el$ = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$);
|
|
4167
|
-
$8tj43$spread(_el$, $8tj43$
|
|
4280
|
+
$8tj43$spread(_el$, $8tj43$mergeProps(props, {
|
|
4168
4281
|
get href() {
|
|
4169
4282
|
return href();
|
|
4170
4283
|
},
|
|
@@ -4580,7 +4693,7 @@ function $4acc866f8fdfc002$export$af1fb307bbba2417(_ref) {
|
|
|
4580
4693
|
$8tj43$createComputed($8tj43$on(search_field_value_[0], () => !suggestions_updating_blocked() && set_selected_index(undefined), {
|
|
4581
4694
|
defer: true
|
|
4582
4695
|
})); // reset autocomplete position if query changes
|
|
4583
|
-
return [$8tj43$createComponent((0, $5175a47d13b7c228$export$d4994a86c6235f72), $8tj43$
|
|
4696
|
+
return [$8tj43$createComponent((0, $5175a47d13b7c228$export$d4994a86c6235f72), $8tj43$mergeProps(sharedSuggestionProps, {
|
|
4584
4697
|
get title_() {
|
|
4585
4698
|
return i18n_.popular_;
|
|
4586
4699
|
},
|
|
@@ -4590,7 +4703,7 @@ function $4acc866f8fdfc002$export$af1fb307bbba2417(_ref) {
|
|
|
4590
4703
|
return itemIndexes_.suggestionsIndex_;
|
|
4591
4704
|
},
|
|
4592
4705
|
showPlaceholders_: () => showPlaceholders() || noResults_() && !noResultsPopularSuggestions.latest
|
|
4593
|
-
})), $8tj43$createComponent((0, $5175a47d13b7c228$export$d4994a86c6235f72), $8tj43$
|
|
4706
|
+
})), $8tj43$createComponent((0, $5175a47d13b7c228$export$d4994a86c6235f72), $8tj43$mergeProps(sharedSuggestionProps, {
|
|
4594
4707
|
get title_() {
|
|
4595
4708
|
return i18n_.previous_;
|
|
4596
4709
|
},
|
|
@@ -4607,7 +4720,7 @@ function $4acc866f8fdfc002$export$af1fb307bbba2417(_ref) {
|
|
|
4607
4720
|
return _el$;
|
|
4608
4721
|
})(),
|
|
4609
4722
|
showPlaceholders_: () => false
|
|
4610
|
-
})), $8tj43$createComponent((0, $5175a47d13b7c228$export$d4994a86c6235f72), $8tj43$
|
|
4723
|
+
})), $8tj43$createComponent((0, $5175a47d13b7c228$export$d4994a86c6235f72), $8tj43$mergeProps(sharedSuggestionProps, {
|
|
4611
4724
|
get title_() {
|
|
4612
4725
|
return i18n_.content_;
|
|
4613
4726
|
},
|
|
@@ -5143,7 +5256,7 @@ function $6a439680ae7e9ba3$export$b2539bed5023c21c(props) {
|
|
|
5143
5256
|
return $8tj43$createComponent($6a439680ae7e9ba3$var$TabsContext.Provider, {
|
|
5144
5257
|
value: new (0, $8tj43$ListenableSet)(),
|
|
5145
5258
|
get children() {
|
|
5146
|
-
return $8tj43$createComponent($6a439680ae7e9ba3$var$ActualTabs, $8tj43$
|
|
5259
|
+
return $8tj43$createComponent($6a439680ae7e9ba3$var$ActualTabs, $8tj43$mergeProps(props, {
|
|
5147
5260
|
get children() {
|
|
5148
5261
|
return props.children;
|
|
5149
5262
|
}
|
|
@@ -5173,7 +5286,7 @@ function $6a439680ae7e9ba3$var$ActualTabs(props) {
|
|
|
5173
5286
|
},
|
|
5174
5287
|
children: item => {
|
|
5175
5288
|
const weSelected = $8tj43$createMemo(() => isSelected(item().id));
|
|
5176
|
-
return $8tj43$createComponent((0, $8tj43$Dynamic), $8tj43$
|
|
5289
|
+
return $8tj43$createComponent((0, $8tj43$Dynamic), $8tj43$mergeProps({
|
|
5177
5290
|
get component() {
|
|
5178
5291
|
return props.AnchorComponent;
|
|
5179
5292
|
},
|
|
@@ -5284,7 +5397,7 @@ function $6a439680ae7e9ba3$export$3e41faf802a29e71(props) {
|
|
|
5284
5397
|
if (!currentTabs) throw new Error("Tab must be a child of Tabs");
|
|
5285
5398
|
const id = $8tj43$createUniqueId();
|
|
5286
5399
|
const ourSet = currentTabs;
|
|
5287
|
-
const extendedProps = $8tj43$
|
|
5400
|
+
const extendedProps = $8tj43$mergeProps1({
|
|
5288
5401
|
id: id
|
|
5289
5402
|
}, props);
|
|
5290
5403
|
ourSet.add(extendedProps);
|
|
@@ -5494,104 +5607,9 @@ const $fa332ea03168857c$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
|
5494
5607
|
const $d399250dfa491636$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
|
|
5495
5608
|
const $d399250dfa491636$export$864d304a0bc46829 = "2%";
|
|
5496
5609
|
const $d399250dfa491636$export$7bf543b9d9be2c22 = (0, $fa332ea03168857c$export$b91cec6bdc6b32a1);
|
|
5497
|
-
var $
|
|
5498
|
-
$e3efeb558d952696$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
5499
|
-
function $e3efeb558d952696$export$7da560f849543dff(_ref) {
|
|
5500
|
-
let {
|
|
5501
|
-
recommendations_resource_: recommendations_resource_,
|
|
5502
|
-
product_card_template_: product_card_template_,
|
|
5503
|
-
layout_options_: layout_options_,
|
|
5504
|
-
rows_object_: rows_object_,
|
|
5505
|
-
title_: title_
|
|
5506
|
-
} = _ref;
|
|
5507
|
-
const is_showing_something = $8tj43$createMemo(() => {
|
|
5508
|
-
var _recommendations_reso;
|
|
5509
|
-
return recommendations_resource_.loading || ((_recommendations_reso = recommendations_resource_()) === null || _recommendations_reso === void 0 ? void 0 : _recommendations_reso.length);
|
|
5510
|
-
});
|
|
5511
|
-
const title = $8tj43$createMemo(() => title_ === null || title_ === void 0 ? void 0 : title_()); // In case getter/accessor creates elements, don't create them twice
|
|
5512
|
-
const num_placeholders_ = () => 20;
|
|
5513
|
-
const elements = [$8tj43$createComponent((0, $8tj43$Show), {
|
|
5514
|
-
get when() {
|
|
5515
|
-
return title();
|
|
5516
|
-
},
|
|
5517
|
-
get children() {
|
|
5518
|
-
var _el$ = $8tj43$getNextElement($e3efeb558d952696$var$_tmpl$);
|
|
5519
|
-
$8tj43$insert(_el$, title);
|
|
5520
|
-
return _el$;
|
|
5521
|
-
}
|
|
5522
|
-
}), (() => {
|
|
5523
|
-
var _el$2 = $8tj43$getNextElement($e3efeb558d952696$var$_tmpl$2),
|
|
5524
|
-
_el$3 = _el$2.firstChild,
|
|
5525
|
-
[_el$4, _co$] = $8tj43$getNextMarker(_el$3.nextSibling),
|
|
5526
|
-
_el$5 = _el$4.nextSibling,
|
|
5527
|
-
[_el$6, _co$2] = $8tj43$getNextMarker(_el$5.nextSibling);
|
|
5528
|
-
$8tj43$insert(_el$2, (0, $ca55612a53dbbdd2$export$a2cc176055f8f08), _el$4, _co$);
|
|
5529
|
-
$8tj43$insert(_el$2, $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $8tj43$mergeProps1({
|
|
5530
|
-
get rows() {
|
|
5531
|
-
return rows_object_();
|
|
5532
|
-
},
|
|
5533
|
-
layout: "grid",
|
|
5534
|
-
element_attributes: {
|
|
5535
|
-
class: "cards"
|
|
5536
|
-
}
|
|
5537
|
-
}, layout_options_, {
|
|
5538
|
-
get children() {
|
|
5539
|
-
return $8tj43$createComponent((0, $8tj43$Suspense), {
|
|
5540
|
-
get fallback() {
|
|
5541
|
-
return $bdd80c7862246dc2$export$f33414a4df0afd3f({
|
|
5542
|
-
num_placeholders_: num_placeholders_,
|
|
5543
|
-
product_card_template_: product_card_template_
|
|
5544
|
-
});
|
|
5545
|
-
},
|
|
5546
|
-
get children() {
|
|
5547
|
-
return (() => {
|
|
5548
|
-
// IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
|
|
5549
|
-
const displays_by_key_ = $2d7bad8684bc7f44$export$7f8bd308237ab5a5($8tj43$createMemo(() => recommendations_resource_() || []));
|
|
5550
|
-
return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
|
|
5551
|
-
displays_by_key_: displays_by_key_,
|
|
5552
|
-
product_card_template_: product_card_template_
|
|
5553
|
-
});
|
|
5554
|
-
})();
|
|
5555
|
-
}
|
|
5556
|
-
});
|
|
5557
|
-
}
|
|
5558
|
-
})), _el$6, _co$2);
|
|
5559
|
-
return _el$2;
|
|
5560
|
-
})()];
|
|
5561
|
-
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
5562
|
-
get when() {
|
|
5563
|
-
return is_showing_something();
|
|
5564
|
-
},
|
|
5565
|
-
children: elements
|
|
5566
|
-
});
|
|
5567
|
-
}
|
|
5568
|
-
var $b432b11321ad4c97$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="show-more major"type=button>`),
|
|
5569
|
-
$b432b11321ad4c97$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp recommendations">`);
|
|
5610
|
+
var $b432b11321ad4c97$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict plp recommendations">`);
|
|
5570
5611
|
function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
5571
5612
|
return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
|
|
5572
|
-
const rows_object_ = $8tj43$createMemo(() => {
|
|
5573
|
-
var _view_more_button$row;
|
|
5574
|
-
const {
|
|
5575
|
-
view_more_button: view_more_button,
|
|
5576
|
-
max_rows: max_rows
|
|
5577
|
-
} = props;
|
|
5578
|
-
if (!view_more_button) {
|
|
5579
|
-
if (max_rows) return {
|
|
5580
|
-
max_rows: max_rows
|
|
5581
|
-
};
|
|
5582
|
-
return "all";
|
|
5583
|
-
}
|
|
5584
|
-
return {
|
|
5585
|
-
max_rows: max_rows,
|
|
5586
|
-
start_rows: view_more_button.start_rows,
|
|
5587
|
-
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
5588
|
-
button: (() => {
|
|
5589
|
-
var _el$ = $8tj43$getNextElement($b432b11321ad4c97$var$_tmpl$);
|
|
5590
|
-
$8tj43$insert(_el$, () => view_more_button.text);
|
|
5591
|
-
return _el$;
|
|
5592
|
-
})()
|
|
5593
|
-
};
|
|
5594
|
-
});
|
|
5595
5613
|
const grid_spacing_override = $8tj43$createMemo(() => {
|
|
5596
5614
|
const {
|
|
5597
5615
|
grid_spacing: grid_spacing
|
|
@@ -5605,11 +5623,12 @@ function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
|
5605
5623
|
});
|
|
5606
5624
|
const [recommendations_resource_] = $8tj43$createResource(() => props.recommendations, recs => recs);
|
|
5607
5625
|
return (() => {
|
|
5608
|
-
var _el$
|
|
5609
|
-
$8tj43$insert(_el
|
|
5626
|
+
var _el$ = $8tj43$getNextElement($b432b11321ad4c97$var$_tmpl$);
|
|
5627
|
+
$8tj43$insert(_el$, $8tj43$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
5610
5628
|
get children() {
|
|
5611
5629
|
return $e3efeb558d952696$export$7da560f849543dff({
|
|
5612
|
-
|
|
5630
|
+
max_rows_: () => props.max_rows,
|
|
5631
|
+
view_more_button_: () => props.view_more_button,
|
|
5613
5632
|
product_card_template_: function () {
|
|
5614
5633
|
return props.product_card_template(...arguments);
|
|
5615
5634
|
},
|
|
@@ -5622,7 +5641,7 @@ function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
|
5622
5641
|
});
|
|
5623
5642
|
}
|
|
5624
5643
|
}));
|
|
5625
|
-
return _el
|
|
5644
|
+
return _el$;
|
|
5626
5645
|
})();
|
|
5627
5646
|
}, "RecommendationGrid failed");
|
|
5628
5647
|
}
|
|
@@ -5915,7 +5934,7 @@ function $6b0fd8fd20df8ccf$var$ActualShopTheLookButton(props) {
|
|
|
5915
5934
|
const displayStyleValue = $8tj43$createMemo(() => hasAnythingToShow() ? "" : "none");
|
|
5916
5935
|
const button = (() => {
|
|
5917
5936
|
var _el$2 = $8tj43$getNextElement($6b0fd8fd20df8ccf$var$_tmpl$2);
|
|
5918
|
-
$8tj43$spread(_el$2, $8tj43$
|
|
5937
|
+
$8tj43$spread(_el$2, $8tj43$mergeProps(() => localProps.buttonAttributes), false, true);
|
|
5919
5938
|
$8tj43$insert(_el$2, () => {
|
|
5920
5939
|
var _localProps$buttonAtt;
|
|
5921
5940
|
return (localProps === null || localProps === void 0 ? void 0 : (_localProps$buttonAtt = localProps.buttonAttributes) === null || _localProps$buttonAtt === void 0 ? void 0 : _localProps$buttonAtt.children) || "Shop the look";
|
|
@@ -5925,7 +5944,7 @@ function $6b0fd8fd20df8ccf$var$ActualShopTheLookButton(props) {
|
|
|
5925
5944
|
})();
|
|
5926
5945
|
$8tj43$createEffect(() => button.style.display = displayStyleValue()); // Set our attributes like this, so we allow total control over the button from the outside via buttonAttributes
|
|
5927
5946
|
$8tj43$createEffect(() => !hasAnythingToShow() && closeModal()); // close modal if we ever get into the state of having it open and not having anything to show
|
|
5928
|
-
$6b0fd8fd20df8ccf$var$modalProps = $8tj43$
|
|
5947
|
+
$6b0fd8fd20df8ccf$var$modalProps = $8tj43$mergeProps1(partForModal, {
|
|
5929
5948
|
products_to_shop_: products_to_shop_
|
|
5930
5949
|
});
|
|
5931
5950
|
button.addEventListener("click", openModal);
|
|
@@ -6687,7 +6706,7 @@ var $ff3225aef892a467$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><path d="M
|
|
|
6687
6706
|
function $ff3225aef892a467$export$f21ab0717a89c77f(props) {
|
|
6688
6707
|
return (() => {
|
|
6689
6708
|
var _el$ = $8tj43$getNextElement($ff3225aef892a467$var$_tmpl$);
|
|
6690
|
-
$8tj43$spread(_el$, $8tj43$
|
|
6709
|
+
$8tj43$spread(_el$, $8tj43$mergeProps(props, {
|
|
6691
6710
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
6692
6711
|
"width": "11",
|
|
6693
6712
|
"height": "12"
|
|
@@ -8272,7 +8291,7 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
|
|
|
8272
8291
|
[_el$6, _co$] = $8tj43$getNextMarker(_el$5.nextSibling),
|
|
8273
8292
|
_el$7 = _el$6.nextSibling,
|
|
8274
8293
|
[_el$8, _co$2] = $8tj43$getNextMarker(_el$7.nextSibling);
|
|
8275
|
-
$8tj43$spread(_el$2, $8tj43$
|
|
8294
|
+
$8tj43$spread(_el$2, $8tj43$mergeProps(attributes, {
|
|
8276
8295
|
get disabled() {
|
|
8277
8296
|
return $8tj43$memo(() => !!count_zero())() && !is_selected();
|
|
8278
8297
|
},
|
|
@@ -9909,7 +9928,7 @@ async function $284849364a6ef73a$var$_run_url_creator_for_suggest2(merchant, mar
|
|
|
9909
9928
|
// Filter out our transformed ancestors
|
|
9910
9929
|
const transformedAncestors = Object.fromEntries(transformerResult.filter(item => item.is_suggestion === false).map(item => [item.listing_id, item]));
|
|
9911
9930
|
// Add the now transformed ancestors into the ancestors of the listing suggestions
|
|
9912
|
-
const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $8tj43$
|
|
9931
|
+
const transformedSuggestions = transformerResult.filter(item => item.is_suggestion !== false).map(item => $8tj43$mergeProps1(item, {
|
|
9913
9932
|
// Use mergeProps instead of spread since page_url and other properties could be a getter that solid components should call
|
|
9914
9933
|
ancestors: item.ancestors.map(ancestor => {
|
|
9915
9934
|
const newAncestor = transformedAncestors[ancestor.listing_id];
|
|
@@ -10445,7 +10464,7 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
|
|
|
10445
10464
|
[_el$6, _co$2] = $8tj43$getNextMarker(_el$5.nextSibling);
|
|
10446
10465
|
$8tj43$insert(_el$2, () => i18n_.search_recs_title_());
|
|
10447
10466
|
$8tj43$insert(_el$, (0, $ca55612a53dbbdd2$export$a2cc176055f8f08), _el$4, _co$);
|
|
10448
|
-
$8tj43$insert(_el$, $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $8tj43$
|
|
10467
|
+
$8tj43$insert(_el$, $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $8tj43$mergeProps({
|
|
10449
10468
|
rows: rows_object,
|
|
10450
10469
|
layout: "grid",
|
|
10451
10470
|
element_attributes: {
|
|
@@ -11209,7 +11228,7 @@ function $64d94dcaa058dc7b$export$ab6b147eec64fea5(props) {
|
|
|
11209
11228
|
const container_class = "x" + $8tj43$createUniqueId();
|
|
11210
11229
|
const container_element_ = (() => {
|
|
11211
11230
|
var _el$ = $8tj43$getNextElement($64d94dcaa058dc7b$var$_tmpl$);
|
|
11212
|
-
$8tj43$spread(_el$, $8tj43$
|
|
11231
|
+
$8tj43$spread(_el$, $8tj43$mergeProps(() => props.element_attributes, {
|
|
11213
11232
|
"classList": {
|
|
11214
11233
|
[container_class]: true
|
|
11215
11234
|
}
|
|
@@ -11504,7 +11523,7 @@ function $ff7feae4dddd6073$var$wrap_blocks_in_div(rendered_content_blocks, max_s
|
|
|
11504
11523
|
return _el$;
|
|
11505
11524
|
}
|
|
11506
11525
|
});
|
|
11507
|
-
return $8tj43$
|
|
11526
|
+
return $8tj43$mergeProps1(block, {
|
|
11508
11527
|
// Create content divs for the blocks with as much fine-grained diffing as possible?
|
|
11509
11528
|
content: () => {
|
|
11510
11529
|
// 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
|
|
@@ -11752,7 +11771,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
11752
11771
|
} = slider;
|
|
11753
11772
|
const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, insert_here, true);
|
|
11754
11773
|
// Do like this, so we don't have to call mergeProps ourselves
|
|
11755
|
-
$8tj43$createComponent(Layout, $8tj43$
|
|
11774
|
+
$8tj43$createComponent(Layout, $8tj43$mergeProps(layout_options_, {
|
|
11756
11775
|
rows: "all",
|
|
11757
11776
|
get cols_at_size() {
|
|
11758
11777
|
return modified_cols_at_size();
|
|
@@ -12281,7 +12300,7 @@ function $082c4ed3e22f8d71$export$9bf11afa910f536e(_ref) {
|
|
|
12281
12300
|
get children() {
|
|
12282
12301
|
return (() => {
|
|
12283
12302
|
var _el$34 = $8tj43$getNextElement($082c4ed3e22f8d71$var$_tmpl$5);
|
|
12284
|
-
$8tj43$insert(_el$34, $8tj43$createComponent((0, $f6b0500577e1b210$export$3f1a388cc0d8fed7), $8tj43$
|
|
12303
|
+
$8tj43$insert(_el$34, $8tj43$createComponent((0, $f6b0500577e1b210$export$3f1a388cc0d8fed7), $8tj43$mergeProps(args_for_filtering_, {
|
|
12285
12304
|
are_in_modal_: true
|
|
12286
12305
|
})));
|
|
12287
12306
|
return _el$34;
|
|
@@ -13094,7 +13113,7 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
|
13094
13113
|
[_el$8, _co$] = $8tj43$getNextMarker(_el$7.nextSibling),
|
|
13095
13114
|
_el$9 = _el$8.nextSibling,
|
|
13096
13115
|
[_el$10, _co$2] = $8tj43$getNextMarker(_el$9.nextSibling);
|
|
13097
|
-
$8tj43$insert(_el$4, $8tj43$createComponent(LinkIfPossible, $8tj43$
|
|
13116
|
+
$8tj43$insert(_el$4, $8tj43$createComponent(LinkIfPossible, $8tj43$mergeProps(make_link_attributes, {
|
|
13098
13117
|
tabIndex: "-1",
|
|
13099
13118
|
get children() {
|
|
13100
13119
|
return $8tj43$createComponent((0, $3c5e15c6ee4227a9$export$605674723bcc715c), {
|
|
@@ -13103,7 +13122,7 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
|
13103
13122
|
});
|
|
13104
13123
|
}
|
|
13105
13124
|
})));
|
|
13106
|
-
$8tj43$insert(_el$5, $8tj43$createComponent(LinkIfPossible, $8tj43$
|
|
13125
|
+
$8tj43$insert(_el$5, $8tj43$createComponent(LinkIfPossible, $8tj43$mergeProps({
|
|
13107
13126
|
"class": "content-title line-clamp"
|
|
13108
13127
|
}, make_link_attributes, {
|
|
13109
13128
|
get title() {
|
|
@@ -13269,7 +13288,7 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
|
|
|
13269
13288
|
},
|
|
13270
13289
|
number_of_results_: num_results
|
|
13271
13290
|
}), _el$3, _co$);
|
|
13272
|
-
$8tj43$insert(_el$, $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $8tj43$
|
|
13291
|
+
$8tj43$insert(_el$, $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $8tj43$mergeProps({
|
|
13273
13292
|
layout: "grid",
|
|
13274
13293
|
element_attributes: {
|
|
13275
13294
|
class: "cards"
|
|
@@ -13680,7 +13699,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13680
13699
|
var _search_results_4, _search_results_4$con;
|
|
13681
13700
|
return ((_search_results_4 = search_results_()) !== null && _search_results_4 !== void 0 && (_search_results_4$con = _search_results_4.content_search_links) !== null && _search_results_4$con !== void 0 && _search_results_4$con.length ? i18n_.no_products_ : i18n_.no_results_text_)();
|
|
13682
13701
|
});
|
|
13683
|
-
const results_for = $8tj43$createComponent((0, $69602b3d8fd54c38$export$9dd50d35b9d94fdf), $8tj43$
|
|
13702
|
+
const results_for = $8tj43$createComponent((0, $69602b3d8fd54c38$export$9dd50d35b9d94fdf), $8tj43$mergeProps({
|
|
13684
13703
|
get type() {
|
|
13685
13704
|
return (0, $69602b3d8fd54c38$export$2452208c79fe93ea).products;
|
|
13686
13705
|
},
|
|
@@ -15821,7 +15840,7 @@ function $4b4b262708b516ee$var$add_us_to_crumbs(plp_meta) {
|
|
|
15821
15840
|
var _plp_meta3;
|
|
15822
15841
|
const api_value = (_plp_meta3 = plp_meta()) === null || _plp_meta3 === void 0 ? void 0 : _plp_meta3.breadcrumbs;
|
|
15823
15842
|
if (!api_value) return api_value;
|
|
15824
|
-
return [...api_value, $8tj43$
|
|
15843
|
+
return [...api_value, $8tj43$mergeProps1(plp_meta(), {
|
|
15825
15844
|
get page_url() {
|
|
15826
15845
|
return href_accessor();
|
|
15827
15846
|
}
|
|
@@ -15933,4 +15952,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
15933
15952
|
}, "Entire CategoryPage failed");
|
|
15934
15953
|
}
|
|
15935
15954
|
$8tj43$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
|
|
15936
|
-
export { $
|
|
15955
|
+
export { $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSlider, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
|