@depict-ai/ui 0.0.49 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/main.js +105 -51
- package/dist/module.js +106 -52
- package/dist/typescript_schema/BaseSearchRequest.d.ts +197 -0
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +14 -0
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +10 -0
- package/dist/typescript_schema/ProductListingRequest.d.ts +221 -0
- package/dist/typescript_schema/ProductListingResponse.d.ts +232 -0
- package/dist/typescript_schema/RecommendResponse.d.ts +15 -0
- package/dist/typescript_schema/SearchRequest.d.ts +213 -0
- package/dist/typescript_schema/SearchResponse.d.ts +192 -0
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +18 -0
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +182 -0
- package/dist/typescript_schema/TrackV2Request.d.ts +115 -0
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -32,7 +32,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
32
32
|
$parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
|
|
33
33
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
34
34
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
35
|
-
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
35
|
+
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.51";
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -316,7 +316,7 @@ function $5fc9fc23df1591db$export$469c7af753d08925({ price_: price_ , price_form
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
|
|
319
|
-
const $08fa9d20f7ec85af$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!> <b></b></span></div>`, 11);
|
|
319
|
+
const $08fa9d20f7ec85af$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!> <b></b></span></div>`, 11);
|
|
320
320
|
function $08fa9d20f7ec85af$export$83fd5de5504a7a67({ formatted_number_of_results_: formatted_number_of_results_ , first_result_in_viewport_: [get_first_result_in_viewport] , last_result_in_viewport_: [get_last_result_in_viewport] , number_of_results_: number_of_results_ , i18n_: { price_formatting_: price_formatting_ , of_: of_ } }) {
|
|
321
321
|
const [first_to_show, set_first_to_show] = (0, $46MJV$solidjs.createSignal)(0);
|
|
322
322
|
const [last_to_show, set_last_to_show] = (0, $46MJV$solidjs.createSignal)(0);
|
|
@@ -589,9 +589,9 @@ async function $6154d0a3d9e9b16e$var$load_more({ depict_api_: depict_api_ , quer
|
|
|
589
589
|
|
|
590
590
|
|
|
591
591
|
|
|
592
|
-
const $b3e6a0e9382bf87e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
592
|
+
const $b3e6a0e9382bf87e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
593
593
|
const $b3e6a0e9382bf87e$var$closing_functions = /*@__PURE__*/ new Set();
|
|
594
|
-
const $b3e6a0e9382bf87e$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjs.createSignal)(false);
|
|
594
|
+
const $b3e6a0e9382bf87e$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjs.createSignal)(false);
|
|
595
595
|
function $b3e6a0e9382bf87e$export$5196e4c01fa56fcb({ children: children , on_close_: on_close_ , close_after_: close_after_ , ...more_attributes }) {
|
|
596
596
|
let close_toast_;
|
|
597
597
|
const stay_open_promise = new Promise((r)=>close_toast_ = r);
|
|
@@ -695,7 +695,7 @@ function $b3e6a0e9382bf87e$export$5196e4c01fa56fcb({ children: children , on_clo
|
|
|
695
695
|
|
|
696
696
|
|
|
697
697
|
|
|
698
|
-
const $92e4e7906daa1ff8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="statement"></div>`, 2), $92e4e7906daa1ff8$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
|
|
698
|
+
const $92e4e7906daa1ff8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="statement"></div>`, 2), $92e4e7906daa1ff8$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
|
|
699
699
|
function $92e4e7906daa1ff8$export$8895d39404bd2bb1(props) {
|
|
700
700
|
let previous_sorting;
|
|
701
701
|
let on_toast_hidden;
|
|
@@ -773,7 +773,7 @@ function $92e4e7906daa1ff8$export$8895d39404bd2bb1(props) {
|
|
|
773
773
|
|
|
774
774
|
|
|
775
775
|
|
|
776
|
-
const $2b4e3538e183d885$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="hint" href="javascript:void(0)"></a>`, 2), $2b4e3538e183d885$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="no-results"><div class="text"></div></div>`, 4);
|
|
776
|
+
const $2b4e3538e183d885$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="hint" href="javascript:void(0)"></a>`, 2), $2b4e3538e183d885$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="no-results"><div class="text"></div></div>`, 4);
|
|
777
777
|
function $2b4e3538e183d885$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
|
|
778
778
|
return [
|
|
779
779
|
(()=>{
|
|
@@ -816,7 +816,7 @@ function $8e863dc22b06b688$export$a2cc176055f8f08() {
|
|
|
816
816
|
}
|
|
817
817
|
|
|
818
818
|
|
|
819
|
-
const $8d94abc871e13baf$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="PLP-results"></div>`, 2), $8d94abc871e13baf$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="cards"></div>`, 2);
|
|
819
|
+
const $8d94abc871e13baf$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="PLP-results"></div>`, 2), $8d94abc871e13baf$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="cards"></div>`, 2);
|
|
820
820
|
let $8d94abc871e13baf$var$cached_placeholder_element;
|
|
821
821
|
function $8d94abc871e13baf$export$3925f87b1545cfc6({ plp_results_: plp_results_ , depict_api_: depict_api_ , all_products_loaded_: all_products_loaded_ , min_products_to_fetch_: min_products_to_fetch_ , query_base_: query_base_ , first_result_in_viewport_: first_result_in_viewport_ , last_result_in_viewport_: last_result_in_viewport_ , scroll_restoration_data_: scroll_restoration_data_ , no_results_options_: no_results_options_ , desktop_filter_elements_: desktop_filter_elements_ , sort_or_filter_open_: sort_or_filter_open_ , rr_options_: rr_options_ , layout_options_: layout_options_ , tenant_object_: tenant_object_ , type_for_tracking_: type_for_tracking_ , id_currently_querying_for_: id_currently_querying_for_ }) {
|
|
822
822
|
// 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
|
|
@@ -1145,7 +1145,7 @@ function $557269f7f9c4f20e$export$e13dddbb31c3a42f() {
|
|
|
1145
1145
|
|
|
1146
1146
|
|
|
1147
1147
|
|
|
1148
|
-
const $e0eca8b257376d22$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
1148
|
+
const $e0eca8b257376d22$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
1149
1149
|
function $e0eca8b257376d22$export$6649caad96ef8870({ children: children , button_: button_ , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
|
|
1150
1150
|
const slider = new (0, $46MJV$depictaiutilishared.Amazing_Slider)({
|
|
1151
1151
|
button_contents: {
|
|
@@ -1183,7 +1183,7 @@ function $e0eca8b257376d22$export$6649caad96ef8870({ children: children , button
|
|
|
1183
1183
|
|
|
1184
1184
|
|
|
1185
1185
|
|
|
1186
|
-
const $c130252ae1aed6e2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-all-filters minor"></button>`, 2), $c130252ae1aed6e2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="inner"><span class="title">: </span></div>`, 4), $c130252ae1aed6e2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-filter major"><span> – </span></button>`, 4), $c130252ae1aed6e2$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-filter major"><span></span></button>`, 4);
|
|
1186
|
+
const $c130252ae1aed6e2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-all-filters minor"></button>`, 2), $c130252ae1aed6e2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="inner"><span class="title">: </span></div>`, 4), $c130252ae1aed6e2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-filter major"><span> – </span></button>`, 4), $c130252ae1aed6e2$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-filter major"><span></span></button>`, 4);
|
|
1187
1187
|
function $c130252ae1aed6e2$export$fecbb157621501bd({ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: [read_local_filter_cache] , search_filters_open_: [read_search_filters_open] , search_sorting_open_: [read_search_sorting_open] , slider_arrow_button_: slider_arrow_button_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
|
|
1188
1188
|
const { price_formatting_: price_formatting_ } = i18n_;
|
|
1189
1189
|
const [read_selected_filters, write_selected_filters] = selected_filters_;
|
|
@@ -1526,7 +1526,7 @@ async function $089c01924e13fae5$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
1526
1526
|
|
|
1527
1527
|
|
|
1528
1528
|
|
|
1529
|
-
const $009b5e9a48f61fee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="count"></span>`, 2), $009b5e9a48f61fee$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text"></span></div></label>`, 9);
|
|
1529
|
+
const $009b5e9a48f61fee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="count"></span>`, 2), $009b5e9a48f61fee$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text"></span></div></label>`, 9);
|
|
1530
1530
|
const $009b5e9a48f61fee$export$48513f6b9f8ce62d = (props)=>{
|
|
1531
1531
|
// 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
|
|
1532
1532
|
const count = (0, $46MJV$solidjs.createMemo)(()=>props.count_);
|
|
@@ -1586,7 +1586,7 @@ const $009b5e9a48f61fee$export$48513f6b9f8ce62d = (props)=>{
|
|
|
1586
1586
|
|
|
1587
1587
|
|
|
1588
1588
|
|
|
1589
|
-
const $76bb4acbbb94c2c6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button type="button" class="expand-filter"><span></span></button>`, 4);
|
|
1589
|
+
const $76bb4acbbb94c2c6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button type="button" class="expand-filter"><span></span></button>`, 4);
|
|
1590
1590
|
function $76bb4acbbb94c2c6$export$ca21a16d65b3dd8({ show_extras_: [get_show_extras, set_show_extras] , i18n_: i18n_ }) {
|
|
1591
1591
|
return (()=>{
|
|
1592
1592
|
const _el$ = $76bb4acbbb94c2c6$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild;
|
|
@@ -1605,7 +1605,7 @@ function $76bb4acbbb94c2c6$export$ca21a16d65b3dd8({ show_extras_: [get_show_extr
|
|
|
1605
1605
|
]);
|
|
1606
1606
|
|
|
1607
1607
|
|
|
1608
|
-
const $8984a0a949b1c852$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkboxes"></form>`, 2);
|
|
1608
|
+
const $8984a0a949b1c852$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkboxes"></form>`, 2);
|
|
1609
1609
|
const $8984a0a949b1c852$var$max_visible_without_collapsing = 7;
|
|
1610
1610
|
const $8984a0a949b1c852$var$show_non_collapsible_when_collapsed = 4;
|
|
1611
1611
|
function $8984a0a949b1c852$export$dd948f91abc3a1c4({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] , i18n_: i18n_ , view_more_button_below_group_: [_get_view_more_button_below_group_, set_view_more_button_below_group_] }) {
|
|
@@ -1720,7 +1720,7 @@ function $8984a0a949b1c852$export$dd948f91abc3a1c4({ filter_: filter_ , selected
|
|
|
1720
1720
|
|
|
1721
1721
|
|
|
1722
1722
|
|
|
1723
|
-
const $336616ec8a612a1c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="radios"></form>`, 2), $336616ec8a612a1c$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="count"></span>`, 2), $336616ec8a612a1c$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span></div></label>`, 7);
|
|
1723
|
+
const $336616ec8a612a1c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="radios"></form>`, 2), $336616ec8a612a1c$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="count"></span>`, 2), $336616ec8a612a1c$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span></div></label>`, 7);
|
|
1724
1724
|
function $336616ec8a612a1c$export$430444115f70a734({ selected_filters_: selected_filters_ , filter_: filter_ }) {
|
|
1725
1725
|
const radio_name = (0, $46MJV$depictaiutilishared.make_random_classname)();
|
|
1726
1726
|
const existing_filter = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
@@ -1799,7 +1799,7 @@ function $336616ec8a612a1c$export$430444115f70a734({ selected_filters_: selected
|
|
|
1799
1799
|
|
|
1800
1800
|
|
|
1801
1801
|
|
|
1802
|
-
const $6833018d8bbbb2ad$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$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"></span></div></div>`, 18), $6833018d8bbbb2ad$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="slider"><div class="progress"></div></div>`, 4), $6833018d8bbbb2ad$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
|
|
1802
|
+
const $6833018d8bbbb2ad$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$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"></span></div></div>`, 18), $6833018d8bbbb2ad$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="slider"><div class="progress"></div></div>`, 4), $6833018d8bbbb2ad$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
|
|
1803
1803
|
function $6833018d8bbbb2ad$export$e0d834a0ad870cda({ filter_: filter_ , selected_filters_: selected_filters_ , i18n_: i18n_ }) {
|
|
1804
1804
|
const current_range = (0, $46MJV$solidjs.createSignal)((0, $46MJV$solidjs.untrack)(()=>filter_().data));
|
|
1805
1805
|
const selected_filter = (0, $46MJV$solidjs.createMemo)(()=>selected_filters_[0]().find(({ field: checking_field , op: checking_op })=>checking_field === filter_().field && checking_op === filter_().op));
|
|
@@ -2077,7 +2077,7 @@ function $6833018d8bbbb2ad$var$set_range_with_sanitation(min_, max_, current_ran
|
|
|
2077
2077
|
|
|
2078
2078
|
|
|
2079
2079
|
|
|
2080
|
-
const $f51f11e16b8dd872$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
|
|
2080
|
+
const $f51f11e16b8dd872$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
|
|
2081
2081
|
function $f51f11e16b8dd872$export$e5c2828934226505({ expanded_: expanded_ , i18n_: i18n_ }) {
|
|
2082
2082
|
let first_span;
|
|
2083
2083
|
let second_span;
|
|
@@ -2127,7 +2127,7 @@ function $f51f11e16b8dd872$export$e5c2828934226505({ expanded_: expanded_ , i18n
|
|
|
2127
2127
|
|
|
2128
2128
|
|
|
2129
2129
|
|
|
2130
|
-
const $b7574d1d3a67ed68$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkboxes hierarchical"></form>`, 2), $b7574d1d3a67ed68$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="checkbox-details"></div>`, 2), $b7574d1d3a67ed68$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details></details>`, 2), $b7574d1d3a67ed68$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="category-parent"><div class="summary"><span class="count"></span></div></summary>`, 6);
|
|
2130
|
+
const $b7574d1d3a67ed68$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkboxes hierarchical"></form>`, 2), $b7574d1d3a67ed68$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="checkbox-details"></div>`, 2), $b7574d1d3a67ed68$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<details></details>`, 2), $b7574d1d3a67ed68$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="category-parent"><div class="summary"><span class="count"></span></div></summary>`, 6);
|
|
2131
2131
|
const $b7574d1d3a67ed68$var$max_visible_without_collapsing = 7;
|
|
2132
2132
|
const $b7574d1d3a67ed68$var$show_non_collapsible_when_collapsed = 4;
|
|
2133
2133
|
function $b7574d1d3a67ed68$export$a32086fa6616eafd({ filter_: filter_ , selected_filters_: selected_filters_ , i18n_: i18n_ , view_more_button_below_group_: view_more_button_below_group_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
|
|
@@ -2509,7 +2509,7 @@ function $b7574d1d3a67ed68$var$expand_until_choice(data_structure) {
|
|
|
2509
2509
|
|
|
2510
2510
|
|
|
2511
2511
|
|
|
2512
|
-
const $9055073b45860dd6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="checkbox-grid"></div>`, 2), $9055073b45860dd6$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="major-minor-transition"></button>`, 2);
|
|
2512
|
+
const $9055073b45860dd6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="checkbox-grid"></div>`, 2), $9055073b45860dd6$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="major-minor-transition"></button>`, 2);
|
|
2513
2513
|
const $9055073b45860dd6$export$414f6a19d38e655c = ({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] })=>{
|
|
2514
2514
|
const existing_filter = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
2515
2515
|
const { field: field , op: op } = filter_();
|
|
@@ -2596,7 +2596,7 @@ const $9055073b45860dd6$export$414f6a19d38e655c = ({ filter_: filter_ , selected
|
|
|
2596
2596
|
|
|
2597
2597
|
|
|
2598
2598
|
|
|
2599
|
-
const $cd6cdf2099e918a4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkbox-color"></form>`, 2);
|
|
2599
|
+
const $cd6cdf2099e918a4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkbox-color"></form>`, 2);
|
|
2600
2600
|
const $cd6cdf2099e918a4$var$max_visible_without_collapsing = 14;
|
|
2601
2601
|
const $cd6cdf2099e918a4$var$show_non_collapsible_when_collapsed = 8;
|
|
2602
2602
|
function $cd6cdf2099e918a4$export$82ed4b28ecb67608({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] , i18n_: i18n_ , view_more_button_below_group_: [_get_view_more_button_below_group_, set_view_more_button_below_group_] }) {
|
|
@@ -2932,7 +2932,7 @@ function $0bc45cf6753f874a$export$b288c38ae3fddb56({ available_filters_: availab
|
|
|
2932
2932
|
|
|
2933
2933
|
|
|
2934
2934
|
|
|
2935
|
-
const $8578879ddb04f368$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="show-selected" aria-hidden="true"><span></span></span>`, 4);
|
|
2935
|
+
const $8578879ddb04f368$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="show-selected" aria-hidden="true"><span></span></span>`, 4);
|
|
2936
2936
|
function $8578879ddb04f368$export$53c59af873b303c9({ selected_filters_in_group_: selected_filters_in_group_ , i18n_: { price_formatting_: price_formatting_ } }) {
|
|
2937
2937
|
const [show_tick_icon, set_show_tick_icon] = (0, $46MJV$solidjs.createSignal)(false);
|
|
2938
2938
|
return (()=>{
|
|
@@ -3044,7 +3044,7 @@ function $5804fd6cbfb7160f$export$ab34afce88557c0e(props) {
|
|
|
3044
3044
|
|
|
3045
3045
|
|
|
3046
3046
|
|
|
3047
|
-
const $0f2f58dd60b11888$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
3047
|
+
const $0f2f58dd60b11888$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
3048
3048
|
function $0f2f58dd60b11888$export$b69d0d92862de18b(props) {
|
|
3049
3049
|
return (0, $46MJV$solidjs.ErrorBoundary)({
|
|
3050
3050
|
fallback (err) {
|
|
@@ -3067,7 +3067,7 @@ function $0f2f58dd60b11888$export$b69d0d92862de18b(props) {
|
|
|
3067
3067
|
|
|
3068
3068
|
|
|
3069
3069
|
|
|
3070
|
-
const $1587765bd31f3722$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-collapsible"></div>`, 2), $1587765bd31f3722$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-group"><span></span></button>`, 4), $1587765bd31f3722$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="view-more-clear"></div>`, 2), $1587765bd31f3722$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-collapsible-body"><div class="filter-part"></div></div>`, 4), $1587765bd31f3722$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="filter-collapsible"></details>`, 2), $1587765bd31f3722$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"></div></div></summary>`, 8), $1587765bd31f3722$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="ungrouped"></div>`, 2), $1587765bd31f3722$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-all-filters major"></button>`, 2);
|
|
3070
|
+
const $1587765bd31f3722$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-collapsible"></div>`, 2), $1587765bd31f3722$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-group"><span></span></button>`, 4), $1587765bd31f3722$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="view-more-clear"></div>`, 2), $1587765bd31f3722$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-collapsible-body"><div class="filter-part"></div></div>`, 4), $1587765bd31f3722$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="filter-collapsible"></details>`, 2), $1587765bd31f3722$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"></div></div></summary>`, 8), $1587765bd31f3722$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="ungrouped"></div>`, 2), $1587765bd31f3722$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-all-filters major"></button>`, 2);
|
|
3071
3071
|
function $1587765bd31f3722$export$3f1a388cc0d8fed7(props) {
|
|
3072
3072
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
3073
3073
|
return (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
|
|
@@ -3296,7 +3296,7 @@ function $1587765bd31f3722$var$ActualFilterBody(props) {
|
|
|
3296
3296
|
|
|
3297
3297
|
|
|
3298
3298
|
|
|
3299
|
-
const $cc8aaf130b1dc1ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting-attributes"></div>`, 2), $cc8aaf130b1dc1ea$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting-direction"></div>`, 2), $cc8aaf130b1dc1ea$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span></div></div>`, 7), $cc8aaf130b1dc1ea$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span></label></div>`, 7);
|
|
3299
|
+
const $cc8aaf130b1dc1ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting-attributes"></div>`, 2), $cc8aaf130b1dc1ea$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting-direction"></div>`, 2), $cc8aaf130b1dc1ea$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span></div></div>`, 7), $cc8aaf130b1dc1ea$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span></label></div>`, 7);
|
|
3300
3300
|
function $cc8aaf130b1dc1ea$export$1f1775a58da589b5({ available_sortings_: available_sortings_ , current_sorting_: current_sorting_ }) {
|
|
3301
3301
|
const title_radio_name = (0, $46MJV$depictaiutilishared.make_random_classname)();
|
|
3302
3302
|
const order_radio_name = (0, $46MJV$depictaiutilishared.make_random_classname)();
|
|
@@ -3444,7 +3444,7 @@ function $fa41c421eb980e23$export$fe334901e8bebd57() {
|
|
|
3444
3444
|
|
|
3445
3445
|
|
|
3446
3446
|
|
|
3447
|
-
const $66ddbcbc40487f95$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear minor"></button>`, 2), $66ddbcbc40487f95$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp 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"></button></div></div></div>`, 14), $66ddbcbc40487f95$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="sorting"></details>`, 2), $66ddbcbc40487f95$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><span></span></div></div></summary>`, 8), $66ddbcbc40487f95$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="body"></div>`, 2), $66ddbcbc40487f95$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="filters"></details>`, 2), $66ddbcbc40487f95$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2);
|
|
3447
|
+
const $66ddbcbc40487f95$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear minor"></button>`, 2), $66ddbcbc40487f95$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp 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"></button></div></div></div>`, 14), $66ddbcbc40487f95$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="sorting"></details>`, 2), $66ddbcbc40487f95$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><span></span></div></div></summary>`, 8), $66ddbcbc40487f95$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="body"></div>`, 2), $66ddbcbc40487f95$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="filters"></details>`, 2), $66ddbcbc40487f95$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2);
|
|
3448
3448
|
const $66ddbcbc40487f95$var$no_go_selector = ".range .range-group";
|
|
3449
3449
|
function $66ddbcbc40487f95$export$9bf11afa910f536e({ args_for_sorting_: args_for_sorting_ , args_for_filtering_: args_for_filtering_ , search_filters_open_: [get_search_filters_open, set_search_filters_open] , search_sorting_open_: [get_search_sorting_open, set_search_sorting_open] , dismiss_modal_: dismiss_modal_ , register_closing_animation_: register_closing_animation_ , formatted_number_of_results_: formatted_number_of_results_ , i18n_: i18n_ }) {
|
|
3450
3450
|
(0, $fa41c421eb980e23$export$fe334901e8bebd57)();
|
|
@@ -3715,7 +3715,7 @@ function $66ddbcbc40487f95$export$9bf11afa910f536e({ args_for_sorting_: args_for
|
|
|
3715
3715
|
|
|
3716
3716
|
|
|
3717
3717
|
|
|
3718
|
-
const $881cb1745bafff7a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filters"><div class="body"></div></div>`, 4), $881cb1745bafff7a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting"><div class="body"></div></div>`, 4), $881cb1745bafff7a$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"></div></div></div>`, 6), $881cb1745bafff7a$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="num-filters"></span>`, 2), $881cb1745bafff7a$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="open-filters-button-container"><button class="filter toggle-button major-minor-transition" type="button"><span></span></button></div>`, 6), $881cb1745bafff7a$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="toggle-button for-sorting major-minor-transition"><span></span></button>`, 4);
|
|
3718
|
+
const $881cb1745bafff7a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filters"><div class="body"></div></div>`, 4), $881cb1745bafff7a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting"><div class="body"></div></div>`, 4), $881cb1745bafff7a$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"></div></div></div>`, 6), $881cb1745bafff7a$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="num-filters"></span>`, 2), $881cb1745bafff7a$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="open-filters-button-container"><button class="filter toggle-button major-minor-transition" type="button"><span></span></button></div>`, 6), $881cb1745bafff7a$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="toggle-button for-sorting major-minor-transition"><span></span></button>`, 4);
|
|
3719
3719
|
function $881cb1745bafff7a$export$d7841e452f2e59a8({ current_sorting_: current_sorting_ , set_extra_els_in_results_container_: set_extra_els_in_results_container_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , set_sort_or_filter_open_: set_sort_or_filter_open_ , i18n_: i18n_ , available_sortings_: available_sortings_ , available_filters_: available_filters_ , expanded_filters_: expanded_filters_ , middle_elements_: middle_elements_ , input_modal_open_: input_modal_open_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , set_sort_and_filter_element_: set_sort_and_filter_element_ , formatted_number_of_results_: formatted_number_of_results_ , filter_button_width_: filter_button_width_ , sort_button_width_: sort_button_width_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , get_extra_filters_button_: get_extra_filters_button_ , get_extra_sorting_button_: get_extra_sorting_button_ }) {
|
|
3720
3720
|
return (0, $0f2f58dd60b11888$export$b69d0d92862de18b)({
|
|
3721
3721
|
severity_: "error",
|
|
@@ -3947,7 +3947,7 @@ function $881cb1745bafff7a$var$OpenSortingButton({ i18n_: i18n_ , current_sortin
|
|
|
3947
3947
|
|
|
3948
3948
|
|
|
3949
3949
|
|
|
3950
|
-
const $fd64465f894d1f29$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="floating-buttons"><button class="filter"><div></div></button><button class="sort"><div></div></button><button class="up"><div></div></button></div>`, 14);
|
|
3950
|
+
const $fd64465f894d1f29$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="floating-buttons"><button class="filter"><div></div></button><button class="sort"><div></div></button><button class="up"><div></div></button></div>`, 14);
|
|
3951
3951
|
function $fd64465f894d1f29$export$b23abd26de154ede(props) {
|
|
3952
3952
|
const [is_small, set_is_small] = (0, $46MJV$solidjs.createSignal)(true);
|
|
3953
3953
|
(0, $46MJV$solidjs.onCleanup)((0, $46MJV$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
|
|
@@ -4091,7 +4091,7 @@ function $fd64465f894d1f29$var$ActualFloatingButtons({ search_filters_open_: [ge
|
|
|
4091
4091
|
|
|
4092
4092
|
|
|
4093
4093
|
|
|
4094
|
-
const $495e9998757c5d32$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<nav class="crumbs"></nav>`, 2), $495e9998757c5d32$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="crumb"></a>`, 2), $495e9998757c5d32$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="separator"></span>`, 2);
|
|
4094
|
+
const $495e9998757c5d32$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<nav class="crumbs"></nav>`, 2), $495e9998757c5d32$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="crumb"></a>`, 2), $495e9998757c5d32$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="separator"></span>`, 2);
|
|
4095
4095
|
function $495e9998757c5d32$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , on_crumb_click_: on_crumb_click_ , i18n_: i18n_ }) {
|
|
4096
4096
|
const placeholder_crumb_data = [
|
|
4097
4097
|
,
|
|
@@ -4161,7 +4161,7 @@ function $495e9998757c5d32$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4161
4161
|
|
|
4162
4162
|
|
|
4163
4163
|
|
|
4164
|
-
const $cdc2c00c0a7da86e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<nav class="quicklinks"></nav>`, 2), $cdc2c00c0a7da86e$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div>QuickLinks failed</div>`, 2), $cdc2c00c0a7da86e$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="quicklink"></a>`, 2);
|
|
4164
|
+
const $cdc2c00c0a7da86e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<nav class="quicklinks"></nav>`, 2), $cdc2c00c0a7da86e$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div>QuickLinks failed</div>`, 2), $cdc2c00c0a7da86e$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="quicklink"></a>`, 2);
|
|
4165
4165
|
function $cdc2c00c0a7da86e$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , on_link_click_: on_link_click_ , current_query_id_: current_query_id_ , slider_arrow_button_: slider_arrow_button_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
|
|
4166
4166
|
let scrolling_logic_ran_for_query_id = false;
|
|
4167
4167
|
let last_scroll_position;
|
|
@@ -4471,7 +4471,7 @@ let $29b757e2ae26852c$export$44dad306455dddf;
|
|
|
4471
4471
|
})($29b757e2ae26852c$export$44dad306455dddf || ($29b757e2ae26852c$export$44dad306455dddf = {}));
|
|
4472
4472
|
|
|
4473
4473
|
|
|
4474
|
-
const $671632478f2a7ce7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="product-count"> </div>`, 2), $671632478f2a7ce7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2), $671632478f2a7ce7$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-results-for-one-row"></div>`, 2), $671632478f2a7ce7$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4474
|
+
const $671632478f2a7ce7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="product-count"> </div>`, 2), $671632478f2a7ce7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2), $671632478f2a7ce7$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-results-for-one-row"></div>`, 2), $671632478f2a7ce7$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4475
4475
|
function $671632478f2a7ce7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , slider_arrow_button_: slider_arrow_button_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , on_category_link_click_: on_category_link_click_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , rr_options_: rr_options_ , get_product_id_: get_product_id_ }) {
|
|
4476
4476
|
let results_for;
|
|
4477
4477
|
let only_show_filters_opener_;
|
|
@@ -4900,7 +4900,7 @@ function $f27b0b326e0a87e2$export$23fca46f3143581f(component, error_message) {
|
|
|
4900
4900
|
}
|
|
4901
4901
|
|
|
4902
4902
|
|
|
4903
|
-
const $068a627cc18f7bb6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"></div>`, 2);
|
|
4903
|
+
const $068a627cc18f7bb6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"></div>`, 2);
|
|
4904
4904
|
const $068a627cc18f7bb6$var$min_products_to_fetch_ = 20;
|
|
4905
4905
|
const $068a627cc18f7bb6$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4906
4906
|
const $068a627cc18f7bb6$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
@@ -5073,7 +5073,7 @@ function $068a627cc18f7bb6$var$get_shared_properties(depict_category) {
|
|
|
5073
5073
|
|
|
5074
5074
|
|
|
5075
5075
|
|
|
5076
|
-
const $853f821e60bd06ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-title"><h2 class="title"></h2><span class="explanation"> — </span></div>`, 6);
|
|
5076
|
+
const $853f821e60bd06ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-title"><h2 class="title"></h2><span class="explanation"> — </span></div>`, 6);
|
|
5077
5077
|
const $853f821e60bd06ea$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
5078
5078
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
5079
5079
|
return (()=>{
|
|
@@ -5095,7 +5095,7 @@ const $853f821e60bd06ea$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5095
5095
|
|
|
5096
5096
|
|
|
5097
5097
|
|
|
5098
|
-
const $1a89c0064ad43e0d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$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"></div></div></div>`, 6);
|
|
5098
|
+
const $1a89c0064ad43e0d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$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"></div></div></div>`, 6);
|
|
5099
5099
|
const $1a89c0064ad43e0d$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
5100
5100
|
const actual_function = ({ make_product_count_: make_product_count_ , set_observed_results_filters_elements_: set_observed_results_filters_elements_ , is_slim_: is_slim_ , sort_and_filter_element_: sort_and_filter_element_ , extra_sort_and_filter_args_: extra_sort_and_filter_args_ })=>{
|
|
5101
5101
|
// this does two things: make the sorting and filters button the same width and move the number of products out of the SortAndFilter middle_elements_ if it doesn't fit
|
|
@@ -5256,7 +5256,7 @@ async function $bfd8f91b5a75050a$var$download_categories(tenant, market) {
|
|
|
5256
5256
|
|
|
5257
5257
|
|
|
5258
5258
|
|
|
5259
|
-
const $17c49340edfdbb31$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$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);
|
|
5259
|
+
const $17c49340edfdbb31$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$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);
|
|
5260
5260
|
function $17c49340edfdbb31$export$ee1733d9a8495996() {
|
|
5261
5261
|
return (()=>{
|
|
5262
5262
|
const _el$ = $17c49340edfdbb31$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
|
|
@@ -5281,7 +5281,7 @@ function $17c49340edfdbb31$export$ee1733d9a8495996() {
|
|
|
5281
5281
|
|
|
5282
5282
|
|
|
5283
5283
|
|
|
5284
|
-
const $67892c03cd3dfa66$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="parent-title"></span>`, 2), $67892c03cd3dfa66$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="category-suggestion"><span class="title"></span></a>`, 4);
|
|
5284
|
+
const $67892c03cd3dfa66$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="parent-title"></span>`, 2), $67892c03cd3dfa66$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="category-suggestion"><span class="title"></span></a>`, 4);
|
|
5285
5285
|
function $67892c03cd3dfa66$export$d757d54550ebfb3d({ category_suggestion_: category_suggestion_ , on_navigation_: on_navigation_ }) {
|
|
5286
5286
|
return (()=>{
|
|
5287
5287
|
const _el$ = $67892c03cd3dfa66$var$_tmpl$2.cloneNode(true), _el$2 = _el$.firstChild;
|
|
@@ -5324,7 +5324,7 @@ function $67892c03cd3dfa66$export$d757d54550ebfb3d({ category_suggestion_: categ
|
|
|
5324
5324
|
|
|
5325
5325
|
|
|
5326
5326
|
|
|
5327
|
-
const $2989e355f64e18e1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="back" type="button"></button>`, 2), $2989e355f64e18e1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$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"></button></div>`, 9);
|
|
5327
|
+
const $2989e355f64e18e1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="back" type="button"></button>`, 2), $2989e355f64e18e1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$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"></button></div>`, 9);
|
|
5328
5328
|
function $2989e355f64e18e1$export$b94867ecbd698f21({ search_field_value_: search_field_value_ , input_field_ref_: input_field_ref_ , field_element_ref_: field_element_ref_ , submit_query_: submit_query_ , override_on_enter_: override_on_enter_ , clear_filters_: clear_filters_ , disabled_: disabled_ = false , on_back_: on_back_ , i18n_: i18n_ }) {
|
|
5329
5329
|
let input_field;
|
|
5330
5330
|
(0, $46MJV$solidjs.createEffect)((0, $46MJV$depictaiutilishared.catchify)(async ()=>{
|
|
@@ -5423,7 +5423,7 @@ function $2989e355f64e18e1$export$b94867ecbd698f21({ search_field_value_: search
|
|
|
5423
5423
|
|
|
5424
5424
|
|
|
5425
5425
|
|
|
5426
|
-
const $9f81b7ced87aabf2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="cards"></div>`, 2), $9f81b7ced87aabf2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-recs"><h3 class="search-recs-title"></h3></div>`, 4), $9f81b7ced87aabf2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="show-more major" type="button"></button>`, 2);
|
|
5426
|
+
const $9f81b7ced87aabf2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="cards"></div>`, 2), $9f81b7ced87aabf2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-recs"><h3 class="search-recs-title"></h3></div>`, 4), $9f81b7ced87aabf2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="show-more major" type="button"></button>`, 2);
|
|
5427
5427
|
const $9f81b7ced87aabf2$export$1c8c715550dc689d = 2;
|
|
5428
5428
|
function $9f81b7ced87aabf2$export$7de92c4c2205ebf3({ depict_api_: depict_api_ , i18n_: i18n_ , tenant_object_: tenant_object_ , search_query_base_: search_query_base_ , rr_options_: rr_options_ , showing_recommendation_rows_: showing_recommendation_rows_ , view_more_button_: view_more_button_ = true , layout_options_: layout_options_ }) {
|
|
5429
5429
|
const [is_showing_something, set_is_showing_something] = (0, $46MJV$solidjs.createSignal)(false);
|
|
@@ -5763,7 +5763,7 @@ function $690220645373c65e$export$2542ffb77b620b02(params_to_default_value) {
|
|
|
5763
5763
|
|
|
5764
5764
|
|
|
5765
5765
|
|
|
5766
|
-
const $1bf0125991f2d39b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="orig price"></span>`, 2), $1bf0125991f2d39b$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$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"></span></div><div class="price-container"><span class="price"></span></div></div></a>`, 16), $1bf0125991f2d39b$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="tagline"></div>`, 2);
|
|
5766
|
+
const $1bf0125991f2d39b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="orig price"></span>`, 2), $1bf0125991f2d39b$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$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"></span></div><div class="price-container"><span class="price"></span></div></div></a>`, 16), $1bf0125991f2d39b$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="tagline"></div>`, 2);
|
|
5767
5767
|
const $1bf0125991f2d39b$export$b05c0ae390cf3e06 = (display_or_variant_container, { i18n: i18n })=>{
|
|
5768
5768
|
const display = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
5769
5769
|
const display = display_or_variant_container();
|
|
@@ -5846,7 +5846,7 @@ const $1bf0125991f2d39b$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
5846
5846
|
};
|
|
5847
5847
|
|
|
5848
5848
|
|
|
5849
|
-
const $4cadf33fd6aaf4b6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="instant-results"></div>`, 2);
|
|
5849
|
+
const $4cadf33fd6aaf4b6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="instant-results"></div>`, 2);
|
|
5850
5850
|
function $4cadf33fd6aaf4b6$export$62f101a8aa597bf8({ depict_api_: depict_api_ , search_field_value_: [get_search_field_value] , tenant_: tenant_ , market_: market_ , render_instant_card_: render_instant_card_ , render_instant_card_placeholder_: render_instant_card_placeholder_ , min_products_to_fetch_: min_products_to_fetch_ , has_sort_or_filters_: has_sort_or_filters_ , set_num_results_accessor_: set_num_results_accessor_ , i18n_: i18n_ }) {
|
|
5851
5851
|
const max_cards = 4;
|
|
5852
5852
|
const [read_current_instant_query, write_current_instant_query] = (0, $46MJV$solidjs.createSignal)("");
|
|
@@ -5984,7 +5984,7 @@ function $4cadf33fd6aaf4b6$var$unwrapping_helper(elements) {
|
|
|
5984
5984
|
|
|
5985
5985
|
|
|
5986
5986
|
|
|
5987
|
-
const $6ea05d3ebaa81958$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2), $6ea05d3ebaa81958$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
|
|
5987
|
+
const $6ea05d3ebaa81958$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2), $6ea05d3ebaa81958$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
|
|
5988
5988
|
function $6ea05d3ebaa81958$export$50b90be27d8502d9(el, [get_style_props, set_style_props], bottom_distance) {
|
|
5989
5989
|
const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
|
|
5990
5990
|
const upper_overflowing_box = $6ea05d3ebaa81958$var$_tmpl$.cloneNode(true);
|
|
@@ -6068,7 +6068,7 @@ function $41151dd3f5de2c98$export$91c3b6774e8be0f5({ param_: param_ , value_: va
|
|
|
6068
6068
|
|
|
6069
6069
|
|
|
6070
6070
|
|
|
6071
|
-
const $d9dab2a87a9fc61a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6), $d9dab2a87a9fc61a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="item"><div class="left"><span></span></div><button class="delete"></button></a>`, 8);
|
|
6071
|
+
const $d9dab2a87a9fc61a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6), $d9dab2a87a9fc61a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="item"><div class="left"><span></span></div><button class="delete"></button></a>`, 8);
|
|
6072
6072
|
function $d9dab2a87a9fc61a$export$a146ac6fa8346a25({ text_: text_ , previous_searches_: previous_searches_ , search_query_param_name_: search_query_param_name_ , currently_showing_suggestions_: currently_showing_suggestions_ , set_unfiltered_previous_searches_: set_unfiltered_previous_searches_ , search_field_value_: search_field_value_ , selected_index_: [read_selected_index_, write_selected_index_] , url_transformer_: url_transformer_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , i18n_: i18n_ , get_search_query_: get_search_query_ , after_submit_: after_submit_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6073
6073
|
const has_entries = (0, $46MJV$solidjs.createMemo)(()=>previous_searches_().length >= 1);
|
|
6074
6074
|
currently_showing_suggestions_[1]((value)=>{
|
|
@@ -6171,7 +6171,7 @@ function $d9dab2a87a9fc61a$export$a146ac6fa8346a25({ text_: text_ , previous_sea
|
|
|
6171
6171
|
|
|
6172
6172
|
|
|
6173
6173
|
|
|
6174
|
-
const $5a0afe153acd45d7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="highlighted-part"></span>`, 2), $5a0afe153acd45d7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span></span>`, 2);
|
|
6174
|
+
const $5a0afe153acd45d7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="highlighted-part"></span>`, 2), $5a0afe153acd45d7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span></span>`, 2);
|
|
6175
6175
|
function $5a0afe153acd45d7$export$ba17c5b7e6dda39f({ whole_text_to_display_: whole_text_to_display_memo , searching_for_value_: searching_for_value_memo , class_: class_ }) {
|
|
6176
6176
|
const [get_has_highlighted, set_has_highlighted] = (0, $46MJV$solidjs.createSignal)(false);
|
|
6177
6177
|
const text_itself = (0, $46MJV$solidjs.createMemo)(()=>(0, $46MJV$solidjs.batch)(()=>{
|
|
@@ -6231,7 +6231,7 @@ function $5a0afe153acd45d7$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
|
|
|
6231
6231
|
}
|
|
6232
6232
|
|
|
6233
6233
|
|
|
6234
|
-
const $aabe56c678fa29ec$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="suggestion"></a>`, 2), $aabe56c678fa29ec$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-icon"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="type"></span>`, 2), $aabe56c678fa29ec$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div><span class="value"></span></div>`, 4), $aabe56c678fa29ec$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<h2 class="text"></h2>`, 2), $aabe56c678fa29ec$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestion-container query"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestion-container page"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestions"></div>`, 2);
|
|
6234
|
+
const $aabe56c678fa29ec$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="suggestion"></a>`, 2), $aabe56c678fa29ec$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-icon"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="type"></span>`, 2), $aabe56c678fa29ec$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div><span class="value"></span></div>`, 4), $aabe56c678fa29ec$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<h2 class="text"></h2>`, 2), $aabe56c678fa29ec$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestion-container query"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestion-container page"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestions"></div>`, 2);
|
|
6235
6235
|
function $aabe56c678fa29ec$export$e872e2339fb04a7f({ suggestion_memo_: suggestion_memo_ , search_field_value_: search_field_value_ , search_page_url_param_name_: search_page_url_param_name_ , selected_index_: [read_selected_index_, write_selected_index_] , url_transformer_: url_transformer_ , filtered_previous_searches_: filtered_previous_searches_ , currently_showing_suggestions_: currently_showing_suggestions_ , on_previous_searches_page_: on_previous_searches_page_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , i18n_: i18n_ , include_category_suggestions_: include_category_suggestions_ , searching_for_value_: searching_for_value_ , get_search_query_: get_search_query_ , after_submit_: after_submit_ , navigate_page_to_href_: navigate_page_to_href_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6236
6236
|
const queries_memo = (0, $46MJV$solidjs.createMemo)(()=>suggestion_memo_().filter(({ type: type , title: title })=>type === (0, $81eea900c72d569b$export$3cf9497e790da491) && !filtered_previous_searches_().includes(title) // don't show the ones we already show from the history
|
|
6237
6237
|
));
|
|
@@ -6443,7 +6443,7 @@ function $aabe56c678fa29ec$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
|
|
|
6443
6443
|
|
|
6444
6444
|
|
|
6445
6445
|
|
|
6446
|
-
const $bc74fbd61efdd8a5$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a target="_blank"></a>`, 2);
|
|
6446
|
+
const $bc74fbd61efdd8a5$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<a target="_blank"></a>`, 2);
|
|
6447
6447
|
function $bc74fbd61efdd8a5$export$217899a935ef803b({ selected_index_: [read_selected_index, write_selected_index] , currently_showing_suggestions_: [read_currently_showing_suggestions] , ...rest_of_props }) {
|
|
6448
6448
|
const last_suggestion_index_ = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
6449
6449
|
const currently_showing_suggestions = read_currently_showing_suggestions();
|
|
@@ -6749,7 +6749,7 @@ const $d3c94b3b96557917$export$1233ca167bf71f9a = (styles)=>{
|
|
|
6749
6749
|
|
|
6750
6750
|
|
|
6751
6751
|
|
|
6752
|
-
const $4a976b492943589f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<style></style>`, 2);
|
|
6752
|
+
const $4a976b492943589f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<style></style>`, 2);
|
|
6753
6753
|
function $4a976b492943589f$export$f021bdedd3ec901a(props) {
|
|
6754
6754
|
const valid_css_string = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
6755
6755
|
return (0, $d3c94b3b96557917$export$1233ca167bf71f9a)(props.styles());
|
|
@@ -6762,7 +6762,7 @@ function $4a976b492943589f$export$f021bdedd3ec901a(props) {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
|
|
6764
6764
|
|
|
6765
|
-
const $121d25ca6af2898f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $121d25ca6af2898f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $121d25ca6af2898f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $121d25ca6af2898f$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6765
|
+
const $121d25ca6af2898f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $121d25ca6af2898f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $121d25ca6af2898f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $121d25ca6af2898f$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6766
6766
|
function $121d25ca6af2898f$export$1c593cbd6f1e10bc({ search_field_value_: search_field_value_ , search_query_: search_query_ , search_page_url_param_name_: search_page_url_param_name_ , previous_searches_: previous_searches_ , close_modal_: close_modal_ , style_props_: style_props_ = (0, $46MJV$solidjs.createSignal)({}) , depict_api_: depict_api_ , tenant_: tenant_ , market_: market_ , submit_query_: submit_query_ , instant_results_options_: instant_results_options_ , register_closing_animation_: register_closing_animation_ , url_transformer_: url_transformer_ , closing_animation_: closing_animation_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , clear_filters_: clear_filters_ , i18n_: i18n_ , disable_scrolling_: disable_scrolling_ = true , enable_category_suggestions_: enable_category_suggestions_ , class_list_: class_list_ , after_submit_: after_submit_ , bottom_distance_under_modal_: bottom_distance_under_modal_ , navigate_page_to_href_: navigate_page_to_href_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6767
6767
|
let on_enter_in_search_field_function;
|
|
6768
6768
|
const [input_field, set_input_field] = (0, $46MJV$solidjs.createSignal)();
|
|
@@ -6949,7 +6949,7 @@ function $121d25ca6af2898f$var$close_modal_when_navigating_away(close_modal, sea
|
|
|
6949
6949
|
|
|
6950
6950
|
|
|
6951
6951
|
|
|
6952
|
-
const $ea038dec4ee16624$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-suggestions"></div>`, 2), $ea038dec4ee16624$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-suggestion"></div>`, 2);
|
|
6952
|
+
const $ea038dec4ee16624$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-suggestions"></div>`, 2), $ea038dec4ee16624$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-suggestion"></div>`, 2);
|
|
6953
6953
|
function $ea038dec4ee16624$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children , selected_filters_: selected_filters_ , slider_arrow_button_: slider_arrow_button_ }) {
|
|
6954
6954
|
const category_suggestions_ = (0, $46MJV$solidjs.createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
|
|
6955
6955
|
return (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
|
|
@@ -7003,7 +7003,7 @@ function $ea038dec4ee16624$export$c05a196222ba1302({ suggestions_: suggestions_
|
|
|
7003
7003
|
|
|
7004
7004
|
|
|
7005
7005
|
|
|
7006
|
-
const $297ca03cb5dd5701$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $297ca03cb5dd5701$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="results-for"></div>`, 2);
|
|
7006
|
+
const $297ca03cb5dd5701$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $297ca03cb5dd5701$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="results-for"></div>`, 2);
|
|
7007
7007
|
function $297ca03cb5dd5701$export$9dd50d35b9d94fdf({ search_query_: search_query_ , i18n_: i18n_ , formatted_number_of_results_: formatted_number_of_results_ }) {
|
|
7008
7008
|
const contents = (0, $46MJV$solidjs.createMemo)((0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7009
7009
|
const q = search_query_[0]();
|
|
@@ -7031,7 +7031,7 @@ function $297ca03cb5dd5701$export$9dd50d35b9d94fdf({ search_query_: search_query
|
|
|
7031
7031
|
|
|
7032
7032
|
|
|
7033
7033
|
|
|
7034
|
-
const $93779a41dce11249$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-results-for-one-row"></div>`, 2), $93779a41dce11249$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="listing-page"></div></div>`, 4);
|
|
7034
|
+
const $93779a41dce11249$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-results-for-one-row"></div>`, 2), $93779a41dce11249$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="listing-page"></div></div>`, 4);
|
|
7035
7035
|
function $93779a41dce11249$export$a54ec244c8863715(opts) {
|
|
7036
7036
|
const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , search_query_: search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , slider_arrow_button_: slider_arrow_button_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , rr_options_: rr_options_ , recommendations_rr_options_: recommendations_rr_options_ = rr_options_ , search_recs_view_more_: search_recs_view_more_ , get_product_id_: get_product_id_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ } = opts;
|
|
7037
7037
|
const tenant_object_ = new (0, $46MJV$depictaiutilishared.Tenant)({
|
|
@@ -7345,7 +7345,7 @@ function $246e3e89a097f014$export$828dcdd425fd3231(aligner) {
|
|
|
7345
7345
|
}
|
|
7346
7346
|
|
|
7347
7347
|
|
|
7348
|
-
const $79fbf145b15af988$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"></div>`, 2);
|
|
7348
|
+
const $79fbf145b15af988$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"></div>`, 2);
|
|
7349
7349
|
/**
|
|
7350
7350
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
7351
7351
|
*/ const $79fbf145b15af988$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
@@ -7781,11 +7781,22 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7781
7781
|
#disconnect_observer;
|
|
7782
7782
|
#revert_fns = [];
|
|
7783
7783
|
#is_open = false;
|
|
7784
|
+
static #reverting_permitted = true;
|
|
7785
|
+
static #visited_urls = (()=>{
|
|
7786
|
+
// Keep track of all URLs that have been visited since the document that was initially loaded (loaded means the process where the browser creates a new `document` and `window` object).
|
|
7787
|
+
(0, $46MJV$depictaiutilishared.catchify)(async ()=>{
|
|
7788
|
+
// Static initialization blocks aren't supported in MobileSafari yet, otherwise this would be one.
|
|
7789
|
+
// I don't think we want to ship a library that users are *forced* to transpile, it should run in the newest version of all major browsers. So we'll just use a function wrapper for now (adding "last 1 ios version" to the build target does a bunch of other unneeded transpilations).
|
|
7790
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks
|
|
7791
|
+
for await (const href of (0, $46MJV$depictaiutilishared.href_change_ipns))$37e96a5ebc768cc7$export$3ccaa27d81dd8556.#visited_urls.add($37e96a5ebc768cc7$var$clean_url(href));
|
|
7792
|
+
})();
|
|
7793
|
+
return new Set();
|
|
7794
|
+
})();
|
|
7784
7795
|
get open_() {
|
|
7785
7796
|
// make this "readonly" from the outside, the only way to open is by making the url change so that is_page_ returns true
|
|
7786
7797
|
return this.#is_open;
|
|
7787
7798
|
}
|
|
7788
|
-
#listen
|
|
7799
|
+
async #listen() {
|
|
7789
7800
|
const [exit_ipns, exitable_ipns] = (0, $46MJV$depictaiutilishared.make_asyncIterable_exiter)((0, $46MJV$depictaiutilishared.href_change_ipns));
|
|
7790
7801
|
this.#stop_listening = exit_ipns;
|
|
7791
7802
|
const caught_page_check_fn = (0, $46MJV$depictaiutilishared.catchify)(this.is_page_, "page check failed");
|
|
@@ -7800,7 +7811,7 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7800
7811
|
if (!els?.length) continue;
|
|
7801
7812
|
this.#load(els);
|
|
7802
7813
|
}
|
|
7803
|
-
}
|
|
7814
|
+
}
|
|
7804
7815
|
#get_rendered_recs() {
|
|
7805
7816
|
return (0, $46MJV$solidjs.createRoot)((dispose)=>{
|
|
7806
7817
|
this.addEventListener("close", dispose, {
|
|
@@ -7812,7 +7823,7 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7812
7823
|
#unload = (0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7813
7824
|
if (!this.#is_open) return;
|
|
7814
7825
|
this.#disconnect_observer?.();
|
|
7815
|
-
while(this.#revert_fns.length)this.#revert_fns.pop()?.();
|
|
7826
|
+
if ($37e96a5ebc768cc7$export$3ccaa27d81dd8556.#reverting_permitted) while(this.#revert_fns.length)this.#revert_fns.pop()?.();
|
|
7816
7827
|
this.#is_open = false;
|
|
7817
7828
|
this.dispatchEvent(new CustomEvent("close"));
|
|
7818
7829
|
}, "failed to close page");
|
|
@@ -7856,8 +7867,42 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7856
7867
|
document.title = this.title_;
|
|
7857
7868
|
this.#revert_fns.push(()=>document.title = title);
|
|
7858
7869
|
}
|
|
7870
|
+
this.#empty_page_bugfix();
|
|
7859
7871
|
this.dispatchEvent(new CustomEvent("open")); // we dispatch this once it's actually open
|
|
7860
7872
|
}, "failed to open page");
|
|
7873
|
+
#empty_page_bugfix() {
|
|
7874
|
+
// Called when a "page" is "opened" using PageReplacer
|
|
7875
|
+
const on_popstate = ()=>{
|
|
7876
|
+
const cleaned_current_url = $37e96a5ebc768cc7$var$clean_url(location.href);
|
|
7877
|
+
if (!$37e96a5ebc768cc7$export$3ccaa27d81dd8556.#visited_urls.has(cleaned_current_url)) {
|
|
7878
|
+
/*
|
|
7879
|
+
What does this check do? Well, there's a bug without it where people end up on a page that they shouldn't see (i.e. a somewhat blank page).
|
|
7880
|
+
The culprit of that bug is: the browser remembers where to make "hard"-navigations (i.e. a full document rebuild with a new `document` and `window` object) when going back and forwards in the history and where to just change the url. What it doesn't always correctly remember (observed in at least chrome and firefox), is *what document to hard-navigate to*. Therefore, we have to jump in and take care of that.
|
|
7881
|
+
The reproduction is this:
|
|
7882
|
+
Spendrups has set up a search page for us under /start/search. We don't want to hard-reload the page though to get there.
|
|
7883
|
+
1. Go to a product page like https://ehandel.spendrups.se/Product/1104201
|
|
7884
|
+
2. Make a search
|
|
7885
|
+
We use PageReplacer to just replace the current page (and the url in the address bar) with the search page. The thing is though, that when going back now the URL just updates but the browser doesn't actually navigate - that's fine, PageReplacer will just restore the old page contents
|
|
7886
|
+
3. Try going back just for fun
|
|
7887
|
+
Everything works as expected
|
|
7888
|
+
4. Go forwards again (just for fun, skip this if you skipped 3)
|
|
7889
|
+
Now the trouble comes when we introduce "hard" navigation.
|
|
7890
|
+
5. Click on a search result. The browser will now "hard" navigate to a new page.
|
|
7891
|
+
6. Click "back"
|
|
7892
|
+
What happens now, is that the browser hard-navigates to /start/search.
|
|
7893
|
+
7. Click "back" again
|
|
7894
|
+
What happens now, is that the browser "soft-navigates" (just changes the URL) to https://ehandel.spendrups.se/Product/1104201
|
|
7895
|
+
PageReplacer unload itself and reveals the original document - it is expected to be the one under https://ehandel.spendrups.se/Product/1104201, but actually it is the one under /start/search - a white page.
|
|
7896
|
+
The fix: is to remember all pages that we have visited since the creation of `window` (we do that by having a static property on PageReplacer since we assume the PageReplacer source code will only exist once on the page and will be loaded at page load, the latter assumption might be wrong, but I hope not). If we get a "popstate" event (meaning back or forwards button, not new page being pushed) to an unknown page we reload.
|
|
7897
|
+
*/ (0, $46MJV$depictaiutilishared.dlog)("PageReplacer: ", cleaned_current_url, " hasn't been visited since document was created, reloading since we won't be able to show this page otherwise");
|
|
7898
|
+
location.reload();
|
|
7899
|
+
$37e96a5ebc768cc7$export$3ccaa27d81dd8556.#reverting_permitted = false; // Disallow any reverting since we can't - it would flash a white page until the reload has finished.
|
|
7900
|
+
this.#unload(); // Call unload to "kill" the solid-js stuff quicker so that it stops updating - the user is expecting the next thing that happens to be a navigation to the actual page the URL says they're on.
|
|
7901
|
+
}
|
|
7902
|
+
};
|
|
7903
|
+
(0, $46MJV$depictaiutilishared.instant_exec_on_popstate_before_ipns_update).add(on_popstate);
|
|
7904
|
+
this.#revert_fns.push(()=>(0, $46MJV$depictaiutilishared.instant_exec_on_popstate_before_ipns_update).delete(on_popstate)); // Don't run the bugfixer if there isn't a PageReplacer page open since I assume the bug only happens when going back from a PageReplace'd page
|
|
7905
|
+
}
|
|
7861
7906
|
destroy_() {
|
|
7862
7907
|
this.#unload();
|
|
7863
7908
|
this.#stop_listening?.();
|
|
@@ -7871,6 +7916,15 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7871
7916
|
], "error"));
|
|
7872
7917
|
}
|
|
7873
7918
|
}
|
|
7919
|
+
/**
|
|
7920
|
+
* Remove hash from URL
|
|
7921
|
+
*/ function $37e96a5ebc768cc7$var$clean_url(url) {
|
|
7922
|
+
// Would want to have this a static private function on PageReplacer, but that's not supported in MobileSafari yet
|
|
7923
|
+
// remove hash, all other params *could* trigger a re-request
|
|
7924
|
+
const url_object = new URL(url);
|
|
7925
|
+
url_object.hash = "";
|
|
7926
|
+
return url_object.href;
|
|
7927
|
+
}
|
|
7874
7928
|
|
|
7875
7929
|
|
|
7876
7930
|
(0, $46MJV$depictaiutilishared.add_to_version_info)("ui", (0, $ae93561d5649a847$export$83d89fbfd8236492));
|