@depict-ai/ui 4.10.5 → 4.10.6
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 +23 -23
- package/ES10/index.d.ts +3 -1
- package/ES10/index.js +23 -23
- package/latest/index.cjs +16 -16
- package/latest/index.d.ts +3 -1
- package/latest/index.js +16 -16
- package/package.json +1 -1
- package/server/ES10/index.cjs +23 -23
- package/server/ES10/index.d.ts +3 -1
- package/server/ES10/index.js +23 -23
- package/server/latest/index.cjs +16 -16
- package/server/latest/index.d.ts +3 -1
- package/server/latest/index.js +16 -16
package/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.6";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $52FdA$solidjs.createSignal(false);
|
|
121
121
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -6292,7 +6292,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6292
6292
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
6293
6293
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
6294
6294
|
filterModalParent_: filterModalParent_,
|
|
6295
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
6295
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6296
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6296
6297
|
} = _ref;
|
|
6297
6298
|
const Self = () => {
|
|
6298
6299
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -6301,11 +6302,13 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6301
6302
|
selected_filters_: selected_filters_,
|
|
6302
6303
|
local_filter_cache_: local_filter_cache_
|
|
6303
6304
|
});
|
|
6304
|
-
const cleanup_promise = new Promise(r => $52FdA$solidjs.onCleanup(r));
|
|
6305
6305
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
6306
6306
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
6307
6307
|
const [get_current_sorting_] = current_sorting_;
|
|
6308
|
-
const
|
|
6308
|
+
const isSmall = $52FdA$solidjs.createMemo(() => {
|
|
6309
|
+
var _switchToFiltersDrawe;
|
|
6310
|
+
return $3e17e871e9d0911d$export$d9f36cf74e24d595("(max-width:".concat((_switchToFiltersDrawe = switchToFiltersDrawerBreakpoint_()) !== null && _switchToFiltersDrawe !== void 0 ? _switchToFiltersDrawe : 651, "px)"));
|
|
6311
|
+
});
|
|
6309
6312
|
const dismiss_modal_ = $52FdA$depictaiutilishared.catchify(() => {
|
|
6310
6313
|
set_filters_open(false);
|
|
6311
6314
|
set_sorting_open(false);
|
|
@@ -6369,7 +6372,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6369
6372
|
$52FdA$solidjs.createComputed(() => {
|
|
6370
6373
|
const fi_o = filters_open();
|
|
6371
6374
|
const so_o = sorting_open();
|
|
6372
|
-
const i_s =
|
|
6375
|
+
const i_s = isSmall()();
|
|
6373
6376
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
6374
6377
|
if ((fi_o || so_o) && !i_s) {
|
|
6375
6378
|
if (!grid_is_in_original_state) return;
|
|
@@ -6385,7 +6388,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6385
6388
|
var _close_modal_;
|
|
6386
6389
|
(_close_modal_ = close_modal_) === null || _close_modal_ === void 0 || _close_modal_();
|
|
6387
6390
|
set_extra_els_in_results_container_("");
|
|
6388
|
-
} else if (
|
|
6391
|
+
} else if (isSmall()()) {
|
|
6389
6392
|
var _open_modal_;
|
|
6390
6393
|
if ($52FdA$solidjs.untrack(() => input_modal_open_ === null || input_modal_open_ === void 0 ? void 0 : input_modal_open_())) {
|
|
6391
6394
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
@@ -6429,15 +6432,6 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6429
6432
|
dismiss_modal_: dismiss_modal_,
|
|
6430
6433
|
i18n_: i18n_
|
|
6431
6434
|
}, filterModalParent_));
|
|
6432
|
-
const {
|
|
6433
|
-
remove: remove
|
|
6434
|
-
} = $52FdA$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
6435
|
-
let {
|
|
6436
|
-
matches: matches
|
|
6437
|
-
} = _ref3;
|
|
6438
|
-
return set_is_small(matches);
|
|
6439
|
-
});
|
|
6440
|
-
cleanup_promise.then(remove);
|
|
6441
6435
|
})();
|
|
6442
6436
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
6443
6437
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
@@ -6479,7 +6473,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
6479
6473
|
}
|
|
6480
6474
|
});
|
|
6481
6475
|
}
|
|
6482
|
-
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(
|
|
6476
|
+
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
6483
6477
|
let {
|
|
6484
6478
|
i18n_: i18n_,
|
|
6485
6479
|
search_filters_open_: search_filters_open_,
|
|
@@ -6488,7 +6482,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref4) {
|
|
|
6488
6482
|
tabindex_: tabindex_,
|
|
6489
6483
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
6490
6484
|
hide_button_: hide_button_
|
|
6491
|
-
} =
|
|
6485
|
+
} = _ref3;
|
|
6492
6486
|
const filters_closed = $52FdA$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
6493
6487
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
6494
6488
|
return (() => {
|
|
@@ -6559,7 +6553,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref4) {
|
|
|
6559
6553
|
return _el$14;
|
|
6560
6554
|
})();
|
|
6561
6555
|
}
|
|
6562
|
-
function $f70cc6dfcadf0fd5$var$OpenSortingButton(
|
|
6556
|
+
function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
6563
6557
|
let {
|
|
6564
6558
|
i18n_: i18n_,
|
|
6565
6559
|
get_current_sorting_: get_current_sorting_,
|
|
@@ -6569,7 +6563,7 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref5) {
|
|
|
6569
6563
|
sort_button_width_: sort_button_width_,
|
|
6570
6564
|
tabindex_: tabindex_,
|
|
6571
6565
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
6572
|
-
} =
|
|
6566
|
+
} = _ref4;
|
|
6573
6567
|
const sorting_closed = $52FdA$solidjs.createMemo(() => !search_sorting_open_[0]());
|
|
6574
6568
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
6575
6569
|
return (() => {
|
|
@@ -8287,7 +8281,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
8287
8281
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
8288
8282
|
filterModalParent_: filterModalParent_,
|
|
8289
8283
|
showSliderArrow_: showSliderArrow_,
|
|
8290
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
8284
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
8285
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
8291
8286
|
} = _ref;
|
|
8292
8287
|
let results_for;
|
|
8293
8288
|
let only_show_filters_opener_;
|
|
@@ -8520,6 +8515,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
8520
8515
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
8521
8516
|
filterModalParent_: filterModalParent_,
|
|
8522
8517
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
8518
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
8523
8519
|
...extra_sort_and_filter_args_
|
|
8524
8520
|
});
|
|
8525
8521
|
$52FdA$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
|
|
@@ -15443,7 +15439,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
15443
15439
|
filterModalParent_: filterModalParent_,
|
|
15444
15440
|
class_: class_,
|
|
15445
15441
|
showSliderArrow_: showSliderArrow_,
|
|
15446
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
15442
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
15443
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
15447
15444
|
} = _ref;
|
|
15448
15445
|
const [get_sorting] = current_sorting_;
|
|
15449
15446
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -15564,7 +15561,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
15564
15561
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15565
15562
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
15566
15563
|
filterModalParent_: filterModalParent_,
|
|
15567
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
15564
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
15565
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
15568
15566
|
});
|
|
15569
15567
|
const results_filters = $52FdA$solidjs.createSignal();
|
|
15570
15568
|
const shouldActuallyShowInputField = $52FdA$solidjs.createMemo(() => {
|
|
@@ -16319,6 +16317,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
16319
16317
|
search_sorting_open_: state_.sorting_open,
|
|
16320
16318
|
expanded_filters_: state_.expanded_filters,
|
|
16321
16319
|
content_results_rows_: state_.content_results_rows,
|
|
16320
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
16322
16321
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16323
16322
|
router_: shared_properties.router_,
|
|
16324
16323
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -17026,7 +17025,8 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
17026
17025
|
})),
|
|
17027
17026
|
product_card_template_: product_card_template,
|
|
17028
17027
|
sorting_query_param_: sorting_query_param_,
|
|
17029
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
17028
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
17029
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
17030
17030
|
});
|
|
17031
17031
|
}, "Entire CategoryPage failed");
|
|
17032
17032
|
}
|
package/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.10.
|
|
14
|
+
export const version = "4.10.6";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1501,6 +1501,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1501
1501
|
class?: string;
|
|
1502
1502
|
showSliderArrow_?: boolean;
|
|
1503
1503
|
hideCount0FilterOptions_?: boolean;
|
|
1504
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1504
1505
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1505
1506
|
/**
|
|
1506
1507
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1612,6 +1613,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1612
1613
|
grid_spacing: SDKGridSpacing;
|
|
1613
1614
|
cols_at_size: SDKColsAtSize;
|
|
1614
1615
|
product_card_template: ProductCardTemplate<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>;
|
|
1616
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1615
1617
|
show_quicklinks?: boolean;
|
|
1616
1618
|
show_breadcrumbs?: boolean;
|
|
1617
1619
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
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.10.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.6";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $8tj43$createSignal(false);
|
|
16
16
|
$8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
|
|
@@ -6187,7 +6187,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6187
6187
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
6188
6188
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
6189
6189
|
filterModalParent_: filterModalParent_,
|
|
6190
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
6190
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6191
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6191
6192
|
} = _ref;
|
|
6192
6193
|
const Self = () => {
|
|
6193
6194
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -6196,11 +6197,13 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6196
6197
|
selected_filters_: selected_filters_,
|
|
6197
6198
|
local_filter_cache_: local_filter_cache_
|
|
6198
6199
|
});
|
|
6199
|
-
const cleanup_promise = new Promise(r => $8tj43$onCleanup(r));
|
|
6200
6200
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
6201
6201
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
6202
6202
|
const [get_current_sorting_] = current_sorting_;
|
|
6203
|
-
const
|
|
6203
|
+
const isSmall = $8tj43$createMemo(() => {
|
|
6204
|
+
var _switchToFiltersDrawe;
|
|
6205
|
+
return $00a5b94f0c11efbb$export$d9f36cf74e24d595("(max-width:".concat((_switchToFiltersDrawe = switchToFiltersDrawerBreakpoint_()) !== null && _switchToFiltersDrawe !== void 0 ? _switchToFiltersDrawe : 651, "px)"));
|
|
6206
|
+
});
|
|
6204
6207
|
const dismiss_modal_ = $8tj43$catchify1(() => {
|
|
6205
6208
|
set_filters_open(false);
|
|
6206
6209
|
set_sorting_open(false);
|
|
@@ -6264,7 +6267,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6264
6267
|
$8tj43$createComputed(() => {
|
|
6265
6268
|
const fi_o = filters_open();
|
|
6266
6269
|
const so_o = sorting_open();
|
|
6267
|
-
const i_s =
|
|
6270
|
+
const i_s = isSmall()();
|
|
6268
6271
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
6269
6272
|
if ((fi_o || so_o) && !i_s) {
|
|
6270
6273
|
if (!grid_is_in_original_state) return;
|
|
@@ -6280,7 +6283,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6280
6283
|
var _close_modal_;
|
|
6281
6284
|
(_close_modal_ = close_modal_) === null || _close_modal_ === void 0 || _close_modal_();
|
|
6282
6285
|
set_extra_els_in_results_container_("");
|
|
6283
|
-
} else if (
|
|
6286
|
+
} else if (isSmall()()) {
|
|
6284
6287
|
var _open_modal_;
|
|
6285
6288
|
if ($8tj43$untrack(() => input_modal_open_ === null || input_modal_open_ === void 0 ? void 0 : input_modal_open_())) {
|
|
6286
6289
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
@@ -6324,15 +6327,6 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6324
6327
|
dismiss_modal_: dismiss_modal_,
|
|
6325
6328
|
i18n_: i18n_
|
|
6326
6329
|
}, filterModalParent_));
|
|
6327
|
-
const {
|
|
6328
|
-
remove: remove
|
|
6329
|
-
} = $8tj43$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
6330
|
-
let {
|
|
6331
|
-
matches: matches
|
|
6332
|
-
} = _ref3;
|
|
6333
|
-
return set_is_small(matches);
|
|
6334
|
-
});
|
|
6335
|
-
cleanup_promise.then(remove);
|
|
6336
6330
|
})();
|
|
6337
6331
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
6338
6332
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
@@ -6374,7 +6368,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
6374
6368
|
}
|
|
6375
6369
|
});
|
|
6376
6370
|
}
|
|
6377
|
-
function $7396052a1484264f$var$OpenFiltersButton(
|
|
6371
|
+
function $7396052a1484264f$var$OpenFiltersButton(_ref3) {
|
|
6378
6372
|
let {
|
|
6379
6373
|
i18n_: i18n_,
|
|
6380
6374
|
search_filters_open_: search_filters_open_,
|
|
@@ -6383,7 +6377,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref4) {
|
|
|
6383
6377
|
tabindex_: tabindex_,
|
|
6384
6378
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
6385
6379
|
hide_button_: hide_button_
|
|
6386
|
-
} =
|
|
6380
|
+
} = _ref3;
|
|
6387
6381
|
const filters_closed = $8tj43$createMemo(() => !search_filters_open_[0]());
|
|
6388
6382
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
6389
6383
|
return (() => {
|
|
@@ -6454,7 +6448,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref4) {
|
|
|
6454
6448
|
return _el$14;
|
|
6455
6449
|
})();
|
|
6456
6450
|
}
|
|
6457
|
-
function $7396052a1484264f$var$OpenSortingButton(
|
|
6451
|
+
function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
6458
6452
|
let {
|
|
6459
6453
|
i18n_: i18n_,
|
|
6460
6454
|
get_current_sorting_: get_current_sorting_,
|
|
@@ -6464,7 +6458,7 @@ function $7396052a1484264f$var$OpenSortingButton(_ref5) {
|
|
|
6464
6458
|
sort_button_width_: sort_button_width_,
|
|
6465
6459
|
tabindex_: tabindex_,
|
|
6466
6460
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
6467
|
-
} =
|
|
6461
|
+
} = _ref4;
|
|
6468
6462
|
const sorting_closed = $8tj43$createMemo(() => !search_sorting_open_[0]());
|
|
6469
6463
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
6470
6464
|
return (() => {
|
|
@@ -8182,7 +8176,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
8182
8176
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
8183
8177
|
filterModalParent_: filterModalParent_,
|
|
8184
8178
|
showSliderArrow_: showSliderArrow_,
|
|
8185
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
8179
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
8180
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
8186
8181
|
} = _ref;
|
|
8187
8182
|
let results_for;
|
|
8188
8183
|
let only_show_filters_opener_;
|
|
@@ -8415,6 +8410,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
8415
8410
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
8416
8411
|
filterModalParent_: filterModalParent_,
|
|
8417
8412
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
8413
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
8418
8414
|
...extra_sort_and_filter_args_
|
|
8419
8415
|
});
|
|
8420
8416
|
$8tj43$catchify((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
@@ -15338,7 +15334,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
15338
15334
|
filterModalParent_: filterModalParent_,
|
|
15339
15335
|
class_: class_,
|
|
15340
15336
|
showSliderArrow_: showSliderArrow_,
|
|
15341
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
15337
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
15338
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
15342
15339
|
} = _ref;
|
|
15343
15340
|
const [get_sorting] = current_sorting_;
|
|
15344
15341
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -15459,7 +15456,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
15459
15456
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15460
15457
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
15461
15458
|
filterModalParent_: filterModalParent_,
|
|
15462
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
15459
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
15460
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
15463
15461
|
});
|
|
15464
15462
|
const results_filters = $8tj43$createSignal();
|
|
15465
15463
|
const shouldActuallyShowInputField = $8tj43$createMemo(() => {
|
|
@@ -16214,6 +16212,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
16214
16212
|
search_sorting_open_: state_.sorting_open,
|
|
16215
16213
|
expanded_filters_: state_.expanded_filters,
|
|
16216
16214
|
content_results_rows_: state_.content_results_rows,
|
|
16215
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
16217
16216
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16218
16217
|
router_: shared_properties.router_,
|
|
16219
16218
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -16921,7 +16920,8 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
16921
16920
|
})),
|
|
16922
16921
|
product_card_template_: product_card_template,
|
|
16923
16922
|
sorting_query_param_: sorting_query_param_,
|
|
16924
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
16923
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16924
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
16925
16925
|
});
|
|
16926
16926
|
}, "Entire CategoryPage failed");
|
|
16927
16927
|
}
|
package/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.6";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $gVhhF$solidjs.createSignal(false);
|
|
115
115
|
$gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -5946,7 +5946,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
5946
5946
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
5947
5947
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
5948
5948
|
filterModalParent_: filterModalParent_,
|
|
5949
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
5949
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
5950
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
5950
5951
|
}) {
|
|
5951
5952
|
const Self = () => {
|
|
5952
5953
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -5955,11 +5956,10 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
5955
5956
|
selected_filters_: selected_filters_,
|
|
5956
5957
|
local_filter_cache_: local_filter_cache_
|
|
5957
5958
|
});
|
|
5958
|
-
const cleanup_promise = new Promise(r => $gVhhF$solidjs.onCleanup(r));
|
|
5959
5959
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
5960
5960
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
5961
5961
|
const [get_current_sorting_] = current_sorting_;
|
|
5962
|
-
const
|
|
5962
|
+
const isSmall = $gVhhF$solidjs.createMemo(() => $b54e6192d0caa293$export$d9f36cf74e24d595(`(max-width:${switchToFiltersDrawerBreakpoint_() ?? 651}px)`));
|
|
5963
5963
|
const dismiss_modal_ = $gVhhF$depictaiutilishared.catchify(() => {
|
|
5964
5964
|
set_filters_open(false);
|
|
5965
5965
|
set_sorting_open(false);
|
|
@@ -6011,7 +6011,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
6011
6011
|
$gVhhF$solidjs.createComputed(() => {
|
|
6012
6012
|
const fi_o = filters_open();
|
|
6013
6013
|
const so_o = sorting_open();
|
|
6014
|
-
const i_s =
|
|
6014
|
+
const i_s = isSmall()();
|
|
6015
6015
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
6016
6016
|
if ((fi_o || so_o) && !i_s) {
|
|
6017
6017
|
if (!grid_is_in_original_state) return;
|
|
@@ -6026,7 +6026,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
6026
6026
|
if (!filters_open() && !sorting_open()) {
|
|
6027
6027
|
close_modal_?.();
|
|
6028
6028
|
set_extra_els_in_results_container_("");
|
|
6029
|
-
} else if (
|
|
6029
|
+
} else if (isSmall()()) {
|
|
6030
6030
|
if ($gVhhF$solidjs.untrack(() => input_modal_open_?.())) {
|
|
6031
6031
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
6032
6032
|
set_filters_open(false);
|
|
@@ -6068,12 +6068,6 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
6068
6068
|
dismiss_modal_: dismiss_modal_,
|
|
6069
6069
|
i18n_: i18n_
|
|
6070
6070
|
}, filterModalParent_));
|
|
6071
|
-
const {
|
|
6072
|
-
remove: remove
|
|
6073
|
-
} = $gVhhF$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
|
|
6074
|
-
matches: matches
|
|
6075
|
-
}) => set_is_small(matches));
|
|
6076
|
-
cleanup_promise.then(remove);
|
|
6077
6071
|
})();
|
|
6078
6072
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
6079
6073
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
@@ -7845,7 +7839,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
7845
7839
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
7846
7840
|
filterModalParent_: filterModalParent_,
|
|
7847
7841
|
showSliderArrow_: showSliderArrow_,
|
|
7848
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
7842
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
7843
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
7849
7844
|
}) {
|
|
7850
7845
|
let results_for;
|
|
7851
7846
|
let only_show_filters_opener_;
|
|
@@ -8060,6 +8055,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
8060
8055
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
8061
8056
|
filterModalParent_: filterModalParent_,
|
|
8062
8057
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
8058
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
8063
8059
|
...extra_sort_and_filter_args_
|
|
8064
8060
|
});
|
|
8065
8061
|
$gVhhF$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
|
|
@@ -14567,7 +14563,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
14567
14563
|
filterModalParent_: filterModalParent_,
|
|
14568
14564
|
class_: class_,
|
|
14569
14565
|
showSliderArrow_: showSliderArrow_,
|
|
14570
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
14566
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
14567
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
14571
14568
|
}) {
|
|
14572
14569
|
const [get_sorting] = current_sorting_;
|
|
14573
14570
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -14676,7 +14673,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
14676
14673
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14677
14674
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
14678
14675
|
filterModalParent_: filterModalParent_,
|
|
14679
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
14676
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
14677
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
14680
14678
|
});
|
|
14681
14679
|
const results_filters = $gVhhF$solidjs.createSignal();
|
|
14682
14680
|
const shouldActuallyShowInputField = $gVhhF$solidjs.createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
@@ -15337,6 +15335,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
15337
15335
|
search_sorting_open_: state_.sorting_open,
|
|
15338
15336
|
expanded_filters_: state_.expanded_filters,
|
|
15339
15337
|
content_results_rows_: state_.content_results_rows,
|
|
15338
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
15340
15339
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15341
15340
|
router_: shared_properties.router_,
|
|
15342
15341
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -15934,7 +15933,8 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
15934
15933
|
})),
|
|
15935
15934
|
product_card_template_: product_card_template,
|
|
15936
15935
|
sorting_query_param_: sorting_query_param_,
|
|
15937
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
15936
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15937
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
15938
15938
|
});
|
|
15939
15939
|
}, "Entire CategoryPage failed");
|
|
15940
15940
|
}
|
package/latest/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.10.
|
|
14
|
+
export const version = "4.10.6";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1501,6 +1501,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1501
1501
|
class?: string;
|
|
1502
1502
|
showSliderArrow_?: boolean;
|
|
1503
1503
|
hideCount0FilterOptions_?: boolean;
|
|
1504
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1504
1505
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1505
1506
|
/**
|
|
1506
1507
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1612,6 +1613,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1612
1613
|
grid_spacing: SDKGridSpacing;
|
|
1613
1614
|
cols_at_size: SDKColsAtSize;
|
|
1614
1615
|
product_card_template: ProductCardTemplate<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>;
|
|
1616
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1615
1617
|
show_quicklinks?: boolean;
|
|
1616
1618
|
show_breadcrumbs?: boolean;
|
|
1617
1619
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.6";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $9HbP8$createSignal(false);
|
|
13
13
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -5844,7 +5844,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
5844
5844
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
5845
5845
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
5846
5846
|
filterModalParent_: filterModalParent_,
|
|
5847
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
5847
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
5848
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
5848
5849
|
}) {
|
|
5849
5850
|
const Self = () => {
|
|
5850
5851
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -5853,11 +5854,10 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
5853
5854
|
selected_filters_: selected_filters_,
|
|
5854
5855
|
local_filter_cache_: local_filter_cache_
|
|
5855
5856
|
});
|
|
5856
|
-
const cleanup_promise = new Promise(r => $9HbP8$onCleanup(r));
|
|
5857
5857
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
5858
5858
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
5859
5859
|
const [get_current_sorting_] = current_sorting_;
|
|
5860
|
-
const
|
|
5860
|
+
const isSmall = $9HbP8$createMemo(() => $dc9262ef6f786812$export$d9f36cf74e24d595(`(max-width:${switchToFiltersDrawerBreakpoint_() ?? 651}px)`));
|
|
5861
5861
|
const dismiss_modal_ = $9HbP8$catchify1(() => {
|
|
5862
5862
|
set_filters_open(false);
|
|
5863
5863
|
set_sorting_open(false);
|
|
@@ -5909,7 +5909,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
5909
5909
|
$9HbP8$createComputed(() => {
|
|
5910
5910
|
const fi_o = filters_open();
|
|
5911
5911
|
const so_o = sorting_open();
|
|
5912
|
-
const i_s =
|
|
5912
|
+
const i_s = isSmall()();
|
|
5913
5913
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
5914
5914
|
if ((fi_o || so_o) && !i_s) {
|
|
5915
5915
|
if (!grid_is_in_original_state) return;
|
|
@@ -5924,7 +5924,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
5924
5924
|
if (!filters_open() && !sorting_open()) {
|
|
5925
5925
|
close_modal_?.();
|
|
5926
5926
|
set_extra_els_in_results_container_("");
|
|
5927
|
-
} else if (
|
|
5927
|
+
} else if (isSmall()()) {
|
|
5928
5928
|
if ($9HbP8$untrack(() => input_modal_open_?.())) {
|
|
5929
5929
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
5930
5930
|
set_filters_open(false);
|
|
@@ -5966,12 +5966,6 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
5966
5966
|
dismiss_modal_: dismiss_modal_,
|
|
5967
5967
|
i18n_: i18n_
|
|
5968
5968
|
}, filterModalParent_));
|
|
5969
|
-
const {
|
|
5970
|
-
remove: remove
|
|
5971
|
-
} = $9HbP8$javascript_media_query("(max-width:651px)", ({
|
|
5972
|
-
matches: matches
|
|
5973
|
-
}) => set_is_small(matches));
|
|
5974
|
-
cleanup_promise.then(remove);
|
|
5975
5969
|
})();
|
|
5976
5970
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
5977
5971
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
@@ -7743,7 +7737,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7743
7737
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
7744
7738
|
filterModalParent_: filterModalParent_,
|
|
7745
7739
|
showSliderArrow_: showSliderArrow_,
|
|
7746
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
7740
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
7741
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
7747
7742
|
}) {
|
|
7748
7743
|
let results_for;
|
|
7749
7744
|
let only_show_filters_opener_;
|
|
@@ -7958,6 +7953,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7958
7953
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
7959
7954
|
filterModalParent_: filterModalParent_,
|
|
7960
7955
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
7956
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
7961
7957
|
...extra_sort_and_filter_args_
|
|
7962
7958
|
});
|
|
7963
7959
|
$9HbP8$catchify((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -14465,7 +14461,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
14465
14461
|
filterModalParent_: filterModalParent_,
|
|
14466
14462
|
class_: class_,
|
|
14467
14463
|
showSliderArrow_: showSliderArrow_,
|
|
14468
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
14464
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
14465
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
14469
14466
|
}) {
|
|
14470
14467
|
const [get_sorting] = current_sorting_;
|
|
14471
14468
|
const all_products_loaded_ = $9HbP8$createSignal(false);
|
|
@@ -14574,7 +14571,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
14574
14571
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14575
14572
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
14576
14573
|
filterModalParent_: filterModalParent_,
|
|
14577
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
14574
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
14575
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
14578
14576
|
});
|
|
14579
14577
|
const results_filters = $9HbP8$createSignal();
|
|
14580
14578
|
const shouldActuallyShowInputField = $9HbP8$createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
@@ -15235,6 +15233,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
15235
15233
|
search_sorting_open_: state_.sorting_open,
|
|
15236
15234
|
expanded_filters_: state_.expanded_filters,
|
|
15237
15235
|
content_results_rows_: state_.content_results_rows,
|
|
15236
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
15238
15237
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15239
15238
|
router_: shared_properties.router_,
|
|
15240
15239
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -15832,7 +15831,8 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15832
15831
|
})),
|
|
15833
15832
|
product_card_template_: product_card_template,
|
|
15834
15833
|
sorting_query_param_: sorting_query_param_,
|
|
15835
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
15834
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15835
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
15836
15836
|
});
|
|
15837
15837
|
}, "Entire CategoryPage failed");
|
|
15838
15838
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.6",
|
|
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",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.6";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $3hooq$solidjs.createSignal(false);
|
|
121
121
|
$3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -5007,7 +5007,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5007
5007
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
5008
5008
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
5009
5009
|
filterModalParent_: filterModalParent_,
|
|
5010
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
5010
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
5011
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
5011
5012
|
} = _ref;
|
|
5012
5013
|
const Self = () => {
|
|
5013
5014
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -5016,11 +5017,13 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5016
5017
|
selected_filters_: selected_filters_,
|
|
5017
5018
|
local_filter_cache_: local_filter_cache_
|
|
5018
5019
|
});
|
|
5019
|
-
const cleanup_promise = new Promise(r => $3hooq$solidjs.onCleanup(r));
|
|
5020
5020
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
5021
5021
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
5022
5022
|
const [get_current_sorting_] = current_sorting_;
|
|
5023
|
-
const
|
|
5023
|
+
const isSmall = $3hooq$solidjs.createMemo(() => {
|
|
5024
|
+
var _switchToFiltersDrawe;
|
|
5025
|
+
return $3e17e871e9d0911d$export$d9f36cf74e24d595("(max-width:".concat((_switchToFiltersDrawe = switchToFiltersDrawerBreakpoint_()) !== null && _switchToFiltersDrawe !== void 0 ? _switchToFiltersDrawe : 651, "px)"));
|
|
5026
|
+
});
|
|
5024
5027
|
const dismiss_modal_ = $3hooq$depictaiutilishared.catchify(() => {
|
|
5025
5028
|
set_filters_open(false);
|
|
5026
5029
|
set_sorting_open(false);
|
|
@@ -5084,7 +5087,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5084
5087
|
$3hooq$solidjs.createComputed(() => {
|
|
5085
5088
|
const fi_o = filters_open();
|
|
5086
5089
|
const so_o = sorting_open();
|
|
5087
|
-
const i_s =
|
|
5090
|
+
const i_s = isSmall()();
|
|
5088
5091
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
5089
5092
|
if ((fi_o || so_o) && !i_s) {
|
|
5090
5093
|
if (!grid_is_in_original_state) return;
|
|
@@ -5100,7 +5103,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5100
5103
|
var _close_modal_;
|
|
5101
5104
|
(_close_modal_ = close_modal_) === null || _close_modal_ === void 0 || _close_modal_();
|
|
5102
5105
|
set_extra_els_in_results_container_("");
|
|
5103
|
-
} else if (
|
|
5106
|
+
} else if (isSmall()()) {
|
|
5104
5107
|
var _open_modal_;
|
|
5105
5108
|
if ($3hooq$solidjs.untrack(() => input_modal_open_ === null || input_modal_open_ === void 0 ? void 0 : input_modal_open_())) {
|
|
5106
5109
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
@@ -5136,15 +5139,6 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5136
5139
|
dismiss_modal_: dismiss_modal_,
|
|
5137
5140
|
i18n_: i18n_
|
|
5138
5141
|
}, filterModalParent_));
|
|
5139
|
-
const {
|
|
5140
|
-
remove: remove
|
|
5141
|
-
} = $3hooq$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
5142
|
-
let {
|
|
5143
|
-
matches: matches
|
|
5144
|
-
} = _ref3;
|
|
5145
|
-
return set_is_small(matches);
|
|
5146
|
-
});
|
|
5147
|
-
cleanup_promise.then(remove);
|
|
5148
5142
|
})();
|
|
5149
5143
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
5150
5144
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
@@ -5172,7 +5166,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
5172
5166
|
}
|
|
5173
5167
|
});
|
|
5174
5168
|
}
|
|
5175
|
-
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(
|
|
5169
|
+
function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref3) {
|
|
5176
5170
|
let {
|
|
5177
5171
|
i18n_: i18n_,
|
|
5178
5172
|
search_filters_open_: search_filters_open_,
|
|
@@ -5181,7 +5175,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref4) {
|
|
|
5181
5175
|
tabindex_: tabindex_,
|
|
5182
5176
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
5183
5177
|
hide_button_: hide_button_
|
|
5184
|
-
} =
|
|
5178
|
+
} = _ref3;
|
|
5185
5179
|
const filters_closed = $3hooq$solidjs.createMemo(() => !search_filters_open_[0]());
|
|
5186
5180
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
5187
5181
|
return $3hooq$solidjsweb.ssr($f70cc6dfcadf0fd5$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle(hide_button_() ? {
|
|
@@ -5207,7 +5201,7 @@ function $f70cc6dfcadf0fd5$var$OpenFiltersButton(_ref4) {
|
|
|
5207
5201
|
}
|
|
5208
5202
|
})), $3hooq$solidjsweb.escape(i18n_.filter_text_()));
|
|
5209
5203
|
}
|
|
5210
|
-
function $f70cc6dfcadf0fd5$var$OpenSortingButton(
|
|
5204
|
+
function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref4) {
|
|
5211
5205
|
var _meta_of_currently_se;
|
|
5212
5206
|
let {
|
|
5213
5207
|
i18n_: i18n_,
|
|
@@ -5218,7 +5212,7 @@ function $f70cc6dfcadf0fd5$var$OpenSortingButton(_ref5) {
|
|
|
5218
5212
|
sort_button_width_: sort_button_width_,
|
|
5219
5213
|
tabindex_: tabindex_,
|
|
5220
5214
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
5221
|
-
} =
|
|
5215
|
+
} = _ref4;
|
|
5222
5216
|
const sorting_closed = $3hooq$solidjs.createMemo(() => !search_sorting_open_[0]());
|
|
5223
5217
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
5224
5218
|
return $3hooq$solidjsweb.ssr($f70cc6dfcadf0fd5$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), "".concat(!sorting_closed() ? "major" : "", " ").concat(sorting_closed() ? "minor" : "", " toggle-button for-sorting major-minor-transition"), $3hooq$solidjsweb.ssrAttribute("tabindex", $3hooq$solidjsweb.escape(tabindex_, true), false) + $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape((sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(), true), false), $3hooq$solidjsweb.ssrStyle(sort_button_width_ !== null && sort_button_width_ !== void 0 && sort_button_width_() ? {
|
|
@@ -6807,7 +6801,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
6807
6801
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
6808
6802
|
filterModalParent_: filterModalParent_,
|
|
6809
6803
|
showSliderArrow_: showSliderArrow_,
|
|
6810
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
6804
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6805
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6811
6806
|
} = _ref;
|
|
6812
6807
|
let results_for;
|
|
6813
6808
|
let only_show_filters_opener_;
|
|
@@ -7030,6 +7025,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
7030
7025
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
7031
7026
|
filterModalParent_: filterModalParent_,
|
|
7032
7027
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
7028
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
7033
7029
|
...extra_sort_and_filter_args_
|
|
7034
7030
|
});
|
|
7035
7031
|
$3hooq$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
|
|
@@ -12765,7 +12761,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
12765
12761
|
filterModalParent_: filterModalParent_,
|
|
12766
12762
|
class_: class_,
|
|
12767
12763
|
showSliderArrow_: showSliderArrow_,
|
|
12768
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
12764
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
12765
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
12769
12766
|
} = _ref;
|
|
12770
12767
|
const [get_sorting] = current_sorting_;
|
|
12771
12768
|
const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
|
|
@@ -12886,7 +12883,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
12886
12883
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12887
12884
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12888
12885
|
filterModalParent_: filterModalParent_,
|
|
12889
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
12886
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
12887
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
12890
12888
|
});
|
|
12891
12889
|
const results_filters = $3hooq$solidjs.createSignal();
|
|
12892
12890
|
const shouldActuallyShowInputField = $3hooq$solidjs.createMemo(() => {
|
|
@@ -13591,6 +13589,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
13591
13589
|
search_sorting_open_: state_.sorting_open,
|
|
13592
13590
|
expanded_filters_: state_.expanded_filters,
|
|
13593
13591
|
content_results_rows_: state_.content_results_rows,
|
|
13592
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
13594
13593
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
13595
13594
|
router_: shared_properties.router_,
|
|
13596
13595
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -14289,7 +14288,8 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
14289
14288
|
})),
|
|
14290
14289
|
product_card_template_: product_card_template,
|
|
14291
14290
|
sorting_query_param_: sorting_query_param_,
|
|
14292
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
14291
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14292
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
14293
14293
|
});
|
|
14294
14294
|
}, "Entire CategoryPage failed");
|
|
14295
14295
|
}
|
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.10.
|
|
14
|
+
export const version = "4.10.6";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1501,6 +1501,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1501
1501
|
class?: string;
|
|
1502
1502
|
showSliderArrow_?: boolean;
|
|
1503
1503
|
hideCount0FilterOptions_?: boolean;
|
|
1504
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1504
1505
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1505
1506
|
/**
|
|
1506
1507
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1612,6 +1613,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1612
1613
|
grid_spacing: SDKGridSpacing;
|
|
1613
1614
|
cols_at_size: SDKColsAtSize;
|
|
1614
1615
|
product_card_template: ProductCardTemplate<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>;
|
|
1616
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1615
1617
|
show_quicklinks?: boolean;
|
|
1616
1618
|
show_breadcrumbs?: boolean;
|
|
1617
1619
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
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.10.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.6";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $b8hua$createSignal(false);
|
|
16
16
|
$b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
|
|
@@ -4902,7 +4902,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
4902
4902
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
4903
4903
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
4904
4904
|
filterModalParent_: filterModalParent_,
|
|
4905
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
4905
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
4906
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
4906
4907
|
} = _ref;
|
|
4907
4908
|
const Self = () => {
|
|
4908
4909
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -4911,11 +4912,13 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
4911
4912
|
selected_filters_: selected_filters_,
|
|
4912
4913
|
local_filter_cache_: local_filter_cache_
|
|
4913
4914
|
});
|
|
4914
|
-
const cleanup_promise = new Promise(r => $b8hua$onCleanup(r));
|
|
4915
4915
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
4916
4916
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
4917
4917
|
const [get_current_sorting_] = current_sorting_;
|
|
4918
|
-
const
|
|
4918
|
+
const isSmall = $b8hua$createMemo(() => {
|
|
4919
|
+
var _switchToFiltersDrawe;
|
|
4920
|
+
return $00a5b94f0c11efbb$export$d9f36cf74e24d595("(max-width:".concat((_switchToFiltersDrawe = switchToFiltersDrawerBreakpoint_()) !== null && _switchToFiltersDrawe !== void 0 ? _switchToFiltersDrawe : 651, "px)"));
|
|
4921
|
+
});
|
|
4919
4922
|
const dismiss_modal_ = $b8hua$catchify1(() => {
|
|
4920
4923
|
set_filters_open(false);
|
|
4921
4924
|
set_sorting_open(false);
|
|
@@ -4979,7 +4982,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
4979
4982
|
$b8hua$createComputed(() => {
|
|
4980
4983
|
const fi_o = filters_open();
|
|
4981
4984
|
const so_o = sorting_open();
|
|
4982
|
-
const i_s =
|
|
4985
|
+
const i_s = isSmall()();
|
|
4983
4986
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
4984
4987
|
if ((fi_o || so_o) && !i_s) {
|
|
4985
4988
|
if (!grid_is_in_original_state) return;
|
|
@@ -4995,7 +4998,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
4995
4998
|
var _close_modal_;
|
|
4996
4999
|
(_close_modal_ = close_modal_) === null || _close_modal_ === void 0 || _close_modal_();
|
|
4997
5000
|
set_extra_els_in_results_container_("");
|
|
4998
|
-
} else if (
|
|
5001
|
+
} else if (isSmall()()) {
|
|
4999
5002
|
var _open_modal_;
|
|
5000
5003
|
if ($b8hua$untrack(() => input_modal_open_ === null || input_modal_open_ === void 0 ? void 0 : input_modal_open_())) {
|
|
5001
5004
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
@@ -5031,15 +5034,6 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
5031
5034
|
dismiss_modal_: dismiss_modal_,
|
|
5032
5035
|
i18n_: i18n_
|
|
5033
5036
|
}, filterModalParent_));
|
|
5034
|
-
const {
|
|
5035
|
-
remove: remove
|
|
5036
|
-
} = $b8hua$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
5037
|
-
let {
|
|
5038
|
-
matches: matches
|
|
5039
|
-
} = _ref3;
|
|
5040
|
-
return set_is_small(matches);
|
|
5041
|
-
});
|
|
5042
|
-
cleanup_promise.then(remove);
|
|
5043
5037
|
})();
|
|
5044
5038
|
get_extra_filters_button_ === null || get_extra_filters_button_ === void 0 || get_extra_filters_button_(make_open_filters_button());
|
|
5045
5039
|
get_extra_sorting_button_ === null || get_extra_sorting_button_ === void 0 || get_extra_sorting_button_(make_open_sorting_button());
|
|
@@ -5067,7 +5061,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
5067
5061
|
}
|
|
5068
5062
|
});
|
|
5069
5063
|
}
|
|
5070
|
-
function $7396052a1484264f$var$OpenFiltersButton(
|
|
5064
|
+
function $7396052a1484264f$var$OpenFiltersButton(_ref3) {
|
|
5071
5065
|
let {
|
|
5072
5066
|
i18n_: i18n_,
|
|
5073
5067
|
search_filters_open_: search_filters_open_,
|
|
@@ -5076,7 +5070,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref4) {
|
|
|
5076
5070
|
tabindex_: tabindex_,
|
|
5077
5071
|
number_of_rendered_selected_filters_items_: [num_selected_filters],
|
|
5078
5072
|
hide_button_: hide_button_
|
|
5079
|
-
} =
|
|
5073
|
+
} = _ref3;
|
|
5080
5074
|
const filters_closed = $b8hua$createMemo(() => !search_filters_open_[0]());
|
|
5081
5075
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
5082
5076
|
return $b8hua$ssr($7396052a1484264f$var$_tmpl$5, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle(hide_button_() ? {
|
|
@@ -5102,7 +5096,7 @@ function $7396052a1484264f$var$OpenFiltersButton(_ref4) {
|
|
|
5102
5096
|
}
|
|
5103
5097
|
})), $b8hua$escape(i18n_.filter_text_()));
|
|
5104
5098
|
}
|
|
5105
|
-
function $7396052a1484264f$var$OpenSortingButton(
|
|
5099
|
+
function $7396052a1484264f$var$OpenSortingButton(_ref4) {
|
|
5106
5100
|
var _meta_of_currently_se;
|
|
5107
5101
|
let {
|
|
5108
5102
|
i18n_: i18n_,
|
|
@@ -5113,7 +5107,7 @@ function $7396052a1484264f$var$OpenSortingButton(_ref5) {
|
|
|
5113
5107
|
sort_button_width_: sort_button_width_,
|
|
5114
5108
|
tabindex_: tabindex_,
|
|
5115
5109
|
meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_
|
|
5116
|
-
} =
|
|
5110
|
+
} = _ref4;
|
|
5117
5111
|
const sorting_closed = $b8hua$createMemo(() => !search_sorting_open_[0]());
|
|
5118
5112
|
// We assume in embedded_num_products that this is a single HTMLElement so pls change there if you change it here
|
|
5119
5113
|
return $b8hua$ssr($7396052a1484264f$var$_tmpl$6, $b8hua$ssrHydrationKey(), "".concat(!sorting_closed() ? "major" : "", " ").concat(sorting_closed() ? "minor" : "", " toggle-button for-sorting major-minor-transition"), $b8hua$ssrAttribute("tabindex", $b8hua$escape(tabindex_, true), false) + $b8hua$ssrAttribute("aria-label", $b8hua$escape((sorting_closed() ? i18n_.open_sorting_ : i18n_.close_sorting_)(), true), false), $b8hua$ssrStyle(sort_button_width_ !== null && sort_button_width_ !== void 0 && sort_button_width_() ? {
|
|
@@ -6702,7 +6696,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
6702
6696
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
6703
6697
|
filterModalParent_: filterModalParent_,
|
|
6704
6698
|
showSliderArrow_: showSliderArrow_,
|
|
6705
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
6699
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6700
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6706
6701
|
} = _ref;
|
|
6707
6702
|
let results_for;
|
|
6708
6703
|
let only_show_filters_opener_;
|
|
@@ -6925,6 +6920,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
6925
6920
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
6926
6921
|
filterModalParent_: filterModalParent_,
|
|
6927
6922
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6923
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
6928
6924
|
...extra_sort_and_filter_args_
|
|
6929
6925
|
});
|
|
6930
6926
|
$b8hua$catchify((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
@@ -12660,7 +12656,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
12660
12656
|
filterModalParent_: filterModalParent_,
|
|
12661
12657
|
class_: class_,
|
|
12662
12658
|
showSliderArrow_: showSliderArrow_,
|
|
12663
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
12659
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
12660
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
12664
12661
|
} = _ref;
|
|
12665
12662
|
const [get_sorting] = current_sorting_;
|
|
12666
12663
|
const all_products_loaded_ = $b8hua$createSignal(false);
|
|
@@ -12781,7 +12778,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
12781
12778
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12782
12779
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12783
12780
|
filterModalParent_: filterModalParent_,
|
|
12784
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
12781
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
12782
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
12785
12783
|
});
|
|
12786
12784
|
const results_filters = $b8hua$createSignal();
|
|
12787
12785
|
const shouldActuallyShowInputField = $b8hua$createMemo(() => {
|
|
@@ -13486,6 +13484,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
13486
13484
|
search_sorting_open_: state_.sorting_open,
|
|
13487
13485
|
expanded_filters_: state_.expanded_filters,
|
|
13488
13486
|
content_results_rows_: state_.content_results_rows,
|
|
13487
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
13489
13488
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
13490
13489
|
router_: shared_properties.router_,
|
|
13491
13490
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -14184,7 +14183,8 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
14184
14183
|
})),
|
|
14185
14184
|
product_card_template_: product_card_template,
|
|
14186
14185
|
sorting_query_param_: sorting_query_param_,
|
|
14187
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
14186
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14187
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
14188
14188
|
});
|
|
14189
14189
|
}, "Entire CategoryPage failed");
|
|
14190
14190
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.6";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $5vyXB$solidjs.createSignal(false);
|
|
115
115
|
$5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -4710,7 +4710,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
4710
4710
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
4711
4711
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
4712
4712
|
filterModalParent_: filterModalParent_,
|
|
4713
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
4713
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
4714
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
4714
4715
|
}) {
|
|
4715
4716
|
const Self = () => {
|
|
4716
4717
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -4719,11 +4720,10 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
4719
4720
|
selected_filters_: selected_filters_,
|
|
4720
4721
|
local_filter_cache_: local_filter_cache_
|
|
4721
4722
|
});
|
|
4722
|
-
const cleanup_promise = new Promise(r => $5vyXB$solidjs.onCleanup(r));
|
|
4723
4723
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
4724
4724
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
4725
4725
|
const [get_current_sorting_] = current_sorting_;
|
|
4726
|
-
const
|
|
4726
|
+
const isSmall = $5vyXB$solidjs.createMemo(() => $b54e6192d0caa293$export$d9f36cf74e24d595(`(max-width:${switchToFiltersDrawerBreakpoint_() ?? 651}px)`));
|
|
4727
4727
|
const dismiss_modal_ = $5vyXB$depictaiutilishared.catchify(() => {
|
|
4728
4728
|
set_filters_open(false);
|
|
4729
4729
|
set_sorting_open(false);
|
|
@@ -4775,7 +4775,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
4775
4775
|
$5vyXB$solidjs.createComputed(() => {
|
|
4776
4776
|
const fi_o = filters_open();
|
|
4777
4777
|
const so_o = sorting_open();
|
|
4778
|
-
const i_s =
|
|
4778
|
+
const i_s = isSmall()();
|
|
4779
4779
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
4780
4780
|
if ((fi_o || so_o) && !i_s) {
|
|
4781
4781
|
if (!grid_is_in_original_state) return;
|
|
@@ -4790,7 +4790,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
4790
4790
|
if (!filters_open() && !sorting_open()) {
|
|
4791
4791
|
close_modal_?.();
|
|
4792
4792
|
set_extra_els_in_results_container_("");
|
|
4793
|
-
} else if (
|
|
4793
|
+
} else if (isSmall()()) {
|
|
4794
4794
|
if ($5vyXB$solidjs.untrack(() => input_modal_open_?.())) {
|
|
4795
4795
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
4796
4796
|
set_filters_open(false);
|
|
@@ -4824,12 +4824,6 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
4824
4824
|
dismiss_modal_: dismiss_modal_,
|
|
4825
4825
|
i18n_: i18n_
|
|
4826
4826
|
}, filterModalParent_));
|
|
4827
|
-
const {
|
|
4828
|
-
remove: remove
|
|
4829
|
-
} = $5vyXB$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
|
|
4830
|
-
matches: matches
|
|
4831
|
-
}) => set_is_small(matches));
|
|
4832
|
-
cleanup_promise.then(remove);
|
|
4833
4827
|
})();
|
|
4834
4828
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
4835
4829
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
@@ -6418,7 +6412,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
6418
6412
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
6419
6413
|
filterModalParent_: filterModalParent_,
|
|
6420
6414
|
showSliderArrow_: showSliderArrow_,
|
|
6421
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
6415
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6416
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6422
6417
|
}) {
|
|
6423
6418
|
let results_for;
|
|
6424
6419
|
let only_show_filters_opener_;
|
|
@@ -6623,6 +6618,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
6623
6618
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
6624
6619
|
filterModalParent_: filterModalParent_,
|
|
6625
6620
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6621
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
6626
6622
|
...extra_sort_and_filter_args_
|
|
6627
6623
|
});
|
|
6628
6624
|
$5vyXB$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
|
|
@@ -11970,7 +11966,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
11970
11966
|
filterModalParent_: filterModalParent_,
|
|
11971
11967
|
class_: class_,
|
|
11972
11968
|
showSliderArrow_: showSliderArrow_,
|
|
11973
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
11969
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
11970
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
11974
11971
|
}) {
|
|
11975
11972
|
const [get_sorting] = current_sorting_;
|
|
11976
11973
|
const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
|
|
@@ -12079,7 +12076,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12079
12076
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12080
12077
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12081
12078
|
filterModalParent_: filterModalParent_,
|
|
12082
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
12079
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
12080
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
12083
12081
|
});
|
|
12084
12082
|
const results_filters = $5vyXB$solidjs.createSignal();
|
|
12085
12083
|
const shouldActuallyShowInputField = $5vyXB$solidjs.createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
@@ -12690,6 +12688,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
12690
12688
|
search_sorting_open_: state_.sorting_open,
|
|
12691
12689
|
expanded_filters_: state_.expanded_filters,
|
|
12692
12690
|
content_results_rows_: state_.content_results_rows,
|
|
12691
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
12693
12692
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
12694
12693
|
router_: shared_properties.router_,
|
|
12695
12694
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -13278,7 +13277,8 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
13278
13277
|
})),
|
|
13279
13278
|
product_card_template_: product_card_template,
|
|
13280
13279
|
sorting_query_param_: sorting_query_param_,
|
|
13281
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
13280
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
13281
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
13282
13282
|
});
|
|
13283
13283
|
}, "Entire CategoryPage failed");
|
|
13284
13284
|
}
|
package/server/latest/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.10.
|
|
14
|
+
export const version = "4.10.6";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1501,6 +1501,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1501
1501
|
class?: string;
|
|
1502
1502
|
showSliderArrow_?: boolean;
|
|
1503
1503
|
hideCount0FilterOptions_?: boolean;
|
|
1504
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1504
1505
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1505
1506
|
/**
|
|
1506
1507
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1612,6 +1613,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1612
1613
|
grid_spacing: SDKGridSpacing;
|
|
1613
1614
|
cols_at_size: SDKColsAtSize;
|
|
1614
1615
|
product_card_template: ProductCardTemplate<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>;
|
|
1616
|
+
switchToFiltersDrawerBreakpoint_?: number | undefined;
|
|
1615
1617
|
show_quicklinks?: boolean;
|
|
1616
1618
|
show_breadcrumbs?: boolean;
|
|
1617
1619
|
category_title: typeof CategoryTitle | typeof embedded_num_products;
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.6";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $i7OB2$createSignal(false);
|
|
13
13
|
$i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
|
|
@@ -4608,7 +4608,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
4608
4608
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
4609
4609
|
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
4610
4610
|
filterModalParent_: filterModalParent_,
|
|
4611
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
4611
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
4612
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
4612
4613
|
}) {
|
|
4613
4614
|
const Self = () => {
|
|
4614
4615
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -4617,11 +4618,10 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
4617
4618
|
selected_filters_: selected_filters_,
|
|
4618
4619
|
local_filter_cache_: local_filter_cache_
|
|
4619
4620
|
});
|
|
4620
|
-
const cleanup_promise = new Promise(r => $i7OB2$onCleanup(r));
|
|
4621
4621
|
const [filters_open, set_filters_open] = search_filters_open_;
|
|
4622
4622
|
const [sorting_open, set_sorting_open] = search_sorting_open_;
|
|
4623
4623
|
const [get_current_sorting_] = current_sorting_;
|
|
4624
|
-
const
|
|
4624
|
+
const isSmall = $i7OB2$createMemo(() => $dc9262ef6f786812$export$d9f36cf74e24d595(`(max-width:${switchToFiltersDrawerBreakpoint_() ?? 651}px)`));
|
|
4625
4625
|
const dismiss_modal_ = $i7OB2$catchify1(() => {
|
|
4626
4626
|
set_filters_open(false);
|
|
4627
4627
|
set_sorting_open(false);
|
|
@@ -4673,7 +4673,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
4673
4673
|
$i7OB2$createComputed(() => {
|
|
4674
4674
|
const fi_o = filters_open();
|
|
4675
4675
|
const so_o = sorting_open();
|
|
4676
|
-
const i_s =
|
|
4676
|
+
const i_s = isSmall()();
|
|
4677
4677
|
// we need to always read all the signal if we have them in the if-statement the value of it changes when the computation runs
|
|
4678
4678
|
if ((fi_o || so_o) && !i_s) {
|
|
4679
4679
|
if (!grid_is_in_original_state) return;
|
|
@@ -4688,7 +4688,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
4688
4688
|
if (!filters_open() && !sorting_open()) {
|
|
4689
4689
|
close_modal_?.();
|
|
4690
4690
|
set_extra_els_in_results_container_("");
|
|
4691
|
-
} else if (
|
|
4691
|
+
} else if (isSmall()()) {
|
|
4692
4692
|
if ($i7OB2$untrack(() => input_modal_open_?.())) {
|
|
4693
4693
|
// we don't want to shove another modal into the users face, silently close the filters for them
|
|
4694
4694
|
set_filters_open(false);
|
|
@@ -4722,12 +4722,6 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
4722
4722
|
dismiss_modal_: dismiss_modal_,
|
|
4723
4723
|
i18n_: i18n_
|
|
4724
4724
|
}, filterModalParent_));
|
|
4725
|
-
const {
|
|
4726
|
-
remove: remove
|
|
4727
|
-
} = $i7OB2$javascript_media_query("(max-width:651px)", ({
|
|
4728
|
-
matches: matches
|
|
4729
|
-
}) => set_is_small(matches));
|
|
4730
|
-
cleanup_promise.then(remove);
|
|
4731
4725
|
})();
|
|
4732
4726
|
get_extra_filters_button_?.(make_open_filters_button());
|
|
4733
4727
|
get_extra_sorting_button_?.(make_open_sorting_button());
|
|
@@ -6316,7 +6310,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
6316
6310
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
6317
6311
|
filterModalParent_: filterModalParent_,
|
|
6318
6312
|
showSliderArrow_: showSliderArrow_,
|
|
6319
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
6313
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6314
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6320
6315
|
}) {
|
|
6321
6316
|
let results_for;
|
|
6322
6317
|
let only_show_filters_opener_;
|
|
@@ -6521,6 +6516,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
6521
6516
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
6522
6517
|
filterModalParent_: filterModalParent_,
|
|
6523
6518
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6519
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
6524
6520
|
...extra_sort_and_filter_args_
|
|
6525
6521
|
});
|
|
6526
6522
|
$i7OB2$catchify((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -11868,7 +11864,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
11868
11864
|
filterModalParent_: filterModalParent_,
|
|
11869
11865
|
class_: class_,
|
|
11870
11866
|
showSliderArrow_: showSliderArrow_,
|
|
11871
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
11867
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
11868
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
11872
11869
|
}) {
|
|
11873
11870
|
const [get_sorting] = current_sorting_;
|
|
11874
11871
|
const all_products_loaded_ = $i7OB2$createSignal(false);
|
|
@@ -11977,7 +11974,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
11977
11974
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
11978
11975
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
11979
11976
|
filterModalParent_: filterModalParent_,
|
|
11980
|
-
hideCount0FilterOptions_: hideCount0FilterOptions_
|
|
11977
|
+
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
11978
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
11981
11979
|
});
|
|
11982
11980
|
const results_filters = $i7OB2$createSignal();
|
|
11983
11981
|
const shouldActuallyShowInputField = $i7OB2$createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
@@ -12588,6 +12586,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
12588
12586
|
search_sorting_open_: state_.sorting_open,
|
|
12589
12587
|
expanded_filters_: state_.expanded_filters,
|
|
12590
12588
|
content_results_rows_: state_.content_results_rows,
|
|
12589
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
12591
12590
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
12592
12591
|
router_: shared_properties.router_,
|
|
12593
12592
|
make_category_suggestion_card_: shared_properties.enable_category_suggestions_ ? category_suggestion_ => {
|
|
@@ -13176,7 +13175,8 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
13176
13175
|
})),
|
|
13177
13176
|
product_card_template_: product_card_template,
|
|
13178
13177
|
sorting_query_param_: sorting_query_param_,
|
|
13179
|
-
filter_query_param_prefix_: filter_query_param_prefix_
|
|
13178
|
+
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
13179
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
13180
13180
|
});
|
|
13181
13181
|
}, "Entire CategoryPage failed");
|
|
13182
13182
|
}
|