@depict-ai/ui 2.0.26 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +704 -333
- package/ES10/index.d.ts +75 -45
- package/ES10/index.js +706 -335
- package/latest/index.cjs +674 -325
- package/latest/index.d.ts +75 -45
- package/latest/index.js +676 -327
- package/locales/require.js +1152 -0
- package/package.json +5 -5
- package/server/ES10/index.cjs +586 -250
- package/server/ES10/index.d.ts +75 -45
- package/server/ES10/index.js +588 -252
- package/server/latest/index.cjs +556 -242
- package/server/latest/index.d.ts +75 -45
- package/server/latest/index.js +558 -244
package/ES10/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { add_to_version_info as $8tj43$add_to_version_info, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, dlog as $8tj43$dlog, queueMacroTask as $8tj43$queueMacroTask, catchify as $8tj43$catchify, is_safari as $8tj43$is_safari, observer as $8tj43$observer, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, slider_fading_factory as $8tj43$slider_fading_factory, slider_fractional_factory as $8tj43$slider_fractional_factory, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, report as $8tj43$report, useExpandingContainer as $8tj43$useExpandingContainer, standard_price_format as $8tj43$standard_price_format, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, fetch_recs as $8tj43$fetch_recs, snakeCasifyObject as $8tj43$snakeCasifyObject, instant_exec_on_suspect_history_change as $8tj43$instant_exec_on_suspect_history_change, base_url as $8tj43$base_url, get_depict_id as $8tj43$get_depict_id, get_user_id as $8tj43$get_user_id, get_session_id as $8tj43$get_session_id, make_url_with_query_params as $8tj43$make_url_with_query_params, fetch_retry as $8tj43$fetch_retry, add_version_query_params as $8tj43$add_version_query_params, dwarn as $8tj43$dwarn, sort_obj as $8tj43$sort_obj, edit_current_page_meta_tags as $8tj43$edit_current_page_meta_tags, javascript_media_query as $8tj43$javascript_media_query, use_href_accessor as $8tj43$use_href_accessor, is_debug as $8tj43$is_debug, make_asyncIterable_exiter as $8tj43$make_asyncIterable_exiter, href_change_ipns as $8tj43$href_change_ipns, ContainedImage as $8tj43$ContainedImage, buildThresholdList as $8tj43$buildThresholdList, deparallelize_no_drop as $8tj43$deparallelize_no_drop, ListenableSet as $8tj43$ListenableSet, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
2
|
-
import { createComponent as $8tj43$createComponent, template as $8tj43$template, getNextElement as $8tj43$getNextElement, effect as $8tj43$effect, style as $8tj43$style, spread as $8tj43$spread, mergeProps as $8tj43$mergeProps, runHydrationEvents as $8tj43$runHydrationEvents, insert as $8tj43$insert, setAttribute as $8tj43$setAttribute, isServer as $8tj43$isServer, addEventListener as $8tj43$addEventListener, className as $8tj43$className, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, classList as $8tj43$classList, getNextMarker as $8tj43$getNextMarker, Dynamic as $8tj43$Dynamic, use as $8tj43$use } from "solid-js/web";
|
|
3
|
-
import { createSignal as $8tj43$createSignal, getOwner as $8tj43$getOwner, createEffect as $8tj43$createEffect, runWithOwner as $8tj43$runWithOwner, onCleanup as $8tj43$onCleanup, createMemo as $8tj43$createMemo, createContext as $8tj43$createContext, useContext as $8tj43$useContext, createResource as $8tj43$createResource, Suspense as $8tj43$Suspense, Show as $8tj43$Show, createRenderEffect as $8tj43$createRenderEffect, createRoot as $8tj43$createRoot, For as $8tj43$For, createUniqueId as $8tj43$createUniqueId,
|
|
2
|
+
import { createComponent as $8tj43$createComponent, template as $8tj43$template, getNextElement as $8tj43$getNextElement, effect as $8tj43$effect, style as $8tj43$style, spread as $8tj43$spread, mergeProps as $8tj43$mergeProps, runHydrationEvents as $8tj43$runHydrationEvents, insert as $8tj43$insert, setAttribute as $8tj43$setAttribute, isServer as $8tj43$isServer, addEventListener as $8tj43$addEventListener, className as $8tj43$className, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, classList as $8tj43$classList, getNextMarker as $8tj43$getNextMarker, Dynamic as $8tj43$Dynamic, use as $8tj43$use, setProperty as $8tj43$setProperty } from "solid-js/web";
|
|
3
|
+
import { createSignal as $8tj43$createSignal, getOwner as $8tj43$getOwner, createEffect as $8tj43$createEffect, runWithOwner as $8tj43$runWithOwner, onCleanup as $8tj43$onCleanup, createMemo as $8tj43$createMemo, createContext as $8tj43$createContext, useContext as $8tj43$useContext, createResource as $8tj43$createResource, Suspense as $8tj43$Suspense, Show as $8tj43$Show, untrack as $8tj43$untrack, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, For as $8tj43$For, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, on as $8tj43$on, batch as $8tj43$batch, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray, mergeProps as $8tj43$mergeProps1 } from "solid-js";
|
|
4
4
|
import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
5
5
|
import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
6
6
|
import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
+
import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from "solid-js/store";
|
|
7
8
|
|
|
8
9
|
/*! Depict.ai search and product listing SDK */
|
|
9
10
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
10
11
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.
|
|
12
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.1";
|
|
12
13
|
const $2855bffe06ef7a03$var$fallback_operator = "in";
|
|
13
14
|
const $2855bffe06ef7a03$var$fallback_token = "";
|
|
14
15
|
const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
|
|
@@ -200,7 +201,7 @@ function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
|
|
|
200
201
|
function $5441862cd2f5e111$export$8d0c4fdbb05a2f2e() {
|
|
201
202
|
return $8tj43$useContext($5441862cd2f5e111$var$ListingContext);
|
|
202
203
|
}
|
|
203
|
-
const $801e8845d3fa3653$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div
|
|
204
|
+
const $801e8845d3fa3653$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
|
|
204
205
|
function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
|
|
205
206
|
return (() => {
|
|
206
207
|
const _el$ = $8tj43$getNextElement($801e8845d3fa3653$var$_tmpl$);
|
|
@@ -208,7 +209,7 @@ function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
|
|
|
208
209
|
return _el$;
|
|
209
210
|
})();
|
|
210
211
|
}
|
|
211
|
-
const $56047603f9d212b6$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<img
|
|
212
|
+
const $56047603f9d212b6$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<img>`);
|
|
212
213
|
function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
|
|
213
214
|
const [size, setSize] = $8tj43$createSignal(0);
|
|
214
215
|
const resizeObserver = new ResizeObserver($8tj43$catchify(records => {
|
|
@@ -319,7 +320,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
|
|
|
319
320
|
}));
|
|
320
321
|
return container;
|
|
321
322
|
}
|
|
322
|
-
const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
323
|
+
const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg 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>`);
|
|
323
324
|
function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
324
325
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
325
326
|
return (() => {
|
|
@@ -338,7 +339,7 @@ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
|
338
339
|
return _el$;
|
|
339
340
|
})();
|
|
340
341
|
}
|
|
341
|
-
const $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div
|
|
342
|
+
const $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
|
|
342
343
|
function $002f09d00aac50b2$export$6649caad96ef8870(_ref) {
|
|
343
344
|
let {
|
|
344
345
|
children: children,
|
|
@@ -445,7 +446,7 @@ const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
|
|
|
445
446
|
return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
|
|
446
447
|
};
|
|
447
448
|
function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
|
|
448
|
-
const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `columnsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
|
|
449
|
+
const text = "Please try setting `columnsAtSize`/`gridSpacing` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `columnsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
|
|
449
450
|
return (0, $8tj43$isServer) ? {
|
|
450
451
|
t: "<!-- ".concat(text, " -->")
|
|
451
452
|
} : document.createComment(text);
|
|
@@ -467,12 +468,13 @@ let $bdd80c7862246dc2$var$rendering_cached_placeholder_element;
|
|
|
467
468
|
function $bdd80c7862246dc2$export$f33414a4df0afd3f(_ref) {
|
|
468
469
|
let {
|
|
469
470
|
product_card_template_: product_card_template_,
|
|
470
|
-
num_placeholders_: num_placeholders_
|
|
471
|
+
num_placeholders_: num_placeholders_,
|
|
472
|
+
content_blocks_: content_blocks_
|
|
471
473
|
} = _ref;
|
|
472
|
-
const [
|
|
473
|
-
let existing_num = 0;
|
|
474
|
+
const [num_to_actually_show, set_num_to_actually_show] = $8tj43$createSignal($8tj43$untrack(num_placeholders_));
|
|
474
475
|
if (0, $8tj43$isServer)
|
|
475
476
|
// want to render simple placeholders on server, effects don't run there
|
|
477
|
+
// FIXME when adding proper SSR: also SSR content blocks
|
|
476
478
|
return $8tj43$createMemo(() => Array.from({
|
|
477
479
|
length: num_placeholders_()
|
|
478
480
|
}).map(() => {
|
|
@@ -481,19 +483,33 @@ function $bdd80c7862246dc2$export$f33414a4df0afd3f(_ref) {
|
|
|
481
483
|
if (typeof (template_result === null || template_result === void 0 ? void 0 : template_result.then) !== "function") return template_result;
|
|
482
484
|
}));
|
|
483
485
|
$8tj43$createRenderEffect(() => {
|
|
486
|
+
const existing_num = num_to_actually_show();
|
|
484
487
|
const to_add = num_placeholders_() - existing_num;
|
|
485
488
|
if (to_add <= 0) return;
|
|
486
489
|
// Below comment is from when we used recommendation renderer and manual DOM manipulation for this, but I'm still scared to remove placeholders and mess up scroll restoration, so I'm keeping the way it worked. Otherwise, <Index> could be used which would be far more elegant.
|
|
487
490
|
// We don't need to remove placeholders, only need to add. The reason for that is that chrome restores the scroll position once all tasks queued as reaction of the "popstate" events have been completed in the task queue. That means that we need to get the placeholders in fast, or we might lose scroll position if the previous site was shorter.
|
|
488
491
|
// The query id and the amount might update in separate tasks because one comes from href_change_ipns and the other one from another "popstate" listener. Therefore, we need to be able to dynamically add more placeholders. I'm not entirely sure about this anymore though, since we have the scroll position on a per-id basis it might work anyway but THIS WORKS, and I've been working on this bug for 3 hours so let's just keep it this way.
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
492
|
+
// Above comments were from when we added elements in this createRenderEffect. Now I changed it to just increment the number and render them from an <Index> instead, so I can add content blocks better
|
|
493
|
+
// Functionality should be the same
|
|
494
|
+
set_num_to_actually_show(existing_num + to_add);
|
|
495
|
+
});
|
|
496
|
+
return $8tj43$createComponent((0, $8tj43$Index), {
|
|
497
|
+
get each() {
|
|
498
|
+
return Array.from({
|
|
499
|
+
length: num_to_actually_show()
|
|
500
|
+
});
|
|
501
|
+
},
|
|
502
|
+
children: (_item, index) => {
|
|
503
|
+
const possible_content_block = $8tj43$createMemo(() => {
|
|
504
|
+
var _content_blocks_, _content_blocks_2;
|
|
505
|
+
return content_blocks_ === null || content_blocks_ === void 0 ? void 0 : (_content_blocks_ = content_blocks_()) === null || _content_blocks_ === void 0 ? void 0 : (_content_blocks_2 = _content_blocks_()) === null || _content_blocks_2 === void 0 ? void 0 : _content_blocks_2[index];
|
|
506
|
+
});
|
|
507
|
+
// Show content block before product card, so it's *at* that index
|
|
508
|
+
return [possible_content_block, $bdd80c7862246dc2$var$Placeholder({
|
|
509
|
+
product_card_template_: product_card_template_
|
|
510
|
+
})]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
511
|
+
}
|
|
495
512
|
});
|
|
496
|
-
return get_elements; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
497
513
|
}
|
|
498
514
|
/**
|
|
499
515
|
* Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
|
|
@@ -584,7 +600,8 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
|
|
|
584
600
|
merchant_: merchant_,
|
|
585
601
|
market_: market_,
|
|
586
602
|
product_card_template_: product_card_template_,
|
|
587
|
-
do_per_elements_: do_per_elements_
|
|
603
|
+
do_per_elements_: do_per_elements_,
|
|
604
|
+
content_blocks_: content_blocks_
|
|
588
605
|
} = _ref;
|
|
589
606
|
return $8tj43$createComponent((0, $8tj43$For), {
|
|
590
607
|
get each() {
|
|
@@ -592,6 +609,10 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
|
|
|
592
609
|
},
|
|
593
610
|
children: (product_id, index) => {
|
|
594
611
|
const owner = $8tj43$getOwner();
|
|
612
|
+
const possible_content_block = $8tj43$createMemo(() => {
|
|
613
|
+
var _content_blocks_, _content_blocks_2;
|
|
614
|
+
return content_blocks_ === null || content_blocks_ === void 0 ? void 0 : (_content_blocks_ = content_blocks_()) === null || _content_blocks_ === void 0 ? void 0 : (_content_blocks_2 = _content_blocks_()) === null || _content_blocks_2 === void 0 ? void 0 : _content_blocks_2[index()];
|
|
615
|
+
});
|
|
595
616
|
const display_accessor = $8tj43$createMemo(prev => {
|
|
596
617
|
const new_display = displays_by_key_().get(product_id);
|
|
597
618
|
if (prev && $2d7bad8684bc7f44$var$deep_equal(prev, new_display))
|
|
@@ -645,7 +666,9 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
|
|
|
645
666
|
}
|
|
646
667
|
do_per_elements_ === null || do_per_elements_ === void 0 || do_per_elements_(elements, index);
|
|
647
668
|
});
|
|
648
|
-
return
|
|
669
|
+
return [
|
|
670
|
+
// Show content block before product card, so it's *at* that index
|
|
671
|
+
possible_content_block, product_card_resource]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
649
672
|
}
|
|
650
673
|
});
|
|
651
674
|
}
|
|
@@ -682,7 +705,7 @@ class $f3b7124b76123e44$export$aa14a9f43128f61f extends $f3b7124b76123e44$export
|
|
|
682
705
|
});
|
|
683
706
|
}
|
|
684
707
|
}
|
|
685
|
-
const $74777e8fe65b3dcb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div
|
|
708
|
+
const $74777e8fe65b3dcb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
|
|
686
709
|
function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
|
|
687
710
|
return $8tj43$ErrorBoundary({
|
|
688
711
|
fallback(err, retry) {
|
|
@@ -712,8 +735,8 @@ function $74777e8fe65b3dcb$export$b69d0d92862de18b(props) {
|
|
|
712
735
|
}
|
|
713
736
|
});
|
|
714
737
|
}
|
|
715
|
-
const $63f1f8dbcd07d3b0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div
|
|
716
|
-
$63f1f8dbcd07d3b0$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<style type=
|
|
738
|
+
const $63f1f8dbcd07d3b0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
739
|
+
$63f1f8dbcd07d3b0$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<style type=text/css>`);
|
|
717
740
|
function $63f1f8dbcd07d3b0$export$d21e32dfedac04be(props) {
|
|
718
741
|
const container_class = "x" + $8tj43$createUniqueId();
|
|
719
742
|
const container_element_ = (() => {
|
|
@@ -955,7 +978,7 @@ function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
|
|
|
955
978
|
// we're already in a root so cleanups are handled
|
|
956
979
|
return component_in_error_boundary();
|
|
957
980
|
}
|
|
958
|
-
const $d5d7e58c5c9d8db0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict recommendations"
|
|
981
|
+
const $d5d7e58c5c9d8db0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict recommendations">`);
|
|
959
982
|
function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
960
983
|
return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
|
|
961
984
|
const grid_spacing_override = $8tj43$createMemo(() => {
|
|
@@ -992,7 +1015,7 @@ function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
|
992
1015
|
})();
|
|
993
1016
|
}, "RecommendationSlider failed");
|
|
994
1017
|
}
|
|
995
|
-
const $e3efeb558d952696$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
1018
|
+
const $e3efeb558d952696$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
996
1019
|
function $e3efeb558d952696$export$7da560f849543dff(_ref) {
|
|
997
1020
|
let {
|
|
998
1021
|
recommendations_resource_: recommendations_resource_,
|
|
@@ -1055,8 +1078,8 @@ function $e3efeb558d952696$export$7da560f849543dff(_ref) {
|
|
|
1055
1078
|
children: elements
|
|
1056
1079
|
});
|
|
1057
1080
|
}
|
|
1058
|
-
const $b432b11321ad4c97$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="show-more major"
|
|
1059
|
-
$b432b11321ad4c97$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp recommendations"
|
|
1081
|
+
const $b432b11321ad4c97$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="show-more major"type=button>`),
|
|
1082
|
+
$b432b11321ad4c97$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp recommendations">`);
|
|
1060
1083
|
function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
1061
1084
|
return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
|
|
1062
1085
|
const rows_object_ = $8tj43$createMemo(() => {
|
|
@@ -1236,7 +1259,7 @@ function $60ec7a29849d81db$export$a71e92cfbb498adc(props) {
|
|
|
1236
1259
|
return $8tj43$standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
|
|
1237
1260
|
});
|
|
1238
1261
|
}
|
|
1239
|
-
const $a61a2051e15c8d7a$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div
|
|
1262
|
+
const $a61a2051e15c8d7a$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
|
|
1240
1263
|
const $a61a2051e15c8d7a$var$closing_functions = /*@__PURE__*/new Set();
|
|
1241
1264
|
const $a61a2051e15c8d7a$export$22970a0140fc759c = /*@__PURE__*/$8tj43$createSignal(false);
|
|
1242
1265
|
function $a61a2051e15c8d7a$export$5196e4c01fa56fcb(_ref) {
|
|
@@ -1329,8 +1352,8 @@ function $a61a2051e15c8d7a$export$5196e4c01fa56fcb(_ref) {
|
|
|
1329
1352
|
close_toast_: close_toast_
|
|
1330
1353
|
};
|
|
1331
1354
|
}
|
|
1332
|
-
const $b4465d8d605f61e9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
1333
|
-
$b4465d8d605f61e9$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
1355
|
+
const $b4465d8d605f61e9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=statement>`),
|
|
1356
|
+
$b4465d8d605f61e9$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=buttons><button class="restore minor"></button><button class="ok major">`);
|
|
1334
1357
|
function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
|
|
1335
1358
|
let previous_sorting;
|
|
1336
1359
|
let on_toast_hidden;
|
|
@@ -1413,7 +1436,7 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
|
|
|
1413
1436
|
if (delay_toast_) return show_configured_toast;else show_configured_toast();
|
|
1414
1437
|
}
|
|
1415
1438
|
$8tj43$delegateEvents(["click"]);
|
|
1416
|
-
const $9783d437ad61594c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><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"
|
|
1439
|
+
const $9783d437ad61594c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><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">`);
|
|
1417
1440
|
function $9783d437ad61594c$export$3b621d86b1566b2() {
|
|
1418
1441
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1419
1442
|
return (() => {
|
|
@@ -1436,10 +1459,10 @@ function $af5d8e0b7d97a7f6$export$325f75597868c4f0(stuff) {
|
|
|
1436
1459
|
if (typeof stuff !== "string") return stuff;
|
|
1437
1460
|
return stuff.toLowerCase();
|
|
1438
1461
|
}
|
|
1439
|
-
const $4711a82d08d2021b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="clear-all-filters minor"
|
|
1440
|
-
$4711a82d08d2021b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
1441
|
-
$4711a82d08d2021b$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"
|
|
1442
|
-
$4711a82d08d2021b$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"
|
|
1462
|
+
const $4711a82d08d2021b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="clear-all-filters minor">`),
|
|
1463
|
+
$4711a82d08d2021b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
1464
|
+
$4711a82d08d2021b$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> – <!$><!/><!$><!/><!$><!/>`),
|
|
1465
|
+
$4711a82d08d2021b$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
1443
1466
|
function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
1444
1467
|
let {
|
|
1445
1468
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -1570,56 +1593,54 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
|
1570
1593
|
return ((_matching_filter2 = matching_filter()) === null || _matching_filter2 === void 0 ? void 0 : _matching_filter2.op) !== "inrange";
|
|
1571
1594
|
},
|
|
1572
1595
|
get fallback() {
|
|
1596
|
+
number_of_rendered_selected_filters_items_[1](prev => prev + 1);
|
|
1597
|
+
$8tj43$onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
|
|
1573
1598
|
return (() => {
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
$8tj43$insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
|
|
1620
|
-
$8tj43$runHydrationEvents();
|
|
1621
|
-
return _el$9;
|
|
1622
|
-
})();
|
|
1599
|
+
const _el$9 = $8tj43$getNextElement($4711a82d08d2021b$var$_tmpl$3),
|
|
1600
|
+
_el$24 = _el$9.firstChild,
|
|
1601
|
+
[_el$25, _co$9] = $8tj43$getNextMarker(_el$24.nextSibling),
|
|
1602
|
+
_el$10 = _el$25.nextSibling,
|
|
1603
|
+
_el$12 = _el$10.firstChild,
|
|
1604
|
+
[_el$13, _co$3] = $8tj43$getNextMarker(_el$12.nextSibling),
|
|
1605
|
+
_el$14 = _el$13.nextSibling,
|
|
1606
|
+
[_el$15, _co$4] = $8tj43$getNextMarker(_el$14.nextSibling),
|
|
1607
|
+
_el$16 = _el$15.nextSibling,
|
|
1608
|
+
[_el$17, _co$5] = $8tj43$getNextMarker(_el$16.nextSibling),
|
|
1609
|
+
_el$11 = _el$17.nextSibling,
|
|
1610
|
+
_el$18 = _el$11.nextSibling,
|
|
1611
|
+
[_el$19, _co$6] = $8tj43$getNextMarker(_el$18.nextSibling),
|
|
1612
|
+
_el$20 = _el$19.nextSibling,
|
|
1613
|
+
[_el$21, _co$7] = $8tj43$getNextMarker(_el$20.nextSibling),
|
|
1614
|
+
_el$22 = _el$21.nextSibling,
|
|
1615
|
+
[_el$23, _co$8] = $8tj43$getNextMarker(_el$22.nextSibling);
|
|
1616
|
+
_el$9.$$click = () => {
|
|
1617
|
+
const cloned_selected_filters = [...read_selected_filters()];
|
|
1618
|
+
cloned_selected_filters.splice(index_in_selected_filters, 1);
|
|
1619
|
+
write_selected_filters(cloned_selected_filters);
|
|
1620
|
+
};
|
|
1621
|
+
$8tj43$insert(_el$9, $8tj43$createComponent((0, $9783d437ad61594c$export$3b621d86b1566b2), {}), _el$25, _co$9);
|
|
1622
|
+
$8tj43$insert(_el$10, () => price_formatting_().pre_, _el$13, _co$3);
|
|
1623
|
+
$8tj43$insert(_el$10, $8tj43$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
1624
|
+
get price_() {
|
|
1625
|
+
return filter().data[0];
|
|
1626
|
+
},
|
|
1627
|
+
get price_formatting_() {
|
|
1628
|
+
return price_formatting_();
|
|
1629
|
+
}
|
|
1630
|
+
}), _el$15, _co$4);
|
|
1631
|
+
$8tj43$insert(_el$10, () => price_formatting_().post_, _el$17, _co$5);
|
|
1632
|
+
$8tj43$insert(_el$10, () => price_formatting_().pre_, _el$19, _co$6);
|
|
1633
|
+
$8tj43$insert(_el$10, $8tj43$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
1634
|
+
get price_() {
|
|
1635
|
+
return filter().data[1];
|
|
1636
|
+
},
|
|
1637
|
+
get price_formatting_() {
|
|
1638
|
+
return price_formatting_();
|
|
1639
|
+
}
|
|
1640
|
+
}), _el$21, _co$7);
|
|
1641
|
+
$8tj43$insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
|
|
1642
|
+
$8tj43$runHydrationEvents();
|
|
1643
|
+
return _el$9;
|
|
1623
1644
|
})();
|
|
1624
1645
|
},
|
|
1625
1646
|
get children() {
|
|
@@ -1750,8 +1771,8 @@ function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
|
1750
1771
|
return outmost_element;
|
|
1751
1772
|
}
|
|
1752
1773
|
$8tj43$delegateEvents(["click"]);
|
|
1753
|
-
const $19e828709c7723a0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=
|
|
1754
|
-
$19e828709c7723a0$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<label class=
|
|
1774
|
+
const $19e828709c7723a0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=count>`),
|
|
1775
|
+
$19e828709c7723a0$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<label class=input-row><div class=left><input type=checkbox><span class=custom-indicator></span><span class="text line-clamp"></span></div><!$><!/>`);
|
|
1755
1776
|
const $19e828709c7723a0$export$48513f6b9f8ce62d = props => {
|
|
1756
1777
|
// It seems like there's no diffing without memos here (since we often just have computations in the getters above that update to the same result often because their dependencies change with unrelated changes often), so put memos here to avoid unneeded DOM changes
|
|
1757
1778
|
const count = $8tj43$createMemo(() => props.count_);
|
|
@@ -1803,19 +1824,19 @@ const $19e828709c7723a0$export$48513f6b9f8ce62d = props => {
|
|
|
1803
1824
|
_v$3 = !checked() && is_count_zero();
|
|
1804
1825
|
_v$ !== _p$._v$ && _el$.classList.toggle("count-0", _p$._v$ = _v$);
|
|
1805
1826
|
_v$2 !== _p$._v$2 && $8tj43$setAttribute(_el$3, "name", _p$._v$2 = _v$2);
|
|
1806
|
-
_v$3 !== _p$._v$3 && (_el$3
|
|
1827
|
+
_v$3 !== _p$._v$3 && $8tj43$setProperty(_el$3, "disabled", _p$._v$3 = _v$3);
|
|
1807
1828
|
return _p$;
|
|
1808
1829
|
}, {
|
|
1809
1830
|
_v$: undefined,
|
|
1810
1831
|
_v$2: undefined,
|
|
1811
1832
|
_v$3: undefined
|
|
1812
1833
|
});
|
|
1813
|
-
$8tj43$effect(() => _el$3
|
|
1834
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$3, "checked", checked()));
|
|
1814
1835
|
return _el$;
|
|
1815
1836
|
})()
|
|
1816
1837
|
);
|
|
1817
1838
|
};
|
|
1818
|
-
const $ff3225aef892a467$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><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"
|
|
1839
|
+
const $ff3225aef892a467$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><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>`);
|
|
1819
1840
|
function $ff3225aef892a467$export$f21ab0717a89c77f(props) {
|
|
1820
1841
|
return (() => {
|
|
1821
1842
|
const _el$ = $8tj43$getNextElement($ff3225aef892a467$var$_tmpl$);
|
|
@@ -1828,7 +1849,7 @@ function $ff3225aef892a467$export$f21ab0717a89c77f(props) {
|
|
|
1828
1849
|
return _el$;
|
|
1829
1850
|
})();
|
|
1830
1851
|
}
|
|
1831
|
-
const $3e850b2f2cca761f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button type=
|
|
1852
|
+
const $3e850b2f2cca761f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button type=button class=expand-filter><!$><!/><span>`);
|
|
1832
1853
|
function $3e850b2f2cca761f$export$ca21a16d65b3dd8(_ref) {
|
|
1833
1854
|
let {
|
|
1834
1855
|
show_extras_: [get_show_extras, set_show_extras],
|
|
@@ -1851,7 +1872,7 @@ function $3e850b2f2cca761f$export$ca21a16d65b3dd8(_ref) {
|
|
|
1851
1872
|
})();
|
|
1852
1873
|
}
|
|
1853
1874
|
$8tj43$delegateEvents(["click"]);
|
|
1854
|
-
const $133484ef10e4e954$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class=
|
|
1875
|
+
const $133484ef10e4e954$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class=checkboxes><!$><!/><!$><!/>`);
|
|
1855
1876
|
const $133484ef10e4e954$var$max_visible_without_collapsing = 15;
|
|
1856
1877
|
const $133484ef10e4e954$var$show_non_collapsible_when_collapsed = 4;
|
|
1857
1878
|
function $133484ef10e4e954$export$dd948f91abc3a1c4(_ref) {
|
|
@@ -1992,9 +2013,9 @@ function $133484ef10e4e954$export$dd948f91abc3a1c4(_ref) {
|
|
|
1992
2013
|
return _el$;
|
|
1993
2014
|
})();
|
|
1994
2015
|
}
|
|
1995
|
-
const $b54fc842e721c9eb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class=
|
|
1996
|
-
$b54fc842e721c9eb$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span class=
|
|
1997
|
-
$b54fc842e721c9eb$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<label class=
|
|
2016
|
+
const $b54fc842e721c9eb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class=radios>`),
|
|
2017
|
+
$b54fc842e721c9eb$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span class=count>`),
|
|
2018
|
+
$b54fc842e721c9eb$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<label class=input-row><div class=left><input type=radio><span class=custom-indicator></span><!$><!/></div><!$><!/>`);
|
|
1998
2019
|
function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
1999
2020
|
let {
|
|
2000
2021
|
selected_filters_: selected_filters_,
|
|
@@ -2068,13 +2089,13 @@ function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
|
2068
2089
|
}
|
|
2069
2090
|
}), _el$10, _co$2);
|
|
2070
2091
|
$8tj43$effect(() => _el$2.classList.toggle("count-0", !!(count() === 0)));
|
|
2071
|
-
$8tj43$effect(() => _el$4
|
|
2092
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$4, "checked", $8tj43$createMemo(() => {
|
|
2072
2093
|
var _existing_filter;
|
|
2073
2094
|
const v = value();
|
|
2074
2095
|
const data = (_existing_filter = existing_filter()) === null || _existing_filter === void 0 ? void 0 : _existing_filter.data;
|
|
2075
2096
|
if ($af5d8e0b7d97a7f6$export$325f75597868c4f0(data) === $af5d8e0b7d97a7f6$export$325f75597868c4f0(v)) return true;
|
|
2076
2097
|
return Array.isArray(data) && data.every((item, index) => item === v[index]);
|
|
2077
|
-
})());
|
|
2098
|
+
})()));
|
|
2078
2099
|
return _el$2;
|
|
2079
2100
|
})();
|
|
2080
2101
|
}
|
|
@@ -2082,9 +2103,9 @@ function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
|
2082
2103
|
return _el$;
|
|
2083
2104
|
})();
|
|
2084
2105
|
}
|
|
2085
|
-
const $1e7465a8ffa97f6c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
2086
|
-
$1e7465a8ffa97f6c$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
2087
|
-
$1e7465a8ffa97f6c$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
2106
|
+
const $1e7465a8ffa97f6c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=range><div class=input-group><div class=field><input type=number></div><div class=separator>-</div><div class=field><input type=number></div></div><!$><!/><div class=value-text><span class=min><!$><!/><!$><!/><!$><!/></span><span class=max><!$><!/><!$><!/><!$><!/>`),
|
|
2107
|
+
$1e7465a8ffa97f6c$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=slider><div class=progress>`),
|
|
2108
|
+
$1e7465a8ffa97f6c$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
2088
2109
|
function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
2089
2110
|
let {
|
|
2090
2111
|
filter_: filter_,
|
|
@@ -2245,11 +2266,11 @@ function $1e7465a8ffa97f6c$var$RangeSelector(_ref3) {
|
|
|
2245
2266
|
_v$8 = min_(),
|
|
2246
2267
|
_v$9 = max_();
|
|
2247
2268
|
_v$ !== _p$._v$ && _el$.classList.toggle("disabled", _p$._v$ = _v$);
|
|
2248
|
-
_v$2 !== _p$._v$2 && (_el$4
|
|
2269
|
+
_v$2 !== _p$._v$2 && $8tj43$setProperty(_el$4, "disabled", _p$._v$2 = _v$2);
|
|
2249
2270
|
_v$3 !== _p$._v$3 && $8tj43$setAttribute(_el$4, "aria-label", _p$._v$3 = _v$3);
|
|
2250
2271
|
_v$4 !== _p$._v$4 && $8tj43$setAttribute(_el$4, "min", _p$._v$4 = _v$4);
|
|
2251
2272
|
_v$5 !== _p$._v$5 && $8tj43$setAttribute(_el$4, "max", _p$._v$5 = _v$5);
|
|
2252
|
-
_v$6 !== _p$._v$6 && (_el$7
|
|
2273
|
+
_v$6 !== _p$._v$6 && $8tj43$setProperty(_el$7, "disabled", _p$._v$6 = _v$6);
|
|
2253
2274
|
_v$7 !== _p$._v$7 && $8tj43$setAttribute(_el$7, "aria-label", _p$._v$7 = _v$7);
|
|
2254
2275
|
_v$8 !== _p$._v$8 && $8tj43$setAttribute(_el$7, "min", _p$._v$8 = _v$8);
|
|
2255
2276
|
_v$9 !== _p$._v$9 && $8tj43$setAttribute(_el$7, "max", _p$._v$9 = _v$9);
|
|
@@ -2265,8 +2286,8 @@ function $1e7465a8ffa97f6c$var$RangeSelector(_ref3) {
|
|
|
2265
2286
|
_v$8: undefined,
|
|
2266
2287
|
_v$9: undefined
|
|
2267
2288
|
});
|
|
2268
|
-
$8tj43$effect(() => _el$4
|
|
2269
|
-
$8tj43$effect(() => _el$7
|
|
2289
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$4, "value", get_current_range()[0]));
|
|
2290
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$7, "value", get_current_range()[1]));
|
|
2270
2291
|
$8tj43$runHydrationEvents();
|
|
2271
2292
|
return _el$;
|
|
2272
2293
|
})();
|
|
@@ -2392,11 +2413,11 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
2392
2413
|
_v$15 = i18n_.range_filter_high_point_aria_label_(),
|
|
2393
2414
|
_v$16 = min_(),
|
|
2394
2415
|
_v$17 = max_();
|
|
2395
|
-
_v$10 !== _p$._v$10 && (_el$28
|
|
2416
|
+
_v$10 !== _p$._v$10 && $8tj43$setProperty(_el$28, "disabled", _p$._v$10 = _v$10);
|
|
2396
2417
|
_v$11 !== _p$._v$11 && $8tj43$setAttribute(_el$28, "aria-label", _p$._v$11 = _v$11);
|
|
2397
2418
|
_v$12 !== _p$._v$12 && $8tj43$setAttribute(_el$28, "min", _p$._v$12 = _v$12);
|
|
2398
2419
|
_v$13 !== _p$._v$13 && $8tj43$setAttribute(_el$28, "max", _p$._v$13 = _v$13);
|
|
2399
|
-
_v$14 !== _p$._v$14 && (_el$29
|
|
2420
|
+
_v$14 !== _p$._v$14 && $8tj43$setProperty(_el$29, "disabled", _p$._v$14 = _v$14);
|
|
2400
2421
|
_v$15 !== _p$._v$15 && $8tj43$setAttribute(_el$29, "aria-label", _p$._v$15 = _v$15);
|
|
2401
2422
|
_v$16 !== _p$._v$16 && $8tj43$setAttribute(_el$29, "min", _p$._v$16 = _v$16);
|
|
2402
2423
|
_v$17 !== _p$._v$17 && $8tj43$setAttribute(_el$29, "max", _p$._v$17 = _v$17);
|
|
@@ -2411,13 +2432,13 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
2411
2432
|
_v$16: undefined,
|
|
2412
2433
|
_v$17: undefined
|
|
2413
2434
|
});
|
|
2414
|
-
$8tj43$effect(() => _el$28
|
|
2435
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$28, "value", $8tj43$createMemo(() => {
|
|
2415
2436
|
min_();
|
|
2416
2437
|
max_();
|
|
2417
2438
|
return get_current_range()[0];
|
|
2418
2439
|
}, undefined, {
|
|
2419
2440
|
equals: false
|
|
2420
|
-
})());
|
|
2441
|
+
})()));
|
|
2421
2442
|
$8tj43$runHydrationEvents();
|
|
2422
2443
|
return _el$27;
|
|
2423
2444
|
})()];
|
|
@@ -2437,7 +2458,7 @@ function $1e7465a8ffa97f6c$var$set_range_with_sanitation(min_, max_, current_ran
|
|
|
2437
2458
|
current_range_signal[1](new_value);
|
|
2438
2459
|
}
|
|
2439
2460
|
$8tj43$delegateEvents(["keydown", "click", "input"]);
|
|
2440
|
-
const $457279ff15864cb9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
2461
|
+
const $457279ff15864cb9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=morphing-sign role=img><span></span><span>`);
|
|
2441
2462
|
function $457279ff15864cb9$export$e5c2828934226505(_ref) {
|
|
2442
2463
|
let {
|
|
2443
2464
|
expanded_: expanded_,
|
|
@@ -2482,10 +2503,10 @@ function $457279ff15864cb9$export$e5c2828934226505(_ref) {
|
|
|
2482
2503
|
});
|
|
2483
2504
|
return outer_div;
|
|
2484
2505
|
}
|
|
2485
|
-
const $0ae614c5c7babb43$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class="checkboxes hierarchical"
|
|
2486
|
-
$0ae614c5c7babb43$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
2487
|
-
$0ae614c5c7babb43$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<details
|
|
2488
|
-
$0ae614c5c7babb43$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<summary class=
|
|
2506
|
+
const $0ae614c5c7babb43$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class="checkboxes hierarchical"><!$><!/><!$><!/>`),
|
|
2507
|
+
$0ae614c5c7babb43$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=checkbox-details><!$><!/><!$><!/>`),
|
|
2508
|
+
$0ae614c5c7babb43$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<details>`),
|
|
2509
|
+
$0ae614c5c7babb43$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<summary class=category-parent><div class=summary><span class=count></span><!$><!/>`);
|
|
2489
2510
|
const $0ae614c5c7babb43$var$max_visible_without_collapsing = 15;
|
|
2490
2511
|
const $0ae614c5c7babb43$var$show_non_collapsible_when_collapsed = 4;
|
|
2491
2512
|
function $0ae614c5c7babb43$export$a32086fa6616eafd(_ref) {
|
|
@@ -2957,9 +2978,9 @@ function $0ae614c5c7babb43$var$expand_until_choice(data_structure) {
|
|
|
2957
2978
|
}
|
|
2958
2979
|
});
|
|
2959
2980
|
}
|
|
2960
|
-
const $830ea8efda59884e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
2961
|
-
$830ea8efda59884e$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span class=
|
|
2962
|
-
$830ea8efda59884e$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button
|
|
2981
|
+
const $830ea8efda59884e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=checkbox-grid style=position:absolute;z-index:-1;pointer-events:none;opacity:0>`),
|
|
2982
|
+
$830ea8efda59884e$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span class=count-wrapper><span class=count>`),
|
|
2983
|
+
$830ea8efda59884e$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button><!$><!/><!$><!/>`);
|
|
2963
2984
|
const $830ea8efda59884e$var$gap_px = 5;
|
|
2964
2985
|
const $830ea8efda59884e$var$max_columns = 3;
|
|
2965
2986
|
const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
|
|
@@ -3177,7 +3198,7 @@ function $830ea8efda59884e$var$adjust_sizes(container_width, sizes, set_cols_at_
|
|
|
3177
3198
|
overrides: column_to_row_result
|
|
3178
3199
|
}]]);
|
|
3179
3200
|
}
|
|
3180
|
-
const $2cb856c297c53e6c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class=
|
|
3201
|
+
const $2cb856c297c53e6c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<form class=checkbox-color><!$><!/><!$><!/>`);
|
|
3181
3202
|
const $2cb856c297c53e6c$var$max_visible_without_collapsing = 30;
|
|
3182
3203
|
const $2cb856c297c53e6c$var$show_non_collapsible_when_collapsed = 8;
|
|
3183
3204
|
function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
@@ -3374,7 +3395,7 @@ var $d2988f745661df9c$export$2e2bcd8739ae039 = {
|
|
|
3374
3395
|
"checkbox-grid": (0, $830ea8efda59884e$export$414f6a19d38e655c),
|
|
3375
3396
|
"checkbox-color": (0, $2cb856c297c53e6c$export$82ed4b28ecb67608)
|
|
3376
3397
|
};
|
|
3377
|
-
const $905f44be08b7378e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
3398
|
+
const $905f44be08b7378e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg width=16.8 height=14><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">`);
|
|
3378
3399
|
function $905f44be08b7378e$export$f2ca6fc699ca1fb4() {
|
|
3379
3400
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3380
3401
|
return (() => {
|
|
@@ -3384,7 +3405,7 @@ function $905f44be08b7378e$export$f2ca6fc699ca1fb4() {
|
|
|
3384
3405
|
return _el$;
|
|
3385
3406
|
})();
|
|
3386
3407
|
}
|
|
3387
|
-
const $d0ff304c14f50521$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=
|
|
3408
|
+
const $d0ff304c14f50521$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=show-selected aria-hidden=true><span></span><!$><!/>`);
|
|
3388
3409
|
function $d0ff304c14f50521$export$53c59af873b303c9(_ref) {
|
|
3389
3410
|
let {
|
|
3390
3411
|
selected_filters_in_group_: selected_filters_in_group_,
|
|
@@ -3510,7 +3531,7 @@ function $f1e63746f76ce012$export$ab34afce88557c0e(props) {
|
|
|
3510
3531
|
}));
|
|
3511
3532
|
return is_open;
|
|
3512
3533
|
}
|
|
3513
|
-
const $bc2337c9a05ecd18$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span
|
|
3534
|
+
const $bc2337c9a05ecd18$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span>`);
|
|
3514
3535
|
function $bc2337c9a05ecd18$export$acb3eaade4b23afd(props) {
|
|
3515
3536
|
return (() => {
|
|
3516
3537
|
const _el$ = $8tj43$getNextElement($bc2337c9a05ecd18$var$_tmpl$);
|
|
@@ -3551,14 +3572,14 @@ function $ceafb6fb91c6f394$export$89c6019e4baa40b1(props) {
|
|
|
3551
3572
|
}
|
|
3552
3573
|
});
|
|
3553
3574
|
}
|
|
3554
|
-
const $f6b0500577e1b210$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
3555
|
-
$f6b0500577e1b210$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class=
|
|
3556
|
-
$f6b0500577e1b210$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
3557
|
-
$f6b0500577e1b210$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
3558
|
-
$f6b0500577e1b210$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<details class=
|
|
3559
|
-
$f6b0500577e1b210$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<summary class=
|
|
3560
|
-
$f6b0500577e1b210$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
3561
|
-
$f6b0500577e1b210$var$_tmpl$8 = /*#__PURE__*/$8tj43$template(`<button class="clear-all-filters major"
|
|
3575
|
+
const $f6b0500577e1b210$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible>`),
|
|
3576
|
+
$f6b0500577e1b210$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class=clear-group><!$><!/><span>`),
|
|
3577
|
+
$f6b0500577e1b210$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
3578
|
+
$f6b0500577e1b210$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible-body><div class=filter-part></div><!$><!/>`),
|
|
3579
|
+
$f6b0500577e1b210$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<details class=filter-collapsible>`),
|
|
3580
|
+
$f6b0500577e1b210$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
3581
|
+
$f6b0500577e1b210$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class=ungrouped>`),
|
|
3582
|
+
$f6b0500577e1b210$var$_tmpl$8 = /*#__PURE__*/$8tj43$template(`<button class="clear-all-filters major">`);
|
|
3562
3583
|
function $f6b0500577e1b210$export$3f1a388cc0d8fed7(props) {
|
|
3563
3584
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
3564
3585
|
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
@@ -4584,7 +4605,7 @@ function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
|
|
|
4584
4605
|
$8tj43$onCleanup(() => removeEventListener(event, catchified_handler));
|
|
4585
4606
|
}
|
|
4586
4607
|
}
|
|
4587
|
-
const $b69740fc6de9f17e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
4608
|
+
const $b69740fc6de9f17e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=scroll-status style=display:none><span class=text><b></b> – <b></b> <!$><!/> <b>`);
|
|
4588
4609
|
function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
|
|
4589
4610
|
let {
|
|
4590
4611
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
@@ -4722,8 +4743,8 @@ function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
|
|
|
4722
4743
|
return _el$;
|
|
4723
4744
|
})();
|
|
4724
4745
|
}
|
|
4725
|
-
const $94af29837186eb21$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a class=
|
|
4726
|
-
$94af29837186eb21$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
4746
|
+
const $94af29837186eb21$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a class=hint href=javascript:void(0)>`),
|
|
4747
|
+
$94af29837186eb21$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=no-results><div class=text></div><!$><!/>`);
|
|
4727
4748
|
function $94af29837186eb21$export$ef6006467f04ee41(_ref) {
|
|
4728
4749
|
let {
|
|
4729
4750
|
i18n_: i18n_,
|
|
@@ -4881,7 +4902,9 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
|
|
|
4881
4902
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4882
4903
|
query_base_: query_base_,
|
|
4883
4904
|
depict_api_: depict_api_,
|
|
4884
|
-
is_loading_: is_loading_
|
|
4905
|
+
is_loading_: is_loading_,
|
|
4906
|
+
content_blocks_: content_blocks_,
|
|
4907
|
+
set_number_loaded_displays_: set_number_loaded_displays_
|
|
4885
4908
|
} = _ref;
|
|
4886
4909
|
// The following sets up an intersection observer to determine which results are in the viewport, used for the ScrollStatus indicator and knowing when to load more
|
|
4887
4910
|
const target_to_index_map = new Map();
|
|
@@ -4928,11 +4951,13 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
|
|
|
4928
4951
|
query_base_: query_base_,
|
|
4929
4952
|
depict_api_: depict_api_
|
|
4930
4953
|
});
|
|
4954
|
+
$8tj43$createComputed(() => set_number_loaded_displays_(displays_by_key_().size));
|
|
4931
4955
|
return $2d7bad8684bc7f44$export$43f0fb951fcb0c54({
|
|
4932
4956
|
displays_by_key_: displays_by_key_,
|
|
4933
4957
|
merchant_: merchant_,
|
|
4934
4958
|
market_: market_,
|
|
4935
4959
|
product_card_template_: product_card_template_,
|
|
4960
|
+
content_blocks_: content_blocks_,
|
|
4936
4961
|
do_per_elements_: (elements, index_accessor) =>
|
|
4937
4962
|
// Adds/removes elements from the "results in viewport" intersection observer above
|
|
4938
4963
|
$8tj43$createEffect(() => {
|
|
@@ -4954,7 +4979,367 @@ function $45a8953d760b5e58$export$a1fd619a4743ca08(_ref) {
|
|
|
4954
4979
|
})
|
|
4955
4980
|
});
|
|
4956
4981
|
}
|
|
4957
|
-
const $
|
|
4982
|
+
const $64d94dcaa058dc7b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
4983
|
+
$64d94dcaa058dc7b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<style type=text/css>`);
|
|
4984
|
+
const $64d94dcaa058dc7b$export$c500183c31c2b22e = "--spans-columns";
|
|
4985
|
+
function $64d94dcaa058dc7b$export$ab6b147eec64fea5(props) {
|
|
4986
|
+
const container_class = "x" + $8tj43$createUniqueId();
|
|
4987
|
+
const container_element_ = (() => {
|
|
4988
|
+
const _el$ = $8tj43$getNextElement($64d94dcaa058dc7b$var$_tmpl$);
|
|
4989
|
+
$8tj43$spread(_el$, $8tj43$mergeProps(() => props.element_attributes, {
|
|
4990
|
+
"classList": {
|
|
4991
|
+
[container_class]: true
|
|
4992
|
+
}
|
|
4993
|
+
}), false, true);
|
|
4994
|
+
$8tj43$insert(_el$, () => props.children);
|
|
4995
|
+
$8tj43$runHydrationEvents();
|
|
4996
|
+
return _el$;
|
|
4997
|
+
})(); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
4998
|
+
return $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
4999
|
+
message_: "Failed calculating css grid layout",
|
|
5000
|
+
severity_: "error",
|
|
5001
|
+
get children() {
|
|
5002
|
+
return $64d94dcaa058dc7b$export$e2f22da34aaf310a(props, container_element_, false, container_class);
|
|
5003
|
+
}
|
|
5004
|
+
});
|
|
5005
|
+
}
|
|
5006
|
+
function $64d94dcaa058dc7b$export$e2f22da34aaf310a(props, container_element) {
|
|
5007
|
+
let insert_after_container = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
5008
|
+
let container_class = arguments.length > 3 ? arguments[3] : undefined;
|
|
5009
|
+
if (!container_class) {
|
|
5010
|
+
// only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
|
|
5011
|
+
container_class = $8tj43$make_random_classname();
|
|
5012
|
+
container_element.classList.add(container_class);
|
|
5013
|
+
}
|
|
5014
|
+
const container_selector = ".depict .".concat(container_class); // class so ppl can have id if needed
|
|
5015
|
+
const col_styling = $8tj43$createMemo(() => $64d94dcaa058dc7b$var$generate_media_queried_declarations({
|
|
5016
|
+
container_selector_: container_selector,
|
|
5017
|
+
default_grid_spacing_text: props.grid_spacing,
|
|
5018
|
+
cols_at_size_: props.cols_at_size,
|
|
5019
|
+
override_vertical_spacing_: props.override_vertical_spacing,
|
|
5020
|
+
top_row_shortened_by_: props.top_row_shortened_by_()
|
|
5021
|
+
}));
|
|
5022
|
+
const base_styling = $8tj43$createMemo(() => {
|
|
5023
|
+
return "".concat(container_selector, "{display:grid;}");
|
|
5024
|
+
});
|
|
5025
|
+
const get_styling = $8tj43$createMemo(() => base_styling() + col_styling());
|
|
5026
|
+
const style_element = (() => {
|
|
5027
|
+
const _el$2 = $8tj43$getNextElement($64d94dcaa058dc7b$var$_tmpl$2);
|
|
5028
|
+
$8tj43$insert(_el$2, get_styling);
|
|
5029
|
+
return _el$2;
|
|
5030
|
+
})(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
5031
|
+
if (insert_after_container) container_element.after(style_element);
|
|
5032
|
+
return [container_element, style_element];
|
|
5033
|
+
}
|
|
5034
|
+
function $64d94dcaa058dc7b$var$generate_media_queried_declarations(_ref) {
|
|
5035
|
+
let {
|
|
5036
|
+
container_selector_: container_selector_,
|
|
5037
|
+
default_grid_spacing_text: default_grid_spacing_text,
|
|
5038
|
+
cols_at_size_: cols_at_size_,
|
|
5039
|
+
override_vertical_spacing_: override_vertical_spacing_,
|
|
5040
|
+
top_row_shortened_by_: top_row_shortened_by_
|
|
5041
|
+
} = _ref;
|
|
5042
|
+
return cols_at_size_.map(options => {
|
|
5043
|
+
const [n_cols, min, max, grid_spacing_for_size] = options;
|
|
5044
|
+
const spacing_to_use = grid_spacing_for_size || default_grid_spacing_text;
|
|
5045
|
+
// See comment in else block below
|
|
5046
|
+
const can_use_gap = $64d94dcaa058dc7b$var$can_use_gap_for_unit(spacing_to_use) && (!override_vertical_spacing_ || $64d94dcaa058dc7b$var$can_use_gap_for_unit(override_vertical_spacing_));
|
|
5047
|
+
let spacing_styling;
|
|
5048
|
+
let additional_styling = ""; // outside the media query
|
|
5049
|
+
if (can_use_gap) spacing_styling = "gap:".concat(spacing_to_use, ";").concat(override_vertical_spacing_ ? "row-gap:".concat(override_vertical_spacing_, ";") : "");else {
|
|
5050
|
+
// When using percent units, which our default styling does (because convenient) and our interface relies on (hard to specify different gaps for different screen sizes)
|
|
5051
|
+
// row gaps in grids are relative to the whole height of the grid, maybe see also https://stackoverflow.com/a/53563865. The issue with that is that as we load more products, the gap grows. Also, it breaks existing integrations.
|
|
5052
|
+
// Logical thought: use margins for the vertical spacing. But margins in grids are apparently relative to the size of the individual items in grids.
|
|
5053
|
+
// Given that, and that content blocks can be of different width, we have to do some complicated calculations to convert the provided gap, which is in gap of the total container width, to a margin of the individual items.
|
|
5054
|
+
const width_multiplier = "var(".concat($64d94dcaa058dc7b$export$c500183c31c2b22e, ", 1)"); // How many cards wide the current item is (needed because content blocks)
|
|
5055
|
+
const one_item_width_exclusing_gaps = "calc(calc(100 / ".concat(n_cols, ") - calc(calc(").concat(n_cols * 2 - 2, " * calc(").concat($64d94dcaa058dc7b$var$strip_percent_unit(spacing_to_use), " / 2)) / ").concat(n_cols, "))"); // Width of one item in percent of the whole
|
|
5056
|
+
// Equation from layout.tsx, also used in CheckboxGrid. Needs half spacing for some reason
|
|
5057
|
+
const this_item_width_meat = "calc(".concat(one_item_width_exclusing_gaps, " * ").concat(width_multiplier, ")"); // Width of just the card
|
|
5058
|
+
const this_item_width_gaps = "calc(calc(".concat(width_multiplier, " - 1) * ").concat($64d94dcaa058dc7b$var$strip_percent_unit(spacing_to_use), ")"); // Width of the gaps
|
|
5059
|
+
const this_item_width = "calc(".concat(this_item_width_meat, " + ").concat(this_item_width_gaps, ")"); // Width of this item including gaps
|
|
5060
|
+
// this_item_width needs to be unitless, and since plain css can't do calc(40% / 5%) which would become unitless we need to strip all units in the calculations before
|
|
5061
|
+
const convert_top_spacing_to_item_width_percentage = spacing => "calc(calc(100 / ".concat(this_item_width, ") * ").concat(spacing, ")"); // Now finally we can convert the desired spacing to a percentage of this individual item's width (including gaps that would be there but aren't because content blocks span them)
|
|
5062
|
+
spacing_styling = "column-gap:".concat(spacing_to_use, ";"); // Still use gaps in the horizontal direction because that works flawlessly
|
|
5063
|
+
// Re-use old layout code to get the correct :nth-child declarations for the top margins
|
|
5064
|
+
additional_styling = $8tj43$n_col_styling_with_dist(container_selector_ + ">", convert_top_spacing_to_item_width_percentage(default_grid_spacing_text), [[n_cols, min, max, grid_spacing_for_size ? convert_top_spacing_to_item_width_percentage(grid_spacing_for_size) : null]], "grid", override_vertical_spacing_ ? convert_top_spacing_to_item_width_percentage(override_vertical_spacing_) : override_vertical_spacing_, top_row_shortened_by_);
|
|
5065
|
+
}
|
|
5066
|
+
const media_query_body = "".concat(container_selector_, "{").concat(spacing_styling, "grid-template-columns:repeat(").concat(n_cols, ",minmax(0,1fr));}");
|
|
5067
|
+
return "".concat($8tj43$layout_media_query_header(min, max), "{").concat(media_query_body, "}").concat(additional_styling);
|
|
5068
|
+
}).join("");
|
|
5069
|
+
}
|
|
5070
|
+
function $64d94dcaa058dc7b$var$can_use_gap_for_unit(spacing) {
|
|
5071
|
+
const trimmed_spacing = spacing.trim();
|
|
5072
|
+
return !trimmed_spacing.includes("%");
|
|
5073
|
+
}
|
|
5074
|
+
function $64d94dcaa058dc7b$var$strip_percent_unit(css_value) {
|
|
5075
|
+
return css_value.replaceAll("%", "");
|
|
5076
|
+
}
|
|
5077
|
+
function $b2dbaafb23d00c7f$export$cb5808ba002cdeed(_ref) {
|
|
5078
|
+
let {
|
|
5079
|
+
layout_options_: layout_options_,
|
|
5080
|
+
sort_or_filter_open_: sort_or_filter_open_
|
|
5081
|
+
} = _ref;
|
|
5082
|
+
return $8tj43$createMemo(() => {
|
|
5083
|
+
const layout_options = layout_options_();
|
|
5084
|
+
// Add grid styling that changes when filters get opened/closed
|
|
5085
|
+
const when_filters_closed_cols = layout_options.cols_at_size;
|
|
5086
|
+
return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
|
|
5087
|
+
const [num_cols_default,,,, override_cols] = row;
|
|
5088
|
+
const cloned_row = [...row];
|
|
5089
|
+
// @ts-ignore
|
|
5090
|
+
cloned_row[0] = num_cols_default - 1;
|
|
5091
|
+
if (override_cols)
|
|
5092
|
+
// @ts-ignore
|
|
5093
|
+
cloned_row[4] = {
|
|
5094
|
+
overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(_ref2 => {
|
|
5095
|
+
let [row, column] = _ref2;
|
|
5096
|
+
return [row, column - 1];
|
|
5097
|
+
}))
|
|
5098
|
+
};
|
|
5099
|
+
return cloned_row;
|
|
5100
|
+
}) : when_filters_closed_cols;
|
|
5101
|
+
});
|
|
5102
|
+
}
|
|
5103
|
+
function $8244fdad249f8d5f$export$a79e666719b3647c(cols_at_size_) {
|
|
5104
|
+
const size_active = $8tj43$createMemo(() => cols_at_size_().map(_ref => {
|
|
5105
|
+
let [n_cols, min_width, max_width] = _ref;
|
|
5106
|
+
const media_query = $8tj43$layout_media_query_header(min_width, max_width).replaceAll("@media", "");
|
|
5107
|
+
const matches = $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query);
|
|
5108
|
+
return [matches, n_cols];
|
|
5109
|
+
}));
|
|
5110
|
+
const n_cols_currently_showing = $8tj43$createMemo(() => {
|
|
5111
|
+
try {
|
|
5112
|
+
const [, n_cols_currently_showing] = size_active().find(_ref2 => {
|
|
5113
|
+
let [media_query] = _ref2;
|
|
5114
|
+
return media_query();
|
|
5115
|
+
});
|
|
5116
|
+
return n_cols_currently_showing;
|
|
5117
|
+
} catch (e) {
|
|
5118
|
+
$8tj43$dwarn("No active size found in columnsAtSize - can't render content blocks");
|
|
5119
|
+
return null;
|
|
5120
|
+
}
|
|
5121
|
+
});
|
|
5122
|
+
return n_cols_currently_showing;
|
|
5123
|
+
}
|
|
5124
|
+
function $3ab4aa97880fb88d$export$3f37af283f8fb843(props) {
|
|
5125
|
+
const style = $8tj43$createMemo(() => {
|
|
5126
|
+
const {
|
|
5127
|
+
style: style,
|
|
5128
|
+
height: height,
|
|
5129
|
+
width: width,
|
|
5130
|
+
aspectRatio: aspectRatio
|
|
5131
|
+
} = props;
|
|
5132
|
+
const is_image = aspectRatio != undefined;
|
|
5133
|
+
const size_data = is_image ? {
|
|
5134
|
+
width: "100%",
|
|
5135
|
+
"padding-bottom": 1 / aspectRatio * 100 + "%"
|
|
5136
|
+
} : {
|
|
5137
|
+
width: width,
|
|
5138
|
+
height: height
|
|
5139
|
+
};
|
|
5140
|
+
return {
|
|
5141
|
+
display: "block",
|
|
5142
|
+
...(style || {}),
|
|
5143
|
+
...size_data
|
|
5144
|
+
};
|
|
5145
|
+
});
|
|
5146
|
+
return $8tj43$createComponent((0, $bc2337c9a05ecd18$export$acb3eaade4b23afd), {
|
|
5147
|
+
get style() {
|
|
5148
|
+
return style();
|
|
5149
|
+
},
|
|
5150
|
+
get ["class"]() {
|
|
5151
|
+
return props.class;
|
|
5152
|
+
}
|
|
5153
|
+
});
|
|
5154
|
+
}
|
|
5155
|
+
const $ff7feae4dddd6073$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=content-block-wrapper>`);
|
|
5156
|
+
function $ff7feae4dddd6073$export$791ef57e62e21c3f(_ref) {
|
|
5157
|
+
let {
|
|
5158
|
+
content_blocks_: incoming_content_blocks,
|
|
5159
|
+
cols_at_size_: cols_at_size_,
|
|
5160
|
+
number_of_items_shown_: number_of_items_shown_,
|
|
5161
|
+
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
5162
|
+
} = _ref;
|
|
5163
|
+
// these are by row
|
|
5164
|
+
const [content_blocks, set_content_blocks] = $8tj43$createStore([]);
|
|
5165
|
+
const n_cols_currently_showing_ = $8244fdad249f8d5f$export$a79e666719b3647c(cols_at_size_);
|
|
5166
|
+
const products_to_rows = products => {
|
|
5167
|
+
const cols_currently_showing = n_cols_currently_showing_();
|
|
5168
|
+
if (cols_currently_showing === null) return 0;
|
|
5169
|
+
return Math.ceil(products / cols_currently_showing);
|
|
5170
|
+
};
|
|
5171
|
+
const showing_rows = $8tj43$createMemo(() => products_to_rows(number_of_items_shown_()));
|
|
5172
|
+
$8tj43$createEffect(() => {
|
|
5173
|
+
const incoming_value = incoming_content_blocks();
|
|
5174
|
+
if (!incoming_value) {
|
|
5175
|
+
set_content_blocks([]);
|
|
5176
|
+
return;
|
|
5177
|
+
}
|
|
5178
|
+
const capped_value = incoming_value.slice(0, showing_rows()); // Don't show more content blocks than we have rows
|
|
5179
|
+
set_content_blocks($8tj43$reconcile(capped_value, {
|
|
5180
|
+
key: "content"
|
|
5181
|
+
})); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
|
|
5182
|
+
});
|
|
5183
|
+
|
|
5184
|
+
const get_wrapped_blocks_ = $ff7feae4dddd6073$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
|
|
5185
|
+
$8tj43$createComputed(() => {
|
|
5186
|
+
// Update our styling if a content block forces some items that should be in the top row into a lower one, so we can generate margin-top declarations for them
|
|
5187
|
+
const top_row_block = get_wrapped_blocks_()[0];
|
|
5188
|
+
const blocks_in_top_row_taken = top_row_block === null || top_row_block === void 0 ? void 0 : top_row_block.span_columns;
|
|
5189
|
+
if (blocks_in_top_row_taken == undefined) {
|
|
5190
|
+
// Fall back to zero if no content block in top row, since then no blocks in top row are taken
|
|
5191
|
+
set_top_row_shortened_by_(0);
|
|
5192
|
+
return;
|
|
5193
|
+
}
|
|
5194
|
+
set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
|
|
5195
|
+
});
|
|
5196
|
+
|
|
5197
|
+
return $ff7feae4dddd6073$var$remap_blocks_to_index({
|
|
5198
|
+
get_wrapped_blocks_: get_wrapped_blocks_,
|
|
5199
|
+
n_cols_currently_showing_: n_cols_currently_showing_
|
|
5200
|
+
});
|
|
5201
|
+
}
|
|
5202
|
+
/**
|
|
5203
|
+
* Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
|
|
5204
|
+
* @returns an array where index is index of the blocks in the "displays array" and value is the content block (elements) to show at that index
|
|
5205
|
+
*/
|
|
5206
|
+
function $ff7feae4dddd6073$var$remap_blocks_to_index(_ref2) {
|
|
5207
|
+
let {
|
|
5208
|
+
get_wrapped_blocks_: get_wrapped_blocks_,
|
|
5209
|
+
n_cols_currently_showing_: n_cols_currently_showing_
|
|
5210
|
+
} = _ref2;
|
|
5211
|
+
return $8tj43$createMemo(() => {
|
|
5212
|
+
// This computation should be quite cheap since it just moves around things into an array
|
|
5213
|
+
const content_blocks_by_index = [];
|
|
5214
|
+
const constructed_block_arrays = new WeakSet();
|
|
5215
|
+
const wrapped_blocks = get_wrapped_blocks_();
|
|
5216
|
+
const cols_showing = n_cols_currently_showing_();
|
|
5217
|
+
// Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
|
|
5218
|
+
const displaced_products = []; // undefined = is product, true = is content block if number instead of tuple number indicates content blocks in that row. Index in first array is row, index in second array is column
|
|
5219
|
+
for (let i = 0; i < wrapped_blocks.length; i++) {
|
|
5220
|
+
// i = row to show at
|
|
5221
|
+
const block = wrapped_blocks[i];
|
|
5222
|
+
if (!block) continue; // Array can have holes/not defined places
|
|
5223
|
+
const index_of_first_item_in_row = i * cols_showing;
|
|
5224
|
+
const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
|
|
5225
|
+
const {
|
|
5226
|
+
span_rows: span_rows,
|
|
5227
|
+
position: position,
|
|
5228
|
+
span_columns: span_columns
|
|
5229
|
+
} = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
|
|
5230
|
+
let target_index;
|
|
5231
|
+
if (position === "left") target_index = index_of_first_item_in_row;else if (position === "right") target_index = index_of_last_item_in_row - span_columns;else if (position === "center") target_index = index_of_first_item_in_row + Math.floor((cols_showing - span_columns) / 2);else throw new Error("Invalid position for content block - must be left, right or center: " + JSON.stringify(position));
|
|
5232
|
+
// Calculate displacement of us by content blocks above us
|
|
5233
|
+
let displacement_by_added_blocks = 0;
|
|
5234
|
+
for (let j = 0; j < i; j++) {
|
|
5235
|
+
const row = displaced_products[j];
|
|
5236
|
+
if (row === undefined) continue; // there were no blocks in this row
|
|
5237
|
+
let items_in_row;
|
|
5238
|
+
if (typeof row === "number") items_in_row = row;else {
|
|
5239
|
+
items_in_row = row.filter(item => item).length;
|
|
5240
|
+
displaced_products[j] = items_in_row;
|
|
5241
|
+
}
|
|
5242
|
+
displacement_by_added_blocks += items_in_row;
|
|
5243
|
+
}
|
|
5244
|
+
const index_of_us_in_row = target_index - index_of_first_item_in_row;
|
|
5245
|
+
for (let j = 0; j < index_of_us_in_row; j++) {
|
|
5246
|
+
var _displaced_products$i;
|
|
5247
|
+
if ((_displaced_products$i = displaced_products[i]) !== null && _displaced_products$i !== void 0 && _displaced_products$i[j])
|
|
5248
|
+
// Add blocks in our *current* row to the displacement, but only the ones to our left
|
|
5249
|
+
displacement_by_added_blocks++;
|
|
5250
|
+
}
|
|
5251
|
+
// Add block to output array at the correct index
|
|
5252
|
+
const final_target_index = target_index - displacement_by_added_blocks;
|
|
5253
|
+
const existing_block = content_blocks_by_index[final_target_index];
|
|
5254
|
+
const block_content = block.content;
|
|
5255
|
+
// If two blocks want to exist at the same location (can happen, for example if one block wants to be at the end of a row and the other one at the start of the next row) add an array with both
|
|
5256
|
+
if (existing_block) {
|
|
5257
|
+
if (constructed_block_arrays.has(existing_block))
|
|
5258
|
+
// Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
|
|
5259
|
+
existing_block.push(block_content);else {
|
|
5260
|
+
const array = [existing_block, block_content];
|
|
5261
|
+
constructed_block_arrays.add(array);
|
|
5262
|
+
content_blocks_by_index[final_target_index] = array;
|
|
5263
|
+
}
|
|
5264
|
+
} else content_blocks_by_index[final_target_index] = block_content;
|
|
5265
|
+
// Update displacement
|
|
5266
|
+
for (let j = 0; j < span_rows; j++) {
|
|
5267
|
+
var _ref3;
|
|
5268
|
+
const row = displaced_products[_ref3 = i + j] || (displaced_products[_ref3] = []);
|
|
5269
|
+
for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
return content_blocks_by_index;
|
|
5273
|
+
});
|
|
5274
|
+
}
|
|
5275
|
+
/**
|
|
5276
|
+
* Takes a store that contains an array from where index is number of row and value is the result of executing the content block rendering function.
|
|
5277
|
+
* Then renders the content and wraps it into a div with the correct styling.
|
|
5278
|
+
* Also caps span_columns to max available columns
|
|
5279
|
+
*/
|
|
5280
|
+
function $ff7feae4dddd6073$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
|
|
5281
|
+
const get_wrapped_blocks = $8tj43$mapArray(() => rendered_content_blocks, block => {
|
|
5282
|
+
if (!block) return;
|
|
5283
|
+
const get_span_columns = () => {
|
|
5284
|
+
var _max_span_columns;
|
|
5285
|
+
return Math.min(block.span_columns, (_max_span_columns = max_span_columns()) !== null && _max_span_columns !== void 0 ? _max_span_columns : Infinity);
|
|
5286
|
+
};
|
|
5287
|
+
return $8tj43$mergeProps1(block, {
|
|
5288
|
+
// Create content divs for the blocks with as much fine-grained diffing as possible?
|
|
5289
|
+
content: (() => {
|
|
5290
|
+
const _el$ = $8tj43$getNextElement($ff7feae4dddd6073$var$_tmpl$);
|
|
5291
|
+
$8tj43$insert(_el$, $8tj43$createComponent($ff7feae4dddd6073$var$RenderContent, {
|
|
5292
|
+
get content() {
|
|
5293
|
+
return block.content;
|
|
5294
|
+
}
|
|
5295
|
+
}));
|
|
5296
|
+
$8tj43$effect(_p$ => {
|
|
5297
|
+
const _v$ = {
|
|
5298
|
+
[(0, $64d94dcaa058dc7b$export$c500183c31c2b22e)]: get_span_columns()
|
|
5299
|
+
},
|
|
5300
|
+
_v$2 = "span ".concat(get_span_columns()),
|
|
5301
|
+
_v$3 = "span ".concat(block.span_rows);
|
|
5302
|
+
_p$._v$ = $8tj43$style(_el$, _v$, _p$._v$);
|
|
5303
|
+
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
|
|
5304
|
+
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
|
|
5305
|
+
return _p$;
|
|
5306
|
+
}, {
|
|
5307
|
+
_v$: undefined,
|
|
5308
|
+
_v$2: undefined,
|
|
5309
|
+
_v$3: undefined
|
|
5310
|
+
});
|
|
5311
|
+
return _el$;
|
|
5312
|
+
})(),
|
|
5313
|
+
get span_columns() {
|
|
5314
|
+
// Cap max width of block to the number of columns available, for everyone downstream
|
|
5315
|
+
return get_span_columns();
|
|
5316
|
+
}
|
|
5317
|
+
});
|
|
5318
|
+
});
|
|
5319
|
+
return get_wrapped_blocks;
|
|
5320
|
+
}
|
|
5321
|
+
/**
|
|
5322
|
+
* Basically adds support for async content block functions and shows a rudimentary placeholder if rendering is delayed. Required due to react having a rendering delay.
|
|
5323
|
+
*/
|
|
5324
|
+
function $ff7feae4dddd6073$var$RenderContent(props) {
|
|
5325
|
+
const [resource] = $8tj43$createResource(() => props.content,
|
|
5326
|
+
// Could be reactive
|
|
5327
|
+
fn => fn());
|
|
5328
|
+
$8tj43$createEffect(() => {
|
|
5329
|
+
if (resource.error) console.error("Error in content block rendering", resource.error);
|
|
5330
|
+
});
|
|
5331
|
+
// The suspense is for when there's an async content block (which we have to support due to react having a rendering delay) so that we can show some height while it's loading (should kinda never be visible)
|
|
5332
|
+
return $8tj43$createComponent((0, $8tj43$Suspense), {
|
|
5333
|
+
get fallback() {
|
|
5334
|
+
return $8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
5335
|
+
width: "100%",
|
|
5336
|
+
height: "max(100%, 400px)"
|
|
5337
|
+
});
|
|
5338
|
+
},
|
|
5339
|
+
children: resource
|
|
5340
|
+
});
|
|
5341
|
+
}
|
|
5342
|
+
const $7faea0096f14b59b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=PLP-results><!$><!/><!$><!/>`);
|
|
4958
5343
|
function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
4959
5344
|
let {
|
|
4960
5345
|
plp_results_: plp_results_,
|
|
@@ -4970,7 +5355,8 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
4970
5355
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
4971
5356
|
product_card_template_: product_card_template_,
|
|
4972
5357
|
layout_options_: layout_options_,
|
|
4973
|
-
id_currently_querying_for_: id_currently_querying_for_
|
|
5358
|
+
id_currently_querying_for_: id_currently_querying_for_,
|
|
5359
|
+
content_blocks_by_row_: content_blocks_by_row_
|
|
4974
5360
|
} = _ref;
|
|
4975
5361
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
4976
5362
|
const is_loading_ = $8tj43$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -5019,24 +5405,37 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
5019
5405
|
let is_just_after_plp_results_update = false;
|
|
5020
5406
|
let fallback_is_alive = false;
|
|
5021
5407
|
const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = $8tj43$createSignal(true);
|
|
5408
|
+
const [top_row_shortened_by_, set_top_row_shortened_by_] = $8tj43$createSignal(0);
|
|
5409
|
+
const [product_card_suspense_is_in_fallback, set_product_card_suspense_is_in_fallback] = $8tj43$createSignal(false);
|
|
5410
|
+
const [number_loaded_displays, set_number_loaded_displays_] = $8tj43$createSignal(0);
|
|
5411
|
+
const modified_cols_at_size = $b2dbaafb23d00c7f$export$cb5808ba002cdeed({
|
|
5412
|
+
layout_options_: layout_options_,
|
|
5413
|
+
sort_or_filter_open_: sort_or_filter_open_
|
|
5414
|
+
});
|
|
5415
|
+
const num_placeholders_ = $8tj43$createMemo(() => {
|
|
5416
|
+
var _get_scroll_restorati, _get_scroll_restorati2;
|
|
5417
|
+
// Can't use the data out of request_base for the id because request_base is too late, we need the correct amount of placeholders before the browser has restored the scroll state after processing all popstate events
|
|
5418
|
+
return (0, $981356a8bf29ad72$export$6c9030e511152266) + ((_get_scroll_restorati = (_get_scroll_restorati2 = get_scroll_restoration_data().find(_ref2 => {
|
|
5419
|
+
let {
|
|
5420
|
+
for_id: for_id
|
|
5421
|
+
} = _ref2;
|
|
5422
|
+
return for_id === id_currently_querying_for_();
|
|
5423
|
+
})) === null || _get_scroll_restorati2 === void 0 ? void 0 : _get_scroll_restorati2.min_results_loaded) !== null && _get_scroll_restorati !== void 0 ? _get_scroll_restorati : min_products_to_fetch_);
|
|
5424
|
+
});
|
|
5425
|
+
const number_of_items_shown_ = $8tj43$createMemo(() => is_loading_() || product_card_suspense_is_in_fallback() ? num_placeholders_() : number_loaded_displays());
|
|
5426
|
+
const doesnt_have_content_blocks = $8tj43$createMemo(() => !content_blocks_by_row_());
|
|
5427
|
+
const content_blocks_ = $8tj43$createMemo(() => doesnt_have_content_blocks() ? () => [] : $ff7feae4dddd6073$export$791ef57e62e21c3f({
|
|
5428
|
+
content_blocks_: content_blocks_by_row_,
|
|
5429
|
+
cols_at_size_: modified_cols_at_size,
|
|
5430
|
+
number_of_items_shown_: number_of_items_shown_,
|
|
5431
|
+
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
5432
|
+
}));
|
|
5022
5433
|
const rendered_placeholders = $8tj43$createMemo(() => get_should_have_placeholders_rendered() ? $bdd80c7862246dc2$export$f33414a4df0afd3f({
|
|
5434
|
+
content_blocks_: content_blocks_,
|
|
5023
5435
|
product_card_template_: product_card_template_,
|
|
5024
|
-
num_placeholders_:
|
|
5025
|
-
var _get_scroll_restorati, _get_scroll_restorati2;
|
|
5026
|
-
// Can't use the data out of request_base for the id because request_base is too late, we need the correct amount of placeholders before the browser has restored the scroll state after processing all popstate events
|
|
5027
|
-
return (0, $981356a8bf29ad72$export$6c9030e511152266) + ((_get_scroll_restorati = (_get_scroll_restorati2 = get_scroll_restoration_data().find(_ref2 => {
|
|
5028
|
-
let {
|
|
5029
|
-
for_id: for_id
|
|
5030
|
-
} = _ref2;
|
|
5031
|
-
return for_id === id_currently_querying_for_();
|
|
5032
|
-
})) === null || _get_scroll_restorati2 === void 0 ? void 0 : _get_scroll_restorati2.min_results_loaded) !== null && _get_scroll_restorati !== void 0 ? _get_scroll_restorati : min_products_to_fetch_);
|
|
5033
|
-
})
|
|
5436
|
+
num_placeholders_: num_placeholders_
|
|
5034
5437
|
}) : undefined);
|
|
5035
5438
|
const [get_suspense_is_blocked, set_suspense_is_blocked] = $8tj43$createSignal(false);
|
|
5036
|
-
const modified_cols_at_size = $7faea0096f14b59b$var$make_modified_cols_at_size({
|
|
5037
|
-
layout_options_: layout_options_,
|
|
5038
|
-
sort_or_filter_open_: sort_or_filter_open_
|
|
5039
|
-
});
|
|
5040
5439
|
const block_suspense_if_needed = () => {
|
|
5041
5440
|
if (!is_just_after_plp_results_update) return;
|
|
5042
5441
|
is_just_after_plp_results_update = false;
|
|
@@ -5066,18 +5465,18 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
5066
5465
|
*/
|
|
5067
5466
|
const product_cards_when_data = $8tj43$createComponent((0, $8tj43$Suspense), {
|
|
5068
5467
|
get fallback() {
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
})
|
|
5468
|
+
fallback_is_alive = true;
|
|
5469
|
+
$8tj43$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
|
|
5470
|
+
set_product_card_suspense_is_in_fallback(true); // Here for the content block code that needs to know how many items we're displaying
|
|
5471
|
+
$8tj43$onCleanup(() => set_product_card_suspense_is_in_fallback(false));
|
|
5472
|
+
return $8tj43$createMemo(() => {
|
|
5473
|
+
// We need to be able to block the suspense since when async product cards are *rendering* we want to show the placeholders on initial load but not when loading more
|
|
5474
|
+
// In future we could have individual suspense's for each product card, but that's too much for now
|
|
5475
|
+
if (get_suspense_is_blocked()) return suspense_contents;
|
|
5476
|
+
set_should_have_placeholders_rendered(true); // just in case
|
|
5477
|
+
$8tj43$onCleanup(() => set_should_have_placeholders_rendered(false));
|
|
5478
|
+
return rendered_placeholders; // I lifted the placeholders into the memo since we don't want to re-render them when switching from <Show> to <Suspense>
|
|
5479
|
+
});
|
|
5081
5480
|
},
|
|
5082
5481
|
|
|
5083
5482
|
get children() {
|
|
@@ -5093,37 +5492,64 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
5093
5492
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
5094
5493
|
query_base_: query_base_,
|
|
5095
5494
|
depict_api_: depict_api_,
|
|
5096
|
-
is_loading_: is_loading_
|
|
5495
|
+
is_loading_: is_loading_,
|
|
5496
|
+
content_blocks_: content_blocks_,
|
|
5497
|
+
set_number_loaded_displays_: set_number_loaded_displays_
|
|
5097
5498
|
});
|
|
5098
5499
|
$8tj43$onCleanup(() => suspense_contents = undefined);
|
|
5099
5500
|
return suspense_contents;
|
|
5100
5501
|
})();
|
|
5101
5502
|
}
|
|
5102
5503
|
});
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5504
|
+
/* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
|
|
5505
|
+
const listing_contents = $8tj43$createComponent((0, $8tj43$Show), {
|
|
5506
|
+
get when() {
|
|
5507
|
+
return !is_loading_();
|
|
5106
5508
|
},
|
|
5107
|
-
get
|
|
5108
|
-
return
|
|
5509
|
+
get fallback() {
|
|
5510
|
+
return rendered_placeholders();
|
|
5109
5511
|
},
|
|
5110
|
-
|
|
5111
|
-
|
|
5512
|
+
children: product_cards_when_data
|
|
5513
|
+
});
|
|
5514
|
+
return [$8tj43$memo((0, $ca55612a53dbbdd2$export$a2cc176055f8f08)), $8tj43$createComponent((0, $8tj43$Show), {
|
|
5515
|
+
get when() {
|
|
5516
|
+
return doesnt_have_content_blocks();
|
|
5112
5517
|
},
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5518
|
+
get fallback() {
|
|
5519
|
+
return $8tj43$createComponent((0, $64d94dcaa058dc7b$export$ab6b147eec64fea5), {
|
|
5520
|
+
get cols_at_size() {
|
|
5521
|
+
return modified_cols_at_size();
|
|
5522
|
+
},
|
|
5523
|
+
get override_vertical_spacing() {
|
|
5524
|
+
return layout_options_().override_vertical_spacing;
|
|
5525
|
+
},
|
|
5526
|
+
get grid_spacing() {
|
|
5527
|
+
return layout_options_().grid_spacing;
|
|
5528
|
+
},
|
|
5529
|
+
element_attributes: {
|
|
5530
|
+
class: "cards css-grid"
|
|
5531
|
+
},
|
|
5532
|
+
top_row_shortened_by_: top_row_shortened_by_,
|
|
5533
|
+
children: listing_contents
|
|
5534
|
+
});
|
|
5117
5535
|
},
|
|
5118
5536
|
get children() {
|
|
5119
|
-
return $8tj43$createComponent((0, $
|
|
5120
|
-
get
|
|
5121
|
-
return
|
|
5537
|
+
return $8tj43$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), {
|
|
5538
|
+
get cols_at_size() {
|
|
5539
|
+
return modified_cols_at_size();
|
|
5540
|
+
},
|
|
5541
|
+
get override_vertical_spacing() {
|
|
5542
|
+
return layout_options_().override_vertical_spacing;
|
|
5543
|
+
},
|
|
5544
|
+
get grid_spacing() {
|
|
5545
|
+
return layout_options_().grid_spacing;
|
|
5122
5546
|
},
|
|
5123
|
-
|
|
5124
|
-
|
|
5547
|
+
rows: "all",
|
|
5548
|
+
layout: "grid",
|
|
5549
|
+
element_attributes: {
|
|
5550
|
+
class: "cards"
|
|
5125
5551
|
},
|
|
5126
|
-
children:
|
|
5552
|
+
children: listing_contents
|
|
5127
5553
|
});
|
|
5128
5554
|
}
|
|
5129
5555
|
})];
|
|
@@ -5136,40 +5562,10 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
5136
5562
|
return _el$;
|
|
5137
5563
|
})();
|
|
5138
5564
|
}
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
function $7faea0096f14b59b$var$make_modified_cols_at_size(_ref3) {
|
|
5144
|
-
let {
|
|
5145
|
-
layout_options_: layout_options_,
|
|
5146
|
-
sort_or_filter_open_: sort_or_filter_open_
|
|
5147
|
-
} = _ref3;
|
|
5148
|
-
return $8tj43$createMemo(() => {
|
|
5149
|
-
const layout_options = layout_options_();
|
|
5150
|
-
// Add grid styling that changes when filters get opened/closed
|
|
5151
|
-
const when_filters_closed_cols = layout_options.cols_at_size;
|
|
5152
|
-
return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
|
|
5153
|
-
const [num_cols_default,,,, override_cols] = row;
|
|
5154
|
-
const cloned_row = [...row];
|
|
5155
|
-
// @ts-ignore
|
|
5156
|
-
cloned_row[0] = num_cols_default - 1;
|
|
5157
|
-
if (override_cols)
|
|
5158
|
-
// @ts-ignore
|
|
5159
|
-
cloned_row[4] = {
|
|
5160
|
-
overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(_ref4 => {
|
|
5161
|
-
let [row, column] = _ref4;
|
|
5162
|
-
return [row, column - 1];
|
|
5163
|
-
}))
|
|
5164
|
-
};
|
|
5165
|
-
return cloned_row;
|
|
5166
|
-
}) : when_filters_closed_cols;
|
|
5167
|
-
});
|
|
5168
|
-
}
|
|
5169
|
-
const $cfdbd124dd09d713$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="sorting-attributes"></div>`, 2),
|
|
5170
|
-
$cfdbd124dd09d713$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="sorting-direction"></div>`, 2),
|
|
5171
|
-
$cfdbd124dd09d713$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></div></div>`, 9),
|
|
5172
|
-
$cfdbd124dd09d713$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></label></div>`, 9);
|
|
5565
|
+
const $cfdbd124dd09d713$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=sorting-attributes>`),
|
|
5566
|
+
$cfdbd124dd09d713$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=sorting-direction>`),
|
|
5567
|
+
$cfdbd124dd09d713$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div><div class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`),
|
|
5568
|
+
$cfdbd124dd09d713$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div><label class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`);
|
|
5173
5569
|
function $cfdbd124dd09d713$export$1f1775a58da589b5(_ref) {
|
|
5174
5570
|
let {
|
|
5175
5571
|
available_sortings_: available_sortings_,
|
|
@@ -5195,7 +5591,7 @@ function $cfdbd124dd09d713$export$1f1775a58da589b5(_ref) {
|
|
|
5195
5591
|
_el$7 = _el$6.nextSibling,
|
|
5196
5592
|
_el$8 = _el$7.nextSibling,
|
|
5197
5593
|
[_el$9, _co$] = $8tj43$getNextMarker(_el$8.nextSibling);
|
|
5198
|
-
_el$6
|
|
5594
|
+
$8tj43$setProperty(_el$6, "disabled", true);
|
|
5199
5595
|
$8tj43$insert(_el$5, $8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
|
|
5200
5596
|
height: "1.2em",
|
|
5201
5597
|
width: "100%"
|
|
@@ -5235,7 +5631,7 @@ function $cfdbd124dd09d713$export$1f1775a58da589b5(_ref) {
|
|
|
5235
5631
|
$8tj43$addEventListener(_el$12, "change", $8tj43$catchify(() => set_current_sorting(item())));
|
|
5236
5632
|
$8tj43$setAttribute(_el$12, "name", title_radio_name);
|
|
5237
5633
|
$8tj43$insert(_el$11, () => item().meta.title, _el$15, _co$2);
|
|
5238
|
-
$8tj43$effect(() => _el$12
|
|
5634
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$12, "checked", is_checked()));
|
|
5239
5635
|
return _el$10;
|
|
5240
5636
|
})()
|
|
5241
5637
|
);
|
|
@@ -5275,7 +5671,7 @@ function $cfdbd124dd09d713$export$1f1775a58da589b5(_ref) {
|
|
|
5275
5671
|
var _meta_of_currently_se4, _meta_of_currently_se5;
|
|
5276
5672
|
return (_meta_of_currently_se4 = meta_of_currently_selected_sorting_()) === null || _meta_of_currently_se4 === void 0 ? void 0 : (_meta_of_currently_se5 = _meta_of_currently_se4.names) === null || _meta_of_currently_se5 === void 0 ? void 0 : _meta_of_currently_se5[index];
|
|
5277
5673
|
}, _el$21, _co$3);
|
|
5278
|
-
$8tj43$effect(() => _el$18
|
|
5674
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$18, "checked", is_checked()));
|
|
5279
5675
|
return _el$16;
|
|
5280
5676
|
})();
|
|
5281
5677
|
}
|
|
@@ -5322,7 +5718,7 @@ function $e56d241d0f33d459$export$fe334901e8bebd57() {
|
|
|
5322
5718
|
// document.body.style.top = `-${from_top}px`;
|
|
5323
5719
|
// document.body.style.overflowY = "scroll";
|
|
5324
5720
|
|
|
5325
|
-
const $79af35736fe8e5c8$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
5721
|
+
const $79af35736fe8e5c8$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 class=sort-icon><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><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">`);
|
|
5326
5722
|
function $79af35736fe8e5c8$export$da32f7add8a22e86() {
|
|
5327
5723
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5328
5724
|
return (() => {
|
|
@@ -5332,7 +5728,7 @@ function $79af35736fe8e5c8$export$da32f7add8a22e86() {
|
|
|
5332
5728
|
return _el$;
|
|
5333
5729
|
})();
|
|
5334
5730
|
}
|
|
5335
|
-
const $73e3c96bc365e0e9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
5731
|
+
const $73e3c96bc365e0e9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 class=sort-icon><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">`);
|
|
5336
5732
|
function $73e3c96bc365e0e9$export$d10e63059ddb9fd4() {
|
|
5337
5733
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5338
5734
|
return (() => {
|
|
@@ -5342,7 +5738,7 @@ function $73e3c96bc365e0e9$export$d10e63059ddb9fd4() {
|
|
|
5342
5738
|
return _el$;
|
|
5343
5739
|
})();
|
|
5344
5740
|
}
|
|
5345
|
-
const $05f67356defcdd65$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
5741
|
+
const $05f67356defcdd65$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg 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">`);
|
|
5346
5742
|
function $05f67356defcdd65$export$28f6150e232898de() {
|
|
5347
5743
|
return $8tj43$getNextElement($05f67356defcdd65$var$_tmpl$);
|
|
5348
5744
|
}
|
|
@@ -5355,13 +5751,13 @@ function $6fcb97029a69ec44$export$50f68cc9882e36a4(args_for_filtering) {
|
|
|
5355
5751
|
var _args_for_filtering$a, _args_for_filtering$s;
|
|
5356
5752
|
return ((_args_for_filtering$a = args_for_filtering.available_filters_()) === null || _args_for_filtering$a === void 0 ? void 0 : _args_for_filtering$a.length) === 0 && !((_args_for_filtering$s = args_for_filtering.selected_filters_[0]()) !== null && _args_for_filtering$s !== void 0 && _args_for_filtering$s.length);
|
|
5357
5753
|
}
|
|
5358
|
-
const $082c4ed3e22f8d71$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="clear minor"
|
|
5359
|
-
$082c4ed3e22f8d71$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp"
|
|
5360
|
-
$082c4ed3e22f8d71$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<details class=
|
|
5361
|
-
$082c4ed3e22f8d71$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<summary class=
|
|
5362
|
-
$082c4ed3e22f8d71$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
5363
|
-
$082c4ed3e22f8d71$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<details class=
|
|
5364
|
-
$082c4ed3e22f8d71$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<b
|
|
5754
|
+
const $082c4ed3e22f8d71$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class="clear minor">`),
|
|
5755
|
+
$082c4ed3e22f8d71$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp"id=depict-filter-sort-mobile-modal-container><div class=depict-filter-sort-modal-backdrop></div><button class=dismiss-modal></button><div class=filter-sort-modal><div class=body><!$><!/><!$><!/></div><div class=bottom-row><!$><!/><button class="show-results major">`),
|
|
5756
|
+
$082c4ed3e22f8d71$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<details class=sorting>`),
|
|
5757
|
+
$082c4ed3e22f8d71$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<summary class=sort-filter-summary><div class=summary><div class=left-els><!$><!/><span></span></div><!$><!/>`),
|
|
5758
|
+
$082c4ed3e22f8d71$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=body>`),
|
|
5759
|
+
$082c4ed3e22f8d71$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<details class=filters>`),
|
|
5760
|
+
$082c4ed3e22f8d71$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<b>`);
|
|
5365
5761
|
const $082c4ed3e22f8d71$var$no_go_selector = ".range .range-group";
|
|
5366
5762
|
function $082c4ed3e22f8d71$export$9bf11afa910f536e(_ref) {
|
|
5367
5763
|
let {
|
|
@@ -5682,16 +6078,16 @@ function $082c4ed3e22f8d71$export$9bf11afa910f536e(_ref) {
|
|
|
5682
6078
|
})()];
|
|
5683
6079
|
}
|
|
5684
6080
|
$8tj43$delegateEvents(["click", "touchstart"]);
|
|
5685
|
-
const $bce10e104a1dd893$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
6081
|
+
const $bce10e104a1dd893$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg 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">`);
|
|
5686
6082
|
function $bce10e104a1dd893$export$cb808a3c41736d8e() {
|
|
5687
6083
|
return $8tj43$getNextElement($bce10e104a1dd893$var$_tmpl$);
|
|
5688
6084
|
}
|
|
5689
|
-
const $7396052a1484264f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
5690
|
-
$7396052a1484264f$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
5691
|
-
$7396052a1484264f$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
5692
|
-
$7396052a1484264f$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<span class=
|
|
5693
|
-
$7396052a1484264f$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
5694
|
-
$7396052a1484264f$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<button class="toggle-button for-sorting major-minor-transition"><span></span
|
|
6085
|
+
const $7396052a1484264f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filters><div class=body>`),
|
|
6086
|
+
$7396052a1484264f$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=sorting><div class=body>`),
|
|
6087
|
+
$7396052a1484264f$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=sort-and-filter-buttons><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`),
|
|
6088
|
+
$7396052a1484264f$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<span class=num-filters>`),
|
|
6089
|
+
$7396052a1484264f$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=open-filters-button-container><!$><!/><button type=button><!$><!/><span>`),
|
|
6090
|
+
$7396052a1484264f$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<button class="toggle-button for-sorting major-minor-transition"><span></span><!$><!/>`);
|
|
5695
6091
|
function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
5696
6092
|
let {
|
|
5697
6093
|
current_sorting_: current_sorting_,
|
|
@@ -6040,11 +6436,11 @@ function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
|
6040
6436
|
})();
|
|
6041
6437
|
}
|
|
6042
6438
|
$8tj43$delegateEvents(["click"]);
|
|
6043
|
-
const $70f5ae4deea73eee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
6439
|
+
const $70f5ae4deea73eee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg 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">`);
|
|
6044
6440
|
function $70f5ae4deea73eee$export$2624c5890f1bbcf7() {
|
|
6045
6441
|
return $8tj43$getNextElement($70f5ae4deea73eee$var$_tmpl$);
|
|
6046
6442
|
}
|
|
6047
|
-
const $6a16b21155984cef$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
6443
|
+
const $6a16b21155984cef$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=floating-buttons><button class=filter><div></div></button><button class=sort><div></div></button><button class=up><div>`);
|
|
6048
6444
|
function $6a16b21155984cef$export$b23abd26de154ede(props) {
|
|
6049
6445
|
if (0, $8tj43$isServer) return; // won't show in initial render and need scroll position
|
|
6050
6446
|
const [is_small, set_is_small] = $8tj43$createSignal(true);
|
|
@@ -6194,9 +6590,9 @@ function $6a16b21155984cef$var$ActualFloatingButtons(_ref2) {
|
|
|
6194
6590
|
})();
|
|
6195
6591
|
}
|
|
6196
6592
|
$8tj43$delegateEvents(["click"]);
|
|
6197
|
-
const $52efc9ae4382e25a$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<nav class=
|
|
6198
|
-
$52efc9ae4382e25a$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=
|
|
6199
|
-
$52efc9ae4382e25a$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<span class=
|
|
6593
|
+
const $52efc9ae4382e25a$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<nav class=crumbs>`),
|
|
6594
|
+
$52efc9ae4382e25a$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=crumb>`),
|
|
6595
|
+
$52efc9ae4382e25a$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<span class=separator>`);
|
|
6200
6596
|
function $52efc9ae4382e25a$export$5646050d516e06bc(_ref) {
|
|
6201
6597
|
let {
|
|
6202
6598
|
crumb_data_: get_api_crumb_data,
|
|
@@ -6276,9 +6672,9 @@ function $52efc9ae4382e25a$export$5646050d516e06bc(_ref) {
|
|
|
6276
6672
|
});
|
|
6277
6673
|
}
|
|
6278
6674
|
$8tj43$delegateEvents(["click"]);
|
|
6279
|
-
const $43fbb365ed0ac99e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<nav class=
|
|
6280
|
-
$43fbb365ed0ac99e$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div>QuickLinks failed
|
|
6281
|
-
$43fbb365ed0ac99e$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<a class=
|
|
6675
|
+
const $43fbb365ed0ac99e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<nav class=quicklinks>`),
|
|
6676
|
+
$43fbb365ed0ac99e$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div>QuickLinks failed`),
|
|
6677
|
+
$43fbb365ed0ac99e$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<a class=quicklink>`);
|
|
6282
6678
|
function $43fbb365ed0ac99e$export$466cdc317043f6cb(_ref) {
|
|
6283
6679
|
let {
|
|
6284
6680
|
quicklinks_data_: quicklinks_data_,
|
|
@@ -6712,8 +7108,8 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
6712
7108
|
});
|
|
6713
7109
|
tracking_function_for_plp_results(plp_results_);
|
|
6714
7110
|
}
|
|
6715
|
-
const $480c67545e51abfe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
6716
|
-
$480c67545e51abfe$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
7111
|
+
const $480c67545e51abfe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=statement style=white-space:pre-wrap>No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.`),
|
|
7112
|
+
$480c67545e51abfe$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=buttons><button class="ok major">`);
|
|
6717
7113
|
function $480c67545e51abfe$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
6718
7114
|
if (!(0, $8tj43$is_debug)) return; // Just to make sure we don't show this in production
|
|
6719
7115
|
const owner = $8tj43$getOwner();
|
|
@@ -6777,10 +7173,10 @@ function $3a2bed57c9a57e21$export$d31a1a1a83ad9413(plp_results_, _ref) {
|
|
|
6777
7173
|
set_selected_filters(new_filters);
|
|
6778
7174
|
});
|
|
6779
7175
|
}
|
|
6780
|
-
const $4b4b262708b516ee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
6781
|
-
$4b4b262708b516ee$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div
|
|
6782
|
-
$4b4b262708b516ee$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
6783
|
-
$4b4b262708b516ee$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp category"><div class=
|
|
7176
|
+
const $4b4b262708b516ee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=product-count><!$><!/> <!$><!/>`),
|
|
7177
|
+
$4b4b262708b516ee$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
7178
|
+
$4b4b262708b516ee$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
7179
|
+
$4b4b262708b516ee$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
6784
7180
|
function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
6785
7181
|
var _on_filters_construct;
|
|
6786
7182
|
let {
|
|
@@ -6810,7 +7206,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
6810
7206
|
product_card_template_: product_card_template_,
|
|
6811
7207
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
6812
7208
|
sorting_query_param_: sorting_query_param_,
|
|
6813
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
7209
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
7210
|
+
content_blocks_by_row_: content_blocks_by_row_
|
|
6814
7211
|
} = _ref;
|
|
6815
7212
|
let results_for;
|
|
6816
7213
|
let only_show_filters_opener_;
|
|
@@ -7130,6 +7527,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
7130
7527
|
product_card_template_: product_card_template_,
|
|
7131
7528
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
7132
7529
|
desktop_filter_elements_: desktop_filter_elements_,
|
|
7530
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
7133
7531
|
id_currently_querying_for_: query_id_,
|
|
7134
7532
|
no_results_options_: {
|
|
7135
7533
|
selected_filters_: selected_filters_,
|
|
@@ -7456,7 +7854,7 @@ function $01c33966d9ddb108$export$f50b88e2a00918b5(fn) {
|
|
|
7456
7854
|
}
|
|
7457
7855
|
};
|
|
7458
7856
|
}
|
|
7459
|
-
const $f5f54892fd0c7d9f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict plp category"
|
|
7857
|
+
const $f5f54892fd0c7d9f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict plp category">`);
|
|
7460
7858
|
function $f5f54892fd0c7d9f$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
7461
7859
|
$f5f54892fd0c7d9f$var$_checkPrivateRedeclaration(obj, privateMap);
|
|
7462
7860
|
privateMap.set(obj, value);
|
|
@@ -7746,6 +8144,7 @@ function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
|
7746
8144
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
7747
8145
|
selected_filters_: selected_filters_,
|
|
7748
8146
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
8147
|
+
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
7749
8148
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
7750
8149
|
layout_options_: $8tj43$createMemo(() => ({
|
|
7751
8150
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -7811,7 +8210,7 @@ function $f5f54892fd0c7d9f$var$get_shared_properties(depict_category) {
|
|
|
7811
8210
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
7812
8211
|
return shared_properties;
|
|
7813
8212
|
}
|
|
7814
|
-
const $fa332ea03168857c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8213
|
+
const $fa332ea03168857c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=category-title><h1 class=title></h1><span class=explanation> — <!$><!/>`);
|
|
7815
8214
|
const $fa332ea03168857c$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
7816
8215
|
const actual_function = _ref => {
|
|
7817
8216
|
let {
|
|
@@ -7837,7 +8236,7 @@ const $fa332ea03168857c$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
|
7837
8236
|
actual_function[(0, $ec8a6e10026dcff9$export$5c28802497c8a83c)] = "simple";
|
|
7838
8237
|
return actual_function;
|
|
7839
8238
|
})();
|
|
7840
|
-
const $702d7656a373973e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="sort-and-filter-buttons fake"
|
|
8239
|
+
const $702d7656a373973e$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="sort-and-filter-buttons fake"aria-hidden=true style=position:absolute;z-index:-1;pointer-events:none;opacity:0><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`);
|
|
7841
8240
|
const $702d7656a373973e$export$824dde41348efed1 = /*@__PURE__*/(() => {
|
|
7842
8241
|
const actual_function = _ref => {
|
|
7843
8242
|
let {
|
|
@@ -8002,38 +8401,7 @@ async function $96fd967c5b358ead$var$download_categories(tenant, market, type) {
|
|
|
8002
8401
|
return [];
|
|
8003
8402
|
}
|
|
8004
8403
|
}
|
|
8005
|
-
|
|
8006
|
-
const style = $8tj43$createMemo(() => {
|
|
8007
|
-
const {
|
|
8008
|
-
style: style,
|
|
8009
|
-
height: height,
|
|
8010
|
-
width: width,
|
|
8011
|
-
aspectRatio: aspectRatio
|
|
8012
|
-
} = props;
|
|
8013
|
-
const is_image = aspectRatio != undefined;
|
|
8014
|
-
const size_data = is_image ? {
|
|
8015
|
-
width: "100%",
|
|
8016
|
-
"padding-bottom": 1 / aspectRatio * 100 + "%"
|
|
8017
|
-
} : {
|
|
8018
|
-
width: width,
|
|
8019
|
-
height: height
|
|
8020
|
-
};
|
|
8021
|
-
return {
|
|
8022
|
-
display: "block",
|
|
8023
|
-
...(style || {}),
|
|
8024
|
-
...size_data
|
|
8025
|
-
};
|
|
8026
|
-
});
|
|
8027
|
-
return $8tj43$createComponent((0, $bc2337c9a05ecd18$export$acb3eaade4b23afd), {
|
|
8028
|
-
get style() {
|
|
8029
|
-
return style();
|
|
8030
|
-
},
|
|
8031
|
-
get ["class"]() {
|
|
8032
|
-
return props.class;
|
|
8033
|
-
}
|
|
8034
|
-
});
|
|
8035
|
-
}
|
|
8036
|
-
const $5eaa00b951637e96$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="title"></span></div></div></div>`, 10);
|
|
8404
|
+
const $5eaa00b951637e96$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=title>`);
|
|
8037
8405
|
function $5eaa00b951637e96$export$ee1733d9a8495996() {
|
|
8038
8406
|
return (() => {
|
|
8039
8407
|
const _el$ = $8tj43$getNextElement($5eaa00b951637e96$var$_tmpl$),
|
|
@@ -8051,8 +8419,8 @@ function $5eaa00b951637e96$export$ee1733d9a8495996() {
|
|
|
8051
8419
|
return _el$;
|
|
8052
8420
|
})();
|
|
8053
8421
|
}
|
|
8054
|
-
const $dea31647b99a443b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=
|
|
8055
|
-
$dea31647b99a443b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=
|
|
8422
|
+
const $dea31647b99a443b$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=parent-title>`),
|
|
8423
|
+
$dea31647b99a443b$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=category-suggestion><span class=title></span><!$><!/>`);
|
|
8056
8424
|
function $dea31647b99a443b$export$d757d54550ebfb3d(_ref) {
|
|
8057
8425
|
let {
|
|
8058
8426
|
category_suggestion_: category_suggestion_,
|
|
@@ -8087,11 +8455,11 @@ function $dea31647b99a443b$export$d757d54550ebfb3d(_ref) {
|
|
|
8087
8455
|
})();
|
|
8088
8456
|
}
|
|
8089
8457
|
$8tj43$delegateEvents(["click"]);
|
|
8090
|
-
const $ecc323d9c29305ee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
8458
|
+
const $ecc323d9c29305ee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg 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">`);
|
|
8091
8459
|
function $ecc323d9c29305ee$export$1c641004b5485fed() {
|
|
8092
8460
|
return $8tj43$getNextElement($ecc323d9c29305ee$var$_tmpl$);
|
|
8093
8461
|
}
|
|
8094
|
-
const $ef0f18a578b32578$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><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"
|
|
8462
|
+
const $ef0f18a578b32578$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg><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">`);
|
|
8095
8463
|
function $ef0f18a578b32578$export$82eafebb825fc23f() {
|
|
8096
8464
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8097
8465
|
return (() => {
|
|
@@ -8105,8 +8473,8 @@ function $ef0f18a578b32578$export$82eafebb825fc23f() {
|
|
|
8105
8473
|
return _el$;
|
|
8106
8474
|
})();
|
|
8107
8475
|
}
|
|
8108
|
-
const $584c06c09cf4609d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class=
|
|
8109
|
-
$584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8476
|
+
const $584c06c09cf4609d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class=back type=button>`),
|
|
8477
|
+
$584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
|
|
8110
8478
|
function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
8111
8479
|
let {
|
|
8112
8480
|
search_field_value_: search_field_value_,
|
|
@@ -8208,7 +8576,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
8208
8576
|
input_field_ref_ === null || input_field_ref_ === void 0 || input_field_ref_(el);
|
|
8209
8577
|
});
|
|
8210
8578
|
typeof _ref$ === "function" && $8tj43$use(_ref$, _el$4);
|
|
8211
|
-
_el$4.classList.toggle("has-adjacent-back-button",
|
|
8579
|
+
_el$4.classList.toggle("has-adjacent-back-button", !!!!on_back_);
|
|
8212
8580
|
$8tj43$addEventListener(_el$5, "click", $8tj43$catchify(() => {
|
|
8213
8581
|
search_field_value_[1]("");
|
|
8214
8582
|
clear_filters_(true);
|
|
@@ -8236,14 +8604,14 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
8236
8604
|
_v$4: undefined,
|
|
8237
8605
|
_v$5: undefined
|
|
8238
8606
|
});
|
|
8239
|
-
$8tj43$effect(() => _el$4
|
|
8607
|
+
$8tj43$effect(() => $8tj43$setProperty(_el$4, "value", search_field_value_[0]()));
|
|
8240
8608
|
$8tj43$runHydrationEvents();
|
|
8241
8609
|
return _el$;
|
|
8242
8610
|
})();
|
|
8243
8611
|
}
|
|
8244
8612
|
$8tj43$delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
8245
|
-
const $8ef6232475d44150$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8246
|
-
$8ef6232475d44150$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class="show-more major"
|
|
8613
|
+
const $8ef6232475d44150$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=search-recs><h3 class=search-recs-title></h3><!$><!/><!$><!/>`),
|
|
8614
|
+
$8ef6232475d44150$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class="show-more major"type=button>`);
|
|
8247
8615
|
const $8ef6232475d44150$export$1c8c715550dc689d = 2;
|
|
8248
8616
|
function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
|
|
8249
8617
|
let {
|
|
@@ -8499,9 +8867,9 @@ async function $86b0ff0c85e5fc6c$export$e16630ecb9644a1c(_ref) {
|
|
|
8499
8867
|
const $b65f93acbf91da56$export$27b710c08412a7ad = obj => {
|
|
8500
8868
|
return Object.fromEntries(Object.keys(obj).map(key => [key, obj[key]()]));
|
|
8501
8869
|
};
|
|
8502
|
-
const $9a693c7e832d3f18$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class="orig price"
|
|
8503
|
-
$9a693c7e832d3f18$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=
|
|
8504
|
-
$9a693c7e832d3f18$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8870
|
+
const $9a693c7e832d3f18$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class="orig price"><!$><!/><!$><!/><!$><!/>`),
|
|
8871
|
+
$9a693c7e832d3f18$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=brand></span><span class="title line-clamp"></span><!$><!/></div><div class=price-container><!$><!/><span class=price><!$><!/><!$><!/><!$><!/>`),
|
|
8872
|
+
$9a693c7e832d3f18$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=tagline>`);
|
|
8505
8873
|
const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = (display_or_variant_container, _ref, router_) => {
|
|
8506
8874
|
let {
|
|
8507
8875
|
i18n: i18n
|
|
@@ -8627,7 +8995,7 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
8627
8995
|
})();
|
|
8628
8996
|
};
|
|
8629
8997
|
$8tj43$delegateEvents(["click"]);
|
|
8630
|
-
const $f7414b949aeabc90$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8998
|
+
const $f7414b949aeabc90$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=instant-results>`);
|
|
8631
8999
|
function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
8632
9000
|
let {
|
|
8633
9001
|
depict_api_: depict_api_,
|
|
@@ -8727,8 +9095,8 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
8727
9095
|
return _el$;
|
|
8728
9096
|
})();
|
|
8729
9097
|
}
|
|
8730
|
-
const $558d0596fcf0e0b0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div style=
|
|
8731
|
-
$558d0596fcf0e0b0$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div style=
|
|
9098
|
+
const $558d0596fcf0e0b0$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;>`),
|
|
9099
|
+
$558d0596fcf0e0b0$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;>`);
|
|
8732
9100
|
function $558d0596fcf0e0b0$export$50b90be27d8502d9(el, _ref, bottom_distance) {
|
|
8733
9101
|
let [get_style_props, set_style_props] = _ref;
|
|
8734
9102
|
const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
|
|
@@ -8779,12 +9147,12 @@ function $e8776b492383c292$export$91c3b6774e8be0f5(_ref) {
|
|
|
8779
9147
|
return u_o.href;
|
|
8780
9148
|
});
|
|
8781
9149
|
}
|
|
8782
|
-
const $6d95ef50ee01d5a1$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
9150
|
+
const $6d95ef50ee01d5a1$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg 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>`);
|
|
8783
9151
|
function $6d95ef50ee01d5a1$export$5d2caaa6b530761c() {
|
|
8784
9152
|
return $8tj43$getNextElement($6d95ef50ee01d5a1$var$_tmpl$);
|
|
8785
9153
|
}
|
|
8786
|
-
const $494c9ad553139dbc$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8787
|
-
$494c9ad553139dbc$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=
|
|
9154
|
+
const $494c9ad553139dbc$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=previous-searches><h2 class=text></h2><div class=list>`),
|
|
9155
|
+
$494c9ad553139dbc$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<a class=item><div class=left><!$><!/><span class=line-clamp></span></div><button class=delete>`);
|
|
8788
9156
|
function $494c9ad553139dbc$export$a146ac6fa8346a25(_ref) {
|
|
8789
9157
|
let {
|
|
8790
9158
|
text_: text_,
|
|
@@ -8891,8 +9259,8 @@ function $494c9ad553139dbc$export$a146ac6fa8346a25(_ref) {
|
|
|
8891
9259
|
}
|
|
8892
9260
|
});
|
|
8893
9261
|
}
|
|
8894
|
-
const $02b6641aa50ce528$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=
|
|
8895
|
-
$02b6641aa50ce528$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span
|
|
9262
|
+
const $02b6641aa50ce528$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=highlighted-part>`),
|
|
9263
|
+
$02b6641aa50ce528$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span>`);
|
|
8896
9264
|
function $02b6641aa50ce528$export$ba17c5b7e6dda39f(_ref) {
|
|
8897
9265
|
let {
|
|
8898
9266
|
whole_text_to_display_: whole_text_to_display_memo,
|
|
@@ -8964,7 +9332,7 @@ function $02b6641aa50ce528$export$ba17c5b7e6dda39f(_ref) {
|
|
|
8964
9332
|
return _el$2;
|
|
8965
9333
|
})();
|
|
8966
9334
|
}
|
|
8967
|
-
const $3c5e15c6ee4227a9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=
|
|
9335
|
+
const $3c5e15c6ee4227a9$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg width=32 height=32 viewBox="0 0 256 256"><path d="M56 26.455a13.71 13.71 0 0 0-9.578 3.967A13.71 13.71 0 0 0 42.455 40v176a13.71 13.71 0 0 0 3.967 9.578A13.71 13.71 0 0 0 56 229.545h144A13.71 13.71 0 0 0 213.545 216V88a2.456 2.456 0 0 1 0-.002c.001-1.452-.597-2.895-1.623-3.922l-55.998-55.998a5.61 5.61 0 0 0-3.922-1.623 2.456 2.456 0 0 1-.002 0zm0 11.09h88A2.456 2.456 0 0 1 146.455 40v48c0 2.903 2.642 5.545 5.545 5.545h48A2.456 2.456 0 0 1 202.455 96v120a2.456 2.456 0 0 1-2.455 2.455H56A2.456 2.456 0 0 1 53.545 216V40A2.456 2.456 0 0 1 56 37.545zm103.061 11.498a2.456 2.456 0 0 1 2.676.531l28.689 28.689a2.456 2.456 0 0 1-1.736 4.191H160A2.456 2.456 0 0 1 157.545 80V51.311a2.456 2.456 0 0 1 1.516-2.268zM96 130.455c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545zm0 32c-2.903 0-5.545 2.642-5.545 5.545s2.642 5.545 5.545 5.545h64c2.903 0 5.545-2.642 5.545-5.545s-2.642-5.545-5.545-5.545z">`);
|
|
8968
9336
|
function $3c5e15c6ee4227a9$export$605674723bcc715c() {
|
|
8969
9337
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8970
9338
|
return (() => {
|
|
@@ -8974,15 +9342,15 @@ function $3c5e15c6ee4227a9$export$605674723bcc715c() {
|
|
|
8974
9342
|
return _el$;
|
|
8975
9343
|
})();
|
|
8976
9344
|
}
|
|
8977
|
-
const $40dd3f46f55d62ba$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a class=
|
|
8978
|
-
$40dd3f46f55d62ba$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8979
|
-
$40dd3f46f55d62ba$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<span class=
|
|
8980
|
-
$40dd3f46f55d62ba$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8981
|
-
$40dd3f46f55d62ba$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
8982
|
-
$40dd3f46f55d62ba$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<h2 class=
|
|
8983
|
-
$40dd3f46f55d62ba$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class="suggestion-container query"
|
|
8984
|
-
$40dd3f46f55d62ba$var$_tmpl$8 = /*#__PURE__*/$8tj43$template(`<div class="suggestion-container page"
|
|
8985
|
-
$40dd3f46f55d62ba$var$_tmpl$9 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
9345
|
+
const $40dd3f46f55d62ba$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a class=suggestion>`),
|
|
9346
|
+
$40dd3f46f55d62ba$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=search-icon>`),
|
|
9347
|
+
$40dd3f46f55d62ba$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<span class=type>`),
|
|
9348
|
+
$40dd3f46f55d62ba$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=with-parent-title><!$><!/><span class="value line-clamp">`),
|
|
9349
|
+
$40dd3f46f55d62ba$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=with-icon><!$><!/><!$><!/>`),
|
|
9350
|
+
$40dd3f46f55d62ba$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<h2 class=text>`),
|
|
9351
|
+
$40dd3f46f55d62ba$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class="suggestion-container query"><!$><!/><!$><!/>`),
|
|
9352
|
+
$40dd3f46f55d62ba$var$_tmpl$8 = /*#__PURE__*/$8tj43$template(`<div class="suggestion-container page">`),
|
|
9353
|
+
$40dd3f46f55d62ba$var$_tmpl$9 = /*#__PURE__*/$8tj43$template(`<div class=suggestions><!$><!/><!$><!/><!$><!/>`);
|
|
8986
9354
|
function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
8987
9355
|
let {
|
|
8988
9356
|
suggestion_memo_: suggestion_memo_,
|
|
@@ -9254,7 +9622,7 @@ function $40dd3f46f55d62ba$export$e872e2339fb04a7f(_ref) {
|
|
|
9254
9622
|
}
|
|
9255
9623
|
});
|
|
9256
9624
|
}
|
|
9257
|
-
const $76b6e14a50da4597$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a target=
|
|
9625
|
+
const $76b6e14a50da4597$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a target=_blank>`);
|
|
9258
9626
|
function $76b6e14a50da4597$export$1efe1013da60d0e4(e, href) {
|
|
9259
9627
|
if (e.metaKey || e.ctrlKey) {
|
|
9260
9628
|
// Open link in a new tab with cmd/ctrl + enter.
|
|
@@ -9660,7 +10028,7 @@ const $cc64aabf2c7a1f1a$export$1233ca167bf71f9a = styles => {
|
|
|
9660
10028
|
return "".concat(selector, " { ").concat($cc64aabf2c7a1f1a$export$af8311b651139246(css_properties), " }");
|
|
9661
10029
|
}).join(" ");
|
|
9662
10030
|
};
|
|
9663
|
-
const $a86e71c0015bd8ab$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<style
|
|
10031
|
+
const $a86e71c0015bd8ab$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<style>`);
|
|
9664
10032
|
function $a86e71c0015bd8ab$export$f021bdedd3ec901a(props) {
|
|
9665
10033
|
const valid_css_string = $8tj43$createMemo(() => {
|
|
9666
10034
|
return $cc64aabf2c7a1f1a$export$1233ca167bf71f9a(props.styles());
|
|
@@ -9671,10 +10039,10 @@ function $a86e71c0015bd8ab$export$f021bdedd3ec901a(props) {
|
|
|
9671
10039
|
return _el$;
|
|
9672
10040
|
})();
|
|
9673
10041
|
}
|
|
9674
|
-
const $e82132ed97521828$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
9675
|
-
$e82132ed97521828$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<b
|
|
9676
|
-
$e82132ed97521828$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
9677
|
-
$e82132ed97521828$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"><div class=
|
|
10042
|
+
const $e82132ed97521828$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=discover-more><button class=major type=button>`),
|
|
10043
|
+
$e82132ed97521828$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<b>`),
|
|
10044
|
+
$e82132ed97521828$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=depict-search-modal><div class=body><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
10045
|
+
$e82132ed97521828$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
9678
10046
|
function $e82132ed97521828$export$1c593cbd6f1e10bc(_ref) {
|
|
9679
10047
|
let {
|
|
9680
10048
|
search_field_value_: props_search_field_value,
|
|
@@ -9932,8 +10300,8 @@ function $e82132ed97521828$var$close_modal_when_navigating_away(close_modal, sea
|
|
|
9932
10300
|
})();
|
|
9933
10301
|
}
|
|
9934
10302
|
$8tj43$delegateEvents(["click"]);
|
|
9935
|
-
const $754f319a849bfdbc$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
9936
|
-
$754f319a849bfdbc$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
10303
|
+
const $754f319a849bfdbc$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=category-suggestions>`),
|
|
10304
|
+
$754f319a849bfdbc$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=category-suggestion>`);
|
|
9937
10305
|
function $754f319a849bfdbc$export$c05a196222ba1302(_ref) {
|
|
9938
10306
|
let {
|
|
9939
10307
|
suggestions_: suggestions_,
|
|
@@ -9982,8 +10350,8 @@ function $754f319a849bfdbc$export$c05a196222ba1302(_ref) {
|
|
|
9982
10350
|
}
|
|
9983
10351
|
});
|
|
9984
10352
|
}
|
|
9985
|
-
const $69602b3d8fd54c38$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<b
|
|
9986
|
-
$69602b3d8fd54c38$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
10353
|
+
const $69602b3d8fd54c38$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<b>`),
|
|
10354
|
+
$69602b3d8fd54c38$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=results-for>`);
|
|
9987
10355
|
function $69602b3d8fd54c38$export$9dd50d35b9d94fdf(_ref) {
|
|
9988
10356
|
let {
|
|
9989
10357
|
get_search_query_: get_search_query_,
|
|
@@ -10034,7 +10402,7 @@ function $8e8ce3f7a5eb11a6$export$41b4894022a3580f() {
|
|
|
10034
10402
|
})));
|
|
10035
10403
|
return style_props_;
|
|
10036
10404
|
}
|
|
10037
|
-
const $f3a159279dc1a8fb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=
|
|
10405
|
+
const $f3a159279dc1a8fb$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span class=highlighted-part>`);
|
|
10038
10406
|
const $f3a159279dc1a8fb$var$dont_cut_in_between_less_than_characters = 30;
|
|
10039
10407
|
function $f3a159279dc1a8fb$export$e1a98a189fd2c0e7(_ref) {
|
|
10040
10408
|
let {
|
|
@@ -10266,10 +10634,10 @@ function $f3a159279dc1a8fb$var$segment_text(text, matched_strings) {
|
|
|
10266
10634
|
}
|
|
10267
10635
|
return output;
|
|
10268
10636
|
}
|
|
10269
|
-
const $22470de5f42cc35d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a
|
|
10270
|
-
$22470de5f42cc35d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div
|
|
10271
|
-
$22470de5f42cc35d$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class="description line-clamp"
|
|
10272
|
-
$22470de5f42cc35d$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=
|
|
10637
|
+
const $22470de5f42cc35d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a>`),
|
|
10638
|
+
$22470de5f42cc35d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
10639
|
+
$22470de5f42cc35d$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class="description line-clamp">`),
|
|
10640
|
+
$22470de5f42cc35d$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=content-card><div class=image></div><div class=info><!$><!/><!$><!/>`);
|
|
10273
10641
|
function $22470de5f42cc35d$export$f631859cab12b342(_ref) {
|
|
10274
10642
|
let {
|
|
10275
10643
|
router_: router_,
|
|
@@ -10435,9 +10803,9 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
|
|
|
10435
10803
|
children: () => $8tj43$createComponent((0, $22470de5f42cc35d$export$f631859cab12b342), {})
|
|
10436
10804
|
});
|
|
10437
10805
|
}
|
|
10438
|
-
const $d53ebed6f63304e4$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
10439
|
-
$d53ebed6f63304e4$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class=
|
|
10440
|
-
$d53ebed6f63304e4$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button class=
|
|
10806
|
+
const $d53ebed6f63304e4$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=content-results><!$><!/><!$><!/>`),
|
|
10807
|
+
$d53ebed6f63304e4$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class=view-more>`),
|
|
10808
|
+
$d53ebed6f63304e4$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button class=view-less>`);
|
|
10441
10809
|
const $d53ebed6f63304e4$export$70ceae36059a1036 = 1;
|
|
10442
10810
|
function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
|
|
10443
10811
|
let {
|
|
@@ -10516,7 +10884,7 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
|
|
|
10516
10884
|
})), _el$5, _co$2);
|
|
10517
10885
|
$8tj43$effect(() => {
|
|
10518
10886
|
var _content_results2;
|
|
10519
|
-
return _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none");
|
|
10887
|
+
return is_loading_() && placeholders_enabled() || (_content_results2 = content_results()) === null || _content_results2 === void 0 || _content_results2.length, _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none");
|
|
10520
10888
|
});
|
|
10521
10889
|
return _el$;
|
|
10522
10890
|
})();
|
|
@@ -10551,8 +10919,8 @@ function $d53ebed6f63304e4$var$make_state_saved_rows(_ref2, i18n_) {
|
|
|
10551
10919
|
}));
|
|
10552
10920
|
return rows;
|
|
10553
10921
|
}
|
|
10554
|
-
const $da279c5a540c6846$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=
|
|
10555
|
-
$da279c5a540c6846$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"><div class=
|
|
10922
|
+
const $da279c5a540c6846$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
10923
|
+
$da279c5a540c6846$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
10556
10924
|
function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
10557
10925
|
let {
|
|
10558
10926
|
depict_api_: depict_api_,
|
|
@@ -10586,7 +10954,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
10586
10954
|
router_: router_,
|
|
10587
10955
|
content_results_rows_: content_results_rows_,
|
|
10588
10956
|
content_layout_options_: content_layout_options_,
|
|
10589
|
-
content_search_enabled_: content_search_enabled_
|
|
10957
|
+
content_search_enabled_: content_search_enabled_,
|
|
10958
|
+
content_blocks_by_row_: content_blocks_by_row_
|
|
10590
10959
|
} = _ref;
|
|
10591
10960
|
const [get_sorting] = current_sorting_;
|
|
10592
10961
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -10887,6 +11256,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
10887
11256
|
layout_options_: layout_options_,
|
|
10888
11257
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
10889
11258
|
id_currently_querying_for_: get_search_query_,
|
|
11259
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
10890
11260
|
no_results_options_: {
|
|
10891
11261
|
selected_filters_: selected_filters_,
|
|
10892
11262
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -11017,7 +11387,7 @@ function $3f7203368ad0d3ca$export$ff7109b9b2b206ba(sdk_cols_at_size) {
|
|
|
11017
11387
|
return max_width == Infinity ? [cols] : [cols, max_width];
|
|
11018
11388
|
});
|
|
11019
11389
|
}
|
|
11020
|
-
const $eb064bc3350276c1$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"
|
|
11390
|
+
const $eb064bc3350276c1$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class="depict plp search">`);
|
|
11021
11391
|
function $eb064bc3350276c1$var$_classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
11022
11392
|
$eb064bc3350276c1$var$_checkPrivateRedeclaration(obj, privateMap);
|
|
11023
11393
|
privateMap.set(obj, value);
|
|
@@ -11420,6 +11790,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
11420
11790
|
search_sorting_open_: state_.sorting_open,
|
|
11421
11791
|
expanded_filters_: state_.expanded_filters,
|
|
11422
11792
|
content_results_rows_: state_.content_results_rows,
|
|
11793
|
+
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
11423
11794
|
router_: shared_properties.router_,
|
|
11424
11795
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
11425
11796
|
return $dea31647b99a443b$export$d757d54550ebfb3d({
|