@depict-ai/ui 1.0.17 → 1.0.18
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/dist/client/main.js +430 -230
- package/dist/client/module.js +431 -233
- package/dist/index.d.ts +59 -27
- package/dist/main.js +13 -9
- package/dist/module.js +13 -9
- package/dist/server/main.js +374 -195
- package/dist/server/module.js +375 -198
- package/package.json +50 -27
package/dist/server/module.js
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
|
-
import {add_to_version_info as $cV3wj$add_to_version_info, fetch_recs as $cV3wj$fetch_recs, snakeCasifyObject as $cV3wj$snakeCasifyObject,
|
|
2
|
-
import {ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrAttribute as $cV3wj$ssrAttribute, escape as $cV3wj$escape, createComponent as $cV3wj$createComponent, ssrClassList as $cV3wj$ssrClassList, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps
|
|
1
|
+
import {add_to_version_info as $cV3wj$add_to_version_info, fetch_recs as $cV3wj$fetch_recs, snakeCasifyObject as $cV3wj$snakeCasifyObject, catchify as $cV3wj$catchify, instant_exec_on_suspect_history_change as $cV3wj$instant_exec_on_suspect_history_change, base_url as $cV3wj$base_url, dlog as $cV3wj$dlog, get_depict_id as $cV3wj$get_depict_id, get_user_id as $cV3wj$get_user_id, get_session_id as $cV3wj$get_session_id, make_url_with_query_params as $cV3wj$make_url_with_query_params, fetch_retry as $cV3wj$fetch_retry, add_version_query_params as $cV3wj$add_version_query_params, sort_obj as $cV3wj$sort_obj, report as $cV3wj$report, javascript_media_query as $cV3wj$javascript_media_query, standard_price_format as $cV3wj$standard_price_format, observer as $cV3wj$observer, make_random_classname as $cV3wj$make_random_classname, n_col_styling_with_dist as $cV3wj$n_col_styling_with_dist, useExpandingContainer as $cV3wj$useExpandingContainer, Amazing_Slider as $cV3wj$Amazing_Slider, slider_snap_css as $cV3wj$slider_snap_css, slider_fading_factory as $cV3wj$slider_fading_factory, hsl_to_rgb as $cV3wj$hsl_to_rgb, relative_luminance_from_rgb as $cV3wj$relative_luminance_from_rgb, base64_encode_unicode as $cV3wj$base64_encode_unicode, base64_decode_unicode as $cV3wj$base64_decode_unicode, queueMacroTask as $cV3wj$queueMacroTask, dwarn as $cV3wj$dwarn, Layout as $cV3wj$Layout, async_iterable_ipns as $cV3wj$async_iterable_ipns, make_asyncIterable_exiter as $cV3wj$make_asyncIterable_exiter, href_change_ipns as $cV3wj$href_change_ipns, ContainedImage as $cV3wj$ContainedImage, deparallelize_no_drop as $cV3wj$deparallelize_no_drop, insert_surfaces as $cV3wj$insert_surfaces} from "@depict-ai/utilishared";
|
|
2
|
+
import {ssrElement as $cV3wj$ssrElement, ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrAttribute as $cV3wj$ssrAttribute, escape as $cV3wj$escape, isServer as $cV3wj$isServer, createComponent as $cV3wj$createComponent, ssrClassList as $cV3wj$ssrClassList, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps} from "solid-js/web";
|
|
3
3
|
import {createSignal as $cV3wj$createSignal, getOwner as $cV3wj$getOwner, createRoot as $cV3wj$createRoot, runWithOwner as $cV3wj$runWithOwner, onCleanup as $cV3wj$onCleanup, createComputed as $cV3wj$createComputed, createRenderEffect as $cV3wj$createRenderEffect, createEffect as $cV3wj$createEffect, untrack as $cV3wj$untrack, batch as $cV3wj$batch, createResource as $cV3wj$createResource, createMemo as $cV3wj$createMemo, Show as $cV3wj$Show, createReaction as $cV3wj$createReaction, Suspense as $cV3wj$Suspense, on as $cV3wj$on, ErrorBoundary as $cV3wj$ErrorBoundary, For as $cV3wj$For, Index as $cV3wj$Index} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.0.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.0.18";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
const $19976a74d273070d$var$_tmpl$ = '<path d="M11.669 10.531l9.156-9.156a.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569A.8.8 0 0 0 20.24 0a.77.77 0 0 0-.569.237l-9.14 9.14-9.14-9.14A.79.79 0 0 0 .807 0a.77.77 0 0 0-.569.237A.78.78 0 0 0 0 .807a.77.77 0 0 0 .237.569l9.156 9.156-9.156 9.14c-.159.157-.237.349-.237.569s.079.412.237.569c.085.085.174.148.268.19a1.095 1.095 0 0 0 .316.048.894.894 0 0 0 .285-.048.84.84 0 0 0 .285-.19l9.139-9.14 9.14 9.14a.894.894 0 0 0 .268.19 1.049 1.049 0 0 0 .301.048.941.941 0 0 0 .301-.048.84.84 0 0 0 .285-.19.78.78 0 0 0 .237-.569c0-.221-.079-.412-.237-.569z"></path>';
|
|
12
|
+
function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
|
|
13
|
+
return (0, $cV3wj$ssrElement)("svg", ()=>({
|
|
14
|
+
...props,
|
|
15
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16
|
+
"width": "21.064",
|
|
17
|
+
"height": "21.047",
|
|
18
|
+
"viewBox": "0 0 21.064 21.064"
|
|
19
|
+
}), ()=>(0, $cV3wj$ssr)($19976a74d273070d$var$_tmpl$), true);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
const $fbbadcb080ad1d4a$var$_tmpl$ = [
|
|
28
|
+
"<svg",
|
|
29
|
+
' xmlns="http://www.w3.org/2000/svg"',
|
|
30
|
+
' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'
|
|
31
|
+
];
|
|
32
|
+
function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
33
|
+
return (0, $cV3wj$ssr)($fbbadcb080ad1d4a$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("width", (0, $cV3wj$escape)(props.width_, true) ?? 14, false) + (0, $cV3wj$ssrAttribute)("height", (0, $cV3wj$escape)(props.height_, true) ?? 26, false));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
10
38
|
async function $c58717f39bf51647$export$58e808b1db15d3bc({ merchant: merchant , market: market , headers: headers , ...fetch_recs_options }) {
|
|
11
39
|
return await (0, $cV3wj$fetch_recs)({
|
|
12
40
|
tenant: merchant,
|
|
@@ -23,7 +51,6 @@ async function $c58717f39bf51647$export$58e808b1db15d3bc({ merchant: merchant ,
|
|
|
23
51
|
|
|
24
52
|
|
|
25
53
|
|
|
26
|
-
|
|
27
54
|
function $ca6f574bd8772184$export$e183a13865960371(params_to_default_value, router_) {
|
|
28
55
|
const signals = {};
|
|
29
56
|
const entries = Object.entries(params_to_default_value);
|
|
@@ -33,7 +60,9 @@ function $ca6f574bd8772184$export$e183a13865960371(params_to_default_value, rout
|
|
|
33
60
|
// createRenderEffect because we need the instant execution so the signals always contain values, even before solid's render phase
|
|
34
61
|
(0, $cV3wj$createRenderEffect)(()=>{
|
|
35
62
|
let signal_changed = false;
|
|
36
|
-
let { state: state } = history
|
|
63
|
+
let { state: state } = globalThis?.history || {
|
|
64
|
+
state: {}
|
|
65
|
+
}; // cloning isn't necessary because we're calling replaceState on it anyway
|
|
37
66
|
if (state === null || typeof state != "object") state = {};
|
|
38
67
|
for (const [param, default_value] of entries){
|
|
39
68
|
const [read_signal] = signals[param] ||= (0, $cV3wj$createSignal)(state[param] ?? default_value);
|
|
@@ -306,13 +335,14 @@ function $8c0f86cb3e266eeb$export$a71e92cfbb498adc(props) {
|
|
|
306
335
|
|
|
307
336
|
function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
|
|
308
337
|
const catchified_handler = (0, $cV3wj$catchify)(handler);
|
|
338
|
+
const owner = (0, $cV3wj$getOwner)();
|
|
309
339
|
// 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.
|
|
310
340
|
// Use observer in case that this gets called before body exists
|
|
311
341
|
const disconnect = (0, $cV3wj$observer).onexists("body", ({ element: element })=>{
|
|
312
342
|
element.addEventListener("scroll", catchified_handler, {
|
|
313
343
|
passive: passive
|
|
314
344
|
});
|
|
315
|
-
(0, $cV3wj$onCleanup)(()=>element.removeEventListener("scroll", catchified_handler));
|
|
345
|
+
(0, $cV3wj$runWithOwner)(owner, ()=>(0, $cV3wj$onCleanup)(()=>element.removeEventListener("scroll", catchified_handler)));
|
|
316
346
|
});
|
|
317
347
|
(0, $cV3wj$onCleanup)(disconnect);
|
|
318
348
|
for (const event of [
|
|
@@ -328,6 +358,7 @@ function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
|
|
|
328
358
|
}
|
|
329
359
|
|
|
330
360
|
|
|
361
|
+
|
|
331
362
|
const $6db49ca163afa2c3$var$_tmpl$ = [
|
|
332
363
|
"<div",
|
|
333
364
|
' class="scroll-status" style="display:none"><span class="text"><b>',
|
|
@@ -337,6 +368,7 @@ const $6db49ca163afa2c3$var$_tmpl$ = [
|
|
|
337
368
|
"</b></span></div>"
|
|
338
369
|
];
|
|
339
370
|
function $6db49ca163afa2c3$export$83fd5de5504a7a67({ formatted_number_of_results_: formatted_number_of_results_ , first_result_in_viewport_: [get_first_result_in_viewport] , last_result_in_viewport_: [get_last_result_in_viewport] , number_of_results_: number_of_results_ , i18n_: { price_formatting_: price_formatting_ , of_: of_ } }) {
|
|
371
|
+
if (0, $cV3wj$isServer) return; // won't show in initial render and need scroll position
|
|
340
372
|
const [first_to_show, set_first_to_show] = (0, $cV3wj$createSignal)(0);
|
|
341
373
|
const [last_to_show, set_last_to_show] = (0, $cV3wj$createSignal)(0);
|
|
342
374
|
const [count_to_show, set_count_to_show] = (0, $cV3wj$createSignal)("");
|
|
@@ -469,6 +501,7 @@ const $598245ecfe38f34b$var$_tmpl$ = [
|
|
|
469
501
|
"<!--/--></div>"
|
|
470
502
|
];
|
|
471
503
|
function $598245ecfe38f34b$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
|
|
504
|
+
const root = (0, $cV3wj$getOwner)();
|
|
472
505
|
return [
|
|
473
506
|
(0, $cV3wj$ssr)($598245ecfe38f34b$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.no_results_text_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
474
507
|
get when () {
|
|
@@ -482,8 +515,10 @@ function $598245ecfe38f34b$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hie
|
|
|
482
515
|
}
|
|
483
516
|
|
|
484
517
|
|
|
518
|
+
|
|
485
519
|
function $a458486f22b22f63$export$a2cc176055f8f08() {
|
|
486
|
-
|
|
520
|
+
const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
|
|
521
|
+
return (0, $cV3wj$isServer) ? `<!-- ${text} -->` : document.createComment(text);
|
|
487
522
|
}
|
|
488
523
|
|
|
489
524
|
|
|
@@ -554,11 +589,20 @@ function $a52235d12ccf9c88$var$unwrapping_helper(elements) {
|
|
|
554
589
|
}
|
|
555
590
|
|
|
556
591
|
|
|
592
|
+
|
|
557
593
|
let $6e41f1fde994db72$var$cached_placeholder_element;
|
|
558
594
|
let $6e41f1fde994db72$var$rendering_cached_placeholder_element;
|
|
559
595
|
function $6e41f1fde994db72$export$f33414a4df0afd3f({ product_card_template_: product_card_template_ , num_placeholders_: num_placeholders_ }) {
|
|
560
596
|
const [get_elements, set_elements] = (0, $cV3wj$createSignal)([]);
|
|
561
597
|
let existing_num = 0;
|
|
598
|
+
if (0, $cV3wj$isServer) // want to render simple placeholders on server, effects don't run there
|
|
599
|
+
return (0, $cV3wj$createMemo)(()=>Array.from({
|
|
600
|
+
length: num_placeholders_()
|
|
601
|
+
}).map(()=>{
|
|
602
|
+
const template_result = product_card_template_(null, undefined);
|
|
603
|
+
// @ts-ignore
|
|
604
|
+
if (typeof template_result?.then !== "function") return template_result;
|
|
605
|
+
}));
|
|
562
606
|
(0, $cV3wj$createRenderEffect)(()=>{
|
|
563
607
|
const to_add = num_placeholders_() - existing_num;
|
|
564
608
|
if (to_add <= 0) return;
|
|
@@ -751,22 +795,17 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({ displays_by_key_: displays_
|
|
|
751
795
|
];
|
|
752
796
|
},
|
|
753
797
|
children: (product_id, index)=>{
|
|
754
|
-
// We're using `untrack` here since we don't want to react in here to displays_by_key changing
|
|
755
|
-
// As long as our key stays the same we assume that the display hasn't changed, so we don't want to rerender
|
|
756
|
-
// If the key gets removed, <For> will remove us
|
|
757
798
|
const owner = (0, $cV3wj$getOwner)();
|
|
758
799
|
const display_accessor = (0, $cV3wj$createMemo)(()=>displays_by_key_().get(product_id));
|
|
759
|
-
const [product_card_resource] = (0, $cV3wj$createResource)(
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
]), // re-render when merchant or market changes
|
|
763
|
-
([merchant, market])=>{
|
|
800
|
+
const [product_card_resource] = (0, $cV3wj$createResource)(display_accessor, // re-render when the reference to the display object changes
|
|
801
|
+
// this should only be the case when the merchant or market changes and the new request has completed
|
|
802
|
+
(display)=>{
|
|
764
803
|
// get display in the function that re-runs when merchant or market have changed, since the display may have changed but product_id not
|
|
765
|
-
const display = (0, $cV3wj$untrack)(display_accessor);
|
|
766
804
|
return product_card_template_(display, {
|
|
767
805
|
set_on_index_change: (fn)=>(0, $cV3wj$runWithOwner)(owner, ()=>(0, $cV3wj$createEffect)(()=>fn(index()))),
|
|
768
|
-
merchant:
|
|
769
|
-
market
|
|
806
|
+
merchant: (0, $cV3wj$untrack)(merchant_),
|
|
807
|
+
// this means that the merchant and market provided to the template is wrong while we do another fetch, but I don't see how anyone would need to know the correct market there
|
|
808
|
+
market: (0, $cV3wj$untrack)(market_)
|
|
770
809
|
});
|
|
771
810
|
});
|
|
772
811
|
const node_accessor = (0, $a52235d12ccf9c88$export$2f0cbfbb4354bb52)(product_card_resource);
|
|
@@ -922,7 +961,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({ plp_results_: plp_results_
|
|
|
922
961
|
const random_id = (0, $cV3wj$make_random_classname)();
|
|
923
962
|
const selector_beginning_ = `.depict.plp #${random_id}>`;
|
|
924
963
|
const [get_styling, set_styling_] = (0, $cV3wj$createSignal)("");
|
|
925
|
-
const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $cV3wj$createSignal)(
|
|
964
|
+
const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = (0, $cV3wj$createSignal)(true);
|
|
926
965
|
const rendered_placeholders = (0, $cV3wj$createMemo)(()=>get_should_have_placeholders_rendered() ? (0, $6e41f1fde994db72$export$f33414a4df0afd3f)({
|
|
927
966
|
product_card_template_: product_card_template_,
|
|
928
967
|
num_placeholders_: (0, $cV3wj$createMemo)(()=>{
|
|
@@ -1160,19 +1199,21 @@ function $6bb0a0c563dff4bb$export$e13dddbb31c3a42f() {
|
|
|
1160
1199
|
|
|
1161
1200
|
|
|
1162
1201
|
|
|
1202
|
+
|
|
1203
|
+
|
|
1163
1204
|
const $f32e14878e75af51$var$_tmpl$ = [
|
|
1164
1205
|
"<div",
|
|
1165
1206
|
">",
|
|
1166
1207
|
"</div>"
|
|
1167
1208
|
];
|
|
1168
|
-
function $f32e14878e75af51$export$6649caad96ef8870({ children: children ,
|
|
1209
|
+
function $f32e14878e75af51$export$6649caad96ef8870({ children: children , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
|
|
1169
1210
|
const slider = new (0, $cV3wj$Amazing_Slider)({
|
|
1170
1211
|
button_contents: {
|
|
1171
1212
|
left: [
|
|
1172
|
-
(0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(
|
|
1213
|
+
(0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fbbadcb080ad1d4a$export$8be2714ec7f169ee), {})))
|
|
1173
1214
|
],
|
|
1174
1215
|
right: [
|
|
1175
|
-
(0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(
|
|
1216
|
+
(0, $cV3wj$ssr)($f32e14878e75af51$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fbbadcb080ad1d4a$export$8be2714ec7f169ee), {})))
|
|
1176
1217
|
]
|
|
1177
1218
|
},
|
|
1178
1219
|
constructor_plugins: [
|
|
@@ -1193,6 +1234,7 @@ function $f32e14878e75af51$export$6649caad96ef8870({ children: children , button
|
|
|
1193
1234
|
}
|
|
1194
1235
|
|
|
1195
1236
|
|
|
1237
|
+
|
|
1196
1238
|
const $1adfe60f3a14a1d7$var$_tmpl$ = [
|
|
1197
1239
|
"<button",
|
|
1198
1240
|
' class="clear-all-filters minor">',
|
|
@@ -1218,7 +1260,7 @@ const $1adfe60f3a14a1d7$var$_tmpl$ = [
|
|
|
1218
1260
|
"<!--/--><span>",
|
|
1219
1261
|
"</span></button>"
|
|
1220
1262
|
];
|
|
1221
|
-
function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: [read_local_filter_cache] , search_filters_open_: [read_search_filters_open] , search_sorting_open_: [read_search_sorting_open] ,
|
|
1263
|
+
function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: [read_local_filter_cache] , search_filters_open_: [read_search_filters_open] , search_sorting_open_: [read_search_sorting_open] , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
|
|
1222
1264
|
const { price_formatting_: price_formatting_ } = i18n_;
|
|
1223
1265
|
const [read_selected_filters, write_selected_filters] = selected_filters_;
|
|
1224
1266
|
const { collapse: collapse , expand: expand , ExpandingContainer: ExpandingContainer } = (0, $24e27fab9c821b86$export$5bad61ecde080b1f)({
|
|
@@ -1233,7 +1275,6 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected
|
|
|
1233
1275
|
},
|
|
1234
1276
|
get children () {
|
|
1235
1277
|
return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(i18n_.selected_filters_title_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f32e14878e75af51$export$6649caad96ef8870), {
|
|
1236
|
-
button_: slider_arrow_button_,
|
|
1237
1278
|
slider_ref_: (slider)=>slider.container.classList.add("filter-crumbs"),
|
|
1238
1279
|
get children () {
|
|
1239
1280
|
return [
|
|
@@ -1308,7 +1349,7 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected
|
|
|
1308
1349
|
return (()=>{
|
|
1309
1350
|
number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
|
|
1310
1351
|
(0, $cV3wj$onCleanup)(()=>number_of_rendered_selected_filters_items_[1]((prev)=>prev - 1));
|
|
1311
|
-
return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
1352
|
+
return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$escape)(price_formatting_().pre_), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
|
|
1312
1353
|
get price_ () {
|
|
1313
1354
|
return filter().data[0];
|
|
1314
1355
|
},
|
|
@@ -1371,7 +1412,7 @@ function $1adfe60f3a14a1d7$export$fecbb157621501bd({ number_of_rendered_selected
|
|
|
1371
1412
|
return (()=>{
|
|
1372
1413
|
number_of_rendered_selected_filters_items_[1]((prev)=>prev + 1);
|
|
1373
1414
|
(0, $cV3wj$onCleanup)(()=>number_of_rendered_selected_filters_items_[1]((prev)=>prev - 1));
|
|
1374
|
-
return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
1415
|
+
return (0, $cV3wj$ssr)($1adfe60f3a14a1d7$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$escape)(name()));
|
|
1375
1416
|
})();
|
|
1376
1417
|
}
|
|
1377
1418
|
});
|
|
@@ -1481,7 +1522,6 @@ async function $194bd6b8e4c59830$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
1481
1522
|
|
|
1482
1523
|
|
|
1483
1524
|
|
|
1484
|
-
|
|
1485
1525
|
|
|
1486
1526
|
const $87c712b5b33f24f7$var$_tmpl$ = [
|
|
1487
1527
|
"<span",
|
|
@@ -1522,6 +1562,18 @@ const $87c712b5b33f24f7$export$48513f6b9f8ce62d = (props)=>{
|
|
|
1522
1562
|
|
|
1523
1563
|
|
|
1524
1564
|
|
|
1565
|
+
|
|
1566
|
+
const $f8a56ba74eedd0c6$var$_tmpl$ = '<path d="M10.173 5.548H5.5V.875c0-.075-.027-.14-.081-.193S5.301.601 5.226.601s-.14.027-.193.081-.081.118-.081.193v4.673H.274c-.075 0-.14.027-.193.081A.27.27 0 0 0 0 5.827c0 .075.027.14.081.193s.118.081.193.081h4.678v4.673c0 .075.027.14.081.193s.118.081.193.081.14-.027.193-.081.081-.118.081-.193V6.101h4.673a.27.27 0 0 0 .199-.081c.054-.054.08-.118.08-.193a.27.27 0 0 0-.279-.279z" fill="#000"></path>';
|
|
1567
|
+
function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
|
|
1568
|
+
return (0, $cV3wj$ssrElement)("svg", ()=>({
|
|
1569
|
+
...props,
|
|
1570
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
1571
|
+
"width": "11",
|
|
1572
|
+
"height": "12"
|
|
1573
|
+
}), ()=>(0, $cV3wj$ssr)($f8a56ba74eedd0c6$var$_tmpl$), true);
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
|
|
1525
1577
|
const $67b173f9db427028$var$_tmpl$ = [
|
|
1526
1578
|
"<button",
|
|
1527
1579
|
' type="button" class="',
|
|
@@ -1530,7 +1582,7 @@ const $67b173f9db427028$var$_tmpl$ = [
|
|
|
1530
1582
|
"</span></button>"
|
|
1531
1583
|
];
|
|
1532
1584
|
function $67b173f9db427028$export$ca21a16d65b3dd8({ show_extras_: [get_show_extras, set_show_extras] , i18n_: i18n_ }) {
|
|
1533
|
-
return (0, $cV3wj$ssr)($67b173f9db427028$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
1585
|
+
return (0, $cV3wj$ssr)($67b173f9db427028$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f8a56ba74eedd0c6$export$f21ab0717a89c77f), {})), get_show_extras() ? (0, $cV3wj$escape)(i18n_.view_less_()) : (0, $cV3wj$escape)(i18n_.view_more_()));
|
|
1534
1586
|
}
|
|
1535
1587
|
|
|
1536
1588
|
|
|
@@ -2537,6 +2589,18 @@ var $12497d09ef87296e$export$2e2bcd8739ae039 = {
|
|
|
2537
2589
|
|
|
2538
2590
|
|
|
2539
2591
|
|
|
2592
|
+
|
|
2593
|
+
const $9bc34983fc5f7bdb$var$_tmpl$ = '<path d="M4.617 12.738a.48.48 0 0 1-.164-.027c-.051-.023-.094-.055-.129-.098L.125 8.414A.39.39 0 0 1 0 8.117c0-.113.039-.211.125-.293s.18-.125.293-.125.215.043.297.125l3.902 3.902L16.086.262c.082-.082.18-.125.297-.125s.211.043.293.125.125.184.125.301-.043.215-.125.297L4.914 12.613c-.039.043-.086.078-.141.098s-.102.027-.156.027zm0 0"></path>';
|
|
2594
|
+
function $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4(props = {}) {
|
|
2595
|
+
return (0, $cV3wj$ssrElement)("svg", ()=>({
|
|
2596
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
2597
|
+
"width": "16.8",
|
|
2598
|
+
"height": "14",
|
|
2599
|
+
...props
|
|
2600
|
+
}), ()=>(0, $cV3wj$ssr)($9bc34983fc5f7bdb$var$_tmpl$), true);
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
|
|
2540
2604
|
const $a7b58cb3bcffd156$var$_tmpl$ = [
|
|
2541
2605
|
"<span",
|
|
2542
2606
|
' class="show-selected" aria-hidden="true"><span>',
|
|
@@ -2598,7 +2662,7 @@ function $a7b58cb3bcffd156$export$53c59af873b303c9({ selected_filters_in_group_:
|
|
|
2598
2662
|
return show_tick_icon();
|
|
2599
2663
|
},
|
|
2600
2664
|
get children () {
|
|
2601
|
-
return (0, $cV3wj$createComponent)((0, $
|
|
2665
|
+
return (0, $cV3wj$createComponent)((0, $9bc34983fc5f7bdb$export$f2ca6fc699ca1fb4), {});
|
|
2602
2666
|
}
|
|
2603
2667
|
})));
|
|
2604
2668
|
}
|
|
@@ -2695,6 +2759,7 @@ function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
|
|
|
2695
2759
|
}
|
|
2696
2760
|
|
|
2697
2761
|
|
|
2762
|
+
|
|
2698
2763
|
const $fab07f52c9861732$var$_tmpl$ = [
|
|
2699
2764
|
"<div",
|
|
2700
2765
|
' class="filter-collapsible">',
|
|
@@ -2862,7 +2927,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
2862
2927
|
return a_filter_is_selected();
|
|
2863
2928
|
},
|
|
2864
2929
|
get children () {
|
|
2865
|
-
return (0, $cV3wj$ssr)($fab07f52c9861732$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
2930
|
+
return (0, $cV3wj$ssr)($fab07f52c9861732$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$escape)(props.i18n_.clear_individual_filter_()));
|
|
2866
2931
|
}
|
|
2867
2932
|
})));
|
|
2868
2933
|
}
|
|
@@ -3057,6 +3122,49 @@ function $aea1edf92433e81e$export$fe334901e8bebd57() {
|
|
|
3057
3122
|
|
|
3058
3123
|
|
|
3059
3124
|
|
|
3125
|
+
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
const $e1bb71e65e01a3a0$var$_tmpl$ = '<path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zM9.449 3.5H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h1.398c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-1.051-.699h.703v-.699h-.703zm0 0"></path>', $e1bb71e65e01a3a0$var$_tmpl$2 = '<path d="M10.852 6.301H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h2.801a.35.35 0 0 1 .348.352v1.398a.35.35 0 0 1-.348.352zm-2.453-.699H10.5v-.703H8.398zm3.851 3.5H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h4.199c.191 0 .352.156.352.352V8.75c0 .191-.16.352-.352.352zm-3.852-.703h3.5V7.7h-3.5zm5.25 3.499H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h5.598a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-5.25-.699H13.3V10.5H8.398zm0 0"></path>';
|
|
3129
|
+
function $e1bb71e65e01a3a0$export$da32f7add8a22e86(props = {}) {
|
|
3130
|
+
return (0, $cV3wj$ssrElement)("svg", ()=>({
|
|
3131
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
3132
|
+
"width": "14",
|
|
3133
|
+
"height": "14",
|
|
3134
|
+
"class": "sort-icon",
|
|
3135
|
+
...props
|
|
3136
|
+
}), ()=>[
|
|
3137
|
+
(0, $cV3wj$ssr)($e1bb71e65e01a3a0$var$_tmpl$),
|
|
3138
|
+
(0, $cV3wj$ssr)($e1bb71e65e01a3a0$var$_tmpl$2)
|
|
3139
|
+
], true);
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
const $05fbe84eb34564ec$var$_tmpl$ = '<path d="M6.199 10.254a.35.35 0 0 0-.496 0L3.5 12.453V.348a.35.35 0 0 0-.7 0v12.105L.598 10.254c-.137-.137-.359-.137-.492 0a.35.35 0 0 0 0 .492l2.797 2.801a.35.35 0 0 0 .496 0L6.2 10.746c.137-.137.137-.355 0-.492zm3.25 1.644H8.051a.35.35 0 0 1-.352-.348v-1.402a.35.35 0 0 1 .352-.348h1.398a.35.35 0 0 1 .352.348v1.402a.35.35 0 0 1-.352.348zm-1.051-.699h.703V10.5h-.703zm2.454-2.097H8.051c-.195 0-.352-.16-.352-.352V7.352A.35.35 0 0 1 8.051 7h2.801a.35.35 0 0 1 .348.352V8.75c0 .191-.156.352-.348.352zm-2.453-.703H10.5V7.7H8.398zm3.851-2.098H8.051a.35.35 0 0 1-.352-.352V4.551a.35.35 0 0 1 .352-.352h4.199c.191 0 .352.156.352.352v1.398c0 .195-.16.352-.352.352zm-3.852-.699h3.5v-.703h-3.5zm5.25-2.102H8.051a.35.35 0 0 1-.352-.352V1.75c0-.191.156-.352.352-.352h5.598c.195 0 .352.16.352.352v1.398a.35.35 0 0 1-.352.352zm-5.25-.699H13.3v-.699H8.398zm0 0"></path>';
|
|
3146
|
+
function $05fbe84eb34564ec$export$d10e63059ddb9fd4(props = {}) {
|
|
3147
|
+
return (0, $cV3wj$ssrElement)("svg", ()=>({
|
|
3148
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
3149
|
+
"width": "14",
|
|
3150
|
+
"height": "14",
|
|
3151
|
+
"class": "sort-icon",
|
|
3152
|
+
...props
|
|
3153
|
+
}), ()=>(0, $cV3wj$ssr)($05fbe84eb34564ec$var$_tmpl$), true);
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
|
|
3158
|
+
|
|
3159
|
+
const $b9bf7fce0ae60241$var$_tmpl$ = [
|
|
3160
|
+
"<svg",
|
|
3161
|
+
' xmlns="http://www.w3.org/2000/svg" width="14" height="15" class="filter-icon"><path d="M1.75 14.697c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V8.75c0-.096.034-.178.103-.246s.15-.103.246-.103.178.034.246.103.103.15.103.246v5.599c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-9.796c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-3.5c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103.103.153.103.253v3.5c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.796H1.053c-.292 0-.54-.103-.745-.308S0 6.938 0 6.651s.103-.54.308-.745.453-.308.745-.308h1.395c.292 0 .54.103.745.308s.308.453.308.745-.103.533-.308.738-.453.308-.745.308zM1.053 6.303c-.1 0-.185.034-.253.103s-.103.15-.103.246.034.178.103.246S.952 7 1.053 7h1.395c.1 0 .185-.034.253-.103s.103-.15.103-.246-.034-.178-.103-.246-.153-.103-.253-.103H1.053zm5.599 8.395c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246v-2.796c0-.1.034-.184.103-.253s.15-.102.246-.102.178.034.246.102.103.153.103.253v2.796c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-7c-.096 0-.178-.034-.246-.103s-.103-.15-.103-.246V1.053c0-.1.034-.185.103-.253s.15-.103.246-.103.178.034.246.103S7 .952 7 1.053v6.296c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803H5.947c-.287 0-.533-.102-.738-.308s-.308-.453-.308-.745.103-.533.308-.738.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.451.308.738-.103.54-.308.745-.453.308-.745.308zM5.947 9.099c-.096 0-.178.034-.246.103s-.103.15-.103.246.034.185.103.253.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.103-.153.103-.253-.034-.178-.103-.246-.15-.103-.246-.103H5.947zm5.605 5.599c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246v-7c0-.096.034-.178.102-.246S11.453 7 11.553 7s.178.034.246.103.103.15.103.246v7c0 .096-.034.178-.103.246s-.15.103-.246.103zm0-11.197c-.1 0-.184-.034-.253-.103s-.102-.15-.102-.246V1.053c0-.1.034-.185.102-.253s.153-.103.253-.103.178.034.246.103.103.153.103.253v2.099c0 .096-.034.178-.103.246s-.15.103-.246.103zm.697 2.803h-1.401c-.287 0-.533-.103-.738-.308s-.308-.453-.308-.745.103-.54.308-.745.451-.308.738-.308h1.401c.292 0 .54.103.745.308s.308.453.308.745-.102.54-.308.745-.453.308-.745.308zm-1.401-1.401c-.096 0-.178.034-.246.103s-.102.15-.102.246.034.178.102.246.15.103.246.103h1.401c.096 0 .178-.034.246-.103s.102-.15.102-.246-.034-.178-.102-.246-.15-.103-.246-.103h-1.401z"></path></svg>'
|
|
3162
|
+
];
|
|
3163
|
+
function $b9bf7fce0ae60241$export$28f6150e232898de() {
|
|
3164
|
+
return (0, $cV3wj$ssr)($b9bf7fce0ae60241$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
|
|
3060
3168
|
const $757dac7f7c6c5241$var$_tmpl$ = [
|
|
3061
3169
|
"<button",
|
|
3062
3170
|
' class="clear minor">',
|
|
@@ -3140,7 +3248,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({ args_for_sorting_: args_for
|
|
|
3140
3248
|
});
|
|
3141
3249
|
(0, $cV3wj$onCleanup)(resolve_cleanup_promise);
|
|
3142
3250
|
return [
|
|
3143
|
-
(0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.close_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
3251
|
+
(0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.close_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$ssrStyle)(modal_scrolling_prevented[0]() ? "overflow:hidden" : ""), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
|
|
3144
3252
|
is_open_: [
|
|
3145
3253
|
sorting_expanded,
|
|
3146
3254
|
set_sorting_expanded
|
|
@@ -3149,7 +3257,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({ args_for_sorting_: args_for
|
|
|
3149
3257
|
return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)());
|
|
3150
3258
|
},
|
|
3151
3259
|
get summary_ () {
|
|
3152
|
-
return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), args_for_sorting_.current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
3260
|
+
return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), args_for_sorting_.current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $e1bb71e65e01a3a0$export$da32f7add8a22e86), {})) : (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $05fbe84eb34564ec$export$d10e63059ddb9fd4), {})), (0, $cV3wj$escape)(i18n_.sorting_text_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
|
|
3153
3261
|
expanded_: sorting_expanded,
|
|
3154
3262
|
i18n_: i18n_
|
|
3155
3263
|
})));
|
|
@@ -3166,7 +3274,7 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({ args_for_sorting_: args_for
|
|
|
3166
3274
|
return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$6, (0, $cV3wj$ssrHydrationKey)());
|
|
3167
3275
|
},
|
|
3168
3276
|
get summary_ () {
|
|
3169
|
-
return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
3277
|
+
return (0, $cV3wj$ssr)($757dac7f7c6c5241$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $b9bf7fce0ae60241$export$28f6150e232898de), {})), (0, $cV3wj$escape)(i18n_.filters_()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
|
|
3170
3278
|
expanded_: filters_expanded,
|
|
3171
3279
|
i18n_: i18n_
|
|
3172
3280
|
})));
|
|
@@ -3338,6 +3446,21 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({ available_filters_: availab
|
|
|
3338
3446
|
}
|
|
3339
3447
|
|
|
3340
3448
|
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
const $11d594c749b76228$var$_tmpl$ = [
|
|
3452
|
+
"<svg",
|
|
3453
|
+
' xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M12.949 7.699H.352A.35.35 0 0 1 0 7.352.35.35 0 0 1 .352 7h12.598a.35.35 0 0 1 .352.352.35.35 0 0 1-.352.348zm0 0"></path></svg>'
|
|
3454
|
+
];
|
|
3455
|
+
function $11d594c749b76228$export$cb808a3c41736d8e() {
|
|
3456
|
+
return (0, $cV3wj$ssr)($11d594c749b76228$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
|
|
3341
3464
|
const $cdea4cf8c5c071ef$var$_tmpl$ = [
|
|
3342
3465
|
"<div",
|
|
3343
3466
|
' class="filters"><div class="body">',
|
|
@@ -3377,112 +3500,114 @@ const $cdea4cf8c5c071ef$var$_tmpl$ = [
|
|
|
3377
3500
|
"<!--/--></button>"
|
|
3378
3501
|
];
|
|
3379
3502
|
function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({ current_sorting_: current_sorting_ , set_extra_els_in_results_container_: set_extra_els_in_results_container_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , set_sort_or_filter_open_: set_sort_or_filter_open_ , i18n_: i18n_ , available_sortings_: available_sortings_ , available_filters_: available_filters_ , expanded_filters_: expanded_filters_ , middle_elements_: middle_elements_ , input_modal_open_: input_modal_open_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , set_sort_and_filter_element_: set_sort_and_filter_element_ , formatted_number_of_results_: formatted_number_of_results_ , filter_button_width_: filter_button_width_ , sort_button_width_: sort_button_width_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , get_extra_filters_button_: get_extra_filters_button_ , get_extra_sorting_button_: get_extra_sorting_button_ }) {
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3503
|
+
const Self = ()=>{
|
|
3504
|
+
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
3505
|
+
(0, $5efb5894079b220e$export$b288c38ae3fddb56)({
|
|
3506
|
+
available_filters_: available_filters_,
|
|
3507
|
+
selected_filters_: selected_filters_,
|
|
3508
|
+
local_filter_cache_: local_filter_cache_
|
|
3509
|
+
});
|
|
3510
|
+
const cleanup_promise = new Promise((r)=>(0, $cV3wj$onCleanup)(r));
|
|
3511
|
+
const [filters_open, set_filters_open] = search_filters_open_;
|
|
3512
|
+
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
3513
|
+
const [get_current_sorting_] = current_sorting_;
|
|
3514
|
+
const [is_small, set_is_small] = (0, $cV3wj$createSignal)(false);
|
|
3515
|
+
const dismiss_modal_ = (0, $cV3wj$catchify)(()=>{
|
|
3516
|
+
set_filters_open(false);
|
|
3517
|
+
set_sorting_open(false);
|
|
3518
|
+
});
|
|
3519
|
+
const meta_of_currently_selected_sorting_ = (0, $cV3wj$createMemo)(()=>available_sortings_()?.find?.((sorting)=>sorting.field === get_current_sorting_()?.field)?.meta);
|
|
3520
|
+
const filter_options = {
|
|
3521
|
+
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
3522
|
+
local_filter_cache_: local_filter_cache_,
|
|
3523
|
+
available_filters_: available_filters_,
|
|
3524
|
+
expanded_filters_: expanded_filters_,
|
|
3525
|
+
selected_filters_: selected_filters_,
|
|
3526
|
+
i18n_: i18n_
|
|
3527
|
+
};
|
|
3528
|
+
const sorting_options = {
|
|
3529
|
+
current_sorting_: current_sorting_,
|
|
3530
|
+
available_sortings_: available_sortings_,
|
|
3531
|
+
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
3532
|
+
};
|
|
3533
|
+
const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenFiltersButton, {
|
|
3534
|
+
tabindex_: is_tabbable ? 0 : -1,
|
|
3535
|
+
i18n_: i18n_,
|
|
3536
|
+
search_filters_open_: search_filters_open_,
|
|
3537
|
+
search_sorting_open_: search_sorting_open_,
|
|
3538
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
3539
|
+
filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
|
|
3399
3540
|
});
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
selected_filters_: selected_filters_,
|
|
3407
|
-
i18n_: i18n_
|
|
3408
|
-
};
|
|
3409
|
-
const sorting_options = {
|
|
3410
|
-
current_sorting_: current_sorting_,
|
|
3541
|
+
const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenSortingButton, {
|
|
3542
|
+
tabindex_: is_tabbable ? 0 : -1,
|
|
3543
|
+
i18n_: i18n_,
|
|
3544
|
+
get_current_sorting_: get_current_sorting_,
|
|
3545
|
+
search_filters_open_: search_filters_open_,
|
|
3546
|
+
search_sorting_open_: search_sorting_open_,
|
|
3411
3547
|
available_sortings_: available_sortings_,
|
|
3548
|
+
sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
|
|
3412
3549
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
3413
|
-
};
|
|
3414
|
-
const make_open_filters_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenFiltersButton, {
|
|
3415
|
-
tabindex_: is_tabbable ? 0 : -1,
|
|
3416
|
-
i18n_: i18n_,
|
|
3417
|
-
search_filters_open_: search_filters_open_,
|
|
3418
|
-
search_sorting_open_: search_sorting_open_,
|
|
3419
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
3420
|
-
filter_button_width_: adhere_to_width ? filter_button_width_ : undefined
|
|
3421
|
-
});
|
|
3422
|
-
const make_open_sorting_button = (adhere_to_width = false, is_tabbable = false)=>(0, $cV3wj$createComponent)($cdea4cf8c5c071ef$var$OpenSortingButton, {
|
|
3423
|
-
tabindex_: is_tabbable ? 0 : -1,
|
|
3424
|
-
i18n_: i18n_,
|
|
3425
|
-
get_current_sorting_: get_current_sorting_,
|
|
3426
|
-
search_filters_open_: search_filters_open_,
|
|
3427
|
-
search_sorting_open_: search_sorting_open_,
|
|
3428
|
-
available_sortings_: available_sortings_,
|
|
3429
|
-
sort_button_width_: adhere_to_width ? sort_button_width_ : undefined,
|
|
3430
|
-
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
3431
|
-
});
|
|
3432
|
-
let open_modal_;
|
|
3433
|
-
let close_modal_;
|
|
3434
|
-
let grid_is_in_original_state = true;
|
|
3435
|
-
(0, $cV3wj$createComputed)(()=>{
|
|
3436
|
-
const fi_o = filters_open();
|
|
3437
|
-
const so_o = sorting_open();
|
|
3438
|
-
const i_s = is_small();
|
|
3439
|
-
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
3440
|
-
if ((fi_o || so_o) && !i_s) {
|
|
3441
|
-
if (!grid_is_in_original_state) return;
|
|
3442
|
-
set_sort_or_filter_open_(true);
|
|
3443
|
-
grid_is_in_original_state = false;
|
|
3444
|
-
} else if (!grid_is_in_original_state) {
|
|
3445
|
-
set_sort_or_filter_open_(false);
|
|
3446
|
-
grid_is_in_original_state = true;
|
|
3447
|
-
}
|
|
3448
3550
|
});
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3551
|
+
let open_modal_;
|
|
3552
|
+
let close_modal_;
|
|
3553
|
+
let grid_is_in_original_state = true;
|
|
3554
|
+
(0, $cV3wj$createComputed)(()=>{
|
|
3555
|
+
const fi_o = filters_open();
|
|
3556
|
+
const so_o = sorting_open();
|
|
3557
|
+
const i_s = is_small();
|
|
3558
|
+
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
3559
|
+
if ((fi_o || so_o) && !i_s) {
|
|
3560
|
+
if (!grid_is_in_original_state) return;
|
|
3561
|
+
set_sort_or_filter_open_(true);
|
|
3562
|
+
grid_is_in_original_state = false;
|
|
3563
|
+
} else if (!grid_is_in_original_state) {
|
|
3564
|
+
set_sort_or_filter_open_(false);
|
|
3565
|
+
grid_is_in_original_state = true;
|
|
3566
|
+
}
|
|
3567
|
+
});
|
|
3568
|
+
(0, $cV3wj$createEffect)(()=>{
|
|
3569
|
+
if (!filters_open() && !sorting_open()) {
|
|
3570
|
+
close_modal_?.();
|
|
3571
|
+
set_extra_els_in_results_container_("");
|
|
3572
|
+
} else if (is_small()) {
|
|
3573
|
+
if ((0, $cV3wj$untrack)(()=>input_modal_open_?.())) {
|
|
3574
|
+
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
3575
|
+
set_filters_open(false);
|
|
3576
|
+
set_sorting_open(false);
|
|
3577
|
+
return;
|
|
3466
3578
|
}
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3579
|
+
open_modal_?.();
|
|
3580
|
+
set_extra_els_in_results_container_("");
|
|
3581
|
+
} else {
|
|
3582
|
+
close_modal_?.();
|
|
3583
|
+
if (filters_open()) set_extra_els_in_results_container_((0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $fab07f52c9861732$export$3f1a388cc0d8fed7), filter_options))));
|
|
3584
|
+
else set_extra_els_in_results_container_((0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $68a258a92b88f02f$export$1f1775a58da589b5), sorting_options))));
|
|
3585
|
+
}
|
|
3586
|
+
});
|
|
3587
|
+
(0, $cV3wj$catchify)(async ()=>{
|
|
3588
|
+
({ open_modal_: open_modal_ , close_modal_: close_modal_ } = await (0, $194bd6b8e4c59830$export$79b1565500412d9b)((0, $757dac7f7c6c5241$export$9bf11afa910f536e), {
|
|
3589
|
+
args_for_sorting_: sorting_options,
|
|
3590
|
+
args_for_filtering_: filter_options,
|
|
3591
|
+
search_filters_open_: search_filters_open_,
|
|
3592
|
+
search_sorting_open_: search_sorting_open_,
|
|
3593
|
+
formatted_number_of_results_: formatted_number_of_results_,
|
|
3594
|
+
dismiss_modal_: dismiss_modal_,
|
|
3595
|
+
i18n_: i18n_
|
|
3596
|
+
}));
|
|
3597
|
+
const { remove: remove } = (0, $cV3wj$javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches));
|
|
3598
|
+
cleanup_promise.then(remove);
|
|
3599
|
+
})();
|
|
3600
|
+
get_extra_filters_button_?.(make_open_filters_button());
|
|
3601
|
+
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
3602
|
+
return (0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(make_open_filters_button(true, true)), (0, $cV3wj$escape)(middle_elements_?.()), (0, $cV3wj$escape)(make_open_sorting_button(true, true)));
|
|
3603
|
+
};
|
|
3604
|
+
return (0, $cV3wj$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
3605
|
+
message_: "Sorting and filters failed",
|
|
3606
|
+
severity_: "error",
|
|
3607
|
+
get children () {
|
|
3608
|
+
return (0, $cV3wj$createComponent)(Self, {});
|
|
3484
3609
|
}
|
|
3485
|
-
})
|
|
3610
|
+
});
|
|
3486
3611
|
}
|
|
3487
3612
|
function $cdea4cf8c5c071ef$var$OpenFiltersButton({ i18n_: i18n_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , filter_button_width_: filter_button_width_ , tabindex_: tabindex_ , number_of_rendered_selected_filters_items_: [num_selected_filters] }) {
|
|
3488
3613
|
const filters_closed = (0, $cV3wj$createMemo)(()=>!search_filters_open_[0]());
|
|
@@ -3494,17 +3619,17 @@ function $cdea4cf8c5c071ef$var$OpenFiltersButton({ i18n_: i18n_ , search_filters
|
|
|
3494
3619
|
get children () {
|
|
3495
3620
|
return (0, $cV3wj$ssr)($cdea4cf8c5c071ef$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrStyle)(filters_closed() ? `` : `opacity:0`), (0, $cV3wj$escape)(num_selected_filters()));
|
|
3496
3621
|
}
|
|
3497
|
-
})), (0, $cV3wj$ssrAttribute)("tabindex", (0, $cV3wj$escape)(tabindex_, true), false), `${!filters_closed() ? "major" : ""} ${filters_closed() ? "minor" : ""}${"filter toggle-button major-minor-transition"}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)((filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(), true), false), (0, $cV3wj$ssrStyle)(filter_button_width_?.() ? {
|
|
3622
|
+
})), (0, $cV3wj$ssrAttribute)("tabindex", (0, $cV3wj$escape)(tabindex_, true), false), `${!filters_closed() ? "major" : ""} ${filters_closed() ? "minor" : ""}${"filter toggle-button major-minor-transition" + ((0, $cV3wj$isServer) ? " minor" : "")}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)((filters_closed() ? i18n_.open_filters_ : i18n_.close_filters_)(), true), false), (0, $cV3wj$ssrStyle)(filter_button_width_?.() ? {
|
|
3498
3623
|
width: filter_button_width_() + "px"
|
|
3499
3624
|
} : {}), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
3500
3625
|
get when () {
|
|
3501
3626
|
return filters_closed();
|
|
3502
3627
|
},
|
|
3503
3628
|
get fallback () {
|
|
3504
|
-
return (0, $cV3wj$createComponent)((0, $
|
|
3629
|
+
return (0, $cV3wj$createComponent)((0, $11d594c749b76228$export$cb808a3c41736d8e), {});
|
|
3505
3630
|
},
|
|
3506
3631
|
get children () {
|
|
3507
|
-
return (0, $cV3wj$createComponent)((0, $
|
|
3632
|
+
return (0, $cV3wj$createComponent)((0, $b9bf7fce0ae60241$export$28f6150e232898de), {});
|
|
3508
3633
|
}
|
|
3509
3634
|
})), (0, $cV3wj$escape)(i18n_.filter_text_()));
|
|
3510
3635
|
}
|
|
@@ -3521,10 +3646,10 @@ function $cdea4cf8c5c071ef$var$OpenSortingButton({ i18n_: i18n_ , get_current_so
|
|
|
3521
3646
|
return sorting_closed();
|
|
3522
3647
|
},
|
|
3523
3648
|
get fallback () {
|
|
3524
|
-
return (0, $cV3wj$createComponent)((0, $
|
|
3649
|
+
return (0, $cV3wj$createComponent)((0, $11d594c749b76228$export$cb808a3c41736d8e), {});
|
|
3525
3650
|
},
|
|
3526
3651
|
get children () {
|
|
3527
|
-
return get_current_sorting_()?.order === "asc" ? (0, $cV3wj$createComponent)((0, $
|
|
3652
|
+
return get_current_sorting_()?.order === "asc" ? (0, $cV3wj$createComponent)((0, $e1bb71e65e01a3a0$export$da32f7add8a22e86), {}) : (0, $cV3wj$createComponent)((0, $05fbe84eb34564ec$export$d10e63059ddb9fd4), {});
|
|
3528
3653
|
}
|
|
3529
3654
|
})));
|
|
3530
3655
|
}
|
|
@@ -3641,6 +3766,21 @@ function $bf52d9f9eebd1938$export$5196e4c01fa56fcb({ children: children , on_clo
|
|
|
3641
3766
|
|
|
3642
3767
|
|
|
3643
3768
|
|
|
3769
|
+
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
|
|
3774
|
+
const $f9182ab2348d1080$var$_tmpl$ = [
|
|
3775
|
+
"<svg",
|
|
3776
|
+
' xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M6.402.453L2.203 4.652a.35.35 0 0 0 0 .496c.137.137.359.137.492 0l3.605-3.605v11.406a.35.35 0 0 0 .348.352.35.35 0 0 0 .352-.352V1.543l3.602 3.605a.35.35 0 0 0 .496 0c.066-.07.102-.16.102-.25a.35.35 0 0 0-.102-.246L6.895.453c-.133-.137-.355-.137-.492 0zm0 0"></path></svg>'
|
|
3777
|
+
];
|
|
3778
|
+
function $f9182ab2348d1080$export$2624c5890f1bbcf7() {
|
|
3779
|
+
return (0, $cV3wj$ssr)($f9182ab2348d1080$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
|
|
3783
|
+
|
|
3644
3784
|
const $0b0380f75d729d63$var$_tmpl$ = [
|
|
3645
3785
|
"<div",
|
|
3646
3786
|
' class="',
|
|
@@ -3653,6 +3793,7 @@ const $0b0380f75d729d63$var$_tmpl$ = [
|
|
|
3653
3793
|
"</div></button></div>"
|
|
3654
3794
|
];
|
|
3655
3795
|
function $0b0380f75d729d63$export$b23abd26de154ede(props) {
|
|
3796
|
+
if (0, $cV3wj$isServer) return; // won't show in initial render and need scroll position
|
|
3656
3797
|
const [is_small, set_is_small] = (0, $cV3wj$createSignal)(true);
|
|
3657
3798
|
(0, $cV3wj$onCleanup)((0, $cV3wj$javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
|
|
3658
3799
|
return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
@@ -3735,7 +3876,7 @@ function $0b0380f75d729d63$var$ActualFloatingButtons({ search_filters_open_: [ge
|
|
|
3735
3876
|
await cleanup_promise;
|
|
3736
3877
|
is.disconnect();
|
|
3737
3878
|
}));
|
|
3738
|
-
return (0, $cV3wj$ssr)($0b0380f75d729d63$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `floating-buttons ${is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast() ? "show-them" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.filter_text_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
3879
|
+
return (0, $cV3wj$ssr)($0b0380f75d729d63$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), `floating-buttons ${is_scrolling_upwards() && modal_is_closed() && !regular_buttons_are_in_view() && !get_is_showing_toast() ? "show-them" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.filter_text_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $b9bf7fce0ae60241$export$28f6150e232898de), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.sorting_text_(), true), false), current_sorting_[0]()?.order === "asc" ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $e1bb71e65e01a3a0$export$da32f7add8a22e86), {})) : (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $05fbe84eb34564ec$export$d10e63059ddb9fd4), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.scroll_to_top_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f9182ab2348d1080$export$2624c5890f1bbcf7), {})));
|
|
3739
3880
|
}
|
|
3740
3881
|
|
|
3741
3882
|
|
|
@@ -3984,7 +4125,7 @@ const $06edf3aec9073663$var$_tmpl$ = [
|
|
|
3984
4125
|
">",
|
|
3985
4126
|
"</a>"
|
|
3986
4127
|
];
|
|
3987
|
-
function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ ,
|
|
4128
|
+
function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
|
|
3988
4129
|
let scrolling_logic_ran_for_query_id = false;
|
|
3989
4130
|
let last_scroll_position;
|
|
3990
4131
|
let scroll_to_element_on_dom_insertion;
|
|
@@ -4040,7 +4181,6 @@ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklink
|
|
|
4040
4181
|
get children () {
|
|
4041
4182
|
return (0, $cV3wj$ssr)($06edf3aec9073663$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.quicklinks_aria_label_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f32e14878e75af51$export$6649caad96ef8870), {
|
|
4042
4183
|
faded_opacity_: 0.5,
|
|
4043
|
-
button_: slider_arrow_button_,
|
|
4044
4184
|
mutation_plugins_: mutation_plugins,
|
|
4045
4185
|
slider_ref_: (slider)=>{
|
|
4046
4186
|
const { insert_here: insert_here , intersecting_items_object: intersecting_items_object } = slider;
|
|
@@ -4387,6 +4527,7 @@ function $a1c4da51ff91dd01$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
4387
4527
|
|
|
4388
4528
|
|
|
4389
4529
|
|
|
4530
|
+
|
|
4390
4531
|
const $df5d81d0fe61ff21$var$_tmpl$ = [
|
|
4391
4532
|
"<div",
|
|
4392
4533
|
' class="product-count"><!--#-->',
|
|
@@ -4412,7 +4553,7 @@ const $df5d81d0fe61ff21$var$_tmpl$ = [
|
|
|
4412
4553
|
"<!--/--><!--#-->",
|
|
4413
4554
|
"<!--/--></div>"
|
|
4414
4555
|
];
|
|
4415
|
-
function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ ,
|
|
4556
|
+
function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , router_: router_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
4416
4557
|
let results_for;
|
|
4417
4558
|
let only_show_filters_opener_;
|
|
4418
4559
|
let middle_elements_;
|
|
@@ -4559,12 +4700,13 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4559
4700
|
(0, $cV3wj$createRenderEffect)((0, $cV3wj$catchify)(async ()=>{
|
|
4560
4701
|
const slim = is_slim_();
|
|
4561
4702
|
const only_show_filters_opener = only_show_filters_opener_?.();
|
|
4703
|
+
const owner = (0, $cV3wj$getOwner)();
|
|
4562
4704
|
await set_results_filters(); // remove elements, wait one microtask for updates to have been committed to the DOM, otherwise we'd try to do illegal DOM operations
|
|
4563
4705
|
// signals can't be read reactively anymore after the await FYI
|
|
4564
|
-
set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4706
|
+
(0, $cV3wj$runWithOwner)(owner, ()=>set_results_filters(slim ? only_show_filters_opener ? filters_opener : [
|
|
4707
|
+
results_for,
|
|
4708
|
+
filters_opener
|
|
4709
|
+
] : (0, $cV3wj$ssr)($df5d81d0fe61ff21$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(results_for), (0, $cV3wj$escape)(filters_opener))));
|
|
4568
4710
|
}));
|
|
4569
4711
|
(0, $fc5a12f3a857ca30$export$e702733a056c40d6)({
|
|
4570
4712
|
selected_filters_: selected_filters_,
|
|
@@ -4583,7 +4725,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4583
4725
|
get_breadcrumb_accessor_?.(crumb_data_);
|
|
4584
4726
|
get_quicklinks_accessor_?.(quicklinks_data_);
|
|
4585
4727
|
return [
|
|
4586
|
-
document.createComment("Category page based on Depict SDK"),
|
|
4728
|
+
(0, $cV3wj$isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"),
|
|
4587
4729
|
(0, $cV3wj$ssr)($df5d81d0fe61ff21$var$_tmpl$4, (0, $cV3wj$ssrHydrationKey)() + (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)((0, $f86ba724282f6690$export$44dad306455dddf).PLP_CATEGORY, true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
4588
4730
|
when: show_breadcrumbs_,
|
|
4589
4731
|
get children () {
|
|
@@ -4600,7 +4742,6 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4600
4742
|
quicklinks_data_: quicklinks_data_,
|
|
4601
4743
|
current_query_id_: query_id_,
|
|
4602
4744
|
router_: router_,
|
|
4603
|
-
slider_arrow_button_: slider_arrow_button_,
|
|
4604
4745
|
breadcrumb_data_: crumb_data_,
|
|
4605
4746
|
i18n_: i18n_
|
|
4606
4747
|
});
|
|
@@ -4618,7 +4759,6 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4618
4759
|
i18n_: i18n_,
|
|
4619
4760
|
selected_filters_: selected_filters_,
|
|
4620
4761
|
local_filter_cache_: local_filter_cache_,
|
|
4621
|
-
slider_arrow_button_: slider_arrow_button_,
|
|
4622
4762
|
search_filters_open_: category_filters_open_,
|
|
4623
4763
|
search_sorting_open_: category_sorting_open_,
|
|
4624
4764
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -4685,7 +4825,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4685
4825
|
|
|
4686
4826
|
let $90980bd87c9960f9$var$has_ran = false;
|
|
4687
4827
|
function $90980bd87c9960f9$export$5162a71f252e6122() {
|
|
4688
|
-
if ($90980bd87c9960f9$var$has_ran) return;
|
|
4828
|
+
if ($90980bd87c9960f9$var$has_ran || typeof history !== "object") return;
|
|
4689
4829
|
$90980bd87c9960f9$var$has_ran = true;
|
|
4690
4830
|
for (const function_name of [
|
|
4691
4831
|
"replaceState",
|
|
@@ -4791,8 +4931,7 @@ function $c16e74cfe125bb05$export$f091cbac892643a4(obj) {
|
|
|
4791
4931
|
|
|
4792
4932
|
function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
|
|
4793
4933
|
const component_in_error_boundary = (do_with_elements)=>{
|
|
4794
|
-
|
|
4795
|
-
return (0, $b7436a6d1fd64e3b$export$b69d0d92862de18b)({
|
|
4934
|
+
const error_boundary_wrapped = (0, $b7436a6d1fd64e3b$export$b69d0d92862de18b)({
|
|
4796
4935
|
severity_: "error",
|
|
4797
4936
|
message_: error_message,
|
|
4798
4937
|
get children () {
|
|
@@ -4800,7 +4939,12 @@ function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
|
|
|
4800
4939
|
do_with_elements?.(elements);
|
|
4801
4940
|
return elements;
|
|
4802
4941
|
}
|
|
4803
|
-
})
|
|
4942
|
+
});
|
|
4943
|
+
// This might return an accessor, in that case we need to "unwrap" it since our SDK consumers expect HTML elements or arrays thereof
|
|
4944
|
+
if (typeof error_boundary_wrapped === "function") // @ts-ignore
|
|
4945
|
+
return error_boundary_wrapped();
|
|
4946
|
+
// On the server it returns a string, so we just return that
|
|
4947
|
+
return error_boundary_wrapped;
|
|
4804
4948
|
};
|
|
4805
4949
|
const owner = (0, $cV3wj$getOwner)();
|
|
4806
4950
|
if (owner == null) return (0, $cV3wj$createRoot)((dispose)=>{
|
|
@@ -4830,7 +4974,7 @@ function $ccd5db07a3a069c5$export$477caf01aecaeb2a(options) {
|
|
|
4830
4974
|
const [get_sorting_, set_sorting] = current_sorting_;
|
|
4831
4975
|
const [get_selected_filters_, set_selected_filters] = selected_filters_;
|
|
4832
4976
|
const [get_has_sideways_filter_clearing_flag_, set_has_sideways_filter_clearing_flag] = sideways_filter_clearing_flag_;
|
|
4833
|
-
const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(location.
|
|
4977
|
+
const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(globalThis?.location?.href ?? "https://example.com");
|
|
4834
4978
|
const history_change_handler = (0, $cV3wj$catchify)(()=>set_current_href(location.href));
|
|
4835
4979
|
const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)());
|
|
4836
4980
|
let writer_started = false;
|
|
@@ -4966,7 +5110,7 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
|
|
|
4966
5110
|
* Call this if you *just* want to replace the state object in history.state
|
|
4967
5111
|
*/ replace_state_: (new_state)=>{
|
|
4968
5112
|
// This doesn't break any router, so we just do this directly for now, since many don't expose an interface for changing the state
|
|
4969
|
-
history
|
|
5113
|
+
globalThis?.history?.replaceState(new_state, "");
|
|
4970
5114
|
},
|
|
4971
5115
|
/**
|
|
4972
5116
|
* Call this to change the URL
|
|
@@ -5008,6 +5152,7 @@ class $4fd2ba03703a7d92$export$7e1297a3a19f10d8 {
|
|
|
5008
5152
|
}
|
|
5009
5153
|
|
|
5010
5154
|
|
|
5155
|
+
|
|
5011
5156
|
const $961b5c64bef4662f$var$_tmpl$ = [
|
|
5012
5157
|
"<div",
|
|
5013
5158
|
' class="depict plp category">',
|
|
@@ -5058,7 +5203,8 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5058
5203
|
constructor({ api: api , on_navigation: on_navigation , ...props_on_class }){
|
|
5059
5204
|
const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
5060
5205
|
(0, $cV3wj$runWithOwner)(owner, ()=>{
|
|
5061
|
-
if ($961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed
|
|
5206
|
+
if ($961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
5207
|
+
throw new Error("You can only have one instance of DepictCategory due to state limitations");
|
|
5062
5208
|
$961b5c64bef4662f$export$f34314aa9505732e.#has_been_constructed = true;
|
|
5063
5209
|
Object.assign(this, props_on_class); // set initial signal values
|
|
5064
5210
|
(0, $90980bd87c9960f9$export$5162a71f252e6122)();
|
|
@@ -5086,11 +5232,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5086
5232
|
router_: this.#router,
|
|
5087
5233
|
selected_filters_: selected_filters_,
|
|
5088
5234
|
current_sorting_: current_sorting_,
|
|
5089
|
-
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
|
|
5090
|
-
slider_arrow_button_: (0, $cV3wj$GenericSliderArrowButton)({
|
|
5091
|
-
height_: 12,
|
|
5092
|
-
width_: 6.46
|
|
5093
|
-
})
|
|
5235
|
+
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
|
|
5094
5236
|
});
|
|
5095
5237
|
});
|
|
5096
5238
|
}
|
|
@@ -5104,7 +5246,7 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
|
|
|
5104
5246
|
grid_spacing: grid_spacing.horizontal
|
|
5105
5247
|
};
|
|
5106
5248
|
return (0, $16b52438165aafe2$export$23fca46f3143581f)(()=>{
|
|
5107
|
-
const { state_: { category_local_filter_cache: local_filter_cache_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , router_: router_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ ,
|
|
5249
|
+
const { state_: { category_local_filter_cache: local_filter_cache_ , category_filters_open: category_filters_open_ , category_sorting_open: category_sorting_open_ , category_expanded_filters: expanded_filters_ , category_expanded_hierarchical_filters: expanded_hierarchical_filters_ , category_scroll_restoration_data: scroll_restoration_data_ } , current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , reset_history_state_: reset_history_state_ , depict_api_: depict_api_ , i18n_: i18n_ , router_: router_ , breadcrumb_signal_: breadcrumb_signal_ , quicklinks_signal_: quicklinks_signal_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ } = shared_properties;
|
|
5108
5250
|
(0, $cV3wj$onCleanup)(reset_history_state_);
|
|
5109
5251
|
return (0, $df5d81d0fe61ff21$export$f7d2f673fc2f091d)({
|
|
5110
5252
|
tenant_: ()=>depict_category.merchant,
|
|
@@ -5123,7 +5265,6 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e({ depict_category: depict_cat
|
|
|
5123
5265
|
get_quicklinks_accessor_: (accessor)=>(0, $cV3wj$createComputed)(()=>quicklinks_signal_[1](accessor())),
|
|
5124
5266
|
category_filters_open_: category_filters_open_,
|
|
5125
5267
|
category_sorting_open_: category_sorting_open_,
|
|
5126
|
-
slider_arrow_button_: slider_arrow_button_,
|
|
5127
5268
|
expanded_filters_: expanded_filters_,
|
|
5128
5269
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
5129
5270
|
selected_filters_: selected_filters_,
|
|
@@ -5150,7 +5291,7 @@ function $961b5c64bef4662f$export$5b7c3ce0ebe51f86({ depict_category: depict_cat
|
|
|
5150
5291
|
});
|
|
5151
5292
|
}
|
|
5152
5293
|
function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_category }) {
|
|
5153
|
-
const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_
|
|
5294
|
+
const { i18n_: i18n_ , quicklinks_signal_: [quicklinks_data_] , breadcrumb_signal_: [breadcrumb_data_] , router_: router_ } = $961b5c64bef4662f$var$get_shared_properties(depict_category);
|
|
5154
5295
|
return (0, $cV3wj$createComponent)($961b5c64bef4662f$var$InExternalAreaDiv, {
|
|
5155
5296
|
get children () {
|
|
5156
5297
|
return (0, $06edf3aec9073663$export$466cdc317043f6cb)({
|
|
@@ -5158,7 +5299,6 @@ function $961b5c64bef4662f$export$de035477d6fef996({ depict_category: depict_cat
|
|
|
5158
5299
|
quicklinks_data_: quicklinks_data_,
|
|
5159
5300
|
router_: router_,
|
|
5160
5301
|
current_query_id_: ()=>depict_category.category_id,
|
|
5161
|
-
slider_arrow_button_: slider_arrow_button_,
|
|
5162
5302
|
breadcrumb_data_: breadcrumb_data_
|
|
5163
5303
|
});
|
|
5164
5304
|
}
|
|
@@ -5290,9 +5430,9 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
5290
5430
|
|
|
5291
5431
|
const $5c5f95951393e5d1$var$TEN_MINUTES = 600000;
|
|
5292
5432
|
const $5c5f95951393e5d1$var$TWENTY_FOUR_HOURS = 86400000;
|
|
5293
|
-
async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market) {
|
|
5433
|
+
async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market, type) {
|
|
5294
5434
|
let localstorage_value;
|
|
5295
|
-
const localstorage_key = `
|
|
5435
|
+
const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
|
|
5296
5436
|
try {
|
|
5297
5437
|
const in_ls = localStorage[localstorage_key];
|
|
5298
5438
|
if (in_ls) localstorage_value = JSON.parse(in_ls);
|
|
@@ -5308,7 +5448,7 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market) {
|
|
|
5308
5448
|
return stored_queries;
|
|
5309
5449
|
else if (age < $5c5f95951393e5d1$var$TWENTY_FOUR_HOURS) {
|
|
5310
5450
|
// if younger than a day, return stored value but still trigger re-fetch, so we have fresh data next page load (stale data this one but never a delay)
|
|
5311
|
-
$5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key).catch((e)=>(0, $cV3wj$report)([
|
|
5451
|
+
$5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $cV3wj$report)([
|
|
5312
5452
|
e,
|
|
5313
5453
|
"couldn't fetch categories"
|
|
5314
5454
|
], "warning"));
|
|
@@ -5316,10 +5456,10 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market) {
|
|
|
5316
5456
|
}
|
|
5317
5457
|
// else: we are older and just fetch, store and return new queries
|
|
5318
5458
|
}
|
|
5319
|
-
return await $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key);
|
|
5459
|
+
return await $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
|
|
5320
5460
|
}
|
|
5321
|
-
async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key) {
|
|
5322
|
-
const new_categories = await $5c5f95951393e5d1$var$download_categories(tenant, market);
|
|
5461
|
+
async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
|
|
5462
|
+
const new_categories = await $5c5f95951393e5d1$var$download_categories(tenant, market, type);
|
|
5323
5463
|
try {
|
|
5324
5464
|
localStorage[localstorage_key] = JSON.stringify({
|
|
5325
5465
|
updated: +new Date(),
|
|
@@ -5333,12 +5473,15 @@ async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market,
|
|
|
5333
5473
|
}
|
|
5334
5474
|
return new_categories;
|
|
5335
5475
|
}
|
|
5336
|
-
async function $5c5f95951393e5d1$var$download_categories(tenant, market) {
|
|
5476
|
+
async function $5c5f95951393e5d1$var$download_categories(tenant, market, type) {
|
|
5337
5477
|
const fetched = await (0, $cV3wj$fetch_retry)((0, $cV3wj$base_url) + "/v2/product-listing/queries", {
|
|
5338
5478
|
method: "POST",
|
|
5339
5479
|
body: JSON.stringify({
|
|
5340
5480
|
tenant: tenant,
|
|
5341
|
-
market: market
|
|
5481
|
+
market: market,
|
|
5482
|
+
...type ? {
|
|
5483
|
+
type: type
|
|
5484
|
+
} : {}
|
|
5342
5485
|
})
|
|
5343
5486
|
});
|
|
5344
5487
|
if (!fetched) return [];
|
|
@@ -5447,6 +5590,31 @@ function $897bd4a76f611b38$export$d757d54550ebfb3d({ category_suggestion_: categ
|
|
|
5447
5590
|
|
|
5448
5591
|
|
|
5449
5592
|
|
|
5593
|
+
|
|
5594
|
+
|
|
5595
|
+
const $22e59517c2ec94d3$var$_tmpl$ = [
|
|
5596
|
+
"<svg",
|
|
5597
|
+
' xmlns="http://www.w3.org/2000/svg" width="24" height="16"><path d="M.773 7.371L7.98.176C8.098.059 8.238 0 8.402 0s.305.059.422.176S9 .434 9 .598s-.059.305-.176.422L2.648 7.195h19.547a.59.59 0 0 1 .609.609c0 .172-.059.305-.176.422s-.262.176-.434.176H2.648l6.176 6.176a.59.59 0 0 1 .176.426c0 .16-.059.301-.176.422-.055.059-.121.109-.199.137s-.148.039-.223.039-.156-.012-.234-.039a.54.54 0 0 1-.187-.137L.773 8.227c-.117-.117-.176-.258-.176-.422a.6.6 0 0 1 .176-.434zm0 0"></path></svg>'
|
|
5598
|
+
];
|
|
5599
|
+
function $22e59517c2ec94d3$export$1c641004b5485fed() {
|
|
5600
|
+
return (0, $cV3wj$ssr)($22e59517c2ec94d3$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
|
|
5604
|
+
|
|
5605
|
+
|
|
5606
|
+
|
|
5607
|
+
const $16f0ed5ea30d8d9c$var$_tmpl$ = '<path d="M19.811 20.174l-6.234-6.809a7.96 7.96 0 0 0 .923-1.179c.274-.424.502-.865.687-1.323a8.04 8.04 0 0 0 .42-1.436 7.88 7.88 0 0 0 .144-1.507c0-.526-.051-1.042-.154-1.548-.096-.506-.243-.995-.441-1.466s-.441-.919-.728-1.343a8.28 8.28 0 0 0-.984-1.21 7.86 7.86 0 0 0-1.2-.984A7.56 7.56 0 0 0 10.89.651C10.418.453 9.929.302 9.423.2S8.401.046 7.875.046 6.833.097 6.327.2 5.332.453 4.86.651a7.56 7.56 0 0 0-1.354.718c-.431.287-.831.615-1.2.984a8.28 8.28 0 0 0-.984 1.21 7.73 7.73 0 0 0-.728 1.343c-.198.472-.349.96-.451 1.466A8.31 8.31 0 0 0 0 7.921a8.31 8.31 0 0 0 .144 1.548c.103.506.253.995.451 1.466a8.08 8.08 0 0 0 .728 1.354 7.86 7.86 0 0 0 .984 1.2 7.54 7.54 0 0 0 1.2.995c.431.287.882.53 1.354.728.472.191.96.338 1.466.441a8.31 8.31 0 0 0 1.548.144c.451 0 .896-.038 1.333-.113a7.83 7.83 0 0 0 1.282-.328 7.55 7.55 0 0 0 1.2-.533 8.08 8.08 0 0 0 1.107-.749l6.245 6.809a.45.45 0 0 0 .174.123.55.55 0 0 0 .205.041.61.61 0 0 0 .195-.031c.061-.021.116-.055.164-.102.109-.096.164-.219.164-.369.007-.144-.038-.267-.133-.369zM1.046 7.921c0-.937.178-1.818.533-2.646.362-.834.851-1.559 1.466-2.174.622-.615 1.347-1.101 2.174-1.456.827-.362 1.712-.543 2.656-.543s1.829.181 2.656.543c.827.355 1.548.841 2.164 1.456.622.615 1.111 1.34 1.466 2.174a6.52 6.52 0 0 1 .543 2.646c0 .943-.181 1.829-.543 2.656a6.89 6.89 0 0 1-1.466 2.174c-.615.615-1.336 1.104-2.164 1.466-.827.356-1.712.533-2.656.533s-1.829-.178-2.656-.533c-.827-.362-1.552-.851-2.174-1.466-.615-.622-1.104-1.347-1.466-2.174-.355-.827-.533-1.712-.533-2.656z"></path>';
|
|
5608
|
+
function $16f0ed5ea30d8d9c$export$82eafebb825fc23f(props = {}) {
|
|
5609
|
+
return (0, $cV3wj$ssrElement)("svg", ()=>({
|
|
5610
|
+
...props,
|
|
5611
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
5612
|
+
"width": "20",
|
|
5613
|
+
"height": "22"
|
|
5614
|
+
}), ()=>(0, $cV3wj$ssr)($16f0ed5ea30d8d9c$var$_tmpl$), true);
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5617
|
+
|
|
5450
5618
|
const $5285d2814d0fac0c$var$_tmpl$ = [
|
|
5451
5619
|
"<button",
|
|
5452
5620
|
' class="back" type="button"',
|
|
@@ -5479,9 +5647,9 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({ search_field_value_: search
|
|
|
5479
5647
|
return (0, $cV3wj$ssr)($5285d2814d0fac0c$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
5480
5648
|
when: on_back_,
|
|
5481
5649
|
get children () {
|
|
5482
|
-
return (0, $cV3wj$ssr)($5285d2814d0fac0c$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.back_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
5650
|
+
return (0, $cV3wj$ssr)($5285d2814d0fac0c$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.back_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $22e59517c2ec94d3$export$1c641004b5485fed), {})));
|
|
5483
5651
|
}
|
|
5484
|
-
})), `query ${!!on_back_ ? "has-adjacent-back-button" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_field_field_aria_label_(), true), false) + (0, $cV3wj$ssrAttribute)("value", (0, $cV3wj$escape)(search_field_value_[0](), true), false) + (0, $cV3wj$ssrAttribute)("placeholder", (0, $cV3wj$escape)(i18n_.placeholder_text_(), true), false), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.clear_filters_query_sorting_after_submit_(), true), false), (0, $cV3wj$ssrStyle)((0, $cV3wj$createMemo)(()=>search_field_value_[0]() ? "" : "display: none")()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
5652
|
+
})), `query ${!!on_back_ ? "has-adjacent-back-button" : ""}`, (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_field_field_aria_label_(), true), false) + (0, $cV3wj$ssrAttribute)("value", (0, $cV3wj$escape)(search_field_value_[0](), true), false) + (0, $cV3wj$ssrAttribute)("placeholder", (0, $cV3wj$escape)(i18n_.placeholder_text_(), true), false), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.clear_filters_query_sorting_after_submit_(), true), false), (0, $cV3wj$ssrStyle)((0, $cV3wj$createMemo)(()=>search_field_value_[0]() ? "" : "display: none")()), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})), (0, $cV3wj$ssrAttribute)("aria-label", (0, $cV3wj$escape)(i18n_.search_submit_button_aria_label_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $16f0ed5ea30d8d9c$export$82eafebb825fc23f), {})));
|
|
5485
5653
|
}
|
|
5486
5654
|
|
|
5487
5655
|
|
|
@@ -5669,7 +5837,7 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({ selected_filters_: selected
|
|
|
5669
5837
|
|
|
5670
5838
|
|
|
5671
5839
|
function $21f51c14cb3f586f$export$84bba84a7b837187(read_search_query) {
|
|
5672
|
-
const ls = localStorage;
|
|
5840
|
+
const ls = globalThis?.localStorage || {};
|
|
5673
5841
|
const key = "depict_searches";
|
|
5674
5842
|
const previous_searches = (0, $cV3wj$createSignal)(JSON.parse(ls[key] || "[]"));
|
|
5675
5843
|
const [read_previous_searches, write_previous_searches] = previous_searches;
|
|
@@ -5917,7 +6085,6 @@ function $eea41f703612261b$export$62f101a8aa597bf8({ depict_api_: depict_api_ ,
|
|
|
5917
6085
|
|
|
5918
6086
|
|
|
5919
6087
|
|
|
5920
|
-
|
|
5921
6088
|
function $a36cbc4f68bfd590$export$91c3b6774e8be0f5({ param_: param_ , value_: value_ , url_transformer_: url_transformer_ }) {
|
|
5922
6089
|
const [get_current_href, set_current_href] = (0, $cV3wj$createSignal)(location.href);
|
|
5923
6090
|
const [exit_iterable, exitable_iterable] = (0, $cV3wj$make_asyncIterable_exiter)((0, $cV3wj$href_change_ipns));
|
|
@@ -5936,6 +6103,18 @@ function $a36cbc4f68bfd590$export$91c3b6774e8be0f5({ param_: param_ , value_: va
|
|
|
5936
6103
|
|
|
5937
6104
|
|
|
5938
6105
|
|
|
6106
|
+
|
|
6107
|
+
|
|
6108
|
+
const $694b7f90501fea4c$var$_tmpl$ = [
|
|
6109
|
+
"<svg",
|
|
6110
|
+
' xmlns="http://www.w3.org/2000/svg" width="12" height="13"><path d="M6 12.598a5.88 5.88 0 0 1-1.611-.223c-.52-.145-1.008-.352-1.465-.621s-.875-.605-1.254-.996-.693-.83-.955-1.318c-.039-.07-.047-.145-.023-.223s.072-.143.146-.182.145-.047.223-.023.143.072.182.146a5.54 5.54 0 0 0 .861 1.184c.34.352.715.65 1.125.897s.85.435 1.318.568A5.5 5.5 0 0 0 6 12a5.24 5.24 0 0 0 2.098-.422c.656-.285 1.229-.672 1.717-1.16s.879-1.061 1.16-1.717a5.22 5.22 0 0 0 .428-2.104c0-.742-.143-1.441-.428-2.098s-.668-1.229-1.16-1.717a5.42 5.42 0 0 0-1.717-1.154A5.18 5.18 0 0 0 6 1.201c-.496 0-.979.066-1.447.199s-.904.316-1.318.563-.785.539-1.125.891a5.31 5.31 0 0 0-.855 1.172.32.32 0 0 1-.164.141c-.066.023-.135.023-.205 0a.3.3 0 0 1-.158-.135C.691 3.965.682 3.895.697 3.82l.51-2.385c.016-.078.059-.141.129-.187a.28.28 0 0 1 .229-.041c.078.016.141.059.188.129a.28.28 0 0 1 .041.229l-.211.973a5.91 5.91 0 0 1 .926-.814 5.78 5.78 0 0 1 1.066-.609A5.79 5.79 0 0 1 4.746.732C5.156.643 5.574.598 6 .598c.402 0 .795.039 1.178.117s.76.191 1.119.34a5.95 5.95 0 0 1 1.031.551c.328.219.633.469.914.75s.535.592.75.92a5.77 5.77 0 0 1 .551 1.025 5.53 5.53 0 0 1 .34 1.119c.078.387.117.779.117 1.178s-.039.797-.117 1.184-.187.754-.34 1.113a5.96 5.96 0 0 1-.551 1.031 5.56 5.56 0 0 1-.75.914c-.281.285-.586.537-.914.756a5.95 5.95 0 0 1-1.031.551c-.359.148-.732.26-1.119.334s-.775.117-1.178.117zm0-5.695c-.023 0-.049-.004-.076-.012s-.047-.018-.07-.029l-2.701-1.5c-.07-.039-.117-.098-.141-.176a.29.29 0 0 1 .023-.229c.043-.074.104-.123.182-.146s.158-.014.229.029l2.543 1.412 3.152-2.004c.07-.047.145-.061.223-.041a.29.29 0 0 1 .188.135c.047.066.061.141.041.223a.27.27 0 0 1-.129.188L6.158 6.855a.27.27 0 0 1-.076.035c-.027.008-.055.012-.082.012z" fill="#0f0f0f"></path></svg>'
|
|
6111
|
+
];
|
|
6112
|
+
function $694b7f90501fea4c$export$5d2caaa6b530761c() {
|
|
6113
|
+
return (0, $cV3wj$ssr)($694b7f90501fea4c$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)());
|
|
6114
|
+
}
|
|
6115
|
+
|
|
6116
|
+
|
|
6117
|
+
|
|
5939
6118
|
const $7ad3a93cbe6fa208$var$_tmpl$ = [
|
|
5940
6119
|
"<div",
|
|
5941
6120
|
' class="previous-searches"><h2 class="text">',
|
|
@@ -5980,7 +6159,7 @@ function $7ad3a93cbe6fa208$export$a146ac6fa8346a25({ text_: text_ , previous_sea
|
|
|
5980
6159
|
value_: item,
|
|
5981
6160
|
url_transformer_: url_transformer_
|
|
5982
6161
|
});
|
|
5983
|
-
return (0, $cV3wj$ssr)($7ad3a93cbe6fa208$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), `${`item` || ""} ${(0, $cV3wj$createMemo)(()=>read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)() ? "selected" : ""}`, (0, $cV3wj$ssrAttribute)("href", (0, $cV3wj$escape)(href(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
6162
|
+
return (0, $cV3wj$ssr)($7ad3a93cbe6fa208$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), `${`item` || ""} ${(0, $cV3wj$createMemo)(()=>read_selected_index_()?.[0] === 0 && read_selected_index_()?.[1] === index)() ? "selected" : ""}`, (0, $cV3wj$ssrAttribute)("href", (0, $cV3wj$escape)(href(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $694b7f90501fea4c$export$5d2caaa6b530761c), {})), (0, $cV3wj$escape)(item()), (0, $cV3wj$ssrAttribute)("title", (0, $cV3wj$escape)(i18n_.previous_searches_delete_entry_from_history_(), true), false), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $19976a74d273070d$export$3b621d86b1566b2), {})));
|
|
5984
6163
|
}
|
|
5985
6164
|
})));
|
|
5986
6165
|
}
|
|
@@ -6000,7 +6179,6 @@ function $7ad3a93cbe6fa208$export$a146ac6fa8346a25({ text_: text_ , previous_sea
|
|
|
6000
6179
|
|
|
6001
6180
|
|
|
6002
6181
|
|
|
6003
|
-
|
|
6004
6182
|
const $f3213c0640246d58$var$_tmpl$ = [
|
|
6005
6183
|
"<span",
|
|
6006
6184
|
' class="highlighted-part">',
|
|
@@ -6060,6 +6238,8 @@ function $f3213c0640246d58$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
|
|
|
6060
6238
|
}
|
|
6061
6239
|
|
|
6062
6240
|
|
|
6241
|
+
|
|
6242
|
+
|
|
6063
6243
|
const $cea52f6b24092f05$var$_tmpl$ = [
|
|
6064
6244
|
"<a",
|
|
6065
6245
|
' class="',
|
|
@@ -6116,10 +6296,10 @@ function $cea52f6b24092f05$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
|
|
|
6116
6296
|
(0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
6117
6297
|
when: is_history,
|
|
6118
6298
|
get fallback () {
|
|
6119
|
-
return (0, $cV3wj$ssr)($cea52f6b24092f05$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $
|
|
6299
|
+
return (0, $cV3wj$ssr)($cea52f6b24092f05$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $16f0ed5ea30d8d9c$export$82eafebb825fc23f), {})));
|
|
6120
6300
|
},
|
|
6121
6301
|
get children () {
|
|
6122
|
-
return (0, $cV3wj$createComponent)((0, $
|
|
6302
|
+
return (0, $cV3wj$createComponent)((0, $694b7f90501fea4c$export$5d2caaa6b530761c), {});
|
|
6123
6303
|
}
|
|
6124
6304
|
}),
|
|
6125
6305
|
(0, $cV3wj$createComponent)((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
@@ -6747,7 +6927,7 @@ const $793905995512612d$var$_tmpl$ = [
|
|
|
6747
6927
|
' class="category-suggestion">',
|
|
6748
6928
|
"</div>"
|
|
6749
6929
|
];
|
|
6750
|
-
function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children
|
|
6930
|
+
function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children }) {
|
|
6751
6931
|
const category_suggestions_ = (0, $cV3wj$createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
|
|
6752
6932
|
return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
6753
6933
|
get when () {
|
|
@@ -6755,7 +6935,6 @@ function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_
|
|
|
6755
6935
|
},
|
|
6756
6936
|
get children () {
|
|
6757
6937
|
return (0, $cV3wj$ssr)($793905995512612d$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $f32e14878e75af51$export$6649caad96ef8870), {
|
|
6758
|
-
button_: slider_arrow_button_,
|
|
6759
6938
|
faded_opacity_: 0.7,
|
|
6760
6939
|
get children () {
|
|
6761
6940
|
return (0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
@@ -6819,6 +6998,7 @@ function $f8c929beb82c512b$export$9dd50d35b9d94fdf({ get_search_query_: get_sear
|
|
|
6819
6998
|
|
|
6820
6999
|
|
|
6821
7000
|
|
|
7001
|
+
|
|
6822
7002
|
const $7097477c78a89208$var$_tmpl$ = [
|
|
6823
7003
|
"<div",
|
|
6824
7004
|
' class="filter-results-for-one-row"><!--#-->',
|
|
@@ -6837,7 +7017,7 @@ const $7097477c78a89208$var$_tmpl$ = [
|
|
|
6837
7017
|
"<!--/--></div>"
|
|
6838
7018
|
];
|
|
6839
7019
|
function $7097477c78a89208$export$a54ec244c8863715(opts) {
|
|
6840
|
-
const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , get_search_query_: get_search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ ,
|
|
7020
|
+
const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , get_search_query_: get_search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , search_recs_view_more_: search_recs_view_more_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ } = opts;
|
|
6841
7021
|
const [get_sorting] = current_sorting_;
|
|
6842
7022
|
const all_products_loaded_ = (0, $cV3wj$createSignal)(false);
|
|
6843
7023
|
const [get_all_products_loaded, set_all_products_loaded] = all_products_loaded_;
|
|
@@ -6957,13 +7137,14 @@ function $7097477c78a89208$export$a54ec244c8863715(opts) {
|
|
|
6957
7137
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
6958
7138
|
});
|
|
6959
7139
|
const results_filters = (0, $cV3wj$createSignal)();
|
|
7140
|
+
const owner = (0, $cV3wj$getOwner)();
|
|
6960
7141
|
(0, $cV3wj$onCleanup)((0, $cV3wj$javascript_media_query)("(max-width:600px)", async ({ matches: matches })=>{
|
|
6961
7142
|
results_filters[1]();
|
|
6962
7143
|
await new Promise((r)=>queueMicrotask(r));
|
|
6963
|
-
results_filters[1](matches ? [
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
7144
|
+
(0, $cV3wj$runWithOwner)(owner, ()=>results_filters[1](matches ? [
|
|
7145
|
+
results_for,
|
|
7146
|
+
filters_opener
|
|
7147
|
+
] : (0, $cV3wj$ssr)($7097477c78a89208$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(results_for), (0, $cV3wj$escape)(filters_opener))));
|
|
6967
7148
|
}).remove);
|
|
6968
7149
|
(0, $cV3wj$catchify)((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
6969
7150
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
@@ -6985,14 +7166,13 @@ function $7097477c78a89208$export$a54ec244c8863715(opts) {
|
|
|
6985
7166
|
(0, $d78eea1e8707dc2d$export$c7e181728ad525f)(location);
|
|
6986
7167
|
});
|
|
6987
7168
|
return [
|
|
6988
|
-
document.createComment("Search page based on Depict SDK"),
|
|
7169
|
+
(0, $cV3wj$isServer) ? "<!-- Search page based on Depict SDK -->" : document.createComment("Search page based on Depict SDK"),
|
|
6989
7170
|
(0, $cV3wj$ssr)($7097477c78a89208$var$_tmpl$2, (0, $cV3wj$ssrHydrationKey)() + (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)((0, $f86ba724282f6690$export$44dad306455dddf).SEARCH_PAGE, true), false), (0, $cV3wj$escape)(search_field), make_category_suggestion_card_ ? (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
6990
7171
|
severity_: "error",
|
|
6991
7172
|
message_: "Category suggestions failed",
|
|
6992
7173
|
get children () {
|
|
6993
7174
|
return (0, $cV3wj$createComponent)((0, $793905995512612d$export$c05a196222ba1302), {
|
|
6994
7175
|
suggestions_: suggestions,
|
|
6995
|
-
slider_arrow_button_: slider_arrow_button_,
|
|
6996
7176
|
children: make_category_suggestion_card_
|
|
6997
7177
|
});
|
|
6998
7178
|
}
|
|
@@ -7010,7 +7190,6 @@ function $7097477c78a89208$export$a54ec244c8863715(opts) {
|
|
|
7010
7190
|
i18n_: i18n_,
|
|
7011
7191
|
selected_filters_: selected_filters_,
|
|
7012
7192
|
local_filter_cache_: local_filter_cache_,
|
|
7013
|
-
slider_arrow_button_: slider_arrow_button_,
|
|
7014
7193
|
search_filters_open_: search_filters_open_,
|
|
7015
7194
|
search_sorting_open_: search_sorting_open_,
|
|
7016
7195
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -7129,6 +7308,7 @@ function $4ca91518c9a35379$export$828dcdd425fd3231(aligner) {
|
|
|
7129
7308
|
|
|
7130
7309
|
|
|
7131
7310
|
|
|
7311
|
+
|
|
7132
7312
|
const $806c97b931758897$var$_tmpl$ = [
|
|
7133
7313
|
"<div",
|
|
7134
7314
|
' class="depict plp search">',
|
|
@@ -7150,7 +7330,8 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
7150
7330
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
|
|
7151
7331
|
const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
7152
7332
|
(0, $cV3wj$runWithOwner)(owner, ()=>{
|
|
7153
|
-
if ($806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed)
|
|
7333
|
+
if ($806c97b931758897$export$ac6237957a15b3f0.#has_been_constructed && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
7334
|
+
throw new Error("You can only have one instance of DepictSearch");
|
|
7154
7335
|
Object.assign(this, props_on_class);
|
|
7155
7336
|
if (on_navigation) this.#router.on_navigation_ = on_navigation;
|
|
7156
7337
|
const { current_sorting_: current_sorting_ , selected_filters_: selected_filters_ , search_query_accessor_: raw_search_query_accessor } = (0, $ccd5db07a3a069c5$export$477caf01aecaeb2a)({
|
|
@@ -7158,7 +7339,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
7158
7339
|
router_: this.#router
|
|
7159
7340
|
});
|
|
7160
7341
|
const [reset_history_state_, state_] = (0, $a8fa7302d6f93c0b$export$9862539c89138352)(()=>({
|
|
7161
|
-
search_field_value: new URLSearchParams(location.search).get(search_query_url_param_name_) ?? "",
|
|
7342
|
+
search_field_value: (globalThis?.location && new URLSearchParams(location.search).get(search_query_url_param_name_)) ?? "",
|
|
7162
7343
|
search_filters_open: false,
|
|
7163
7344
|
search_sorting_open: false,
|
|
7164
7345
|
search_expanded_filters: [],
|
|
@@ -7417,10 +7598,6 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7417
7598
|
cols_at_size: (0, $b5cccc8ee7d24677$export$6daf8749b65a1b77)(extra_depict_options.recommendations_cols_at_size),
|
|
7418
7599
|
...grid_spacing_override
|
|
7419
7600
|
} : undefined,
|
|
7420
|
-
slider_arrow_button_: (0, $cV3wj$GenericSliderArrowButton)({
|
|
7421
|
-
height_: 12,
|
|
7422
|
-
width_: 6.46
|
|
7423
|
-
}),
|
|
7424
7601
|
product_card_template_: product_card_template
|
|
7425
7602
|
});
|
|
7426
7603
|
}, "Entire SearchPage failed");
|
|
@@ -7790,4 +7967,4 @@ const $4690a06c8489dcd0$export$7bf543b9d9be2c22 = (0, $e4615ecd1849548f$export$b
|
|
|
7790
7967
|
(0, $cV3wj$add_to_version_info)("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
|
|
7791
7968
|
|
|
7792
7969
|
|
|
7793
|
-
export {$c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a79d86d64fb64e8e$export$824dde41348efed1 as embedded_num_products, $5c5f95951393e5d1$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
|
|
7970
|
+
export {$19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a79d86d64fb64e8e$export$824dde41348efed1 as embedded_num_products, $5c5f95951393e5d1$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
|