@depict-ai/ui 0.0.51 → 0.0.52
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 +24 -3
- package/dist/main.js +97 -53
- package/dist/module.js +97 -54
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$
|
|
|
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.52";
|
|
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__
|
|
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);
|
|
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__
|
|
562
|
+
const $886fa987db4f3805$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div></div>`, 2);
|
|
563
563
|
const $886fa987db4f3805$var$closing_functions = /*@__PURE__*/ new Set();
|
|
564
|
-
const $886fa987db4f3805$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__
|
|
564
|
+
const $886fa987db4f3805$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
1118
|
+
const $a04dda00e2984628$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
1559
|
+
const $9e6544e509214c47$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
1578
|
+
const $5be19bd31e1c92fe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
2050
|
+
const $ec5682ee833a8bee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
2569
|
+
const $b114513503b25433$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
2905
|
+
const $7c4a8499f0ad6e11$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
3017
|
+
const $a406ebe9523f192f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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
|
,
|
|
@@ -4092,7 +4092,7 @@ function $1b5a927e48d892a1$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4092
4092
|
},
|
|
4093
4093
|
get children () {
|
|
4094
4094
|
const _el$2 = $1b5a927e48d892a1$var$_tmpl$2.cloneNode(true);
|
|
4095
|
-
(0, $g9l4l$addEventListener)(_el$2, "click", (0, $g9l4l$catchify)((ev)=>on_crumb_click_
|
|
4095
|
+
(0, $g9l4l$addEventListener)(_el$2, "click", (0, $g9l4l$catchify)((ev)=>on_crumb_click_(ev, display_accessor())), true);
|
|
4096
4096
|
(0, $g9l4l$insert)(_el$2, ()=>display_accessor().title);
|
|
4097
4097
|
(0, $g9l4l$effect)(()=>(0, $g9l4l$setAttribute)(_el$2, "href", display_accessor().page_url));
|
|
4098
4098
|
return _el$2;
|
|
@@ -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__
|
|
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);
|
|
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;
|
|
@@ -4259,7 +4259,7 @@ function $6af87e1502f04aa3$export$466cdc317043f6cb({ quicklinks_data_: quicklink
|
|
|
4259
4259
|
const _el$3 = $6af87e1502f04aa3$var$_tmpl$3.cloneNode(true);
|
|
4260
4260
|
(0, $g9l4l$addEventListener)(_el$3, "click", (0, $g9l4l$catchify)((ev)=>{
|
|
4261
4261
|
if (is_selected() && !ev.metaKey && !ev.ctrlKey && !ev.button) ev.preventDefault();
|
|
4262
|
-
else if (display_accessor()) on_link_click_
|
|
4262
|
+
else if (display_accessor()) on_link_click_(ev, display_accessor());
|
|
4263
4263
|
}), true);
|
|
4264
4264
|
(0, $g9l4l$insert)(_el$3, ()=>display_accessor()?.title || (0, $g9l4l$createComponent)((0, $g9l4l$Placeholder), {
|
|
4265
4265
|
height: "1em",
|
|
@@ -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__
|
|
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);
|
|
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__
|
|
4873
|
+
const $ec52ef1e6c117813$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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 })=>(()=>{
|
|
@@ -4927,7 +4927,7 @@ class $ec52ef1e6c117813$export$f34314aa9505732e {
|
|
|
4927
4927
|
category_scroll_restoration_data: []
|
|
4928
4928
|
}));
|
|
4929
4929
|
const i18n_ = (0, $0466953901b38f18$export$f091cbac892643a4)(this.#locale_signal[0]);
|
|
4930
|
-
const on_category_link_click_ =
|
|
4930
|
+
const on_category_link_click_ = (e, d)=>{
|
|
4931
4931
|
if (e.button || e.metaKey || e.ctrlKey) // Not single page navigating because button is not 0 or ctrl/command click
|
|
4932
4932
|
return;
|
|
4933
4933
|
try {
|
|
@@ -4941,7 +4941,7 @@ class $ec52ef1e6c117813$export$f34314aa9505732e {
|
|
|
4941
4941
|
throw e;
|
|
4942
4942
|
});
|
|
4943
4943
|
}
|
|
4944
|
-
}
|
|
4944
|
+
};
|
|
4945
4945
|
$ec52ef1e6c117813$var$privately_shared_properties.set(this, {
|
|
4946
4946
|
state_: state_,
|
|
4947
4947
|
breadcrumb_signal_: (0, $g9l4l$createSignal)(),
|
|
@@ -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__
|
|
5046
|
+
const $6340962f8bafd049$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
5819
|
+
const $d811ce622b5b7626$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
6416
|
+
const $a817d06dc1c5911c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
6722
|
+
const $b24f16c875c2baa6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
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);
|
|
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__
|
|
7318
|
+
const $540e930c58500cbe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__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();
|
|
@@ -7691,6 +7691,47 @@ function $540e930c58500cbe$var$align_field_modal(style_props_, input, aligner_re
|
|
|
7691
7691
|
|
|
7692
7692
|
|
|
7693
7693
|
|
|
7694
|
+
const $7cbfd6122dbaf087$export$d86a33413558014e = (openModalParams)=>{
|
|
7695
|
+
const { search: search } = openModalParams;
|
|
7696
|
+
openModalParams.location ||= "centered";
|
|
7697
|
+
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
7698
|
+
if (openModalParams.location !== "aligned") {
|
|
7699
|
+
// Open centered modal
|
|
7700
|
+
search.modal_open = true;
|
|
7701
|
+
return;
|
|
7702
|
+
}
|
|
7703
|
+
const alignment_height = openModalParams.element?.clientHeight;
|
|
7704
|
+
if (isNaN(alignment_height)) {
|
|
7705
|
+
// Open centered modal
|
|
7706
|
+
search.modal_open = true;
|
|
7707
|
+
return;
|
|
7708
|
+
}
|
|
7709
|
+
const { cleanup: cleanup } = (0, $a79ffb1cbfbd2a09$export$828dcdd425fd3231)(openModalParams.element);
|
|
7710
|
+
let dispose_aligner;
|
|
7711
|
+
/**
|
|
7712
|
+
* Setting position to fixed is important to make the modal work with align_field.
|
|
7713
|
+
*/ const style_props_ = (0, $g9l4l$createSignal)({
|
|
7714
|
+
position: "fixed"
|
|
7715
|
+
});
|
|
7716
|
+
(0, $g9l4l$createRoot)((dispose)=>{
|
|
7717
|
+
dispose_aligner = ()=>{
|
|
7718
|
+
cleanup();
|
|
7719
|
+
dispose();
|
|
7720
|
+
};
|
|
7721
|
+
(0, $079defea521d5e2a$export$b3ad617e9036868)(style_props_, openModalParams.element, undefined, false, "top");
|
|
7722
|
+
});
|
|
7723
|
+
search.modal_open = [
|
|
7724
|
+
{
|
|
7725
|
+
style_props_: style_props_
|
|
7726
|
+
},
|
|
7727
|
+
dispose_aligner
|
|
7728
|
+
];
|
|
7729
|
+
};
|
|
7730
|
+
|
|
7731
|
+
|
|
7732
|
+
|
|
7733
|
+
|
|
7734
|
+
|
|
7694
7735
|
|
|
7695
7736
|
|
|
7696
7737
|
function $a3e81b85527bc866$export$d0596b5cae35ad4(open_search) {
|
|
@@ -7746,6 +7787,7 @@ function $36316d7b4c897a03$export$689e204eadb33baf(pr) {
|
|
|
7746
7787
|
|
|
7747
7788
|
|
|
7748
7789
|
|
|
7790
|
+
|
|
7749
7791
|
class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
7750
7792
|
#stop_listening;
|
|
7751
7793
|
#disconnect_observer;
|
|
@@ -7877,13 +7919,14 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7877
7919
|
this.#unload();
|
|
7878
7920
|
this.#stop_listening?.();
|
|
7879
7921
|
}
|
|
7880
|
-
constructor(options){
|
|
7922
|
+
constructor({ is_spa_: is_spa_ , ...options }){
|
|
7881
7923
|
super();
|
|
7882
7924
|
Object.assign(this, options);
|
|
7883
7925
|
this.#listen().catch((e)=>(0, $g9l4l$report)([
|
|
7884
7926
|
e,
|
|
7885
7927
|
"Error listening to URL change"
|
|
7886
7928
|
], "error"));
|
|
7929
|
+
if (!is_spa_) (0, $36316d7b4c897a03$export$689e204eadb33baf)(this); // Make so that clicking on links to the previous page work instantly
|
|
7887
7930
|
}
|
|
7888
7931
|
}
|
|
7889
7932
|
/**
|
|
@@ -7900,4 +7943,4 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7900
7943
|
(0, $g9l4l$add_to_version_info)("ui", (0, $18bf1d29fb889cca$export$83d89fbfd8236492));
|
|
7901
7944
|
|
|
7902
7945
|
|
|
7903
|
-
export {$e95f1855a5e3864f$export$58e808b1db15d3bc as fetchDepictRecommendations, $ec52ef1e6c117813$export$de035477d6fef996 as QuickLinks, $ec52ef1e6c117813$export$5b7c3ce0ebe51f86 as BreadCrumbs, $6340962f8bafd049$export$b91cec6bdc6b32a1 as CategoryTitle, $9b693ea3ff420de6$export$824dde41348efed1 as embedded_num_products, $80a49d3809ecb080$export$643598a327b5833e as get_categories, $ec52ef1e6c117813$export$f34314aa9505732e as DepictCategory, $ec52ef1e6c117813$export$e2bf8ce7779e827e as CategoryPage, $540e930c58500cbe$export$ac6237957a15b3f0 as DepictSearch, $540e930c58500cbe$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $540e930c58500cbe$export$f2dc7e4e4aa11abb as SearchPage, $540e930c58500cbe$export$316f6f283ae64765 as SearchField, $aaacfac0064e97d9$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $079defea521d5e2a$export$b3ad617e9036868 as align_field, $246aa49a8f85c7f3$export$1233ca167bf71f9a as styles_to_valid_css_string, $a1123c5ed9b0ee29$export$fe334901e8bebd57 as disable_scrolling, $a3e81b85527bc866$export$d0596b5cae35ad4 as open_search_with_shift_slash, $972ebf2641490830$export$26df08e242fe83a3 as push_state_with_query_param_value, $3846bb34098c738f$export$e015ed2f2950f2e3 as DepictAPI, $fefe7683325039b3$export$d9f36cf74e24d595 as media_query_to_accessor, $36316d7b4c897a03$export$689e204eadb33baf as setup_fast_leave, $886fa987db4f3805$export$5196e4c01fa56fcb as show_toast, $5178263ed1e394ca$export$469c7af753d08925 as solid_format_price, $a79ffb1cbfbd2a09$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $ba6c9609228edf6b$export$3ccaa27d81dd8556 as PageReplacer, $18bf1d29fb889cca$export$83d89fbfd8236492 as version};
|
|
7946
|
+
export {$e95f1855a5e3864f$export$58e808b1db15d3bc as fetchDepictRecommendations, $ec52ef1e6c117813$export$de035477d6fef996 as QuickLinks, $ec52ef1e6c117813$export$5b7c3ce0ebe51f86 as BreadCrumbs, $6340962f8bafd049$export$b91cec6bdc6b32a1 as CategoryTitle, $9b693ea3ff420de6$export$824dde41348efed1 as embedded_num_products, $80a49d3809ecb080$export$643598a327b5833e as get_categories, $ec52ef1e6c117813$export$f34314aa9505732e as DepictCategory, $ec52ef1e6c117813$export$e2bf8ce7779e827e as CategoryPage, $540e930c58500cbe$export$ac6237957a15b3f0 as DepictSearch, $540e930c58500cbe$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $540e930c58500cbe$export$f2dc7e4e4aa11abb as SearchPage, $540e930c58500cbe$export$316f6f283ae64765 as SearchField, $7cbfd6122dbaf087$export$d86a33413558014e as open_modal_with_alignment, $aaacfac0064e97d9$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $079defea521d5e2a$export$b3ad617e9036868 as align_field, $246aa49a8f85c7f3$export$1233ca167bf71f9a as styles_to_valid_css_string, $a1123c5ed9b0ee29$export$fe334901e8bebd57 as disable_scrolling, $a3e81b85527bc866$export$d0596b5cae35ad4 as open_search_with_shift_slash, $972ebf2641490830$export$26df08e242fe83a3 as push_state_with_query_param_value, $3846bb34098c738f$export$e015ed2f2950f2e3 as DepictAPI, $fefe7683325039b3$export$d9f36cf74e24d595 as media_query_to_accessor, $36316d7b4c897a03$export$689e204eadb33baf as setup_fast_leave, $886fa987db4f3805$export$5196e4c01fa56fcb as show_toast, $5178263ed1e394ca$export$469c7af753d08925 as solid_format_price, $a79ffb1cbfbd2a09$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $ba6c9609228edf6b$export$3ccaa27d81dd8556 as PageReplacer, $18bf1d29fb889cca$export$83d89fbfd8236492 as version};
|