@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/latest/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var $gVhhF$depictaiutilishared = require("@depict-ai/utilishared/latest");
|
|
2
2
|
var $gVhhF$solidjsweb = require("solid-js/web");
|
|
3
3
|
var $gVhhF$solidjs = require("solid-js");
|
|
4
|
+
var $gVhhF$solidjsstore = require("solid-js/store");
|
|
4
5
|
require("../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
|
|
5
6
|
function $parcel$export(e, n, v, s) {
|
|
6
7
|
Object.defineProperty(e, n, {
|
|
@@ -69,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
69
70
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
70
71
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
71
72
|
/*! Depict.ai search and product listing SDK */
|
|
72
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.
|
|
73
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.1";
|
|
73
74
|
const $1ab22f2cd39b3061$var$fallback_operator = "in";
|
|
74
75
|
const $1ab22f2cd39b3061$var$fallback_token = "";
|
|
75
76
|
const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
|
|
@@ -256,7 +257,7 @@ function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
|
|
|
256
257
|
function $84798aaa863a4909$export$8d0c4fdbb05a2f2e() {
|
|
257
258
|
return $gVhhF$solidjs.useContext($84798aaa863a4909$var$ListingContext);
|
|
258
259
|
}
|
|
259
|
-
const $93304d59a9747aa6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
260
|
+
const $93304d59a9747aa6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
|
|
260
261
|
function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
|
|
261
262
|
return (() => {
|
|
262
263
|
const _el$ = $gVhhF$solidjsweb.getNextElement($93304d59a9747aa6$var$_tmpl$);
|
|
@@ -264,7 +265,7 @@ function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
|
|
|
264
265
|
return _el$;
|
|
265
266
|
})();
|
|
266
267
|
}
|
|
267
|
-
const $19950faaac026e09$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<img
|
|
268
|
+
const $19950faaac026e09$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<img>`);
|
|
268
269
|
function $19950faaac026e09$export$e6fffe67d4cdd848(whatToWatch) {
|
|
269
270
|
const [size, setSize] = $gVhhF$solidjs.createSignal(0);
|
|
270
271
|
const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => {
|
|
@@ -369,7 +370,7 @@ function $a33065cfed827fc0$export$e4b984597b71e989(props) {
|
|
|
369
370
|
}));
|
|
370
371
|
return container;
|
|
371
372
|
}
|
|
372
|
-
const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
373
|
+
const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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>`);
|
|
373
374
|
function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
374
375
|
return (() => {
|
|
375
376
|
const _el$ = $gVhhF$solidjsweb.getNextElement($0f313083912e447a$var$_tmpl$);
|
|
@@ -386,7 +387,7 @@ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
|
386
387
|
return _el$;
|
|
387
388
|
})();
|
|
388
389
|
}
|
|
389
|
-
const $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
390
|
+
const $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
|
|
390
391
|
function $a0e53f99354809d9$export$6649caad96ef8870({
|
|
391
392
|
children: children,
|
|
392
393
|
slider_ref_: slider_ref_,
|
|
@@ -484,7 +485,7 @@ const $4e04be41243c3d80$export$6daf8749b65a1b77 = cols_at_size => {
|
|
|
484
485
|
return $4e04be41243c3d80$var$transform_elements(sorted_cols_at_size);
|
|
485
486
|
};
|
|
486
487
|
function $fc23d7668ae0011d$export$a2cc176055f8f08() {
|
|
487
|
-
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.";
|
|
488
|
+
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.";
|
|
488
489
|
return (0, $gVhhF$solidjsweb.isServer) ? {
|
|
489
490
|
t: `<!-- ${text} -->`
|
|
490
491
|
} : document.createComment(text);
|
|
@@ -505,12 +506,13 @@ let $0caf87eaa19079da$var$cached_placeholder_element;
|
|
|
505
506
|
let $0caf87eaa19079da$var$rendering_cached_placeholder_element;
|
|
506
507
|
function $0caf87eaa19079da$export$f33414a4df0afd3f({
|
|
507
508
|
product_card_template_: product_card_template_,
|
|
508
|
-
num_placeholders_: num_placeholders_
|
|
509
|
+
num_placeholders_: num_placeholders_,
|
|
510
|
+
content_blocks_: content_blocks_
|
|
509
511
|
}) {
|
|
510
|
-
const [
|
|
511
|
-
let existing_num = 0;
|
|
512
|
+
const [num_to_actually_show, set_num_to_actually_show] = $gVhhF$solidjs.createSignal($gVhhF$solidjs.untrack(num_placeholders_));
|
|
512
513
|
if (0, $gVhhF$solidjsweb.isServer)
|
|
513
514
|
// want to render simple placeholders on server, effects don't run there
|
|
515
|
+
// FIXME when adding proper SSR: also SSR content blocks
|
|
514
516
|
return $gVhhF$solidjs.createMemo(() => Array.from({
|
|
515
517
|
length: num_placeholders_()
|
|
516
518
|
}).map(() => {
|
|
@@ -519,19 +521,30 @@ function $0caf87eaa19079da$export$f33414a4df0afd3f({
|
|
|
519
521
|
if (typeof template_result?.then !== "function") return template_result;
|
|
520
522
|
}));
|
|
521
523
|
$gVhhF$solidjs.createRenderEffect(() => {
|
|
524
|
+
const existing_num = num_to_actually_show();
|
|
522
525
|
const to_add = num_placeholders_() - existing_num;
|
|
523
526
|
if (to_add <= 0) return;
|
|
524
527
|
// 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.
|
|
525
528
|
// 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.
|
|
526
529
|
// 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.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
530
|
+
// 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
|
|
531
|
+
// Functionality should be the same
|
|
532
|
+
set_num_to_actually_show(existing_num + to_add);
|
|
533
|
+
});
|
|
534
|
+
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
535
|
+
get each() {
|
|
536
|
+
return Array.from({
|
|
537
|
+
length: num_to_actually_show()
|
|
538
|
+
});
|
|
539
|
+
},
|
|
540
|
+
children: (_item, index) => {
|
|
541
|
+
const possible_content_block = $gVhhF$solidjs.createMemo(() => content_blocks_?.()?.()?.[index]);
|
|
542
|
+
// Show content block before product card, so it's *at* that index
|
|
543
|
+
return [possible_content_block, $0caf87eaa19079da$var$Placeholder({
|
|
544
|
+
product_card_template_: product_card_template_
|
|
545
|
+
})]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
546
|
+
}
|
|
533
547
|
});
|
|
534
|
-
return get_elements; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
535
548
|
}
|
|
536
549
|
/**
|
|
537
550
|
* Get one placeholder element. It will be cloned for each placeholder for ultimate performance even when solid-js isn't rendering the placeholders.
|
|
@@ -616,7 +629,8 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
|
|
|
616
629
|
merchant_: merchant_,
|
|
617
630
|
market_: market_,
|
|
618
631
|
product_card_template_: product_card_template_,
|
|
619
|
-
do_per_elements_: do_per_elements_
|
|
632
|
+
do_per_elements_: do_per_elements_,
|
|
633
|
+
content_blocks_: content_blocks_
|
|
620
634
|
}) {
|
|
621
635
|
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.For), {
|
|
622
636
|
get each() {
|
|
@@ -624,6 +638,7 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
|
|
|
624
638
|
},
|
|
625
639
|
children: (product_id, index) => {
|
|
626
640
|
const owner = $gVhhF$solidjs.getOwner();
|
|
641
|
+
const possible_content_block = $gVhhF$solidjs.createMemo(() => content_blocks_?.()?.()?.[index()]);
|
|
627
642
|
const display_accessor = $gVhhF$solidjs.createMemo(prev => {
|
|
628
643
|
const new_display = displays_by_key_().get(product_id);
|
|
629
644
|
if (prev && $a73063cc642f3e5f$var$deep_equal(prev, new_display))
|
|
@@ -676,7 +691,9 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
|
|
|
676
691
|
}
|
|
677
692
|
do_per_elements_?.(elements, index);
|
|
678
693
|
});
|
|
679
|
-
return
|
|
694
|
+
return [
|
|
695
|
+
// Show content block before product card, so it's *at* that index
|
|
696
|
+
possible_content_block, product_card_resource]; // https://github.com/solidjs/solid/releases/tag/v1.7.0
|
|
680
697
|
}
|
|
681
698
|
});
|
|
682
699
|
}
|
|
@@ -713,7 +730,7 @@ class $7dd1edb2ee2b43ad$export$aa14a9f43128f61f extends $7dd1edb2ee2b43ad$export
|
|
|
713
730
|
});
|
|
714
731
|
}
|
|
715
732
|
}
|
|
716
|
-
const $edafe91daf3091d7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
733
|
+
const $edafe91daf3091d7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
|
|
717
734
|
function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
|
|
718
735
|
return $gVhhF$solidjs.ErrorBoundary({
|
|
719
736
|
fallback(err, retry) {
|
|
@@ -739,8 +756,8 @@ function $edafe91daf3091d7$export$b69d0d92862de18b(props) {
|
|
|
739
756
|
}
|
|
740
757
|
});
|
|
741
758
|
}
|
|
742
|
-
const $f48d0fbb00835aaa$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
743
|
-
$f48d0fbb00835aaa$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style type=
|
|
759
|
+
const $f48d0fbb00835aaa$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
760
|
+
$f48d0fbb00835aaa$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style type=text/css>`);
|
|
744
761
|
function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
|
|
745
762
|
const container_class = "x" + $gVhhF$solidjs.createUniqueId();
|
|
746
763
|
const container_element_ = (() => {
|
|
@@ -966,7 +983,7 @@ function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
|
|
|
966
983
|
// we're already in a root so cleanups are handled
|
|
967
984
|
return component_in_error_boundary();
|
|
968
985
|
}
|
|
969
|
-
const $72f96c4782db0b1b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict recommendations"
|
|
986
|
+
const $72f96c4782db0b1b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict recommendations">`);
|
|
970
987
|
function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
971
988
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
972
989
|
const grid_spacing_override = $gVhhF$solidjs.createMemo(() => {
|
|
@@ -1001,7 +1018,7 @@ function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
|
1001
1018
|
})();
|
|
1002
1019
|
}, "RecommendationSlider failed");
|
|
1003
1020
|
}
|
|
1004
|
-
const $b8e79813f4f7ebe4$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
1021
|
+
const $b8e79813f4f7ebe4$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
1005
1022
|
function $b8e79813f4f7ebe4$export$7da560f849543dff({
|
|
1006
1023
|
recommendations_resource_: recommendations_resource_,
|
|
1007
1024
|
product_card_template_: product_card_template_,
|
|
@@ -1060,8 +1077,8 @@ function $b8e79813f4f7ebe4$export$7da560f849543dff({
|
|
|
1060
1077
|
children: elements
|
|
1061
1078
|
});
|
|
1062
1079
|
}
|
|
1063
|
-
const $1f8dbf7e28b3eff2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major"
|
|
1064
|
-
$1f8dbf7e28b3eff2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp recommendations"
|
|
1080
|
+
const $1f8dbf7e28b3eff2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major"type=button>`),
|
|
1081
|
+
$1f8dbf7e28b3eff2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp recommendations">`);
|
|
1065
1082
|
function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
1066
1083
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
1067
1084
|
const rows_object_ = $gVhhF$solidjs.createMemo(() => {
|
|
@@ -1237,7 +1254,7 @@ function $d659702496cb72ea$export$a71e92cfbb498adc(props) {
|
|
|
1237
1254
|
return $gVhhF$depictaiutilishared.standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
|
|
1238
1255
|
});
|
|
1239
1256
|
}
|
|
1240
|
-
const $ee498ec5e7dc2bba$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
1257
|
+
const $ee498ec5e7dc2bba$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`);
|
|
1241
1258
|
const $ee498ec5e7dc2bba$var$closing_functions = /*@__PURE__*/new Set();
|
|
1242
1259
|
const $ee498ec5e7dc2bba$export$22970a0140fc759c = /*@__PURE__*/$gVhhF$solidjs.createSignal(false);
|
|
1243
1260
|
function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
@@ -1328,8 +1345,8 @@ function $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
|
1328
1345
|
close_toast_: close_toast_
|
|
1329
1346
|
};
|
|
1330
1347
|
}
|
|
1331
|
-
const $47e2cc552c02110c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
1332
|
-
$47e2cc552c02110c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
1348
|
+
const $47e2cc552c02110c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=statement>`),
|
|
1349
|
+
$47e2cc552c02110c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=buttons><button class="restore minor"></button><button class="ok major">`);
|
|
1333
1350
|
function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
1334
1351
|
let previous_sorting;
|
|
1335
1352
|
let on_toast_hidden;
|
|
@@ -1412,7 +1429,7 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
1412
1429
|
if (delay_toast_) return show_configured_toast;else show_configured_toast();
|
|
1413
1430
|
}
|
|
1414
1431
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
1415
|
-
const $c77c68e559a1506c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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"
|
|
1432
|
+
const $c77c68e559a1506c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
1416
1433
|
function $c77c68e559a1506c$export$3b621d86b1566b2(props = {}) {
|
|
1417
1434
|
return (() => {
|
|
1418
1435
|
const _el$ = $gVhhF$solidjsweb.getNextElement($c77c68e559a1506c$var$_tmpl$);
|
|
@@ -1434,10 +1451,10 @@ function $daa394359b026187$export$325f75597868c4f0(stuff) {
|
|
|
1434
1451
|
if (typeof stuff !== "string") return stuff;
|
|
1435
1452
|
return stuff.toLowerCase();
|
|
1436
1453
|
}
|
|
1437
|
-
const $235a2771a44e28e9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-all-filters minor"
|
|
1438
|
-
$235a2771a44e28e9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
1439
|
-
$235a2771a44e28e9$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"
|
|
1440
|
-
$235a2771a44e28e9$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"
|
|
1454
|
+
const $235a2771a44e28e9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-all-filters minor">`),
|
|
1455
|
+
$235a2771a44e28e9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=inner><span class=title><!$><!/>: </span><!$><!/>`),
|
|
1456
|
+
$235a2771a44e28e9$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span><!$><!/><!$><!/><!$><!/> – <!$><!/><!$><!/><!$><!/>`),
|
|
1457
|
+
$235a2771a44e28e9$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-filter major"><!$><!/><span>`);
|
|
1441
1458
|
function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
1442
1459
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
1443
1460
|
i18n_: i18n_,
|
|
@@ -1562,56 +1579,54 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
1562
1579
|
return matching_filter()?.op !== "inrange";
|
|
1563
1580
|
},
|
|
1564
1581
|
get fallback() {
|
|
1582
|
+
number_of_rendered_selected_filters_items_[1](prev => prev + 1);
|
|
1583
|
+
$gVhhF$solidjs.onCleanup(() => number_of_rendered_selected_filters_items_[1](prev => prev - 1));
|
|
1565
1584
|
return (() => {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
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
|
-
$gVhhF$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
|
|
1612
|
-
$gVhhF$solidjsweb.runHydrationEvents();
|
|
1613
|
-
return _el$9;
|
|
1614
|
-
})();
|
|
1585
|
+
const _el$9 = $gVhhF$solidjsweb.getNextElement($235a2771a44e28e9$var$_tmpl$3),
|
|
1586
|
+
_el$24 = _el$9.firstChild,
|
|
1587
|
+
[_el$25, _co$9] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
1588
|
+
_el$10 = _el$25.nextSibling,
|
|
1589
|
+
_el$12 = _el$10.firstChild,
|
|
1590
|
+
[_el$13, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$12.nextSibling),
|
|
1591
|
+
_el$14 = _el$13.nextSibling,
|
|
1592
|
+
[_el$15, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$14.nextSibling),
|
|
1593
|
+
_el$16 = _el$15.nextSibling,
|
|
1594
|
+
[_el$17, _co$5] = $gVhhF$solidjsweb.getNextMarker(_el$16.nextSibling),
|
|
1595
|
+
_el$11 = _el$17.nextSibling,
|
|
1596
|
+
_el$18 = _el$11.nextSibling,
|
|
1597
|
+
[_el$19, _co$6] = $gVhhF$solidjsweb.getNextMarker(_el$18.nextSibling),
|
|
1598
|
+
_el$20 = _el$19.nextSibling,
|
|
1599
|
+
[_el$21, _co$7] = $gVhhF$solidjsweb.getNextMarker(_el$20.nextSibling),
|
|
1600
|
+
_el$22 = _el$21.nextSibling,
|
|
1601
|
+
[_el$23, _co$8] = $gVhhF$solidjsweb.getNextMarker(_el$22.nextSibling);
|
|
1602
|
+
_el$9.$$click = () => {
|
|
1603
|
+
const cloned_selected_filters = [...read_selected_filters()];
|
|
1604
|
+
cloned_selected_filters.splice(index_in_selected_filters, 1);
|
|
1605
|
+
write_selected_filters(cloned_selected_filters);
|
|
1606
|
+
};
|
|
1607
|
+
$gVhhF$solidjsweb.insert(_el$9, $gVhhF$solidjsweb.createComponent((0, $c77c68e559a1506c$export$3b621d86b1566b2), {}), _el$25, _co$9);
|
|
1608
|
+
$gVhhF$solidjsweb.insert(_el$10, () => price_formatting_().pre_, _el$13, _co$3);
|
|
1609
|
+
$gVhhF$solidjsweb.insert(_el$10, $gVhhF$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
|
|
1610
|
+
get price_() {
|
|
1611
|
+
return filter().data[0];
|
|
1612
|
+
},
|
|
1613
|
+
get price_formatting_() {
|
|
1614
|
+
return price_formatting_();
|
|
1615
|
+
}
|
|
1616
|
+
}), _el$15, _co$4);
|
|
1617
|
+
$gVhhF$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$17, _co$5);
|
|
1618
|
+
$gVhhF$solidjsweb.insert(_el$10, () => price_formatting_().pre_, _el$19, _co$6);
|
|
1619
|
+
$gVhhF$solidjsweb.insert(_el$10, $gVhhF$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
|
|
1620
|
+
get price_() {
|
|
1621
|
+
return filter().data[1];
|
|
1622
|
+
},
|
|
1623
|
+
get price_formatting_() {
|
|
1624
|
+
return price_formatting_();
|
|
1625
|
+
}
|
|
1626
|
+
}), _el$21, _co$7);
|
|
1627
|
+
$gVhhF$solidjsweb.insert(_el$10, () => price_formatting_().post_, _el$23, _co$8);
|
|
1628
|
+
$gVhhF$solidjsweb.runHydrationEvents();
|
|
1629
|
+
return _el$9;
|
|
1615
1630
|
})();
|
|
1616
1631
|
},
|
|
1617
1632
|
get children() {
|
|
@@ -1734,8 +1749,8 @@ function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
|
1734
1749
|
return outmost_element;
|
|
1735
1750
|
}
|
|
1736
1751
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
1737
|
-
const $1c63082b2da848ad$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
1738
|
-
$1c63082b2da848ad$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class=
|
|
1752
|
+
const $1c63082b2da848ad$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=count>`),
|
|
1753
|
+
$1c63082b2da848ad$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class=input-row><div class=left><input type=checkbox><span class=custom-indicator></span><span class="text line-clamp"></span></div><!$><!/>`);
|
|
1739
1754
|
const $1c63082b2da848ad$export$48513f6b9f8ce62d = props => {
|
|
1740
1755
|
// 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
|
|
1741
1756
|
const count = $gVhhF$solidjs.createMemo(() => props.count_);
|
|
@@ -1783,19 +1798,19 @@ const $1c63082b2da848ad$export$48513f6b9f8ce62d = props => {
|
|
|
1783
1798
|
_v$3 = !checked() && is_count_zero();
|
|
1784
1799
|
_v$ !== _p$._v$ && _el$.classList.toggle("count-0", _p$._v$ = _v$);
|
|
1785
1800
|
_v$2 !== _p$._v$2 && $gVhhF$solidjsweb.setAttribute(_el$3, "name", _p$._v$2 = _v$2);
|
|
1786
|
-
_v$3 !== _p$._v$3 && (_el$3
|
|
1801
|
+
_v$3 !== _p$._v$3 && $gVhhF$solidjsweb.setProperty(_el$3, "disabled", _p$._v$3 = _v$3);
|
|
1787
1802
|
return _p$;
|
|
1788
1803
|
}, {
|
|
1789
1804
|
_v$: undefined,
|
|
1790
1805
|
_v$2: undefined,
|
|
1791
1806
|
_v$3: undefined
|
|
1792
1807
|
});
|
|
1793
|
-
$gVhhF$solidjsweb.effect(() => _el$3
|
|
1808
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$3, "checked", checked()));
|
|
1794
1809
|
return _el$;
|
|
1795
1810
|
})()
|
|
1796
1811
|
);
|
|
1797
1812
|
};
|
|
1798
|
-
const $cc43b6428000c4bf$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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"
|
|
1813
|
+
const $cc43b6428000c4bf$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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>`);
|
|
1799
1814
|
function $cc43b6428000c4bf$export$f21ab0717a89c77f(props) {
|
|
1800
1815
|
return (() => {
|
|
1801
1816
|
const _el$ = $gVhhF$solidjsweb.getNextElement($cc43b6428000c4bf$var$_tmpl$);
|
|
@@ -1808,7 +1823,7 @@ function $cc43b6428000c4bf$export$f21ab0717a89c77f(props) {
|
|
|
1808
1823
|
return _el$;
|
|
1809
1824
|
})();
|
|
1810
1825
|
}
|
|
1811
|
-
const $0fe1e7efdf4200d6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button type=
|
|
1826
|
+
const $0fe1e7efdf4200d6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button type=button class=expand-filter><!$><!/><span>`);
|
|
1812
1827
|
function $0fe1e7efdf4200d6$export$ca21a16d65b3dd8({
|
|
1813
1828
|
show_extras_: [get_show_extras, set_show_extras],
|
|
1814
1829
|
i18n_: i18n_
|
|
@@ -1830,7 +1845,7 @@ function $0fe1e7efdf4200d6$export$ca21a16d65b3dd8({
|
|
|
1830
1845
|
})();
|
|
1831
1846
|
}
|
|
1832
1847
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
1833
|
-
const $d94869c80e337a3d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=
|
|
1848
|
+
const $d94869c80e337a3d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=checkboxes><!$><!/><!$><!/>`);
|
|
1834
1849
|
const $d94869c80e337a3d$var$max_visible_without_collapsing = 15;
|
|
1835
1850
|
const $d94869c80e337a3d$var$show_non_collapsible_when_collapsed = 4;
|
|
1836
1851
|
function $d94869c80e337a3d$export$dd948f91abc3a1c4({
|
|
@@ -1957,9 +1972,9 @@ function $d94869c80e337a3d$export$dd948f91abc3a1c4({
|
|
|
1957
1972
|
return _el$;
|
|
1958
1973
|
})();
|
|
1959
1974
|
}
|
|
1960
|
-
const $c1dc1554c1b94233$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=
|
|
1961
|
-
$c1dc1554c1b94233$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
1962
|
-
$c1dc1554c1b94233$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class=
|
|
1975
|
+
const $c1dc1554c1b94233$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=radios>`),
|
|
1976
|
+
$c1dc1554c1b94233$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=count>`),
|
|
1977
|
+
$c1dc1554c1b94233$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<label class=input-row><div class=left><input type=radio><span class=custom-indicator></span><!$><!/></div><!$><!/>`);
|
|
1963
1978
|
function $c1dc1554c1b94233$export$430444115f70a734({
|
|
1964
1979
|
selected_filters_: selected_filters_,
|
|
1965
1980
|
filter_: filter_
|
|
@@ -2025,12 +2040,12 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
2025
2040
|
}
|
|
2026
2041
|
}), _el$10, _co$2);
|
|
2027
2042
|
$gVhhF$solidjsweb.effect(() => _el$2.classList.toggle("count-0", !!(count() === 0)));
|
|
2028
|
-
$gVhhF$solidjsweb.effect(() => _el$4
|
|
2043
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$4, "checked", $gVhhF$solidjs.createMemo(() => {
|
|
2029
2044
|
const v = value();
|
|
2030
2045
|
const data = existing_filter()?.data;
|
|
2031
2046
|
if ($daa394359b026187$export$325f75597868c4f0(data) === $daa394359b026187$export$325f75597868c4f0(v)) return true;
|
|
2032
2047
|
return Array.isArray(data) && data.every((item, index) => item === v[index]);
|
|
2033
|
-
})());
|
|
2048
|
+
})()));
|
|
2034
2049
|
return _el$2;
|
|
2035
2050
|
})();
|
|
2036
2051
|
}
|
|
@@ -2038,9 +2053,9 @@ function $c1dc1554c1b94233$export$430444115f70a734({
|
|
|
2038
2053
|
return _el$;
|
|
2039
2054
|
})();
|
|
2040
2055
|
}
|
|
2041
|
-
const $0b7222ba8a8bb72f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
2042
|
-
$0b7222ba8a8bb72f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
2043
|
-
$0b7222ba8a8bb72f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
2056
|
+
const $0b7222ba8a8bb72f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
|
|
2057
|
+
$0b7222ba8a8bb72f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=slider><div class=progress>`),
|
|
2058
|
+
$0b7222ba8a8bb72f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
2044
2059
|
function $0b7222ba8a8bb72f$export$e0d834a0ad870cda({
|
|
2045
2060
|
filter_: filter_,
|
|
2046
2061
|
selected_filters_: selected_filters_,
|
|
@@ -2193,11 +2208,11 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
2193
2208
|
_v$8 = min_(),
|
|
2194
2209
|
_v$9 = max_();
|
|
2195
2210
|
_v$ !== _p$._v$ && _el$.classList.toggle("disabled", _p$._v$ = _v$);
|
|
2196
|
-
_v$2 !== _p$._v$2 && (_el$4
|
|
2211
|
+
_v$2 !== _p$._v$2 && $gVhhF$solidjsweb.setProperty(_el$4, "disabled", _p$._v$2 = _v$2);
|
|
2197
2212
|
_v$3 !== _p$._v$3 && $gVhhF$solidjsweb.setAttribute(_el$4, "aria-label", _p$._v$3 = _v$3);
|
|
2198
2213
|
_v$4 !== _p$._v$4 && $gVhhF$solidjsweb.setAttribute(_el$4, "min", _p$._v$4 = _v$4);
|
|
2199
2214
|
_v$5 !== _p$._v$5 && $gVhhF$solidjsweb.setAttribute(_el$4, "max", _p$._v$5 = _v$5);
|
|
2200
|
-
_v$6 !== _p$._v$6 && (_el$7
|
|
2215
|
+
_v$6 !== _p$._v$6 && $gVhhF$solidjsweb.setProperty(_el$7, "disabled", _p$._v$6 = _v$6);
|
|
2201
2216
|
_v$7 !== _p$._v$7 && $gVhhF$solidjsweb.setAttribute(_el$7, "aria-label", _p$._v$7 = _v$7);
|
|
2202
2217
|
_v$8 !== _p$._v$8 && $gVhhF$solidjsweb.setAttribute(_el$7, "min", _p$._v$8 = _v$8);
|
|
2203
2218
|
_v$9 !== _p$._v$9 && $gVhhF$solidjsweb.setAttribute(_el$7, "max", _p$._v$9 = _v$9);
|
|
@@ -2213,8 +2228,8 @@ function $0b7222ba8a8bb72f$var$RangeSelector({
|
|
|
2213
2228
|
_v$8: undefined,
|
|
2214
2229
|
_v$9: undefined
|
|
2215
2230
|
});
|
|
2216
|
-
$gVhhF$solidjsweb.effect(() => _el$4
|
|
2217
|
-
$gVhhF$solidjsweb.effect(() => _el$7
|
|
2231
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$4, "value", get_current_range()[0]));
|
|
2232
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$7, "value", get_current_range()[1]));
|
|
2218
2233
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
2219
2234
|
return _el$;
|
|
2220
2235
|
})();
|
|
@@ -2335,11 +2350,11 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
2335
2350
|
_v$15 = i18n_.range_filter_high_point_aria_label_(),
|
|
2336
2351
|
_v$16 = min_(),
|
|
2337
2352
|
_v$17 = max_();
|
|
2338
|
-
_v$10 !== _p$._v$10 && (_el$28
|
|
2353
|
+
_v$10 !== _p$._v$10 && $gVhhF$solidjsweb.setProperty(_el$28, "disabled", _p$._v$10 = _v$10);
|
|
2339
2354
|
_v$11 !== _p$._v$11 && $gVhhF$solidjsweb.setAttribute(_el$28, "aria-label", _p$._v$11 = _v$11);
|
|
2340
2355
|
_v$12 !== _p$._v$12 && $gVhhF$solidjsweb.setAttribute(_el$28, "min", _p$._v$12 = _v$12);
|
|
2341
2356
|
_v$13 !== _p$._v$13 && $gVhhF$solidjsweb.setAttribute(_el$28, "max", _p$._v$13 = _v$13);
|
|
2342
|
-
_v$14 !== _p$._v$14 && (_el$29
|
|
2357
|
+
_v$14 !== _p$._v$14 && $gVhhF$solidjsweb.setProperty(_el$29, "disabled", _p$._v$14 = _v$14);
|
|
2343
2358
|
_v$15 !== _p$._v$15 && $gVhhF$solidjsweb.setAttribute(_el$29, "aria-label", _p$._v$15 = _v$15);
|
|
2344
2359
|
_v$16 !== _p$._v$16 && $gVhhF$solidjsweb.setAttribute(_el$29, "min", _p$._v$16 = _v$16);
|
|
2345
2360
|
_v$17 !== _p$._v$17 && $gVhhF$solidjsweb.setAttribute(_el$29, "max", _p$._v$17 = _v$17);
|
|
@@ -2354,13 +2369,13 @@ function $0b7222ba8a8bb72f$var$LinearSlider({
|
|
|
2354
2369
|
_v$16: undefined,
|
|
2355
2370
|
_v$17: undefined
|
|
2356
2371
|
});
|
|
2357
|
-
$gVhhF$solidjsweb.effect(() => _el$28
|
|
2372
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$28, "value", $gVhhF$solidjs.createMemo(() => {
|
|
2358
2373
|
min_();
|
|
2359
2374
|
max_();
|
|
2360
2375
|
return get_current_range()[0];
|
|
2361
2376
|
}, undefined, {
|
|
2362
2377
|
equals: false
|
|
2363
|
-
})());
|
|
2378
|
+
})()));
|
|
2364
2379
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
2365
2380
|
return _el$27;
|
|
2366
2381
|
})()];
|
|
@@ -2379,7 +2394,7 @@ function $0b7222ba8a8bb72f$var$set_range_with_sanitation(min_, max_, current_ran
|
|
|
2379
2394
|
current_range_signal[1](new_value);
|
|
2380
2395
|
}
|
|
2381
2396
|
$gVhhF$solidjsweb.delegateEvents(["keydown", "click", "input"]);
|
|
2382
|
-
const $7567511a7c3e4bd7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
2397
|
+
const $7567511a7c3e4bd7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=morphing-sign role=img><span></span><span>`);
|
|
2383
2398
|
function $7567511a7c3e4bd7$export$e5c2828934226505({
|
|
2384
2399
|
expanded_: expanded_,
|
|
2385
2400
|
i18n_: i18n_
|
|
@@ -2423,10 +2438,10 @@ function $7567511a7c3e4bd7$export$e5c2828934226505({
|
|
|
2423
2438
|
});
|
|
2424
2439
|
return outer_div;
|
|
2425
2440
|
}
|
|
2426
|
-
const $3bdc00a1353c1150$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class="checkboxes hierarchical"
|
|
2427
|
-
$3bdc00a1353c1150$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
2428
|
-
$3bdc00a1353c1150$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details
|
|
2429
|
-
$3bdc00a1353c1150$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=
|
|
2441
|
+
const $3bdc00a1353c1150$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class="checkboxes hierarchical"><!$><!/><!$><!/>`),
|
|
2442
|
+
$3bdc00a1353c1150$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=checkbox-details><!$><!/><!$><!/>`),
|
|
2443
|
+
$3bdc00a1353c1150$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details>`),
|
|
2444
|
+
$3bdc00a1353c1150$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=category-parent><div class=summary><span class=count></span><!$><!/>`);
|
|
2430
2445
|
const $3bdc00a1353c1150$var$max_visible_without_collapsing = 15;
|
|
2431
2446
|
const $3bdc00a1353c1150$var$show_non_collapsible_when_collapsed = 4;
|
|
2432
2447
|
function $3bdc00a1353c1150$export$a32086fa6616eafd({
|
|
@@ -2854,9 +2869,9 @@ function $3bdc00a1353c1150$var$expand_until_choice(data_structure) {
|
|
|
2854
2869
|
}
|
|
2855
2870
|
});
|
|
2856
2871
|
}
|
|
2857
|
-
const $0ef1681699140f1a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
2858
|
-
$0ef1681699140f1a$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
2859
|
-
$0ef1681699140f1a$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button
|
|
2872
|
+
const $0ef1681699140f1a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=checkbox-grid style=position:absolute;z-index:-1;pointer-events:none;opacity:0>`),
|
|
2873
|
+
$0ef1681699140f1a$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=count-wrapper><span class=count>`),
|
|
2874
|
+
$0ef1681699140f1a$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button><!$><!/><!$><!/>`);
|
|
2860
2875
|
const $0ef1681699140f1a$var$gap_px = 5;
|
|
2861
2876
|
const $0ef1681699140f1a$var$max_columns = 3;
|
|
2862
2877
|
const $0ef1681699140f1a$export$414f6a19d38e655c = ({
|
|
@@ -3064,7 +3079,7 @@ function $0ef1681699140f1a$var$adjust_sizes(container_width, sizes, set_cols_at_
|
|
|
3064
3079
|
overrides: column_to_row_result
|
|
3065
3080
|
}]]);
|
|
3066
3081
|
}
|
|
3067
|
-
const $b51a2b8b9355e66c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=
|
|
3082
|
+
const $b51a2b8b9355e66c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<form class=checkbox-color><!$><!/><!$><!/>`);
|
|
3068
3083
|
const $b51a2b8b9355e66c$var$max_visible_without_collapsing = 30;
|
|
3069
3084
|
const $b51a2b8b9355e66c$var$show_non_collapsible_when_collapsed = 8;
|
|
3070
3085
|
function $b51a2b8b9355e66c$export$82ed4b28ecb67608({
|
|
@@ -3243,7 +3258,7 @@ var $a636ca15e3d3570d$export$2e2bcd8739ae039 = {
|
|
|
3243
3258
|
"checkbox-grid": (0, $0ef1681699140f1a$export$414f6a19d38e655c),
|
|
3244
3259
|
"checkbox-color": (0, $b51a2b8b9355e66c$export$82ed4b28ecb67608)
|
|
3245
3260
|
};
|
|
3246
|
-
const $0f4656eaf6c22d1d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
3261
|
+
const $0f4656eaf6c22d1d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
3247
3262
|
function $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4(props = {}) {
|
|
3248
3263
|
return (() => {
|
|
3249
3264
|
const _el$ = $gVhhF$solidjsweb.getNextElement($0f4656eaf6c22d1d$var$_tmpl$);
|
|
@@ -3252,7 +3267,7 @@ function $0f4656eaf6c22d1d$export$f2ca6fc699ca1fb4(props = {}) {
|
|
|
3252
3267
|
return _el$;
|
|
3253
3268
|
})();
|
|
3254
3269
|
}
|
|
3255
|
-
const $b064919833b3e80b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
3270
|
+
const $b064919833b3e80b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=show-selected aria-hidden=true><span></span><!$><!/>`);
|
|
3256
3271
|
function $b064919833b3e80b$export$53c59af873b303c9({
|
|
3257
3272
|
selected_filters_in_group_: selected_filters_in_group_,
|
|
3258
3273
|
i18n_: {
|
|
@@ -3372,7 +3387,7 @@ function $8c939a05b87fbbbc$export$ab34afce88557c0e(props) {
|
|
|
3372
3387
|
}));
|
|
3373
3388
|
return is_open;
|
|
3374
3389
|
}
|
|
3375
|
-
const $9fe9883b1d8ecccc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span
|
|
3390
|
+
const $9fe9883b1d8ecccc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span>`);
|
|
3376
3391
|
function $9fe9883b1d8ecccc$export$acb3eaade4b23afd(props) {
|
|
3377
3392
|
return (() => {
|
|
3378
3393
|
const _el$ = $gVhhF$solidjsweb.getNextElement($9fe9883b1d8ecccc$var$_tmpl$);
|
|
@@ -3413,14 +3428,14 @@ function $061ff5b4c3d36171$export$89c6019e4baa40b1(props) {
|
|
|
3413
3428
|
}
|
|
3414
3429
|
});
|
|
3415
3430
|
}
|
|
3416
|
-
const $aff9a96d30ed3563$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
3417
|
-
$aff9a96d30ed3563$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=
|
|
3418
|
-
$aff9a96d30ed3563$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
3419
|
-
$aff9a96d30ed3563$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
3420
|
-
$aff9a96d30ed3563$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=
|
|
3421
|
-
$aff9a96d30ed3563$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=
|
|
3422
|
-
$aff9a96d30ed3563$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
3423
|
-
$aff9a96d30ed3563$var$_tmpl$8 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-all-filters major"
|
|
3431
|
+
const $aff9a96d30ed3563$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible>`),
|
|
3432
|
+
$aff9a96d30ed3563$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=clear-group><!$><!/><span>`),
|
|
3433
|
+
$aff9a96d30ed3563$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
3434
|
+
$aff9a96d30ed3563$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-collapsible-body><div class=filter-part></div><!$><!/>`),
|
|
3435
|
+
$aff9a96d30ed3563$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=filter-collapsible>`),
|
|
3436
|
+
$aff9a96d30ed3563$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
3437
|
+
$aff9a96d30ed3563$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=ungrouped>`),
|
|
3438
|
+
$aff9a96d30ed3563$var$_tmpl$8 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear-all-filters major">`);
|
|
3424
3439
|
function $aff9a96d30ed3563$export$3f1a388cc0d8fed7(props) {
|
|
3425
3440
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
3426
3441
|
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
@@ -4325,7 +4340,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
|
|
|
4325
4340
|
$gVhhF$solidjs.onCleanup(() => removeEventListener(event, catchified_handler));
|
|
4326
4341
|
}
|
|
4327
4342
|
}
|
|
4328
|
-
const $401aee5f33dca9e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
4343
|
+
const $401aee5f33dca9e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=scroll-status style=display:none><span class=text><b></b> – <b></b> <!$><!/> <b>`);
|
|
4329
4344
|
function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
4330
4345
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
4331
4346
|
first_result_in_viewport_: [get_first_result_in_viewport],
|
|
@@ -4462,8 +4477,8 @@ function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
|
4462
4477
|
return _el$;
|
|
4463
4478
|
})();
|
|
4464
4479
|
}
|
|
4465
|
-
const $0d0b172488865048$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
4466
|
-
$0d0b172488865048$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
4480
|
+
const $0d0b172488865048$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=hint href=javascript:void(0)>`),
|
|
4481
|
+
$0d0b172488865048$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=no-results><div class=text></div><!$><!/>`);
|
|
4467
4482
|
function $0d0b172488865048$export$ef6006467f04ee41({
|
|
4468
4483
|
i18n_: i18n_,
|
|
4469
4484
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -4616,7 +4631,9 @@ function $ac167f6af6a48fc3$export$a1fd619a4743ca08({
|
|
|
4616
4631
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4617
4632
|
query_base_: query_base_,
|
|
4618
4633
|
depict_api_: depict_api_,
|
|
4619
|
-
is_loading_: is_loading_
|
|
4634
|
+
is_loading_: is_loading_,
|
|
4635
|
+
content_blocks_: content_blocks_,
|
|
4636
|
+
set_number_loaded_displays_: set_number_loaded_displays_
|
|
4620
4637
|
}) {
|
|
4621
4638
|
// 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
|
|
4622
4639
|
const target_to_index_map = new Map();
|
|
@@ -4660,11 +4677,13 @@ function $ac167f6af6a48fc3$export$a1fd619a4743ca08({
|
|
|
4660
4677
|
query_base_: query_base_,
|
|
4661
4678
|
depict_api_: depict_api_
|
|
4662
4679
|
});
|
|
4680
|
+
$gVhhF$solidjs.createComputed(() => set_number_loaded_displays_(displays_by_key_().size));
|
|
4663
4681
|
return $a73063cc642f3e5f$export$43f0fb951fcb0c54({
|
|
4664
4682
|
displays_by_key_: displays_by_key_,
|
|
4665
4683
|
merchant_: merchant_,
|
|
4666
4684
|
market_: market_,
|
|
4667
4685
|
product_card_template_: product_card_template_,
|
|
4686
|
+
content_blocks_: content_blocks_,
|
|
4668
4687
|
do_per_elements_: (elements, index_accessor) =>
|
|
4669
4688
|
// Adds/removes elements from the "results in viewport" intersection observer above
|
|
4670
4689
|
$gVhhF$solidjs.createEffect(() => {
|
|
@@ -4686,7 +4705,347 @@ function $ac167f6af6a48fc3$export$a1fd619a4743ca08({
|
|
|
4686
4705
|
})
|
|
4687
4706
|
});
|
|
4688
4707
|
}
|
|
4689
|
-
const $
|
|
4708
|
+
const $75777da1687ba3f6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
4709
|
+
$75777da1687ba3f6$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style type=text/css>`);
|
|
4710
|
+
const $75777da1687ba3f6$export$c500183c31c2b22e = "--spans-columns";
|
|
4711
|
+
function $75777da1687ba3f6$export$ab6b147eec64fea5(props) {
|
|
4712
|
+
const container_class = "x" + $gVhhF$solidjs.createUniqueId();
|
|
4713
|
+
const container_element_ = (() => {
|
|
4714
|
+
const _el$ = $gVhhF$solidjsweb.getNextElement($75777da1687ba3f6$var$_tmpl$);
|
|
4715
|
+
$gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(() => props.element_attributes, {
|
|
4716
|
+
"classList": {
|
|
4717
|
+
[container_class]: true
|
|
4718
|
+
}
|
|
4719
|
+
}), false, true);
|
|
4720
|
+
$gVhhF$solidjsweb.insert(_el$, () => props.children);
|
|
4721
|
+
$gVhhF$solidjsweb.runHydrationEvents();
|
|
4722
|
+
return _el$;
|
|
4723
|
+
})(); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
4724
|
+
return $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
4725
|
+
message_: "Failed calculating css grid layout",
|
|
4726
|
+
severity_: "error",
|
|
4727
|
+
get children() {
|
|
4728
|
+
return $75777da1687ba3f6$export$e2f22da34aaf310a(props, container_element_, false, container_class);
|
|
4729
|
+
}
|
|
4730
|
+
});
|
|
4731
|
+
}
|
|
4732
|
+
function $75777da1687ba3f6$export$e2f22da34aaf310a(props, container_element, insert_after_container = false, container_class) {
|
|
4733
|
+
if (!container_class) {
|
|
4734
|
+
// only try to add if it wasn't provided, so that we have a code path without classList when doing SSR
|
|
4735
|
+
container_class = $gVhhF$depictaiutilishared.make_random_classname();
|
|
4736
|
+
container_element.classList.add(container_class);
|
|
4737
|
+
}
|
|
4738
|
+
const container_selector = `.depict .${container_class}`; // class so ppl can have id if needed
|
|
4739
|
+
const col_styling = $gVhhF$solidjs.createMemo(() => $75777da1687ba3f6$var$generate_media_queried_declarations({
|
|
4740
|
+
container_selector_: container_selector,
|
|
4741
|
+
default_grid_spacing_text: props.grid_spacing,
|
|
4742
|
+
cols_at_size_: props.cols_at_size,
|
|
4743
|
+
override_vertical_spacing_: props.override_vertical_spacing,
|
|
4744
|
+
top_row_shortened_by_: props.top_row_shortened_by_()
|
|
4745
|
+
}));
|
|
4746
|
+
const base_styling = $gVhhF$solidjs.createMemo(() => {
|
|
4747
|
+
return `${container_selector}{display:grid;}`;
|
|
4748
|
+
});
|
|
4749
|
+
const get_styling = $gVhhF$solidjs.createMemo(() => base_styling() + col_styling());
|
|
4750
|
+
const style_element = (() => {
|
|
4751
|
+
const _el$2 = $gVhhF$solidjsweb.getNextElement($75777da1687ba3f6$var$_tmpl$2);
|
|
4752
|
+
$gVhhF$solidjsweb.insert(_el$2, get_styling);
|
|
4753
|
+
return _el$2;
|
|
4754
|
+
})(); // need to create this after set_styling has been called or else there will be no styling in the SSR'd output
|
|
4755
|
+
if (insert_after_container) container_element.after(style_element);
|
|
4756
|
+
return [container_element, style_element];
|
|
4757
|
+
}
|
|
4758
|
+
function $75777da1687ba3f6$var$generate_media_queried_declarations({
|
|
4759
|
+
container_selector_: container_selector_,
|
|
4760
|
+
default_grid_spacing_text: default_grid_spacing_text,
|
|
4761
|
+
cols_at_size_: cols_at_size_,
|
|
4762
|
+
override_vertical_spacing_: override_vertical_spacing_,
|
|
4763
|
+
top_row_shortened_by_: top_row_shortened_by_
|
|
4764
|
+
}) {
|
|
4765
|
+
return cols_at_size_.map(options => {
|
|
4766
|
+
const [n_cols, min, max, grid_spacing_for_size] = options;
|
|
4767
|
+
const spacing_to_use = grid_spacing_for_size || default_grid_spacing_text;
|
|
4768
|
+
// See comment in else block below
|
|
4769
|
+
const can_use_gap = $75777da1687ba3f6$var$can_use_gap_for_unit(spacing_to_use) && (!override_vertical_spacing_ || $75777da1687ba3f6$var$can_use_gap_for_unit(override_vertical_spacing_));
|
|
4770
|
+
let spacing_styling;
|
|
4771
|
+
let additional_styling = ""; // outside the media query
|
|
4772
|
+
if (can_use_gap) spacing_styling = `gap:${spacing_to_use};${override_vertical_spacing_ ? `row-gap:${override_vertical_spacing_};` : ``}`;else {
|
|
4773
|
+
// 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)
|
|
4774
|
+
// 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.
|
|
4775
|
+
// Logical thought: use margins for the vertical spacing. But margins in grids are apparently relative to the size of the individual items in grids.
|
|
4776
|
+
// 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.
|
|
4777
|
+
const width_multiplier = `var(${$75777da1687ba3f6$export$c500183c31c2b22e}, 1)`; // How many cards wide the current item is (needed because content blocks)
|
|
4778
|
+
const one_item_width_exclusing_gaps = `calc(calc(100 / ${n_cols}) - calc(calc(${n_cols * 2 - 2} * calc(${$75777da1687ba3f6$var$strip_percent_unit(spacing_to_use)} / 2)) / ${n_cols}))`; // Width of one item in percent of the whole
|
|
4779
|
+
// Equation from layout.tsx, also used in CheckboxGrid. Needs half spacing for some reason
|
|
4780
|
+
const this_item_width_meat = `calc(${one_item_width_exclusing_gaps} * ${width_multiplier})`; // Width of just the card
|
|
4781
|
+
const this_item_width_gaps = `calc(calc(${width_multiplier} - 1) * ${$75777da1687ba3f6$var$strip_percent_unit(spacing_to_use)})`; // Width of the gaps
|
|
4782
|
+
const this_item_width = `calc(${this_item_width_meat} + ${this_item_width_gaps})`; // Width of this item including gaps
|
|
4783
|
+
// 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
|
|
4784
|
+
const convert_top_spacing_to_item_width_percentage = spacing => `calc(calc(100 / ${this_item_width}) * ${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)
|
|
4785
|
+
spacing_styling = `column-gap:${spacing_to_use};`; // Still use gaps in the horizontal direction because that works flawlessly
|
|
4786
|
+
// Re-use old layout code to get the correct :nth-child declarations for the top margins
|
|
4787
|
+
additional_styling = $gVhhF$depictaiutilishared.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_);
|
|
4788
|
+
}
|
|
4789
|
+
const media_query_body = `${container_selector_}{${spacing_styling}grid-template-columns:repeat(${n_cols},minmax(0,1fr));}`;
|
|
4790
|
+
return `${$gVhhF$depictaiutilishared.layout_media_query_header(min, max)}{${media_query_body}}${additional_styling}`;
|
|
4791
|
+
}).join("");
|
|
4792
|
+
}
|
|
4793
|
+
function $75777da1687ba3f6$var$can_use_gap_for_unit(spacing) {
|
|
4794
|
+
const trimmed_spacing = spacing.trim();
|
|
4795
|
+
return !trimmed_spacing.includes("%");
|
|
4796
|
+
}
|
|
4797
|
+
function $75777da1687ba3f6$var$strip_percent_unit(css_value) {
|
|
4798
|
+
return css_value.replaceAll("%", "");
|
|
4799
|
+
}
|
|
4800
|
+
function $738c3a81fc46a340$export$cb5808ba002cdeed({
|
|
4801
|
+
layout_options_: layout_options_,
|
|
4802
|
+
sort_or_filter_open_: sort_or_filter_open_
|
|
4803
|
+
}) {
|
|
4804
|
+
return $gVhhF$solidjs.createMemo(() => {
|
|
4805
|
+
const layout_options = layout_options_();
|
|
4806
|
+
// Add grid styling that changes when filters get opened/closed
|
|
4807
|
+
const when_filters_closed_cols = layout_options.cols_at_size;
|
|
4808
|
+
return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
|
|
4809
|
+
const [num_cols_default,,,, override_cols] = row;
|
|
4810
|
+
const cloned_row = [...row];
|
|
4811
|
+
// @ts-ignore
|
|
4812
|
+
cloned_row[0] = num_cols_default - 1;
|
|
4813
|
+
if (override_cols)
|
|
4814
|
+
// @ts-ignore
|
|
4815
|
+
cloned_row[4] = {
|
|
4816
|
+
overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(([row, column]) => [row, column - 1]))
|
|
4817
|
+
};
|
|
4818
|
+
return cloned_row;
|
|
4819
|
+
}) : when_filters_closed_cols;
|
|
4820
|
+
});
|
|
4821
|
+
}
|
|
4822
|
+
function $055384b985678603$export$a79e666719b3647c(cols_at_size_) {
|
|
4823
|
+
const size_active = $gVhhF$solidjs.createMemo(() => cols_at_size_().map(([n_cols, min_width, max_width]) => {
|
|
4824
|
+
const media_query = $gVhhF$depictaiutilishared.layout_media_query_header(min_width, max_width).replaceAll("@media", "");
|
|
4825
|
+
const matches = $b54e6192d0caa293$export$d9f36cf74e24d595(media_query);
|
|
4826
|
+
return [matches, n_cols];
|
|
4827
|
+
}));
|
|
4828
|
+
const n_cols_currently_showing = $gVhhF$solidjs.createMemo(() => {
|
|
4829
|
+
try {
|
|
4830
|
+
const [, n_cols_currently_showing] = size_active().find(([media_query]) => media_query());
|
|
4831
|
+
return n_cols_currently_showing;
|
|
4832
|
+
} catch (e) {
|
|
4833
|
+
$gVhhF$depictaiutilishared.dwarn("No active size found in columnsAtSize - can't render content blocks");
|
|
4834
|
+
return null;
|
|
4835
|
+
}
|
|
4836
|
+
});
|
|
4837
|
+
return n_cols_currently_showing;
|
|
4838
|
+
}
|
|
4839
|
+
function $3bc4a89b971a3af5$export$3f37af283f8fb843(props) {
|
|
4840
|
+
const style = $gVhhF$solidjs.createMemo(() => {
|
|
4841
|
+
const {
|
|
4842
|
+
style: style,
|
|
4843
|
+
height: height,
|
|
4844
|
+
width: width,
|
|
4845
|
+
aspectRatio: aspectRatio
|
|
4846
|
+
} = props;
|
|
4847
|
+
const is_image = aspectRatio != undefined;
|
|
4848
|
+
const size_data = is_image ? {
|
|
4849
|
+
width: "100%",
|
|
4850
|
+
"padding-bottom": 1 / aspectRatio * 100 + "%"
|
|
4851
|
+
} : {
|
|
4852
|
+
width: width,
|
|
4853
|
+
height: height
|
|
4854
|
+
};
|
|
4855
|
+
return {
|
|
4856
|
+
display: "block",
|
|
4857
|
+
...(style || {}),
|
|
4858
|
+
...size_data
|
|
4859
|
+
};
|
|
4860
|
+
});
|
|
4861
|
+
return $gVhhF$solidjsweb.createComponent((0, $9fe9883b1d8ecccc$export$acb3eaade4b23afd), {
|
|
4862
|
+
get style() {
|
|
4863
|
+
return style();
|
|
4864
|
+
},
|
|
4865
|
+
get ["class"]() {
|
|
4866
|
+
return props.class;
|
|
4867
|
+
}
|
|
4868
|
+
});
|
|
4869
|
+
}
|
|
4870
|
+
const $d92f338ba8f9da9b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=content-block-wrapper>`);
|
|
4871
|
+
function $d92f338ba8f9da9b$export$791ef57e62e21c3f({
|
|
4872
|
+
content_blocks_: incoming_content_blocks,
|
|
4873
|
+
cols_at_size_: cols_at_size_,
|
|
4874
|
+
number_of_items_shown_: number_of_items_shown_,
|
|
4875
|
+
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
4876
|
+
}) {
|
|
4877
|
+
// these are by row
|
|
4878
|
+
const [content_blocks, set_content_blocks] = $gVhhF$solidjsstore.createStore([]);
|
|
4879
|
+
const n_cols_currently_showing_ = $055384b985678603$export$a79e666719b3647c(cols_at_size_);
|
|
4880
|
+
const products_to_rows = products => {
|
|
4881
|
+
const cols_currently_showing = n_cols_currently_showing_();
|
|
4882
|
+
if (cols_currently_showing === null) return 0;
|
|
4883
|
+
return Math.ceil(products / cols_currently_showing);
|
|
4884
|
+
};
|
|
4885
|
+
const showing_rows = $gVhhF$solidjs.createMemo(() => products_to_rows(number_of_items_shown_()));
|
|
4886
|
+
$gVhhF$solidjs.createEffect(() => {
|
|
4887
|
+
const incoming_value = incoming_content_blocks();
|
|
4888
|
+
if (!incoming_value) {
|
|
4889
|
+
set_content_blocks([]);
|
|
4890
|
+
return;
|
|
4891
|
+
}
|
|
4892
|
+
const capped_value = incoming_value.slice(0, showing_rows()); // Don't show more content blocks than we have rows
|
|
4893
|
+
set_content_blocks($gVhhF$solidjsstore.reconcile(capped_value, {
|
|
4894
|
+
key: "content"
|
|
4895
|
+
})); // key: Make moving blocks faster, see https://github.com/solidjs/solid/issues/1925#issuecomment-1769671596
|
|
4896
|
+
});
|
|
4897
|
+
|
|
4898
|
+
const get_wrapped_blocks_ = $d92f338ba8f9da9b$var$wrap_blocks_in_div(content_blocks, n_cols_currently_showing_);
|
|
4899
|
+
$gVhhF$solidjs.createComputed(() => {
|
|
4900
|
+
// 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
|
|
4901
|
+
const top_row_block = get_wrapped_blocks_()[0];
|
|
4902
|
+
const blocks_in_top_row_taken = top_row_block?.span_columns;
|
|
4903
|
+
if (blocks_in_top_row_taken == undefined) {
|
|
4904
|
+
// Fall back to zero if no content block in top row, since then no blocks in top row are taken
|
|
4905
|
+
set_top_row_shortened_by_(0);
|
|
4906
|
+
return;
|
|
4907
|
+
}
|
|
4908
|
+
set_top_row_shortened_by_(blocks_in_top_row_taken - 1); // minus one because the content block wrapper also is an element
|
|
4909
|
+
});
|
|
4910
|
+
|
|
4911
|
+
return $d92f338ba8f9da9b$var$remap_blocks_to_index({
|
|
4912
|
+
get_wrapped_blocks_: get_wrapped_blocks_,
|
|
4913
|
+
n_cols_currently_showing_: n_cols_currently_showing_
|
|
4914
|
+
});
|
|
4915
|
+
}
|
|
4916
|
+
/**
|
|
4917
|
+
* Calculate where to put each of the finished wrapped content blocks. Also limit blocks' max width.
|
|
4918
|
+
* @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
|
|
4919
|
+
*/
|
|
4920
|
+
function $d92f338ba8f9da9b$var$remap_blocks_to_index({
|
|
4921
|
+
get_wrapped_blocks_: get_wrapped_blocks_,
|
|
4922
|
+
n_cols_currently_showing_: n_cols_currently_showing_
|
|
4923
|
+
}) {
|
|
4924
|
+
return $gVhhF$solidjs.createMemo(() => {
|
|
4925
|
+
// This computation should be quite cheap since it just moves around things into an array
|
|
4926
|
+
const content_blocks_by_index = [];
|
|
4927
|
+
const constructed_block_arrays = new WeakSet();
|
|
4928
|
+
const wrapped_blocks = get_wrapped_blocks_();
|
|
4929
|
+
const cols_showing = n_cols_currently_showing_();
|
|
4930
|
+
// Need to keep track of products displaced by blocks above when mapping rows to indexes in the actual grid
|
|
4931
|
+
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
|
|
4932
|
+
for (let i = 0; i < wrapped_blocks.length; i++) {
|
|
4933
|
+
// i = row to show at
|
|
4934
|
+
const block = wrapped_blocks[i];
|
|
4935
|
+
if (!block) continue; // Array can have holes/not defined places
|
|
4936
|
+
const index_of_first_item_in_row = i * cols_showing;
|
|
4937
|
+
const index_of_last_item_in_row = index_of_first_item_in_row + cols_showing;
|
|
4938
|
+
const {
|
|
4939
|
+
span_rows: span_rows,
|
|
4940
|
+
position: position,
|
|
4941
|
+
span_columns: span_columns
|
|
4942
|
+
} = block; // span columns is already capped in the block wrapping step (wrap_blocks_in_div)
|
|
4943
|
+
let target_index;
|
|
4944
|
+
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));
|
|
4945
|
+
// Calculate displacement of us by content blocks above us
|
|
4946
|
+
let displacement_by_added_blocks = 0;
|
|
4947
|
+
for (let j = 0; j < i; j++) {
|
|
4948
|
+
const row = displaced_products[j];
|
|
4949
|
+
if (row === undefined) continue; // there were no blocks in this row
|
|
4950
|
+
let items_in_row;
|
|
4951
|
+
if (typeof row === "number") items_in_row = row;else {
|
|
4952
|
+
items_in_row = row.filter(item => item).length;
|
|
4953
|
+
displaced_products[j] = items_in_row;
|
|
4954
|
+
}
|
|
4955
|
+
displacement_by_added_blocks += items_in_row;
|
|
4956
|
+
}
|
|
4957
|
+
const index_of_us_in_row = target_index - index_of_first_item_in_row;
|
|
4958
|
+
for (let j = 0; j < index_of_us_in_row; j++) if (displaced_products[i]?.[j])
|
|
4959
|
+
// Add blocks in our *current* row to the displacement, but only the ones to our left
|
|
4960
|
+
displacement_by_added_blocks++;
|
|
4961
|
+
// Add block to output array at the correct index
|
|
4962
|
+
const final_target_index = target_index - displacement_by_added_blocks;
|
|
4963
|
+
const existing_block = content_blocks_by_index[final_target_index];
|
|
4964
|
+
const block_content = block.content;
|
|
4965
|
+
// 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
|
|
4966
|
+
if (existing_block) {
|
|
4967
|
+
if (constructed_block_arrays.has(existing_block))
|
|
4968
|
+
// Only push to arrays we have created to not create funky bugs when there's an array in JSX.Element
|
|
4969
|
+
existing_block.push(block_content);else {
|
|
4970
|
+
const array = [existing_block, block_content];
|
|
4971
|
+
constructed_block_arrays.add(array);
|
|
4972
|
+
content_blocks_by_index[final_target_index] = array;
|
|
4973
|
+
}
|
|
4974
|
+
} else content_blocks_by_index[final_target_index] = block_content;
|
|
4975
|
+
// Update displacement
|
|
4976
|
+
for (let j = 0; j < span_rows; j++) {
|
|
4977
|
+
const row = displaced_products[i + j] ||= [];
|
|
4978
|
+
for (let k = index_of_us_in_row; k < index_of_us_in_row + span_columns; k++) row[k] = true;
|
|
4979
|
+
}
|
|
4980
|
+
}
|
|
4981
|
+
return content_blocks_by_index;
|
|
4982
|
+
});
|
|
4983
|
+
}
|
|
4984
|
+
/**
|
|
4985
|
+
* 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.
|
|
4986
|
+
* Then renders the content and wraps it into a div with the correct styling.
|
|
4987
|
+
* Also caps span_columns to max available columns
|
|
4988
|
+
*/
|
|
4989
|
+
function $d92f338ba8f9da9b$var$wrap_blocks_in_div(rendered_content_blocks, max_span_columns) {
|
|
4990
|
+
const get_wrapped_blocks = $gVhhF$solidjs.mapArray(() => rendered_content_blocks, block => {
|
|
4991
|
+
if (!block) return;
|
|
4992
|
+
const get_span_columns = () => Math.min(block.span_columns, max_span_columns() ?? Infinity);
|
|
4993
|
+
return $gVhhF$solidjs.mergeProps(block, {
|
|
4994
|
+
// Create content divs for the blocks with as much fine-grained diffing as possible?
|
|
4995
|
+
content: (() => {
|
|
4996
|
+
const _el$ = $gVhhF$solidjsweb.getNextElement($d92f338ba8f9da9b$var$_tmpl$);
|
|
4997
|
+
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent($d92f338ba8f9da9b$var$RenderContent, {
|
|
4998
|
+
get content() {
|
|
4999
|
+
return block.content;
|
|
5000
|
+
}
|
|
5001
|
+
}));
|
|
5002
|
+
$gVhhF$solidjsweb.effect(_p$ => {
|
|
5003
|
+
const _v$ = {
|
|
5004
|
+
[(0, $75777da1687ba3f6$export$c500183c31c2b22e)]: get_span_columns()
|
|
5005
|
+
},
|
|
5006
|
+
_v$2 = `span ${get_span_columns()}`,
|
|
5007
|
+
_v$3 = `span ${block.span_rows}`;
|
|
5008
|
+
_p$._v$ = $gVhhF$solidjsweb.style(_el$, _v$, _p$._v$);
|
|
5009
|
+
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$.style.setProperty("grid-column", _v$2) : _el$.style.removeProperty("grid-column"));
|
|
5010
|
+
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$.style.setProperty("grid-row", _v$3) : _el$.style.removeProperty("grid-row"));
|
|
5011
|
+
return _p$;
|
|
5012
|
+
}, {
|
|
5013
|
+
_v$: undefined,
|
|
5014
|
+
_v$2: undefined,
|
|
5015
|
+
_v$3: undefined
|
|
5016
|
+
});
|
|
5017
|
+
return _el$;
|
|
5018
|
+
})(),
|
|
5019
|
+
get span_columns() {
|
|
5020
|
+
// Cap max width of block to the number of columns available, for everyone downstream
|
|
5021
|
+
return get_span_columns();
|
|
5022
|
+
}
|
|
5023
|
+
});
|
|
5024
|
+
});
|
|
5025
|
+
return get_wrapped_blocks;
|
|
5026
|
+
}
|
|
5027
|
+
/**
|
|
5028
|
+
* 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.
|
|
5029
|
+
*/
|
|
5030
|
+
function $d92f338ba8f9da9b$var$RenderContent(props) {
|
|
5031
|
+
const [resource] = $gVhhF$solidjs.createResource(() => props.content,
|
|
5032
|
+
// Could be reactive
|
|
5033
|
+
fn => fn());
|
|
5034
|
+
$gVhhF$solidjs.createEffect(() => {
|
|
5035
|
+
if (resource.error) console.error("Error in content block rendering", resource.error);
|
|
5036
|
+
});
|
|
5037
|
+
// 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)
|
|
5038
|
+
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
|
|
5039
|
+
get fallback() {
|
|
5040
|
+
return $gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
5041
|
+
width: "100%",
|
|
5042
|
+
height: "max(100%, 400px)"
|
|
5043
|
+
});
|
|
5044
|
+
},
|
|
5045
|
+
children: resource
|
|
5046
|
+
});
|
|
5047
|
+
}
|
|
5048
|
+
const $fe76fb463cc60b89$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=PLP-results><!$><!/><!$><!/>`);
|
|
4690
5049
|
function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
4691
5050
|
plp_results_: plp_results_,
|
|
4692
5051
|
depict_api_: depict_api_,
|
|
@@ -4701,7 +5060,8 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
4701
5060
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
4702
5061
|
product_card_template_: product_card_template_,
|
|
4703
5062
|
layout_options_: layout_options_,
|
|
4704
|
-
id_currently_querying_for_: id_currently_querying_for_
|
|
5063
|
+
id_currently_querying_for_: id_currently_querying_for_,
|
|
5064
|
+
content_blocks_by_row_: content_blocks_by_row_
|
|
4705
5065
|
}) {
|
|
4706
5066
|
// 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
|
|
4707
5067
|
const is_loading_ = $gVhhF$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -4748,20 +5108,33 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
4748
5108
|
let is_just_after_plp_results_update = false;
|
|
4749
5109
|
let fallback_is_alive = false;
|
|
4750
5110
|
const [get_should_have_placeholders_rendered, set_should_have_placeholders_rendered] = $gVhhF$solidjs.createSignal(true);
|
|
5111
|
+
const [top_row_shortened_by_, set_top_row_shortened_by_] = $gVhhF$solidjs.createSignal(0);
|
|
5112
|
+
const [product_card_suspense_is_in_fallback, set_product_card_suspense_is_in_fallback] = $gVhhF$solidjs.createSignal(false);
|
|
5113
|
+
const [number_loaded_displays, set_number_loaded_displays_] = $gVhhF$solidjs.createSignal(0);
|
|
5114
|
+
const modified_cols_at_size = $738c3a81fc46a340$export$cb5808ba002cdeed({
|
|
5115
|
+
layout_options_: layout_options_,
|
|
5116
|
+
sort_or_filter_open_: sort_or_filter_open_
|
|
5117
|
+
});
|
|
5118
|
+
const num_placeholders_ = $gVhhF$solidjs.createMemo(() => {
|
|
5119
|
+
// 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
|
|
5120
|
+
return (0, $aec24316ed262dc0$export$6c9030e511152266) + (get_scroll_restoration_data().find(({
|
|
5121
|
+
for_id: for_id
|
|
5122
|
+
}) => for_id === id_currently_querying_for_())?.min_results_loaded ?? min_products_to_fetch_);
|
|
5123
|
+
});
|
|
5124
|
+
const number_of_items_shown_ = $gVhhF$solidjs.createMemo(() => is_loading_() || product_card_suspense_is_in_fallback() ? num_placeholders_() : number_loaded_displays());
|
|
5125
|
+
const doesnt_have_content_blocks = $gVhhF$solidjs.createMemo(() => !content_blocks_by_row_());
|
|
5126
|
+
const content_blocks_ = $gVhhF$solidjs.createMemo(() => doesnt_have_content_blocks() ? () => [] : $d92f338ba8f9da9b$export$791ef57e62e21c3f({
|
|
5127
|
+
content_blocks_: content_blocks_by_row_,
|
|
5128
|
+
cols_at_size_: modified_cols_at_size,
|
|
5129
|
+
number_of_items_shown_: number_of_items_shown_,
|
|
5130
|
+
set_top_row_shortened_by_: set_top_row_shortened_by_
|
|
5131
|
+
}));
|
|
4751
5132
|
const rendered_placeholders = $gVhhF$solidjs.createMemo(() => get_should_have_placeholders_rendered() ? $0caf87eaa19079da$export$f33414a4df0afd3f({
|
|
5133
|
+
content_blocks_: content_blocks_,
|
|
4752
5134
|
product_card_template_: product_card_template_,
|
|
4753
|
-
num_placeholders_:
|
|
4754
|
-
// 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
|
|
4755
|
-
return (0, $aec24316ed262dc0$export$6c9030e511152266) + (get_scroll_restoration_data().find(({
|
|
4756
|
-
for_id: for_id
|
|
4757
|
-
}) => for_id === id_currently_querying_for_())?.min_results_loaded ?? min_products_to_fetch_);
|
|
4758
|
-
})
|
|
5135
|
+
num_placeholders_: num_placeholders_
|
|
4759
5136
|
}) : undefined);
|
|
4760
5137
|
const [get_suspense_is_blocked, set_suspense_is_blocked] = $gVhhF$solidjs.createSignal(false);
|
|
4761
|
-
const modified_cols_at_size = $fe76fb463cc60b89$var$make_modified_cols_at_size({
|
|
4762
|
-
layout_options_: layout_options_,
|
|
4763
|
-
sort_or_filter_open_: sort_or_filter_open_
|
|
4764
|
-
});
|
|
4765
5138
|
const block_suspense_if_needed = () => {
|
|
4766
5139
|
if (!is_just_after_plp_results_update) return;
|
|
4767
5140
|
is_just_after_plp_results_update = false;
|
|
@@ -4791,18 +5164,18 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
4791
5164
|
*/
|
|
4792
5165
|
const product_cards_when_data = $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
|
|
4793
5166
|
get fallback() {
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
})
|
|
5167
|
+
fallback_is_alive = true;
|
|
5168
|
+
$gVhhF$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
|
|
5169
|
+
set_product_card_suspense_is_in_fallback(true); // Here for the content block code that needs to know how many items we're displaying
|
|
5170
|
+
$gVhhF$solidjs.onCleanup(() => set_product_card_suspense_is_in_fallback(false));
|
|
5171
|
+
return $gVhhF$solidjs.createMemo(() => {
|
|
5172
|
+
// 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
|
|
5173
|
+
// In future we could have individual suspense's for each product card, but that's too much for now
|
|
5174
|
+
if (get_suspense_is_blocked()) return suspense_contents;
|
|
5175
|
+
set_should_have_placeholders_rendered(true); // just in case
|
|
5176
|
+
$gVhhF$solidjs.onCleanup(() => set_should_have_placeholders_rendered(false));
|
|
5177
|
+
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>
|
|
5178
|
+
});
|
|
4806
5179
|
},
|
|
4807
5180
|
|
|
4808
5181
|
get children() {
|
|
@@ -4818,37 +5191,64 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
4818
5191
|
min_products_to_fetch_: min_products_to_fetch_,
|
|
4819
5192
|
query_base_: query_base_,
|
|
4820
5193
|
depict_api_: depict_api_,
|
|
4821
|
-
is_loading_: is_loading_
|
|
5194
|
+
is_loading_: is_loading_,
|
|
5195
|
+
content_blocks_: content_blocks_,
|
|
5196
|
+
set_number_loaded_displays_: set_number_loaded_displays_
|
|
4822
5197
|
});
|
|
4823
5198
|
$gVhhF$solidjs.onCleanup(() => suspense_contents = undefined);
|
|
4824
5199
|
return suspense_contents;
|
|
4825
5200
|
})();
|
|
4826
5201
|
}
|
|
4827
5202
|
});
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
5203
|
+
/* 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 */
|
|
5204
|
+
const listing_contents = $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
5205
|
+
get when() {
|
|
5206
|
+
return !is_loading_();
|
|
4831
5207
|
},
|
|
4832
|
-
get
|
|
4833
|
-
return
|
|
5208
|
+
get fallback() {
|
|
5209
|
+
return rendered_placeholders();
|
|
4834
5210
|
},
|
|
4835
|
-
|
|
4836
|
-
|
|
5211
|
+
children: product_cards_when_data
|
|
5212
|
+
});
|
|
5213
|
+
return [$gVhhF$solidjsweb.memo((0, $fc23d7668ae0011d$export$a2cc176055f8f08)), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
5214
|
+
get when() {
|
|
5215
|
+
return doesnt_have_content_blocks();
|
|
4837
5216
|
},
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
5217
|
+
get fallback() {
|
|
5218
|
+
return $gVhhF$solidjsweb.createComponent((0, $75777da1687ba3f6$export$ab6b147eec64fea5), {
|
|
5219
|
+
get cols_at_size() {
|
|
5220
|
+
return modified_cols_at_size();
|
|
5221
|
+
},
|
|
5222
|
+
get override_vertical_spacing() {
|
|
5223
|
+
return layout_options_().override_vertical_spacing;
|
|
5224
|
+
},
|
|
5225
|
+
get grid_spacing() {
|
|
5226
|
+
return layout_options_().grid_spacing;
|
|
5227
|
+
},
|
|
5228
|
+
element_attributes: {
|
|
5229
|
+
class: "cards css-grid"
|
|
5230
|
+
},
|
|
5231
|
+
top_row_shortened_by_: top_row_shortened_by_,
|
|
5232
|
+
children: listing_contents
|
|
5233
|
+
});
|
|
4842
5234
|
},
|
|
4843
5235
|
get children() {
|
|
4844
|
-
return $gVhhF$solidjsweb.createComponent((0, $
|
|
4845
|
-
get
|
|
4846
|
-
return
|
|
5236
|
+
return $gVhhF$solidjsweb.createComponent((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), {
|
|
5237
|
+
get cols_at_size() {
|
|
5238
|
+
return modified_cols_at_size();
|
|
5239
|
+
},
|
|
5240
|
+
get override_vertical_spacing() {
|
|
5241
|
+
return layout_options_().override_vertical_spacing;
|
|
4847
5242
|
},
|
|
4848
|
-
get
|
|
4849
|
-
return
|
|
5243
|
+
get grid_spacing() {
|
|
5244
|
+
return layout_options_().grid_spacing;
|
|
4850
5245
|
},
|
|
4851
|
-
|
|
5246
|
+
rows: "all",
|
|
5247
|
+
layout: "grid",
|
|
5248
|
+
element_attributes: {
|
|
5249
|
+
class: "cards"
|
|
5250
|
+
},
|
|
5251
|
+
children: listing_contents
|
|
4852
5252
|
});
|
|
4853
5253
|
}
|
|
4854
5254
|
})];
|
|
@@ -4861,36 +5261,10 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
4861
5261
|
return _el$;
|
|
4862
5262
|
})();
|
|
4863
5263
|
}
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
function $fe76fb463cc60b89$var$make_modified_cols_at_size({
|
|
4869
|
-
layout_options_: layout_options_,
|
|
4870
|
-
sort_or_filter_open_: sort_or_filter_open_
|
|
4871
|
-
}) {
|
|
4872
|
-
return $gVhhF$solidjs.createMemo(() => {
|
|
4873
|
-
const layout_options = layout_options_();
|
|
4874
|
-
// Add grid styling that changes when filters get opened/closed
|
|
4875
|
-
const when_filters_closed_cols = layout_options.cols_at_size;
|
|
4876
|
-
return sort_or_filter_open_() ? when_filters_closed_cols.map(row => {
|
|
4877
|
-
const [num_cols_default,,,, override_cols] = row;
|
|
4878
|
-
const cloned_row = [...row];
|
|
4879
|
-
// @ts-ignore
|
|
4880
|
-
cloned_row[0] = num_cols_default - 1;
|
|
4881
|
-
if (override_cols)
|
|
4882
|
-
// @ts-ignore
|
|
4883
|
-
cloned_row[4] = {
|
|
4884
|
-
overrides: Object.fromEntries(Object.entries(override_cols.overrides).map(([row, column]) => [row, column - 1]))
|
|
4885
|
-
};
|
|
4886
|
-
return cloned_row;
|
|
4887
|
-
}) : when_filters_closed_cols;
|
|
4888
|
-
});
|
|
4889
|
-
}
|
|
4890
|
-
const $be89be42ce9ea60f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="sorting-attributes"></div>`, 2),
|
|
4891
|
-
$be89be42ce9ea60f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="sorting-direction"></div>`, 2),
|
|
4892
|
-
$be89be42ce9ea60f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></div></div>`, 9),
|
|
4893
|
-
$be89be42ce9ea60f$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span><!#><!/></label></div>`, 9);
|
|
5264
|
+
const $be89be42ce9ea60f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sorting-attributes>`),
|
|
5265
|
+
$be89be42ce9ea60f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sorting-direction>`),
|
|
5266
|
+
$be89be42ce9ea60f$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`),
|
|
5267
|
+
$be89be42ce9ea60f$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><label class=input-row><input type=radio><span class=custom-indicator></span><!$><!/>`);
|
|
4894
5268
|
function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
4895
5269
|
available_sortings_: available_sortings_,
|
|
4896
5270
|
current_sorting_: [get_current_sorting, set_current_sorting],
|
|
@@ -4914,7 +5288,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
4914
5288
|
_el$7 = _el$6.nextSibling,
|
|
4915
5289
|
_el$8 = _el$7.nextSibling,
|
|
4916
5290
|
[_el$9, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$8.nextSibling);
|
|
4917
|
-
_el$6
|
|
5291
|
+
$gVhhF$solidjsweb.setProperty(_el$6, "disabled", true);
|
|
4918
5292
|
$gVhhF$solidjsweb.insert(_el$5, $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
4919
5293
|
height: "1.2em",
|
|
4920
5294
|
width: "100%"
|
|
@@ -4949,7 +5323,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
4949
5323
|
$gVhhF$solidjsweb.addEventListener(_el$12, "change", $gVhhF$depictaiutilishared.catchify(() => set_current_sorting(item())));
|
|
4950
5324
|
$gVhhF$solidjsweb.setAttribute(_el$12, "name", title_radio_name);
|
|
4951
5325
|
$gVhhF$solidjsweb.insert(_el$11, () => item().meta.title, _el$15, _co$2);
|
|
4952
|
-
$gVhhF$solidjsweb.effect(() => _el$12
|
|
5326
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$12, "checked", is_checked()));
|
|
4953
5327
|
return _el$10;
|
|
4954
5328
|
})()
|
|
4955
5329
|
);
|
|
@@ -4981,7 +5355,7 @@ function $be89be42ce9ea60f$export$1f1775a58da589b5({
|
|
|
4981
5355
|
})));
|
|
4982
5356
|
$gVhhF$solidjsweb.setAttribute(_el$18, "name", order_radio_name);
|
|
4983
5357
|
$gVhhF$solidjsweb.insert(_el$17, () => meta_of_currently_selected_sorting_()?.names?.[index], _el$21, _co$3);
|
|
4984
|
-
$gVhhF$solidjsweb.effect(() => _el$18
|
|
5358
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$18, "checked", is_checked()));
|
|
4985
5359
|
return _el$16;
|
|
4986
5360
|
})();
|
|
4987
5361
|
}
|
|
@@ -5028,7 +5402,7 @@ function $ca1176b694a6ee2e$export$fe334901e8bebd57() {
|
|
|
5028
5402
|
// document.body.style.top = `-${from_top}px`;
|
|
5029
5403
|
// document.body.style.overflowY = "scroll";
|
|
5030
5404
|
|
|
5031
|
-
const $f958b5ac0e4a78da$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
5405
|
+
const $f958b5ac0e4a78da$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
5032
5406
|
function $f958b5ac0e4a78da$export$da32f7add8a22e86(props = {}) {
|
|
5033
5407
|
return (() => {
|
|
5034
5408
|
const _el$ = $gVhhF$solidjsweb.getNextElement($f958b5ac0e4a78da$var$_tmpl$);
|
|
@@ -5037,7 +5411,7 @@ function $f958b5ac0e4a78da$export$da32f7add8a22e86(props = {}) {
|
|
|
5037
5411
|
return _el$;
|
|
5038
5412
|
})();
|
|
5039
5413
|
}
|
|
5040
|
-
const $046db47e0326c715$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
5414
|
+
const $046db47e0326c715$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
5041
5415
|
function $046db47e0326c715$export$d10e63059ddb9fd4(props = {}) {
|
|
5042
5416
|
return (() => {
|
|
5043
5417
|
const _el$ = $gVhhF$solidjsweb.getNextElement($046db47e0326c715$var$_tmpl$);
|
|
@@ -5046,7 +5420,7 @@ function $046db47e0326c715$export$d10e63059ddb9fd4(props = {}) {
|
|
|
5046
5420
|
return _el$;
|
|
5047
5421
|
})();
|
|
5048
5422
|
}
|
|
5049
|
-
const $02215fefc955d01e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
5423
|
+
const $02215fefc955d01e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
5050
5424
|
function $02215fefc955d01e$export$28f6150e232898de() {
|
|
5051
5425
|
return $gVhhF$solidjsweb.getNextElement($02215fefc955d01e$var$_tmpl$);
|
|
5052
5426
|
}
|
|
@@ -5058,13 +5432,13 @@ function $02215fefc955d01e$export$28f6150e232898de() {
|
|
|
5058
5432
|
function $7e91f9b0c6d56424$export$50f68cc9882e36a4(args_for_filtering) {
|
|
5059
5433
|
return args_for_filtering.available_filters_()?.length === 0 && !args_for_filtering.selected_filters_[0]()?.length;
|
|
5060
5434
|
}
|
|
5061
|
-
const $1872ceb56ede7a52$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear minor"
|
|
5062
|
-
$1872ceb56ede7a52$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp"
|
|
5063
|
-
$1872ceb56ede7a52$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=
|
|
5064
|
-
$1872ceb56ede7a52$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=
|
|
5065
|
-
$1872ceb56ede7a52$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
5066
|
-
$1872ceb56ede7a52$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=
|
|
5067
|
-
$1872ceb56ede7a52$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b
|
|
5435
|
+
const $1872ceb56ede7a52$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="clear minor">`),
|
|
5436
|
+
$1872ceb56ede7a52$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.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">`),
|
|
5437
|
+
$1872ceb56ede7a52$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=sorting>`),
|
|
5438
|
+
$1872ceb56ede7a52$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<summary class=sort-filter-summary><div class=summary><div class=left-els><!$><!/><span></span></div><!$><!/>`),
|
|
5439
|
+
$1872ceb56ede7a52$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=body>`),
|
|
5440
|
+
$1872ceb56ede7a52$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<details class=filters>`),
|
|
5441
|
+
$1872ceb56ede7a52$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`);
|
|
5068
5442
|
const $1872ceb56ede7a52$var$no_go_selector = ".range .range-group";
|
|
5069
5443
|
function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
5070
5444
|
args_for_sorting_: args_for_sorting_,
|
|
@@ -5379,16 +5753,16 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
|
|
|
5379
5753
|
})()];
|
|
5380
5754
|
}
|
|
5381
5755
|
$gVhhF$solidjsweb.delegateEvents(["click", "touchstart"]);
|
|
5382
|
-
const $f49857214f7675b1$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
5756
|
+
const $f49857214f7675b1$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
5383
5757
|
function $f49857214f7675b1$export$cb808a3c41736d8e() {
|
|
5384
5758
|
return $gVhhF$solidjsweb.getNextElement($f49857214f7675b1$var$_tmpl$);
|
|
5385
5759
|
}
|
|
5386
|
-
const $f8f64d05c525825b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
5387
|
-
$f8f64d05c525825b$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
5388
|
-
$f8f64d05c525825b$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
5389
|
-
$f8f64d05c525825b$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
5390
|
-
$f8f64d05c525825b$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
5391
|
-
$f8f64d05c525825b$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="toggle-button for-sorting major-minor-transition"><span></span
|
|
5760
|
+
const $f8f64d05c525825b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filters><div class=body>`),
|
|
5761
|
+
$f8f64d05c525825b$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sorting><div class=body>`),
|
|
5762
|
+
$f8f64d05c525825b$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=sort-and-filter-buttons><div class=outer><div class=inner><!$><!/><!$><!/><!$><!/>`),
|
|
5763
|
+
$f8f64d05c525825b$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=num-filters>`),
|
|
5764
|
+
$f8f64d05c525825b$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=open-filters-button-container><!$><!/><button type=button><!$><!/><span>`),
|
|
5765
|
+
$f8f64d05c525825b$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="toggle-button for-sorting major-minor-transition"><span></span><!$><!/>`);
|
|
5392
5766
|
function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
5393
5767
|
current_sorting_: current_sorting_,
|
|
5394
5768
|
set_extra_els_in_results_container_: set_extra_els_in_results_container_,
|
|
@@ -5707,11 +6081,11 @@ function $f8f64d05c525825b$var$OpenSortingButton({
|
|
|
5707
6081
|
})();
|
|
5708
6082
|
}
|
|
5709
6083
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
5710
|
-
const $084b6a0ee1d481de$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
6084
|
+
const $084b6a0ee1d481de$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
5711
6085
|
function $084b6a0ee1d481de$export$2624c5890f1bbcf7() {
|
|
5712
6086
|
return $gVhhF$solidjsweb.getNextElement($084b6a0ee1d481de$var$_tmpl$);
|
|
5713
6087
|
}
|
|
5714
|
-
const $2fb324fbcc7b4a7b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
6088
|
+
const $2fb324fbcc7b4a7b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=floating-buttons><button class=filter><div></div></button><button class=sort><div></div></button><button class=up><div>`);
|
|
5715
6089
|
function $2fb324fbcc7b4a7b$export$b23abd26de154ede(props) {
|
|
5716
6090
|
if (0, $gVhhF$solidjsweb.isServer) return; // won't show in initial render and need scroll position
|
|
5717
6091
|
const [is_small, set_is_small] = $gVhhF$solidjs.createSignal(true);
|
|
@@ -5854,9 +6228,9 @@ function $2fb324fbcc7b4a7b$var$ActualFloatingButtons({
|
|
|
5854
6228
|
})();
|
|
5855
6229
|
}
|
|
5856
6230
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
5857
|
-
const $e53b2e7e632ac4cb$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav class=
|
|
5858
|
-
$e53b2e7e632ac4cb$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
5859
|
-
$e53b2e7e632ac4cb$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
6231
|
+
const $e53b2e7e632ac4cb$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav class=crumbs>`),
|
|
6232
|
+
$e53b2e7e632ac4cb$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=crumb>`),
|
|
6233
|
+
$e53b2e7e632ac4cb$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=separator>`);
|
|
5860
6234
|
function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
5861
6235
|
crumb_data_: get_api_crumb_data,
|
|
5862
6236
|
router_: router_,
|
|
@@ -5926,9 +6300,9 @@ function $e53b2e7e632ac4cb$export$5646050d516e06bc({
|
|
|
5926
6300
|
});
|
|
5927
6301
|
}
|
|
5928
6302
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
5929
|
-
const $8cceb1d3a967f369$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav class=
|
|
5930
|
-
$8cceb1d3a967f369$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>QuickLinks failed
|
|
5931
|
-
$8cceb1d3a967f369$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
6303
|
+
const $8cceb1d3a967f369$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<nav class=quicklinks>`),
|
|
6304
|
+
$8cceb1d3a967f369$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>QuickLinks failed`),
|
|
6305
|
+
$8cceb1d3a967f369$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=quicklink>`);
|
|
5932
6306
|
function $8cceb1d3a967f369$export$466cdc317043f6cb({
|
|
5933
6307
|
quicklinks_data_: quicklinks_data_,
|
|
5934
6308
|
router_: router_,
|
|
@@ -6329,8 +6703,8 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
6329
6703
|
});
|
|
6330
6704
|
tracking_function_for_plp_results(plp_results_);
|
|
6331
6705
|
}
|
|
6332
|
-
const $839b3341523d31a2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
6333
|
-
$839b3341523d31a2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
6706
|
+
const $839b3341523d31a2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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.`),
|
|
6707
|
+
$839b3341523d31a2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=buttons><button class="ok major">`);
|
|
6334
6708
|
function $839b3341523d31a2$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
6335
6709
|
if (!(0, $gVhhF$depictaiutilishared.is_debug)) return; // Just to make sure we don't show this in production
|
|
6336
6710
|
const owner = $gVhhF$solidjs.getOwner();
|
|
@@ -6389,10 +6763,10 @@ function $6a8e766e914723d8$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
|
|
|
6389
6763
|
set_selected_filters(new_filters);
|
|
6390
6764
|
});
|
|
6391
6765
|
}
|
|
6392
|
-
const $840d88a04b2d22a7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
6393
|
-
$840d88a04b2d22a7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
6394
|
-
$840d88a04b2d22a7$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
6395
|
-
$840d88a04b2d22a7$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category"><div class=
|
|
6766
|
+
const $840d88a04b2d22a7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=product-count><!$><!/> <!$><!/>`),
|
|
6767
|
+
$840d88a04b2d22a7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
6768
|
+
$840d88a04b2d22a7$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
6769
|
+
$840d88a04b2d22a7$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
6396
6770
|
function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
6397
6771
|
depict_api_: depict_api_,
|
|
6398
6772
|
query_id_: query_id_,
|
|
@@ -6420,7 +6794,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
6420
6794
|
product_card_template_: product_card_template_,
|
|
6421
6795
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
6422
6796
|
sorting_query_param_: sorting_query_param_,
|
|
6423
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
6797
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
6798
|
+
content_blocks_by_row_: content_blocks_by_row_
|
|
6424
6799
|
}) {
|
|
6425
6800
|
let results_for;
|
|
6426
6801
|
let only_show_filters_opener_;
|
|
@@ -6712,6 +7087,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
6712
7087
|
product_card_template_: product_card_template_,
|
|
6713
7088
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
6714
7089
|
desktop_filter_elements_: desktop_filter_elements_,
|
|
7090
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
6715
7091
|
id_currently_querying_for_: query_id_,
|
|
6716
7092
|
no_results_options_: {
|
|
6717
7093
|
selected_filters_: selected_filters_,
|
|
@@ -7003,7 +7379,7 @@ function $deaaf04362a1bc71$export$f50b88e2a00918b5(fn) {
|
|
|
7003
7379
|
}
|
|
7004
7380
|
};
|
|
7005
7381
|
}
|
|
7006
|
-
const $48567ac5b39bac56$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category"
|
|
7382
|
+
const $48567ac5b39bac56$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category">`);
|
|
7007
7383
|
// We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
|
|
7008
7384
|
/**
|
|
7009
7385
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions.
|
|
@@ -7221,6 +7597,7 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
|
|
|
7221
7597
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
7222
7598
|
selected_filters_: selected_filters_,
|
|
7223
7599
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
7600
|
+
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
7224
7601
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
7225
7602
|
layout_options_: $gVhhF$solidjs.createMemo(() => ({
|
|
7226
7603
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -7284,7 +7661,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
|
|
|
7284
7661
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
7285
7662
|
return shared_properties;
|
|
7286
7663
|
}
|
|
7287
|
-
const $0b23bfd073d9a4e8$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
7664
|
+
const $0b23bfd073d9a4e8$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-title><h1 class=title></h1><span class=explanation> — <!$><!/>`);
|
|
7288
7665
|
const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
7289
7666
|
const actual_function = ({
|
|
7290
7667
|
category_title_: category_title_,
|
|
@@ -7309,7 +7686,7 @@ const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
|
7309
7686
|
actual_function[(0, $6b502b1b2155a0bc$export$5c28802497c8a83c)] = "simple";
|
|
7310
7687
|
return actual_function;
|
|
7311
7688
|
})();
|
|
7312
|
-
const $85b747260aa175c9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="sort-and-filter-buttons fake"
|
|
7689
|
+
const $85b747260aa175c9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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><!$><!/><!$><!/><!$><!/>`);
|
|
7313
7690
|
const $85b747260aa175c9$export$824dde41348efed1 = /*@__PURE__*/(() => {
|
|
7314
7691
|
const actual_function = ({
|
|
7315
7692
|
make_product_count_: make_product_count_,
|
|
@@ -7471,38 +7848,7 @@ async function $63b10c9f461e0ef6$var$download_categories(tenant, market, type) {
|
|
|
7471
7848
|
return [];
|
|
7472
7849
|
}
|
|
7473
7850
|
}
|
|
7474
|
-
|
|
7475
|
-
const style = $gVhhF$solidjs.createMemo(() => {
|
|
7476
|
-
const {
|
|
7477
|
-
style: style,
|
|
7478
|
-
height: height,
|
|
7479
|
-
width: width,
|
|
7480
|
-
aspectRatio: aspectRatio
|
|
7481
|
-
} = props;
|
|
7482
|
-
const is_image = aspectRatio != undefined;
|
|
7483
|
-
const size_data = is_image ? {
|
|
7484
|
-
width: "100%",
|
|
7485
|
-
"padding-bottom": 1 / aspectRatio * 100 + "%"
|
|
7486
|
-
} : {
|
|
7487
|
-
width: width,
|
|
7488
|
-
height: height
|
|
7489
|
-
};
|
|
7490
|
-
return {
|
|
7491
|
-
display: "block",
|
|
7492
|
-
...(style || {}),
|
|
7493
|
-
...size_data
|
|
7494
|
-
};
|
|
7495
|
-
});
|
|
7496
|
-
return $gVhhF$solidjsweb.createComponent((0, $9fe9883b1d8ecccc$export$acb3eaade4b23afd), {
|
|
7497
|
-
get style() {
|
|
7498
|
-
return style();
|
|
7499
|
-
},
|
|
7500
|
-
get ["class"]() {
|
|
7501
|
-
return props.class;
|
|
7502
|
-
}
|
|
7503
|
-
});
|
|
7504
|
-
}
|
|
7505
|
-
const $6f604560873e4f69$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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);
|
|
7851
|
+
const $6f604560873e4f69$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-card><div class=img-part></div><div class=right-part><div class=title-brand-tagline><span class=title>`);
|
|
7506
7852
|
function $6f604560873e4f69$export$ee1733d9a8495996() {
|
|
7507
7853
|
return (() => {
|
|
7508
7854
|
const _el$ = $gVhhF$solidjsweb.getNextElement($6f604560873e4f69$var$_tmpl$),
|
|
@@ -7520,8 +7866,8 @@ function $6f604560873e4f69$export$ee1733d9a8495996() {
|
|
|
7520
7866
|
return _el$;
|
|
7521
7867
|
})();
|
|
7522
7868
|
}
|
|
7523
|
-
const $dae23104ba8bb78c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
7524
|
-
$dae23104ba8bb78c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
7869
|
+
const $dae23104ba8bb78c$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=parent-title>`),
|
|
7870
|
+
$dae23104ba8bb78c$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=category-suggestion><span class=title></span><!$><!/>`);
|
|
7525
7871
|
function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
7526
7872
|
category_suggestion_: category_suggestion_,
|
|
7527
7873
|
router_: router_
|
|
@@ -7555,11 +7901,11 @@ function $dae23104ba8bb78c$export$d757d54550ebfb3d({
|
|
|
7555
7901
|
})();
|
|
7556
7902
|
}
|
|
7557
7903
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
7558
|
-
const $3df11fc61432d1fd$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
7904
|
+
const $3df11fc61432d1fd$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
7559
7905
|
function $3df11fc61432d1fd$export$1c641004b5485fed() {
|
|
7560
7906
|
return $gVhhF$solidjsweb.getNextElement($3df11fc61432d1fd$var$_tmpl$);
|
|
7561
7907
|
}
|
|
7562
|
-
const $87d7574e1d89d69b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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"
|
|
7908
|
+
const $87d7574e1d89d69b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
7563
7909
|
function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
|
|
7564
7910
|
return (() => {
|
|
7565
7911
|
const _el$ = $gVhhF$solidjsweb.getNextElement($87d7574e1d89d69b$var$_tmpl$);
|
|
@@ -7572,8 +7918,8 @@ function $87d7574e1d89d69b$export$82eafebb825fc23f(props = {}) {
|
|
|
7572
7918
|
return _el$;
|
|
7573
7919
|
})();
|
|
7574
7920
|
}
|
|
7575
|
-
const $66b8b9a9613c141d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=
|
|
7576
|
-
$66b8b9a9613c141d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
7921
|
+
const $66b8b9a9613c141d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=back type=button>`),
|
|
7922
|
+
$66b8b9a9613c141d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.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>`);
|
|
7577
7923
|
function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
7578
7924
|
search_field_value_: search_field_value_,
|
|
7579
7925
|
input_field_ref_: input_field_ref_,
|
|
@@ -7672,7 +8018,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
7672
8018
|
input_field_ref_?.(el);
|
|
7673
8019
|
});
|
|
7674
8020
|
typeof _ref$ === "function" && $gVhhF$solidjsweb.use(_ref$, _el$4);
|
|
7675
|
-
_el$4.classList.toggle("has-adjacent-back-button",
|
|
8021
|
+
_el$4.classList.toggle("has-adjacent-back-button", !!!!on_back_);
|
|
7676
8022
|
$gVhhF$solidjsweb.addEventListener(_el$5, "click", $gVhhF$depictaiutilishared.catchify(() => {
|
|
7677
8023
|
search_field_value_[1]("");
|
|
7678
8024
|
clear_filters_(true);
|
|
@@ -7700,14 +8046,14 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
7700
8046
|
_v$4: undefined,
|
|
7701
8047
|
_v$5: undefined
|
|
7702
8048
|
});
|
|
7703
|
-
$gVhhF$solidjsweb.effect(() => _el$4
|
|
8049
|
+
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setProperty(_el$4, "value", search_field_value_[0]()));
|
|
7704
8050
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
7705
8051
|
return _el$;
|
|
7706
8052
|
})();
|
|
7707
8053
|
}
|
|
7708
8054
|
$gVhhF$solidjsweb.delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
7709
|
-
const $fb29c6201c369e39$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
7710
|
-
$fb29c6201c369e39$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major"
|
|
8055
|
+
const $fb29c6201c369e39$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-recs><h3 class=search-recs-title></h3><!$><!/><!$><!/>`),
|
|
8056
|
+
$fb29c6201c369e39$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class="show-more major"type=button>`);
|
|
7711
8057
|
const $fb29c6201c369e39$export$1c8c715550dc689d = 2;
|
|
7712
8058
|
function $fb29c6201c369e39$export$7de92c4c2205ebf3({
|
|
7713
8059
|
depict_api_: depict_api_,
|
|
@@ -7948,9 +8294,9 @@ async function $f328bd45f8ede33c$export$e16630ecb9644a1c({
|
|
|
7948
8294
|
const $639c124c22b6cbaa$export$27b710c08412a7ad = obj => {
|
|
7949
8295
|
return Object.fromEntries(Object.keys(obj).map(key => [key, obj[key]()]));
|
|
7950
8296
|
};
|
|
7951
|
-
const $6ae613870d3380fc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="orig price"
|
|
7952
|
-
$6ae613870d3380fc$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
7953
|
-
$6ae613870d3380fc$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8297
|
+
const $6ae613870d3380fc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="orig price"><!$><!/><!$><!/><!$><!/>`),
|
|
8298
|
+
$6ae613870d3380fc$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.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><!$><!/><!$><!/><!$><!/>`),
|
|
8299
|
+
$6ae613870d3380fc$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=tagline>`);
|
|
7954
8300
|
const $6ae613870d3380fc$export$b05c0ae390cf3e06 = (display_or_variant_container, {
|
|
7955
8301
|
i18n: i18n
|
|
7956
8302
|
}, router_) => {
|
|
@@ -8073,7 +8419,7 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
8073
8419
|
})();
|
|
8074
8420
|
};
|
|
8075
8421
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
8076
|
-
const $6ae556e536054e87$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8422
|
+
const $6ae556e536054e87$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results>`);
|
|
8077
8423
|
function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
8078
8424
|
depict_api_: depict_api_,
|
|
8079
8425
|
search_field_value_: [get_search_field_value],
|
|
@@ -8166,8 +8512,8 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
|
8166
8512
|
return _el$;
|
|
8167
8513
|
})();
|
|
8168
8514
|
}
|
|
8169
|
-
const $7b98f0cf558884f7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=
|
|
8170
|
-
$7b98f0cf558884f7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=
|
|
8515
|
+
const $7b98f0cf558884f7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;>`),
|
|
8516
|
+
$7b98f0cf558884f7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div style=position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;>`);
|
|
8171
8517
|
function $7b98f0cf558884f7$export$50b90be27d8502d9(el, [get_style_props, set_style_props], bottom_distance) {
|
|
8172
8518
|
const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
|
|
8173
8519
|
const upper_overflowing_box = $gVhhF$solidjsweb.getNextElement($7b98f0cf558884f7$var$_tmpl$);
|
|
@@ -8215,12 +8561,12 @@ function $496cde876b53ce1e$export$91c3b6774e8be0f5({
|
|
|
8215
8561
|
return u_o.href;
|
|
8216
8562
|
});
|
|
8217
8563
|
}
|
|
8218
|
-
const $9e30168c4b1661d2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
8564
|
+
const $9e30168c4b1661d2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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>`);
|
|
8219
8565
|
function $9e30168c4b1661d2$export$5d2caaa6b530761c() {
|
|
8220
8566
|
return $gVhhF$solidjsweb.getNextElement($9e30168c4b1661d2$var$_tmpl$);
|
|
8221
8567
|
}
|
|
8222
|
-
const $9a268bf73b31a717$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8223
|
-
$9a268bf73b31a717$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
8568
|
+
const $9a268bf73b31a717$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=previous-searches><h2 class=text></h2><div class=list>`),
|
|
8569
|
+
$9a268bf73b31a717$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=item><div class=left><!$><!/><span class=line-clamp></span></div><button class=delete>`);
|
|
8224
8570
|
function $9a268bf73b31a717$export$a146ac6fa8346a25({
|
|
8225
8571
|
text_: text_,
|
|
8226
8572
|
previous_searches_: previous_searches_,
|
|
@@ -8323,8 +8669,8 @@ function $9a268bf73b31a717$export$a146ac6fa8346a25({
|
|
|
8323
8669
|
}
|
|
8324
8670
|
});
|
|
8325
8671
|
}
|
|
8326
|
-
const $d023ed916c84e75d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
8327
|
-
$d023ed916c84e75d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span
|
|
8672
|
+
const $d023ed916c84e75d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=highlighted-part>`),
|
|
8673
|
+
$d023ed916c84e75d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span>`);
|
|
8328
8674
|
function $d023ed916c84e75d$export$ba17c5b7e6dda39f({
|
|
8329
8675
|
whole_text_to_display_: whole_text_to_display_memo,
|
|
8330
8676
|
searching_for_value_: searching_for_value_memo,
|
|
@@ -8395,7 +8741,7 @@ function $d023ed916c84e75d$export$ba17c5b7e6dda39f({
|
|
|
8395
8741
|
return _el$2;
|
|
8396
8742
|
})();
|
|
8397
8743
|
}
|
|
8398
|
-
const $c0125412b4ea0c93$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=
|
|
8744
|
+
const $c0125412b4ea0c93$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.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">`);
|
|
8399
8745
|
function $c0125412b4ea0c93$export$605674723bcc715c(props = {}) {
|
|
8400
8746
|
return (() => {
|
|
8401
8747
|
const _el$ = $gVhhF$solidjsweb.getNextElement($c0125412b4ea0c93$var$_tmpl$);
|
|
@@ -8404,15 +8750,15 @@ function $c0125412b4ea0c93$export$605674723bcc715c(props = {}) {
|
|
|
8404
8750
|
return _el$;
|
|
8405
8751
|
})();
|
|
8406
8752
|
}
|
|
8407
|
-
const $6b65ba8af12c5a26$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=
|
|
8408
|
-
$6b65ba8af12c5a26$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8409
|
-
$6b65ba8af12c5a26$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
8410
|
-
$6b65ba8af12c5a26$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8411
|
-
$6b65ba8af12c5a26$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8412
|
-
$6b65ba8af12c5a26$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<h2 class=
|
|
8413
|
-
$6b65ba8af12c5a26$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="suggestion-container query"
|
|
8414
|
-
$6b65ba8af12c5a26$var$_tmpl$8 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="suggestion-container page"
|
|
8415
|
-
$6b65ba8af12c5a26$var$_tmpl$9 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
8753
|
+
const $6b65ba8af12c5a26$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=suggestion>`),
|
|
8754
|
+
$6b65ba8af12c5a26$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-icon>`),
|
|
8755
|
+
$6b65ba8af12c5a26$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=type>`),
|
|
8756
|
+
$6b65ba8af12c5a26$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=with-parent-title><!$><!/><span class="value line-clamp">`),
|
|
8757
|
+
$6b65ba8af12c5a26$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=with-icon><!$><!/><!$><!/>`),
|
|
8758
|
+
$6b65ba8af12c5a26$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<h2 class=text>`),
|
|
8759
|
+
$6b65ba8af12c5a26$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="suggestion-container query"><!$><!/><!$><!/>`),
|
|
8760
|
+
$6b65ba8af12c5a26$var$_tmpl$8 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="suggestion-container page">`),
|
|
8761
|
+
$6b65ba8af12c5a26$var$_tmpl$9 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=suggestions><!$><!/><!$><!/><!$><!/>`);
|
|
8416
8762
|
function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
8417
8763
|
suggestion_memo_: suggestion_memo_,
|
|
8418
8764
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -8670,7 +9016,7 @@ function $6b65ba8af12c5a26$export$e872e2339fb04a7f({
|
|
|
8670
9016
|
}
|
|
8671
9017
|
});
|
|
8672
9018
|
}
|
|
8673
|
-
const $b8700779b3e745de$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a target=
|
|
9019
|
+
const $b8700779b3e745de$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a target=_blank>`);
|
|
8674
9020
|
function $b8700779b3e745de$export$1efe1013da60d0e4(e, href) {
|
|
8675
9021
|
if (e.metaKey || e.ctrlKey) {
|
|
8676
9022
|
// Open link in a new tab with cmd/ctrl + enter.
|
|
@@ -9052,7 +9398,7 @@ const $2be658935c4043a9$export$af8311b651139246 = css_properties => {
|
|
|
9052
9398
|
const $2be658935c4043a9$export$1233ca167bf71f9a = styles => {
|
|
9053
9399
|
return Object.entries(styles).map(([selector, css_properties]) => `${selector} { ${$2be658935c4043a9$export$af8311b651139246(css_properties)} }`).join(" ");
|
|
9054
9400
|
};
|
|
9055
|
-
const $b776f25acdda22eb$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style
|
|
9401
|
+
const $b776f25acdda22eb$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<style>`);
|
|
9056
9402
|
function $b776f25acdda22eb$export$f021bdedd3ec901a(props) {
|
|
9057
9403
|
const valid_css_string = $gVhhF$solidjs.createMemo(() => {
|
|
9058
9404
|
return $2be658935c4043a9$export$1233ca167bf71f9a(props.styles());
|
|
@@ -9063,10 +9409,10 @@ function $b776f25acdda22eb$export$f021bdedd3ec901a(props) {
|
|
|
9063
9409
|
return _el$;
|
|
9064
9410
|
})();
|
|
9065
9411
|
}
|
|
9066
|
-
const $f40a47a30a358305$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9067
|
-
$f40a47a30a358305$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b
|
|
9068
|
-
$f40a47a30a358305$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9069
|
-
$f40a47a30a358305$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=
|
|
9412
|
+
const $f40a47a30a358305$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
9413
|
+
$f40a47a30a358305$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
9414
|
+
$f40a47a30a358305$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
9415
|
+
$f40a47a30a358305$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
9070
9416
|
function $f40a47a30a358305$export$1c593cbd6f1e10bc({
|
|
9071
9417
|
search_field_value_: props_search_field_value,
|
|
9072
9418
|
get_search_query_: get_search_query_,
|
|
@@ -9318,8 +9664,8 @@ function $f40a47a30a358305$var$close_modal_when_navigating_away(close_modal, sea
|
|
|
9318
9664
|
})();
|
|
9319
9665
|
}
|
|
9320
9666
|
$gVhhF$solidjsweb.delegateEvents(["click"]);
|
|
9321
|
-
const $04048c1bef16c249$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9322
|
-
$04048c1bef16c249$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9667
|
+
const $04048c1bef16c249$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-suggestions>`),
|
|
9668
|
+
$04048c1bef16c249$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=category-suggestion>`);
|
|
9323
9669
|
function $04048c1bef16c249$export$c05a196222ba1302({
|
|
9324
9670
|
suggestions_: suggestions_,
|
|
9325
9671
|
children: children
|
|
@@ -9363,8 +9709,8 @@ function $04048c1bef16c249$export$c05a196222ba1302({
|
|
|
9363
9709
|
}
|
|
9364
9710
|
});
|
|
9365
9711
|
}
|
|
9366
|
-
const $65a0c4b1c2eb5d0b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b
|
|
9367
|
-
$65a0c4b1c2eb5d0b$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9712
|
+
const $65a0c4b1c2eb5d0b$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
9713
|
+
$65a0c4b1c2eb5d0b$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=results-for>`);
|
|
9368
9714
|
function $65a0c4b1c2eb5d0b$export$9dd50d35b9d94fdf({
|
|
9369
9715
|
get_search_query_: get_search_query_,
|
|
9370
9716
|
i18n_: i18n_,
|
|
@@ -9413,7 +9759,7 @@ function $2005eec80e40088f$export$41b4894022a3580f({
|
|
|
9413
9759
|
})));
|
|
9414
9760
|
return style_props_;
|
|
9415
9761
|
}
|
|
9416
|
-
const $5ea5a82e398f6f44$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=
|
|
9762
|
+
const $5ea5a82e398f6f44$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class=highlighted-part>`);
|
|
9417
9763
|
const $5ea5a82e398f6f44$var$dont_cut_in_between_less_than_characters = 30;
|
|
9418
9764
|
function $5ea5a82e398f6f44$export$e1a98a189fd2c0e7({
|
|
9419
9765
|
content_result_: content_result_,
|
|
@@ -9633,10 +9979,10 @@ function $5ea5a82e398f6f44$var$segment_text(text, matched_strings) {
|
|
|
9633
9979
|
}
|
|
9634
9980
|
return output;
|
|
9635
9981
|
}
|
|
9636
|
-
const $76227de40be817e5$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a
|
|
9637
|
-
$76227de40be817e5$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
9638
|
-
$76227de40be817e5$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="description line-clamp"
|
|
9639
|
-
$76227de40be817e5$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9982
|
+
const $76227de40be817e5$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a>`),
|
|
9983
|
+
$76227de40be817e5$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
9984
|
+
$76227de40be817e5$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="description line-clamp">`),
|
|
9985
|
+
$76227de40be817e5$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=content-card><div class=image></div><div class=info><!$><!/><!$><!/>`);
|
|
9640
9986
|
function $76227de40be817e5$export$f631859cab12b342({
|
|
9641
9987
|
router_: router_,
|
|
9642
9988
|
content_result_: content_result_
|
|
@@ -9789,9 +10135,9 @@ function $c2f92eb265a14529$export$4405d077f0a20494({
|
|
|
9789
10135
|
children: () => $gVhhF$solidjsweb.createComponent((0, $76227de40be817e5$export$f631859cab12b342), {})
|
|
9790
10136
|
});
|
|
9791
10137
|
}
|
|
9792
|
-
const $3716b8caf7f959e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9793
|
-
$3716b8caf7f959e2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=
|
|
9794
|
-
$3716b8caf7f959e2$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=
|
|
10138
|
+
const $3716b8caf7f959e2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=content-results><!$><!/><!$><!/>`),
|
|
10139
|
+
$3716b8caf7f959e2$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=view-more>`),
|
|
10140
|
+
$3716b8caf7f959e2$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=view-less>`);
|
|
9795
10141
|
const $3716b8caf7f959e2$export$70ceae36059a1036 = 1;
|
|
9796
10142
|
function $3716b8caf7f959e2$export$6d0c9c22f6652669({
|
|
9797
10143
|
search_results_: search_results_,
|
|
@@ -9861,7 +10207,7 @@ function $3716b8caf7f959e2$export$6d0c9c22f6652669({
|
|
|
9861
10207
|
});
|
|
9862
10208
|
}
|
|
9863
10209
|
})), _el$5, _co$2);
|
|
9864
|
-
$gVhhF$solidjsweb.effect(() => _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || content_results()?.length > 0 ? "" : "none"));
|
|
10210
|
+
$gVhhF$solidjsweb.effect(() => (is_loading_() && placeholders_enabled() || content_results()?.length, _el$.style.setProperty("display", is_loading_() && placeholders_enabled() || content_results()?.length > 0 ? "" : "none")));
|
|
9865
10211
|
return _el$;
|
|
9866
10212
|
})();
|
|
9867
10213
|
}
|
|
@@ -9893,8 +10239,8 @@ function $3716b8caf7f959e2$var$make_state_saved_rows(
|
|
|
9893
10239
|
}));
|
|
9894
10240
|
return rows;
|
|
9895
10241
|
}
|
|
9896
|
-
const $f1d7cb69f839a526$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=
|
|
9897
|
-
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=
|
|
10242
|
+
const $f1d7cb69f839a526$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
10243
|
+
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
9898
10244
|
function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
9899
10245
|
depict_api_: depict_api_,
|
|
9900
10246
|
search_field_value_: search_field_value_,
|
|
@@ -9927,7 +10273,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
9927
10273
|
router_: router_,
|
|
9928
10274
|
content_results_rows_: content_results_rows_,
|
|
9929
10275
|
content_layout_options_: content_layout_options_,
|
|
9930
|
-
content_search_enabled_: content_search_enabled_
|
|
10276
|
+
content_search_enabled_: content_search_enabled_,
|
|
10277
|
+
content_blocks_by_row_: content_blocks_by_row_
|
|
9931
10278
|
}) {
|
|
9932
10279
|
const [get_sorting] = current_sorting_;
|
|
9933
10280
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -10206,6 +10553,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10206
10553
|
layout_options_: layout_options_,
|
|
10207
10554
|
sort_or_filter_open_: sort_or_filter_open_,
|
|
10208
10555
|
id_currently_querying_for_: get_search_query_,
|
|
10556
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
10209
10557
|
no_results_options_: {
|
|
10210
10558
|
selected_filters_: selected_filters_,
|
|
10211
10559
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -10319,7 +10667,7 @@ function $ab7c6c7911bae2f5$export$ff7109b9b2b206ba(sdk_cols_at_size, min_width_f
|
|
|
10319
10667
|
sorted_sizes.unshift([1, min_width_for_more_than_one_column]);
|
|
10320
10668
|
return sorted_sizes.map(([cols, max_width]) => max_width == Infinity ? [cols] : [cols, max_width]);
|
|
10321
10669
|
}
|
|
10322
|
-
const $2c61e4cd8229c49a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"
|
|
10670
|
+
const $2c61e4cd8229c49a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search">`);
|
|
10323
10671
|
// We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
|
|
10324
10672
|
/**
|
|
10325
10673
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions.
|
|
@@ -10651,6 +10999,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
10651
10999
|
search_sorting_open_: state_.sorting_open,
|
|
10652
11000
|
expanded_filters_: state_.expanded_filters,
|
|
10653
11001
|
content_results_rows_: state_.content_results_rows,
|
|
11002
|
+
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
10654
11003
|
router_: shared_properties.router_,
|
|
10655
11004
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
10656
11005
|
return $dae23104ba8bb78c$export$d757d54550ebfb3d({
|