@depict-ai/ui 4.6.1 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +39 -13
- package/ES10/index.d.ts +3 -3
- package/ES10/index.js +39 -13
- package/latest/index.cjs +39 -13
- package/latest/index.d.ts +3 -3
- package/latest/index.js +39 -13
- package/package.json +4 -4
- package/server/ES10/index.cjs +37 -13
- package/server/ES10/index.d.ts +3 -3
- package/server/ES10/index.js +37 -13
- package/server/latest/index.cjs +37 -13
- package/server/latest/index.d.ts +3 -3
- package/server/latest/index.js +37 -13
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.1";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -3372,7 +3372,7 @@ var $5285d2814d0fac0c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class=b
|
|
|
3372
3372
|
$5285d2814d0fac0c$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button type=button class=clear>`),
|
|
3373
3373
|
$5285d2814d0fac0c$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=spacer>`),
|
|
3374
3374
|
$5285d2814d0fac0c$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<button class="submit major"type=button>`),
|
|
3375
|
-
$5285d2814d0fac0c$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
|
|
3375
|
+
$5285d2814d0fac0c$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query type=search tabindex=0 enterkeyhint=search><!$><!/></div><!$><!/><!$><!/>`);
|
|
3376
3376
|
function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
3377
3377
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
3378
3378
|
input_field_ref_: input_field_ref_,
|
|
@@ -6091,7 +6091,9 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
|
|
|
6091
6091
|
local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
|
|
6092
6092
|
selected_filters_: [get_selected_filters, set_selected_filters],
|
|
6093
6093
|
expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
|
|
6094
|
-
delay_toast_: delay_toast_
|
|
6094
|
+
delay_toast_: delay_toast_,
|
|
6095
|
+
expanded_filters_: expanded_filters_,
|
|
6096
|
+
filters_open_: filters_open_
|
|
6095
6097
|
} = props;
|
|
6096
6098
|
const previous_selected_filters = $9HbP8$untrack(get_selected_filters);
|
|
6097
6099
|
if (!previous_selected_filters.length) {
|
|
@@ -6100,9 +6102,13 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
|
|
|
6100
6102
|
if (delay_toast_) return () => {};
|
|
6101
6103
|
return;
|
|
6102
6104
|
}
|
|
6105
|
+
const previousExpandedFilters = $9HbP8$untrack(() => expanded_filters_?.[0]());
|
|
6106
|
+
const previousFiltersOpen = $9HbP8$untrack(() => filters_open_?.[0]());
|
|
6103
6107
|
const previous_expanded_hierarchical_filters = $9HbP8$untrack(get_expanded_hierarchical_filters);
|
|
6104
6108
|
const previous_local_filter_cache = $9HbP8$untrack(get_local_filter_cache);
|
|
6105
6109
|
const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
|
|
6110
|
+
expanded_filters_?.[1]([]);
|
|
6111
|
+
filters_open_?.[1](false);
|
|
6106
6112
|
set_selected_filters([]);
|
|
6107
6113
|
scrollTo({
|
|
6108
6114
|
top: 0
|
|
@@ -6128,7 +6134,7 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
|
|
|
6128
6134
|
close_toast_: close_toast_
|
|
6129
6135
|
} = $bf52d9f9eebd1938$export$5196e4c01fa56fcb({
|
|
6130
6136
|
class: "cleared_filters",
|
|
6131
|
-
close_after_:
|
|
6137
|
+
close_after_: 10000,
|
|
6132
6138
|
on_close_: on_toast_hidden,
|
|
6133
6139
|
children: [(() => {
|
|
6134
6140
|
var _el$ = $9HbP8$getNextElement($e9342fb3ac73a54a$var$_tmpl$);
|
|
@@ -6141,7 +6147,9 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
|
|
|
6141
6147
|
$9HbP8$addEventListener(_el$3, "click", $9HbP8$catchify(() => {
|
|
6142
6148
|
set_selected_filters(previous_selected_filters);
|
|
6143
6149
|
set_expanded_hierarchical_filters(previous_expanded_hierarchical_filters);
|
|
6150
|
+
if (previousExpandedFilters) expanded_filters_?.[1](previousExpandedFilters);
|
|
6144
6151
|
if (also_clear_sorting_ && previous_sorting) props.current_sorting_[1](previous_sorting);
|
|
6152
|
+
if (typeof previousFiltersOpen === "boolean") filters_open_?.[1](previousFiltersOpen);
|
|
6145
6153
|
// also restore previous filter cache, I think this should trigger a correct re-merging with newly in-came filters from backend in case there are any. This is because selected filters otherwise might not exist anymore and therefore can't be viewed in the UI
|
|
6146
6154
|
set_local_filter_cache(previous_local_filter_cache);
|
|
6147
6155
|
scrollTo({
|
|
@@ -10014,7 +10022,9 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({
|
|
|
10014
10022
|
current_sorting_: current_sorting_,
|
|
10015
10023
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10016
10024
|
i18n_: i18n_,
|
|
10017
|
-
local_filter_cache_: local_filter_cache_
|
|
10025
|
+
local_filter_cache_: local_filter_cache_,
|
|
10026
|
+
expanded_filters_: expanded_filters_,
|
|
10027
|
+
filters_open_: filters_open_
|
|
10018
10028
|
}) {
|
|
10019
10029
|
const [get_selected_filters] = selected_filters_;
|
|
10020
10030
|
// Possible values:
|
|
@@ -10042,7 +10052,9 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({
|
|
|
10042
10052
|
also_clear_sorting_: true,
|
|
10043
10053
|
current_sorting_: current_sorting_,
|
|
10044
10054
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10045
|
-
local_filter_cache_: local_filter_cache_
|
|
10055
|
+
local_filter_cache_: local_filter_cache_,
|
|
10056
|
+
expanded_filters_: expanded_filters_,
|
|
10057
|
+
filters_open_: filters_open_
|
|
10046
10058
|
});
|
|
10047
10059
|
}
|
|
10048
10060
|
}), {
|
|
@@ -13474,7 +13486,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
13474
13486
|
current_sorting_: current_sorting_,
|
|
13475
13487
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
13476
13488
|
i18n_: i18n_,
|
|
13477
|
-
local_filter_cache_: state_.local_filter_cache
|
|
13489
|
+
local_filter_cache_: state_.local_filter_cache,
|
|
13490
|
+
expanded_filters_: state_.expanded_filters,
|
|
13491
|
+
filters_open_: state_.filters_open
|
|
13478
13492
|
});
|
|
13479
13493
|
$806c97b931758897$export$dde08b2dca8cc1ce.set(this, {
|
|
13480
13494
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -14412,7 +14426,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
|
|
|
14412
14426
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14413
14427
|
plp_results_: plp_results_,
|
|
14414
14428
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14415
|
-
id_type_: id_type_
|
|
14429
|
+
id_type_: id_type_,
|
|
14430
|
+
expanded_filters_: expanded_filters_,
|
|
14431
|
+
filters_open_: filters_open_
|
|
14416
14432
|
}) {
|
|
14417
14433
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
14418
14434
|
$e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -14421,7 +14437,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
|
|
|
14421
14437
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14422
14438
|
selected_filters_: selected_filters_,
|
|
14423
14439
|
i18n_: i18n_,
|
|
14424
|
-
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
|
|
14440
|
+
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14441
|
+
expanded_filters_: expanded_filters_,
|
|
14442
|
+
filters_open_: filters_open_
|
|
14425
14443
|
});
|
|
14426
14444
|
// The code below is for when we're already open and the user navigates to a new category
|
|
14427
14445
|
let previous_crumb_data = $9HbP8$untrack(crumb_data_);
|
|
@@ -14454,7 +14472,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
|
|
|
14454
14472
|
also_clear_sorting_: false,
|
|
14455
14473
|
selected_filters_: selected_filters_,
|
|
14456
14474
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14457
|
-
local_filter_cache_: local_filter_cache_
|
|
14475
|
+
local_filter_cache_: local_filter_cache_,
|
|
14476
|
+
expanded_filters_: expanded_filters_,
|
|
14477
|
+
filters_open_: filters_open_
|
|
14458
14478
|
});
|
|
14459
14479
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
14460
14480
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -14474,7 +14494,9 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
14474
14494
|
i18n_: i18n_,
|
|
14475
14495
|
selected_filters_: selected_filters_,
|
|
14476
14496
|
local_filter_cache_: local_filter_cache_,
|
|
14477
|
-
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
|
|
14497
|
+
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
|
|
14498
|
+
expanded_filters_: expanded_filters_,
|
|
14499
|
+
filters_open_: filters_open_
|
|
14478
14500
|
}) {
|
|
14479
14501
|
const tracking_function_for_plp_results = $9HbP8$createReaction(() => {
|
|
14480
14502
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
@@ -14489,7 +14511,9 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
14489
14511
|
also_clear_sorting_: false,
|
|
14490
14512
|
selected_filters_: selected_filters_,
|
|
14491
14513
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14492
|
-
local_filter_cache_: local_filter_cache_
|
|
14514
|
+
local_filter_cache_: local_filter_cache_,
|
|
14515
|
+
filters_open_: filters_open_,
|
|
14516
|
+
expanded_filters_: expanded_filters_
|
|
14493
14517
|
});
|
|
14494
14518
|
});
|
|
14495
14519
|
});
|
|
@@ -14785,7 +14809,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14785
14809
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14786
14810
|
plp_results_: plp_products_,
|
|
14787
14811
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14788
|
-
id_type_: id_type_
|
|
14812
|
+
id_type_: id_type_,
|
|
14813
|
+
expanded_filters_: expanded_filters_,
|
|
14814
|
+
filters_open_: category_filters_open_
|
|
14789
14815
|
});
|
|
14790
14816
|
get_breadcrumb_accessor_?.(crumb_data_);
|
|
14791
14817
|
get_quicklinks_accessor_?.(quicklinks_data_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.
|
|
240
|
-
"@depict-ai/types": "^5.
|
|
241
|
-
"@depict-ai/utilishared": "^2.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.4.0",
|
|
240
|
+
"@depict-ai/types": "^5.4.0",
|
|
241
|
+
"@depict-ai/utilishared": "^2.4.0",
|
|
242
242
|
"solid-js": "^1.8.12"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.1";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -3110,7 +3110,7 @@ function $34934309832515dc$export$f7658c347b037c3f() {
|
|
|
3110
3110
|
}
|
|
3111
3111
|
var $29e5dbeb69da7a36$var$_tmpl$ = ["<div", ' style="', '" class="spacer"></div>'],
|
|
3112
3112
|
$29e5dbeb69da7a36$var$_tmpl$2 = ["<button", ' class="submit major" type="button"', ">", "</button>"],
|
|
3113
|
-
$29e5dbeb69da7a36$var$_tmpl$3 = ["<div", ' class="', '" role="search"><!--$-->', "<!--/--><!--$-->", '<!--/--><div class="field"><!--$-->', '<!--/--><input class="', '" tabindex="0"', "><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
3113
|
+
$29e5dbeb69da7a36$var$_tmpl$3 = ["<div", ' class="', '" role="search"><!--$-->', "<!--/--><!--$-->", '<!--/--><div class="field"><!--$-->', '<!--/--><input class="', '" type="search" tabindex="0" enterkeyhint="search"', "><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
3114
3114
|
function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
3115
3115
|
let {
|
|
3116
3116
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
@@ -8810,7 +8810,9 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
|
|
|
8810
8810
|
local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
|
|
8811
8811
|
selected_filters_: [get_selected_filters, set_selected_filters],
|
|
8812
8812
|
expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
|
|
8813
|
-
delay_toast_: delay_toast_
|
|
8813
|
+
delay_toast_: delay_toast_,
|
|
8814
|
+
expanded_filters_: expanded_filters_,
|
|
8815
|
+
filters_open_: filters_open_
|
|
8814
8816
|
} = props;
|
|
8815
8817
|
const previous_selected_filters = $3hooq$solidjs.untrack(get_selected_filters);
|
|
8816
8818
|
if (!previous_selected_filters.length) {
|
|
@@ -8819,9 +8821,13 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
|
|
|
8819
8821
|
if (delay_toast_) return () => {};
|
|
8820
8822
|
return;
|
|
8821
8823
|
}
|
|
8824
|
+
const previousExpandedFilters = $3hooq$solidjs.untrack(() => expanded_filters_ === null || expanded_filters_ === void 0 ? void 0 : expanded_filters_[0]());
|
|
8825
|
+
const previousFiltersOpen = $3hooq$solidjs.untrack(() => filters_open_ === null || filters_open_ === void 0 ? void 0 : filters_open_[0]());
|
|
8822
8826
|
const previous_expanded_hierarchical_filters = $3hooq$solidjs.untrack(get_expanded_hierarchical_filters);
|
|
8823
8827
|
const previous_local_filter_cache = $3hooq$solidjs.untrack(get_local_filter_cache);
|
|
8824
8828
|
const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
|
|
8829
|
+
expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1]([]);
|
|
8830
|
+
filters_open_ === null || filters_open_ === void 0 || filters_open_[1](false);
|
|
8825
8831
|
set_selected_filters([]);
|
|
8826
8832
|
scrollTo({
|
|
8827
8833
|
top: 0
|
|
@@ -8847,7 +8853,7 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
|
|
|
8847
8853
|
close_toast_: close_toast_
|
|
8848
8854
|
} = $5909f8d84b7b4c30$export$5196e4c01fa56fcb({
|
|
8849
8855
|
class: "cleared_filters",
|
|
8850
|
-
close_after_:
|
|
8856
|
+
close_after_: 10000,
|
|
8851
8857
|
on_close_: on_toast_hidden,
|
|
8852
8858
|
children: [$3hooq$solidjsweb.ssr($1a8463d757baadb6$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(statement_accessor())), $3hooq$solidjsweb.ssr($1a8463d757baadb6$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(i18n_.restore_()), $3hooq$solidjsweb.escape(i18n_.ok_()))]
|
|
8853
8859
|
}));
|
|
@@ -8861,7 +8867,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
|
|
|
8861
8867
|
current_sorting_: current_sorting_,
|
|
8862
8868
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8863
8869
|
i18n_: i18n_,
|
|
8864
|
-
local_filter_cache_: local_filter_cache_
|
|
8870
|
+
local_filter_cache_: local_filter_cache_,
|
|
8871
|
+
expanded_filters_: expanded_filters_,
|
|
8872
|
+
filters_open_: filters_open_
|
|
8865
8873
|
} = _ref;
|
|
8866
8874
|
const [get_selected_filters] = selected_filters_;
|
|
8867
8875
|
// Possible values:
|
|
@@ -8889,7 +8897,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
|
|
|
8889
8897
|
also_clear_sorting_: true,
|
|
8890
8898
|
current_sorting_: current_sorting_,
|
|
8891
8899
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8892
|
-
local_filter_cache_: local_filter_cache_
|
|
8900
|
+
local_filter_cache_: local_filter_cache_,
|
|
8901
|
+
expanded_filters_: expanded_filters_,
|
|
8902
|
+
filters_open_: filters_open_
|
|
8893
8903
|
});
|
|
8894
8904
|
}
|
|
8895
8905
|
}), {
|
|
@@ -11946,7 +11956,9 @@ class $ddd39c5f36f49703$export$ac6237957a15b3f0 {
|
|
|
11946
11956
|
current_sorting_: current_sorting_,
|
|
11947
11957
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
11948
11958
|
i18n_: i18n_,
|
|
11949
|
-
local_filter_cache_: state_.local_filter_cache
|
|
11959
|
+
local_filter_cache_: state_.local_filter_cache,
|
|
11960
|
+
expanded_filters_: state_.expanded_filters,
|
|
11961
|
+
filters_open_: state_.filters_open
|
|
11950
11962
|
});
|
|
11951
11963
|
$ddd39c5f36f49703$export$dde08b2dca8cc1ce.set(this, {
|
|
11952
11964
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -12977,7 +12989,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
|
|
|
12977
12989
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12978
12990
|
plp_results_: plp_results_,
|
|
12979
12991
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12980
|
-
id_type_: id_type_
|
|
12992
|
+
id_type_: id_type_,
|
|
12993
|
+
expanded_filters_: expanded_filters_,
|
|
12994
|
+
filters_open_: filters_open_
|
|
12981
12995
|
} = _ref;
|
|
12982
12996
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
12983
12997
|
$8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -12986,7 +13000,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
|
|
|
12986
13000
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12987
13001
|
selected_filters_: selected_filters_,
|
|
12988
13002
|
i18n_: i18n_,
|
|
12989
|
-
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
|
|
13003
|
+
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13004
|
+
expanded_filters_: expanded_filters_,
|
|
13005
|
+
filters_open_: filters_open_
|
|
12990
13006
|
});
|
|
12991
13007
|
// The code below is for when we're already open and the user navigates to a new category
|
|
12992
13008
|
let previous_crumb_data = $3hooq$solidjs.untrack(crumb_data_);
|
|
@@ -13022,7 +13038,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
|
|
|
13022
13038
|
also_clear_sorting_: false,
|
|
13023
13039
|
selected_filters_: selected_filters_,
|
|
13024
13040
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13025
|
-
local_filter_cache_: local_filter_cache_
|
|
13041
|
+
local_filter_cache_: local_filter_cache_,
|
|
13042
|
+
expanded_filters_: expanded_filters_,
|
|
13043
|
+
filters_open_: filters_open_
|
|
13026
13044
|
});
|
|
13027
13045
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
13028
13046
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -13043,7 +13061,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
13043
13061
|
i18n_: i18n_,
|
|
13044
13062
|
selected_filters_: selected_filters_,
|
|
13045
13063
|
local_filter_cache_: local_filter_cache_,
|
|
13046
|
-
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
|
|
13064
|
+
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
|
|
13065
|
+
expanded_filters_: expanded_filters_,
|
|
13066
|
+
filters_open_: filters_open_
|
|
13047
13067
|
} = _ref3;
|
|
13048
13068
|
const tracking_function_for_plp_results = $3hooq$solidjs.createReaction(() => {
|
|
13049
13069
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
@@ -13058,7 +13078,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
13058
13078
|
also_clear_sorting_: false,
|
|
13059
13079
|
selected_filters_: selected_filters_,
|
|
13060
13080
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13061
|
-
local_filter_cache_: local_filter_cache_
|
|
13081
|
+
local_filter_cache_: local_filter_cache_,
|
|
13082
|
+
filters_open_: filters_open_,
|
|
13083
|
+
expanded_filters_: expanded_filters_
|
|
13062
13084
|
});
|
|
13063
13085
|
});
|
|
13064
13086
|
});
|
|
@@ -13329,7 +13351,9 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13329
13351
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13330
13352
|
plp_results_: plp_products_,
|
|
13331
13353
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13332
|
-
id_type_: id_type_
|
|
13354
|
+
id_type_: id_type_,
|
|
13355
|
+
expanded_filters_: expanded_filters_,
|
|
13356
|
+
filters_open_: category_filters_open_
|
|
13333
13357
|
});
|
|
13334
13358
|
get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
|
|
13335
13359
|
get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.
|
|
14
|
+
export const version = "4.7.1";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -1442,7 +1442,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1442
1442
|
* Open the modal with support for alignment.
|
|
1443
1443
|
* @returns {void}
|
|
1444
1444
|
*/
|
|
1445
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1445
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1446
1446
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1447
1447
|
export interface PageReplacer {
|
|
1448
1448
|
readonly render_: () => Node_Array;
|
|
@@ -1521,5 +1521,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1521
1521
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1522
1522
|
layout?: PossibleLayout;
|
|
1523
1523
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1524
|
-
}): import("@depict-ai/utilishared
|
|
1524
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1525
1525
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.1";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -3016,7 +3016,7 @@ function $83c36ed4520d0335$export$f7658c347b037c3f() {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
var $584c06c09cf4609d$var$_tmpl$ = ["<div", ' style="', '" class="spacer"></div>'],
|
|
3018
3018
|
$584c06c09cf4609d$var$_tmpl$2 = ["<button", ' class="submit major" type="button"', ">", "</button>"],
|
|
3019
|
-
$584c06c09cf4609d$var$_tmpl$3 = ["<div", ' class="', '" role="search"><!--$-->', "<!--/--><!--$-->", '<!--/--><div class="field"><!--$-->', '<!--/--><input class="', '" tabindex="0"', "><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
3019
|
+
$584c06c09cf4609d$var$_tmpl$3 = ["<div", ' class="', '" role="search"><!--$-->', "<!--/--><!--$-->", '<!--/--><div class="field"><!--$-->', '<!--/--><input class="', '" type="search" tabindex="0" enterkeyhint="search"', "><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
3020
3020
|
function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
3021
3021
|
let {
|
|
3022
3022
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
@@ -8716,7 +8716,9 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
|
|
|
8716
8716
|
local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
|
|
8717
8717
|
selected_filters_: [get_selected_filters, set_selected_filters],
|
|
8718
8718
|
expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
|
|
8719
|
-
delay_toast_: delay_toast_
|
|
8719
|
+
delay_toast_: delay_toast_,
|
|
8720
|
+
expanded_filters_: expanded_filters_,
|
|
8721
|
+
filters_open_: filters_open_
|
|
8720
8722
|
} = props;
|
|
8721
8723
|
const previous_selected_filters = $b8hua$untrack(get_selected_filters);
|
|
8722
8724
|
if (!previous_selected_filters.length) {
|
|
@@ -8725,9 +8727,13 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
|
|
|
8725
8727
|
if (delay_toast_) return () => {};
|
|
8726
8728
|
return;
|
|
8727
8729
|
}
|
|
8730
|
+
const previousExpandedFilters = $b8hua$untrack(() => expanded_filters_ === null || expanded_filters_ === void 0 ? void 0 : expanded_filters_[0]());
|
|
8731
|
+
const previousFiltersOpen = $b8hua$untrack(() => filters_open_ === null || filters_open_ === void 0 ? void 0 : filters_open_[0]());
|
|
8728
8732
|
const previous_expanded_hierarchical_filters = $b8hua$untrack(get_expanded_hierarchical_filters);
|
|
8729
8733
|
const previous_local_filter_cache = $b8hua$untrack(get_local_filter_cache);
|
|
8730
8734
|
const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
|
|
8735
|
+
expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1]([]);
|
|
8736
|
+
filters_open_ === null || filters_open_ === void 0 || filters_open_[1](false);
|
|
8731
8737
|
set_selected_filters([]);
|
|
8732
8738
|
scrollTo({
|
|
8733
8739
|
top: 0
|
|
@@ -8753,7 +8759,7 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
|
|
|
8753
8759
|
close_toast_: close_toast_
|
|
8754
8760
|
} = $a61a2051e15c8d7a$export$5196e4c01fa56fcb({
|
|
8755
8761
|
class: "cleared_filters",
|
|
8756
|
-
close_after_:
|
|
8762
|
+
close_after_: 10000,
|
|
8757
8763
|
on_close_: on_toast_hidden,
|
|
8758
8764
|
children: [$b8hua$ssr($b4465d8d605f61e9$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(statement_accessor())), $b8hua$ssr($b4465d8d605f61e9$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(i18n_.restore_()), $b8hua$escape(i18n_.ok_()))]
|
|
8759
8765
|
}));
|
|
@@ -8767,7 +8773,9 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
|
|
|
8767
8773
|
current_sorting_: current_sorting_,
|
|
8768
8774
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8769
8775
|
i18n_: i18n_,
|
|
8770
|
-
local_filter_cache_: local_filter_cache_
|
|
8776
|
+
local_filter_cache_: local_filter_cache_,
|
|
8777
|
+
expanded_filters_: expanded_filters_,
|
|
8778
|
+
filters_open_: filters_open_
|
|
8771
8779
|
} = _ref;
|
|
8772
8780
|
const [get_selected_filters] = selected_filters_;
|
|
8773
8781
|
// Possible values:
|
|
@@ -8795,7 +8803,9 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
|
|
|
8795
8803
|
also_clear_sorting_: true,
|
|
8796
8804
|
current_sorting_: current_sorting_,
|
|
8797
8805
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8798
|
-
local_filter_cache_: local_filter_cache_
|
|
8806
|
+
local_filter_cache_: local_filter_cache_,
|
|
8807
|
+
expanded_filters_: expanded_filters_,
|
|
8808
|
+
filters_open_: filters_open_
|
|
8799
8809
|
});
|
|
8800
8810
|
}
|
|
8801
8811
|
}), {
|
|
@@ -11852,7 +11862,9 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
11852
11862
|
current_sorting_: current_sorting_,
|
|
11853
11863
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
11854
11864
|
i18n_: i18n_,
|
|
11855
|
-
local_filter_cache_: state_.local_filter_cache
|
|
11865
|
+
local_filter_cache_: state_.local_filter_cache,
|
|
11866
|
+
expanded_filters_: state_.expanded_filters,
|
|
11867
|
+
filters_open_: state_.filters_open
|
|
11856
11868
|
});
|
|
11857
11869
|
$eb064bc3350276c1$export$dde08b2dca8cc1ce.set(this, {
|
|
11858
11870
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -12883,7 +12895,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
12883
12895
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12884
12896
|
plp_results_: plp_results_,
|
|
12885
12897
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12886
|
-
id_type_: id_type_
|
|
12898
|
+
id_type_: id_type_,
|
|
12899
|
+
expanded_filters_: expanded_filters_,
|
|
12900
|
+
filters_open_: filters_open_
|
|
12887
12901
|
} = _ref;
|
|
12888
12902
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
12889
12903
|
$a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -12892,7 +12906,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
12892
12906
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12893
12907
|
selected_filters_: selected_filters_,
|
|
12894
12908
|
i18n_: i18n_,
|
|
12895
|
-
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
|
|
12909
|
+
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12910
|
+
expanded_filters_: expanded_filters_,
|
|
12911
|
+
filters_open_: filters_open_
|
|
12896
12912
|
});
|
|
12897
12913
|
// The code below is for when we're already open and the user navigates to a new category
|
|
12898
12914
|
let previous_crumb_data = $b8hua$untrack(crumb_data_);
|
|
@@ -12928,7 +12944,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
12928
12944
|
also_clear_sorting_: false,
|
|
12929
12945
|
selected_filters_: selected_filters_,
|
|
12930
12946
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12931
|
-
local_filter_cache_: local_filter_cache_
|
|
12947
|
+
local_filter_cache_: local_filter_cache_,
|
|
12948
|
+
expanded_filters_: expanded_filters_,
|
|
12949
|
+
filters_open_: filters_open_
|
|
12932
12950
|
});
|
|
12933
12951
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
12934
12952
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -12949,7 +12967,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12949
12967
|
i18n_: i18n_,
|
|
12950
12968
|
selected_filters_: selected_filters_,
|
|
12951
12969
|
local_filter_cache_: local_filter_cache_,
|
|
12952
|
-
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
|
|
12970
|
+
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
|
|
12971
|
+
expanded_filters_: expanded_filters_,
|
|
12972
|
+
filters_open_: filters_open_
|
|
12953
12973
|
} = _ref3;
|
|
12954
12974
|
const tracking_function_for_plp_results = $b8hua$createReaction(() => {
|
|
12955
12975
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
@@ -12964,7 +12984,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12964
12984
|
also_clear_sorting_: false,
|
|
12965
12985
|
selected_filters_: selected_filters_,
|
|
12966
12986
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12967
|
-
local_filter_cache_: local_filter_cache_
|
|
12987
|
+
local_filter_cache_: local_filter_cache_,
|
|
12988
|
+
filters_open_: filters_open_,
|
|
12989
|
+
expanded_filters_: expanded_filters_
|
|
12968
12990
|
});
|
|
12969
12991
|
});
|
|
12970
12992
|
});
|
|
@@ -13235,7 +13257,9 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13235
13257
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13236
13258
|
plp_results_: plp_products_,
|
|
13237
13259
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13238
|
-
id_type_: id_type_
|
|
13260
|
+
id_type_: id_type_,
|
|
13261
|
+
expanded_filters_: expanded_filters_,
|
|
13262
|
+
filters_open_: category_filters_open_
|
|
13239
13263
|
});
|
|
13240
13264
|
get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
|
|
13241
13265
|
get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
|
package/server/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.1";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -2937,7 +2937,7 @@ function $0175183387c8923a$export$f7658c347b037c3f(props = {}) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
var $66b8b9a9613c141d$var$_tmpl$ = ["<div", ' style="', '" class="spacer"></div>'],
|
|
2939
2939
|
$66b8b9a9613c141d$var$_tmpl$2 = ["<button", ' class="submit major" type="button"', ">", "</button>"],
|
|
2940
|
-
$66b8b9a9613c141d$var$_tmpl$3 = ["<div", ' class="', '" role="search"><!--$-->', "<!--/--><!--$-->", '<!--/--><div class="field"><!--$-->', '<!--/--><input class="', '" tabindex="0"', "><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
2940
|
+
$66b8b9a9613c141d$var$_tmpl$3 = ["<div", ' class="', '" role="search"><!--$-->', "<!--/--><!--$-->", '<!--/--><div class="field"><!--$-->', '<!--/--><input class="', '" type="search" tabindex="0" enterkeyhint="search"', "><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
2941
2941
|
function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
2942
2942
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
2943
2943
|
input_field_ref_: input_field_ref_,
|
|
@@ -8224,7 +8224,9 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
8224
8224
|
local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
|
|
8225
8225
|
selected_filters_: [get_selected_filters, set_selected_filters],
|
|
8226
8226
|
expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
|
|
8227
|
-
delay_toast_: delay_toast_
|
|
8227
|
+
delay_toast_: delay_toast_,
|
|
8228
|
+
expanded_filters_: expanded_filters_,
|
|
8229
|
+
filters_open_: filters_open_
|
|
8228
8230
|
} = props;
|
|
8229
8231
|
const previous_selected_filters = $5vyXB$solidjs.untrack(get_selected_filters);
|
|
8230
8232
|
if (!previous_selected_filters.length) {
|
|
@@ -8233,9 +8235,13 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
8233
8235
|
if (delay_toast_) return () => {};
|
|
8234
8236
|
return;
|
|
8235
8237
|
}
|
|
8238
|
+
const previousExpandedFilters = $5vyXB$solidjs.untrack(() => expanded_filters_?.[0]());
|
|
8239
|
+
const previousFiltersOpen = $5vyXB$solidjs.untrack(() => filters_open_?.[0]());
|
|
8236
8240
|
const previous_expanded_hierarchical_filters = $5vyXB$solidjs.untrack(get_expanded_hierarchical_filters);
|
|
8237
8241
|
const previous_local_filter_cache = $5vyXB$solidjs.untrack(get_local_filter_cache);
|
|
8238
8242
|
const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
|
|
8243
|
+
expanded_filters_?.[1]([]);
|
|
8244
|
+
filters_open_?.[1](false);
|
|
8239
8245
|
set_selected_filters([]);
|
|
8240
8246
|
scrollTo({
|
|
8241
8247
|
top: 0
|
|
@@ -8261,7 +8267,7 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
8261
8267
|
close_toast_: close_toast_
|
|
8262
8268
|
} = $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
8263
8269
|
class: "cleared_filters",
|
|
8264
|
-
close_after_:
|
|
8270
|
+
close_after_: 10000,
|
|
8265
8271
|
on_close_: on_toast_hidden,
|
|
8266
8272
|
children: [$5vyXB$solidjsweb.ssr($47e2cc552c02110c$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(statement_accessor())), $5vyXB$solidjsweb.ssr($47e2cc552c02110c$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(i18n_.restore_()), $5vyXB$solidjsweb.escape(i18n_.ok_()))]
|
|
8267
8273
|
}));
|
|
@@ -8274,7 +8280,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
|
|
|
8274
8280
|
current_sorting_: current_sorting_,
|
|
8275
8281
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8276
8282
|
i18n_: i18n_,
|
|
8277
|
-
local_filter_cache_: local_filter_cache_
|
|
8283
|
+
local_filter_cache_: local_filter_cache_,
|
|
8284
|
+
expanded_filters_: expanded_filters_,
|
|
8285
|
+
filters_open_: filters_open_
|
|
8278
8286
|
}) {
|
|
8279
8287
|
const [get_selected_filters] = selected_filters_;
|
|
8280
8288
|
// Possible values:
|
|
@@ -8302,7 +8310,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
|
|
|
8302
8310
|
also_clear_sorting_: true,
|
|
8303
8311
|
current_sorting_: current_sorting_,
|
|
8304
8312
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8305
|
-
local_filter_cache_: local_filter_cache_
|
|
8313
|
+
local_filter_cache_: local_filter_cache_,
|
|
8314
|
+
expanded_filters_: expanded_filters_,
|
|
8315
|
+
filters_open_: filters_open_
|
|
8306
8316
|
});
|
|
8307
8317
|
}
|
|
8308
8318
|
}), {
|
|
@@ -11131,7 +11141,9 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
11131
11141
|
current_sorting_: current_sorting_,
|
|
11132
11142
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
11133
11143
|
i18n_: i18n_,
|
|
11134
|
-
local_filter_cache_: state_.local_filter_cache
|
|
11144
|
+
local_filter_cache_: state_.local_filter_cache,
|
|
11145
|
+
expanded_filters_: state_.expanded_filters,
|
|
11146
|
+
filters_open_: state_.filters_open
|
|
11135
11147
|
});
|
|
11136
11148
|
$2c61e4cd8229c49a$export$dde08b2dca8cc1ce.set(this, {
|
|
11137
11149
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -12026,7 +12038,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
|
|
|
12026
12038
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12027
12039
|
plp_results_: plp_results_,
|
|
12028
12040
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12029
|
-
id_type_: id_type_
|
|
12041
|
+
id_type_: id_type_,
|
|
12042
|
+
expanded_filters_: expanded_filters_,
|
|
12043
|
+
filters_open_: filters_open_
|
|
12030
12044
|
}) {
|
|
12031
12045
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
12032
12046
|
$ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -12035,7 +12049,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
|
|
|
12035
12049
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12036
12050
|
selected_filters_: selected_filters_,
|
|
12037
12051
|
i18n_: i18n_,
|
|
12038
|
-
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
|
|
12052
|
+
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12053
|
+
expanded_filters_: expanded_filters_,
|
|
12054
|
+
filters_open_: filters_open_
|
|
12039
12055
|
});
|
|
12040
12056
|
// The code below is for when we're already open and the user navigates to a new category
|
|
12041
12057
|
let previous_crumb_data = $5vyXB$solidjs.untrack(crumb_data_);
|
|
@@ -12068,7 +12084,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
|
|
|
12068
12084
|
also_clear_sorting_: false,
|
|
12069
12085
|
selected_filters_: selected_filters_,
|
|
12070
12086
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12071
|
-
local_filter_cache_: local_filter_cache_
|
|
12087
|
+
local_filter_cache_: local_filter_cache_,
|
|
12088
|
+
expanded_filters_: expanded_filters_,
|
|
12089
|
+
filters_open_: filters_open_
|
|
12072
12090
|
});
|
|
12073
12091
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
12074
12092
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -12088,7 +12106,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12088
12106
|
i18n_: i18n_,
|
|
12089
12107
|
selected_filters_: selected_filters_,
|
|
12090
12108
|
local_filter_cache_: local_filter_cache_,
|
|
12091
|
-
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
|
|
12109
|
+
sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
|
|
12110
|
+
expanded_filters_: expanded_filters_,
|
|
12111
|
+
filters_open_: filters_open_
|
|
12092
12112
|
}) {
|
|
12093
12113
|
const tracking_function_for_plp_results = $5vyXB$solidjs.createReaction(() => {
|
|
12094
12114
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
@@ -12103,7 +12123,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12103
12123
|
also_clear_sorting_: false,
|
|
12104
12124
|
selected_filters_: selected_filters_,
|
|
12105
12125
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12106
|
-
local_filter_cache_: local_filter_cache_
|
|
12126
|
+
local_filter_cache_: local_filter_cache_,
|
|
12127
|
+
filters_open_: filters_open_,
|
|
12128
|
+
expanded_filters_: expanded_filters_
|
|
12107
12129
|
});
|
|
12108
12130
|
});
|
|
12109
12131
|
});
|
|
@@ -12346,7 +12368,9 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
12346
12368
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12347
12369
|
plp_results_: plp_products_,
|
|
12348
12370
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12349
|
-
id_type_: id_type_
|
|
12371
|
+
id_type_: id_type_,
|
|
12372
|
+
expanded_filters_: expanded_filters_,
|
|
12373
|
+
filters_open_: category_filters_open_
|
|
12350
12374
|
});
|
|
12351
12375
|
get_breadcrumb_accessor_?.(crumb_data_);
|
|
12352
12376
|
get_quicklinks_accessor_?.(quicklinks_data_);
|