@depict-ai/ui 4.7.24 → 4.7.26
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 +105 -33
- package/ES10/index.d.ts +5 -1
- package/ES10/index.js +323 -252
- package/latest/index.cjs +105 -33
- package/latest/index.d.ts +5 -1
- package/latest/index.js +323 -252
- package/package.json +1 -1
- package/server/ES10/index.cjs +76 -20
- package/server/ES10/index.d.ts +5 -1
- package/server/ES10/index.js +212 -157
- package/server/latest/index.cjs +76 -20
- package/server/latest/index.d.ts +5 -1
- package/server/latest/index.js +212 -157
package/server/ES10/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { add_to_version_info as $b8hua$add_to_version_info, slider_fading_factory as $b8hua$slider_fading_factory, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, catchify as $b8hua$
|
|
2
|
-
import {
|
|
1
|
+
import { add_to_version_info as $b8hua$add_to_version_info, slider_fading_factory as $b8hua$slider_fading_factory, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, catchify as $b8hua$catchify1, dlog as $b8hua$dlog1, camelCasifyObject as $b8hua$camelCasifyObject, useExpandingContainer as $b8hua$useExpandingContainer, fetch_retry as $b8hua$fetch_retry, base_url as $b8hua$base_url, dwarn as $b8hua$dwarn, slider_fractional_factory as $b8hua$slider_fractional_factory, make_random_classname as $b8hua$make_random_classname, n_col_styling_with_dist as $b8hua$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $b8hua$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $b8hua$layout_get_total_rec_amount_for_row, layout_media_query_header as $b8hua$layout_media_query_header, report as $b8hua$report, observer as $b8hua$observer, javascript_media_query as $b8hua$javascript_media_query, queueMacroTask as $b8hua$queueMacroTask, findMostFrequentItem as $b8hua$findMostFrequentItem, standard_price_format as $b8hua$standard_price_format, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, deparallelize_no_drop as $b8hua$deparallelize_no_drop, ContainedImage as $b8hua$ContainedImage, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, use_href_accessor as $b8hua$use_href_accessor, get_session_id as $b8hua$get_session_id, add_version_query_params as $b8hua$add_version_query_params, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, snakeCasifyObject as $b8hua$snakeCasifyObject, make_url_with_query_params as $b8hua$make_url_with_query_params, sort_obj as $b8hua$sort_obj, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
2
|
+
import { dlog as $b8hua$dlog, catchify as $b8hua$catchify, ListenableSet as $b8hua$ListenableSet, use_href_accessor as $b8hua$use_href_accessor1, queueMacroTask as $b8hua$queueMacroTask1, report as $b8hua$report1 } from "@depict-ai/utilishared/ES10";
|
|
3
|
+
import { createRoot as $b8hua$createRoot, createSignal as $b8hua$createSignal, createEffect as $b8hua$createEffect, onCleanup as $b8hua$onCleanup, createContext as $b8hua$createContext, Show as $b8hua$Show, useContext as $b8hua$useContext, createMemo as $b8hua$createMemo, untrack as $b8hua$untrack, For as $b8hua$For, getOwner as $b8hua$getOwner, createResource as $b8hua$createResource, runWithOwner as $b8hua$runWithOwner, mergeProps as $b8hua$mergeProps1, Suspense as $b8hua$Suspense, createRenderEffect as $b8hua$createRenderEffect, Index as $b8hua$Index, createUniqueId as $b8hua$createUniqueId, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, splitProps as $b8hua$splitProps, on as $b8hua$on, batch as $b8hua$batch, createSelector as $b8hua$createSelector, children as $b8hua$children, createReaction as $b8hua$createReaction, mapArray as $b8hua$mapArray } from "solid-js";
|
|
3
4
|
import { ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, createComponent as $b8hua$createComponent, isServer as $b8hua$isServer, insert as $b8hua$insert, ssrAttribute as $b8hua$ssrAttribute, ssrStyle as $b8hua$ssrStyle, mergeProps as $b8hua$mergeProps, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, spread as $b8hua$spread, Dynamic as $b8hua$Dynamic } from "solid-js/web";
|
|
4
5
|
import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
import { ListenableSet as $b8hua$ListenableSet, catchify as $b8hua$catchify1, use_href_accessor as $b8hua$use_href_accessor1, queueMacroTask as $b8hua$queueMacroTask1, report as $b8hua$report1 } from "@depict-ai/utilishared/ES10";
|
|
6
6
|
import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
7
7
|
import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
8
8
|
import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from "solid-js/store";
|
|
@@ -10,7 +10,61 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$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.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.26";
|
|
14
|
+
let $715f7f2e53146662$var$elementsHoveredSignal;
|
|
15
|
+
let $715f7f2e53146662$var$consumersSignal;
|
|
16
|
+
function $715f7f2e53146662$export$d4d96868197be50e() {
|
|
17
|
+
if (!$715f7f2e53146662$var$elementsHoveredSignal || !$715f7f2e53146662$var$consumersSignal) $b8hua$createRoot(dispose => {
|
|
18
|
+
$715f7f2e53146662$var$elementsHoveredSignal = $b8hua$createSignal(new Set());
|
|
19
|
+
$715f7f2e53146662$var$consumersSignal = $b8hua$createSignal(0);
|
|
20
|
+
const [consumers] = $715f7f2e53146662$var$consumersSignal;
|
|
21
|
+
// No matter how often useMobileHover is called, only add one listener and get hovered elements once per touchmove event, for efficiency
|
|
22
|
+
$715f7f2e53146662$var$doHeavyCalculations();
|
|
23
|
+
$b8hua$createEffect(() => {
|
|
24
|
+
// No-one needs information anymore, stop listening
|
|
25
|
+
const users = consumers();
|
|
26
|
+
if (users < 1) {
|
|
27
|
+
$b8hua$dlog("Stopping to listen for mobile hover");
|
|
28
|
+
dispose();
|
|
29
|
+
$715f7f2e53146662$var$elementsHoveredSignal = undefined;
|
|
30
|
+
$715f7f2e53146662$var$consumersSignal = undefined;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
const [elementsHovered] = $715f7f2e53146662$var$elementsHoveredSignal;
|
|
35
|
+
const [, setConsumers] = $715f7f2e53146662$var$consumersSignal;
|
|
36
|
+
setConsumers(prev => prev + 1);
|
|
37
|
+
$b8hua$onCleanup(() => setConsumers(prev => prev - 1));
|
|
38
|
+
return elementsHovered;
|
|
39
|
+
}
|
|
40
|
+
function $715f7f2e53146662$var$doHeavyCalculations() {
|
|
41
|
+
$b8hua$dlog("Starting to listen for mobile hover");
|
|
42
|
+
const [, setElementsHovered] = $715f7f2e53146662$var$elementsHoveredSignal;
|
|
43
|
+
const elementAtTouch = new Map();
|
|
44
|
+
const updateSet = () => setElementsHovered(new Set([...elementAtTouch.values()].filter(v => v)));
|
|
45
|
+
const setPositionHandler = $b8hua$catchify(evt => {
|
|
46
|
+
for (const touch of evt.changedTouches) elementAtTouch.set(touch.identifier, document.elementFromPoint(touch.clientX, touch.clientY));
|
|
47
|
+
updateSet();
|
|
48
|
+
});
|
|
49
|
+
const deleteTouchHandler = $b8hua$catchify(evt => {
|
|
50
|
+
for (const touch of evt.changedTouches) elementAtTouch.delete(touch.identifier);
|
|
51
|
+
updateSet();
|
|
52
|
+
});
|
|
53
|
+
addEventListener("touchstart", setPositionHandler, {
|
|
54
|
+
passive: true
|
|
55
|
+
});
|
|
56
|
+
addEventListener("touchend", deleteTouchHandler, {
|
|
57
|
+
passive: true
|
|
58
|
+
});
|
|
59
|
+
addEventListener("touchcancel", deleteTouchHandler, {
|
|
60
|
+
passive: true
|
|
61
|
+
});
|
|
62
|
+
$b8hua$onCleanup(() => {
|
|
63
|
+
removeEventListener("touchstart", setPositionHandler);
|
|
64
|
+
removeEventListener("touchend", deleteTouchHandler);
|
|
65
|
+
removeEventListener("touchcancel", deleteTouchHandler);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
14
68
|
function $a35e6f680c5bbc60$export$54299a3c81f5425() {
|
|
15
69
|
const d = document;
|
|
16
70
|
const [isVisible, setIsVisible] = $b8hua$createSignal(d.visibilityState !== "hidden");
|
|
@@ -260,7 +314,7 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
|
|
|
260
314
|
} catch (e) {
|
|
261
315
|
if (!$2d7bad8684bc7f44$var$printedCloneError) {
|
|
262
316
|
$2d7bad8684bc7f44$var$printedCloneError = true;
|
|
263
|
-
$b8hua$
|
|
317
|
+
$b8hua$dlog1("Can't clone display", display, " (uncloneable objects in it), make sure you don't mutate it in the template since we cache.", e);
|
|
264
318
|
}
|
|
265
319
|
}
|
|
266
320
|
let renderingResult;
|
|
@@ -360,7 +414,7 @@ function $618bd53ea0a41cd4$export$4a14175d33d81a96(_ref) {
|
|
|
360
414
|
};
|
|
361
415
|
// The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator, knowing when to load more and any other consumer of the useProductCardIsVisible hook.
|
|
362
416
|
const shouldObserve = $b8hua$createMemo(() => alwaysObserveCards_ || listenersForIntersecting() > 0);
|
|
363
|
-
const intersection_observer = new IntersectionObserver($b8hua$
|
|
417
|
+
const intersection_observer = new IntersectionObserver($b8hua$catchify1(records => {
|
|
364
418
|
const intersectingValue = currentlyIntersecting();
|
|
365
419
|
for (let i = 0; i < records.length; i++) {
|
|
366
420
|
const record = records[i];
|
|
@@ -726,7 +780,7 @@ function $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, container_element) {
|
|
|
726
780
|
}
|
|
727
781
|
update_children_count();
|
|
728
782
|
if (!(0, $b8hua$isServer)) {
|
|
729
|
-
const mutation_observer = new MutationObserver($b8hua$
|
|
783
|
+
const mutation_observer = new MutationObserver($b8hua$catchify1(update_children_count));
|
|
730
784
|
mutation_observer.observe(container_element, {
|
|
731
785
|
childList: true
|
|
732
786
|
});
|
|
@@ -1013,7 +1067,7 @@ function $6db93f70c2db1486$export$2972b890694ced75(callback, _ref) {
|
|
|
1013
1067
|
}
|
|
1014
1068
|
function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
|
|
1015
1069
|
const [size, setSize] = $b8hua$createSignal(0);
|
|
1016
|
-
const resizeObserver = new ResizeObserver($b8hua$
|
|
1070
|
+
const resizeObserver = new ResizeObserver($b8hua$catchify1(records => {
|
|
1017
1071
|
for (let j = 0; j < records.length; j++) {
|
|
1018
1072
|
const {
|
|
1019
1073
|
width: width
|
|
@@ -1028,7 +1082,7 @@ function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
|
|
|
1028
1082
|
let {
|
|
1029
1083
|
element: element
|
|
1030
1084
|
} = _ref;
|
|
1031
|
-
return requestAnimationFrame($b8hua$
|
|
1085
|
+
return requestAnimationFrame($b8hua$catchify1(() => resizeObserver.observe(element)));
|
|
1032
1086
|
});
|
|
1033
1087
|
$b8hua$onCleanup(() => {
|
|
1034
1088
|
resizeObserver.disconnect();
|
|
@@ -1086,7 +1140,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
|
|
|
1086
1140
|
if (existingStack) return existingStack.add(fn);
|
|
1087
1141
|
const newStack = new Set([fn]);
|
|
1088
1142
|
if (listingContext) listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol] = newStack;
|
|
1089
|
-
const processStackWhenIdle = () => $6db93f70c2db1486$export$2972b890694ced75($b8hua$
|
|
1143
|
+
const processStackWhenIdle = () => $6db93f70c2db1486$export$2972b890694ced75($b8hua$catchify1(deadline => {
|
|
1090
1144
|
const start = performance.now();
|
|
1091
1145
|
const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
|
|
1092
1146
|
for (const fn of newStack) {
|
|
@@ -1118,7 +1172,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
|
|
|
1118
1172
|
let prevValue;
|
|
1119
1173
|
const aspectRatios = listingContext[$56047603f9d212b6$export$f8945274f08a3105] || (listingContext[$56047603f9d212b6$export$f8945274f08a3105] = new Set());
|
|
1120
1174
|
const [, setMostPrevalentAspectRatio] = listingContext[$56047603f9d212b6$export$6066eb417ed2e9f7] || (listingContext[$56047603f9d212b6$export$6066eb417ed2e9f7] = $b8hua$createSignal());
|
|
1121
|
-
img.addEventListener("load", $b8hua$
|
|
1175
|
+
img.addEventListener("load", $b8hua$catchify1(() => {
|
|
1122
1176
|
if (props.keyRatioUpdating) {
|
|
1123
1177
|
if (!srcJustChanged) return;
|
|
1124
1178
|
srcJustChanged = false;
|
|
@@ -1152,7 +1206,7 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
|
|
|
1152
1206
|
$b8hua$createEffect(() => {
|
|
1153
1207
|
if (!props.size()) return; // wait until we have a size, run every time the size changes
|
|
1154
1208
|
if (timeoutSet) return;
|
|
1155
|
-
const handler = $b8hua$
|
|
1209
|
+
const handler = $b8hua$catchify1(() => {
|
|
1156
1210
|
if (gotCleanedUp) return;
|
|
1157
1211
|
img.sizes = sizePX(); // use latest available value of props.size
|
|
1158
1212
|
if (!sizeSetFastPath) {
|
|
@@ -1289,10 +1343,10 @@ function $60ec7a29849d81db$export$a71e92cfbb498adc(props) {
|
|
|
1289
1343
|
return $b8hua$standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
|
|
1290
1344
|
});
|
|
1291
1345
|
}
|
|
1292
|
-
var $
|
|
1293
|
-
$
|
|
1294
|
-
$
|
|
1295
|
-
function $
|
|
1346
|
+
var $f84b097e079b0a33$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1347
|
+
$f84b097e079b0a33$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1348
|
+
$f84b097e079b0a33$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container">', '<span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1349
|
+
function $f84b097e079b0a33$export$b73ed90f0ee50dc3(_ref) {
|
|
1296
1350
|
let {
|
|
1297
1351
|
display_: display_,
|
|
1298
1352
|
FavoriteButton_: FavoriteButton_,
|
|
@@ -1345,7 +1399,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1345
1399
|
});
|
|
1346
1400
|
},
|
|
1347
1401
|
get children() {
|
|
1348
|
-
return $b8hua$ssr($
|
|
1402
|
+
return $b8hua$ssr($f84b097e079b0a33$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
1349
1403
|
get when() {
|
|
1350
1404
|
return imageUrl();
|
|
1351
1405
|
},
|
|
@@ -1377,7 +1431,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1377
1431
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
|
|
1378
1432
|
},
|
|
1379
1433
|
get children() {
|
|
1380
|
-
return $b8hua$ssr($
|
|
1434
|
+
return $b8hua$ssr($f84b097e079b0a33$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrElement("span", $b8hua$mergeProps({
|
|
1381
1435
|
"class": "d-title line-clamp"
|
|
1382
1436
|
}, () => title() && {
|
|
1383
1437
|
title: title()
|
|
@@ -1419,7 +1473,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1419
1473
|
return isOnSale();
|
|
1420
1474
|
},
|
|
1421
1475
|
get children() {
|
|
1422
|
-
return $b8hua$ssr($
|
|
1476
|
+
return $b8hua$ssr($f84b097e079b0a33$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
1423
1477
|
get when() {
|
|
1424
1478
|
return variantToUse() && !originalPrice.loading;
|
|
1425
1479
|
},
|
|
@@ -1473,7 +1527,7 @@ async function $c4103af154850e50$var$checkIfIsAffectedByChromeBug326498383() {
|
|
|
1473
1527
|
const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
|
|
1474
1528
|
const timeoutPromise = new Promise(r => {
|
|
1475
1529
|
resolveTimeoutPromise = r;
|
|
1476
|
-
setTimeout($b8hua$
|
|
1530
|
+
setTimeout($b8hua$catchify1(() => {
|
|
1477
1531
|
r();
|
|
1478
1532
|
div.remove();
|
|
1479
1533
|
}), 500);
|
|
@@ -1505,12 +1559,12 @@ async function $c4103af154850e50$var$checkIfIsAffectedByChromeBug326498383() {
|
|
|
1505
1559
|
});
|
|
1506
1560
|
await timeoutPromise;
|
|
1507
1561
|
} catch (e) {
|
|
1508
|
-
$b8hua$
|
|
1562
|
+
$b8hua$dlog1("Failed to check if affected by chrome bug 326498383", e);
|
|
1509
1563
|
}
|
|
1510
1564
|
return isAffected;
|
|
1511
1565
|
}
|
|
1512
|
-
var $
|
|
1513
|
-
function $
|
|
1566
|
+
var $275d06a183ca0a29$var$_tmpl$ = ["<div", ' class="scroll-padding"><div class="', '" style="', '">', "</div></div>"];
|
|
1567
|
+
function $275d06a183ca0a29$export$ebf0b1d4f90c09ae(_ref) {
|
|
1514
1568
|
let {
|
|
1515
1569
|
displays_: displays_,
|
|
1516
1570
|
FavoriteButton_: FavoriteButton_,
|
|
@@ -1530,6 +1584,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1530
1584
|
const textFadeInAnimationRunning = $b8hua$createSignal(false);
|
|
1531
1585
|
const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
|
|
1532
1586
|
const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
|
|
1587
|
+
//const elementsHovered = useMobileHover();
|
|
1533
1588
|
$c4103af154850e50$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
|
|
1534
1589
|
return $b8hua$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
1535
1590
|
get children() {
|
|
@@ -1538,7 +1593,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1538
1593
|
return containerWidth_() || !displays_();
|
|
1539
1594
|
},
|
|
1540
1595
|
get children() {
|
|
1541
|
-
return $b8hua$ssr($
|
|
1596
|
+
return $b8hua$ssr($275d06a183ca0a29$var$_tmpl$, $b8hua$ssrHydrationKey(), "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""), $b8hua$ssrStyle(displays_() &&
|
|
1542
1597
|
// The styling is written like this to eke out animation smoothness on low CPU devices, git blame for previous, more readable versions.
|
|
1543
1598
|
"--look-card-width:".concat(containerWidth_(), "px;--look-card-height:").concat(containerHeight_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")), $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
1544
1599
|
get each() {
|
|
@@ -1547,7 +1602,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1547
1602
|
});
|
|
1548
1603
|
},
|
|
1549
1604
|
children: (display, index) => {
|
|
1550
|
-
return $b8hua$createComponent((0, $
|
|
1605
|
+
return $b8hua$createComponent((0, $f84b097e079b0a33$export$b73ed90f0ee50dc3), {
|
|
1551
1606
|
pseudoRouter_: pseudoRouter_,
|
|
1552
1607
|
animationDuration_: animationDuration_,
|
|
1553
1608
|
display_: display,
|
|
@@ -1557,7 +1612,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1557
1612
|
priceFormatting_: priceFormatting_,
|
|
1558
1613
|
outerRef_: el => $b8hua$createEffect(() => {
|
|
1559
1614
|
if (index !== 0) return;
|
|
1560
|
-
const resizeObserver = new ResizeObserver($b8hua$
|
|
1615
|
+
const resizeObserver = new ResizeObserver($b8hua$catchify1(records => setLookItemHeight(records.at(-1).contentRect.height)));
|
|
1561
1616
|
resizeObserver.observe(el);
|
|
1562
1617
|
$b8hua$onCleanup(() => resizeObserver.disconnect());
|
|
1563
1618
|
})
|
|
@@ -1572,11 +1627,11 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1572
1627
|
/**
|
|
1573
1628
|
* Workaround for Chrome bug 326498383, adapted version of https://stackoverflow.com/a/39494245
|
|
1574
1629
|
*/
|
|
1575
|
-
function $
|
|
1630
|
+
function $275d06a183ca0a29$var$scrollingFunctionForChrome(element, targetScrollY, duration) {
|
|
1576
1631
|
let start;
|
|
1577
1632
|
const startingY = element.scrollTop;
|
|
1578
1633
|
const diff = targetScrollY - startingY;
|
|
1579
|
-
const step = $b8hua$
|
|
1634
|
+
const step = $b8hua$catchify1(timestamp => {
|
|
1580
1635
|
if (!start) start = timestamp;
|
|
1581
1636
|
// Elapsed milliseconds since start of scrolling.
|
|
1582
1637
|
const time = timestamp - start;
|
|
@@ -1589,8 +1644,8 @@ function $4089a7972a508539$var$scrollingFunctionForChrome(element, targetScrollY
|
|
|
1589
1644
|
// Bootstrap our animation - it will get called right before next frame shall be rendered.
|
|
1590
1645
|
requestAnimationFrame(step);
|
|
1591
1646
|
}
|
|
1592
|
-
var $
|
|
1593
|
-
function $
|
|
1647
|
+
var $22dd375b476673e2$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
|
|
1648
|
+
function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
1594
1649
|
let {
|
|
1595
1650
|
display_: display_,
|
|
1596
1651
|
expandedLooksSignal_: [expandedLooks_, setExpandedLooks],
|
|
@@ -1608,7 +1663,7 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1608
1663
|
const index = $1e69163caedaab4e$export$e3faf4d95300054f();
|
|
1609
1664
|
const [containerWidth_, setContainerWidth] = $b8hua$createSignal();
|
|
1610
1665
|
const [containerHeight_, setContainerHeight] = $b8hua$createSignal();
|
|
1611
|
-
const clickHandler = $b8hua$
|
|
1666
|
+
const clickHandler = $b8hua$catchify1(_ref2 => {
|
|
1612
1667
|
let {
|
|
1613
1668
|
target: target
|
|
1614
1669
|
} = _ref2;
|
|
@@ -1649,7 +1704,7 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1649
1704
|
}
|
|
1650
1705
|
// Close us if another look expands
|
|
1651
1706
|
$b8hua$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1652
|
-
return $b8hua$ssr($
|
|
1707
|
+
return $b8hua$ssr($22dd375b476673e2$var$_tmpl$, $b8hua$ssrHydrationKey(), "look-card ".concat(!display_() ? "placeholder" : ""), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
1653
1708
|
get when() {
|
|
1654
1709
|
return display_();
|
|
1655
1710
|
},
|
|
@@ -1668,7 +1723,7 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1668
1723
|
autoAdjustAspectRatio: true
|
|
1669
1724
|
});
|
|
1670
1725
|
}
|
|
1671
|
-
})), $b8hua$escape($b8hua$createComponent((0, $
|
|
1726
|
+
})), $b8hua$escape($b8hua$createComponent((0, $275d06a183ca0a29$export$ebf0b1d4f90c09ae), {
|
|
1672
1727
|
displays_: () => {
|
|
1673
1728
|
var _display_2;
|
|
1674
1729
|
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
@@ -1737,7 +1792,7 @@ class $ac571292d606f30b$export$7e1297a3a19f10d8 {
|
|
|
1737
1792
|
* @param is_replace_ if you want to replace the current URL in history instead of pushing a new one
|
|
1738
1793
|
* @param listing_id_ If you are navigating to a category and know the listing_id of, please provide it. This is for making a better devEx in js-ui
|
|
1739
1794
|
*/
|
|
1740
|
-
go_to_: $b8hua$
|
|
1795
|
+
go_to_: $b8hua$catchify1(async _ref => {
|
|
1741
1796
|
let {
|
|
1742
1797
|
new_url_: raw_new_url,
|
|
1743
1798
|
event_: event_,
|
|
@@ -1948,7 +2003,7 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
1948
2003
|
return $bb34cd283e904784$var$runDisplayTransformersForLooks(baseData, listings, props.displayTransformers_);
|
|
1949
2004
|
});
|
|
1950
2005
|
const sharedOptions = {
|
|
1951
|
-
product_card_template_: display => $
|
|
2006
|
+
product_card_template_: display => $22dd375b476673e2$export$44809a8a3e867e30({
|
|
1952
2007
|
display_: () => display,
|
|
1953
2008
|
FavoriteButton_: props.FavoriteButton_,
|
|
1954
2009
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
@@ -2280,7 +2335,7 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
2280
2335
|
// don't wait if it's the first request
|
|
2281
2336
|
write_current_instant_query(value);
|
|
2282
2337
|
clearTimeout(timeout);
|
|
2283
|
-
timeout = setTimeout($b8hua$
|
|
2338
|
+
timeout = setTimeout($b8hua$catchify1(() => write_current_instant_query(value)), 250);
|
|
2284
2339
|
});
|
|
2285
2340
|
const [search_results] = $b8hua$createResource($b8hua$createMemo(() => ({
|
|
2286
2341
|
// <-- key order important, see comment below
|
|
@@ -2288,7 +2343,7 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
2288
2343
|
market: market_(),
|
|
2289
2344
|
locale: i18n_.backend_locale_(),
|
|
2290
2345
|
query: read_current_instant_query()
|
|
2291
|
-
})), $b8hua$
|
|
2346
|
+
})), $b8hua$catchify1(async variable_data => {
|
|
2292
2347
|
return depict_api_.query({
|
|
2293
2348
|
// here it is (unfortunately) important that the keys in the object are in the same order as in SearchPage.tsx, because when JSON-encoding them to compare for caching the strings will be different otherwise
|
|
2294
2349
|
limit: $b8hua$untrack(has_sort_or_filters_) ? max_cards : min_products_to_fetch_,
|
|
@@ -2389,7 +2444,7 @@ function $9974e016866745eb$export$c7e181728ad525f(url) {
|
|
|
2389
2444
|
return;
|
|
2390
2445
|
$9974e016866745eb$var$last_sent_value = new_value;
|
|
2391
2446
|
const args = ["depict.send", "pageview", new_value];
|
|
2392
|
-
$b8hua$
|
|
2447
|
+
$b8hua$dlog1("Calling ga with args", ...args);
|
|
2393
2448
|
// @ts-ignore
|
|
2394
2449
|
ga(...args);
|
|
2395
2450
|
}
|
|
@@ -2404,7 +2459,7 @@ function $a09bb7c652acf957$export$3340fdd8259bd4fd(_ref) {
|
|
|
2404
2459
|
if (process.env.GA === "false") return;
|
|
2405
2460
|
let debounce_timeout;
|
|
2406
2461
|
const stop_timeout = () => clearTimeout(debounce_timeout);
|
|
2407
|
-
const send_to_ga = $b8hua$
|
|
2462
|
+
const send_to_ga = $b8hua$catchify1(() => {
|
|
2408
2463
|
const fake_url = new URL(location.href);
|
|
2409
2464
|
const {
|
|
2410
2465
|
searchParams: searchParams
|
|
@@ -2417,12 +2472,12 @@ function $a09bb7c652acf957$export$3340fdd8259bd4fd(_ref) {
|
|
|
2417
2472
|
$b8hua$onCleanup(() => {
|
|
2418
2473
|
setTimeout(
|
|
2419
2474
|
// do it next event loop because search_field_value_ is wrong this one and search_query might be too because we want the old value to be put into the history entry and a framework like NextJS might take some time to navigate
|
|
2420
|
-
$b8hua$
|
|
2475
|
+
$b8hua$catchify1(() => {
|
|
2421
2476
|
if ($b8hua$untrack(get_search_query_) === $b8hua$untrack(get_search_field_value_)) stop_timeout();
|
|
2422
2477
|
}));
|
|
2423
2478
|
});
|
|
2424
2479
|
let first_call = true;
|
|
2425
|
-
$b8hua$createEffect($b8hua$
|
|
2480
|
+
$b8hua$createEffect($b8hua$catchify1(() => {
|
|
2426
2481
|
get_search_field_value_();
|
|
2427
2482
|
if (first_call) {
|
|
2428
2483
|
// we only want to do stuff when it changes
|
|
@@ -2442,7 +2497,7 @@ function $e8776b492383c292$export$91c3b6774e8be0f5(_ref) {
|
|
|
2442
2497
|
const [get_current_href, set_current_href] = $b8hua$createSignal(location.href);
|
|
2443
2498
|
const [exit_iterable, exitable_iterable] = $b8hua$make_asyncIterable_exiter((0, $b8hua$href_change_ipns));
|
|
2444
2499
|
$b8hua$onCleanup(exit_iterable);
|
|
2445
|
-
$b8hua$
|
|
2500
|
+
$b8hua$catchify1(async () => {
|
|
2446
2501
|
for await (const href of exitable_iterable)
|
|
2447
2502
|
// use native links so ppl can cmdclick/right click and open in new tab and see target URL
|
|
2448
2503
|
set_current_href(href);
|
|
@@ -2856,7 +2911,7 @@ function $75e33704f2a83029$var$actual_navigation_working_on_fake_data(_ref2) {
|
|
|
2856
2911
|
if (!$b8hua$untrack(() => read_updating_blocked())) previous_value = sfv;
|
|
2857
2912
|
});
|
|
2858
2913
|
const owner = $b8hua$getOwner();
|
|
2859
|
-
const handler = $b8hua$
|
|
2914
|
+
const handler = $b8hua$catchify1(_ref3 => {
|
|
2860
2915
|
let {
|
|
2861
2916
|
keyCode: keyCode
|
|
2862
2917
|
} = _ref3;
|
|
@@ -2923,7 +2978,7 @@ function $75e33704f2a83029$var$actual_navigation_working_on_fake_data(_ref2) {
|
|
|
2923
2978
|
const el = element_();
|
|
2924
2979
|
if (!el) return;
|
|
2925
2980
|
el.addEventListener("keyup", handler);
|
|
2926
|
-
$b8hua$onCleanup($b8hua$
|
|
2981
|
+
$b8hua$onCleanup($b8hua$catchify1(() => el.removeEventListener("keyup", handler)));
|
|
2927
2982
|
});
|
|
2928
2983
|
}
|
|
2929
2984
|
function $c4dee1ef44de29ca$export$af0124069c150252(_ref) {
|
|
@@ -3136,7 +3191,7 @@ let $c3820807ac1e6fd7$export$44dad306455dddf;
|
|
|
3136
3191
|
|
|
3137
3192
|
function $fc830a7ee59416ef$export$ebdc3711f7e02ccd(what_to_watch) {
|
|
3138
3193
|
const [width, setWidth] = $b8hua$createSignal();
|
|
3139
|
-
const resizeObserver = new ResizeObserver($b8hua$
|
|
3194
|
+
const resizeObserver = new ResizeObserver($b8hua$catchify1(records => {
|
|
3140
3195
|
for (let j = 0; j < records.length; j++) {
|
|
3141
3196
|
var _records$j$borderBoxS, _records$j$borderBoxS2, _records$j$borderBoxS3;
|
|
3142
3197
|
const width = (_records$j$borderBoxS = (_records$j$borderBoxS2 = records[j].borderBoxSize) === null || _records$j$borderBoxS2 === void 0 ? void 0 : (_records$j$borderBoxS3 = _records$j$borderBoxS2[0]) === null || _records$j$borderBoxS3 === void 0 ? void 0 : _records$j$borderBoxS3.inlineSize) !== null && _records$j$borderBoxS !== void 0 ? _records$j$borderBoxS : what_to_watch.getBoundingClientRect().width;
|
|
@@ -3149,7 +3204,7 @@ function $fc830a7ee59416ef$export$ebdc3711f7e02ccd(what_to_watch) {
|
|
|
3149
3204
|
let {
|
|
3150
3205
|
element: element
|
|
3151
3206
|
} = _ref;
|
|
3152
|
-
return requestAnimationFrame($b8hua$
|
|
3207
|
+
return requestAnimationFrame($b8hua$catchify1(() => {
|
|
3153
3208
|
const current_size = what_to_watch.getBoundingClientRect().width;
|
|
3154
3209
|
if (current_size)
|
|
3155
3210
|
// If element has size, set signal to that. ResizeObserver only triggers when the content is visible in some cases, but it might already have a size. This reduces size filter expanding animation jank in chrome.
|
|
@@ -3196,7 +3251,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
3196
3251
|
let input_element;
|
|
3197
3252
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
3198
3253
|
let field_div;
|
|
3199
|
-
$b8hua$createEffect($b8hua$
|
|
3254
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
3200
3255
|
if (disabled_) return;
|
|
3201
3256
|
// we aren't in DOM yet unfortunately, wouldn't even be with onMount
|
|
3202
3257
|
await (0, $b8hua$observer).wait_for_element(input_element);
|
|
@@ -3276,18 +3331,18 @@ function $e56d241d0f33d459$export$fe334901e8bebd57() {
|
|
|
3276
3331
|
offset: 0
|
|
3277
3332
|
}, 1);
|
|
3278
3333
|
animation.pause();
|
|
3279
|
-
const fn = $b8hua$
|
|
3334
|
+
const fn = $b8hua$catchify1(animation.play.bind(animation));
|
|
3280
3335
|
cleanup_fns.push(fn);
|
|
3281
3336
|
$b8hua$onCleanup(fn);
|
|
3282
3337
|
} catch (e) {
|
|
3283
|
-
$b8hua$
|
|
3338
|
+
$b8hua$dlog1("Probably partial keyframe error", e);
|
|
3284
3339
|
}
|
|
3285
3340
|
if (getComputedStyle(element).overflow !== "hidden") {
|
|
3286
3341
|
// safari gets special hacky treatment
|
|
3287
3342
|
const style = element.style;
|
|
3288
3343
|
const original_value = style.overflow;
|
|
3289
3344
|
style.overflow = "hidden";
|
|
3290
|
-
const fn = $b8hua$
|
|
3345
|
+
const fn = $b8hua$catchify1(() => style.overflow = original_value);
|
|
3291
3346
|
cleanup_fns.push(fn);
|
|
3292
3347
|
$b8hua$onCleanup(fn);
|
|
3293
3348
|
}
|
|
@@ -3310,8 +3365,8 @@ function $a82a41ab7188eda2$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
3310
3365
|
let set_initial_values = false;
|
|
3311
3366
|
let old_pathname;
|
|
3312
3367
|
let old_param_value;
|
|
3313
|
-
$b8hua$onCleanup($b8hua$
|
|
3314
|
-
$b8hua$
|
|
3368
|
+
$b8hua$onCleanup($b8hua$catchify1(exit_iterable));
|
|
3369
|
+
$b8hua$catchify1(async () => {
|
|
3315
3370
|
for await (const href of exitable_iterable) {
|
|
3316
3371
|
const u_o = new URL(href);
|
|
3317
3372
|
const new_pathname = u_o.pathname;
|
|
@@ -3383,7 +3438,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
3383
3438
|
} = alignmentSignals_ || {};
|
|
3384
3439
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
3385
3440
|
const [get_modal_search_results, set_modal_search_results_] = $b8hua$createSignal();
|
|
3386
|
-
const close_on_escape_handler = $b8hua$
|
|
3441
|
+
const close_on_escape_handler = $b8hua$catchify1(_ref2 => {
|
|
3387
3442
|
let {
|
|
3388
3443
|
key: key
|
|
3389
3444
|
} = _ref2;
|
|
@@ -3410,7 +3465,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
3410
3465
|
if (disable_scrolling_) $e56d241d0f33d459$export$fe334901e8bebd57();
|
|
3411
3466
|
$a82a41ab7188eda2$export$93d9bfd0c9c1a5b8(close_modal_, search_query_url_param_name_);
|
|
3412
3467
|
window.addEventListener("keydown", close_on_escape_handler);
|
|
3413
|
-
$b8hua$onCleanup($b8hua$
|
|
3468
|
+
$b8hua$onCleanup($b8hua$catchify1(() => window.removeEventListener("keydown", close_on_escape_handler)));
|
|
3414
3469
|
if (closing_animation_) register_closing_animation_(closing_animation_);
|
|
3415
3470
|
$a09bb7c652acf957$export$3340fdd8259bd4fd({
|
|
3416
3471
|
get_search_field_value_: get_search_field_value_,
|
|
@@ -3619,7 +3674,7 @@ function $2855bffe06ef7a03$var$decode_filter_data(op, encoded_data) {
|
|
|
3619
3674
|
try {
|
|
3620
3675
|
return JSON.parse($b8hua$base64_decode_unicode(encoded_data));
|
|
3621
3676
|
} catch (e) {
|
|
3622
|
-
$b8hua$
|
|
3677
|
+
$b8hua$dlog1("Failed to fallback parse filter data", op, encoded_data, e);
|
|
3623
3678
|
}
|
|
3624
3679
|
return null;
|
|
3625
3680
|
}
|
|
@@ -3680,7 +3735,7 @@ function $2855bffe06ef7a03$export$766e9676e74997d3(search_params, sorting_query_
|
|
|
3680
3735
|
field: encoded_sorting.slice(0, -$2855bffe06ef7a03$var$descending_token.length),
|
|
3681
3736
|
order: "desc"
|
|
3682
3737
|
};
|
|
3683
|
-
$b8hua$
|
|
3738
|
+
$b8hua$dlog1("Invalid sorting query param value", encoded_sorting);
|
|
3684
3739
|
return;
|
|
3685
3740
|
}
|
|
3686
3741
|
function $2855bffe06ef7a03$export$916e6850778505f6(search_params, filter_query_param_prefix, sorting_query_param) {
|
|
@@ -4269,7 +4324,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
4269
4324
|
const random_classname_body = $b8hua$make_random_classname();
|
|
4270
4325
|
const backdropRandomClassname = $b8hua$make_random_classname();
|
|
4271
4326
|
const [get_modal_search_results_, set_modal_search_results_] = $b8hua$createSignal();
|
|
4272
|
-
const close_on_escape_handler = $b8hua$
|
|
4327
|
+
const close_on_escape_handler = $b8hua$catchify1(evt => {
|
|
4273
4328
|
if (evt.key === "Escape") {
|
|
4274
4329
|
evt.preventDefault(); // Prevent the browser from closing/cancelling the modal so our animations have time to run
|
|
4275
4330
|
close_modal_();
|
|
@@ -4372,7 +4427,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
4372
4427
|
$b8hua$createEffect($b8hua$on(get_search_field_value_, () => {
|
|
4373
4428
|
setShowStaleListingSuggestions(true);
|
|
4374
4429
|
clearTimeout(listingSuggestionsDebounceTimeout);
|
|
4375
|
-
listingSuggestionsDebounceTimeout = setTimeout($b8hua$
|
|
4430
|
+
listingSuggestionsDebounceTimeout = setTimeout($b8hua$catchify1(() => setShowStaleListingSuggestions(false)), 350);
|
|
4376
4431
|
}, {
|
|
4377
4432
|
defer: true
|
|
4378
4433
|
}));
|
|
@@ -4510,7 +4565,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
4510
4565
|
}
|
|
4511
4566
|
});
|
|
4512
4567
|
if (setSearchFieldOuterWidth_) {
|
|
4513
|
-
const resizeObserver = new ResizeObserver($b8hua$
|
|
4568
|
+
const resizeObserver = new ResizeObserver($b8hua$catchify1(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
|
4514
4569
|
resizeObserver.observe(search_field);
|
|
4515
4570
|
$b8hua$onCleanup(() => resizeObserver.disconnect());
|
|
4516
4571
|
}
|
|
@@ -4560,7 +4615,7 @@ function $6a439680ae7e9ba3$var$ActualTabs(props) {
|
|
|
4560
4615
|
});
|
|
4561
4616
|
const isSelected = $b8hua$createSelector(currentlySelected);
|
|
4562
4617
|
const owner = $b8hua$getOwner();
|
|
4563
|
-
const updateTabsSignal = $b8hua$
|
|
4618
|
+
const updateTabsSignal = $b8hua$catchify(() => $b8hua$runWithOwner(owner, () => setTabsReactive([...ourTabsSet])));
|
|
4564
4619
|
const ourTabsSet = $6a439680ae7e9ba3$var$useTabs();
|
|
4565
4620
|
const location = $b8hua$use_href_accessor1();
|
|
4566
4621
|
const linkWithChangedHash = hash => {
|
|
@@ -4667,7 +4722,7 @@ function $6a439680ae7e9ba3$export$3e41faf802a29e71(props) {
|
|
|
4667
4722
|
async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_opts, parent) {
|
|
4668
4723
|
const body = parent || document.body || (await (0, $b8hua$observer).wait_for_element("body"));
|
|
4669
4724
|
let dispose_and_remove;
|
|
4670
|
-
const open_modal_ = $b8hua$
|
|
4725
|
+
const open_modal_ = $b8hua$catchify1(async function () {
|
|
4671
4726
|
let extra_options_for_modal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4672
4727
|
let on_dispose = arguments.length > 1 ? arguments[1] : undefined;
|
|
4673
4728
|
// Below await is very intentional,
|
|
@@ -4702,7 +4757,7 @@ async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
4702
4757
|
actually_close();else if (!animation_started && closing_animation) {
|
|
4703
4758
|
var _catchify;
|
|
4704
4759
|
animation_started = +new Date();
|
|
4705
|
-
(_catchify = $b8hua$
|
|
4760
|
+
(_catchify = $b8hua$catchify1(closing_animation)()) === null || _catchify === void 0 || _catchify.then($b8hua$catchify1(actually_close));
|
|
4706
4761
|
} else actually_close();
|
|
4707
4762
|
};
|
|
4708
4763
|
return search_modal({
|
|
@@ -4715,7 +4770,7 @@ async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
4715
4770
|
});
|
|
4716
4771
|
body.append(...modal_els);
|
|
4717
4772
|
});
|
|
4718
|
-
const close_modal_ = $b8hua$
|
|
4773
|
+
const close_modal_ = $b8hua$catchify1(() => {
|
|
4719
4774
|
if (dispose_and_remove) {
|
|
4720
4775
|
// modal is open
|
|
4721
4776
|
const dispose_fn = dispose_and_remove;
|
|
@@ -4732,7 +4787,7 @@ async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
4732
4787
|
function $972f6bce0f9d61be$export$e183a13865960371(params_to_default_value, router_) {
|
|
4733
4788
|
const signals = {};
|
|
4734
4789
|
const entries = Object.entries(params_to_default_value);
|
|
4735
|
-
const event_handler = $b8hua$
|
|
4790
|
+
const event_handler = $b8hua$catchify1((what_happened, args) => {
|
|
4736
4791
|
// Intentionally always update our signals to the history state to allow external control of SDK state for doing things like https://linear.app/depictai/issue/X-1432/is-this-possible-with-the-depict-sdk
|
|
4737
4792
|
if (what_happened !== "popstate") return;
|
|
4738
4793
|
// Had to undo the comment above,but leaving the history. Doing this because discovering why it doesn't work is a deja-vu and I don't want to have to discover it again.
|
|
@@ -4764,8 +4819,8 @@ function $972f6bce0f9d61be$export$e183a13865960371(params_to_default_value, rout
|
|
|
4764
4819
|
});
|
|
4765
4820
|
// history_dot_state_to_state needs to update after its signals after url_state does BUT in the same task (might even have to be in the same tick in the microtask queue). If we'd use window.addEventListener("popstate") it would be guaranteed to be too late since each event listener has its own task
|
|
4766
4821
|
(0, $b8hua$instant_exec_on_suspect_history_change).add(event_handler);
|
|
4767
|
-
$b8hua$onCleanup($b8hua$
|
|
4768
|
-
$b8hua$createEffect($b8hua$
|
|
4822
|
+
$b8hua$onCleanup($b8hua$catchify1(() => (0, $b8hua$instant_exec_on_suspect_history_change).delete(event_handler)));
|
|
4823
|
+
$b8hua$createEffect($b8hua$catchify1(() => $b8hua$untrack($b8hua$catchify1(() => $972f6bce0f9d61be$var$history_state_change(signals, entries, history.state))))); // we need this to run after reading the initial state from history.state to write the defaults to history.state
|
|
4769
4824
|
return signals;
|
|
4770
4825
|
}
|
|
4771
4826
|
function $972f6bce0f9d61be$var$history_state_change(signals, entries, state) {
|
|
@@ -4903,7 +4958,7 @@ function $0706a7702baafc06$export$6b35356958ae5587(props) {
|
|
|
4903
4958
|
// If someone clicks on a product card in the shop the look modal, close the modal the next time the href changes
|
|
4904
4959
|
for (const item of resolved()) {
|
|
4905
4960
|
if (!(item instanceof Element)) return;
|
|
4906
|
-
item.addEventListener("click", $b8hua$
|
|
4961
|
+
item.addEventListener("click", $b8hua$catchify1(() =>
|
|
4907
4962
|
// run with modal owner so we don't do stuff after the modal closes
|
|
4908
4963
|
// can't have the owner of the product card as that gets disposed if the productId changes which might be too early (before location.href has changed)
|
|
4909
4964
|
$b8hua$runWithOwner(props.modalOwner_, () => $b8hua$createEffect($b8hua$on(hrefWithoutHash, props.actually_close_modal_, {
|
|
@@ -5124,7 +5179,7 @@ function $6b0fd8fd20df8ccf$var$actualSetupModal() {
|
|
|
5124
5179
|
(0, $68e6625c8d51f847$export$3064e1e8c6513da3).add(history_key);
|
|
5125
5180
|
const actually_close_modal_ = () => set_history_value(false);
|
|
5126
5181
|
const owner = $b8hua$getOwner();
|
|
5127
|
-
$b8hua$
|
|
5182
|
+
$b8hua$catchify1(async () => {
|
|
5128
5183
|
const {
|
|
5129
5184
|
open_modal_: open_modal_,
|
|
5130
5185
|
close_modal_: close_modal_
|
|
@@ -5199,15 +5254,15 @@ function $ad371564683947ab$export$6c6d7a51fa9aa15d(props) {
|
|
|
5199
5254
|
$b8hua$insert(details_, [summary_, $b8hua$createComponent(ExpandingContainer, {
|
|
5200
5255
|
children: children
|
|
5201
5256
|
})], null);
|
|
5202
|
-
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(details_).then($b8hua$
|
|
5203
|
-
$b8hua$createEffect($b8hua$
|
|
5257
|
+
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(details_).then($b8hua$catchify1(() => set_is_in_dom(true)));
|
|
5258
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
5204
5259
|
const is_open = is_open_memo();
|
|
5205
5260
|
if (!is_in_dom())
|
|
5206
5261
|
// wait with setting state until we're in DOM, animation won't work otherwise
|
|
5207
5262
|
return;
|
|
5208
5263
|
if (dont_animate_if_instant_open_ && fresh_component && !timeout_started) {
|
|
5209
5264
|
timeout_started = true;
|
|
5210
|
-
setTimeout($b8hua$
|
|
5265
|
+
setTimeout($b8hua$catchify1(() => fresh_component = false));
|
|
5211
5266
|
}
|
|
5212
5267
|
if (is_open) {
|
|
5213
5268
|
details_.open = true; // open up the toggle so the animation can happen
|
|
@@ -5215,10 +5270,10 @@ function $ad371564683947ab$export$6c6d7a51fa9aa15d(props) {
|
|
|
5215
5270
|
await expand(0, do_duration);
|
|
5216
5271
|
} else {
|
|
5217
5272
|
const animation = await collapse();
|
|
5218
|
-
animation === null || animation === void 0 || animation.addEventListener("finish", $b8hua$
|
|
5273
|
+
animation === null || animation === void 0 || animation.addEventListener("finish", $b8hua$catchify1(() => details_.open = false));
|
|
5219
5274
|
}
|
|
5220
5275
|
}));
|
|
5221
|
-
details_.addEventListener("toggle", $b8hua$
|
|
5276
|
+
details_.addEventListener("toggle", $b8hua$catchify1(() => {
|
|
5222
5277
|
const {
|
|
5223
5278
|
open: open
|
|
5224
5279
|
} = details_;
|
|
@@ -5228,11 +5283,11 @@ function $ad371564683947ab$export$6c6d7a51fa9aa15d(props) {
|
|
|
5228
5283
|
}) // in case someone somehow toggles it without us intercepting it at least follow suit
|
|
5229
5284
|
);
|
|
5230
5285
|
|
|
5231
|
-
summary_.addEventListener("click", $b8hua$
|
|
5286
|
+
summary_.addEventListener("click", $b8hua$catchify1(ev => {
|
|
5232
5287
|
ev.preventDefault();
|
|
5233
5288
|
toggle();
|
|
5234
5289
|
}));
|
|
5235
|
-
summary_.addEventListener("keydown", $b8hua$
|
|
5290
|
+
summary_.addEventListener("keydown", $b8hua$catchify1(ev => {
|
|
5236
5291
|
const {
|
|
5237
5292
|
key: key
|
|
5238
5293
|
} = ev;
|
|
@@ -5469,9 +5524,9 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
|
5469
5524
|
});
|
|
5470
5525
|
const [is_in_dom, set_is_in_dom] = $b8hua$createSignal(document.documentElement.contains(outmost_element));
|
|
5471
5526
|
const hidden = $b8hua$createMemo(() => get_search_filters_open_() || get_search_sorting_open_());
|
|
5472
|
-
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(outmost_element).then($b8hua$
|
|
5527
|
+
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(outmost_element).then($b8hua$catchify1(() => set_is_in_dom(true)));
|
|
5473
5528
|
outmost_element.classList.add("selected-filters");
|
|
5474
|
-
$b8hua$createEffect($b8hua$
|
|
5529
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
5475
5530
|
if (!is_in_dom())
|
|
5476
5531
|
// wait with setting state until we're in DOM, animation won't work otherwise
|
|
5477
5532
|
return;
|
|
@@ -5627,7 +5682,7 @@ function $133484ef10e4e954$export$dd948f91abc3a1c4(_ref) {
|
|
|
5627
5682
|
}) : []);
|
|
5628
5683
|
});
|
|
5629
5684
|
$b8hua$onCleanup(() => set_view_more_button_below_group_());
|
|
5630
|
-
$b8hua$createEffect($b8hua$
|
|
5685
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
5631
5686
|
if (!togglable_rest()) {
|
|
5632
5687
|
await collapse();
|
|
5633
5688
|
return;
|
|
@@ -5753,7 +5808,7 @@ function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
|
5753
5808
|
});
|
|
5754
5809
|
$b8hua$createComputed(() => {
|
|
5755
5810
|
clearTimeout(debounce_timeout);
|
|
5756
|
-
debounce_timeout = setTimeout($b8hua$
|
|
5811
|
+
debounce_timeout = setTimeout($b8hua$catchify1(range => $b8hua$untrack(() => {
|
|
5757
5812
|
const default_data = defaultRange();
|
|
5758
5813
|
const filter_object = {
|
|
5759
5814
|
op: filter_().op,
|
|
@@ -6306,7 +6361,7 @@ function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
|
|
|
6306
6361
|
}
|
|
6307
6362
|
while (execute_when_structure_finished.length) execute_when_structure_finished.pop()();
|
|
6308
6363
|
$0ae614c5c7babb43$var$expand_until_choice(data_structure);
|
|
6309
|
-
$b8hua$
|
|
6364
|
+
$b8hua$dlog1("CheckboxHierarchicalFilter: Recomputed structured_categories", data_structure);
|
|
6310
6365
|
return data_structure;
|
|
6311
6366
|
});
|
|
6312
6367
|
const some_top_level_are_hidden = $b8hua$createMemo(() => Object.keys(structured_categories()).length > $0ae614c5c7babb43$var$max_visible_without_collapsing);
|
|
@@ -6336,7 +6391,7 @@ function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
|
|
|
6336
6391
|
}) : []);
|
|
6337
6392
|
});
|
|
6338
6393
|
$b8hua$onCleanup(() => set_view_more_button_below_group());
|
|
6339
|
-
$b8hua$createEffect($b8hua$
|
|
6394
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
6340
6395
|
if (!some_top_level_are_hidden()) {
|
|
6341
6396
|
await collapse();
|
|
6342
6397
|
return;
|
|
@@ -6409,7 +6464,7 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_, filter
|
|
|
6409
6464
|
return (_value$is_checked_$ = (_value7 = value()) === null || _value7 === void 0 ? void 0 : (_value7$is_checked_ = _value7.is_checked_) === null || _value7$is_checked_ === void 0 ? void 0 : (_value7$is_checked_$ = _value7$is_checked_[0]) === null || _value7$is_checked_$ === void 0 ? void 0 : _value7$is_checked_$.call(_value7$is_checked_)) !== null && _value$is_checked_$ !== void 0 ? _value$is_checked_$ : false;
|
|
6410
6465
|
},
|
|
6411
6466
|
input_ref_: input => {
|
|
6412
|
-
input.addEventListener("change", $b8hua$
|
|
6467
|
+
input.addEventListener("change", $b8hua$catchify1(() => $b8hua$untrack(() => {
|
|
6413
6468
|
var _value9;
|
|
6414
6469
|
const {
|
|
6415
6470
|
checked: checked
|
|
@@ -6496,7 +6551,7 @@ function $0ae614c5c7babb43$var$batching_filter_state_syncer(props) {
|
|
|
6496
6551
|
existing_filter_: existing_filter_
|
|
6497
6552
|
} = props;
|
|
6498
6553
|
let sync_queued = false;
|
|
6499
|
-
const sync_fn = $b8hua$
|
|
6554
|
+
const sync_fn = $b8hua$catchify1(async () => {
|
|
6500
6555
|
sync_queued = false;
|
|
6501
6556
|
// if we change, update filter state - next microtask, so that "reactions" to the change can process before we send it off to the API
|
|
6502
6557
|
const set_filter = existing_filter_();
|
|
@@ -6520,7 +6575,7 @@ function $0ae614c5c7babb43$var$batching_filter_state_syncer(props) {
|
|
|
6520
6575
|
...base_object,
|
|
6521
6576
|
data: data
|
|
6522
6577
|
};
|
|
6523
|
-
$b8hua$
|
|
6578
|
+
$b8hua$dlog1("CheckboxHierarchicalFilter: Updating API state", filter_object);
|
|
6524
6579
|
const selected_filters = [...selected_filters_[0]()];
|
|
6525
6580
|
if (set_filter) selected_filters.splice(selected_filters.indexOf(set_filter), 1);
|
|
6526
6581
|
if (filter_object.data.length) selected_filters.push(filter_object);
|
|
@@ -6558,13 +6613,13 @@ function $0ae614c5c7babb43$var$create_updating_signal(_ref3) {
|
|
|
6558
6613
|
$b8hua$createComputed($b8hua$on(read_checked, trigger_sync_, {
|
|
6559
6614
|
defer: true
|
|
6560
6615
|
}));
|
|
6561
|
-
$b8hua$createComputed($b8hua$on(read_checked, $b8hua$
|
|
6616
|
+
$b8hua$createComputed($b8hua$on(read_checked, $b8hua$catchify1(new_value => {
|
|
6562
6617
|
if (updating_blocked) return;
|
|
6563
6618
|
for (const child of child_objects) child.is_checked_[1](new_value);
|
|
6564
6619
|
}), {
|
|
6565
6620
|
defer: true
|
|
6566
6621
|
}));
|
|
6567
|
-
$b8hua$createEffect($b8hua$on(get_child_object_values, $b8hua$
|
|
6622
|
+
$b8hua$createEffect($b8hua$on(get_child_object_values, $b8hua$catchify1(() => {
|
|
6568
6623
|
const all_kids_checked = get_child_object_values.every(accessor => accessor());
|
|
6569
6624
|
if (all_kids_checked === read_checked()) return;
|
|
6570
6625
|
updating_blocked = true;
|
|
@@ -7016,7 +7071,7 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
|
7016
7071
|
}) : []);
|
|
7017
7072
|
});
|
|
7018
7073
|
$b8hua$onCleanup(() => set_view_more_button_below_group_());
|
|
7019
|
-
$b8hua$createEffect($b8hua$
|
|
7074
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
7020
7075
|
if (!togglable_rest()) {
|
|
7021
7076
|
await collapse();
|
|
7022
7077
|
set_having_expanding_in_dom(false); // Once animation has finished, remove expanding from DOM
|
|
@@ -7710,14 +7765,14 @@ async function $50aebf5b445518eb$export$58e808b1db15d3bc(options) {
|
|
|
7710
7765
|
headers: headers
|
|
7711
7766
|
} : {}),
|
|
7712
7767
|
method: "POST"
|
|
7713
|
-
}).catch(e => $b8hua$
|
|
7768
|
+
}).catch(e => $b8hua$dlog1("fetch_retry threw", e)).then(async maybe_response => {
|
|
7714
7769
|
var _decoded;
|
|
7715
7770
|
if (!maybe_response) return [];
|
|
7716
7771
|
let decoded;
|
|
7717
7772
|
try {
|
|
7718
7773
|
decoded = await maybe_response.json();
|
|
7719
7774
|
} catch (e) {
|
|
7720
|
-
$b8hua$
|
|
7775
|
+
$b8hua$dlog1("Failed to decode JSON", e);
|
|
7721
7776
|
}
|
|
7722
7777
|
return ((_decoded = decoded) === null || _decoded === void 0 ? void 0 : _decoded.displays) || [];
|
|
7723
7778
|
});
|
|
@@ -7762,7 +7817,7 @@ const $702d7656a373973e$export$824dde41348efed1 = /*@__PURE__*/(() => {
|
|
|
7762
7817
|
|
|
7763
7818
|
const observe_to_signal = (element, setter) => {
|
|
7764
7819
|
const computed_style = getComputedStyle(element);
|
|
7765
|
-
const resize_observer = new ResizeObserver($b8hua$
|
|
7820
|
+
const resize_observer = new ResizeObserver($b8hua$catchify1(() => {
|
|
7766
7821
|
setter(element.getBoundingClientRect().width + parseFloat(computed_style.marginLeft) + parseFloat(computed_style.marginRight) + parseFloat(computed_style.borderRightWidth) + parseFloat(computed_style.borderLeftWidth));
|
|
7767
7822
|
}));
|
|
7768
7823
|
resize_observer.observe(element);
|
|
@@ -7817,7 +7872,7 @@ async function $160ea2b55d8772d2$export$c1a6b039e689a58e(merchant, market, local
|
|
|
7817
7872
|
const in_ls = localStorage[localstorage_key];
|
|
7818
7873
|
if (in_ls) localstorage_value = JSON.parse(in_ls);
|
|
7819
7874
|
} catch (e) {
|
|
7820
|
-
$b8hua$
|
|
7875
|
+
$b8hua$dlog1("Failed parsing JSON from localStorage", e);
|
|
7821
7876
|
}
|
|
7822
7877
|
const updated = (_localstorage_value = localstorage_value) === null || _localstorage_value === void 0 ? void 0 : _localstorage_value.updated;
|
|
7823
7878
|
const now = +new Date();
|
|
@@ -7861,12 +7916,12 @@ async function $160ea2b55d8772d2$var$download_categories(merchant, market, local
|
|
|
7861
7916
|
if (!fetched) return [];
|
|
7862
7917
|
try {
|
|
7863
7918
|
if (fetched.status !== 200) {
|
|
7864
|
-
$b8hua$
|
|
7919
|
+
$b8hua$dlog1("failed to fetch queries, server responded with", fetched.status, fetched, await fetched.text());
|
|
7865
7920
|
return [];
|
|
7866
7921
|
}
|
|
7867
7922
|
return await fetched.json();
|
|
7868
7923
|
} catch (e) {
|
|
7869
|
-
$b8hua$
|
|
7924
|
+
$b8hua$dlog1("failed to decode queries json", fetched, e);
|
|
7870
7925
|
return [];
|
|
7871
7926
|
}
|
|
7872
7927
|
}
|
|
@@ -8172,9 +8227,9 @@ function $284849364a6ef73a$var$_get_cache_obj_for_endpoint2(endpoint) {
|
|
|
8172
8227
|
return (_classPrivateFieldGet4 = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_cache_objs))[endpoint] || (_classPrivateFieldGet4[endpoint] = {
|
|
8173
8228
|
in_progress_: {},
|
|
8174
8229
|
cache_: {},
|
|
8175
|
-
finalization_registry_: $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_supports_finalization_registry) ? new FinalizationRegistry($b8hua$
|
|
8230
|
+
finalization_registry_: $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_supports_finalization_registry) ? new FinalizationRegistry($b8hua$catchify1(key => {
|
|
8176
8231
|
const our_cache = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_cache_objs)[endpoint].cache_;
|
|
8177
|
-
$b8hua$
|
|
8232
|
+
$b8hua$dlog1("[Search API]: removing", key, "from", our_cache);
|
|
8178
8233
|
delete our_cache[key];
|
|
8179
8234
|
})) : undefined
|
|
8180
8235
|
});
|
|
@@ -8311,11 +8366,11 @@ async function $284849364a6ef73a$var$_cached_request2(_ref4) {
|
|
|
8311
8366
|
result = $ed0fefda39a0f15d$export$967e966fca9515e(result);
|
|
8312
8367
|
cache_obj.cache_[body] = new WeakRef(result);
|
|
8313
8368
|
resolve_in_progress(result);
|
|
8314
|
-
setTimeout($b8hua$
|
|
8369
|
+
setTimeout($b8hua$catchify1(() => {
|
|
8315
8370
|
if ($b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_supports_finalization_registry)) cache_obj.finalization_registry_.register(result, body); // delete key from cache when value (WeakRefs) are collected
|
|
8316
8371
|
else
|
|
8317
8372
|
// delete things from cache after 5 minutes, so it doesn't get too heavy
|
|
8318
|
-
setTimeout($b8hua$
|
|
8373
|
+
setTimeout($b8hua$catchify1(() => delete cache_obj.cache_[body]), 300000);
|
|
8319
8374
|
}), 60000 // cache values for at least 60 seconds
|
|
8320
8375
|
);
|
|
8321
8376
|
|
|
@@ -8347,7 +8402,7 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
|
|
|
8347
8402
|
const [get_selected_filters_, set_selected_filters] = selected_filters_;
|
|
8348
8403
|
const [get_has_sideways_filter_clearing_flag_, set_has_sideways_filter_clearing_flag] = sideways_filter_clearing_flag_;
|
|
8349
8404
|
const [get_current_href, set_current_href] = $b8hua$createSignal((_globalThis$location$ = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$location = globalThis.location) === null || _globalThis$location === void 0 ? void 0 : _globalThis$location.href) !== null && _globalThis$location$ !== void 0 ? _globalThis$location$ : "https://example.com");
|
|
8350
|
-
const history_change_handler = $b8hua$
|
|
8405
|
+
const history_change_handler = $b8hua$catchify1(() => set_current_href(location.href));
|
|
8351
8406
|
const owner = $b8hua$getOwner() || $b8hua$createRoot(() => $b8hua$getOwner());
|
|
8352
8407
|
const {
|
|
8353
8408
|
sorting_query_param_: sorting_query_param_,
|
|
@@ -8394,7 +8449,7 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
|
|
|
8394
8449
|
if (override_listing_id_query_param_names_) {
|
|
8395
8450
|
const found_override_listing_id = override_listing_id_query_param_names_.map(n => searchParams.get(n)).find(n => n);
|
|
8396
8451
|
set_override_listing_id(found_override_listing_id || null);
|
|
8397
|
-
if (found_override_listing_id) $b8hua$
|
|
8452
|
+
if (found_override_listing_id) $b8hua$dlog1("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
|
|
8398
8453
|
}
|
|
8399
8454
|
|
|
8400
8455
|
if (hash === (0, $2855bffe06ef7a03$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
|
|
@@ -8795,13 +8850,13 @@ function $a61a2051e15c8d7a$export$5196e4c01fa56fcb(_ref) {
|
|
|
8795
8850
|
} = _ref;
|
|
8796
8851
|
let close_toast_;
|
|
8797
8852
|
const stay_open_promise = new Promise(r => close_toast_ = r);
|
|
8798
|
-
$b8hua$
|
|
8853
|
+
$b8hua$catchify1(async () => {
|
|
8799
8854
|
const closing_animation_duration = 300; // ms
|
|
8800
8855
|
const element = $b8hua$ssrElement("div", more_attributes, () => $b8hua$escape(children), true);
|
|
8801
8856
|
const [, set_is_showing_toast] = $a61a2051e15c8d7a$export$22970a0140fc759c;
|
|
8802
8857
|
// if this is a memory leak the garbage collector is stupid - does someone know?
|
|
8803
|
-
for (const ev of ["pointerover", "focusin"]) element.addEventListener(ev, $b8hua$
|
|
8804
|
-
for (const ev of ["pointerout", "focusout"]) element.addEventListener(ev, $b8hua$
|
|
8858
|
+
for (const ev of ["pointerover", "focusin"]) element.addEventListener(ev, $b8hua$catchify1(() => closing_animation.pause()));
|
|
8859
|
+
for (const ev of ["pointerout", "focusout"]) element.addEventListener(ev, $b8hua$catchify1(() => closing_animation.play()));
|
|
8805
8860
|
const body = await (0, $b8hua$observer).wait_for_element("body");
|
|
8806
8861
|
const x_translate = "translateX(-50%) ";
|
|
8807
8862
|
let remove_keyboard_listener;
|
|
@@ -8826,7 +8881,7 @@ function $a61a2051e15c8d7a$export$5196e4c01fa56fcb(_ref) {
|
|
|
8826
8881
|
// let other toasts close us if they open while we're still here
|
|
8827
8882
|
$a61a2051e15c8d7a$var$closing_functions.add(close_toast_);
|
|
8828
8883
|
set_is_showing_toast(true);
|
|
8829
|
-
const handler = $b8hua$
|
|
8884
|
+
const handler = $b8hua$catchify1(_ref2 => {
|
|
8830
8885
|
let {
|
|
8831
8886
|
key: key
|
|
8832
8887
|
} = _ref2;
|
|
@@ -8961,7 +9016,7 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
|
|
|
8961
9016
|
}, {
|
|
8962
9017
|
defer: true
|
|
8963
9018
|
}));
|
|
8964
|
-
$b8hua$createComputed($b8hua$on(get_search_query_, $b8hua$
|
|
9019
|
+
$b8hua$createComputed($b8hua$on(get_search_query_, $b8hua$catchify1(() => {
|
|
8965
9020
|
// when a query was submitted, clear filters if clear was pressed before
|
|
8966
9021
|
const clear_value = $b8hua$untrack(get_clear_filters_next_submit);
|
|
8967
9022
|
if (clear_value) {
|
|
@@ -8988,11 +9043,11 @@ function $07d90b8270ece8de$export$84bba84a7b837187(read_search_query) {
|
|
|
8988
9043
|
const key = "depict_searches";
|
|
8989
9044
|
const previous_searches = $b8hua$createSignal(JSON.parse(ls[key] || "[]"));
|
|
8990
9045
|
const [read_previous_searches, write_previous_searches] = previous_searches;
|
|
8991
|
-
$b8hua$createEffect($b8hua$
|
|
9046
|
+
$b8hua$createEffect($b8hua$catchify1(() => {
|
|
8992
9047
|
const json_encoded = JSON.stringify(read_previous_searches());
|
|
8993
9048
|
if (ls[key] !== json_encoded) ls[key] = json_encoded;
|
|
8994
9049
|
}));
|
|
8995
|
-
$b8hua$createComputed($b8hua$
|
|
9050
|
+
$b8hua$createComputed($b8hua$catchify1(() => {
|
|
8996
9051
|
const searches = $b8hua$untrack(read_previous_searches);
|
|
8997
9052
|
const current_query = read_search_query();
|
|
8998
9053
|
if (!current_query)
|
|
@@ -9038,7 +9093,7 @@ async function $86b0ff0c85e5fc6c$export$e16630ecb9644a1c(_ref) {
|
|
|
9038
9093
|
function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
|
|
9039
9094
|
let passive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
9040
9095
|
let override_element = arguments.length > 2 ? arguments[2] : undefined;
|
|
9041
|
-
const catchified_handler = $b8hua$
|
|
9096
|
+
const catchified_handler = $b8hua$catchify1(handler);
|
|
9042
9097
|
const owner = $b8hua$getOwner();
|
|
9043
9098
|
// Some customers (e.g. equestrian) have `height: 100%` and/or `overflow-x: hidden` on the body, which means that scroll events won't get dispatched on `window`. The pages who get it on <body> won't get it on `window` and vice-versa, so there shouldn't be a worry about duplicate calling of the handler.
|
|
9044
9099
|
// Use observer in case that this gets called before body exists
|
|
@@ -9083,7 +9138,7 @@ function $96d57a48e7bce64f$export$181cceed5c91919e(callback, alsoRaF, passiveLis
|
|
|
9083
9138
|
$b8hua$createEffect(() => {
|
|
9084
9139
|
if (alsoRaF !== null && alsoRaF !== void 0 && alsoRaF()) {
|
|
9085
9140
|
let disposed = false;
|
|
9086
|
-
const fn = $b8hua$
|
|
9141
|
+
const fn = $b8hua$catchify1(() => {
|
|
9087
9142
|
if (disposed) return;
|
|
9088
9143
|
probablyCallCallback();
|
|
9089
9144
|
requestAnimationFrame(fn);
|
|
@@ -9096,10 +9151,10 @@ function $96d57a48e7bce64f$export$181cceed5c91919e(callback, alsoRaF, passiveLis
|
|
|
9096
9151
|
// "resize" doesn't fire sometimes when it should, also it doesn't when showing/hiding scrollbars which disabling scrolling does
|
|
9097
9152
|
// this works
|
|
9098
9153
|
// keeping resize just in case
|
|
9099
|
-
const resize_resize_observer = new ResizeObserver($b8hua$
|
|
9154
|
+
const resize_resize_observer = new ResizeObserver($b8hua$catchify1(probablyCallCallback));
|
|
9100
9155
|
resize_resize_observer.observe(document.documentElement);
|
|
9101
9156
|
(0, $b8hua$observer).wait_for_element("body").then(resize_resize_observer.observe.bind(resize_resize_observer));
|
|
9102
|
-
$b8hua$onCleanup($b8hua$
|
|
9157
|
+
$b8hua$onCleanup($b8hua$catchify1(() => resize_resize_observer.disconnect()));
|
|
9103
9158
|
return probablyCallCallback;
|
|
9104
9159
|
}
|
|
9105
9160
|
const $1308a7816c3d4f2d$export$3f238c96c45e6cc6 = 1;
|
|
@@ -9132,7 +9187,7 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(_ref, input_field, alignment,
|
|
|
9132
9187
|
}, pollAlignment);
|
|
9133
9188
|
let ro;
|
|
9134
9189
|
if (alignment & $1308a7816c3d4f2d$export$902f8b4a7dae5d78 || alignment & $1308a7816c3d4f2d$export$5097308c5200105a) {
|
|
9135
|
-
ro = new ResizeObserver($b8hua$
|
|
9190
|
+
ro = new ResizeObserver($b8hua$catchify1(records => {
|
|
9136
9191
|
records.forEach(_ref2 => {
|
|
9137
9192
|
let {
|
|
9138
9193
|
contentRect: {
|
|
@@ -9156,7 +9211,7 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(_ref, input_field, alignment,
|
|
|
9156
9211
|
}));
|
|
9157
9212
|
ro.observe(input_field);
|
|
9158
9213
|
}
|
|
9159
|
-
$b8hua$onCleanup($b8hua$
|
|
9214
|
+
$b8hua$onCleanup($b8hua$catchify1(() => {
|
|
9160
9215
|
var _ro;
|
|
9161
9216
|
return (_ro = ro) === null || _ro === void 0 ? void 0 : _ro.disconnect();
|
|
9162
9217
|
}));
|
|
@@ -9371,7 +9426,7 @@ function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
|
|
|
9371
9426
|
fill: "forwards",
|
|
9372
9427
|
easing: "ease-in-out"
|
|
9373
9428
|
});
|
|
9374
|
-
animation.addEventListener("finish", $b8hua$
|
|
9429
|
+
animation.addEventListener("finish", $b8hua$catchify1(() => {
|
|
9375
9430
|
if (unpermit_when_possible) set_permitted_to_show(false);
|
|
9376
9431
|
animation = undefined;
|
|
9377
9432
|
element.style.display = "none";
|
|
@@ -9439,7 +9494,7 @@ function $6d2962bc9370f884$export$5e4aed86c12acdd9(_ref) {
|
|
|
9439
9494
|
is_first_load = true;
|
|
9440
9495
|
});
|
|
9441
9496
|
// percentage_in_view_ has equals: false so it should update even when set to the same value. That is to make sure that if the user bounces around below the "viewport" of our product listing we still start fetching as soon as is_loading_more becomes false again and we get IntersectionObserverEntries
|
|
9442
|
-
$b8hua$createEffect($b8hua$
|
|
9497
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
9443
9498
|
const be_above_percentage = is_first_load ? 50 : 75; // if first load, load earlier
|
|
9444
9499
|
if (percentage_in_view_() < be_above_percentage || is_loading_more) return;
|
|
9445
9500
|
if (!get_last_cursor()) {
|
|
@@ -10162,7 +10217,7 @@ function $69602b3d8fd54c38$export$9dd50d35b9d94fdf(_ref) {
|
|
|
10162
10217
|
number_of_results_: number_of_results_,
|
|
10163
10218
|
type: type
|
|
10164
10219
|
} = _ref;
|
|
10165
|
-
const contents = $b8hua$createMemo($b8hua$
|
|
10220
|
+
const contents = $b8hua$createMemo($b8hua$catchify1(() => {
|
|
10166
10221
|
const q = get_search_query_();
|
|
10167
10222
|
return i18n_[type === $69602b3d8fd54c38$export$2452208c79fe93ea.content ? "get_showing_pages_for_" : "get_showing_results_for_"]()($b8hua$ssr($69602b3d8fd54c38$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(q)), $b8hua$ssr($69602b3d8fd54c38$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(formatted_number_of_results_())), !!q, number_of_results_());
|
|
10168
10223
|
}));
|
|
@@ -10326,7 +10381,7 @@ function $082c4ed3e22f8d71$export$9bf11afa910f536e(_ref) {
|
|
|
10326
10381
|
set_search_sorting_open(true);
|
|
10327
10382
|
}
|
|
10328
10383
|
});
|
|
10329
|
-
$b8hua$onCleanup($b8hua$
|
|
10384
|
+
$b8hua$onCleanup($b8hua$catchify1(() => {
|
|
10330
10385
|
if (!sorting_expanded() && !filters_expanded()) {
|
|
10331
10386
|
set_search_filters_open(false);
|
|
10332
10387
|
set_search_sorting_open(false);
|
|
@@ -10438,7 +10493,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10438
10493
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
10439
10494
|
const [get_current_sorting_] = current_sorting_;
|
|
10440
10495
|
const [is_small, set_is_small] = $b8hua$createSignal(false);
|
|
10441
|
-
const dismiss_modal_ = $b8hua$
|
|
10496
|
+
const dismiss_modal_ = $b8hua$catchify1(() => {
|
|
10442
10497
|
set_filters_open(false);
|
|
10443
10498
|
set_sorting_open(false);
|
|
10444
10499
|
});
|
|
@@ -10539,7 +10594,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10539
10594
|
}));else set_extra_els_in_results_container_($b8hua$ssr($7396052a1484264f$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $cfdbd124dd09d713$export$1f1775a58da589b5), sorting_options))));
|
|
10540
10595
|
}
|
|
10541
10596
|
});
|
|
10542
|
-
$b8hua$
|
|
10597
|
+
$b8hua$catchify1(async () => {
|
|
10543
10598
|
({
|
|
10544
10599
|
open_modal_: open_modal_,
|
|
10545
10600
|
close_modal_: close_modal_
|
|
@@ -10717,7 +10772,7 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
10717
10772
|
}
|
|
10718
10773
|
old_pos = new_pos;
|
|
10719
10774
|
});
|
|
10720
|
-
const touchstart_handler = $b8hua$
|
|
10775
|
+
const touchstart_handler = $b8hua$catchify1(e => {
|
|
10721
10776
|
is_in_touch_scroll = true;
|
|
10722
10777
|
if (e.touches.length === 1) {
|
|
10723
10778
|
// we had no touches but then we got some. Adding a new touch cancels the inertia. We are in a new touch so do reset the diff
|
|
@@ -10725,12 +10780,12 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
10725
10780
|
diff_over_second_or_touch = 0;
|
|
10726
10781
|
}
|
|
10727
10782
|
});
|
|
10728
|
-
const touchend_handler = $b8hua$
|
|
10783
|
+
const touchend_handler = $b8hua$catchify1(e => {
|
|
10729
10784
|
if (e.touches.length === 0)
|
|
10730
10785
|
// scroll gesture of any type (pinch can also be used as scroll, etc.) ended
|
|
10731
10786
|
inertia_timeout = setTimeout(
|
|
10732
10787
|
// inertia ends after 500ms (educated guess)
|
|
10733
|
-
$b8hua$
|
|
10788
|
+
$b8hua$catchify1(() => {
|
|
10734
10789
|
is_in_touch_scroll = false;
|
|
10735
10790
|
diff_over_second_or_touch = 0;
|
|
10736
10791
|
}), 500);
|
|
@@ -10748,9 +10803,9 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
10748
10803
|
const everything_closed = !get_search_filters_open_() && !get_search_sorting_open_();
|
|
10749
10804
|
if (!$b8hua$untrack(modal_is_closed) && everything_closed)
|
|
10750
10805
|
// I think the point of this is to delay the animation a bit IIRC
|
|
10751
|
-
timeout = setTimeout($b8hua$
|
|
10806
|
+
timeout = setTimeout($b8hua$catchify1(() => set_if_modal_is_closed(true)), 200);else set_if_modal_is_closed(everything_closed);
|
|
10752
10807
|
});
|
|
10753
|
-
$b8hua$createComputed($b8hua$
|
|
10808
|
+
$b8hua$createComputed($b8hua$catchify1(async () => {
|
|
10754
10809
|
const element = sort_and_filter_element_();
|
|
10755
10810
|
if (!element) return;
|
|
10756
10811
|
await (0, $b8hua$observer).wait_for_element(element);
|
|
@@ -10769,7 +10824,7 @@ function $ec225bf1f1627ea8$export$210f130a61ac1e8d(fn) {
|
|
|
10769
10824
|
let last_queued;
|
|
10770
10825
|
let last_value;
|
|
10771
10826
|
let initial_run = true;
|
|
10772
|
-
$b8hua$createComputed($b8hua$
|
|
10827
|
+
$b8hua$createComputed($b8hua$catchify1(async () => {
|
|
10773
10828
|
last_value = fn();
|
|
10774
10829
|
if (initial_run) {
|
|
10775
10830
|
initial_run = false;
|
|
@@ -10817,7 +10872,7 @@ function $5e6abec0dab4e610$export$6e49da55e449af7c(_ref) {
|
|
|
10817
10872
|
}]); // get rid of old data the browser saves the old state and will restore it later on
|
|
10818
10873
|
};
|
|
10819
10874
|
|
|
10820
|
-
$b8hua$createComputed($b8hua$
|
|
10875
|
+
$b8hua$createComputed($b8hua$catchify1(() => {
|
|
10821
10876
|
const last_result = get_last_result_in_viewport_();
|
|
10822
10877
|
if (last_result == undefined || last_result <= 0 || last_result == Infinity) return;
|
|
10823
10878
|
if (isNaN(last_result)) {
|
|
@@ -10844,7 +10899,7 @@ function $5e6abec0dab4e610$export$6e49da55e449af7c(_ref) {
|
|
|
10844
10899
|
set_to_later = last_result;
|
|
10845
10900
|
// If a delayed push timeout is already running, just changing the value that will be pushed is sufficient
|
|
10846
10901
|
if (timeout) return;
|
|
10847
|
-
timeout = setTimeout($b8hua$
|
|
10902
|
+
timeout = setTimeout($b8hua$catchify1(() => {
|
|
10848
10903
|
timeout = undefined;
|
|
10849
10904
|
last_time_history_changed = +new Date();
|
|
10850
10905
|
set_min_results_loaded(set_to_later);
|
|
@@ -10955,7 +11010,7 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
|
10955
11010
|
if (!result) return;
|
|
10956
11011
|
return {
|
|
10957
11012
|
href: result.page_url,
|
|
10958
|
-
onClick: $b8hua$
|
|
11013
|
+
onClick: $b8hua$catchify1(ev => router_.navigate_.go_to_({
|
|
10959
11014
|
new_url_: result.page_url,
|
|
10960
11015
|
is_replace_: false,
|
|
10961
11016
|
event_: ev
|
|
@@ -11339,7 +11394,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
11339
11394
|
// We might only have changed the left position which align_field doesn't know about, make it poll the position for a while
|
|
11340
11395
|
setPollAlignment_(true);
|
|
11341
11396
|
if (disableResizePollingTimeout) clearTimeout(disableResizePollingTimeout);
|
|
11342
|
-
disableResizePollingTimeout = setTimeout($b8hua$
|
|
11397
|
+
disableResizePollingTimeout = setTimeout($b8hua$catchify1(() => {
|
|
11343
11398
|
setPollAlignment_(false);
|
|
11344
11399
|
disableResizePollingTimeout = undefined;
|
|
11345
11400
|
}), 1000);
|
|
@@ -11472,7 +11527,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11472
11527
|
} : {})
|
|
11473
11528
|
};
|
|
11474
11529
|
});
|
|
11475
|
-
const [search_results_] = $b8hua$createResource(search_query_base_, $b8hua$
|
|
11530
|
+
const [search_results_] = $b8hua$createResource(search_query_base_, $b8hua$catchify1(async base_query => {
|
|
11476
11531
|
set_all_products_loaded(false);
|
|
11477
11532
|
// only first page of results
|
|
11478
11533
|
return await $5e6abec0dab4e610$export$cc42dd29bf655ab6({
|
|
@@ -11520,7 +11575,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11520
11575
|
const [, setModalFieldStyle] = modal_field_style;
|
|
11521
11576
|
const [, setModalBackdropStyle] = modal_backdrop_style;
|
|
11522
11577
|
const [get_search_field_elements, set_search_field_elements] = $b8hua$createSignal();
|
|
11523
|
-
const SafeSearchField = $b8hua$
|
|
11578
|
+
const SafeSearchField = $b8hua$catchify1((0, $584c06c09cf4609d$export$b94867ecbd698f21));
|
|
11524
11579
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = $b8hua$createSignal(false);
|
|
11525
11580
|
const [desktop_filter_elements_, set_desktop_filter_elements] = $b8hua$createSignal();
|
|
11526
11581
|
const n_hits = $b8hua$createMemo(() => {
|
|
@@ -11580,7 +11635,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11580
11635
|
$b8hua$runWithOwner(owner, () => results_filters[1](matches ? [results_for, filters_opener] : $b8hua$ssr($da279c5a540c6846$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(results_for), $b8hua$escape(filters_opener))));
|
|
11581
11636
|
}).remove);
|
|
11582
11637
|
$3a2bed57c9a57e21$export$d31a1a1a83ad9413(search_results_, selected_filters_);
|
|
11583
|
-
$b8hua$
|
|
11638
|
+
$b8hua$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
11584
11639
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
11585
11640
|
last_result_in_viewport_: last_result_in_viewport_,
|
|
11586
11641
|
id_: get_search_query_,
|
|
@@ -11626,8 +11681,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11626
11681
|
setModalBodyStyle({});
|
|
11627
11682
|
modalAlignmentSignalsRef_ === null || modalAlignmentSignalsRef_ === void 0 || modalAlignmentSignalsRef_(alignmentSignals_);
|
|
11628
11683
|
const [pollAlignment, setPollAlignment_] = $b8hua$createSignal(false);
|
|
11629
|
-
const align_position = $b8hua$
|
|
11630
|
-
div_with_field_class.addEventListener("click", $b8hua$
|
|
11684
|
+
const align_position = $b8hua$catchify1((0, $1308a7816c3d4f2d$export$b3ad617e9036868))(alignmentSignals_, search_field, (0, $1308a7816c3d4f2d$export$3f238c96c45e6cc6) | (0, $1308a7816c3d4f2d$export$7895aadd1956b1c7) | (modalVersionUsed_ === 1 ? (0, $1308a7816c3d4f2d$export$902f8b4a7dae5d78) : (0, $1308a7816c3d4f2d$export$6060bc6bee850eb6) | (0, $1308a7816c3d4f2d$export$5097308c5200105a)), true, pollAlignment);
|
|
11685
|
+
div_with_field_class.addEventListener("click", $b8hua$catchify1(e => {
|
|
11631
11686
|
var _target$matches, _target$closest, _on_open_, _ref4;
|
|
11632
11687
|
const target = e.target;
|
|
11633
11688
|
const sel = ".submit";
|
|
@@ -12034,7 +12089,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
12034
12089
|
BackIcon_: BackIcon_
|
|
12035
12090
|
});
|
|
12036
12091
|
$68e6625c8d51f847$export$5162a71f252e6122();
|
|
12037
|
-
$b8hua$
|
|
12092
|
+
$b8hua$catchify1(async () => {
|
|
12038
12093
|
const {
|
|
12039
12094
|
open_modal_: open_modal_,
|
|
12040
12095
|
close_modal_: close_modal_
|
|
@@ -12298,7 +12353,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
12298
12353
|
function $37e8c97bb6876197$export$828dcdd425fd3231(aligner) {
|
|
12299
12354
|
const style_element = document.createElement("style");
|
|
12300
12355
|
document.head.append(style_element);
|
|
12301
|
-
const resize_observer = new ResizeObserver($b8hua$
|
|
12356
|
+
const resize_observer = new ResizeObserver($b8hua$catchify1(() => {
|
|
12302
12357
|
const styles = $cc64aabf2c7a1f1a$export$1233ca167bf71f9a({
|
|
12303
12358
|
".depict.plp .depict-search-modal .search-field": {
|
|
12304
12359
|
"height": "".concat(aligner === null || aligner === void 0 ? void 0 : aligner.clientHeight, "px")
|
|
@@ -12369,7 +12424,7 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
12369
12424
|
}, dispose_aligner];
|
|
12370
12425
|
};
|
|
12371
12426
|
function $573c007c697a1831$export$d0596b5cae35ad4(open_search) {
|
|
12372
|
-
const handler = $b8hua$
|
|
12427
|
+
const handler = $b8hua$catchify1(e => {
|
|
12373
12428
|
const {
|
|
12374
12429
|
key: key,
|
|
12375
12430
|
target: target
|
|
@@ -12388,7 +12443,7 @@ function $573c007c697a1831$export$d0596b5cae35ad4(open_search) {
|
|
|
12388
12443
|
function $e60a76195ac6d408$export$689e204eadb33baf(pr) {
|
|
12389
12444
|
let old_url;
|
|
12390
12445
|
let disconnect_link_observer;
|
|
12391
|
-
const link_handler = $b8hua$
|
|
12446
|
+
const link_handler = $b8hua$catchify1(e => {
|
|
12392
12447
|
const link = e.currentTarget || e.target;
|
|
12393
12448
|
if (link.href === old_url) {
|
|
12394
12449
|
history.pushState(history.state, "", link.href);
|
|
@@ -12397,7 +12452,7 @@ function $e60a76195ac6d408$export$689e204eadb33baf(pr) {
|
|
|
12397
12452
|
});
|
|
12398
12453
|
let remove_added_listeners;
|
|
12399
12454
|
let resolve_remove_added_listeners;
|
|
12400
|
-
pr.addEventListener("open", $b8hua$
|
|
12455
|
+
pr.addEventListener("open", $b8hua$catchify1(() => {
|
|
12401
12456
|
remove_added_listeners = new Promise(r => resolve_remove_added_listeners = r);
|
|
12402
12457
|
disconnect_link_observer = (0, $b8hua$observer).onexists("a", async _ref => {
|
|
12403
12458
|
let {
|
|
@@ -12408,12 +12463,12 @@ function $e60a76195ac6d408$export$689e204eadb33baf(pr) {
|
|
|
12408
12463
|
element.removeEventListener("click", link_handler);
|
|
12409
12464
|
});
|
|
12410
12465
|
}));
|
|
12411
|
-
pr.addEventListener("close", $b8hua$
|
|
12466
|
+
pr.addEventListener("close", $b8hua$catchify1(() => {
|
|
12412
12467
|
var _disconnect_link_obse, _resolve_remove_added;
|
|
12413
12468
|
(_disconnect_link_obse = disconnect_link_observer) === null || _disconnect_link_obse === void 0 || _disconnect_link_obse();
|
|
12414
12469
|
(_resolve_remove_added = resolve_remove_added_listeners) === null || _resolve_remove_added === void 0 || _resolve_remove_added();
|
|
12415
12470
|
}));
|
|
12416
|
-
$b8hua$
|
|
12471
|
+
$b8hua$catchify1(async () => {
|
|
12417
12472
|
for await (const href of (0, $b8hua$href_change_ipns)) if (!pr.is_page_(new URL(href))) old_url = href;
|
|
12418
12473
|
})();
|
|
12419
12474
|
}
|
|
@@ -12511,7 +12566,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
12511
12566
|
});
|
|
12512
12567
|
$f9fd3017c20b774a$var$_classPrivateFieldInitSpec(this, $f9fd3017c20b774a$var$_unload, {
|
|
12513
12568
|
writable: true,
|
|
12514
|
-
value: /*@__PURE__*/$b8hua$
|
|
12569
|
+
value: /*@__PURE__*/$b8hua$catchify1(() => {
|
|
12515
12570
|
var _classPrivateFieldGet3;
|
|
12516
12571
|
if (!$b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_is_open)) return;
|
|
12517
12572
|
(_classPrivateFieldGet3 = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_disconnect_observer)) === null || _classPrivateFieldGet3 === void 0 || _classPrivateFieldGet3.call(this);
|
|
@@ -12525,7 +12580,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
12525
12580
|
});
|
|
12526
12581
|
$f9fd3017c20b774a$var$_classPrivateFieldInitSpec(this, $f9fd3017c20b774a$var$_load, {
|
|
12527
12582
|
writable: true,
|
|
12528
|
-
value: /*@__PURE__*/$b8hua$
|
|
12583
|
+
value: /*@__PURE__*/$b8hua$catchify1(async els => {
|
|
12529
12584
|
$b8hua$babelruntimehelpersclassPrivateFieldSet(this, $f9fd3017c20b774a$var$_is_open, true);
|
|
12530
12585
|
// So that #load doesn't get called again
|
|
12531
12586
|
let set_should_stay_inserted;
|
|
@@ -12589,7 +12644,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
12589
12644
|
async function $f9fd3017c20b774a$var$_listen2() {
|
|
12590
12645
|
const [exit_ipns, exitable_ipns] = $b8hua$make_asyncIterable_exiter((0, $b8hua$href_change_ipns));
|
|
12591
12646
|
$b8hua$babelruntimehelpersclassPrivateFieldSet(this, $f9fd3017c20b774a$var$_stop_listening, exit_ipns);
|
|
12592
|
-
const caught_page_check_fn = $b8hua$
|
|
12647
|
+
const caught_page_check_fn = $b8hua$catchify1(this.is_page_, "page check failed");
|
|
12593
12648
|
for await (const href of exitable_ipns) {
|
|
12594
12649
|
const url = new URL(href);
|
|
12595
12650
|
if (!caught_page_check_fn(url)) {
|
|
@@ -12607,12 +12662,12 @@ function $f9fd3017c20b774a$var$_get_rendered_recs2() {
|
|
|
12607
12662
|
this.addEventListener("close", dispose, {
|
|
12608
12663
|
once: true
|
|
12609
12664
|
});
|
|
12610
|
-
return $b8hua$
|
|
12665
|
+
return $b8hua$catchify1(this.render_, "rendering failed")() || [];
|
|
12611
12666
|
});
|
|
12612
12667
|
}
|
|
12613
12668
|
function $f9fd3017c20b774a$var$_empty_page_bugfix2() {
|
|
12614
12669
|
// Called when a "page" is "opened" using PageReplacer
|
|
12615
|
-
const on_maybe_popstate = $b8hua$
|
|
12670
|
+
const on_maybe_popstate = $b8hua$catchify1(what_happened => {
|
|
12616
12671
|
if (what_happened !== "popstate") return;
|
|
12617
12672
|
const cleaned_current_url = $f9fd3017c20b774a$var$clean_url(location.href);
|
|
12618
12673
|
if (!$f9fd3017c20b774a$var$_classStaticPrivateFieldSpecGet($f9fd3017c20b774a$export$3ccaa27d81dd8556, $f9fd3017c20b774a$export$3ccaa27d81dd8556, $f9fd3017c20b774a$var$_visited_urls).has(cleaned_current_url)) {
|
|
@@ -12636,7 +12691,7 @@ function $f9fd3017c20b774a$var$_empty_page_bugfix2() {
|
|
|
12636
12691
|
PageReplacer unload itself and reveals the original document - it is expected to be the one under https://ehandel.spendrups.se/Product/1104201, but actually it is the one under /start/search - a white page.
|
|
12637
12692
|
The fix: is to remember all pages that we have visited since the creation of `window` (we do that by having a static property on PageReplacer since we assume the PageReplacer source code will only exist once on the page and will be loaded at page load, the latter assumption might be wrong, but I hope not). If we get a "popstate" event (meaning back or forwards button, not new page being pushed) to an unknown page we reload.
|
|
12638
12693
|
*/
|
|
12639
|
-
$b8hua$
|
|
12694
|
+
$b8hua$dlog1("PageReplacer: ", cleaned_current_url, " hasn't been visited since document was created, reloading since we won't be able to show this page otherwise");
|
|
12640
12695
|
location.reload();
|
|
12641
12696
|
$f9fd3017c20b774a$var$_classStaticPrivateFieldSpecSet($f9fd3017c20b774a$export$3ccaa27d81dd8556, $f9fd3017c20b774a$export$3ccaa27d81dd8556, $f9fd3017c20b774a$var$_reverting_permitted, false); // Disallow any reverting since we can't - it would flash a white page until the reload has finished.
|
|
12642
12697
|
$b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_unload).call(this); // Call unload to "kill" the solid-js stuff quicker so that it stops updating - the user is expecting the next thing that happens to be a navigation to the actual page the URL says they're on.
|
|
@@ -12655,7 +12710,7 @@ var $f9fd3017c20b774a$var$_visited_urls = {
|
|
|
12655
12710
|
writable: true,
|
|
12656
12711
|
value: /*@__PURE__*/(() => {
|
|
12657
12712
|
// Keep track of all URLs that have been visited since the document that was initially loaded (loaded means the process where the browser creates a new `document` and `window` object).
|
|
12658
|
-
$b8hua$
|
|
12713
|
+
$b8hua$catchify1(async () => {
|
|
12659
12714
|
// Static initialization blocks aren't supported in MobileSafari yet, otherwise this would be one.
|
|
12660
12715
|
// I don't think we want to ship a library that users are *forced* to transpile, it should run in the newest version of all major browsers. So we'll just use a function wrapper for now (adding "last 1 ios version" to the build target does a bunch of other unneeded transpilations).
|
|
12661
12716
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks
|
|
@@ -12712,7 +12767,7 @@ function $a3026fb727bc7550$export$316f6f283ae64765(props) {
|
|
|
12712
12767
|
field_: $b8hua$createSignal({}),
|
|
12713
12768
|
backdrop_: backdropAlignmentSignal_
|
|
12714
12769
|
};
|
|
12715
|
-
const defaultHandler = $b8hua$
|
|
12770
|
+
const defaultHandler = $b8hua$catchify1(e => {
|
|
12716
12771
|
const {
|
|
12717
12772
|
modalVersionUsed_: modalVersionUsed_
|
|
12718
12773
|
} = shared_properties;
|
|
@@ -12844,7 +12899,7 @@ function $43fbb365ed0ac99e$export$466cdc317043f6cb(_ref) {
|
|
|
12844
12899
|
$b8hua$createComputed(() => {
|
|
12845
12900
|
var _place_holdey_quickli, _place_holdey_quickli2;
|
|
12846
12901
|
if ((_place_holdey_quickli = place_holdey_quicklinks_data()) !== null && _place_holdey_quickli !== void 0 && (_place_holdey_quickli2 = _place_holdey_quickli[0]) !== null && _place_holdey_quickli2 !== void 0 && _place_holdey_quickli2.listing_id) {
|
|
12847
|
-
if (last_was_placeholder) queueMicrotask($b8hua$
|
|
12902
|
+
if (last_was_placeholder) queueMicrotask($b8hua$catchify1(() => {
|
|
12848
12903
|
var _sliding_element;
|
|
12849
12904
|
(_sliding_element = sliding_element) === null || _sliding_element === void 0 || _sliding_element.scrollTo({
|
|
12850
12905
|
left: 0
|
|
@@ -12913,7 +12968,7 @@ function $43fbb365ed0ac99e$export$466cdc317043f6cb(_ref) {
|
|
|
12913
12968
|
} else if (!(((_intersecting_items_o = intersecting_items_object[selected_index()]) === null || _intersecting_items_o === void 0 ? void 0 : _intersecting_items_o.intersectionRatio) >= 0.95)) {
|
|
12914
12969
|
// negated larger than to handle left side of comparison being undefined
|
|
12915
12970
|
let done_work = false;
|
|
12916
|
-
$b8hua$runWithOwner(owner, () => $b8hua$createComputed($b8hua$
|
|
12971
|
+
$b8hua$runWithOwner(owner, () => $b8hua$createComputed($b8hua$catchify1(() => {
|
|
12917
12972
|
if (done_work || !Array.isArray(quicklinks_data_())) return;
|
|
12918
12973
|
const sel_index = selected_index();
|
|
12919
12974
|
const target_element = sel_index >= 0 ? sel_index : 0;
|
|
@@ -13070,7 +13125,7 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
13070
13125
|
const handler = () => allow_filter_clearing = false;
|
|
13071
13126
|
window.addEventListener("popstate", handler); // popstate only gets called when using back/forwards button of browser or the history navigate to achieve the same, but not on pushState or replaceState
|
|
13072
13127
|
$b8hua$onCleanup(() => window.removeEventListener("popstate", handler));
|
|
13073
|
-
$b8hua$createEffect($b8hua$on(crumb_data_, $b8hua$
|
|
13128
|
+
$b8hua$createEffect($b8hua$on(crumb_data_, $b8hua$catchify1(new_crumb_data => {
|
|
13074
13129
|
const id_of_new_data = id_to_query_for_();
|
|
13075
13130
|
const type_of_id_of_new_data = id_type_();
|
|
13076
13131
|
if (allow_filter_clearing && previous_crumb_data && new_crumb_data && (id_of_new_data !== id_when_we_got_previous_data.id_ || type_of_id_of_new_data !== id_when_we_got_previous_data.type_)) {
|
|
@@ -13124,7 +13179,7 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
13124
13179
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
13125
13180
|
if (!$b8hua$untrack(get_sideways_filter_clearing_flag_)) return;
|
|
13126
13181
|
set_sideways_filter_clearing_flag_(false);
|
|
13127
|
-
$b8hua$
|
|
13182
|
+
$b8hua$dlog1("Flag to clear filters was set, clearing filters");
|
|
13128
13183
|
$b8hua$queueMacroTask(() => {
|
|
13129
13184
|
// Do it next task so that all the filters have time to populate
|
|
13130
13185
|
$b4465d8d605f61e9$export$8895d39404bd2bb1({
|
|
@@ -13216,7 +13271,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13216
13271
|
// Make "Get products in listing" request to get products in listing
|
|
13217
13272
|
const [plp_products_] = $b8hua$createResource(products_query_base_,
|
|
13218
13273
|
// only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
|
|
13219
|
-
$b8hua$
|
|
13274
|
+
$b8hua$catchify(base_query => $5e6abec0dab4e610$export$cc42dd29bf655ab6({
|
|
13220
13275
|
id_: $b8hua$untrack(id_to_query_for_),
|
|
13221
13276
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13222
13277
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
@@ -13236,7 +13291,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13236
13291
|
id_type_: id_type_()
|
|
13237
13292
|
}));
|
|
13238
13293
|
// Make "Get Listing" request to get quicklinks, breadcrumbs, title, etc
|
|
13239
|
-
const [plp_meta] = $b8hua$createResource(meta_query_base, $b8hua$
|
|
13294
|
+
const [plp_meta] = $b8hua$createResource(meta_query_base, $b8hua$catchify(query => depict_api_.get_listing(query)));
|
|
13240
13295
|
const available_sortings_ = $b8hua$createMemo(() => {
|
|
13241
13296
|
var _plp_products_, _plp_products_$sorts;
|
|
13242
13297
|
return (_plp_products_ = plp_products_()) === null || _plp_products_ === void 0 ? void 0 : (_plp_products_$sorts = _plp_products_.sorts) === null || _plp_products_$sorts === void 0 ? void 0 : _plp_products_$sorts.map(sort => {
|
|
@@ -13370,7 +13425,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13370
13425
|
filterModalParent_: filterModalParent_,
|
|
13371
13426
|
...extra_sort_and_filter_args_
|
|
13372
13427
|
});
|
|
13373
|
-
$b8hua$
|
|
13428
|
+
$b8hua$catchify((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
13374
13429
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13375
13430
|
last_result_in_viewport_: last_result_in_viewport_,
|
|
13376
13431
|
id_: id_to_query_for_,
|
|
@@ -13384,7 +13439,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13384
13439
|
$b8hua$createComputed(() => {
|
|
13385
13440
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
13386
13441
|
});
|
|
13387
|
-
$b8hua$createRenderEffect($b8hua$
|
|
13442
|
+
$b8hua$createRenderEffect($b8hua$catchify(async () => {
|
|
13388
13443
|
var _only_show_filters_op;
|
|
13389
13444
|
const slim = is_slim_();
|
|
13390
13445
|
const only_show_filters_opener = (_only_show_filters_op = only_show_filters_opener_) === null || _only_show_filters_op === void 0 ? void 0 : _only_show_filters_op();
|
|
@@ -13639,4 +13694,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
13639
13694
|
}, "Entire CategoryPage failed");
|
|
13640
13695
|
}
|
|
13641
13696
|
$b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
|
|
13642
|
-
export { $a35e6f680c5bbc60$export$54299a3c81f5425 as useVisibilityState, $002f09d00aac50b2$export$eaa625fb39439e37 as useSlidableInformation, $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $618bd53ea0a41cd4$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $
|
|
13697
|
+
export { $715f7f2e53146662$export$d4d96868197be50e as useMobileHover, $a35e6f680c5bbc60$export$54299a3c81f5425 as useVisibilityState, $002f09d00aac50b2$export$eaa625fb39439e37 as useSlidableInformation, $618bd53ea0a41cd4$export$80bb7300ce6a8be3 as useProductCardIsVisible, $618bd53ea0a41cd4$export$f223d69ed12f5fb7 as CurrentlyIntersectingContext, $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $22dd375b476673e2$export$44809a8a3e867e30 as LookCard, $ac571292d606f30b$export$7e1297a3a19f10d8 as PseudoRouter, $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, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $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, $63f1f8dbcd07d3b0$export$445d8d3f5f706a40 as SolidLayoutWithProvidedElement, $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 };
|