@depict-ai/ui 0.0.50 → 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 +2 -2
package/dist/module.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$fetch_recs, snakeCasifyObject as $g9l4l$snakeCasifyObject, GenericSliderArrowButton as $g9l4l$GenericSliderArrowButton, catchify as $g9l4l$catchify, base_url as $g9l4l$base_url, get_depict_id as $g9l4l$get_depict_id, get_user_id as $g9l4l$get_user_id, get_session_id as $g9l4l$get_session_id, dlog as $g9l4l$dlog, make_url_with_query_params as $g9l4l$make_url_with_query_params, fetch_retry as $g9l4l$fetch_retry, add_version_query_params as $g9l4l$add_version_query_params, sort_obj as $g9l4l$sort_obj, Tenant as $g9l4l$Tenant, Placeholder as $g9l4l$Placeholder, report as $g9l4l$report, javascript_media_query as $g9l4l$javascript_media_query, standard_price_format as $g9l4l$standard_price_format, deparallelize_no_drop as $g9l4l$deparallelize_no_drop, default_rr as $g9l4l$default_rr, make_random_classname as $g9l4l$make_random_classname, n_col_styling_with_dist as $g9l4l$n_col_styling_with_dist, observer as $g9l4l$observer, Lazyfier as $g9l4l$Lazyfier, queueMacroTask as $g9l4l$queueMacroTask, deparallelize as $g9l4l$deparallelize, Rec_Renderer as $g9l4l$Rec_Renderer, CrossIcon as $g9l4l$CrossIcon, useExpandingContainer as $g9l4l$useExpandingContainer, Amazing_Slider as $g9l4l$Amazing_Slider, slider_snap_css as $g9l4l$slider_snap_css, slider_fading_factory as $g9l4l$slider_fading_factory, MinusIcon as $g9l4l$MinusIcon, FilterIcon as $g9l4l$FilterIcon, SortIconAsc as $g9l4l$SortIconAsc, SortIconDesc as $g9l4l$SortIconDesc, PlusIcon as $g9l4l$PlusIcon, TickIcon as $g9l4l$TickIcon, ArrowUp as $g9l4l$ArrowUp, normal_get_product_id as $g9l4l$normal_get_product_id, ContainedPlaceholderImage as $g9l4l$ContainedPlaceholderImage, BackIcon as $g9l4l$BackIcon, SearchIcon as $g9l4l$SearchIcon, Layout as $g9l4l$Layout, make_placeholder_rr as $g9l4l$make_placeholder_rr, async_iterable_ipns as $g9l4l$async_iterable_ipns, make_asyncIterable_exiter as $g9l4l$make_asyncIterable_exiter, href_change_ipns as $g9l4l$href_change_ipns, depict_click as $g9l4l$depict_click, impression_track_element as $g9l4l$impression_track_element, add_new_tab_listener as $g9l4l$add_new_tab_listener, ContainedImage as $g9l4l$ContainedImage, buildThresholdList as $g9l4l$buildThresholdList, PreviousSearchIcon as $g9l4l$PreviousSearchIcon, insert_surfaces as $g9l4l$insert_surfaces} from "@depict-ai/utilishared";
|
|
1
|
+
import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$fetch_recs, snakeCasifyObject as $g9l4l$snakeCasifyObject, GenericSliderArrowButton as $g9l4l$GenericSliderArrowButton, catchify as $g9l4l$catchify, base_url as $g9l4l$base_url, get_depict_id as $g9l4l$get_depict_id, get_user_id as $g9l4l$get_user_id, get_session_id as $g9l4l$get_session_id, dlog as $g9l4l$dlog, make_url_with_query_params as $g9l4l$make_url_with_query_params, fetch_retry as $g9l4l$fetch_retry, add_version_query_params as $g9l4l$add_version_query_params, sort_obj as $g9l4l$sort_obj, Tenant as $g9l4l$Tenant, Placeholder as $g9l4l$Placeholder, report as $g9l4l$report, javascript_media_query as $g9l4l$javascript_media_query, standard_price_format as $g9l4l$standard_price_format, deparallelize_no_drop as $g9l4l$deparallelize_no_drop, default_rr as $g9l4l$default_rr, make_random_classname as $g9l4l$make_random_classname, n_col_styling_with_dist as $g9l4l$n_col_styling_with_dist, observer as $g9l4l$observer, Lazyfier as $g9l4l$Lazyfier, queueMacroTask as $g9l4l$queueMacroTask, deparallelize as $g9l4l$deparallelize, Rec_Renderer as $g9l4l$Rec_Renderer, CrossIcon as $g9l4l$CrossIcon, useExpandingContainer as $g9l4l$useExpandingContainer, Amazing_Slider as $g9l4l$Amazing_Slider, slider_snap_css as $g9l4l$slider_snap_css, slider_fading_factory as $g9l4l$slider_fading_factory, MinusIcon as $g9l4l$MinusIcon, FilterIcon as $g9l4l$FilterIcon, SortIconAsc as $g9l4l$SortIconAsc, SortIconDesc as $g9l4l$SortIconDesc, PlusIcon as $g9l4l$PlusIcon, TickIcon as $g9l4l$TickIcon, ArrowUp as $g9l4l$ArrowUp, normal_get_product_id as $g9l4l$normal_get_product_id, ContainedPlaceholderImage as $g9l4l$ContainedPlaceholderImage, BackIcon as $g9l4l$BackIcon, SearchIcon as $g9l4l$SearchIcon, Layout as $g9l4l$Layout, make_placeholder_rr as $g9l4l$make_placeholder_rr, async_iterable_ipns as $g9l4l$async_iterable_ipns, make_asyncIterable_exiter as $g9l4l$make_asyncIterable_exiter, href_change_ipns as $g9l4l$href_change_ipns, depict_click as $g9l4l$depict_click, impression_track_element as $g9l4l$impression_track_element, add_new_tab_listener as $g9l4l$add_new_tab_listener, ContainedImage as $g9l4l$ContainedImage, buildThresholdList as $g9l4l$buildThresholdList, PreviousSearchIcon as $g9l4l$PreviousSearchIcon, insert_surfaces as $g9l4l$insert_surfaces, instant_exec_on_popstate_before_ipns_update as $g9l4l$instant_exec_on_popstate_before_ipns_update} from "@depict-ai/utilishared";
|
|
2
2
|
import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$effect, setAttribute as $g9l4l$setAttribute, createComponent as $g9l4l$createComponent, use as $g9l4l$use, addEventListener as $g9l4l$addEventListener, delegateEvents as $g9l4l$delegateEvents, spread as $g9l4l$spread, memo as $g9l4l$memo, style as $g9l4l$style, mergeProps as $g9l4l$mergeProps, classList as $g9l4l$classList, className as $g9l4l$className} from "solid-js/web";
|
|
3
3
|
import {createSignal as $g9l4l$createSignal, onCleanup as $g9l4l$onCleanup, createComputed as $g9l4l$createComputed, createEffect as $g9l4l$createEffect, untrack as $g9l4l$untrack, batch as $g9l4l$batch, createResource as $g9l4l$createResource, createMemo as $g9l4l$createMemo, Show as $g9l4l$Show, createRenderEffect as $g9l4l$createRenderEffect, runWithOwner as $g9l4l$runWithOwner, createRoot as $g9l4l$createRoot, getOwner as $g9l4l$getOwner, on as $g9l4l$on, Index as $g9l4l$Index, For as $g9l4l$For, ErrorBoundary as $g9l4l$ErrorBoundary} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.51";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -286,7 +286,7 @@ function $5178263ed1e394ca$export$469c7af753d08925({ price_: price_ , price_form
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
const $51b5c03492337d58$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!> <b></b></span></div>`, 11);
|
|
289
|
+
const $51b5c03492337d58$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!> <b></b></span></div>`, 11);
|
|
290
290
|
function $51b5c03492337d58$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_ } }) {
|
|
291
291
|
const [first_to_show, set_first_to_show] = (0, $g9l4l$createSignal)(0);
|
|
292
292
|
const [last_to_show, set_last_to_show] = (0, $g9l4l$createSignal)(0);
|
|
@@ -559,9 +559,9 @@ async function $06e28148a32abb47$var$load_more({ depict_api_: depict_api_ , quer
|
|
|
559
559
|
|
|
560
560
|
|
|
561
561
|
|
|
562
|
-
const $886fa987db4f3805$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
562
|
+
const $886fa987db4f3805$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
563
563
|
const $886fa987db4f3805$var$closing_functions = /*@__PURE__*/ new Set();
|
|
564
|
-
const $886fa987db4f3805$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$createSignal)(false);
|
|
564
|
+
const $886fa987db4f3805$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$createSignal)(false);
|
|
565
565
|
function $886fa987db4f3805$export$5196e4c01fa56fcb({ children: children , on_close_: on_close_ , close_after_: close_after_ , ...more_attributes }) {
|
|
566
566
|
let close_toast_;
|
|
567
567
|
const stay_open_promise = new Promise((r)=>close_toast_ = r);
|
|
@@ -665,7 +665,7 @@ function $886fa987db4f3805$export$5196e4c01fa56fcb({ children: children , on_clo
|
|
|
665
665
|
|
|
666
666
|
|
|
667
667
|
|
|
668
|
-
const $af89070cc0052779$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="statement"></div>`, 2), $af89070cc0052779$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
|
|
668
|
+
const $af89070cc0052779$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="statement"></div>`, 2), $af89070cc0052779$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
|
|
669
669
|
function $af89070cc0052779$export$8895d39404bd2bb1(props) {
|
|
670
670
|
let previous_sorting;
|
|
671
671
|
let on_toast_hidden;
|
|
@@ -743,7 +743,7 @@ function $af89070cc0052779$export$8895d39404bd2bb1(props) {
|
|
|
743
743
|
|
|
744
744
|
|
|
745
745
|
|
|
746
|
-
const $a20b0ecfca7ab32d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a class="hint" href="javascript:void(0)"></a>`, 2), $a20b0ecfca7ab32d$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="no-results"><div class="text"></div></div>`, 4);
|
|
746
|
+
const $a20b0ecfca7ab32d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a class="hint" href="javascript:void(0)"></a>`, 2), $a20b0ecfca7ab32d$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="no-results"><div class="text"></div></div>`, 4);
|
|
747
747
|
function $a20b0ecfca7ab32d$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
|
|
748
748
|
return [
|
|
749
749
|
(()=>{
|
|
@@ -786,7 +786,7 @@ function $ed06bb0bb83a46b3$export$a2cc176055f8f08() {
|
|
|
786
786
|
}
|
|
787
787
|
|
|
788
788
|
|
|
789
|
-
const $57363319986950eb$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="PLP-results"></div>`, 2), $57363319986950eb$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="cards"></div>`, 2);
|
|
789
|
+
const $57363319986950eb$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="PLP-results"></div>`, 2), $57363319986950eb$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="cards"></div>`, 2);
|
|
790
790
|
let $57363319986950eb$var$cached_placeholder_element;
|
|
791
791
|
function $57363319986950eb$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_ }) {
|
|
792
792
|
// 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
|
|
@@ -1115,7 +1115,7 @@ function $7d4ae726763dc6bc$export$e13dddbb31c3a42f() {
|
|
|
1115
1115
|
|
|
1116
1116
|
|
|
1117
1117
|
|
|
1118
|
-
const $a04dda00e2984628$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
1118
|
+
const $a04dda00e2984628$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
1119
1119
|
function $a04dda00e2984628$export$6649caad96ef8870({ children: children , button_: button_ , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
|
|
1120
1120
|
const slider = new (0, $g9l4l$Amazing_Slider)({
|
|
1121
1121
|
button_contents: {
|
|
@@ -1153,7 +1153,7 @@ function $a04dda00e2984628$export$6649caad96ef8870({ children: children , button
|
|
|
1153
1153
|
|
|
1154
1154
|
|
|
1155
1155
|
|
|
1156
|
-
const $a7abb08807717ef9$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="clear-all-filters minor"></button>`, 2), $a7abb08807717ef9$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="inner"><span class="title">: </span></div>`, 4), $a7abb08807717ef9$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="clear-filter major"><span> – </span></button>`, 4), $a7abb08807717ef9$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="clear-filter major"><span></span></button>`, 4);
|
|
1156
|
+
const $a7abb08807717ef9$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="clear-all-filters minor"></button>`, 2), $a7abb08807717ef9$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="inner"><span class="title">: </span></div>`, 4), $a7abb08807717ef9$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="clear-filter major"><span> – </span></button>`, 4), $a7abb08807717ef9$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="clear-filter major"><span></span></button>`, 4);
|
|
1157
1157
|
function $a7abb08807717ef9$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_ }) {
|
|
1158
1158
|
const { price_formatting_: price_formatting_ } = i18n_;
|
|
1159
1159
|
const [read_selected_filters, write_selected_filters] = selected_filters_;
|
|
@@ -1496,7 +1496,7 @@ async function $3786428a06ed81c4$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
1496
1496
|
|
|
1497
1497
|
|
|
1498
1498
|
|
|
1499
|
-
const $4fa14d99b0f07c40$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="count"></span>`, 2), $4fa14d99b0f07c40$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text"></span></div></label>`, 9);
|
|
1499
|
+
const $4fa14d99b0f07c40$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="count"></span>`, 2), $4fa14d99b0f07c40$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text"></span></div></label>`, 9);
|
|
1500
1500
|
const $4fa14d99b0f07c40$export$48513f6b9f8ce62d = (props)=>{
|
|
1501
1501
|
// 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
|
|
1502
1502
|
const count = (0, $g9l4l$createMemo)(()=>props.count_);
|
|
@@ -1556,7 +1556,7 @@ const $4fa14d99b0f07c40$export$48513f6b9f8ce62d = (props)=>{
|
|
|
1556
1556
|
|
|
1557
1557
|
|
|
1558
1558
|
|
|
1559
|
-
const $9e6544e509214c47$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button type="button" class="expand-filter"><span></span></button>`, 4);
|
|
1559
|
+
const $9e6544e509214c47$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button type="button" class="expand-filter"><span></span></button>`, 4);
|
|
1560
1560
|
function $9e6544e509214c47$export$ca21a16d65b3dd8({ show_extras_: [get_show_extras, set_show_extras] , i18n_: i18n_ }) {
|
|
1561
1561
|
return (()=>{
|
|
1562
1562
|
const _el$ = $9e6544e509214c47$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild;
|
|
@@ -1575,7 +1575,7 @@ function $9e6544e509214c47$export$ca21a16d65b3dd8({ show_extras_: [get_show_extr
|
|
|
1575
1575
|
]);
|
|
1576
1576
|
|
|
1577
1577
|
|
|
1578
|
-
const $5be19bd31e1c92fe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<form class="checkboxes"></form>`, 2);
|
|
1578
|
+
const $5be19bd31e1c92fe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<form class="checkboxes"></form>`, 2);
|
|
1579
1579
|
const $5be19bd31e1c92fe$var$max_visible_without_collapsing = 7;
|
|
1580
1580
|
const $5be19bd31e1c92fe$var$show_non_collapsible_when_collapsed = 4;
|
|
1581
1581
|
function $5be19bd31e1c92fe$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_] }) {
|
|
@@ -1690,7 +1690,7 @@ function $5be19bd31e1c92fe$export$dd948f91abc3a1c4({ filter_: filter_ , selected
|
|
|
1690
1690
|
|
|
1691
1691
|
|
|
1692
1692
|
|
|
1693
|
-
const $d51fc80c159e5488$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<form class="radios"></form>`, 2), $d51fc80c159e5488$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="count"></span>`, 2), $d51fc80c159e5488$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span></div></label>`, 7);
|
|
1693
|
+
const $d51fc80c159e5488$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<form class="radios"></form>`, 2), $d51fc80c159e5488$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="count"></span>`, 2), $d51fc80c159e5488$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span></div></label>`, 7);
|
|
1694
1694
|
function $d51fc80c159e5488$export$430444115f70a734({ selected_filters_: selected_filters_ , filter_: filter_ }) {
|
|
1695
1695
|
const radio_name = (0, $g9l4l$make_random_classname)();
|
|
1696
1696
|
const existing_filter = (0, $g9l4l$createMemo)(()=>{
|
|
@@ -1769,7 +1769,7 @@ function $d51fc80c159e5488$export$430444115f70a734({ selected_filters_: selected
|
|
|
1769
1769
|
|
|
1770
1770
|
|
|
1771
1771
|
|
|
1772
|
-
const $66f3de62e88607b0$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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), $66f3de62e88607b0$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="slider"><div class="progress"></div></div>`, 4), $66f3de62e88607b0$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
|
|
1772
|
+
const $66f3de62e88607b0$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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), $66f3de62e88607b0$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="slider"><div class="progress"></div></div>`, 4), $66f3de62e88607b0$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
|
|
1773
1773
|
function $66f3de62e88607b0$export$e0d834a0ad870cda({ filter_: filter_ , selected_filters_: selected_filters_ , i18n_: i18n_ }) {
|
|
1774
1774
|
const current_range = (0, $g9l4l$createSignal)((0, $g9l4l$untrack)(()=>filter_().data));
|
|
1775
1775
|
const selected_filter = (0, $g9l4l$createMemo)(()=>selected_filters_[0]().find(({ field: checking_field , op: checking_op })=>checking_field === filter_().field && checking_op === filter_().op));
|
|
@@ -2047,7 +2047,7 @@ function $66f3de62e88607b0$var$set_range_with_sanitation(min_, max_, current_ran
|
|
|
2047
2047
|
|
|
2048
2048
|
|
|
2049
2049
|
|
|
2050
|
-
const $ec5682ee833a8bee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
|
|
2050
|
+
const $ec5682ee833a8bee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
|
|
2051
2051
|
function $ec5682ee833a8bee$export$e5c2828934226505({ expanded_: expanded_ , i18n_: i18n_ }) {
|
|
2052
2052
|
let first_span;
|
|
2053
2053
|
let second_span;
|
|
@@ -2097,7 +2097,7 @@ function $ec5682ee833a8bee$export$e5c2828934226505({ expanded_: expanded_ , i18n
|
|
|
2097
2097
|
|
|
2098
2098
|
|
|
2099
2099
|
|
|
2100
|
-
const $eea801a5802b521c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<form class="checkboxes hierarchical"></form>`, 2), $eea801a5802b521c$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="checkbox-details"></div>`, 2), $eea801a5802b521c$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<details></details>`, 2), $eea801a5802b521c$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<summary class="category-parent"><div class="summary"><span class="count"></span></div></summary>`, 6);
|
|
2100
|
+
const $eea801a5802b521c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<form class="checkboxes hierarchical"></form>`, 2), $eea801a5802b521c$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="checkbox-details"></div>`, 2), $eea801a5802b521c$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<details></details>`, 2), $eea801a5802b521c$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<summary class="category-parent"><div class="summary"><span class="count"></span></div></summary>`, 6);
|
|
2101
2101
|
const $eea801a5802b521c$var$max_visible_without_collapsing = 7;
|
|
2102
2102
|
const $eea801a5802b521c$var$show_non_collapsible_when_collapsed = 4;
|
|
2103
2103
|
function $eea801a5802b521c$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_ }) {
|
|
@@ -2479,7 +2479,7 @@ function $eea801a5802b521c$var$expand_until_choice(data_structure) {
|
|
|
2479
2479
|
|
|
2480
2480
|
|
|
2481
2481
|
|
|
2482
|
-
const $351fbc622a053364$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="checkbox-grid"></div>`, 2), $351fbc622a053364$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="major-minor-transition"></button>`, 2);
|
|
2482
|
+
const $351fbc622a053364$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="checkbox-grid"></div>`, 2), $351fbc622a053364$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="major-minor-transition"></button>`, 2);
|
|
2483
2483
|
const $351fbc622a053364$export$414f6a19d38e655c = ({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] })=>{
|
|
2484
2484
|
const existing_filter = (0, $g9l4l$createMemo)(()=>{
|
|
2485
2485
|
const { field: field , op: op } = filter_();
|
|
@@ -2566,7 +2566,7 @@ const $351fbc622a053364$export$414f6a19d38e655c = ({ filter_: filter_ , selected
|
|
|
2566
2566
|
|
|
2567
2567
|
|
|
2568
2568
|
|
|
2569
|
-
const $b114513503b25433$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<form class="checkbox-color"></form>`, 2);
|
|
2569
|
+
const $b114513503b25433$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<form class="checkbox-color"></form>`, 2);
|
|
2570
2570
|
const $b114513503b25433$var$max_visible_without_collapsing = 14;
|
|
2571
2571
|
const $b114513503b25433$var$show_non_collapsible_when_collapsed = 8;
|
|
2572
2572
|
function $b114513503b25433$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_] }) {
|
|
@@ -2902,7 +2902,7 @@ function $dd3727f29e682893$export$b288c38ae3fddb56({ available_filters_: availab
|
|
|
2902
2902
|
|
|
2903
2903
|
|
|
2904
2904
|
|
|
2905
|
-
const $7c4a8499f0ad6e11$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="show-selected" aria-hidden="true"><span></span></span>`, 4);
|
|
2905
|
+
const $7c4a8499f0ad6e11$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="show-selected" aria-hidden="true"><span></span></span>`, 4);
|
|
2906
2906
|
function $7c4a8499f0ad6e11$export$53c59af873b303c9({ selected_filters_in_group_: selected_filters_in_group_ , i18n_: { price_formatting_: price_formatting_ } }) {
|
|
2907
2907
|
const [show_tick_icon, set_show_tick_icon] = (0, $g9l4l$createSignal)(false);
|
|
2908
2908
|
return (()=>{
|
|
@@ -3014,7 +3014,7 @@ function $a2432c33d88ec427$export$ab34afce88557c0e(props) {
|
|
|
3014
3014
|
|
|
3015
3015
|
|
|
3016
3016
|
|
|
3017
|
-
const $a406ebe9523f192f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
3017
|
+
const $a406ebe9523f192f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
3018
3018
|
function $a406ebe9523f192f$export$b69d0d92862de18b(props) {
|
|
3019
3019
|
return (0, $g9l4l$ErrorBoundary)({
|
|
3020
3020
|
fallback (err) {
|
|
@@ -3037,7 +3037,7 @@ function $a406ebe9523f192f$export$b69d0d92862de18b(props) {
|
|
|
3037
3037
|
|
|
3038
3038
|
|
|
3039
3039
|
|
|
3040
|
-
const $8aff437d739a524d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filter-collapsible"></div>`, 2), $8aff437d739a524d$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="clear-group"><span></span></button>`, 4), $8aff437d739a524d$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="view-more-clear"></div>`, 2), $8aff437d739a524d$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filter-collapsible-body"><div class="filter-part"></div></div>`, 4), $8aff437d739a524d$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<details class="filter-collapsible"></details>`, 2), $8aff437d739a524d$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"></div></div></summary>`, 8), $8aff437d739a524d$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="ungrouped"></div>`, 2), $8aff437d739a524d$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="clear-all-filters major"></button>`, 2);
|
|
3040
|
+
const $8aff437d739a524d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="filter-collapsible"></div>`, 2), $8aff437d739a524d$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="clear-group"><span></span></button>`, 4), $8aff437d739a524d$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="view-more-clear"></div>`, 2), $8aff437d739a524d$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="filter-collapsible-body"><div class="filter-part"></div></div>`, 4), $8aff437d739a524d$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<details class="filter-collapsible"></details>`, 2), $8aff437d739a524d$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"></div></div></summary>`, 8), $8aff437d739a524d$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="ungrouped"></div>`, 2), $8aff437d739a524d$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="clear-all-filters major"></button>`, 2);
|
|
3041
3041
|
function $8aff437d739a524d$export$3f1a388cc0d8fed7(props) {
|
|
3042
3042
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
3043
3043
|
return (0, $g9l4l$createComponent)((0, $g9l4l$Show), {
|
|
@@ -3266,7 +3266,7 @@ function $8aff437d739a524d$var$ActualFilterBody(props) {
|
|
|
3266
3266
|
|
|
3267
3267
|
|
|
3268
3268
|
|
|
3269
|
-
const $c23bd3d951eee1f2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="sorting-attributes"></div>`, 2), $c23bd3d951eee1f2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="sorting-direction"></div>`, 2), $c23bd3d951eee1f2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span></div></div>`, 7), $c23bd3d951eee1f2$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span></label></div>`, 7);
|
|
3269
|
+
const $c23bd3d951eee1f2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="sorting-attributes"></div>`, 2), $c23bd3d951eee1f2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="sorting-direction"></div>`, 2), $c23bd3d951eee1f2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span></div></div>`, 7), $c23bd3d951eee1f2$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span></label></div>`, 7);
|
|
3270
3270
|
function $c23bd3d951eee1f2$export$1f1775a58da589b5({ available_sortings_: available_sortings_ , current_sorting_: current_sorting_ }) {
|
|
3271
3271
|
const title_radio_name = (0, $g9l4l$make_random_classname)();
|
|
3272
3272
|
const order_radio_name = (0, $g9l4l$make_random_classname)();
|
|
@@ -3414,7 +3414,7 @@ function $a1123c5ed9b0ee29$export$fe334901e8bebd57() {
|
|
|
3414
3414
|
|
|
3415
3415
|
|
|
3416
3416
|
|
|
3417
|
-
const $fd7da6fb3e08aa40$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="clear minor"></button>`, 2), $fd7da6fb3e08aa40$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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), $fd7da6fb3e08aa40$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<details class="sorting"></details>`, 2), $fd7da6fb3e08aa40$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><span></span></div></div></summary>`, 8), $fd7da6fb3e08aa40$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="body"></div>`, 2), $fd7da6fb3e08aa40$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<details class="filters"></details>`, 2), $fd7da6fb3e08aa40$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<b></b>`, 2);
|
|
3417
|
+
const $fd7da6fb3e08aa40$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="clear minor"></button>`, 2), $fd7da6fb3e08aa40$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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), $fd7da6fb3e08aa40$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<details class="sorting"></details>`, 2), $fd7da6fb3e08aa40$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><span></span></div></div></summary>`, 8), $fd7da6fb3e08aa40$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="body"></div>`, 2), $fd7da6fb3e08aa40$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<details class="filters"></details>`, 2), $fd7da6fb3e08aa40$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<b></b>`, 2);
|
|
3418
3418
|
const $fd7da6fb3e08aa40$var$no_go_selector = ".range .range-group";
|
|
3419
3419
|
function $fd7da6fb3e08aa40$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_ }) {
|
|
3420
3420
|
(0, $a1123c5ed9b0ee29$export$fe334901e8bebd57)();
|
|
@@ -3685,7 +3685,7 @@ function $fd7da6fb3e08aa40$export$9bf11afa910f536e({ args_for_sorting_: args_for
|
|
|
3685
3685
|
|
|
3686
3686
|
|
|
3687
3687
|
|
|
3688
|
-
const $bf7fe049e78f975a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filters"><div class="body"></div></div>`, 4), $bf7fe049e78f975a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="sorting"><div class="body"></div></div>`, 4), $bf7fe049e78f975a$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"></div></div></div>`, 6), $bf7fe049e78f975a$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="num-filters"></span>`, 2), $bf7fe049e78f975a$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="open-filters-button-container"><button class="filter toggle-button major-minor-transition" type="button"><span></span></button></div>`, 6), $bf7fe049e78f975a$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="toggle-button for-sorting major-minor-transition"><span></span></button>`, 4);
|
|
3688
|
+
const $bf7fe049e78f975a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="filters"><div class="body"></div></div>`, 4), $bf7fe049e78f975a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="sorting"><div class="body"></div></div>`, 4), $bf7fe049e78f975a$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"></div></div></div>`, 6), $bf7fe049e78f975a$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="num-filters"></span>`, 2), $bf7fe049e78f975a$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="open-filters-button-container"><button class="filter toggle-button major-minor-transition" type="button"><span></span></button></div>`, 6), $bf7fe049e78f975a$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="toggle-button for-sorting major-minor-transition"><span></span></button>`, 4);
|
|
3689
3689
|
function $bf7fe049e78f975a$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_ }) {
|
|
3690
3690
|
return (0, $a406ebe9523f192f$export$b69d0d92862de18b)({
|
|
3691
3691
|
severity_: "error",
|
|
@@ -3917,7 +3917,7 @@ function $bf7fe049e78f975a$var$OpenSortingButton({ i18n_: i18n_ , current_sortin
|
|
|
3917
3917
|
|
|
3918
3918
|
|
|
3919
3919
|
|
|
3920
|
-
const $4a2667e8d77eb55a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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);
|
|
3920
|
+
const $4a2667e8d77eb55a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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);
|
|
3921
3921
|
function $4a2667e8d77eb55a$export$b23abd26de154ede(props) {
|
|
3922
3922
|
const [is_small, set_is_small] = (0, $g9l4l$createSignal)(true);
|
|
3923
3923
|
(0, $g9l4l$onCleanup)((0, $g9l4l$javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
|
|
@@ -4061,7 +4061,7 @@ function $4a2667e8d77eb55a$var$ActualFloatingButtons({ search_filters_open_: [ge
|
|
|
4061
4061
|
|
|
4062
4062
|
|
|
4063
4063
|
|
|
4064
|
-
const $1b5a927e48d892a1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<nav class="crumbs"></nav>`, 2), $1b5a927e48d892a1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a class="crumb"></a>`, 2), $1b5a927e48d892a1$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="separator"></span>`, 2);
|
|
4064
|
+
const $1b5a927e48d892a1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<nav class="crumbs"></nav>`, 2), $1b5a927e48d892a1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a class="crumb"></a>`, 2), $1b5a927e48d892a1$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="separator"></span>`, 2);
|
|
4065
4065
|
function $1b5a927e48d892a1$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , on_crumb_click_: on_crumb_click_ , i18n_: i18n_ }) {
|
|
4066
4066
|
const placeholder_crumb_data = [
|
|
4067
4067
|
,
|
|
@@ -4131,7 +4131,7 @@ function $1b5a927e48d892a1$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4131
4131
|
|
|
4132
4132
|
|
|
4133
4133
|
|
|
4134
|
-
const $6af87e1502f04aa3$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<nav class="quicklinks"></nav>`, 2), $6af87e1502f04aa3$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div>QuickLinks failed</div>`, 2), $6af87e1502f04aa3$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a class="quicklink"></a>`, 2);
|
|
4134
|
+
const $6af87e1502f04aa3$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<nav class="quicklinks"></nav>`, 2), $6af87e1502f04aa3$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div>QuickLinks failed</div>`, 2), $6af87e1502f04aa3$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a class="quicklink"></a>`, 2);
|
|
4135
4135
|
function $6af87e1502f04aa3$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_ }) {
|
|
4136
4136
|
let scrolling_logic_ran_for_query_id = false;
|
|
4137
4137
|
let last_scroll_position;
|
|
@@ -4441,7 +4441,7 @@ let $01115659405f3c64$export$44dad306455dddf;
|
|
|
4441
4441
|
})($01115659405f3c64$export$44dad306455dddf || ($01115659405f3c64$export$44dad306455dddf = {}));
|
|
4442
4442
|
|
|
4443
4443
|
|
|
4444
|
-
const $1ae892b13d7746ab$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="product-count"> </div>`, 2), $1ae892b13d7746ab$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div></div>`, 2), $1ae892b13d7746ab$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filter-results-for-one-row"></div>`, 2), $1ae892b13d7746ab$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4444
|
+
const $1ae892b13d7746ab$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="product-count"> </div>`, 2), $1ae892b13d7746ab$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div></div>`, 2), $1ae892b13d7746ab$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="filter-results-for-one-row"></div>`, 2), $1ae892b13d7746ab$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4445
4445
|
function $1ae892b13d7746ab$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_ }) {
|
|
4446
4446
|
let results_for;
|
|
4447
4447
|
let only_show_filters_opener_;
|
|
@@ -4870,7 +4870,7 @@ function $c7f938ac40924f3b$export$23fca46f3143581f(component, error_message) {
|
|
|
4870
4870
|
}
|
|
4871
4871
|
|
|
4872
4872
|
|
|
4873
|
-
const $ec52ef1e6c117813$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"></div>`, 2);
|
|
4873
|
+
const $ec52ef1e6c117813$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"></div>`, 2);
|
|
4874
4874
|
const $ec52ef1e6c117813$var$min_products_to_fetch_ = 20;
|
|
4875
4875
|
const $ec52ef1e6c117813$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4876
4876
|
const $ec52ef1e6c117813$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
@@ -5043,7 +5043,7 @@ function $ec52ef1e6c117813$var$get_shared_properties(depict_category) {
|
|
|
5043
5043
|
|
|
5044
5044
|
|
|
5045
5045
|
|
|
5046
|
-
const $6340962f8bafd049$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="category-title"><h2 class="title"></h2><span class="explanation"> — </span></div>`, 6);
|
|
5046
|
+
const $6340962f8bafd049$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="category-title"><h2 class="title"></h2><span class="explanation"> — </span></div>`, 6);
|
|
5047
5047
|
const $6340962f8bafd049$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
5048
5048
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
5049
5049
|
return (()=>{
|
|
@@ -5065,7 +5065,7 @@ const $6340962f8bafd049$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5065
5065
|
|
|
5066
5066
|
|
|
5067
5067
|
|
|
5068
|
-
const $9b693ea3ff420de6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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);
|
|
5068
|
+
const $9b693ea3ff420de6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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);
|
|
5069
5069
|
const $9b693ea3ff420de6$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
5070
5070
|
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_ })=>{
|
|
5071
5071
|
// 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
|
|
@@ -5226,7 +5226,7 @@ async function $80a49d3809ecb080$var$download_categories(tenant, market) {
|
|
|
5226
5226
|
|
|
5227
5227
|
|
|
5228
5228
|
|
|
5229
|
-
const $aaacfac0064e97d9$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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);
|
|
5229
|
+
const $aaacfac0064e97d9$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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);
|
|
5230
5230
|
function $aaacfac0064e97d9$export$ee1733d9a8495996() {
|
|
5231
5231
|
return (()=>{
|
|
5232
5232
|
const _el$ = $aaacfac0064e97d9$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
|
|
@@ -5251,7 +5251,7 @@ function $aaacfac0064e97d9$export$ee1733d9a8495996() {
|
|
|
5251
5251
|
|
|
5252
5252
|
|
|
5253
5253
|
|
|
5254
|
-
const $7a7079d66c12b788$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="parent-title"></span>`, 2), $7a7079d66c12b788$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a class="category-suggestion"><span class="title"></span></a>`, 4);
|
|
5254
|
+
const $7a7079d66c12b788$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="parent-title"></span>`, 2), $7a7079d66c12b788$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a class="category-suggestion"><span class="title"></span></a>`, 4);
|
|
5255
5255
|
function $7a7079d66c12b788$export$d757d54550ebfb3d({ category_suggestion_: category_suggestion_ , on_navigation_: on_navigation_ }) {
|
|
5256
5256
|
return (()=>{
|
|
5257
5257
|
const _el$ = $7a7079d66c12b788$var$_tmpl$2.cloneNode(true), _el$2 = _el$.firstChild;
|
|
@@ -5294,7 +5294,7 @@ function $7a7079d66c12b788$export$d757d54550ebfb3d({ category_suggestion_: categ
|
|
|
5294
5294
|
|
|
5295
5295
|
|
|
5296
5296
|
|
|
5297
|
-
const $6ded59a142c93078$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="back" type="button"></button>`, 2), $6ded59a142c93078$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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);
|
|
5297
|
+
const $6ded59a142c93078$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="back" type="button"></button>`, 2), $6ded59a142c93078$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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);
|
|
5298
5298
|
function $6ded59a142c93078$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_ }) {
|
|
5299
5299
|
let input_field;
|
|
5300
5300
|
(0, $g9l4l$createEffect)((0, $g9l4l$catchify)(async ()=>{
|
|
@@ -5393,7 +5393,7 @@ function $6ded59a142c93078$export$b94867ecbd698f21({ search_field_value_: search
|
|
|
5393
5393
|
|
|
5394
5394
|
|
|
5395
5395
|
|
|
5396
|
-
const $aee0c68312d971f4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="cards"></div>`, 2), $aee0c68312d971f4$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="search-recs"><h3 class="search-recs-title"></h3></div>`, 4), $aee0c68312d971f4$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="show-more major" type="button"></button>`, 2);
|
|
5396
|
+
const $aee0c68312d971f4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="cards"></div>`, 2), $aee0c68312d971f4$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="search-recs"><h3 class="search-recs-title"></h3></div>`, 4), $aee0c68312d971f4$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<button class="show-more major" type="button"></button>`, 2);
|
|
5397
5397
|
const $aee0c68312d971f4$export$1c8c715550dc689d = 2;
|
|
5398
5398
|
function $aee0c68312d971f4$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_ }) {
|
|
5399
5399
|
const [is_showing_something, set_is_showing_something] = (0, $g9l4l$createSignal)(false);
|
|
@@ -5733,7 +5733,7 @@ function $4ad18a8b237ff7f6$export$2542ffb77b620b02(params_to_default_value) {
|
|
|
5733
5733
|
|
|
5734
5734
|
|
|
5735
5735
|
|
|
5736
|
-
const $d3c0043bb23a833f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="orig price"></span>`, 2), $d3c0043bb23a833f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$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), $d3c0043bb23a833f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="tagline"></div>`, 2);
|
|
5736
|
+
const $d3c0043bb23a833f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="orig price"></span>`, 2), $d3c0043bb23a833f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$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), $d3c0043bb23a833f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="tagline"></div>`, 2);
|
|
5737
5737
|
const $d3c0043bb23a833f$export$b05c0ae390cf3e06 = (display_or_variant_container, { i18n: i18n })=>{
|
|
5738
5738
|
const display = (0, $g9l4l$createMemo)(()=>{
|
|
5739
5739
|
const display = display_or_variant_container();
|
|
@@ -5816,7 +5816,7 @@ const $d3c0043bb23a833f$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
5816
5816
|
};
|
|
5817
5817
|
|
|
5818
5818
|
|
|
5819
|
-
const $d811ce622b5b7626$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="instant-results"></div>`, 2);
|
|
5819
|
+
const $d811ce622b5b7626$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="instant-results"></div>`, 2);
|
|
5820
5820
|
function $d811ce622b5b7626$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_ }) {
|
|
5821
5821
|
const max_cards = 4;
|
|
5822
5822
|
const [read_current_instant_query, write_current_instant_query] = (0, $g9l4l$createSignal)("");
|
|
@@ -5954,7 +5954,7 @@ function $d811ce622b5b7626$var$unwrapping_helper(elements) {
|
|
|
5954
5954
|
|
|
5955
5955
|
|
|
5956
5956
|
|
|
5957
|
-
const $ced3551536e52fa1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2), $ced3551536e52fa1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
|
|
5957
|
+
const $ced3551536e52fa1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2), $ced3551536e52fa1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
|
|
5958
5958
|
function $ced3551536e52fa1$export$50b90be27d8502d9(el, [get_style_props, set_style_props], bottom_distance) {
|
|
5959
5959
|
const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
|
|
5960
5960
|
const upper_overflowing_box = $ced3551536e52fa1$var$_tmpl$.cloneNode(true);
|
|
@@ -6038,7 +6038,7 @@ function $8fee64e5ff6fd014$export$91c3b6774e8be0f5({ param_: param_ , value_: va
|
|
|
6038
6038
|
|
|
6039
6039
|
|
|
6040
6040
|
|
|
6041
|
-
const $dd44dd5f5011ac6f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6), $dd44dd5f5011ac6f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a class="item"><div class="left"><span></span></div><button class="delete"></button></a>`, 8);
|
|
6041
|
+
const $dd44dd5f5011ac6f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6), $dd44dd5f5011ac6f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a class="item"><div class="left"><span></span></div><button class="delete"></button></a>`, 8);
|
|
6042
6042
|
function $dd44dd5f5011ac6f$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_ }) {
|
|
6043
6043
|
const has_entries = (0, $g9l4l$createMemo)(()=>previous_searches_().length >= 1);
|
|
6044
6044
|
currently_showing_suggestions_[1]((value)=>{
|
|
@@ -6141,7 +6141,7 @@ function $dd44dd5f5011ac6f$export$a146ac6fa8346a25({ text_: text_ , previous_sea
|
|
|
6141
6141
|
|
|
6142
6142
|
|
|
6143
6143
|
|
|
6144
|
-
const $54eb3ff8b0c7c7b8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="highlighted-part"></span>`, 2), $54eb3ff8b0c7c7b8$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span></span>`, 2);
|
|
6144
|
+
const $54eb3ff8b0c7c7b8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="highlighted-part"></span>`, 2), $54eb3ff8b0c7c7b8$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span></span>`, 2);
|
|
6145
6145
|
function $54eb3ff8b0c7c7b8$export$ba17c5b7e6dda39f({ whole_text_to_display_: whole_text_to_display_memo , searching_for_value_: searching_for_value_memo , class_: class_ }) {
|
|
6146
6146
|
const [get_has_highlighted, set_has_highlighted] = (0, $g9l4l$createSignal)(false);
|
|
6147
6147
|
const text_itself = (0, $g9l4l$createMemo)(()=>(0, $g9l4l$batch)(()=>{
|
|
@@ -6201,7 +6201,7 @@ function $54eb3ff8b0c7c7b8$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
|
|
|
6201
6201
|
}
|
|
6202
6202
|
|
|
6203
6203
|
|
|
6204
|
-
const $f19e81a7eecb0aac$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a class="suggestion"></a>`, 2), $f19e81a7eecb0aac$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="search-icon"></div>`, 2), $f19e81a7eecb0aac$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<span class="type"></span>`, 2), $f19e81a7eecb0aac$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div><span class="value"></span></div>`, 4), $f19e81a7eecb0aac$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<h2 class="text"></h2>`, 2), $f19e81a7eecb0aac$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="suggestion-container query"></div>`, 2), $f19e81a7eecb0aac$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="suggestion-container page"></div>`, 2), $f19e81a7eecb0aac$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="suggestions"></div>`, 2);
|
|
6204
|
+
const $f19e81a7eecb0aac$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a class="suggestion"></a>`, 2), $f19e81a7eecb0aac$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="search-icon"></div>`, 2), $f19e81a7eecb0aac$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<span class="type"></span>`, 2), $f19e81a7eecb0aac$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div><span class="value"></span></div>`, 4), $f19e81a7eecb0aac$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<h2 class="text"></h2>`, 2), $f19e81a7eecb0aac$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="suggestion-container query"></div>`, 2), $f19e81a7eecb0aac$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="suggestion-container page"></div>`, 2), $f19e81a7eecb0aac$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="suggestions"></div>`, 2);
|
|
6205
6205
|
function $f19e81a7eecb0aac$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_ }) {
|
|
6206
6206
|
const queries_memo = (0, $g9l4l$createMemo)(()=>suggestion_memo_().filter(({ type: type , title: title })=>type === (0, $c7bc9269d29d4bdc$export$3cf9497e790da491) && !filtered_previous_searches_().includes(title) // don't show the ones we already show from the history
|
|
6207
6207
|
));
|
|
@@ -6413,7 +6413,7 @@ function $f19e81a7eecb0aac$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
|
|
|
6413
6413
|
|
|
6414
6414
|
|
|
6415
6415
|
|
|
6416
|
-
const $a817d06dc1c5911c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<a target="_blank"></a>`, 2);
|
|
6416
|
+
const $a817d06dc1c5911c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<a target="_blank"></a>`, 2);
|
|
6417
6417
|
function $a817d06dc1c5911c$export$217899a935ef803b({ selected_index_: [read_selected_index, write_selected_index] , currently_showing_suggestions_: [read_currently_showing_suggestions] , ...rest_of_props }) {
|
|
6418
6418
|
const last_suggestion_index_ = (0, $g9l4l$createMemo)(()=>{
|
|
6419
6419
|
const currently_showing_suggestions = read_currently_showing_suggestions();
|
|
@@ -6719,7 +6719,7 @@ const $246aa49a8f85c7f3$export$1233ca167bf71f9a = (styles)=>{
|
|
|
6719
6719
|
|
|
6720
6720
|
|
|
6721
6721
|
|
|
6722
|
-
const $b24f16c875c2baa6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<style></style>`, 2);
|
|
6722
|
+
const $b24f16c875c2baa6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<style></style>`, 2);
|
|
6723
6723
|
function $b24f16c875c2baa6$export$f021bdedd3ec901a(props) {
|
|
6724
6724
|
const valid_css_string = (0, $g9l4l$createMemo)(()=>{
|
|
6725
6725
|
return (0, $246aa49a8f85c7f3$export$1233ca167bf71f9a)(props.styles());
|
|
@@ -6732,7 +6732,7 @@ function $b24f16c875c2baa6$export$f021bdedd3ec901a(props) {
|
|
|
6732
6732
|
}
|
|
6733
6733
|
|
|
6734
6734
|
|
|
6735
|
-
const $a9f6faeac82c322b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $a9f6faeac82c322b$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<b></b>`, 2), $a9f6faeac82c322b$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $a9f6faeac82c322b$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6735
|
+
const $a9f6faeac82c322b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $a9f6faeac82c322b$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<b></b>`, 2), $a9f6faeac82c322b$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $a9f6faeac82c322b$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6736
6736
|
function $a9f6faeac82c322b$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, $g9l4l$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_ }) {
|
|
6737
6737
|
let on_enter_in_search_field_function;
|
|
6738
6738
|
const [input_field, set_input_field] = (0, $g9l4l$createSignal)();
|
|
@@ -6919,7 +6919,7 @@ function $a9f6faeac82c322b$var$close_modal_when_navigating_away(close_modal, sea
|
|
|
6919
6919
|
|
|
6920
6920
|
|
|
6921
6921
|
|
|
6922
|
-
const $71cf2f71a46bffea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="category-suggestions"></div>`, 2), $71cf2f71a46bffea$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="category-suggestion"></div>`, 2);
|
|
6922
|
+
const $71cf2f71a46bffea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="category-suggestions"></div>`, 2), $71cf2f71a46bffea$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="category-suggestion"></div>`, 2);
|
|
6923
6923
|
function $71cf2f71a46bffea$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children , selected_filters_: selected_filters_ , slider_arrow_button_: slider_arrow_button_ }) {
|
|
6924
6924
|
const category_suggestions_ = (0, $g9l4l$createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
|
|
6925
6925
|
return (0, $g9l4l$createComponent)((0, $g9l4l$Show), {
|
|
@@ -6973,7 +6973,7 @@ function $71cf2f71a46bffea$export$c05a196222ba1302({ suggestions_: suggestions_
|
|
|
6973
6973
|
|
|
6974
6974
|
|
|
6975
6975
|
|
|
6976
|
-
const $57ec75eac12fe1fc$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<b></b>`, 2), $57ec75eac12fe1fc$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="results-for"></div>`, 2);
|
|
6976
|
+
const $57ec75eac12fe1fc$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<b></b>`, 2), $57ec75eac12fe1fc$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="results-for"></div>`, 2);
|
|
6977
6977
|
function $57ec75eac12fe1fc$export$9dd50d35b9d94fdf({ search_query_: search_query_ , i18n_: i18n_ , formatted_number_of_results_: formatted_number_of_results_ }) {
|
|
6978
6978
|
const contents = (0, $g9l4l$createMemo)((0, $g9l4l$catchify)(()=>{
|
|
6979
6979
|
const q = search_query_[0]();
|
|
@@ -7001,7 +7001,7 @@ function $57ec75eac12fe1fc$export$9dd50d35b9d94fdf({ search_query_: search_query
|
|
|
7001
7001
|
|
|
7002
7002
|
|
|
7003
7003
|
|
|
7004
|
-
const $b76e8f62b1f313ef$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filter-results-for-one-row"></div>`, 2), $b76e8f62b1f313ef$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"><div class="listing-page"></div></div>`, 4);
|
|
7004
|
+
const $b76e8f62b1f313ef$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="filter-results-for-one-row"></div>`, 2), $b76e8f62b1f313ef$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"><div class="listing-page"></div></div>`, 4);
|
|
7005
7005
|
function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
7006
7006
|
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;
|
|
7007
7007
|
const tenant_object_ = new (0, $g9l4l$Tenant)({
|
|
@@ -7315,7 +7315,7 @@ function $a79ffb1cbfbd2a09$export$828dcdd425fd3231(aligner) {
|
|
|
7315
7315
|
}
|
|
7316
7316
|
|
|
7317
7317
|
|
|
7318
|
-
const $540e930c58500cbe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"></div>`, 2);
|
|
7318
|
+
const $540e930c58500cbe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*//*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"></div>`, 2);
|
|
7319
7319
|
/**
|
|
7320
7320
|
* 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.
|
|
7321
7321
|
*/ const $540e930c58500cbe$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
@@ -7751,11 +7751,22 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7751
7751
|
#disconnect_observer;
|
|
7752
7752
|
#revert_fns = [];
|
|
7753
7753
|
#is_open = false;
|
|
7754
|
+
static #reverting_permitted = true;
|
|
7755
|
+
static #visited_urls = (()=>{
|
|
7756
|
+
// 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).
|
|
7757
|
+
(0, $g9l4l$catchify)(async ()=>{
|
|
7758
|
+
// Static initialization blocks aren't supported in MobileSafari yet, otherwise this would be one.
|
|
7759
|
+
// 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).
|
|
7760
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks
|
|
7761
|
+
for await (const href of (0, $g9l4l$href_change_ipns))$ba6c9609228edf6b$export$3ccaa27d81dd8556.#visited_urls.add($ba6c9609228edf6b$var$clean_url(href));
|
|
7762
|
+
})();
|
|
7763
|
+
return new Set();
|
|
7764
|
+
})();
|
|
7754
7765
|
get open_() {
|
|
7755
7766
|
// make this "readonly" from the outside, the only way to open is by making the url change so that is_page_ returns true
|
|
7756
7767
|
return this.#is_open;
|
|
7757
7768
|
}
|
|
7758
|
-
#listen
|
|
7769
|
+
async #listen() {
|
|
7759
7770
|
const [exit_ipns, exitable_ipns] = (0, $g9l4l$make_asyncIterable_exiter)((0, $g9l4l$href_change_ipns));
|
|
7760
7771
|
this.#stop_listening = exit_ipns;
|
|
7761
7772
|
const caught_page_check_fn = (0, $g9l4l$catchify)(this.is_page_, "page check failed");
|
|
@@ -7770,7 +7781,7 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7770
7781
|
if (!els?.length) continue;
|
|
7771
7782
|
this.#load(els);
|
|
7772
7783
|
}
|
|
7773
|
-
}
|
|
7784
|
+
}
|
|
7774
7785
|
#get_rendered_recs() {
|
|
7775
7786
|
return (0, $g9l4l$createRoot)((dispose)=>{
|
|
7776
7787
|
this.addEventListener("close", dispose, {
|
|
@@ -7782,7 +7793,7 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7782
7793
|
#unload = (0, $g9l4l$catchify)(()=>{
|
|
7783
7794
|
if (!this.#is_open) return;
|
|
7784
7795
|
this.#disconnect_observer?.();
|
|
7785
|
-
while(this.#revert_fns.length)this.#revert_fns.pop()?.();
|
|
7796
|
+
if ($ba6c9609228edf6b$export$3ccaa27d81dd8556.#reverting_permitted) while(this.#revert_fns.length)this.#revert_fns.pop()?.();
|
|
7786
7797
|
this.#is_open = false;
|
|
7787
7798
|
this.dispatchEvent(new CustomEvent("close"));
|
|
7788
7799
|
}, "failed to close page");
|
|
@@ -7826,8 +7837,42 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7826
7837
|
document.title = this.title_;
|
|
7827
7838
|
this.#revert_fns.push(()=>document.title = title);
|
|
7828
7839
|
}
|
|
7840
|
+
this.#empty_page_bugfix();
|
|
7829
7841
|
this.dispatchEvent(new CustomEvent("open")); // we dispatch this once it's actually open
|
|
7830
7842
|
}, "failed to open page");
|
|
7843
|
+
#empty_page_bugfix() {
|
|
7844
|
+
// Called when a "page" is "opened" using PageReplacer
|
|
7845
|
+
const on_popstate = ()=>{
|
|
7846
|
+
const cleaned_current_url = $ba6c9609228edf6b$var$clean_url(location.href);
|
|
7847
|
+
if (!$ba6c9609228edf6b$export$3ccaa27d81dd8556.#visited_urls.has(cleaned_current_url)) {
|
|
7848
|
+
/*
|
|
7849
|
+
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).
|
|
7850
|
+
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.
|
|
7851
|
+
The reproduction is this:
|
|
7852
|
+
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.
|
|
7853
|
+
1. Go to a product page like https://ehandel.spendrups.se/Product/1104201
|
|
7854
|
+
2. Make a search
|
|
7855
|
+
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
|
|
7856
|
+
3. Try going back just for fun
|
|
7857
|
+
Everything works as expected
|
|
7858
|
+
4. Go forwards again (just for fun, skip this if you skipped 3)
|
|
7859
|
+
Now the trouble comes when we introduce "hard" navigation.
|
|
7860
|
+
5. Click on a search result. The browser will now "hard" navigate to a new page.
|
|
7861
|
+
6. Click "back"
|
|
7862
|
+
What happens now, is that the browser hard-navigates to /start/search.
|
|
7863
|
+
7. Click "back" again
|
|
7864
|
+
What happens now, is that the browser "soft-navigates" (just changes the URL) to https://ehandel.spendrups.se/Product/1104201
|
|
7865
|
+
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.
|
|
7866
|
+
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.
|
|
7867
|
+
*/ (0, $g9l4l$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");
|
|
7868
|
+
location.reload();
|
|
7869
|
+
$ba6c9609228edf6b$export$3ccaa27d81dd8556.#reverting_permitted = false; // Disallow any reverting since we can't - it would flash a white page until the reload has finished.
|
|
7870
|
+
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.
|
|
7871
|
+
}
|
|
7872
|
+
};
|
|
7873
|
+
(0, $g9l4l$instant_exec_on_popstate_before_ipns_update).add(on_popstate);
|
|
7874
|
+
this.#revert_fns.push(()=>(0, $g9l4l$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
|
|
7875
|
+
}
|
|
7831
7876
|
destroy_() {
|
|
7832
7877
|
this.#unload();
|
|
7833
7878
|
this.#stop_listening?.();
|
|
@@ -7841,6 +7886,15 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7841
7886
|
], "error"));
|
|
7842
7887
|
}
|
|
7843
7888
|
}
|
|
7889
|
+
/**
|
|
7890
|
+
* Remove hash from URL
|
|
7891
|
+
*/ function $ba6c9609228edf6b$var$clean_url(url) {
|
|
7892
|
+
// Would want to have this a static private function on PageReplacer, but that's not supported in MobileSafari yet
|
|
7893
|
+
// remove hash, all other params *could* trigger a re-request
|
|
7894
|
+
const url_object = new URL(url);
|
|
7895
|
+
url_object.hash = "";
|
|
7896
|
+
return url_object.href;
|
|
7897
|
+
}
|
|
7844
7898
|
|
|
7845
7899
|
|
|
7846
7900
|
(0, $g9l4l$add_to_version_info)("ui", (0, $18bf1d29fb889cca$export$83d89fbfd8236492));
|