@depict-ai/ui 4.8.16 → 4.8.18
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 +50 -12
- package/ES10/index.d.ts +8 -4
- package/ES10/index.js +50 -12
- package/latest/index.cjs +50 -12
- package/latest/index.d.ts +8 -4
- package/latest/index.js +50 -12
- package/package.json +3 -3
- package/server/ES10/index.cjs +38 -7
- package/server/ES10/index.d.ts +8 -4
- package/server/ES10/index.js +38 -7
- package/server/latest/index.cjs +38 -7
- package/server/latest/index.d.ts +8 -4
- package/server/latest/index.js +38 -7
package/server/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.18";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $5vyXB$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $5vyXB$solidjs.createSignal(0);
|
|
@@ -797,7 +797,9 @@ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
|
797
797
|
return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
|
|
798
798
|
}
|
|
799
799
|
var $a0e53f99354809d9$var$_tmpl$ = ["<div", ">", "</div>"],
|
|
800
|
-
$a0e53f99354809d9$var$_tmpl$2 = ["<
|
|
800
|
+
$a0e53f99354809d9$var$_tmpl$2 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button">', "</button>"],
|
|
801
|
+
$a0e53f99354809d9$var$_tmpl$3 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button">', "</button>"],
|
|
802
|
+
$a0e53f99354809d9$var$_tmpl$4 = ["<div", ' class="depict-slider depict"><!--$-->', '<!--/--><div class="sliding">', "</div></div>"];
|
|
801
803
|
const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$5vyXB$solidjs.createContext();
|
|
802
804
|
function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
803
805
|
const {
|
|
@@ -809,6 +811,7 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
809
811
|
fadingThreshold_ = 0.96
|
|
810
812
|
} = props;
|
|
811
813
|
const [hasHydrated, setHasHydrated] = $5vyXB$solidjs.createSignal(false);
|
|
814
|
+
const shouldShowArrows = () => props.showArrow_ !== false;
|
|
812
815
|
$5vyXB$solidjs.createEffect(() => setHasHydrated(true));
|
|
813
816
|
const MakeButton = () => $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $0f313083912e447a$export$8be2714ec7f169ee), {
|
|
814
817
|
get height_() {
|
|
@@ -827,7 +830,14 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
827
830
|
return hasHydrated() && !(0, $5vyXB$solidjsweb.isServer);
|
|
828
831
|
},
|
|
829
832
|
get fallback() {
|
|
830
|
-
return $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$
|
|
833
|
+
return $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$4, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
834
|
+
get when() {
|
|
835
|
+
return shouldShowArrows();
|
|
836
|
+
},
|
|
837
|
+
get children() {
|
|
838
|
+
return [$5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(MakeButton, {}))), $5vyXB$solidjsweb.ssr($a0e53f99354809d9$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(MakeButton, {})))];
|
|
839
|
+
}
|
|
840
|
+
})), $5vyXB$solidjsweb.escape(props.children));
|
|
831
841
|
},
|
|
832
842
|
get children() {
|
|
833
843
|
return (() => {
|
|
@@ -846,6 +856,12 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
846
856
|
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
847
857
|
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
848
858
|
});
|
|
859
|
+
const {
|
|
860
|
+
left_: left_,
|
|
861
|
+
right_: right_
|
|
862
|
+
} = slider.elements_;
|
|
863
|
+
$5vyXB$solidjs.createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
|
|
864
|
+
$5vyXB$solidjs.createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
|
|
849
865
|
$5vyXB$solidjsweb.insert(slider.insert_here, () => $5vyXB$solidjsweb.createComponent($a0e53f99354809d9$var$SlidableContext.Provider, {
|
|
850
866
|
value: {
|
|
851
867
|
slider_: slider,
|
|
@@ -1505,7 +1521,8 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1505
1521
|
layout_options_: layout_options_,
|
|
1506
1522
|
title_: title_,
|
|
1507
1523
|
NoResultsFallback_: NoResultsFallback_,
|
|
1508
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1524
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1525
|
+
showSliderArrow_: showSliderArrow_
|
|
1509
1526
|
}) {
|
|
1510
1527
|
const is_showing_something = $5vyXB$solidjs.createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
|
|
1511
1528
|
const title = $5vyXB$solidjs.createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
|
|
@@ -1521,6 +1538,9 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1521
1538
|
arrow_height_: 25,
|
|
1522
1539
|
arrow_width_: 12.5,
|
|
1523
1540
|
disable_fading_: true,
|
|
1541
|
+
get showArrow_() {
|
|
1542
|
+
return showSliderArrow_?.();
|
|
1543
|
+
},
|
|
1524
1544
|
slider_ref_: slider => {
|
|
1525
1545
|
const {
|
|
1526
1546
|
insert_here: insert_here,
|
|
@@ -5285,6 +5305,7 @@ function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
|
5285
5305
|
return $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
5286
5306
|
product_card_template_: (...args) => props.product_card_template(...args),
|
|
5287
5307
|
recommendations_resource_: recommendations_resource_,
|
|
5308
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
5288
5309
|
title_: () => props.title,
|
|
5289
5310
|
layout_options_: $5vyXB$solidjs.createMemo(() => ({
|
|
5290
5311
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -9503,7 +9524,8 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
9503
9524
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
9504
9525
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
9505
9526
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
9506
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
9527
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
9528
|
+
showSliderArrow_: showSliderArrow_
|
|
9507
9529
|
}) {
|
|
9508
9530
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
9509
9531
|
const is_loading_ = $5vyXB$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -9678,6 +9700,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
9678
9700
|
arrow_height_: 25,
|
|
9679
9701
|
arrow_width_: 12.5,
|
|
9680
9702
|
disable_fading_: true,
|
|
9703
|
+
get showArrow_() {
|
|
9704
|
+
return showSliderArrow_();
|
|
9705
|
+
},
|
|
9681
9706
|
slider_ref_: slider => {
|
|
9682
9707
|
const {
|
|
9683
9708
|
insert_here: insert_here,
|
|
@@ -10966,7 +10991,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10966
10991
|
modalVersionUsed_: modalVersionUsed_,
|
|
10967
10992
|
BackIcon_: BackIcon_,
|
|
10968
10993
|
filterModalParent_: filterModalParent_,
|
|
10969
|
-
class_: class_
|
|
10994
|
+
class_: class_,
|
|
10995
|
+
showSliderArrow_: showSliderArrow_
|
|
10970
10996
|
}) {
|
|
10971
10997
|
const [get_sorting] = current_sorting_;
|
|
10972
10998
|
const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
|
|
@@ -11271,6 +11297,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
11271
11297
|
id_currently_querying_for_: get_search_query_,
|
|
11272
11298
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11273
11299
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11300
|
+
showSliderArrow_: showSliderArrow_,
|
|
11274
11301
|
no_results_options_: {
|
|
11275
11302
|
selected_filters_: selected_filters_,
|
|
11276
11303
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -11661,6 +11688,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
11661
11688
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
11662
11689
|
submit_query_: shared_properties.configured_submit_query_,
|
|
11663
11690
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
11691
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
11664
11692
|
i18n_: shared_properties.i18n_,
|
|
11665
11693
|
modalAlignmentSignalsRef_: style => {
|
|
11666
11694
|
const shared_info_right_now = $2c61e4cd8229c49a$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -12608,7 +12636,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
12608
12636
|
sorting_query_param_: sorting_query_param_,
|
|
12609
12637
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12610
12638
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12611
|
-
filterModalParent_: filterModalParent_
|
|
12639
|
+
filterModalParent_: filterModalParent_,
|
|
12640
|
+
showSliderArrow_: showSliderArrow_
|
|
12612
12641
|
}) {
|
|
12613
12642
|
let results_for;
|
|
12614
12643
|
let only_show_filters_opener_;
|
|
@@ -12924,6 +12953,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
12924
12953
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12925
12954
|
id_currently_querying_for_: id_to_query_for_,
|
|
12926
12955
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12956
|
+
showSliderArrow_: showSliderArrow_,
|
|
12927
12957
|
all_products_loaded_: all_products_loaded_,
|
|
12928
12958
|
no_results_options_: {
|
|
12929
12959
|
selected_filters_: selected_filters_,
|
|
@@ -13058,6 +13088,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
13058
13088
|
selected_filters_: selected_filters_,
|
|
13059
13089
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13060
13090
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
13091
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
13061
13092
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13062
13093
|
history_content_blocks_: history_content_blocks_,
|
|
13063
13094
|
layout_options_: $5vyXB$solidjs.createMemo(() => ({
|
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.8.
|
|
14
|
+
export const version = "4.8.18";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -73,7 +73,7 @@ export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, an
|
|
|
73
73
|
* When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
|
|
74
74
|
* @param displayTransformers
|
|
75
75
|
*/
|
|
76
|
-
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay =
|
|
76
|
+
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = InputDisplay>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
|
|
77
77
|
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
78
|
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
79
|
displays: InputDisplay[];
|
|
@@ -321,6 +321,7 @@ export function SlidableItems(props: {
|
|
|
321
321
|
mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
|
|
322
322
|
arrow_width_?: number;
|
|
323
323
|
arrow_height_?: number;
|
|
324
|
+
showArrow_?: boolean;
|
|
324
325
|
}): JSX.Element;
|
|
325
326
|
/**
|
|
326
327
|
* Use this inside the children of a <SlidableItems> component to get the slider instance and a signal that contains the latest intersection obsrever entries (note they are accessible on the slider instance in a processed format already at the time this acessor updates)
|
|
@@ -1167,6 +1168,7 @@ export function RecommendationSlider<T extends Display>(props: {
|
|
|
1167
1168
|
recommendations: Promise<T[]>;
|
|
1168
1169
|
title?: JSX.Element;
|
|
1169
1170
|
product_card_template: ProductCardTemplate<T>;
|
|
1171
|
+
showSliderArrow_?: boolean;
|
|
1170
1172
|
class?: string;
|
|
1171
1173
|
}): HTMLDivElement;
|
|
1172
1174
|
export function ExpandingDetails(props: {
|
|
@@ -1492,6 +1494,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1492
1494
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1493
1495
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1494
1496
|
class?: string;
|
|
1497
|
+
showSliderArrow_?: boolean;
|
|
1495
1498
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1496
1499
|
/**
|
|
1497
1500
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1531,7 +1534,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1531
1534
|
* Open the modal with support for alignment.
|
|
1532
1535
|
* @returns {void}
|
|
1533
1536
|
*/
|
|
1534
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1537
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1535
1538
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1536
1539
|
export interface PageReplacer {
|
|
1537
1540
|
readonly render_: () => Node_Array;
|
|
@@ -1610,5 +1613,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1610
1613
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1611
1614
|
layout?: PossibleLayout;
|
|
1612
1615
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1613
|
-
|
|
1616
|
+
showSliderArrow_?: boolean;
|
|
1617
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1614
1618
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify1, ListenableSet as $i7
|
|
|
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.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.18";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $i7OB2$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $i7OB2$createSignal(0);
|
|
@@ -696,7 +696,9 @@ function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
|
696
696
|
return $i7OB2$ssr($fbbadcb080ad1d4a$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("width", $i7OB2$escape(props.width_, true) ?? 14, false) + $i7OB2$ssrAttribute("height", $i7OB2$escape(props.height_, true) ?? 26, false));
|
|
697
697
|
}
|
|
698
698
|
var $f32e14878e75af51$var$_tmpl$ = ["<div", ">", "</div>"],
|
|
699
|
-
$f32e14878e75af51$var$_tmpl$2 = ["<
|
|
699
|
+
$f32e14878e75af51$var$_tmpl$2 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button">', "</button>"],
|
|
700
|
+
$f32e14878e75af51$var$_tmpl$3 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button">', "</button>"],
|
|
701
|
+
$f32e14878e75af51$var$_tmpl$4 = ["<div", ' class="depict-slider depict"><!--$-->', '<!--/--><div class="sliding">', "</div></div>"];
|
|
700
702
|
const $f32e14878e75af51$var$SlidableContext = /*@__PURE__*/$i7OB2$createContext();
|
|
701
703
|
function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
702
704
|
const {
|
|
@@ -708,6 +710,7 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
|
708
710
|
fadingThreshold_ = 0.96
|
|
709
711
|
} = props;
|
|
710
712
|
const [hasHydrated, setHasHydrated] = $i7OB2$createSignal(false);
|
|
713
|
+
const shouldShowArrows = () => props.showArrow_ !== false;
|
|
711
714
|
$i7OB2$createEffect(() => setHasHydrated(true));
|
|
712
715
|
const MakeButton = () => $i7OB2$ssr($f32e14878e75af51$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $fbbadcb080ad1d4a$export$8be2714ec7f169ee), {
|
|
713
716
|
get height_() {
|
|
@@ -726,7 +729,14 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
|
726
729
|
return hasHydrated() && !(0, $i7OB2$isServer);
|
|
727
730
|
},
|
|
728
731
|
get fallback() {
|
|
729
|
-
return $i7OB2$ssr($f32e14878e75af51$var$_tmpl$
|
|
732
|
+
return $i7OB2$ssr($f32e14878e75af51$var$_tmpl$4, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
733
|
+
get when() {
|
|
734
|
+
return shouldShowArrows();
|
|
735
|
+
},
|
|
736
|
+
get children() {
|
|
737
|
+
return [$i7OB2$ssr($f32e14878e75af51$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(MakeButton, {}))), $i7OB2$ssr($f32e14878e75af51$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(MakeButton, {})))];
|
|
738
|
+
}
|
|
739
|
+
})), $i7OB2$escape(props.children));
|
|
730
740
|
},
|
|
731
741
|
get children() {
|
|
732
742
|
return (() => {
|
|
@@ -745,6 +755,12 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
|
745
755
|
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
746
756
|
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
747
757
|
});
|
|
758
|
+
const {
|
|
759
|
+
left_: left_,
|
|
760
|
+
right_: right_
|
|
761
|
+
} = slider.elements_;
|
|
762
|
+
$i7OB2$createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
|
|
763
|
+
$i7OB2$createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
|
|
748
764
|
$i7OB2$insert(slider.insert_here, () => $i7OB2$createComponent($f32e14878e75af51$var$SlidableContext.Provider, {
|
|
749
765
|
value: {
|
|
750
766
|
slider_: slider,
|
|
@@ -1404,7 +1420,8 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
|
|
|
1404
1420
|
layout_options_: layout_options_,
|
|
1405
1421
|
title_: title_,
|
|
1406
1422
|
NoResultsFallback_: NoResultsFallback_,
|
|
1407
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1423
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1424
|
+
showSliderArrow_: showSliderArrow_
|
|
1408
1425
|
}) {
|
|
1409
1426
|
const is_showing_something = $i7OB2$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
|
|
1410
1427
|
const title = $i7OB2$createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
|
|
@@ -1420,6 +1437,9 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
|
|
|
1420
1437
|
arrow_height_: 25,
|
|
1421
1438
|
arrow_width_: 12.5,
|
|
1422
1439
|
disable_fading_: true,
|
|
1440
|
+
get showArrow_() {
|
|
1441
|
+
return showSliderArrow_?.();
|
|
1442
|
+
},
|
|
1423
1443
|
slider_ref_: slider => {
|
|
1424
1444
|
const {
|
|
1425
1445
|
insert_here: insert_here,
|
|
@@ -5184,6 +5204,7 @@ function $ee116da074deb002$export$9574e176201e5e8d(props) {
|
|
|
5184
5204
|
return $c4492d24952ed731$export$d41d19e89346fa2({
|
|
5185
5205
|
product_card_template_: (...args) => props.product_card_template(...args),
|
|
5186
5206
|
recommendations_resource_: recommendations_resource_,
|
|
5207
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
5187
5208
|
title_: () => props.title,
|
|
5188
5209
|
layout_options_: $i7OB2$createMemo(() => ({
|
|
5189
5210
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -9402,7 +9423,8 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
9402
9423
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
9403
9424
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
9404
9425
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
9405
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
9426
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
9427
|
+
showSliderArrow_: showSliderArrow_
|
|
9406
9428
|
}) {
|
|
9407
9429
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
9408
9430
|
const is_loading_ = $i7OB2$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -9577,6 +9599,9 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
9577
9599
|
arrow_height_: 25,
|
|
9578
9600
|
arrow_width_: 12.5,
|
|
9579
9601
|
disable_fading_: true,
|
|
9602
|
+
get showArrow_() {
|
|
9603
|
+
return showSliderArrow_();
|
|
9604
|
+
},
|
|
9580
9605
|
slider_ref_: slider => {
|
|
9581
9606
|
const {
|
|
9582
9607
|
insert_here: insert_here,
|
|
@@ -10865,7 +10890,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10865
10890
|
modalVersionUsed_: modalVersionUsed_,
|
|
10866
10891
|
BackIcon_: BackIcon_,
|
|
10867
10892
|
filterModalParent_: filterModalParent_,
|
|
10868
|
-
class_: class_
|
|
10893
|
+
class_: class_,
|
|
10894
|
+
showSliderArrow_: showSliderArrow_
|
|
10869
10895
|
}) {
|
|
10870
10896
|
const [get_sorting] = current_sorting_;
|
|
10871
10897
|
const all_products_loaded_ = $i7OB2$createSignal(false);
|
|
@@ -11170,6 +11196,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
11170
11196
|
id_currently_querying_for_: get_search_query_,
|
|
11171
11197
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11172
11198
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11199
|
+
showSliderArrow_: showSliderArrow_,
|
|
11173
11200
|
no_results_options_: {
|
|
11174
11201
|
selected_filters_: selected_filters_,
|
|
11175
11202
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -11560,6 +11587,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
11560
11587
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
11561
11588
|
submit_query_: shared_properties.configured_submit_query_,
|
|
11562
11589
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
11590
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
11563
11591
|
i18n_: shared_properties.i18n_,
|
|
11564
11592
|
modalAlignmentSignalsRef_: style => {
|
|
11565
11593
|
const shared_info_right_now = $806c97b931758897$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -12507,7 +12535,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
12507
12535
|
sorting_query_param_: sorting_query_param_,
|
|
12508
12536
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12509
12537
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12510
|
-
filterModalParent_: filterModalParent_
|
|
12538
|
+
filterModalParent_: filterModalParent_,
|
|
12539
|
+
showSliderArrow_: showSliderArrow_
|
|
12511
12540
|
}) {
|
|
12512
12541
|
let results_for;
|
|
12513
12542
|
let only_show_filters_opener_;
|
|
@@ -12823,6 +12852,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
12823
12852
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12824
12853
|
id_currently_querying_for_: id_to_query_for_,
|
|
12825
12854
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12855
|
+
showSliderArrow_: showSliderArrow_,
|
|
12826
12856
|
all_products_loaded_: all_products_loaded_,
|
|
12827
12857
|
no_results_options_: {
|
|
12828
12858
|
selected_filters_: selected_filters_,
|
|
@@ -12957,6 +12987,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
12957
12987
|
selected_filters_: selected_filters_,
|
|
12958
12988
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12959
12989
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
12990
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
12960
12991
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
12961
12992
|
history_content_blocks_: history_content_blocks_,
|
|
12962
12993
|
layout_options_: $i7OB2$createMemo(() => ({
|