@depict-ai/ui 4.6.0 → 4.7.0
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 +57 -19
- package/ES10/index.d.ts +25 -2
- package/ES10/index.js +56 -20
- package/latest/index.cjs +54 -18
- package/latest/index.d.ts +25 -2
- package/latest/index.js +53 -19
- package/package.json +4 -4
- package/server/ES10/index.cjs +55 -19
- package/server/ES10/index.d.ts +25 -2
- package/server/ES10/index.js +54 -20
- package/server/latest/index.cjs +52 -18
- package/server/latest/index.d.ts +25 -2
- package/server/latest/index.js +51 -19
package/server/ES10/index.cjs
CHANGED
|
@@ -20,6 +20,8 @@ function $parcel$interopDefault(a) {
|
|
|
20
20
|
}
|
|
21
21
|
$parcel$export(module.exports, "useExpandingContainerReactive", () => $d6d51b09cb2116a6$export$5bad61ecde080b1f);
|
|
22
22
|
$parcel$export(module.exports, "LooksSliderOrGrid", () => $e57cd46536ad992e$export$2c9f9bf2092486aa);
|
|
23
|
+
$parcel$export(module.exports, "LookCard", () => $47e3c3102c78121b$export$44809a8a3e867e30);
|
|
24
|
+
$parcel$export(module.exports, "PseudoRouter", () => $73014ff36186a4dd$export$7e1297a3a19f10d8);
|
|
23
25
|
$parcel$export(module.exports, "promiseSafeStructuredClone", () => $400d96565bbbfe07$export$83bb9af5671e1dbe);
|
|
24
26
|
$parcel$export(module.exports, "preserve_items_in_history_dot_state", () => $cfcd56242923775d$export$5162a71f252e6122);
|
|
25
27
|
$parcel$export(module.exports, "prefixes_to_preserve_in_history_dot_state", () => $cfcd56242923775d$export$3064e1e8c6513da3);
|
|
@@ -102,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
102
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
103
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
104
106
|
/*! Depict.ai search and product listing SDK */
|
|
105
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.0";
|
|
106
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
107
109
|
const {
|
|
108
110
|
collapse: collapse,
|
|
@@ -4593,7 +4595,7 @@ function $513986fde589b871$export$3e41faf802a29e71(props) {
|
|
|
4593
4595
|
return undefined;
|
|
4594
4596
|
}
|
|
4595
4597
|
async function $4cf7d9829d60d844$export$79b1565500412d9b(search_modal, modal_fn_opts, parent) {
|
|
4596
|
-
const body = parent || (await (0, $3hooq$depictaiutilishared.observer).wait_for_element("body"));
|
|
4598
|
+
const body = parent || document.body || (await (0, $3hooq$depictaiutilishared.observer).wait_for_element("body"));
|
|
4597
4599
|
let dispose_and_remove;
|
|
4598
4600
|
const open_modal_ = $3hooq$depictaiutilishared.catchify(async function () {
|
|
4599
4601
|
let extra_options_for_modal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -8808,7 +8810,9 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
|
|
|
8808
8810
|
local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
|
|
8809
8811
|
selected_filters_: [get_selected_filters, set_selected_filters],
|
|
8810
8812
|
expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
|
|
8811
|
-
delay_toast_: delay_toast_
|
|
8813
|
+
delay_toast_: delay_toast_,
|
|
8814
|
+
expanded_filters_: expanded_filters_,
|
|
8815
|
+
filters_open_: filters_open_
|
|
8812
8816
|
} = props;
|
|
8813
8817
|
const previous_selected_filters = $3hooq$solidjs.untrack(get_selected_filters);
|
|
8814
8818
|
if (!previous_selected_filters.length) {
|
|
@@ -8817,9 +8821,13 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
|
|
|
8817
8821
|
if (delay_toast_) return () => {};
|
|
8818
8822
|
return;
|
|
8819
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]());
|
|
8820
8826
|
const previous_expanded_hierarchical_filters = $3hooq$solidjs.untrack(get_expanded_hierarchical_filters);
|
|
8821
8827
|
const previous_local_filter_cache = $3hooq$solidjs.untrack(get_local_filter_cache);
|
|
8822
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);
|
|
8823
8831
|
set_selected_filters([]);
|
|
8824
8832
|
scrollTo({
|
|
8825
8833
|
top: 0
|
|
@@ -8845,7 +8853,7 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
|
|
|
8845
8853
|
close_toast_: close_toast_
|
|
8846
8854
|
} = $5909f8d84b7b4c30$export$5196e4c01fa56fcb({
|
|
8847
8855
|
class: "cleared_filters",
|
|
8848
|
-
close_after_:
|
|
8856
|
+
close_after_: 10000,
|
|
8849
8857
|
on_close_: on_toast_hidden,
|
|
8850
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_()))]
|
|
8851
8859
|
}));
|
|
@@ -8859,7 +8867,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
|
|
|
8859
8867
|
current_sorting_: current_sorting_,
|
|
8860
8868
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8861
8869
|
i18n_: i18n_,
|
|
8862
|
-
local_filter_cache_: local_filter_cache_
|
|
8870
|
+
local_filter_cache_: local_filter_cache_,
|
|
8871
|
+
expanded_filters_: expanded_filters_,
|
|
8872
|
+
filters_open_: filters_open_
|
|
8863
8873
|
} = _ref;
|
|
8864
8874
|
const [get_selected_filters] = selected_filters_;
|
|
8865
8875
|
// Possible values:
|
|
@@ -8887,7 +8897,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
|
|
|
8887
8897
|
also_clear_sorting_: true,
|
|
8888
8898
|
current_sorting_: current_sorting_,
|
|
8889
8899
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8890
|
-
local_filter_cache_: local_filter_cache_
|
|
8900
|
+
local_filter_cache_: local_filter_cache_,
|
|
8901
|
+
expanded_filters_: expanded_filters_,
|
|
8902
|
+
filters_open_: filters_open_
|
|
8891
8903
|
});
|
|
8892
8904
|
}
|
|
8893
8905
|
}), {
|
|
@@ -8955,16 +8967,26 @@ function $1689794f03ba2554$export$205efb947c7ffd78(handler) {
|
|
|
8955
8967
|
// Some customers (e.g. equestrian) have `height: 100%` and/or `overflow-x: hidden` on the body, which means that scroll events won't get dispatched on `window`. The pages who get it on <body> won't get it on `window` and vice-versa, so there shouldn't be a worry about duplicate calling of the handler.
|
|
8956
8968
|
// Use observer in case that this gets called before body exists
|
|
8957
8969
|
if (!override_element) {
|
|
8958
|
-
const
|
|
8959
|
-
let {
|
|
8960
|
-
element: element
|
|
8961
|
-
} = _ref;
|
|
8970
|
+
const doWithBody = element => {
|
|
8962
8971
|
element.addEventListener("scroll", catchified_handler, {
|
|
8963
8972
|
passive: passive
|
|
8964
8973
|
});
|
|
8965
8974
|
$3hooq$solidjs.runWithOwner(owner, () => $3hooq$solidjs.onCleanup(() => element.removeEventListener("scroll", catchified_handler)));
|
|
8966
|
-
}
|
|
8967
|
-
|
|
8975
|
+
};
|
|
8976
|
+
const {
|
|
8977
|
+
body: body
|
|
8978
|
+
} = document;
|
|
8979
|
+
if (body)
|
|
8980
|
+
// Only start observer if we absolutely need it, for performance
|
|
8981
|
+
doWithBody(body);else {
|
|
8982
|
+
const disconnect = (0, $3hooq$depictaiutilishared.observer).onexists("body", _ref => {
|
|
8983
|
+
let {
|
|
8984
|
+
element: element
|
|
8985
|
+
} = _ref;
|
|
8986
|
+
return doWithBody(element);
|
|
8987
|
+
});
|
|
8988
|
+
$3hooq$solidjs.onCleanup(disconnect);
|
|
8989
|
+
}
|
|
8968
8990
|
}
|
|
8969
8991
|
for (const event of ["resize", "orientationchange", "scroll"]) {
|
|
8970
8992
|
const listen_on = override_element !== null && override_element !== void 0 ? override_element : window;
|
|
@@ -11934,7 +11956,9 @@ class $ddd39c5f36f49703$export$ac6237957a15b3f0 {
|
|
|
11934
11956
|
current_sorting_: current_sorting_,
|
|
11935
11957
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
11936
11958
|
i18n_: i18n_,
|
|
11937
|
-
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
|
|
11938
11962
|
});
|
|
11939
11963
|
$ddd39c5f36f49703$export$dde08b2dca8cc1ce.set(this, {
|
|
11940
11964
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -12965,7 +12989,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
|
|
|
12965
12989
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12966
12990
|
plp_results_: plp_results_,
|
|
12967
12991
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12968
|
-
id_type_: id_type_
|
|
12992
|
+
id_type_: id_type_,
|
|
12993
|
+
expanded_filters_: expanded_filters_,
|
|
12994
|
+
filters_open_: filters_open_
|
|
12969
12995
|
} = _ref;
|
|
12970
12996
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
12971
12997
|
$8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -12974,7 +13000,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
|
|
|
12974
13000
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12975
13001
|
selected_filters_: selected_filters_,
|
|
12976
13002
|
i18n_: i18n_,
|
|
12977
|
-
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_
|
|
12978
13006
|
});
|
|
12979
13007
|
// The code below is for when we're already open and the user navigates to a new category
|
|
12980
13008
|
let previous_crumb_data = $3hooq$solidjs.untrack(crumb_data_);
|
|
@@ -13010,7 +13038,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
|
|
|
13010
13038
|
also_clear_sorting_: false,
|
|
13011
13039
|
selected_filters_: selected_filters_,
|
|
13012
13040
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13013
|
-
local_filter_cache_: local_filter_cache_
|
|
13041
|
+
local_filter_cache_: local_filter_cache_,
|
|
13042
|
+
expanded_filters_: expanded_filters_,
|
|
13043
|
+
filters_open_: filters_open_
|
|
13014
13044
|
});
|
|
13015
13045
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
13016
13046
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -13031,7 +13061,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
13031
13061
|
i18n_: i18n_,
|
|
13032
13062
|
selected_filters_: selected_filters_,
|
|
13033
13063
|
local_filter_cache_: local_filter_cache_,
|
|
13034
|
-
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_
|
|
13035
13067
|
} = _ref3;
|
|
13036
13068
|
const tracking_function_for_plp_results = $3hooq$solidjs.createReaction(() => {
|
|
13037
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
|
|
@@ -13046,7 +13078,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
13046
13078
|
also_clear_sorting_: false,
|
|
13047
13079
|
selected_filters_: selected_filters_,
|
|
13048
13080
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13049
|
-
local_filter_cache_: local_filter_cache_
|
|
13081
|
+
local_filter_cache_: local_filter_cache_,
|
|
13082
|
+
filters_open_: filters_open_,
|
|
13083
|
+
expanded_filters_: expanded_filters_
|
|
13050
13084
|
});
|
|
13051
13085
|
});
|
|
13052
13086
|
});
|
|
@@ -13317,7 +13351,9 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13317
13351
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13318
13352
|
plp_results_: plp_products_,
|
|
13319
13353
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13320
|
-
id_type_: id_type_
|
|
13354
|
+
id_type_: id_type_,
|
|
13355
|
+
expanded_filters_: expanded_filters_,
|
|
13356
|
+
filters_open_: category_filters_open_
|
|
13321
13357
|
});
|
|
13322
13358
|
get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
|
|
13323
13359
|
get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -9,8 +9,9 @@ import { SearchSuggestionsRequestV3 } from "@depict-ai/types/api/SearchSuggestio
|
|
|
9
9
|
import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequestV3";
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
|
+
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
12
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.
|
|
14
|
+
export const version = "4.7.0";
|
|
14
15
|
/**
|
|
15
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
16
17
|
*/
|
|
@@ -844,7 +845,7 @@ export type OnNavigation = ((options: {
|
|
|
844
845
|
/**
|
|
845
846
|
* Not a router that does our custom routing on non-spas and otherwise plugs into other routers and generalises their functionality
|
|
846
847
|
*/
|
|
847
|
-
|
|
848
|
+
export class PseudoRouter {
|
|
848
849
|
#private;
|
|
849
850
|
/**
|
|
850
851
|
* Function that will be called when we want to navigate, or a string saying it's not an SPA. You can change this OTG
|
|
@@ -880,6 +881,28 @@ declare class PseudoRouter {
|
|
|
880
881
|
};
|
|
881
882
|
constructor(on_navigation: OnNavigation, listing_query_state_key?: string);
|
|
882
883
|
}
|
|
884
|
+
/**
|
|
885
|
+
* The whole card representing a look
|
|
886
|
+
*/
|
|
887
|
+
export function LookCard({
|
|
888
|
+
display_,
|
|
889
|
+
expandedLooksSignal_: [expandedLooks_, setExpandedLooks],
|
|
890
|
+
FavoriteButton_,
|
|
891
|
+
placeholderImageAspectRatio_,
|
|
892
|
+
animationDuration_,
|
|
893
|
+
priceFormatting_,
|
|
894
|
+
pseudoRouter_
|
|
895
|
+
}: {
|
|
896
|
+
display_: FeaturedInDisplay | null;
|
|
897
|
+
FavoriteButton_?: (props: {
|
|
898
|
+
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
|
+
}) => JSX.Element;
|
|
900
|
+
placeholderImageAspectRatio_: number | string;
|
|
901
|
+
animationDuration_: number;
|
|
902
|
+
expandedLooksSignal_: Signal<Set<symbol>>;
|
|
903
|
+
priceFormatting_: Accessor<plp_shared_i18n["price_formatting_"]>;
|
|
904
|
+
pseudoRouter_: PseudoRouter;
|
|
905
|
+
}): HTMLDivElement;
|
|
883
906
|
/**
|
|
884
907
|
* Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
|
|
885
908
|
*/
|
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.0";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -4501,7 +4501,7 @@ function $6a439680ae7e9ba3$export$3e41faf802a29e71(props) {
|
|
|
4501
4501
|
return undefined;
|
|
4502
4502
|
}
|
|
4503
4503
|
async function $d5f1e6a0f9117286$export$79b1565500412d9b(search_modal, modal_fn_opts, parent) {
|
|
4504
|
-
const body = parent || (await (0, $b8hua$observer).wait_for_element("body"));
|
|
4504
|
+
const body = parent || document.body || (await (0, $b8hua$observer).wait_for_element("body"));
|
|
4505
4505
|
let dispose_and_remove;
|
|
4506
4506
|
const open_modal_ = $b8hua$catchify(async function () {
|
|
4507
4507
|
let extra_options_for_modal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -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
|
}), {
|
|
@@ -8863,16 +8873,26 @@ function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
|
|
|
8863
8873
|
// Some customers (e.g. equestrian) have `height: 100%` and/or `overflow-x: hidden` on the body, which means that scroll events won't get dispatched on `window`. The pages who get it on <body> won't get it on `window` and vice-versa, so there shouldn't be a worry about duplicate calling of the handler.
|
|
8864
8874
|
// Use observer in case that this gets called before body exists
|
|
8865
8875
|
if (!override_element) {
|
|
8866
|
-
const
|
|
8867
|
-
let {
|
|
8868
|
-
element: element
|
|
8869
|
-
} = _ref;
|
|
8876
|
+
const doWithBody = element => {
|
|
8870
8877
|
element.addEventListener("scroll", catchified_handler, {
|
|
8871
8878
|
passive: passive
|
|
8872
8879
|
});
|
|
8873
8880
|
$b8hua$runWithOwner(owner, () => $b8hua$onCleanup(() => element.removeEventListener("scroll", catchified_handler)));
|
|
8874
|
-
}
|
|
8875
|
-
|
|
8881
|
+
};
|
|
8882
|
+
const {
|
|
8883
|
+
body: body
|
|
8884
|
+
} = document;
|
|
8885
|
+
if (body)
|
|
8886
|
+
// Only start observer if we absolutely need it, for performance
|
|
8887
|
+
doWithBody(body);else {
|
|
8888
|
+
const disconnect = (0, $b8hua$observer).onexists("body", _ref => {
|
|
8889
|
+
let {
|
|
8890
|
+
element: element
|
|
8891
|
+
} = _ref;
|
|
8892
|
+
return doWithBody(element);
|
|
8893
|
+
});
|
|
8894
|
+
$b8hua$onCleanup(disconnect);
|
|
8895
|
+
}
|
|
8876
8896
|
}
|
|
8877
8897
|
for (const event of ["resize", "orientationchange", "scroll"]) {
|
|
8878
8898
|
const listen_on = override_element !== null && override_element !== void 0 ? override_element : window;
|
|
@@ -11842,7 +11862,9 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
11842
11862
|
current_sorting_: current_sorting_,
|
|
11843
11863
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
11844
11864
|
i18n_: i18n_,
|
|
11845
|
-
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
|
|
11846
11868
|
});
|
|
11847
11869
|
$eb064bc3350276c1$export$dde08b2dca8cc1ce.set(this, {
|
|
11848
11870
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -12873,7 +12895,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
12873
12895
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12874
12896
|
plp_results_: plp_results_,
|
|
12875
12897
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12876
|
-
id_type_: id_type_
|
|
12898
|
+
id_type_: id_type_,
|
|
12899
|
+
expanded_filters_: expanded_filters_,
|
|
12900
|
+
filters_open_: filters_open_
|
|
12877
12901
|
} = _ref;
|
|
12878
12902
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
12879
12903
|
$a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -12882,7 +12906,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
12882
12906
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12883
12907
|
selected_filters_: selected_filters_,
|
|
12884
12908
|
i18n_: i18n_,
|
|
12885
|
-
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_
|
|
12886
12912
|
});
|
|
12887
12913
|
// The code below is for when we're already open and the user navigates to a new category
|
|
12888
12914
|
let previous_crumb_data = $b8hua$untrack(crumb_data_);
|
|
@@ -12918,7 +12944,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
|
|
|
12918
12944
|
also_clear_sorting_: false,
|
|
12919
12945
|
selected_filters_: selected_filters_,
|
|
12920
12946
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12921
|
-
local_filter_cache_: local_filter_cache_
|
|
12947
|
+
local_filter_cache_: local_filter_cache_,
|
|
12948
|
+
expanded_filters_: expanded_filters_,
|
|
12949
|
+
filters_open_: filters_open_
|
|
12922
12950
|
});
|
|
12923
12951
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
12924
12952
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -12939,7 +12967,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12939
12967
|
i18n_: i18n_,
|
|
12940
12968
|
selected_filters_: selected_filters_,
|
|
12941
12969
|
local_filter_cache_: local_filter_cache_,
|
|
12942
|
-
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_
|
|
12943
12973
|
} = _ref3;
|
|
12944
12974
|
const tracking_function_for_plp_results = $b8hua$createReaction(() => {
|
|
12945
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
|
|
@@ -12954,7 +12984,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12954
12984
|
also_clear_sorting_: false,
|
|
12955
12985
|
selected_filters_: selected_filters_,
|
|
12956
12986
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12957
|
-
local_filter_cache_: local_filter_cache_
|
|
12987
|
+
local_filter_cache_: local_filter_cache_,
|
|
12988
|
+
filters_open_: filters_open_,
|
|
12989
|
+
expanded_filters_: expanded_filters_
|
|
12958
12990
|
});
|
|
12959
12991
|
});
|
|
12960
12992
|
});
|
|
@@ -13225,7 +13257,9 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13225
13257
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13226
13258
|
plp_results_: plp_products_,
|
|
13227
13259
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13228
|
-
id_type_: id_type_
|
|
13260
|
+
id_type_: id_type_,
|
|
13261
|
+
expanded_filters_: expanded_filters_,
|
|
13262
|
+
filters_open_: category_filters_open_
|
|
13229
13263
|
});
|
|
13230
13264
|
get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
|
|
13231
13265
|
get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
|
|
@@ -13456,4 +13490,4 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
13456
13490
|
}, "Entire CategoryPage failed");
|
|
13457
13491
|
}
|
|
13458
13492
|
$b8hua$add_to_version_info("ui", (0, $8db9a15135765c11$export$83d89fbfd8236492));
|
|
13459
|
-
export { $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
|
|
13493
|
+
export { $8e8b179489080711$export$5bad61ecde080b1f as useExpandingContainerReactive, $bb34cd283e904784$export$2c9f9bf2092486aa as LooksSliderOrGrid, $697d8713dc82b9ab$export$44809a8a3e867e30 as LookCard, $ac571292d606f30b$export$7e1297a3a19f10d8 as PseudoRouter, $6d75ec14f537c37f$export$83bb9af5671e1dbe as promiseSafeStructuredClone, $68e6625c8d51f847$export$5162a71f252e6122 as preserve_items_in_history_dot_state, $68e6625c8d51f847$export$3064e1e8c6513da3 as prefixes_to_preserve_in_history_dot_state, $9b35d1384e31813a$export$29d28dadc2d6b631 as allowNativeNavigation, $b026fa9c9c904a98$export$1ea76ea778b880dd as modalVersionSymbol, $a604a8ffa4e4c03f$export$e417c49320921907 as createDeparallelizedNoDropResource, $01c33966d9ddb108$export$f50b88e2a00918b5 as throw_globally, $40411f2ec772c376$export$9265e66f26f8e383 as ClassicSearchModal, $06fcd2a345efd24d$export$b0c55aa2e87c4be7 as SearchModalV2, $98688279b9059f50$export$9d4a4b669b1929ab as ModernResponsiveContainedImage, $6a439680ae7e9ba3$export$3e41faf802a29e71 as Tab, $6a439680ae7e9ba3$export$b2539bed5023c21c as Tabs, $6b0fd8fd20df8ccf$export$d4973c31938cbfd1 as ShopTheLookButton, $972f6bce0f9d61be$export$e183a13865960371 as history_dot_state_to_state, $2855bffe06ef7a03$export$916e6850778505f6 as strip_encoded_filter_and_sort, $2855bffe06ef7a03$export$58aa3f171519b6d7 as encode_filters, $2855bffe06ef7a03$export$f934fa24c3a86811 as decode_filters, $2855bffe06ef7a03$export$62acb285a7579555 as encode_sorting, $2855bffe06ef7a03$export$766e9676e74997d3 as decode_sorting, $4df489344a0f97c7$export$d7b7ab832c20e2f4 as shopifyContainedImageContextSymbol, $5441862cd2f5e111$export$e68cff63f76bd15b as ListingProvider, $5441862cd2f5e111$export$8d0c4fdbb05a2f2e as useListing, $1e69163caedaab4e$export$11354f017ddc9790 as ProductCardIndexProvider, $1e69163caedaab4e$export$e3faf4d95300054f as useProductCardIndex, $4df489344a0f97c7$export$e4b984597b71e989 as ShopifyContainedImage, $002f09d00aac50b2$export$6649caad96ef8870 as SlidableItems, $fc830a7ee59416ef$export$ebdc3711f7e02ccd as make_accurate_width_accessor, $d5d7e58c5c9d8db0$export$9574e176201e5e8d as RecommendationSlider, $b432b11321ad4c97$export$9756467d34d91cdb as RecommendationGrid, $56047603f9d212b6$export$6e5611bc7e57e477 as ShopifyResponsiveImg, $56047603f9d212b6$export$e6fffe67d4cdd848 as makeSizeAccessor, $801e8845d3fa3653$export$94026ee33dbabc26 as ImageContainer, $74777e8fe65b3dcb$export$b69d0d92862de18b as SentryErrorBoundary, $74777e8fe65b3dcb$export$240ecf5363d76c0f as ExtraSentryContextProvider, $ad371564683947ab$export$6c6d7a51fa9aa15d as ExpandingDetails, $e18ab2868df26f40$export$f091cbac892643a4 as accessor_of_object_to_object_with_accessor_values, $4711a82d08d2021b$export$fecbb157621501bd as SelectedFilters, $f6b0500577e1b210$export$3f1a388cc0d8fed7 as FilterBody, $44aa24b1bb793549$export$b288c38ae3fddb56 as create_modified_filters, $63f1f8dbcd07d3b0$export$d21e32dfedac04be as SolidLayout, $d5f1e6a0f9117286$export$79b1565500412d9b as general_modal_abstraction, $9783d437ad61594c$export$3b621d86b1566b2 as CrossIcon, $ca6ab5f08bd28bca$export$8be2714ec7f169ee as GenericSliderArrowButton, $50aebf5b445518eb$export$58e808b1db15d3bc as fetchDepictRecommendations, $fa332ea03168857c$export$b91cec6bdc6b32a1 as CategoryTitle, $702d7656a373973e$export$824dde41348efed1 as embedded_num_products, $160ea2b55d8772d2$export$c1a6b039e689a58e as get_listings, $f5f54892fd0c7d9f$export$f34314aa9505732e as DepictCategory, $eb064bc3350276c1$export$ac6237957a15b3f0 as DepictSearch, $eb064bc3350276c1$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $eb064bc3350276c1$export$f2dc7e4e4aa11abb as SearchPage, $f3b7124b76123e44$export$aa14a9f43128f61f as ProductCardError, $169c13c0531d91d2$export$d86a33413558014e as open_modal_with_alignment, $5eaa00b951637e96$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $1308a7816c3d4f2d$export$b3ad617e9036868 as align_field, $1308a7816c3d4f2d$export$3f238c96c45e6cc6 as ALIGN_TOP, $1308a7816c3d4f2d$export$902f8b4a7dae5d78 as ALIGN_WIDTH_ON_MODAL, $1308a7816c3d4f2d$export$7895aadd1956b1c7 as ALIGN_LEFT, $1308a7816c3d4f2d$export$6060bc6bee850eb6 as SET_CENTERED_LEFT, $a9c7ba6087881ac2$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $cc64aabf2c7a1f1a$export$1233ca167bf71f9a as styles_to_valid_css_string, $e56d241d0f33d459$export$fe334901e8bebd57 as disable_scrolling, $573c007c697a1831$export$d0596b5cae35ad4 as open_search_with_shift_slash, $284849364a6ef73a$export$e015ed2f2950f2e3 as DepictAPI, $00a5b94f0c11efbb$export$d9f36cf74e24d595 as media_query_to_accessor, $e60a76195ac6d408$export$689e204eadb33baf as setup_fast_leave, $a61a2051e15c8d7a$export$5196e4c01fa56fcb as show_toast, $60ec7a29849d81db$export$a71e92cfbb498adc as SolidFormatPrice, $37e8c97bb6876197$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $bc2337c9a05ecd18$export$acb3eaade4b23afd as BasePlaceholder, $ceafb6fb91c6f394$export$89c6019e4baa40b1 as TextPlaceholder, $3ab4aa97880fb88d$export$3f37af283f8fb843 as ImagePlaceholder, $f9fd3017c20b774a$export$3ccaa27d81dd8556 as PageReplacer, $d399250dfa491636$export$864d304a0bc46829 as defaultGridSpacing, $d399250dfa491636$export$c3834fa86c616831 as defaultColsAtSize, $d399250dfa491636$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $8db9a15135765c11$export$83d89fbfd8236492 as version, $a3026fb727bc7550$export$316f6f283ae64765 as SearchField, $62a8813a51fbd22f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $62a8813a51fbd22f$export$de035477d6fef996 as QuickLinks, $8821a19349c36651$export$e2bf8ce7779e827e as CategoryPage };
|
package/server/latest/index.cjs
CHANGED
|
@@ -14,6 +14,8 @@ function $parcel$export(e, n, v, s) {
|
|
|
14
14
|
}
|
|
15
15
|
$parcel$export(module.exports, "useExpandingContainerReactive", () => $4b455f60dadde8b8$export$5bad61ecde080b1f);
|
|
16
16
|
$parcel$export(module.exports, "LooksSliderOrGrid", () => $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa);
|
|
17
|
+
$parcel$export(module.exports, "LookCard", () => $ad882bbe664dbd53$export$44809a8a3e867e30);
|
|
18
|
+
$parcel$export(module.exports, "PseudoRouter", () => $e96dd13889871fc0$export$7e1297a3a19f10d8);
|
|
17
19
|
$parcel$export(module.exports, "promiseSafeStructuredClone", () => $ac946c6b782bb900$export$83bb9af5671e1dbe);
|
|
18
20
|
$parcel$export(module.exports, "preserve_items_in_history_dot_state", () => $d84fe647b84b5dc5$export$5162a71f252e6122);
|
|
19
21
|
$parcel$export(module.exports, "prefixes_to_preserve_in_history_dot_state", () => $d84fe647b84b5dc5$export$3064e1e8c6513da3);
|
|
@@ -96,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
96
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
97
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
98
100
|
/*! Depict.ai search and product listing SDK */
|
|
99
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.0";
|
|
100
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
101
103
|
const {
|
|
102
104
|
collapse: collapse,
|
|
@@ -4360,7 +4362,7 @@ function $8c38828ae2321937$export$3e41faf802a29e71(props) {
|
|
|
4360
4362
|
return undefined;
|
|
4361
4363
|
}
|
|
4362
4364
|
async function $9abb0a35d4b60ed3$export$79b1565500412d9b(search_modal, modal_fn_opts, parent) {
|
|
4363
|
-
const body = parent || (await (0, $5vyXB$depictaiutilishared.observer).wait_for_element("body"));
|
|
4365
|
+
const body = parent || document.body || (await (0, $5vyXB$depictaiutilishared.observer).wait_for_element("body"));
|
|
4364
4366
|
let dispose_and_remove;
|
|
4365
4367
|
const open_modal_ = $5vyXB$depictaiutilishared.catchify(async (extra_options_for_modal = {}, on_dispose) => {
|
|
4366
4368
|
// Below await is very intentional,
|
|
@@ -8222,7 +8224,9 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
8222
8224
|
local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
|
|
8223
8225
|
selected_filters_: [get_selected_filters, set_selected_filters],
|
|
8224
8226
|
expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
|
|
8225
|
-
delay_toast_: delay_toast_
|
|
8227
|
+
delay_toast_: delay_toast_,
|
|
8228
|
+
expanded_filters_: expanded_filters_,
|
|
8229
|
+
filters_open_: filters_open_
|
|
8226
8230
|
} = props;
|
|
8227
8231
|
const previous_selected_filters = $5vyXB$solidjs.untrack(get_selected_filters);
|
|
8228
8232
|
if (!previous_selected_filters.length) {
|
|
@@ -8231,9 +8235,13 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
8231
8235
|
if (delay_toast_) return () => {};
|
|
8232
8236
|
return;
|
|
8233
8237
|
}
|
|
8238
|
+
const previousExpandedFilters = $5vyXB$solidjs.untrack(() => expanded_filters_?.[0]());
|
|
8239
|
+
const previousFiltersOpen = $5vyXB$solidjs.untrack(() => filters_open_?.[0]());
|
|
8234
8240
|
const previous_expanded_hierarchical_filters = $5vyXB$solidjs.untrack(get_expanded_hierarchical_filters);
|
|
8235
8241
|
const previous_local_filter_cache = $5vyXB$solidjs.untrack(get_local_filter_cache);
|
|
8236
8242
|
const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
|
|
8243
|
+
expanded_filters_?.[1]([]);
|
|
8244
|
+
filters_open_?.[1](false);
|
|
8237
8245
|
set_selected_filters([]);
|
|
8238
8246
|
scrollTo({
|
|
8239
8247
|
top: 0
|
|
@@ -8259,7 +8267,7 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
8259
8267
|
close_toast_: close_toast_
|
|
8260
8268
|
} = $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
|
|
8261
8269
|
class: "cleared_filters",
|
|
8262
|
-
close_after_:
|
|
8270
|
+
close_after_: 10000,
|
|
8263
8271
|
on_close_: on_toast_hidden,
|
|
8264
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_()))]
|
|
8265
8273
|
}));
|
|
@@ -8272,7 +8280,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
|
|
|
8272
8280
|
current_sorting_: current_sorting_,
|
|
8273
8281
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8274
8282
|
i18n_: i18n_,
|
|
8275
|
-
local_filter_cache_: local_filter_cache_
|
|
8283
|
+
local_filter_cache_: local_filter_cache_,
|
|
8284
|
+
expanded_filters_: expanded_filters_,
|
|
8285
|
+
filters_open_: filters_open_
|
|
8276
8286
|
}) {
|
|
8277
8287
|
const [get_selected_filters] = selected_filters_;
|
|
8278
8288
|
// Possible values:
|
|
@@ -8300,7 +8310,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
|
|
|
8300
8310
|
also_clear_sorting_: true,
|
|
8301
8311
|
current_sorting_: current_sorting_,
|
|
8302
8312
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
8303
|
-
local_filter_cache_: local_filter_cache_
|
|
8313
|
+
local_filter_cache_: local_filter_cache_,
|
|
8314
|
+
expanded_filters_: expanded_filters_,
|
|
8315
|
+
filters_open_: filters_open_
|
|
8304
8316
|
});
|
|
8305
8317
|
}
|
|
8306
8318
|
}), {
|
|
@@ -8365,15 +8377,23 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true, over
|
|
|
8365
8377
|
// Some customers (e.g. equestrian) have `height: 100%` and/or `overflow-x: hidden` on the body, which means that scroll events won't get dispatched on `window`. The pages who get it on <body> won't get it on `window` and vice-versa, so there shouldn't be a worry about duplicate calling of the handler.
|
|
8366
8378
|
// Use observer in case that this gets called before body exists
|
|
8367
8379
|
if (!override_element) {
|
|
8368
|
-
const
|
|
8369
|
-
element: element
|
|
8370
|
-
}) => {
|
|
8380
|
+
const doWithBody = element => {
|
|
8371
8381
|
element.addEventListener("scroll", catchified_handler, {
|
|
8372
8382
|
passive: passive
|
|
8373
8383
|
});
|
|
8374
8384
|
$5vyXB$solidjs.runWithOwner(owner, () => $5vyXB$solidjs.onCleanup(() => element.removeEventListener("scroll", catchified_handler)));
|
|
8375
|
-
}
|
|
8376
|
-
|
|
8385
|
+
};
|
|
8386
|
+
const {
|
|
8387
|
+
body: body
|
|
8388
|
+
} = document;
|
|
8389
|
+
if (body)
|
|
8390
|
+
// Only start observer if we absolutely need it, for performance
|
|
8391
|
+
doWithBody(body);else {
|
|
8392
|
+
const disconnect = (0, $5vyXB$depictaiutilishared.observer).onexists("body", ({
|
|
8393
|
+
element: element
|
|
8394
|
+
}) => doWithBody(element));
|
|
8395
|
+
$5vyXB$solidjs.onCleanup(disconnect);
|
|
8396
|
+
}
|
|
8377
8397
|
}
|
|
8378
8398
|
for (const event of ["resize", "orientationchange", "scroll"]) {
|
|
8379
8399
|
const listen_on = override_element ?? window;
|
|
@@ -11121,7 +11141,9 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
11121
11141
|
current_sorting_: current_sorting_,
|
|
11122
11142
|
expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
|
|
11123
11143
|
i18n_: i18n_,
|
|
11124
|
-
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
|
|
11125
11147
|
});
|
|
11126
11148
|
$2c61e4cd8229c49a$export$dde08b2dca8cc1ce.set(this, {
|
|
11127
11149
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
@@ -12016,7 +12038,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
|
|
|
12016
12038
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12017
12039
|
plp_results_: plp_results_,
|
|
12018
12040
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12019
|
-
id_type_: id_type_
|
|
12041
|
+
id_type_: id_type_,
|
|
12042
|
+
expanded_filters_: expanded_filters_,
|
|
12043
|
+
filters_open_: filters_open_
|
|
12020
12044
|
}) {
|
|
12021
12045
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
12022
12046
|
$ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
@@ -12025,7 +12049,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
|
|
|
12025
12049
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12026
12050
|
selected_filters_: selected_filters_,
|
|
12027
12051
|
i18n_: i18n_,
|
|
12028
|
-
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_
|
|
12029
12055
|
});
|
|
12030
12056
|
// The code below is for when we're already open and the user navigates to a new category
|
|
12031
12057
|
let previous_crumb_data = $5vyXB$solidjs.untrack(crumb_data_);
|
|
@@ -12058,7 +12084,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
|
|
|
12058
12084
|
also_clear_sorting_: false,
|
|
12059
12085
|
selected_filters_: selected_filters_,
|
|
12060
12086
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12061
|
-
local_filter_cache_: local_filter_cache_
|
|
12087
|
+
local_filter_cache_: local_filter_cache_,
|
|
12088
|
+
expanded_filters_: expanded_filters_,
|
|
12089
|
+
filters_open_: filters_open_
|
|
12062
12090
|
});
|
|
12063
12091
|
// Also ensure we don't have `sideways_url_params_flag` set anymore
|
|
12064
12092
|
sideways_filter_clearing_flag_[1](false);
|
|
@@ -12078,7 +12106,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12078
12106
|
i18n_: i18n_,
|
|
12079
12107
|
selected_filters_: selected_filters_,
|
|
12080
12108
|
local_filter_cache_: local_filter_cache_,
|
|
12081
|
-
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_
|
|
12082
12112
|
}) {
|
|
12083
12113
|
const tracking_function_for_plp_results = $5vyXB$solidjs.createReaction(() => {
|
|
12084
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
|
|
@@ -12093,7 +12123,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
12093
12123
|
also_clear_sorting_: false,
|
|
12094
12124
|
selected_filters_: selected_filters_,
|
|
12095
12125
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12096
|
-
local_filter_cache_: local_filter_cache_
|
|
12126
|
+
local_filter_cache_: local_filter_cache_,
|
|
12127
|
+
filters_open_: filters_open_,
|
|
12128
|
+
expanded_filters_: expanded_filters_
|
|
12097
12129
|
});
|
|
12098
12130
|
});
|
|
12099
12131
|
});
|
|
@@ -12336,7 +12368,9 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
12336
12368
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12337
12369
|
plp_results_: plp_products_,
|
|
12338
12370
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12339
|
-
id_type_: id_type_
|
|
12371
|
+
id_type_: id_type_,
|
|
12372
|
+
expanded_filters_: expanded_filters_,
|
|
12373
|
+
filters_open_: category_filters_open_
|
|
12340
12374
|
});
|
|
12341
12375
|
get_breadcrumb_accessor_?.(crumb_data_);
|
|
12342
12376
|
get_quicklinks_accessor_?.(quicklinks_data_);
|