@depict-ai/ui 0.0.51 → 0.0.53
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 +98 -54
- package/dist/module.js +98 -55
- package/package.json +3 -3
- package/dist/typescript_schema/BaseSearchRequest.d.ts +0 -197
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +0 -14
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +0 -10
- package/dist/typescript_schema/ProductListingRequest.d.ts +0 -221
- package/dist/typescript_schema/ProductListingResponse.d.ts +0 -232
- package/dist/typescript_schema/RecommendResponse.d.ts +0 -15
- package/dist/typescript_schema/SearchRequest.d.ts +0 -213
- package/dist/typescript_schema/SearchResponse.d.ts +0 -192
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +0 -18
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +0 -182
- package/dist/typescript_schema/TrackV2Request.d.ts +0 -115
package/dist/main.js
CHANGED
|
@@ -18,6 +18,7 @@ $parcel$export(module.exports, "DepictSearch", () => $79fbf145b15af988$export$ac
|
|
|
18
18
|
$parcel$export(module.exports, "get_search_query_updating_blocked_signal", () => $79fbf145b15af988$export$bde3eb976dfded9);
|
|
19
19
|
$parcel$export(module.exports, "SearchPage", () => $79fbf145b15af988$export$f2dc7e4e4aa11abb);
|
|
20
20
|
$parcel$export(module.exports, "SearchField", () => $79fbf145b15af988$export$316f6f283ae64765);
|
|
21
|
+
$parcel$export(module.exports, "open_modal_with_alignment", () => $9c5a1d57540c06e5$export$d86a33413558014e);
|
|
21
22
|
$parcel$export(module.exports, "DefaultInstantCardPlaceholder", () => $17c49340edfdbb31$export$ee1733d9a8495996);
|
|
22
23
|
$parcel$export(module.exports, "align_field", () => $67b60b572b7b7059$export$b3ad617e9036868);
|
|
23
24
|
$parcel$export(module.exports, "styles_to_valid_css_string", () => $d3c94b3b96557917$export$1233ca167bf71f9a);
|
|
@@ -32,7 +33,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
32
33
|
$parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
|
|
33
34
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
34
35
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
35
|
-
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
36
|
+
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.53";
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
|
|
@@ -316,7 +317,7 @@ function $5fc9fc23df1591db$export$469c7af753d08925({ price_: price_ , price_form
|
|
|
316
317
|
}
|
|
317
318
|
|
|
318
319
|
|
|
319
|
-
const $08fa9d20f7ec85af$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
320
|
+
const $08fa9d20f7ec85af$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="scroll-status" style="display:none"><span class="text"><b></b> – <b></b> <!> <b></b></span></div>`, 11);
|
|
320
321
|
function $08fa9d20f7ec85af$export$83fd5de5504a7a67({ formatted_number_of_results_: formatted_number_of_results_ , first_result_in_viewport_: [get_first_result_in_viewport] , last_result_in_viewport_: [get_last_result_in_viewport] , number_of_results_: number_of_results_ , i18n_: { price_formatting_: price_formatting_ , of_: of_ } }) {
|
|
321
322
|
const [first_to_show, set_first_to_show] = (0, $46MJV$solidjs.createSignal)(0);
|
|
322
323
|
const [last_to_show, set_last_to_show] = (0, $46MJV$solidjs.createSignal)(0);
|
|
@@ -589,9 +590,9 @@ async function $6154d0a3d9e9b16e$var$load_more({ depict_api_: depict_api_ , quer
|
|
|
589
590
|
|
|
590
591
|
|
|
591
592
|
|
|
592
|
-
const $b3e6a0e9382bf87e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
593
|
+
const $b3e6a0e9382bf87e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
593
594
|
const $b3e6a0e9382bf87e$var$closing_functions = /*@__PURE__*/ new Set();
|
|
594
|
-
const $b3e6a0e9382bf87e$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__
|
|
595
|
+
const $b3e6a0e9382bf87e$export$22970a0140fc759c = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjs.createSignal)(false);
|
|
595
596
|
function $b3e6a0e9382bf87e$export$5196e4c01fa56fcb({ children: children , on_close_: on_close_ , close_after_: close_after_ , ...more_attributes }) {
|
|
596
597
|
let close_toast_;
|
|
597
598
|
const stay_open_promise = new Promise((r)=>close_toast_ = r);
|
|
@@ -695,7 +696,7 @@ function $b3e6a0e9382bf87e$export$5196e4c01fa56fcb({ children: children , on_clo
|
|
|
695
696
|
|
|
696
697
|
|
|
697
698
|
|
|
698
|
-
const $92e4e7906daa1ff8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
699
|
+
const $92e4e7906daa1ff8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="statement"></div>`, 2), $92e4e7906daa1ff8$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="buttons"><button class="restore minor"></button><button class="ok major"></button></div>`, 6);
|
|
699
700
|
function $92e4e7906daa1ff8$export$8895d39404bd2bb1(props) {
|
|
700
701
|
let previous_sorting;
|
|
701
702
|
let on_toast_hidden;
|
|
@@ -773,7 +774,7 @@ function $92e4e7906daa1ff8$export$8895d39404bd2bb1(props) {
|
|
|
773
774
|
|
|
774
775
|
|
|
775
776
|
|
|
776
|
-
const $2b4e3538e183d885$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
777
|
+
const $2b4e3538e183d885$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="hint" href="javascript:void(0)"></a>`, 2), $2b4e3538e183d885$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="no-results"><div class="text"></div></div>`, 4);
|
|
777
778
|
function $2b4e3538e183d885$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ }) {
|
|
778
779
|
return [
|
|
779
780
|
(()=>{
|
|
@@ -816,7 +817,7 @@ function $8e863dc22b06b688$export$a2cc176055f8f08() {
|
|
|
816
817
|
}
|
|
817
818
|
|
|
818
819
|
|
|
819
|
-
const $8d94abc871e13baf$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
820
|
+
const $8d94abc871e13baf$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="PLP-results"></div>`, 2), $8d94abc871e13baf$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="cards"></div>`, 2);
|
|
820
821
|
let $8d94abc871e13baf$var$cached_placeholder_element;
|
|
821
822
|
function $8d94abc871e13baf$export$3925f87b1545cfc6({ plp_results_: plp_results_ , depict_api_: depict_api_ , all_products_loaded_: all_products_loaded_ , min_products_to_fetch_: min_products_to_fetch_ , query_base_: query_base_ , first_result_in_viewport_: first_result_in_viewport_ , last_result_in_viewport_: last_result_in_viewport_ , scroll_restoration_data_: scroll_restoration_data_ , no_results_options_: no_results_options_ , desktop_filter_elements_: desktop_filter_elements_ , sort_or_filter_open_: sort_or_filter_open_ , rr_options_: rr_options_ , layout_options_: layout_options_ , tenant_object_: tenant_object_ , type_for_tracking_: type_for_tracking_ , id_currently_querying_for_: id_currently_querying_for_ }) {
|
|
822
823
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
@@ -1145,7 +1146,7 @@ function $557269f7f9c4f20e$export$e13dddbb31c3a42f() {
|
|
|
1145
1146
|
|
|
1146
1147
|
|
|
1147
1148
|
|
|
1148
|
-
const $e0eca8b257376d22$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1149
|
+
const $e0eca8b257376d22$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
1149
1150
|
function $e0eca8b257376d22$export$6649caad96ef8870({ children: children , button_: button_ , slider_ref_: slider_ref_ , faded_opacity_: faded_opacity_ = 0.7 , mutation_plugins_: mutation_plugins_ = [] }) {
|
|
1150
1151
|
const slider = new (0, $46MJV$depictaiutilishared.Amazing_Slider)({
|
|
1151
1152
|
button_contents: {
|
|
@@ -1183,7 +1184,7 @@ function $e0eca8b257376d22$export$6649caad96ef8870({ children: children , button
|
|
|
1183
1184
|
|
|
1184
1185
|
|
|
1185
1186
|
|
|
1186
|
-
const $c130252ae1aed6e2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1187
|
+
const $c130252ae1aed6e2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-all-filters minor"></button>`, 2), $c130252ae1aed6e2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="inner"><span class="title">: </span></div>`, 4), $c130252ae1aed6e2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-filter major"><span> – </span></button>`, 4), $c130252ae1aed6e2$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-filter major"><span></span></button>`, 4);
|
|
1187
1188
|
function $c130252ae1aed6e2$export$fecbb157621501bd({ number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: [read_local_filter_cache] , search_filters_open_: [read_search_filters_open] , search_sorting_open_: [read_search_sorting_open] , slider_arrow_button_: slider_arrow_button_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
|
|
1188
1189
|
const { price_formatting_: price_formatting_ } = i18n_;
|
|
1189
1190
|
const [read_selected_filters, write_selected_filters] = selected_filters_;
|
|
@@ -1526,7 +1527,7 @@ async function $089c01924e13fae5$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
1526
1527
|
|
|
1527
1528
|
|
|
1528
1529
|
|
|
1529
|
-
const $009b5e9a48f61fee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1530
|
+
const $009b5e9a48f61fee$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="count"></span>`, 2), $009b5e9a48f61fee$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<label class="input-row"><div class="left"><input type="checkbox"><span class="custom-indicator"></span><span class="text"></span></div></label>`, 9);
|
|
1530
1531
|
const $009b5e9a48f61fee$export$48513f6b9f8ce62d = (props)=>{
|
|
1531
1532
|
// It seems like there's no diffing without memos here (since we often just have computations in the getters above that update to the same result often because their dependencies change with unrelated changes often), so put memos here to avoid unneeded DOM changes
|
|
1532
1533
|
const count = (0, $46MJV$solidjs.createMemo)(()=>props.count_);
|
|
@@ -1586,7 +1587,7 @@ const $009b5e9a48f61fee$export$48513f6b9f8ce62d = (props)=>{
|
|
|
1586
1587
|
|
|
1587
1588
|
|
|
1588
1589
|
|
|
1589
|
-
const $76bb4acbbb94c2c6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1590
|
+
const $76bb4acbbb94c2c6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button type="button" class="expand-filter"><span></span></button>`, 4);
|
|
1590
1591
|
function $76bb4acbbb94c2c6$export$ca21a16d65b3dd8({ show_extras_: [get_show_extras, set_show_extras] , i18n_: i18n_ }) {
|
|
1591
1592
|
return (()=>{
|
|
1592
1593
|
const _el$ = $76bb4acbbb94c2c6$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild;
|
|
@@ -1605,7 +1606,7 @@ function $76bb4acbbb94c2c6$export$ca21a16d65b3dd8({ show_extras_: [get_show_extr
|
|
|
1605
1606
|
]);
|
|
1606
1607
|
|
|
1607
1608
|
|
|
1608
|
-
const $8984a0a949b1c852$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1609
|
+
const $8984a0a949b1c852$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkboxes"></form>`, 2);
|
|
1609
1610
|
const $8984a0a949b1c852$var$max_visible_without_collapsing = 7;
|
|
1610
1611
|
const $8984a0a949b1c852$var$show_non_collapsible_when_collapsed = 4;
|
|
1611
1612
|
function $8984a0a949b1c852$export$dd948f91abc3a1c4({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] , i18n_: i18n_ , view_more_button_below_group_: [_get_view_more_button_below_group_, set_view_more_button_below_group_] }) {
|
|
@@ -1720,7 +1721,7 @@ function $8984a0a949b1c852$export$dd948f91abc3a1c4({ filter_: filter_ , selected
|
|
|
1720
1721
|
|
|
1721
1722
|
|
|
1722
1723
|
|
|
1723
|
-
const $336616ec8a612a1c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1724
|
+
const $336616ec8a612a1c$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="radios"></form>`, 2), $336616ec8a612a1c$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="count"></span>`, 2), $336616ec8a612a1c$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<label class="input-row"><div class="left"><input type="radio"><span class="custom-indicator"></span></div></label>`, 7);
|
|
1724
1725
|
function $336616ec8a612a1c$export$430444115f70a734({ selected_filters_: selected_filters_ , filter_: filter_ }) {
|
|
1725
1726
|
const radio_name = (0, $46MJV$depictaiutilishared.make_random_classname)();
|
|
1726
1727
|
const existing_filter = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
@@ -1799,7 +1800,7 @@ function $336616ec8a612a1c$export$430444115f70a734({ selected_filters_: selected
|
|
|
1799
1800
|
|
|
1800
1801
|
|
|
1801
1802
|
|
|
1802
|
-
const $6833018d8bbbb2ad$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
1803
|
+
const $6833018d8bbbb2ad$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="range"><div class="input-group"><div class="field"><input type="number"></div><div class="separator">-</div><div class="field"><input type="number"></div></div><div class="value-text"><span class="min"></span><span class="max"></span></div></div>`, 18), $6833018d8bbbb2ad$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="slider"><div class="progress"></div></div>`, 4), $6833018d8bbbb2ad$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="range-group"><input type="range" step="any"><input type="range" step="any"></div>`, 4);
|
|
1803
1804
|
function $6833018d8bbbb2ad$export$e0d834a0ad870cda({ filter_: filter_ , selected_filters_: selected_filters_ , i18n_: i18n_ }) {
|
|
1804
1805
|
const current_range = (0, $46MJV$solidjs.createSignal)((0, $46MJV$solidjs.untrack)(()=>filter_().data));
|
|
1805
1806
|
const selected_filter = (0, $46MJV$solidjs.createMemo)(()=>selected_filters_[0]().find(({ field: checking_field , op: checking_op })=>checking_field === filter_().field && checking_op === filter_().op));
|
|
@@ -2077,7 +2078,7 @@ function $6833018d8bbbb2ad$var$set_range_with_sanitation(min_, max_, current_ran
|
|
|
2077
2078
|
|
|
2078
2079
|
|
|
2079
2080
|
|
|
2080
|
-
const $f51f11e16b8dd872$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
2081
|
+
const $f51f11e16b8dd872$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="morphing-sign" role="img"><span></span><span></span></div>`, 6);
|
|
2081
2082
|
function $f51f11e16b8dd872$export$e5c2828934226505({ expanded_: expanded_ , i18n_: i18n_ }) {
|
|
2082
2083
|
let first_span;
|
|
2083
2084
|
let second_span;
|
|
@@ -2127,7 +2128,7 @@ function $f51f11e16b8dd872$export$e5c2828934226505({ expanded_: expanded_ , i18n
|
|
|
2127
2128
|
|
|
2128
2129
|
|
|
2129
2130
|
|
|
2130
|
-
const $b7574d1d3a67ed68$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
2131
|
+
const $b7574d1d3a67ed68$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkboxes hierarchical"></form>`, 2), $b7574d1d3a67ed68$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="checkbox-details"></div>`, 2), $b7574d1d3a67ed68$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details></details>`, 2), $b7574d1d3a67ed68$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="category-parent"><div class="summary"><span class="count"></span></div></summary>`, 6);
|
|
2131
2132
|
const $b7574d1d3a67ed68$var$max_visible_without_collapsing = 7;
|
|
2132
2133
|
const $b7574d1d3a67ed68$var$show_non_collapsible_when_collapsed = 4;
|
|
2133
2134
|
function $b7574d1d3a67ed68$export$a32086fa6616eafd({ filter_: filter_ , selected_filters_: selected_filters_ , i18n_: i18n_ , view_more_button_below_group_: view_more_button_below_group_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ }) {
|
|
@@ -2509,7 +2510,7 @@ function $b7574d1d3a67ed68$var$expand_until_choice(data_structure) {
|
|
|
2509
2510
|
|
|
2510
2511
|
|
|
2511
2512
|
|
|
2512
|
-
const $9055073b45860dd6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
2513
|
+
const $9055073b45860dd6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="checkbox-grid"></div>`, 2), $9055073b45860dd6$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="major-minor-transition"></button>`, 2);
|
|
2513
2514
|
const $9055073b45860dd6$export$414f6a19d38e655c = ({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] })=>{
|
|
2514
2515
|
const existing_filter = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
2515
2516
|
const { field: field , op: op } = filter_();
|
|
@@ -2596,7 +2597,7 @@ const $9055073b45860dd6$export$414f6a19d38e655c = ({ filter_: filter_ , selected
|
|
|
2596
2597
|
|
|
2597
2598
|
|
|
2598
2599
|
|
|
2599
|
-
const $cd6cdf2099e918a4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
2600
|
+
const $cd6cdf2099e918a4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<form class="checkbox-color"></form>`, 2);
|
|
2600
2601
|
const $cd6cdf2099e918a4$var$max_visible_without_collapsing = 14;
|
|
2601
2602
|
const $cd6cdf2099e918a4$var$show_non_collapsible_when_collapsed = 8;
|
|
2602
2603
|
function $cd6cdf2099e918a4$export$82ed4b28ecb67608({ filter_: filter_ , selected_filters_: [get_selected_filters, set_selected_filters] , i18n_: i18n_ , view_more_button_below_group_: [_get_view_more_button_below_group_, set_view_more_button_below_group_] }) {
|
|
@@ -2932,7 +2933,7 @@ function $0bc45cf6753f874a$export$b288c38ae3fddb56({ available_filters_: availab
|
|
|
2932
2933
|
|
|
2933
2934
|
|
|
2934
2935
|
|
|
2935
|
-
const $8578879ddb04f368$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
2936
|
+
const $8578879ddb04f368$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="show-selected" aria-hidden="true"><span></span></span>`, 4);
|
|
2936
2937
|
function $8578879ddb04f368$export$53c59af873b303c9({ selected_filters_in_group_: selected_filters_in_group_ , i18n_: { price_formatting_: price_formatting_ } }) {
|
|
2937
2938
|
const [show_tick_icon, set_show_tick_icon] = (0, $46MJV$solidjs.createSignal)(false);
|
|
2938
2939
|
return (()=>{
|
|
@@ -3044,7 +3045,7 @@ function $5804fd6cbfb7160f$export$ab34afce88557c0e(props) {
|
|
|
3044
3045
|
|
|
3045
3046
|
|
|
3046
3047
|
|
|
3047
|
-
const $0f2f58dd60b11888$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
3048
|
+
const $0f2f58dd60b11888$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2);
|
|
3048
3049
|
function $0f2f58dd60b11888$export$b69d0d92862de18b(props) {
|
|
3049
3050
|
return (0, $46MJV$solidjs.ErrorBoundary)({
|
|
3050
3051
|
fallback (err) {
|
|
@@ -3067,7 +3068,7 @@ function $0f2f58dd60b11888$export$b69d0d92862de18b(props) {
|
|
|
3067
3068
|
|
|
3068
3069
|
|
|
3069
3070
|
|
|
3070
|
-
const $1587765bd31f3722$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
3071
|
+
const $1587765bd31f3722$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-collapsible"></div>`, 2), $1587765bd31f3722$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-group"><span></span></button>`, 4), $1587765bd31f3722$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="view-more-clear"></div>`, 2), $1587765bd31f3722$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-collapsible-body"><div class="filter-part"></div></div>`, 4), $1587765bd31f3722$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="filter-collapsible"></details>`, 2), $1587765bd31f3722$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"></div></div></summary>`, 8), $1587765bd31f3722$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="ungrouped"></div>`, 2), $1587765bd31f3722$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear-all-filters major"></button>`, 2);
|
|
3071
3072
|
function $1587765bd31f3722$export$3f1a388cc0d8fed7(props) {
|
|
3072
3073
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
3073
3074
|
return (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
|
|
@@ -3296,7 +3297,7 @@ function $1587765bd31f3722$var$ActualFilterBody(props) {
|
|
|
3296
3297
|
|
|
3297
3298
|
|
|
3298
3299
|
|
|
3299
|
-
const $cc8aaf130b1dc1ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
3300
|
+
const $cc8aaf130b1dc1ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting-attributes"></div>`, 2), $cc8aaf130b1dc1ea$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting-direction"></div>`, 2), $cc8aaf130b1dc1ea$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span></div></div>`, 7), $cc8aaf130b1dc1ea$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span></label></div>`, 7);
|
|
3300
3301
|
function $cc8aaf130b1dc1ea$export$1f1775a58da589b5({ available_sortings_: available_sortings_ , current_sorting_: current_sorting_ }) {
|
|
3301
3302
|
const title_radio_name = (0, $46MJV$depictaiutilishared.make_random_classname)();
|
|
3302
3303
|
const order_radio_name = (0, $46MJV$depictaiutilishared.make_random_classname)();
|
|
@@ -3444,7 +3445,7 @@ function $fa41c421eb980e23$export$fe334901e8bebd57() {
|
|
|
3444
3445
|
|
|
3445
3446
|
|
|
3446
3447
|
|
|
3447
|
-
const $66ddbcbc40487f95$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
3448
|
+
const $66ddbcbc40487f95$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="clear minor"></button>`, 2), $66ddbcbc40487f95$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp depict-filter-sort-mobile-modal-container"><div class="depict-filter-sort-modal-backdrop"></div><button class="dismiss-modal"></button><div class="filter-sort-modal"><div class="body"></div><div class="bottom-row"><button class="show-results major"></button></div></div></div>`, 14), $66ddbcbc40487f95$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="sorting"></details>`, 2), $66ddbcbc40487f95$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<summary class="sort-filter-summary"><div class="summary"><div class="left-els"><span></span></div></div></summary>`, 8), $66ddbcbc40487f95$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="body"></div>`, 2), $66ddbcbc40487f95$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<details class="filters"></details>`, 2), $66ddbcbc40487f95$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2);
|
|
3448
3449
|
const $66ddbcbc40487f95$var$no_go_selector = ".range .range-group";
|
|
3449
3450
|
function $66ddbcbc40487f95$export$9bf11afa910f536e({ args_for_sorting_: args_for_sorting_ , args_for_filtering_: args_for_filtering_ , search_filters_open_: [get_search_filters_open, set_search_filters_open] , search_sorting_open_: [get_search_sorting_open, set_search_sorting_open] , dismiss_modal_: dismiss_modal_ , register_closing_animation_: register_closing_animation_ , formatted_number_of_results_: formatted_number_of_results_ , i18n_: i18n_ }) {
|
|
3450
3451
|
(0, $fa41c421eb980e23$export$fe334901e8bebd57)();
|
|
@@ -3715,7 +3716,7 @@ function $66ddbcbc40487f95$export$9bf11afa910f536e({ args_for_sorting_: args_for
|
|
|
3715
3716
|
|
|
3716
3717
|
|
|
3717
3718
|
|
|
3718
|
-
const $881cb1745bafff7a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
3719
|
+
const $881cb1745bafff7a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filters"><div class="body"></div></div>`, 4), $881cb1745bafff7a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sorting"><div class="body"></div></div>`, 4), $881cb1745bafff7a$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sort-and-filter-buttons"><div class="outer"><div class="inner"></div></div></div>`, 6), $881cb1745bafff7a$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="num-filters"></span>`, 2), $881cb1745bafff7a$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="open-filters-button-container"><button class="filter toggle-button major-minor-transition" type="button"><span></span></button></div>`, 6), $881cb1745bafff7a$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="toggle-button for-sorting major-minor-transition"><span></span></button>`, 4);
|
|
3719
3720
|
function $881cb1745bafff7a$export$d7841e452f2e59a8({ current_sorting_: current_sorting_ , set_extra_els_in_results_container_: set_extra_els_in_results_container_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , set_sort_or_filter_open_: set_sort_or_filter_open_ , i18n_: i18n_ , available_sortings_: available_sortings_ , available_filters_: available_filters_ , expanded_filters_: expanded_filters_ , middle_elements_: middle_elements_ , input_modal_open_: input_modal_open_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_ , set_sort_and_filter_element_: set_sort_and_filter_element_ , formatted_number_of_results_: formatted_number_of_results_ , filter_button_width_: filter_button_width_ , sort_button_width_: sort_button_width_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , get_extra_filters_button_: get_extra_filters_button_ , get_extra_sorting_button_: get_extra_sorting_button_ }) {
|
|
3720
3721
|
return (0, $0f2f58dd60b11888$export$b69d0d92862de18b)({
|
|
3721
3722
|
severity_: "error",
|
|
@@ -3947,7 +3948,7 @@ function $881cb1745bafff7a$var$OpenSortingButton({ i18n_: i18n_ , current_sortin
|
|
|
3947
3948
|
|
|
3948
3949
|
|
|
3949
3950
|
|
|
3950
|
-
const $fd64465f894d1f29$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
3951
|
+
const $fd64465f894d1f29$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="floating-buttons"><button class="filter"><div></div></button><button class="sort"><div></div></button><button class="up"><div></div></button></div>`, 14);
|
|
3951
3952
|
function $fd64465f894d1f29$export$b23abd26de154ede(props) {
|
|
3952
3953
|
const [is_small, set_is_small] = (0, $46MJV$solidjs.createSignal)(true);
|
|
3953
3954
|
(0, $46MJV$solidjs.onCleanup)((0, $46MJV$depictaiutilishared.javascript_media_query)("(max-width:651px)", ({ matches: matches })=>set_is_small(matches)).remove);
|
|
@@ -4091,7 +4092,7 @@ function $fd64465f894d1f29$var$ActualFloatingButtons({ search_filters_open_: [ge
|
|
|
4091
4092
|
|
|
4092
4093
|
|
|
4093
4094
|
|
|
4094
|
-
const $495e9998757c5d32$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
4095
|
+
const $495e9998757c5d32$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<nav class="crumbs"></nav>`, 2), $495e9998757c5d32$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="crumb"></a>`, 2), $495e9998757c5d32$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="separator"></span>`, 2);
|
|
4095
4096
|
function $495e9998757c5d32$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , on_crumb_click_: on_crumb_click_ , i18n_: i18n_ }) {
|
|
4096
4097
|
const placeholder_crumb_data = [
|
|
4097
4098
|
,
|
|
@@ -4122,7 +4123,7 @@ function $495e9998757c5d32$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4122
4123
|
},
|
|
4123
4124
|
get children () {
|
|
4124
4125
|
const _el$2 = $495e9998757c5d32$var$_tmpl$2.cloneNode(true);
|
|
4125
|
-
(0, $46MJV$solidjsweb.addEventListener)(_el$2, "click", (0, $46MJV$depictaiutilishared.catchify)((ev)=>on_crumb_click_
|
|
4126
|
+
(0, $46MJV$solidjsweb.addEventListener)(_el$2, "click", (0, $46MJV$depictaiutilishared.catchify)((ev)=>on_crumb_click_(ev, display_accessor())), true);
|
|
4126
4127
|
(0, $46MJV$solidjsweb.insert)(_el$2, ()=>display_accessor().title);
|
|
4127
4128
|
(0, $46MJV$solidjsweb.effect)(()=>(0, $46MJV$solidjsweb.setAttribute)(_el$2, "href", display_accessor().page_url));
|
|
4128
4129
|
return _el$2;
|
|
@@ -4161,7 +4162,7 @@ function $495e9998757c5d32$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4161
4162
|
|
|
4162
4163
|
|
|
4163
4164
|
|
|
4164
|
-
const $cdc2c00c0a7da86e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
4165
|
+
const $cdc2c00c0a7da86e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<nav class="quicklinks"></nav>`, 2), $cdc2c00c0a7da86e$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div>QuickLinks failed</div>`, 2), $cdc2c00c0a7da86e$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="quicklink"></a>`, 2);
|
|
4165
4166
|
function $cdc2c00c0a7da86e$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , on_link_click_: on_link_click_ , current_query_id_: current_query_id_ , slider_arrow_button_: slider_arrow_button_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
|
|
4166
4167
|
let scrolling_logic_ran_for_query_id = false;
|
|
4167
4168
|
let last_scroll_position;
|
|
@@ -4289,7 +4290,7 @@ function $cdc2c00c0a7da86e$export$466cdc317043f6cb({ quicklinks_data_: quicklink
|
|
|
4289
4290
|
const _el$3 = $cdc2c00c0a7da86e$var$_tmpl$3.cloneNode(true);
|
|
4290
4291
|
(0, $46MJV$solidjsweb.addEventListener)(_el$3, "click", (0, $46MJV$depictaiutilishared.catchify)((ev)=>{
|
|
4291
4292
|
if (is_selected() && !ev.metaKey && !ev.ctrlKey && !ev.button) ev.preventDefault();
|
|
4292
|
-
else if (display_accessor()) on_link_click_
|
|
4293
|
+
else if (display_accessor()) on_link_click_(ev, display_accessor());
|
|
4293
4294
|
}), true);
|
|
4294
4295
|
(0, $46MJV$solidjsweb.insert)(_el$3, ()=>display_accessor()?.title || (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$depictaiutilishared.Placeholder), {
|
|
4295
4296
|
height: "1em",
|
|
@@ -4471,7 +4472,7 @@ let $29b757e2ae26852c$export$44dad306455dddf;
|
|
|
4471
4472
|
})($29b757e2ae26852c$export$44dad306455dddf || ($29b757e2ae26852c$export$44dad306455dddf = {}));
|
|
4472
4473
|
|
|
4473
4474
|
|
|
4474
|
-
const $671632478f2a7ce7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
4475
|
+
const $671632478f2a7ce7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="product-count"> </div>`, 2), $671632478f2a7ce7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div></div>`, 2), $671632478f2a7ce7$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-results-for-one-row"></div>`, 2), $671632478f2a7ce7$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4475
4476
|
function $671632478f2a7ce7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , slider_arrow_button_: slider_arrow_button_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , on_category_link_click_: on_category_link_click_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , rr_options_: rr_options_ , get_product_id_: get_product_id_ }) {
|
|
4476
4477
|
let results_for;
|
|
4477
4478
|
let only_show_filters_opener_;
|
|
@@ -4900,7 +4901,7 @@ function $f27b0b326e0a87e2$export$23fca46f3143581f(component, error_message) {
|
|
|
4900
4901
|
}
|
|
4901
4902
|
|
|
4902
4903
|
|
|
4903
|
-
const $068a627cc18f7bb6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
4904
|
+
const $068a627cc18f7bb6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp category"></div>`, 2);
|
|
4904
4905
|
const $068a627cc18f7bb6$var$min_products_to_fetch_ = 20;
|
|
4905
4906
|
const $068a627cc18f7bb6$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
4906
4907
|
const $068a627cc18f7bb6$var$InExternalAreaDiv = ({ children: children })=>(()=>{
|
|
@@ -4957,7 +4958,7 @@ class $068a627cc18f7bb6$export$f34314aa9505732e {
|
|
|
4957
4958
|
category_scroll_restoration_data: []
|
|
4958
4959
|
}));
|
|
4959
4960
|
const i18n_ = (0, $623202ae203e9e59$export$f091cbac892643a4)(this.#locale_signal[0]);
|
|
4960
|
-
const on_category_link_click_ =
|
|
4961
|
+
const on_category_link_click_ = (e, d)=>{
|
|
4961
4962
|
if (e.button || e.metaKey || e.ctrlKey) // Not single page navigating because button is not 0 or ctrl/command click
|
|
4962
4963
|
return;
|
|
4963
4964
|
try {
|
|
@@ -4971,7 +4972,7 @@ class $068a627cc18f7bb6$export$f34314aa9505732e {
|
|
|
4971
4972
|
throw e;
|
|
4972
4973
|
});
|
|
4973
4974
|
}
|
|
4974
|
-
}
|
|
4975
|
+
};
|
|
4975
4976
|
$068a627cc18f7bb6$var$privately_shared_properties.set(this, {
|
|
4976
4977
|
state_: state_,
|
|
4977
4978
|
breadcrumb_signal_: (0, $46MJV$solidjs.createSignal)(),
|
|
@@ -5073,7 +5074,7 @@ function $068a627cc18f7bb6$var$get_shared_properties(depict_category) {
|
|
|
5073
5074
|
|
|
5074
5075
|
|
|
5075
5076
|
|
|
5076
|
-
const $853f821e60bd06ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5077
|
+
const $853f821e60bd06ea$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-title"><h2 class="title"></h2><span class="explanation"> — </span></div>`, 6);
|
|
5077
5078
|
const $853f821e60bd06ea$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
5078
5079
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
5079
5080
|
return (()=>{
|
|
@@ -5095,7 +5096,7 @@ const $853f821e60bd06ea$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5095
5096
|
|
|
5096
5097
|
|
|
5097
5098
|
|
|
5098
|
-
const $1a89c0064ad43e0d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5099
|
+
const $1a89c0064ad43e0d$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="sort-and-filter-buttons fake" aria-hidden="true" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"><div class="outer"><div class="inner"></div></div></div>`, 6);
|
|
5099
5100
|
const $1a89c0064ad43e0d$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
5100
5101
|
const actual_function = ({ make_product_count_: make_product_count_ , set_observed_results_filters_elements_: set_observed_results_filters_elements_ , is_slim_: is_slim_ , sort_and_filter_element_: sort_and_filter_element_ , extra_sort_and_filter_args_: extra_sort_and_filter_args_ })=>{
|
|
5101
5102
|
// this does two things: make the sorting and filters button the same width and move the number of products out of the SortAndFilter middle_elements_ if it doesn't fit
|
|
@@ -5256,7 +5257,7 @@ async function $bfd8f91b5a75050a$var$download_categories(tenant, market) {
|
|
|
5256
5257
|
|
|
5257
5258
|
|
|
5258
5259
|
|
|
5259
|
-
const $17c49340edfdbb31$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5260
|
+
const $17c49340edfdbb31$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="title"></span></div></div></div>`, 10);
|
|
5260
5261
|
function $17c49340edfdbb31$export$ee1733d9a8495996() {
|
|
5261
5262
|
return (()=>{
|
|
5262
5263
|
const _el$ = $17c49340edfdbb31$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
|
|
@@ -5281,7 +5282,7 @@ function $17c49340edfdbb31$export$ee1733d9a8495996() {
|
|
|
5281
5282
|
|
|
5282
5283
|
|
|
5283
5284
|
|
|
5284
|
-
const $67892c03cd3dfa66$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5285
|
+
const $67892c03cd3dfa66$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="parent-title"></span>`, 2), $67892c03cd3dfa66$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="category-suggestion"><span class="title"></span></a>`, 4);
|
|
5285
5286
|
function $67892c03cd3dfa66$export$d757d54550ebfb3d({ category_suggestion_: category_suggestion_ , on_navigation_: on_navigation_ }) {
|
|
5286
5287
|
return (()=>{
|
|
5287
5288
|
const _el$ = $67892c03cd3dfa66$var$_tmpl$2.cloneNode(true), _el$2 = _el$.firstChild;
|
|
@@ -5324,7 +5325,7 @@ function $67892c03cd3dfa66$export$d757d54550ebfb3d({ category_suggestion_: categ
|
|
|
5324
5325
|
|
|
5325
5326
|
|
|
5326
5327
|
|
|
5327
|
-
const $2989e355f64e18e1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5328
|
+
const $2989e355f64e18e1$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="back" type="button"></button>`, 2), $2989e355f64e18e1$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-field"><div class="field"><input class="query" tabindex="0"><button type="button" class="clear"></button></div><button class="submit major" type="button"></button></div>`, 9);
|
|
5328
5329
|
function $2989e355f64e18e1$export$b94867ecbd698f21({ search_field_value_: search_field_value_ , input_field_ref_: input_field_ref_ , field_element_ref_: field_element_ref_ , submit_query_: submit_query_ , override_on_enter_: override_on_enter_ , clear_filters_: clear_filters_ , disabled_: disabled_ = false , on_back_: on_back_ , i18n_: i18n_ }) {
|
|
5329
5330
|
let input_field;
|
|
5330
5331
|
(0, $46MJV$solidjs.createEffect)((0, $46MJV$depictaiutilishared.catchify)(async ()=>{
|
|
@@ -5423,7 +5424,7 @@ function $2989e355f64e18e1$export$b94867ecbd698f21({ search_field_value_: search
|
|
|
5423
5424
|
|
|
5424
5425
|
|
|
5425
5426
|
|
|
5426
|
-
const $9f81b7ced87aabf2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5427
|
+
const $9f81b7ced87aabf2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="cards"></div>`, 2), $9f81b7ced87aabf2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-recs"><h3 class="search-recs-title"></h3></div>`, 4), $9f81b7ced87aabf2$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<button class="show-more major" type="button"></button>`, 2);
|
|
5427
5428
|
const $9f81b7ced87aabf2$export$1c8c715550dc689d = 2;
|
|
5428
5429
|
function $9f81b7ced87aabf2$export$7de92c4c2205ebf3({ depict_api_: depict_api_ , i18n_: i18n_ , tenant_object_: tenant_object_ , search_query_base_: search_query_base_ , rr_options_: rr_options_ , showing_recommendation_rows_: showing_recommendation_rows_ , view_more_button_: view_more_button_ = true , layout_options_: layout_options_ }) {
|
|
5429
5430
|
const [is_showing_something, set_is_showing_something] = (0, $46MJV$solidjs.createSignal)(false);
|
|
@@ -5763,7 +5764,7 @@ function $690220645373c65e$export$2542ffb77b620b02(params_to_default_value) {
|
|
|
5763
5764
|
|
|
5764
5765
|
|
|
5765
5766
|
|
|
5766
|
-
const $1bf0125991f2d39b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5767
|
+
const $1bf0125991f2d39b$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="orig price"></span>`, 2), $1bf0125991f2d39b$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="brand"></span><span class="title"></span></div><div class="price-container"><span class="price"></span></div></div></a>`, 16), $1bf0125991f2d39b$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="tagline"></div>`, 2);
|
|
5767
5768
|
const $1bf0125991f2d39b$export$b05c0ae390cf3e06 = (display_or_variant_container, { i18n: i18n })=>{
|
|
5768
5769
|
const display = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
5769
5770
|
const display = display_or_variant_container();
|
|
@@ -5846,7 +5847,7 @@ const $1bf0125991f2d39b$export$b05c0ae390cf3e06 = (display_or_variant_container,
|
|
|
5846
5847
|
};
|
|
5847
5848
|
|
|
5848
5849
|
|
|
5849
|
-
const $4cadf33fd6aaf4b6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5850
|
+
const $4cadf33fd6aaf4b6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="instant-results"></div>`, 2);
|
|
5850
5851
|
function $4cadf33fd6aaf4b6$export$62f101a8aa597bf8({ depict_api_: depict_api_ , search_field_value_: [get_search_field_value] , tenant_: tenant_ , market_: market_ , render_instant_card_: render_instant_card_ , render_instant_card_placeholder_: render_instant_card_placeholder_ , min_products_to_fetch_: min_products_to_fetch_ , has_sort_or_filters_: has_sort_or_filters_ , set_num_results_accessor_: set_num_results_accessor_ , i18n_: i18n_ }) {
|
|
5851
5852
|
const max_cards = 4;
|
|
5852
5853
|
const [read_current_instant_query, write_current_instant_query] = (0, $46MJV$solidjs.createSignal)("");
|
|
@@ -5984,7 +5985,7 @@ function $4cadf33fd6aaf4b6$var$unwrapping_helper(elements) {
|
|
|
5984
5985
|
|
|
5985
5986
|
|
|
5986
5987
|
|
|
5987
|
-
const $6ea05d3ebaa81958$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
5988
|
+
const $6ea05d3ebaa81958$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;top:-100%;"></div>`, 2), $6ea05d3ebaa81958$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div style="position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;"></div>`, 2);
|
|
5988
5989
|
function $6ea05d3ebaa81958$export$50b90be27d8502d9(el, [get_style_props, set_style_props], bottom_distance) {
|
|
5989
5990
|
const overflow_style_beginning = "position:absolute;z-index:-1;pointer-events:none;width:100%;height:200%;";
|
|
5990
5991
|
const upper_overflowing_box = $6ea05d3ebaa81958$var$_tmpl$.cloneNode(true);
|
|
@@ -6068,7 +6069,7 @@ function $41151dd3f5de2c98$export$91c3b6774e8be0f5({ param_: param_ , value_: va
|
|
|
6068
6069
|
|
|
6069
6070
|
|
|
6070
6071
|
|
|
6071
|
-
const $d9dab2a87a9fc61a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6072
|
+
const $d9dab2a87a9fc61a$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="previous-searches"><h2 class="text"></h2><div class="list"></div></div>`, 6), $d9dab2a87a9fc61a$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="item"><div class="left"><span></span></div><button class="delete"></button></a>`, 8);
|
|
6072
6073
|
function $d9dab2a87a9fc61a$export$a146ac6fa8346a25({ text_: text_ , previous_searches_: previous_searches_ , search_query_param_name_: search_query_param_name_ , currently_showing_suggestions_: currently_showing_suggestions_ , set_unfiltered_previous_searches_: set_unfiltered_previous_searches_ , search_field_value_: search_field_value_ , selected_index_: [read_selected_index_, write_selected_index_] , url_transformer_: url_transformer_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , i18n_: i18n_ , get_search_query_: get_search_query_ , after_submit_: after_submit_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6073
6074
|
const has_entries = (0, $46MJV$solidjs.createMemo)(()=>previous_searches_().length >= 1);
|
|
6074
6075
|
currently_showing_suggestions_[1]((value)=>{
|
|
@@ -6171,7 +6172,7 @@ function $d9dab2a87a9fc61a$export$a146ac6fa8346a25({ text_: text_ , previous_sea
|
|
|
6171
6172
|
|
|
6172
6173
|
|
|
6173
6174
|
|
|
6174
|
-
const $5a0afe153acd45d7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6175
|
+
const $5a0afe153acd45d7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="highlighted-part"></span>`, 2), $5a0afe153acd45d7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span></span>`, 2);
|
|
6175
6176
|
function $5a0afe153acd45d7$export$ba17c5b7e6dda39f({ whole_text_to_display_: whole_text_to_display_memo , searching_for_value_: searching_for_value_memo , class_: class_ }) {
|
|
6176
6177
|
const [get_has_highlighted, set_has_highlighted] = (0, $46MJV$solidjs.createSignal)(false);
|
|
6177
6178
|
const text_itself = (0, $46MJV$solidjs.createMemo)(()=>(0, $46MJV$solidjs.batch)(()=>{
|
|
@@ -6231,7 +6232,7 @@ function $5a0afe153acd45d7$export$ba17c5b7e6dda39f({ whole_text_to_display_: who
|
|
|
6231
6232
|
}
|
|
6232
6233
|
|
|
6233
6234
|
|
|
6234
|
-
const $aabe56c678fa29ec$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6235
|
+
const $aabe56c678fa29ec$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a class="suggestion"></a>`, 2), $aabe56c678fa29ec$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="search-icon"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<span class="type"></span>`, 2), $aabe56c678fa29ec$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div><span class="value"></span></div>`, 4), $aabe56c678fa29ec$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<h2 class="text"></h2>`, 2), $aabe56c678fa29ec$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestion-container query"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestion-container page"></div>`, 2), $aabe56c678fa29ec$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="suggestions"></div>`, 2);
|
|
6235
6236
|
function $aabe56c678fa29ec$export$e872e2339fb04a7f({ suggestion_memo_: suggestion_memo_ , search_field_value_: search_field_value_ , search_page_url_param_name_: search_page_url_param_name_ , selected_index_: [read_selected_index_, write_selected_index_] , url_transformer_: url_transformer_ , filtered_previous_searches_: filtered_previous_searches_ , currently_showing_suggestions_: currently_showing_suggestions_ , on_previous_searches_page_: on_previous_searches_page_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , i18n_: i18n_ , include_category_suggestions_: include_category_suggestions_ , searching_for_value_: searching_for_value_ , get_search_query_: get_search_query_ , after_submit_: after_submit_ , navigate_page_to_href_: navigate_page_to_href_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6236
6237
|
const queries_memo = (0, $46MJV$solidjs.createMemo)(()=>suggestion_memo_().filter(({ type: type , title: title })=>type === (0, $81eea900c72d569b$export$3cf9497e790da491) && !filtered_previous_searches_().includes(title) // don't show the ones we already show from the history
|
|
6237
6238
|
));
|
|
@@ -6443,7 +6444,7 @@ function $aabe56c678fa29ec$export$e872e2339fb04a7f({ suggestion_memo_: suggestio
|
|
|
6443
6444
|
|
|
6444
6445
|
|
|
6445
6446
|
|
|
6446
|
-
const $bc74fbd61efdd8a5$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6447
|
+
const $bc74fbd61efdd8a5$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<a target="_blank"></a>`, 2);
|
|
6447
6448
|
function $bc74fbd61efdd8a5$export$217899a935ef803b({ selected_index_: [read_selected_index, write_selected_index] , currently_showing_suggestions_: [read_currently_showing_suggestions] , ...rest_of_props }) {
|
|
6448
6449
|
const last_suggestion_index_ = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
6449
6450
|
const currently_showing_suggestions = read_currently_showing_suggestions();
|
|
@@ -6749,7 +6750,7 @@ const $d3c94b3b96557917$export$1233ca167bf71f9a = (styles)=>{
|
|
|
6749
6750
|
|
|
6750
6751
|
|
|
6751
6752
|
|
|
6752
|
-
const $4a976b492943589f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6753
|
+
const $4a976b492943589f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<style></style>`, 2);
|
|
6753
6754
|
function $4a976b492943589f$export$f021bdedd3ec901a(props) {
|
|
6754
6755
|
const valid_css_string = (0, $46MJV$solidjs.createMemo)(()=>{
|
|
6755
6756
|
return (0, $d3c94b3b96557917$export$1233ca167bf71f9a)(props.styles());
|
|
@@ -6762,7 +6763,7 @@ function $4a976b492943589f$export$f021bdedd3ec901a(props) {
|
|
|
6762
6763
|
}
|
|
6763
6764
|
|
|
6764
6765
|
|
|
6765
|
-
const $121d25ca6af2898f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6766
|
+
const $121d25ca6af2898f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="discover-more"><button class="major" type="button"></button></div>`, 4), $121d25ca6af2898f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $121d25ca6af2898f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict-search-modal"><div class="body"><div class="padded"></div></div></div>`, 6), $121d25ca6af2898f$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="depict-search-modal-backdrop"></div></div>`, 4);
|
|
6766
6767
|
function $121d25ca6af2898f$export$1c593cbd6f1e10bc({ search_field_value_: search_field_value_ , search_query_: search_query_ , search_page_url_param_name_: search_page_url_param_name_ , previous_searches_: previous_searches_ , close_modal_: close_modal_ , style_props_: style_props_ = (0, $46MJV$solidjs.createSignal)({}) , depict_api_: depict_api_ , tenant_: tenant_ , market_: market_ , submit_query_: submit_query_ , instant_results_options_: instant_results_options_ , register_closing_animation_: register_closing_animation_ , url_transformer_: url_transformer_ , closing_animation_: closing_animation_ , alternative_query_submitter_for_spas_: alternative_query_submitter_for_spas_ , clear_filters_: clear_filters_ , i18n_: i18n_ , disable_scrolling_: disable_scrolling_ = true , enable_category_suggestions_: enable_category_suggestions_ , class_list_: class_list_ , after_submit_: after_submit_ , bottom_distance_under_modal_: bottom_distance_under_modal_ , navigate_page_to_href_: navigate_page_to_href_ , on_submit_with_unchanged_value_: on_submit_with_unchanged_value_ }) {
|
|
6767
6768
|
let on_enter_in_search_field_function;
|
|
6768
6769
|
const [input_field, set_input_field] = (0, $46MJV$solidjs.createSignal)();
|
|
@@ -6949,7 +6950,7 @@ function $121d25ca6af2898f$var$close_modal_when_navigating_away(close_modal, sea
|
|
|
6949
6950
|
|
|
6950
6951
|
|
|
6951
6952
|
|
|
6952
|
-
const $ea038dec4ee16624$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
6953
|
+
const $ea038dec4ee16624$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-suggestions"></div>`, 2), $ea038dec4ee16624$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="category-suggestion"></div>`, 2);
|
|
6953
6954
|
function $ea038dec4ee16624$export$c05a196222ba1302({ suggestions_: suggestions_ , children: children , selected_filters_: selected_filters_ , slider_arrow_button_: slider_arrow_button_ }) {
|
|
6954
6955
|
const category_suggestions_ = (0, $46MJV$solidjs.createMemo)(()=>suggestions_()?.suggestions.filter((s)=>s.type === "category"));
|
|
6955
6956
|
return (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
|
|
@@ -7003,7 +7004,7 @@ function $ea038dec4ee16624$export$c05a196222ba1302({ suggestions_: suggestions_
|
|
|
7003
7004
|
|
|
7004
7005
|
|
|
7005
7006
|
|
|
7006
|
-
const $297ca03cb5dd5701$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
7007
|
+
const $297ca03cb5dd5701$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<b></b>`, 2), $297ca03cb5dd5701$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="results-for"></div>`, 2);
|
|
7007
7008
|
function $297ca03cb5dd5701$export$9dd50d35b9d94fdf({ search_query_: search_query_ , i18n_: i18n_ , formatted_number_of_results_: formatted_number_of_results_ }) {
|
|
7008
7009
|
const contents = (0, $46MJV$solidjs.createMemo)((0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7009
7010
|
const q = search_query_[0]();
|
|
@@ -7031,7 +7032,7 @@ function $297ca03cb5dd5701$export$9dd50d35b9d94fdf({ search_query_: search_query
|
|
|
7031
7032
|
|
|
7032
7033
|
|
|
7033
7034
|
|
|
7034
|
-
const $93779a41dce11249$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
7035
|
+
const $93779a41dce11249$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="filter-results-for-one-row"></div>`, 2), $93779a41dce11249$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"><div class="listing-page"></div></div>`, 4);
|
|
7035
7036
|
function $93779a41dce11249$export$a54ec244c8863715(opts) {
|
|
7036
7037
|
const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , search_query_: search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , slider_arrow_button_: slider_arrow_button_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , rr_options_: rr_options_ , recommendations_rr_options_: recommendations_rr_options_ = rr_options_ , search_recs_view_more_: search_recs_view_more_ , get_product_id_: get_product_id_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ } = opts;
|
|
7037
7038
|
const tenant_object_ = new (0, $46MJV$depictaiutilishared.Tenant)({
|
|
@@ -7345,7 +7346,7 @@ function $246e3e89a097f014$export$828dcdd425fd3231(aligner) {
|
|
|
7345
7346
|
}
|
|
7346
7347
|
|
|
7347
7348
|
|
|
7348
|
-
const $79fbf145b15af988$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__
|
|
7349
|
+
const $79fbf145b15af988$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"></div>`, 2);
|
|
7349
7350
|
/**
|
|
7350
7351
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
7351
7352
|
*/ const $79fbf145b15af988$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
@@ -7669,7 +7670,7 @@ function $79fbf145b15af988$export$316f6f283ae64765({ depict_search: depict_searc
|
|
|
7669
7670
|
position: "fixed"
|
|
7670
7671
|
});
|
|
7671
7672
|
const defaultHandler = (0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7672
|
-
const { cleanup: cleanup } = $79fbf145b15af988$var$align_field_modal(style_props_,
|
|
7673
|
+
const { cleanup: cleanup } = $79fbf145b15af988$var$align_field_modal(style_props_, input, aligner_ref);
|
|
7673
7674
|
const complete_modal_dispose_handler = ()=>{
|
|
7674
7675
|
modal_dispose_handler?.();
|
|
7675
7676
|
cleanup();
|
|
@@ -7721,6 +7722,47 @@ function $79fbf145b15af988$var$align_field_modal(style_props_, input, aligner_re
|
|
|
7721
7722
|
|
|
7722
7723
|
|
|
7723
7724
|
|
|
7725
|
+
const $9c5a1d57540c06e5$export$d86a33413558014e = (openModalParams)=>{
|
|
7726
|
+
const { search: search } = openModalParams;
|
|
7727
|
+
openModalParams.location ||= "centered";
|
|
7728
|
+
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
7729
|
+
if (openModalParams.location !== "aligned") {
|
|
7730
|
+
// Open centered modal
|
|
7731
|
+
search.modal_open = true;
|
|
7732
|
+
return;
|
|
7733
|
+
}
|
|
7734
|
+
const alignment_height = openModalParams.element?.clientHeight;
|
|
7735
|
+
if (isNaN(alignment_height)) {
|
|
7736
|
+
// Open centered modal
|
|
7737
|
+
search.modal_open = true;
|
|
7738
|
+
return;
|
|
7739
|
+
}
|
|
7740
|
+
const { cleanup: cleanup } = (0, $246e3e89a097f014$export$828dcdd425fd3231)(openModalParams.element);
|
|
7741
|
+
let dispose_aligner;
|
|
7742
|
+
/**
|
|
7743
|
+
* Setting position to fixed is important to make the modal work with align_field.
|
|
7744
|
+
*/ const style_props_ = (0, $46MJV$solidjs.createSignal)({
|
|
7745
|
+
position: "fixed"
|
|
7746
|
+
});
|
|
7747
|
+
(0, $46MJV$solidjs.createRoot)((dispose)=>{
|
|
7748
|
+
dispose_aligner = ()=>{
|
|
7749
|
+
cleanup();
|
|
7750
|
+
dispose();
|
|
7751
|
+
};
|
|
7752
|
+
(0, $67b60b572b7b7059$export$b3ad617e9036868)(style_props_, openModalParams.element, undefined, false, "top");
|
|
7753
|
+
});
|
|
7754
|
+
search.modal_open = [
|
|
7755
|
+
{
|
|
7756
|
+
style_props_: style_props_
|
|
7757
|
+
},
|
|
7758
|
+
dispose_aligner
|
|
7759
|
+
];
|
|
7760
|
+
};
|
|
7761
|
+
|
|
7762
|
+
|
|
7763
|
+
|
|
7764
|
+
|
|
7765
|
+
|
|
7724
7766
|
|
|
7725
7767
|
|
|
7726
7768
|
function $308e64f91bb9f839$export$d0596b5cae35ad4(open_search) {
|
|
@@ -7776,6 +7818,7 @@ function $d589470b68ce5b67$export$689e204eadb33baf(pr) {
|
|
|
7776
7818
|
|
|
7777
7819
|
|
|
7778
7820
|
|
|
7821
|
+
|
|
7779
7822
|
class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
7780
7823
|
#stop_listening;
|
|
7781
7824
|
#disconnect_observer;
|
|
@@ -7907,13 +7950,14 @@ class $37e96a5ebc768cc7$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7907
7950
|
this.#unload();
|
|
7908
7951
|
this.#stop_listening?.();
|
|
7909
7952
|
}
|
|
7910
|
-
constructor(options){
|
|
7953
|
+
constructor({ is_spa_: is_spa_ , ...options }){
|
|
7911
7954
|
super();
|
|
7912
7955
|
Object.assign(this, options);
|
|
7913
7956
|
this.#listen().catch((e)=>(0, $46MJV$depictaiutilishared.report)([
|
|
7914
7957
|
e,
|
|
7915
7958
|
"Error listening to URL change"
|
|
7916
7959
|
], "error"));
|
|
7960
|
+
if (!is_spa_) (0, $d589470b68ce5b67$export$689e204eadb33baf)(this); // Make so that clicking on links to the previous page work instantly
|
|
7917
7961
|
}
|
|
7918
7962
|
}
|
|
7919
7963
|
/**
|