@depict-ai/ui 1.4.18 → 1.4.20
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 +73 -7
- package/ES10/index.d.ts +33 -2
- package/ES10/index.js +228 -165
- package/latest/index.cjs +64 -2
- package/latest/index.d.ts +33 -2
- package/latest/index.js +219 -160
- package/package.json +4 -4
- package/server/ES10/index.cjs +62 -7
- package/server/ES10/index.d.ts +33 -2
- package/server/ES10/index.js +158 -106
- package/server/latest/index.cjs +53 -2
- package/server/latest/index.d.ts +33 -2
- package/server/latest/index.js +149 -101
package/server/ES10/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { add_to_version_info as $b8hua$add_to_version_info, report as $b8hua$report, observer as $b8hua$observer, catchify as $b8hua$
|
|
2
|
-
import { ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, ssrClassList as $b8hua$ssrClassList, escape as $b8hua$escape, insert as $b8hua$insert, createComponent as $b8hua$createComponent, ssrAttribute as $b8hua$ssrAttribute,
|
|
3
|
-
import {
|
|
1
|
+
import { add_to_version_info as $b8hua$add_to_version_info, is_safari as $b8hua$is_safari, report as $b8hua$report, observer as $b8hua$observer, catchify as $b8hua$catchify1, useExpandingContainer as $b8hua$useExpandingContainer, standard_price_format as $b8hua$standard_price_format, Amazing_Slider as $b8hua$Amazing_Slider, slider_snap_css as $b8hua$slider_snap_css, slider_fading_factory as $b8hua$slider_fading_factory, make_random_classname as $b8hua$make_random_classname, dlog as $b8hua$dlog, hex_to_rgb as $b8hua$hex_to_rgb, relative_luminance_from_rgb as $b8hua$relative_luminance_from_rgb, javascript_media_query as $b8hua$javascript_media_query, 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, fetch_recs as $b8hua$fetch_recs, snakeCasifyObject as $b8hua$snakeCasifyObject, instant_exec_on_suspect_history_change as $b8hua$instant_exec_on_suspect_history_change, base_url as $b8hua$base_url, get_depict_id as $b8hua$get_depict_id, get_user_id as $b8hua$get_user_id, get_session_id as $b8hua$get_session_id, make_url_with_query_params as $b8hua$make_url_with_query_params, fetch_retry as $b8hua$fetch_retry, add_version_query_params as $b8hua$add_version_query_params, dwarn as $b8hua$dwarn, sort_obj as $b8hua$sort_obj, edit_current_page_meta_tags as $b8hua$edit_current_page_meta_tags, use_href_accessor as $b8hua$use_href_accessor, base64_encode_unicode as $b8hua$base64_encode_unicode, base64_decode_unicode as $b8hua$base64_decode_unicode, queueMacroTask as $b8hua$queueMacroTask, make_asyncIterable_exiter as $b8hua$make_asyncIterable_exiter, href_change_ipns as $b8hua$href_change_ipns, ContainedImage as $b8hua$ContainedImage, deparallelize_no_drop as $b8hua$deparallelize_no_drop, insert_surfaces as $b8hua$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
2
|
+
import { ssrElement as $b8hua$ssrElement, ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, ssrStyle as $b8hua$ssrStyle, ssrClassList as $b8hua$ssrClassList, escape as $b8hua$escape, insert as $b8hua$insert, createComponent as $b8hua$createComponent, ssrAttribute as $b8hua$ssrAttribute, Dynamic as $b8hua$Dynamic, isServer as $b8hua$isServer, mergeProps as $b8hua$mergeProps } from "solid-js/web";
|
|
3
|
+
import { catchify as $b8hua$catchify } from "@depict-ai/utilishared/latest/ES10";
|
|
4
|
+
import { createSignal as $b8hua$createSignal, onCleanup as $b8hua$onCleanup, ErrorBoundary as $b8hua$ErrorBoundary, createMemo as $b8hua$createMemo, untrack as $b8hua$untrack, createEffect as $b8hua$createEffect, getOwner as $b8hua$getOwner, Show as $b8hua$Show, Index as $b8hua$Index, For as $b8hua$For, createRenderEffect as $b8hua$createRenderEffect, createComputed as $b8hua$createComputed, on as $b8hua$on, batch as $b8hua$batch, createRoot as $b8hua$createRoot, runWithOwner as $b8hua$runWithOwner, createResource as $b8hua$createResource, createReaction as $b8hua$createReaction, Suspense as $b8hua$Suspense } from "solid-js";
|
|
4
5
|
import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
5
6
|
import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
6
7
|
import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
@@ -8,7 +9,52 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
|
|
|
8
9
|
/*! Depict.ai search and product listing SDK */
|
|
9
10
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
10
11
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.
|
|
12
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "1.4.20";
|
|
13
|
+
function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
|
|
14
|
+
const [size, setSize] = $b8hua$createSignal(0);
|
|
15
|
+
const resizeObserver = new ResizeObserver($b8hua$catchify(records => {
|
|
16
|
+
for (let j = 0; j < records.length; j++) {
|
|
17
|
+
const {
|
|
18
|
+
width: width
|
|
19
|
+
} = records[j].contentRect;
|
|
20
|
+
if (!width) continue;
|
|
21
|
+
// add extra 5% just in case. + safari is (in some cases) acting a bit questionable and needs a third extra to fill the set width
|
|
22
|
+
const new_size = width * 1.05 * ((0, $b8hua$is_safari) ? 4 / 3 : 1);
|
|
23
|
+
setSize(Math.round(new_size));
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
resizeObserver.observe(whatToWatch);
|
|
27
|
+
$b8hua$onCleanup(() => resizeObserver.disconnect());
|
|
28
|
+
return size;
|
|
29
|
+
}
|
|
30
|
+
function $56047603f9d212b6$export$6e5611bc7e57e477(_ref) {
|
|
31
|
+
let {
|
|
32
|
+
src: raw_src,
|
|
33
|
+
size: size,
|
|
34
|
+
resolutions = [64, 128, 256, 300, 400, 512, 768, 1024, 1280, 1536, 2048, 4096],
|
|
35
|
+
...otherOptions
|
|
36
|
+
} = _ref;
|
|
37
|
+
const src = new URL(raw_src, location.origin);
|
|
38
|
+
const fallbackSrc = $56047603f9d212b6$var$generateImageUrl(src, 400);
|
|
39
|
+
const srcset = $56047603f9d212b6$var$make_srcset(src, resolutions);
|
|
40
|
+
return $b8hua$ssrElement("img", () => ({
|
|
41
|
+
...otherOptions,
|
|
42
|
+
"src": fallbackSrc,
|
|
43
|
+
"srcset": srcset,
|
|
44
|
+
"sizes": size() + "px"
|
|
45
|
+
}), undefined, true);
|
|
46
|
+
}
|
|
47
|
+
function $56047603f9d212b6$var$make_srcset(url, resolutions) {
|
|
48
|
+
return resolutions.map(width => "".concat($56047603f9d212b6$var$generateImageUrl(url, width), " ").concat(width, "w")).join(", ");
|
|
49
|
+
}
|
|
50
|
+
function $56047603f9d212b6$var$generateImageUrl(url, width) {
|
|
51
|
+
url.searchParams.set("width", width);
|
|
52
|
+
return url.href;
|
|
53
|
+
}
|
|
54
|
+
const $801e8845d3fa3653$var$_tmpl$ = ["<div", ' style="', '"></div>'];
|
|
55
|
+
function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
|
|
56
|
+
return $b8hua$ssr($801e8845d3fa3653$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle("position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%")));
|
|
57
|
+
}
|
|
12
58
|
|
|
13
59
|
// Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
|
|
14
60
|
class $f3b7124b76123e44$export$e1d52e4f0c7557a1 extends Error {}
|
|
@@ -93,15 +139,15 @@ function $ad371564683947ab$export$6c6d7a51fa9aa15d(props) {
|
|
|
93
139
|
$b8hua$insert(details_, [summary_, $b8hua$createComponent(ExpandingContainer, {
|
|
94
140
|
children: children
|
|
95
141
|
})], null);
|
|
96
|
-
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(details_).then($b8hua$
|
|
97
|
-
$b8hua$createEffect($b8hua$
|
|
142
|
+
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(details_).then($b8hua$catchify1(() => set_is_in_dom(true)));
|
|
143
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
98
144
|
const is_open = is_open_memo();
|
|
99
145
|
if (!is_in_dom())
|
|
100
146
|
// wait with setting state until we're in DOM, animation won't work otherwise
|
|
101
147
|
return;
|
|
102
148
|
if (dont_animate_if_instant_open_ && fresh_component && !timeout_started) {
|
|
103
149
|
timeout_started = true;
|
|
104
|
-
setTimeout($b8hua$
|
|
150
|
+
setTimeout($b8hua$catchify1(() => fresh_component = false));
|
|
105
151
|
}
|
|
106
152
|
if (is_open) {
|
|
107
153
|
details_.open = true; // open up the toggle so the animation can happen
|
|
@@ -109,10 +155,10 @@ function $ad371564683947ab$export$6c6d7a51fa9aa15d(props) {
|
|
|
109
155
|
await expand(0, do_duration);
|
|
110
156
|
} else {
|
|
111
157
|
const animation = await collapse();
|
|
112
|
-
animation === null || animation === void 0 || animation.addEventListener("finish", $b8hua$
|
|
158
|
+
animation === null || animation === void 0 || animation.addEventListener("finish", $b8hua$catchify1(() => details_.open = false));
|
|
113
159
|
}
|
|
114
160
|
}));
|
|
115
|
-
details_.addEventListener("toggle", $b8hua$
|
|
161
|
+
details_.addEventListener("toggle", $b8hua$catchify1(() => {
|
|
116
162
|
const {
|
|
117
163
|
open: open
|
|
118
164
|
} = details_;
|
|
@@ -122,11 +168,11 @@ function $ad371564683947ab$export$6c6d7a51fa9aa15d(props) {
|
|
|
122
168
|
}) // in case someone somehow toggles it without us intercepting it at least follow suit
|
|
123
169
|
);
|
|
124
170
|
|
|
125
|
-
summary_.addEventListener("click", $b8hua$
|
|
171
|
+
summary_.addEventListener("click", $b8hua$catchify1(ev => {
|
|
126
172
|
ev.preventDefault();
|
|
127
173
|
toggle();
|
|
128
174
|
}));
|
|
129
|
-
summary_.addEventListener("keydown", $b8hua$
|
|
175
|
+
summary_.addEventListener("keydown", $b8hua$catchify1(ev => {
|
|
130
176
|
const {
|
|
131
177
|
key: key
|
|
132
178
|
} = ev;
|
|
@@ -405,9 +451,9 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
|
405
451
|
});
|
|
406
452
|
const [is_in_dom, set_is_in_dom] = $b8hua$createSignal(document.documentElement.contains(outmost_element));
|
|
407
453
|
const hidden = $b8hua$createMemo(() => get_search_filters_open_() || get_search_sorting_open_());
|
|
408
|
-
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(outmost_element).then($b8hua$
|
|
454
|
+
if (!$b8hua$untrack(is_in_dom)) (0, $b8hua$observer).wait_for_element(outmost_element).then($b8hua$catchify1(() => set_is_in_dom(true)));
|
|
409
455
|
outmost_element.classList.add("selected-filters");
|
|
410
|
-
$b8hua$createEffect($b8hua$
|
|
456
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
411
457
|
if (!is_in_dom())
|
|
412
458
|
// wait with setting state until we're in DOM, animation won't work otherwise
|
|
413
459
|
return;
|
|
@@ -541,7 +587,7 @@ function $133484ef10e4e954$export$dd948f91abc3a1c4(_ref) {
|
|
|
541
587
|
i18n_: i18n_
|
|
542
588
|
}) : []);
|
|
543
589
|
});
|
|
544
|
-
$b8hua$createEffect($b8hua$
|
|
590
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
545
591
|
if (!togglable_rest()) {
|
|
546
592
|
await collapse();
|
|
547
593
|
return;
|
|
@@ -637,7 +683,7 @@ function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
|
637
683
|
});
|
|
638
684
|
$b8hua$createComputed(() => {
|
|
639
685
|
clearTimeout(debounce_timeout);
|
|
640
|
-
debounce_timeout = setTimeout($b8hua$
|
|
686
|
+
debounce_timeout = setTimeout($b8hua$catchify1(range => $b8hua$untrack(() => {
|
|
641
687
|
const default_data = filter_().data;
|
|
642
688
|
const filter_object = {
|
|
643
689
|
op: filter_().op,
|
|
@@ -815,7 +861,7 @@ function $457279ff15864cb9$export$e5c2828934226505(_ref) {
|
|
|
815
861
|
};
|
|
816
862
|
const outer_div = $b8hua$ssr($457279ff15864cb9$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("aria-label", expanded_() ? $b8hua$escape(i18n_.morphing_sign_expanded_aria_label_(), true) : $b8hua$escape(i18n_.morphing_sign_collapsed_aria_label_(), true), false));
|
|
817
863
|
const [is_in_dom, set_is_in_dom] = $b8hua$createSignal(false);
|
|
818
|
-
(0, $b8hua$observer).wait_for_element(outer_div).then($b8hua$
|
|
864
|
+
(0, $b8hua$observer).wait_for_element(outer_div).then($b8hua$catchify1(() => set_is_in_dom(true)));
|
|
819
865
|
$b8hua$createEffect(() => {
|
|
820
866
|
if (!is_in_dom())
|
|
821
867
|
// wait for us to being in DOM as animations don't work otherwise
|
|
@@ -973,7 +1019,7 @@ function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
|
|
|
973
1019
|
i18n_: i18n_
|
|
974
1020
|
}) : []);
|
|
975
1021
|
});
|
|
976
|
-
$b8hua$createEffect($b8hua$
|
|
1022
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
977
1023
|
if (!some_top_level_are_hidden()) {
|
|
978
1024
|
await collapse();
|
|
979
1025
|
return;
|
|
@@ -1022,7 +1068,7 @@ function $0ae614c5c7babb43$var$render_stuff(data, existing_filter, i18n_) {
|
|
|
1022
1068
|
return (_value$is_checked_$ = (_value6 = value()) === null || _value6 === void 0 ? void 0 : (_value6$is_checked_ = _value6.is_checked_) === null || _value6$is_checked_ === void 0 ? void 0 : (_value6$is_checked_$ = _value6$is_checked_[0]) === null || _value6$is_checked_$ === void 0 ? void 0 : _value6$is_checked_$.call(_value6$is_checked_)) !== null && _value$is_checked_$ !== void 0 ? _value$is_checked_$ : false;
|
|
1023
1069
|
},
|
|
1024
1070
|
input_ref_: input => {
|
|
1025
|
-
input.addEventListener("change", $b8hua$
|
|
1071
|
+
input.addEventListener("change", $b8hua$catchify1(() => $b8hua$untrack(() => {
|
|
1026
1072
|
var _value8;
|
|
1027
1073
|
const {
|
|
1028
1074
|
checked: checked
|
|
@@ -1106,7 +1152,7 @@ function $0ae614c5c7babb43$var$batching_filter_state_syncer(props) {
|
|
|
1106
1152
|
existing_filter_: existing_filter_
|
|
1107
1153
|
} = props;
|
|
1108
1154
|
let sync_queued = false;
|
|
1109
|
-
const sync_fn = $b8hua$
|
|
1155
|
+
const sync_fn = $b8hua$catchify1(async () => {
|
|
1110
1156
|
sync_queued = false;
|
|
1111
1157
|
// if we change, update filter state - next microtask, so that "reactions" to the change can process before we send it off to the API
|
|
1112
1158
|
const set_filter = existing_filter_();
|
|
@@ -1168,13 +1214,13 @@ function $0ae614c5c7babb43$var$create_updating_signal(_ref3) {
|
|
|
1168
1214
|
$b8hua$createComputed($b8hua$on(read_checked, trigger_sync_, {
|
|
1169
1215
|
defer: true
|
|
1170
1216
|
}));
|
|
1171
|
-
$b8hua$createComputed($b8hua$on(read_checked, $b8hua$
|
|
1217
|
+
$b8hua$createComputed($b8hua$on(read_checked, $b8hua$catchify1(new_value => {
|
|
1172
1218
|
if (updating_blocked) return;
|
|
1173
1219
|
for (const child of child_objects) child.is_checked_[1](new_value);
|
|
1174
1220
|
}), {
|
|
1175
1221
|
defer: true
|
|
1176
1222
|
}));
|
|
1177
|
-
$b8hua$createEffect($b8hua$on(get_child_object_values, $b8hua$
|
|
1223
|
+
$b8hua$createEffect($b8hua$on(get_child_object_values, $b8hua$catchify1(() => {
|
|
1178
1224
|
const all_kids_checked = get_child_object_values.every(accessor => accessor());
|
|
1179
1225
|
if (all_kids_checked === read_checked()) return;
|
|
1180
1226
|
updating_blocked = true;
|
|
@@ -1444,7 +1490,7 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
|
1444
1490
|
i18n_: i18n_
|
|
1445
1491
|
}) : []);
|
|
1446
1492
|
});
|
|
1447
|
-
$b8hua$createEffect($b8hua$
|
|
1493
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
1448
1494
|
if (!togglable_rest()) {
|
|
1449
1495
|
await collapse();
|
|
1450
1496
|
set_having_expanding_in_dom(false); // Once animation has finished, remove expanding from DOM
|
|
@@ -2064,7 +2110,7 @@ function $63f1f8dbcd07d3b0$var$ActualSolidLayout(props, container_element) {
|
|
|
2064
2110
|
return;
|
|
2065
2111
|
}
|
|
2066
2112
|
update_children_count();
|
|
2067
|
-
const mutation_observer = new MutationObserver($b8hua$
|
|
2113
|
+
const mutation_observer = new MutationObserver($b8hua$catchify1(update_children_count));
|
|
2068
2114
|
mutation_observer.observe(container_element, {
|
|
2069
2115
|
childList: true
|
|
2070
2116
|
});
|
|
@@ -2125,7 +2171,7 @@ async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
2125
2171
|
actually_close();else if (!animation_started && closing_animation) {
|
|
2126
2172
|
var _catchify;
|
|
2127
2173
|
animation_started = +new Date();
|
|
2128
|
-
(_catchify = $b8hua$
|
|
2174
|
+
(_catchify = $b8hua$catchify1(closing_animation)()) === null || _catchify === void 0 || _catchify.then($b8hua$catchify1(actually_close));
|
|
2129
2175
|
} else actually_close();
|
|
2130
2176
|
};
|
|
2131
2177
|
return search_modal({
|
|
@@ -2167,7 +2213,7 @@ async function $5c5732ef44f05b26$export$58e808b1db15d3bc(_ref) {
|
|
|
2167
2213
|
function $972f6bce0f9d61be$export$e183a13865960371(params_to_default_value, router_) {
|
|
2168
2214
|
const signals = {};
|
|
2169
2215
|
const entries = Object.entries(params_to_default_value);
|
|
2170
|
-
const event_handler = $b8hua$
|
|
2216
|
+
const event_handler = $b8hua$catchify1((what_happened, args) => {
|
|
2171
2217
|
if (what_happened == "popstate") $972f6bce0f9d61be$var$history_state_change(signals, entries, args.state);
|
|
2172
2218
|
});
|
|
2173
2219
|
// createRenderEffect because we need the instant execution so the signals always contain values, even before solid's render phase
|
|
@@ -2192,8 +2238,8 @@ function $972f6bce0f9d61be$export$e183a13865960371(params_to_default_value, rout
|
|
|
2192
2238
|
});
|
|
2193
2239
|
// 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
|
|
2194
2240
|
(0, $b8hua$instant_exec_on_suspect_history_change).add(event_handler);
|
|
2195
|
-
$b8hua$onCleanup($b8hua$
|
|
2196
|
-
$b8hua$createEffect($b8hua$
|
|
2241
|
+
$b8hua$onCleanup($b8hua$catchify1(() => (0, $b8hua$instant_exec_on_suspect_history_change).delete(event_handler)));
|
|
2242
|
+
$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
|
|
2197
2243
|
return signals;
|
|
2198
2244
|
}
|
|
2199
2245
|
function $972f6bce0f9d61be$var$history_state_change(signals, entries, state) {
|
|
@@ -2447,7 +2493,7 @@ function $284849364a6ef73a$var$_get_cache_obj_for_endpoint2(endpoint) {
|
|
|
2447
2493
|
return (_classPrivateFieldGet5 = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_cache_objs))[endpoint] || (_classPrivateFieldGet5[endpoint] = {
|
|
2448
2494
|
in_progress_: {},
|
|
2449
2495
|
cache_: {},
|
|
2450
|
-
finalization_registry_: $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_supports_finalization_registry) ? new FinalizationRegistry($b8hua$
|
|
2496
|
+
finalization_registry_: $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_supports_finalization_registry) ? new FinalizationRegistry($b8hua$catchify1(key => {
|
|
2451
2497
|
const our_cache = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $284849364a6ef73a$var$_cache_objs)[endpoint].cache_;
|
|
2452
2498
|
$b8hua$dlog("[Search API]: removing", key, "from", our_cache);
|
|
2453
2499
|
delete our_cache[key];
|
|
@@ -2584,11 +2630,11 @@ async function $284849364a6ef73a$var$_cached_post_request2(endpoint, input_req,
|
|
|
2584
2630
|
result = $ed0fefda39a0f15d$export$967e966fca9515e(result);
|
|
2585
2631
|
cache_obj.cache_[body] = new WeakRef(result);
|
|
2586
2632
|
resolve_in_progress(result);
|
|
2587
|
-
setTimeout($b8hua$
|
|
2633
|
+
setTimeout($b8hua$catchify1(() => {
|
|
2588
2634
|
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
|
|
2589
2635
|
else
|
|
2590
2636
|
// delete things from cache after 5 minutes, so it doesn't get too heavy
|
|
2591
|
-
setTimeout($b8hua$
|
|
2637
|
+
setTimeout($b8hua$catchify1(() => delete cache_obj.cache_[body]), 300000);
|
|
2592
2638
|
}), 60000 // cache values for at least 60 seconds
|
|
2593
2639
|
);
|
|
2594
2640
|
|
|
@@ -2679,7 +2725,7 @@ function $43fbdca0f726a34b$export$92f2da32c6e7e7ee(_ref) {
|
|
|
2679
2725
|
}
|
|
2680
2726
|
function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
|
|
2681
2727
|
let passive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
2682
|
-
const catchified_handler = $b8hua$
|
|
2728
|
+
const catchified_handler = $b8hua$catchify1(handler);
|
|
2683
2729
|
const owner = $b8hua$getOwner();
|
|
2684
2730
|
// 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.
|
|
2685
2731
|
// Use observer in case that this gets called before body exists
|
|
@@ -2798,7 +2844,7 @@ function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
|
|
|
2798
2844
|
fill: "forwards",
|
|
2799
2845
|
easing: "ease-in-out"
|
|
2800
2846
|
});
|
|
2801
|
-
animation.addEventListener("finish", $b8hua$
|
|
2847
|
+
animation.addEventListener("finish", $b8hua$catchify1(() => {
|
|
2802
2848
|
if (unpermit_when_possible) set_permitted_to_show(false);
|
|
2803
2849
|
animation = undefined;
|
|
2804
2850
|
element.style.display = "none";
|
|
@@ -2962,7 +3008,7 @@ function $6d2962bc9370f884$export$5e4aed86c12acdd9(_ref) {
|
|
|
2962
3008
|
last_loaded = +new Date();
|
|
2963
3009
|
is_first_load = true;
|
|
2964
3010
|
});
|
|
2965
|
-
$b8hua$createEffect($b8hua$
|
|
3011
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
2966
3012
|
const be_above_percentage = is_first_load ? 50 : 75; // if first load, load earlier
|
|
2967
3013
|
if (percentage_in_view_() < be_above_percentage || is_loading_more) return;
|
|
2968
3014
|
if (!get_last_cursor()) {
|
|
@@ -3135,7 +3181,7 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
|
|
|
3135
3181
|
const target_to_index_map = new Map();
|
|
3136
3182
|
const index_to_target_map_ = new Map();
|
|
3137
3183
|
const currently_intersecting = new Set();
|
|
3138
|
-
const intersection_observer = new IntersectionObserver($b8hua$
|
|
3184
|
+
const intersection_observer = new IntersectionObserver($b8hua$catchify1(records => {
|
|
3139
3185
|
for (let i = 0; i < records.length; i++) {
|
|
3140
3186
|
const record = records[i];
|
|
3141
3187
|
const {
|
|
@@ -3478,7 +3524,7 @@ function $e56d241d0f33d459$export$fe334901e8bebd57() {
|
|
|
3478
3524
|
offset: 0
|
|
3479
3525
|
}, 1);
|
|
3480
3526
|
animation.pause();
|
|
3481
|
-
const fn = $b8hua$
|
|
3527
|
+
const fn = $b8hua$catchify1(animation.play.bind(animation));
|
|
3482
3528
|
cleanup_fns.push(fn);
|
|
3483
3529
|
$b8hua$onCleanup(fn);
|
|
3484
3530
|
} catch (e) {
|
|
@@ -3489,7 +3535,7 @@ function $e56d241d0f33d459$export$fe334901e8bebd57() {
|
|
|
3489
3535
|
const style = element.style;
|
|
3490
3536
|
const original_value = style.overflow;
|
|
3491
3537
|
style.overflow = "hidden";
|
|
3492
|
-
const fn = $b8hua$
|
|
3538
|
+
const fn = $b8hua$catchify1(() => style.overflow = original_value);
|
|
3493
3539
|
cleanup_fns.push(fn);
|
|
3494
3540
|
$b8hua$onCleanup(fn);
|
|
3495
3541
|
}
|
|
@@ -3578,7 +3624,7 @@ function $082c4ed3e22f8d71$export$9bf11afa910f536e(_ref) {
|
|
|
3578
3624
|
set_search_sorting_open(true);
|
|
3579
3625
|
}
|
|
3580
3626
|
});
|
|
3581
|
-
$b8hua$onCleanup($b8hua$
|
|
3627
|
+
$b8hua$onCleanup($b8hua$catchify1(() => {
|
|
3582
3628
|
if (!sorting_expanded() && !filters_expanded()) {
|
|
3583
3629
|
set_search_filters_open(false);
|
|
3584
3630
|
set_search_sorting_open(false);
|
|
@@ -3681,7 +3727,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
3681
3727
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
3682
3728
|
const [get_current_sorting_] = current_sorting_;
|
|
3683
3729
|
const [is_small, set_is_small] = $b8hua$createSignal(false);
|
|
3684
|
-
const dismiss_modal_ = $b8hua$
|
|
3730
|
+
const dismiss_modal_ = $b8hua$catchify1(() => {
|
|
3685
3731
|
set_filters_open(false);
|
|
3686
3732
|
set_sorting_open(false);
|
|
3687
3733
|
});
|
|
@@ -3769,7 +3815,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
3769
3815
|
if (filters_open()) set_extra_els_in_results_container_($b8hua$ssr($7396052a1484264f$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $f6b0500577e1b210$export$3f1a388cc0d8fed7), filter_options))));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))));
|
|
3770
3816
|
}
|
|
3771
3817
|
});
|
|
3772
|
-
$b8hua$
|
|
3818
|
+
$b8hua$catchify1(async () => {
|
|
3773
3819
|
({
|
|
3774
3820
|
open_modal_: open_modal_,
|
|
3775
3821
|
close_modal_: close_modal_
|
|
@@ -3880,13 +3926,13 @@ function $a61a2051e15c8d7a$export$5196e4c01fa56fcb(_ref) {
|
|
|
3880
3926
|
} = _ref;
|
|
3881
3927
|
let close_toast_;
|
|
3882
3928
|
const stay_open_promise = new Promise(r => close_toast_ = r);
|
|
3883
|
-
$b8hua$
|
|
3929
|
+
$b8hua$catchify1(async () => {
|
|
3884
3930
|
const closing_animation_duration = 300; // ms
|
|
3885
3931
|
const element = $b8hua$ssrElement("div", more_attributes, () => $b8hua$escape(children), true);
|
|
3886
3932
|
const [, set_is_showing_toast] = $a61a2051e15c8d7a$export$22970a0140fc759c;
|
|
3887
3933
|
// if this is a memory leak the garbage collector is stupid - does someone know?
|
|
3888
|
-
for (const ev of ["pointerover", "focusin"]) element.addEventListener(ev, $b8hua$
|
|
3889
|
-
for (const ev of ["pointerout", "focusout"]) element.addEventListener(ev, $b8hua$
|
|
3934
|
+
for (const ev of ["pointerover", "focusin"]) element.addEventListener(ev, $b8hua$catchify1(() => closing_animation.pause()));
|
|
3935
|
+
for (const ev of ["pointerout", "focusout"]) element.addEventListener(ev, $b8hua$catchify1(() => closing_animation.play()));
|
|
3890
3936
|
const body = await (0, $b8hua$observer).wait_for_element("body");
|
|
3891
3937
|
const x_translate = "translateX(-50%) ";
|
|
3892
3938
|
let remove_keyboard_listener;
|
|
@@ -3911,7 +3957,7 @@ function $a61a2051e15c8d7a$export$5196e4c01fa56fcb(_ref) {
|
|
|
3911
3957
|
// let other toasts close us if they open while we're still here
|
|
3912
3958
|
$a61a2051e15c8d7a$var$closing_functions.add(close_toast_);
|
|
3913
3959
|
set_is_showing_toast(true);
|
|
3914
|
-
const handler = $b8hua$
|
|
3960
|
+
const handler = $b8hua$catchify1(_ref2 => {
|
|
3915
3961
|
let {
|
|
3916
3962
|
key: key
|
|
3917
3963
|
} = _ref2;
|
|
@@ -4016,7 +4062,7 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
4016
4062
|
}
|
|
4017
4063
|
old_pos = new_pos;
|
|
4018
4064
|
});
|
|
4019
|
-
const touchstart_handler = $b8hua$
|
|
4065
|
+
const touchstart_handler = $b8hua$catchify1(e => {
|
|
4020
4066
|
is_in_touch_scroll = true;
|
|
4021
4067
|
if (e.touches.length === 1) {
|
|
4022
4068
|
// 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
|
|
@@ -4024,12 +4070,12 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
4024
4070
|
diff_over_second_or_touch = 0;
|
|
4025
4071
|
}
|
|
4026
4072
|
});
|
|
4027
|
-
const touchend_handler = $b8hua$
|
|
4073
|
+
const touchend_handler = $b8hua$catchify1(e => {
|
|
4028
4074
|
if (e.touches.length === 0)
|
|
4029
4075
|
// scroll gesture of any type (pinch can also be used as scroll, etc.) ended
|
|
4030
4076
|
inertia_timeout = setTimeout(
|
|
4031
4077
|
// inertia ends after 500ms (educated guess)
|
|
4032
|
-
$b8hua$
|
|
4078
|
+
$b8hua$catchify1(() => {
|
|
4033
4079
|
is_in_touch_scroll = false;
|
|
4034
4080
|
diff_over_second_or_touch = 0;
|
|
4035
4081
|
}), 500);
|
|
@@ -4047,9 +4093,9 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
4047
4093
|
const everything_closed = !get_search_filters_open_() && !get_search_sorting_open_();
|
|
4048
4094
|
if (!$b8hua$untrack(modal_is_closed) && everything_closed)
|
|
4049
4095
|
// I think the point of this is to delay the animation a bit IIRC
|
|
4050
|
-
timeout = setTimeout($b8hua$
|
|
4096
|
+
timeout = setTimeout($b8hua$catchify1(() => set_if_modal_is_closed(true)), 200);else set_if_modal_is_closed(everything_closed);
|
|
4051
4097
|
});
|
|
4052
|
-
$b8hua$createComputed($b8hua$
|
|
4098
|
+
$b8hua$createComputed($b8hua$catchify1(async () => {
|
|
4053
4099
|
const element = sort_and_filter_element_();
|
|
4054
4100
|
if (!element) return;
|
|
4055
4101
|
await (0, $b8hua$observer).wait_for_element(element);
|
|
@@ -4253,6 +4299,7 @@ function $52efc9ae4382e25a$export$5646050d516e06bc(_ref) {
|
|
|
4253
4299
|
} = _ref;
|
|
4254
4300
|
const placeholder_crumb_data = [,,,];
|
|
4255
4301
|
const crumb_data = $b8hua$createMemo(() => get_api_crumb_data() || placeholder_crumb_data);
|
|
4302
|
+
const href_accessor = $b8hua$use_href_accessor();
|
|
4256
4303
|
return $b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
4257
4304
|
severity_: "error",
|
|
4258
4305
|
message_: "BreadCrumbs failed",
|
|
@@ -4262,14 +4309,19 @@ function $52efc9ae4382e25a$export$5646050d516e06bc(_ref) {
|
|
|
4262
4309
|
return crumb_data();
|
|
4263
4310
|
},
|
|
4264
4311
|
children: (display_accessor, index) => {
|
|
4265
|
-
const
|
|
4312
|
+
const is_last = $b8hua$createMemo(() => {
|
|
4313
|
+
var _crumb_data;
|
|
4314
|
+
return index === ((_crumb_data = crumb_data()) === null || _crumb_data === void 0 ? void 0 : _crumb_data.length) - 1;
|
|
4315
|
+
});
|
|
4316
|
+
const url = $b8hua$createMemo(() => {
|
|
4266
4317
|
var _display_accessor;
|
|
4267
|
-
return
|
|
4268
|
-
to_url_: (_display_accessor = display_accessor()) === null || _display_accessor === void 0 ? void 0 : _display_accessor.page_url,
|
|
4269
|
-
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
4270
|
-
sorting_query_param_: sorting_query_param_
|
|
4271
|
-
});
|
|
4318
|
+
return is_last() ? href_accessor() : (_display_accessor = display_accessor()) === null || _display_accessor === void 0 ? void 0 : _display_accessor.page_url;
|
|
4272
4319
|
});
|
|
4320
|
+
const href = $b8hua$createMemo(() => $2855bffe06ef7a03$export$43cd1e747fecd42e({
|
|
4321
|
+
to_url_: url(),
|
|
4322
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
4323
|
+
sorting_query_param_: sorting_query_param_
|
|
4324
|
+
}));
|
|
4273
4325
|
return [$b8hua$createComponent((0, $b8hua$Show), {
|
|
4274
4326
|
get when() {
|
|
4275
4327
|
return display_accessor();
|
|
@@ -4343,7 +4395,7 @@ function $43fbb365ed0ac99e$export$466cdc317043f6cb(_ref) {
|
|
|
4343
4395
|
$b8hua$createComputed(() => {
|
|
4344
4396
|
var _place_holdey_quickli, _place_holdey_quickli2;
|
|
4345
4397
|
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.query_id) {
|
|
4346
|
-
if (last_was_placeholder) queueMicrotask($b8hua$
|
|
4398
|
+
if (last_was_placeholder) queueMicrotask($b8hua$catchify1(() => {
|
|
4347
4399
|
var _sliding_element;
|
|
4348
4400
|
(_sliding_element = sliding_element) === null || _sliding_element === void 0 || _sliding_element.scrollTo({
|
|
4349
4401
|
left: 0
|
|
@@ -4412,7 +4464,7 @@ function $43fbb365ed0ac99e$export$466cdc317043f6cb(_ref) {
|
|
|
4412
4464
|
} else if (!(((_intersecting_items_o = intersecting_items_object[selected_index()]) === null || _intersecting_items_o === void 0 ? void 0 : _intersecting_items_o.intersectionRatio) >= 0.95)) {
|
|
4413
4465
|
// negated larger than to handle left side of comparison being undefined
|
|
4414
4466
|
let done_work = false;
|
|
4415
|
-
$b8hua$runWithOwner(owner, () => $b8hua$createComputed($b8hua$
|
|
4467
|
+
$b8hua$runWithOwner(owner, () => $b8hua$createComputed($b8hua$catchify1(() => {
|
|
4416
4468
|
if (done_work || !Array.isArray(quicklinks_data_())) return;
|
|
4417
4469
|
const sel_index = selected_index();
|
|
4418
4470
|
const target_element = sel_index >= 0 ? sel_index : 0;
|
|
@@ -4499,7 +4551,7 @@ function $5e6abec0dab4e610$export$6e49da55e449af7c(_ref) {
|
|
|
4499
4551
|
}]); // get rid of old data the browser saves the old state and will restore it later on
|
|
4500
4552
|
};
|
|
4501
4553
|
|
|
4502
|
-
$b8hua$createComputed($b8hua$
|
|
4554
|
+
$b8hua$createComputed($b8hua$catchify1(() => {
|
|
4503
4555
|
const last_result = get_last_result_in_viewport_();
|
|
4504
4556
|
if (last_result == undefined || last_result <= 0 || last_result == Infinity) return;
|
|
4505
4557
|
if (isNaN(last_result)) {
|
|
@@ -4526,7 +4578,7 @@ function $5e6abec0dab4e610$export$6e49da55e449af7c(_ref) {
|
|
|
4526
4578
|
set_to_later = last_result;
|
|
4527
4579
|
// If a delayed push timeout is already running, just changing the value that will be pushed is sufficient
|
|
4528
4580
|
if (timeout) return;
|
|
4529
|
-
timeout = setTimeout($b8hua$
|
|
4581
|
+
timeout = setTimeout($b8hua$catchify1(() => {
|
|
4530
4582
|
timeout = undefined;
|
|
4531
4583
|
last_time_history_changed = +new Date();
|
|
4532
4584
|
set_min_results_loaded(set_to_later);
|
|
@@ -4574,7 +4626,7 @@ function $ec225bf1f1627ea8$export$210f130a61ac1e8d(fn) {
|
|
|
4574
4626
|
let last_queued;
|
|
4575
4627
|
let last_value;
|
|
4576
4628
|
let initial_run = true;
|
|
4577
|
-
$b8hua$createComputed($b8hua$
|
|
4629
|
+
$b8hua$createComputed($b8hua$catchify1(async () => {
|
|
4578
4630
|
last_value = fn();
|
|
4579
4631
|
if (initial_run) {
|
|
4580
4632
|
initial_run = false;
|
|
@@ -4695,7 +4747,7 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
4695
4747
|
const handler = () => allow_filter_clearing = false;
|
|
4696
4748
|
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
|
|
4697
4749
|
$b8hua$onCleanup(() => window.removeEventListener("popstate", handler));
|
|
4698
|
-
$b8hua$createEffect($b8hua$on(crumb_data_, $b8hua$
|
|
4750
|
+
$b8hua$createEffect($b8hua$on(crumb_data_, $b8hua$catchify1(new_crumb_data => {
|
|
4699
4751
|
const query_id_of_new_data = query_id_();
|
|
4700
4752
|
if (allow_filter_clearing && previous_crumb_data && new_crumb_data && query_id_of_new_data !== query_id_when_we_got_previous_data) {
|
|
4701
4753
|
const previous_length = previous_crumb_data.length;
|
|
@@ -4854,7 +4906,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
4854
4906
|
});
|
|
4855
4907
|
const [plp_results_] = $b8hua$createResource(query_base_,
|
|
4856
4908
|
// 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)
|
|
4857
|
-
$b8hua$
|
|
4909
|
+
$b8hua$catchify1(base_query => $5e6abec0dab4e610$export$cc42dd29bf655ab6({
|
|
4858
4910
|
id_: $b8hua$untrack(query_id_),
|
|
4859
4911
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
4860
4912
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
@@ -4988,7 +5040,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
4988
5040
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
4989
5041
|
...extra_sort_and_filter_args_
|
|
4990
5042
|
});
|
|
4991
|
-
$b8hua$
|
|
5043
|
+
$b8hua$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
4992
5044
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
4993
5045
|
last_result_in_viewport_: last_result_in_viewport_,
|
|
4994
5046
|
id_: query_id_,
|
|
@@ -4998,7 +5050,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
4998
5050
|
$b8hua$createComputed(() => {
|
|
4999
5051
|
if (plp_results_.loading) set_can_write_scroll_restoration(false);else if (plp_results_()) set_can_write_scroll_restoration(true);
|
|
5000
5052
|
});
|
|
5001
|
-
$b8hua$createRenderEffect($b8hua$
|
|
5053
|
+
$b8hua$createRenderEffect($b8hua$catchify1(async () => {
|
|
5002
5054
|
var _only_show_filters_op;
|
|
5003
5055
|
const slim = is_slim_();
|
|
5004
5056
|
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();
|
|
@@ -5215,7 +5267,7 @@ function $9d3d794b62318ecc$export$477caf01aecaeb2a(options) {
|
|
|
5215
5267
|
const [get_selected_filters_, set_selected_filters] = selected_filters_;
|
|
5216
5268
|
const [get_has_sideways_filter_clearing_flag_, set_has_sideways_filter_clearing_flag] = sideways_filter_clearing_flag_;
|
|
5217
5269
|
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");
|
|
5218
|
-
const history_change_handler = $b8hua$
|
|
5270
|
+
const history_change_handler = $b8hua$catchify1(() => set_current_href(location.href));
|
|
5219
5271
|
const owner = $b8hua$getOwner() || $b8hua$createRoot(() => $b8hua$getOwner());
|
|
5220
5272
|
const {
|
|
5221
5273
|
sorting_query_param_: sorting_query_param_,
|
|
@@ -5387,7 +5439,7 @@ class $ac571292d606f30b$export$7e1297a3a19f10d8 {
|
|
|
5387
5439
|
* @param is_replace_ if you want to replace the current URL in history instead of pushing a new one
|
|
5388
5440
|
* @param category_query_id_ If you are navigating to a category and know the query_id of, please provide it. This is for making a better devEx in js-ui
|
|
5389
5441
|
*/
|
|
5390
|
-
go_to_: $b8hua$
|
|
5442
|
+
go_to_: $b8hua$catchify1(async _ref => {
|
|
5391
5443
|
let {
|
|
5392
5444
|
new_url_: raw_new_url,
|
|
5393
5445
|
event_: event_,
|
|
@@ -5884,7 +5936,7 @@ const $702d7656a373973e$export$824dde41348efed1 = /*@__PURE__*/(() => {
|
|
|
5884
5936
|
|
|
5885
5937
|
const observe_to_signal = (element, setter) => {
|
|
5886
5938
|
const computed_style = getComputedStyle(element);
|
|
5887
|
-
const resize_observer = new ResizeObserver($b8hua$
|
|
5939
|
+
const resize_observer = new ResizeObserver($b8hua$catchify1(() => {
|
|
5888
5940
|
setter(element.getBoundingClientRect().width + parseFloat(computed_style.marginLeft) + parseFloat(computed_style.marginRight) + parseFloat(computed_style.borderRightWidth) + parseFloat(computed_style.borderLeftWidth));
|
|
5889
5941
|
}));
|
|
5890
5942
|
resize_observer.observe(element);
|
|
@@ -6083,7 +6135,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
6083
6135
|
let input_element;
|
|
6084
6136
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
6085
6137
|
let field_div;
|
|
6086
|
-
$b8hua$createEffect($b8hua$
|
|
6138
|
+
$b8hua$createEffect($b8hua$catchify1(async () => {
|
|
6087
6139
|
if (disabled_) return;
|
|
6088
6140
|
// we aren't in DOM yet unfortunately, wouldn't even be with onMount
|
|
6089
6141
|
await (0, $b8hua$observer).wait_for_element(input_element);
|
|
@@ -6200,7 +6252,7 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(modal_body_style, input_field,
|
|
|
6200
6252
|
};
|
|
6201
6253
|
let ro;
|
|
6202
6254
|
if (one_axies_only !== "top") {
|
|
6203
|
-
ro = new ResizeObserver($b8hua$
|
|
6255
|
+
ro = new ResizeObserver($b8hua$catchify1(records => {
|
|
6204
6256
|
records.forEach(_ref => {
|
|
6205
6257
|
let {
|
|
6206
6258
|
contentRect: {
|
|
@@ -6222,10 +6274,10 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(modal_body_style, input_field,
|
|
|
6222
6274
|
// "resize" doesn't fire sometimes when it should, also it doesn't when showing/hiding scrollbars which disabling scrolling does
|
|
6223
6275
|
// this works
|
|
6224
6276
|
// keeping resize just in case
|
|
6225
|
-
const resize_resize_observer = new ResizeObserver($b8hua$
|
|
6277
|
+
const resize_resize_observer = new ResizeObserver($b8hua$catchify1(align_position));
|
|
6226
6278
|
resize_resize_observer.observe(document.documentElement);
|
|
6227
6279
|
(0, $b8hua$observer).wait_for_element("body").then(resize_resize_observer.observe.bind(resize_resize_observer));
|
|
6228
|
-
$b8hua$onCleanup($b8hua$
|
|
6280
|
+
$b8hua$onCleanup($b8hua$catchify1(() => {
|
|
6229
6281
|
var _ro;
|
|
6230
6282
|
(_ro = ro) === null || _ro === void 0 || _ro.disconnect();
|
|
6231
6283
|
resize_resize_observer.disconnect();
|
|
@@ -6255,7 +6307,7 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
|
|
|
6255
6307
|
}, {
|
|
6256
6308
|
defer: true
|
|
6257
6309
|
}));
|
|
6258
|
-
$b8hua$createComputed($b8hua$on(get_search_query_, $b8hua$
|
|
6310
|
+
$b8hua$createComputed($b8hua$on(get_search_query_, $b8hua$catchify1(() => {
|
|
6259
6311
|
// when a query was submitted, clear filters if clear was pressed before
|
|
6260
6312
|
const clear_value = $b8hua$untrack(get_clear_filters_next_submit);
|
|
6261
6313
|
if (clear_value) {
|
|
@@ -6280,11 +6332,11 @@ function $07d90b8270ece8de$export$84bba84a7b837187(read_search_query) {
|
|
|
6280
6332
|
const key = "depict_searches";
|
|
6281
6333
|
const previous_searches = $b8hua$createSignal(JSON.parse(ls[key] || "[]"));
|
|
6282
6334
|
const [read_previous_searches, write_previous_searches] = previous_searches;
|
|
6283
|
-
$b8hua$createEffect($b8hua$
|
|
6335
|
+
$b8hua$createEffect($b8hua$catchify1(() => {
|
|
6284
6336
|
const json_encoded = JSON.stringify(read_previous_searches());
|
|
6285
6337
|
if (ls[key] !== json_encoded) ls[key] = json_encoded;
|
|
6286
6338
|
}));
|
|
6287
|
-
$b8hua$createComputed($b8hua$
|
|
6339
|
+
$b8hua$createComputed($b8hua$catchify1(() => {
|
|
6288
6340
|
const searches = $b8hua$untrack(read_previous_searches);
|
|
6289
6341
|
const current_query = read_search_query();
|
|
6290
6342
|
if (!current_query)
|
|
@@ -6423,13 +6475,13 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
6423
6475
|
// don't wait if it's the first request
|
|
6424
6476
|
write_current_instant_query(value);
|
|
6425
6477
|
clearTimeout(timeout);
|
|
6426
|
-
timeout = setTimeout($b8hua$
|
|
6478
|
+
timeout = setTimeout($b8hua$catchify1(() => write_current_instant_query(value)), 250);
|
|
6427
6479
|
});
|
|
6428
6480
|
const [search_results] = $b8hua$createResource($b8hua$createMemo(() => ({
|
|
6429
6481
|
tenant: tenant_(),
|
|
6430
6482
|
market: market_(),
|
|
6431
6483
|
query: read_current_instant_query()
|
|
6432
|
-
})), $b8hua$
|
|
6484
|
+
})), $b8hua$catchify1(variable_data => {
|
|
6433
6485
|
return depict_api_.query({
|
|
6434
6486
|
// 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
|
|
6435
6487
|
limit: $b8hua$untrack(has_sort_or_filters_) ? max_cards : min_products_to_fetch_,
|
|
@@ -6502,7 +6554,7 @@ function $e8776b492383c292$export$91c3b6774e8be0f5(_ref) {
|
|
|
6502
6554
|
const [get_current_href, set_current_href] = $b8hua$createSignal(location.href);
|
|
6503
6555
|
const [exit_iterable, exitable_iterable] = $b8hua$make_asyncIterable_exiter((0, $b8hua$href_change_ipns));
|
|
6504
6556
|
$b8hua$onCleanup(exit_iterable);
|
|
6505
|
-
$b8hua$
|
|
6557
|
+
$b8hua$catchify1(async () => {
|
|
6506
6558
|
for await (const href of exitable_iterable)
|
|
6507
6559
|
// use native links so ppl can cmdclick/right click and open in new tab and see target URL
|
|
6508
6560
|
set_current_href(href);
|
|
@@ -6912,7 +6964,7 @@ function $2ebb1d6ae6763f7a$var$actual_navigation_working_on_fake_data(_ref2) {
|
|
|
6912
6964
|
if (!$b8hua$untrack(() => read_updating_blocked())) previous_value = sfv;
|
|
6913
6965
|
});
|
|
6914
6966
|
const owner = $b8hua$getOwner();
|
|
6915
|
-
const handler = $b8hua$
|
|
6967
|
+
const handler = $b8hua$catchify1(_ref3 => {
|
|
6916
6968
|
let {
|
|
6917
6969
|
keyCode: keyCode
|
|
6918
6970
|
} = _ref3;
|
|
@@ -6975,7 +7027,7 @@ function $2ebb1d6ae6763f7a$var$actual_navigation_working_on_fake_data(_ref2) {
|
|
|
6975
7027
|
const el = element_();
|
|
6976
7028
|
if (!el) return;
|
|
6977
7029
|
el.addEventListener("keyup", handler);
|
|
6978
|
-
$b8hua$onCleanup($b8hua$
|
|
7030
|
+
$b8hua$onCleanup($b8hua$catchify1(() => el.removeEventListener("keyup", handler)));
|
|
6979
7031
|
});
|
|
6980
7032
|
}
|
|
6981
7033
|
function $c4dee1ef44de29ca$export$af0124069c150252(_ref) {
|
|
@@ -7184,7 +7236,7 @@ function $a09bb7c652acf957$export$3340fdd8259bd4fd(_ref) {
|
|
|
7184
7236
|
if (process.env.GA === "false") return;
|
|
7185
7237
|
let debounce_timeout;
|
|
7186
7238
|
const stop_timeout = () => clearTimeout(debounce_timeout);
|
|
7187
|
-
const send_to_ga = $b8hua$
|
|
7239
|
+
const send_to_ga = $b8hua$catchify1(() => {
|
|
7188
7240
|
const fake_url = new URL(location.href);
|
|
7189
7241
|
const {
|
|
7190
7242
|
searchParams: searchParams
|
|
@@ -7197,12 +7249,12 @@ function $a09bb7c652acf957$export$3340fdd8259bd4fd(_ref) {
|
|
|
7197
7249
|
$b8hua$onCleanup(() => {
|
|
7198
7250
|
setTimeout(
|
|
7199
7251
|
// 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
|
|
7200
|
-
$b8hua$
|
|
7252
|
+
$b8hua$catchify1(() => {
|
|
7201
7253
|
if ($b8hua$untrack(get_search_query_) === $b8hua$untrack(get_search_field_value_)) stop_timeout();
|
|
7202
7254
|
}));
|
|
7203
7255
|
});
|
|
7204
7256
|
let first_call = true;
|
|
7205
|
-
$b8hua$createEffect($b8hua$
|
|
7257
|
+
$b8hua$createEffect($b8hua$catchify1(() => {
|
|
7206
7258
|
get_search_field_value_();
|
|
7207
7259
|
if (first_call) {
|
|
7208
7260
|
// we only want to do stuff when it changes
|
|
@@ -7279,7 +7331,7 @@ function $e82132ed97521828$export$1c593cbd6f1e10bc(_ref) {
|
|
|
7279
7331
|
const [input_field, set_input_field] = $b8hua$createSignal();
|
|
7280
7332
|
const [get_search_field_value_] = search_field_value_;
|
|
7281
7333
|
const [get_modal_search_results, set_modal_search_results_] = $b8hua$createSignal();
|
|
7282
|
-
const close_on_escape_handler = $b8hua$
|
|
7334
|
+
const close_on_escape_handler = $b8hua$catchify1(_ref2 => {
|
|
7283
7335
|
let {
|
|
7284
7336
|
key: key
|
|
7285
7337
|
} = _ref2;
|
|
@@ -7295,7 +7347,7 @@ function $e82132ed97521828$export$1c593cbd6f1e10bc(_ref) {
|
|
|
7295
7347
|
if (disable_scrolling_) $e56d241d0f33d459$export$fe334901e8bebd57();
|
|
7296
7348
|
$e82132ed97521828$var$close_modal_when_navigating_away(close_modal_, search_query_url_param_name_);
|
|
7297
7349
|
window.addEventListener("keydown", close_on_escape_handler);
|
|
7298
|
-
$b8hua$onCleanup($b8hua$
|
|
7350
|
+
$b8hua$onCleanup($b8hua$catchify1(() => window.removeEventListener("keydown", close_on_escape_handler)));
|
|
7299
7351
|
if (closing_animation_) register_closing_animation_(closing_animation_);
|
|
7300
7352
|
$a09bb7c652acf957$export$3340fdd8259bd4fd({
|
|
7301
7353
|
get_search_field_value_: get_search_field_value_,
|
|
@@ -7403,8 +7455,8 @@ function $e82132ed97521828$var$close_modal_when_navigating_away(close_modal, sea
|
|
|
7403
7455
|
let set_initial_values = false;
|
|
7404
7456
|
let old_pathname;
|
|
7405
7457
|
let old_param_value;
|
|
7406
|
-
$b8hua$onCleanup($b8hua$
|
|
7407
|
-
$b8hua$
|
|
7458
|
+
$b8hua$onCleanup($b8hua$catchify1(exit_iterable));
|
|
7459
|
+
$b8hua$catchify1(async () => {
|
|
7408
7460
|
for await (const href of exitable_iterable) {
|
|
7409
7461
|
const u_o = new URL(href);
|
|
7410
7462
|
const new_pathname = u_o.pathname;
|
|
@@ -7475,7 +7527,7 @@ function $69602b3d8fd54c38$export$9dd50d35b9d94fdf(_ref) {
|
|
|
7475
7527
|
number_of_results_: number_of_results_,
|
|
7476
7528
|
type: type
|
|
7477
7529
|
} = _ref;
|
|
7478
|
-
const contents = $b8hua$createMemo($b8hua$
|
|
7530
|
+
const contents = $b8hua$createMemo($b8hua$catchify1(() => {
|
|
7479
7531
|
const q = get_search_query_();
|
|
7480
7532
|
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_());
|
|
7481
7533
|
}));
|
|
@@ -7747,7 +7799,7 @@ function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
|
7747
7799
|
if (!result) return;
|
|
7748
7800
|
return {
|
|
7749
7801
|
href: result.page_url,
|
|
7750
|
-
onClick: $b8hua$
|
|
7802
|
+
onClick: $b8hua$catchify1(ev => router_.navigate_.go_to_({
|
|
7751
7803
|
new_url_: result.page_url,
|
|
7752
7804
|
is_replace_: false,
|
|
7753
7805
|
event_: ev
|
|
@@ -8023,7 +8075,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
8023
8075
|
} : {})
|
|
8024
8076
|
};
|
|
8025
8077
|
});
|
|
8026
|
-
const [search_results_] = $b8hua$createResource(search_query_base_, $b8hua$
|
|
8078
|
+
const [search_results_] = $b8hua$createResource(search_query_base_, $b8hua$catchify1(async base_query => {
|
|
8027
8079
|
set_all_products_loaded(false);
|
|
8028
8080
|
// only first page of results
|
|
8029
8081
|
return await $5e6abec0dab4e610$export$cc42dd29bf655ab6({
|
|
@@ -8060,7 +8112,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
8060
8112
|
});
|
|
8061
8113
|
const modal_body_style = $b8hua$createSignal({});
|
|
8062
8114
|
const [get_search_field_elements, set_search_field_elements] = $b8hua$createSignal();
|
|
8063
|
-
const SafeSearchField = $b8hua$
|
|
8115
|
+
const SafeSearchField = $b8hua$catchify1((0, $584c06c09cf4609d$export$b94867ecbd698f21));
|
|
8064
8116
|
const [sort_or_filter_open_, set_sort_or_filter_open_] = $b8hua$createSignal(false);
|
|
8065
8117
|
const [desktop_filter_elements_, set_desktop_filter_elements] = $b8hua$createSignal();
|
|
8066
8118
|
const n_hits = $b8hua$createMemo(() => {
|
|
@@ -8115,7 +8167,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
8115
8167
|
$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))));
|
|
8116
8168
|
}).remove);
|
|
8117
8169
|
$3a2bed57c9a57e21$export$d31a1a1a83ad9413(search_results_, selected_filters_);
|
|
8118
|
-
$b8hua$
|
|
8170
|
+
$b8hua$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
8119
8171
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
8120
8172
|
last_result_in_viewport_: last_result_in_viewport_,
|
|
8121
8173
|
id_: get_search_query_,
|
|
@@ -8154,8 +8206,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
8154
8206
|
if (!search_field) break add_input_field;
|
|
8155
8207
|
modal_body_style[1]({});
|
|
8156
8208
|
modal_body_style_ref_ === null || modal_body_style_ref_ === void 0 || modal_body_style_ref_(modal_body_style);
|
|
8157
|
-
const align_position = $b8hua$
|
|
8158
|
-
div_with_field_class.addEventListener("click", $b8hua$
|
|
8209
|
+
const align_position = $b8hua$catchify1((0, $1308a7816c3d4f2d$export$b3ad617e9036868))(modal_body_style, search_field, undefined, true);
|
|
8210
|
+
div_with_field_class.addEventListener("click", $b8hua$catchify1(e => {
|
|
8159
8211
|
var _target$matches, _target$closest, _on_open_, _ref4;
|
|
8160
8212
|
const target = e.target;
|
|
8161
8213
|
const sel = ".submit";
|
|
@@ -8326,7 +8378,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
8326
8378
|
function $37e8c97bb6876197$export$828dcdd425fd3231(aligner) {
|
|
8327
8379
|
const style_element = document.createElement("style");
|
|
8328
8380
|
document.head.append(style_element);
|
|
8329
|
-
const resize_observer = new ResizeObserver($b8hua$
|
|
8381
|
+
const resize_observer = new ResizeObserver($b8hua$catchify1(() => {
|
|
8330
8382
|
const styles = $cc64aabf2c7a1f1a$export$1233ca167bf71f9a({
|
|
8331
8383
|
".depict.plp .depict-search-modal .search-field": {
|
|
8332
8384
|
"height": "".concat(aligner === null || aligner === void 0 ? void 0 : aligner.clientHeight, "px")
|
|
@@ -8553,7 +8605,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
8553
8605
|
selected_filters_: selected_filters_
|
|
8554
8606
|
});
|
|
8555
8607
|
$68e6625c8d51f847$export$5162a71f252e6122();
|
|
8556
|
-
$b8hua$
|
|
8608
|
+
$b8hua$catchify1(async () => {
|
|
8557
8609
|
const {
|
|
8558
8610
|
open_modal_: open_modal_,
|
|
8559
8611
|
close_modal_: close_modal_
|
|
@@ -8838,7 +8890,7 @@ function $eb064bc3350276c1$export$316f6f283ae64765(props) {
|
|
|
8838
8890
|
const style_props_ = $b8hua$createSignal({
|
|
8839
8891
|
position: "fixed"
|
|
8840
8892
|
});
|
|
8841
|
-
const defaultHandler = $b8hua$
|
|
8893
|
+
const defaultHandler = $b8hua$catchify1(() => {
|
|
8842
8894
|
// When selecting text in the SearchField that's in the page we want the same selection to persist. It doesn't by itself, since the SearchModal has an entirely different SearchField. Therefore, we manually copy the selection over.
|
|
8843
8895
|
const selected_text_range_ = [input_element.selectionStart, input_element.selectionEnd];
|
|
8844
8896
|
const {
|
|
@@ -8927,7 +8979,7 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
8927
8979
|
}, dispose_aligner];
|
|
8928
8980
|
};
|
|
8929
8981
|
function $573c007c697a1831$export$d0596b5cae35ad4(open_search) {
|
|
8930
|
-
const handler = $b8hua$
|
|
8982
|
+
const handler = $b8hua$catchify1(e => {
|
|
8931
8983
|
const {
|
|
8932
8984
|
key: key,
|
|
8933
8985
|
target: target
|
|
@@ -8946,7 +8998,7 @@ function $573c007c697a1831$export$d0596b5cae35ad4(open_search) {
|
|
|
8946
8998
|
function $e60a76195ac6d408$export$689e204eadb33baf(pr) {
|
|
8947
8999
|
let old_url;
|
|
8948
9000
|
let disconnect_link_observer;
|
|
8949
|
-
const link_handler = $b8hua$
|
|
9001
|
+
const link_handler = $b8hua$catchify1(e => {
|
|
8950
9002
|
const link = e.currentTarget || e.target;
|
|
8951
9003
|
if (link.href === old_url) {
|
|
8952
9004
|
history.pushState(history.state, "", link.href);
|
|
@@ -8955,7 +9007,7 @@ function $e60a76195ac6d408$export$689e204eadb33baf(pr) {
|
|
|
8955
9007
|
});
|
|
8956
9008
|
let remove_added_listeners;
|
|
8957
9009
|
let resolve_remove_added_listeners;
|
|
8958
|
-
pr.addEventListener("open", $b8hua$
|
|
9010
|
+
pr.addEventListener("open", $b8hua$catchify1(() => {
|
|
8959
9011
|
remove_added_listeners = new Promise(r => resolve_remove_added_listeners = r);
|
|
8960
9012
|
disconnect_link_observer = (0, $b8hua$observer).onexists("a", async _ref => {
|
|
8961
9013
|
let {
|
|
@@ -8966,12 +9018,12 @@ function $e60a76195ac6d408$export$689e204eadb33baf(pr) {
|
|
|
8966
9018
|
element.removeEventListener("click", link_handler);
|
|
8967
9019
|
});
|
|
8968
9020
|
}));
|
|
8969
|
-
pr.addEventListener("close", $b8hua$
|
|
9021
|
+
pr.addEventListener("close", $b8hua$catchify1(() => {
|
|
8970
9022
|
var _disconnect_link_obse, _resolve_remove_added;
|
|
8971
9023
|
(_disconnect_link_obse = disconnect_link_observer) === null || _disconnect_link_obse === void 0 || _disconnect_link_obse();
|
|
8972
9024
|
(_resolve_remove_added = resolve_remove_added_listeners) === null || _resolve_remove_added === void 0 || _resolve_remove_added();
|
|
8973
9025
|
}));
|
|
8974
|
-
$b8hua$
|
|
9026
|
+
$b8hua$catchify1(async () => {
|
|
8975
9027
|
for await (const href of (0, $b8hua$href_change_ipns)) if (!pr.is_page_(new URL(href))) old_url = href;
|
|
8976
9028
|
})();
|
|
8977
9029
|
}
|
|
@@ -9069,7 +9121,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
9069
9121
|
});
|
|
9070
9122
|
$f9fd3017c20b774a$var$_classPrivateFieldInitSpec(this, $f9fd3017c20b774a$var$_unload, {
|
|
9071
9123
|
writable: true,
|
|
9072
|
-
value: $b8hua$
|
|
9124
|
+
value: $b8hua$catchify1(() => {
|
|
9073
9125
|
var _classPrivateFieldGet3;
|
|
9074
9126
|
if (!$b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_is_open)) return;
|
|
9075
9127
|
(_classPrivateFieldGet3 = $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f9fd3017c20b774a$var$_disconnect_observer)) === null || _classPrivateFieldGet3 === void 0 || _classPrivateFieldGet3.call(this);
|
|
@@ -9083,7 +9135,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
9083
9135
|
});
|
|
9084
9136
|
$f9fd3017c20b774a$var$_classPrivateFieldInitSpec(this, $f9fd3017c20b774a$var$_load, {
|
|
9085
9137
|
writable: true,
|
|
9086
|
-
value: $b8hua$
|
|
9138
|
+
value: $b8hua$catchify1(async els => {
|
|
9087
9139
|
$b8hua$babelruntimehelpersclassPrivateFieldSet(this, $f9fd3017c20b774a$var$_is_open, true);
|
|
9088
9140
|
// So that #load doesn't get called again
|
|
9089
9141
|
let set_should_stay_inserted;
|
|
@@ -9147,7 +9199,7 @@ class $f9fd3017c20b774a$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
9147
9199
|
async function $f9fd3017c20b774a$var$_listen2() {
|
|
9148
9200
|
const [exit_ipns, exitable_ipns] = $b8hua$make_asyncIterable_exiter((0, $b8hua$href_change_ipns));
|
|
9149
9201
|
$b8hua$babelruntimehelpersclassPrivateFieldSet(this, $f9fd3017c20b774a$var$_stop_listening, exit_ipns);
|
|
9150
|
-
const caught_page_check_fn = $b8hua$
|
|
9202
|
+
const caught_page_check_fn = $b8hua$catchify1(this.is_page_, "page check failed");
|
|
9151
9203
|
for await (const href of exitable_ipns) {
|
|
9152
9204
|
const url = new URL(href);
|
|
9153
9205
|
if (!caught_page_check_fn(url)) {
|
|
@@ -9165,7 +9217,7 @@ function $f9fd3017c20b774a$var$_get_rendered_recs2() {
|
|
|
9165
9217
|
this.addEventListener("close", dispose, {
|
|
9166
9218
|
once: true
|
|
9167
9219
|
});
|
|
9168
|
-
return $b8hua$
|
|
9220
|
+
return $b8hua$catchify1(this.render_, "rendering failed")() || [];
|
|
9169
9221
|
});
|
|
9170
9222
|
}
|
|
9171
9223
|
function $f9fd3017c20b774a$var$_empty_page_bugfix2() {
|
|
@@ -9213,7 +9265,7 @@ var $f9fd3017c20b774a$var$_visited_urls = {
|
|
|
9213
9265
|
writable: true,
|
|
9214
9266
|
value: (() => {
|
|
9215
9267
|
// 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).
|
|
9216
|
-
$b8hua$
|
|
9268
|
+
$b8hua$catchify1(async () => {
|
|
9217
9269
|
// Static initialization blocks aren't supported in MobileSafari yet, otherwise this would be one.
|
|
9218
9270
|
// 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).
|
|
9219
9271
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks
|
|
@@ -9233,4 +9285,4 @@ const $d399250dfa491636$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
|
|
|
9233
9285
|
const $d399250dfa491636$export$864d304a0bc46829 = "2%";
|
|
9234
9286
|
const $d399250dfa491636$export$7bf543b9d9be2c22 = (0, $fa332ea03168857c$export$b91cec6bdc6b32a1);
|
|
9235
9287
|
$b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
|
|
9236
|
-
export { $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $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 };
|
|
9288
|
+
export { $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $5c5732ef44f05b26$export$58e808b1db15d3bc as fetchDepictRecommendations, $f5f54892fd0c7d9f$export$de035477d6fef996 as QuickLinks, $f5f54892fd0c7d9f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $96fd967c5b358ead$export$643598a327b5833e as get_categories, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $f5f54892fd0c7d9f$export$e2bf8ce7779e827e as CategoryPage, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $eb064bc3350276c1$export$316f6f283ae64765 as SearchField, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $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 };
|