@depict-ai/ui 4.10.11 → 4.10.13
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 +117 -48
- package/ES10/index.d.ts +25 -5
- package/ES10/index.js +117 -48
- package/latest/index.cjs +115 -48
- package/latest/index.d.ts +25 -5
- package/latest/index.js +115 -48
- package/package.json +4 -4
- package/server/ES10/index.cjs +93 -41
- package/server/ES10/index.d.ts +25 -5
- package/server/ES10/index.js +93 -41
- package/server/latest/index.cjs +91 -41
- package/server/latest/index.d.ts +25 -5
- package/server/latest/index.js +91 -41
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.13";
|
|
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, ({
|
|
@@ -2108,12 +2108,12 @@ function $f8a56ba74eedd0c6$export$f21ab0717a89c77f(props) {
|
|
|
2108
2108
|
height: "12"
|
|
2109
2109
|
}), () => $i7OB2$ssr($f8a56ba74eedd0c6$var$_tmpl$), true);
|
|
2110
2110
|
}
|
|
2111
|
-
var $67b173f9db427028$var$_tmpl$ = ["<button", ' type="button" class="', '"
|
|
2111
|
+
var $67b173f9db427028$var$_tmpl$ = ["<button", ' type="button" class="', '"', "><!--$-->", "<!--/--><span>", "</span></button>"];
|
|
2112
2112
|
function $67b173f9db427028$export$ca21a16d65b3dd8({
|
|
2113
2113
|
show_extras_: [get_show_extras, set_show_extras],
|
|
2114
2114
|
i18n_: i18n_
|
|
2115
2115
|
}) {
|
|
2116
|
-
return $i7OB2$ssr($67b173f9db427028$var$_tmpl$, $i7OB2$ssrHydrationKey(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, $i7OB2$escape($i7OB2$createComponent((0, $f8a56ba74eedd0c6$export$f21ab0717a89c77f), {})), get_show_extras() ? $i7OB2$escape(i18n_.view_less_()) : $i7OB2$escape(i18n_.view_more_()));
|
|
2116
|
+
return $i7OB2$ssr($67b173f9db427028$var$_tmpl$, $i7OB2$ssrHydrationKey(), `expand-filter ${get_show_extras() ? "expanded" : ""}`, $i7OB2$ssrAttribute("aria-expanded", $i7OB2$escape(get_show_extras(), true), false), $i7OB2$escape($i7OB2$createComponent((0, $f8a56ba74eedd0c6$export$f21ab0717a89c77f), {})), get_show_extras() ? $i7OB2$escape(i18n_.view_less_()) : $i7OB2$escape(i18n_.view_more_()));
|
|
2117
2117
|
}
|
|
2118
2118
|
var $f3213c0640246d58$var$_tmpl$ = ["<span", ' class="highlighted-part">', "</span>"],
|
|
2119
2119
|
$f3213c0640246d58$var$_tmpl$2 = ["<span", ' class="', '"', ">", "</span>"];
|
|
@@ -2344,7 +2344,7 @@ function $eb8d9bf3b5700c26$export$430444115f70a734({
|
|
|
2344
2344
|
}
|
|
2345
2345
|
})));
|
|
2346
2346
|
}
|
|
2347
|
-
var $a6b08770e164eced$var$_tmpl$ = ["<div", ' class="', '"><div class="input-group"><div class="field"><input', ' type="number"', '></div><div class="separator">-</div><div class="field"><input', ' type="number"', "></div></div><!--$-->", '<!--/--><div class="value-text"><span class="min"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", '<!--/--></span><span class="max"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div>"],
|
|
2347
|
+
var $a6b08770e164eced$var$_tmpl$ = ["<div", ' class="', '"><div class="input-group"><div class="field"><input', ' type="number"', '></div><div class="separator" aria-hidden="true">-</div><div class="field"><input', ' type="number"', "></div></div><!--$-->", '<!--/--><div class="value-text"><span class="min"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", '<!--/--></span><span class="max"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></div></div>"],
|
|
2348
2348
|
$a6b08770e164eced$var$_tmpl$2 = ["<div", ' class="slider"><div class="progress" style="', '"></div></div>'],
|
|
2349
2349
|
$a6b08770e164eced$var$_tmpl$3 = ["<div", ' class="range-group"><input', ' type="range"', ' step="any"><input', ' type="range"', ' step="any"></div>'];
|
|
2350
2350
|
function $a6b08770e164eced$export$e0d834a0ad870cda({
|
|
@@ -2437,7 +2437,8 @@ function $a6b08770e164eced$var$RangeSelector({
|
|
|
2437
2437
|
min_: min_,
|
|
2438
2438
|
current_range_: current_range_,
|
|
2439
2439
|
i18n_: i18n_,
|
|
2440
|
-
should_be_disabled_: should_be_disabled_
|
|
2440
|
+
should_be_disabled_: should_be_disabled_,
|
|
2441
|
+
priceFormatting_: price_formatting_
|
|
2441
2442
|
})), $i7OB2$escape(pre_price()), $i7OB2$escape($i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
|
|
2442
2443
|
get price_() {
|
|
2443
2444
|
return min_();
|
|
@@ -2459,7 +2460,8 @@ function $a6b08770e164eced$var$ExponentialSlider({
|
|
|
2459
2460
|
min_: min_,
|
|
2460
2461
|
i18n_: i18n_,
|
|
2461
2462
|
max_: max_,
|
|
2462
|
-
should_be_disabled_: should_be_disabled_
|
|
2463
|
+
should_be_disabled_: should_be_disabled_,
|
|
2464
|
+
priceFormatting_: priceFormatting_
|
|
2463
2465
|
}) {
|
|
2464
2466
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
2465
2467
|
const transform_linear_to_nonlinear = ([smaller, larger]) => [Math.sqrt(smaller), Math.sqrt(larger)];
|
|
@@ -2493,7 +2495,8 @@ function $a6b08770e164eced$var$ExponentialSlider({
|
|
|
2493
2495
|
max_: modified_max,
|
|
2494
2496
|
offset_value_calculator_: offset_value_calculator_,
|
|
2495
2497
|
i18n_: i18n_,
|
|
2496
|
-
should_be_disabled_: should_be_disabled_
|
|
2498
|
+
should_be_disabled_: should_be_disabled_,
|
|
2499
|
+
priceFormatting_: priceFormatting_
|
|
2497
2500
|
});
|
|
2498
2501
|
}
|
|
2499
2502
|
function $a6b08770e164eced$var$LinearSlider({
|
|
@@ -2502,12 +2505,17 @@ function $a6b08770e164eced$var$LinearSlider({
|
|
|
2502
2505
|
current_range_: current_range_,
|
|
2503
2506
|
offset_value_calculator_: offset_value_calculator_,
|
|
2504
2507
|
i18n_: i18n_,
|
|
2505
|
-
should_be_disabled_: should_be_disabled_
|
|
2508
|
+
should_be_disabled_: should_be_disabled_,
|
|
2509
|
+
priceFormatting_: priceFormatting_
|
|
2506
2510
|
}) {
|
|
2507
2511
|
let range_input_1;
|
|
2508
2512
|
let range_input_2;
|
|
2509
2513
|
let clickable_slider;
|
|
2510
2514
|
const [get_current_range, set_current_range] = current_range_;
|
|
2515
|
+
const formatRealPrice = value => {
|
|
2516
|
+
const priceFormatting = priceFormatting_();
|
|
2517
|
+
return priceFormatting.pre_ + $i7OB2$standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
2518
|
+
};
|
|
2511
2519
|
const progress_styling = $i7OB2$createMemo(() => {
|
|
2512
2520
|
const min = min_();
|
|
2513
2521
|
const span = max_() - min;
|
|
@@ -2526,13 +2534,13 @@ function $a6b08770e164eced$var$LinearSlider({
|
|
|
2526
2534
|
el.value = get_current_range()[index];
|
|
2527
2535
|
});
|
|
2528
2536
|
};
|
|
2529
|
-
return [$i7OB2$ssr($a6b08770e164eced$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$ssrStyle(progress_styling())), $i7OB2$ssr($a6b08770e164eced$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("disabled", should_be_disabled_(), true), $i7OB2$ssrAttribute("aria-label", $i7OB2$escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $i7OB2$ssrAttribute("min", $i7OB2$escape(min_(), true), false) + $i7OB2$ssrAttribute("max", $i7OB2$escape(max_(), true), false) + $i7OB2$ssrAttribute("value", $i7OB2$escape($i7OB2$createMemo(() => {
|
|
2537
|
+
return [$i7OB2$ssr($a6b08770e164eced$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$ssrStyle(progress_styling())), $i7OB2$ssr($a6b08770e164eced$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("disabled", should_be_disabled_(), true), $i7OB2$ssrAttribute("aria-label", $i7OB2$escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $i7OB2$ssrAttribute("aria-valuetext", $i7OB2$escape(formatRealPrice(get_current_range()[0]), true), false) + $i7OB2$ssrAttribute("min", $i7OB2$escape(min_(), true), false) + $i7OB2$ssrAttribute("max", $i7OB2$escape(max_(), true), false) + $i7OB2$ssrAttribute("value", $i7OB2$escape($i7OB2$createMemo(() => {
|
|
2530
2538
|
min_();
|
|
2531
2539
|
max_();
|
|
2532
2540
|
return get_current_range()[0];
|
|
2533
2541
|
}, undefined, {
|
|
2534
2542
|
equals: false
|
|
2535
|
-
})(), true), false), $i7OB2$ssrAttribute("disabled", should_be_disabled_(), true) + $i7OB2$ssrAttribute("aria-label", $i7OB2$escape(i18n_.range_filter_high_point_aria_label_(), true), false), $i7OB2$ssrAttribute("min", $i7OB2$escape(min_(), true), false) + $i7OB2$ssrAttribute("max", $i7OB2$escape(max_(), true), false))];
|
|
2543
|
+
})(), true), false), $i7OB2$ssrAttribute("disabled", should_be_disabled_(), true) + $i7OB2$ssrAttribute("aria-label", $i7OB2$escape(i18n_.range_filter_high_point_aria_label_(), true), false) + $i7OB2$ssrAttribute("aria-valuetext", $i7OB2$escape(formatRealPrice(get_current_range()[1]), true), false), $i7OB2$ssrAttribute("min", $i7OB2$escape(min_(), true), false) + $i7OB2$ssrAttribute("max", $i7OB2$escape(max_(), true), false))];
|
|
2536
2544
|
}
|
|
2537
2545
|
function $a6b08770e164eced$var$set_range_with_sanitation(min_, max_, current_range_signal, index, target_el, get_offset_value = (value, how_many) => value + how_many) {
|
|
2538
2546
|
let value_as_number = +target_el.value;
|
|
@@ -3328,6 +3336,13 @@ const $93716a9ad0dea854$export$414f6a19d38e655c = ({
|
|
|
3328
3336
|
const label = $i7OB2$createMemo(() => value().name_ || value().value_ + "");
|
|
3329
3337
|
const count_zero = $i7OB2$createMemo(() => value().count_ === 0);
|
|
3330
3338
|
return $i7OB2$ssrElement("button", $i7OB2$mergeProps1(attributes, {
|
|
3339
|
+
type: "button",
|
|
3340
|
+
get ["aria-pressed"]() {
|
|
3341
|
+
return is_selected();
|
|
3342
|
+
},
|
|
3343
|
+
get ["aria-label"]() {
|
|
3344
|
+
return value().count_ != undefined ? `${label()}, ${value().count_}` : label();
|
|
3345
|
+
},
|
|
3331
3346
|
get disabled() {
|
|
3332
3347
|
return count_zero() && !is_selected();
|
|
3333
3348
|
},
|
|
@@ -3498,7 +3513,14 @@ function $e731d52d97444b7c$export$82ed4b28ecb67608({
|
|
|
3498
3513
|
return !!data?.some(item => $91aa8ee9f431800d$export$325f75597868c4f0(item) === value);
|
|
3499
3514
|
});
|
|
3500
3515
|
const value = $i7OB2$createMemo(() => checkbox().value_);
|
|
3501
|
-
const label_text = $i7OB2$createMemo(() =>
|
|
3516
|
+
const label_text = $i7OB2$createMemo(() => {
|
|
3517
|
+
const name = checkbox().name_;
|
|
3518
|
+
if (name) return name;
|
|
3519
|
+
const value_string = value() + "";
|
|
3520
|
+
if (backendFilterV2()) return value_string;
|
|
3521
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
3522
|
+
return value_string.split(";")[0] || value_string;
|
|
3523
|
+
});
|
|
3502
3524
|
const count = $i7OB2$createMemo(() => checkbox().count_);
|
|
3503
3525
|
const colorNameDatasetValue = $i7OB2$createMemo(() => {
|
|
3504
3526
|
if (backendFilterV2()) return label_text();
|
|
@@ -3909,9 +3931,9 @@ function $e01b34f289b61435$var$find_str_arr_in_str_arr_arr(operation, haystack,
|
|
|
3909
3931
|
var $fab07f52c9861732$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "</div>"],
|
|
3910
3932
|
$fab07f52c9861732$var$_tmpl$2 = ["<button", ' class="clear-group"><!--$-->', "<!--/--><span>", "</span></button>"],
|
|
3911
3933
|
$fab07f52c9861732$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
3912
|
-
$fab07f52c9861732$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><
|
|
3934
|
+
$fab07f52c9861732$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><fieldset class="filter-part"', "><!--$-->", "<!--/--><!--$-->", "<!--/--></fieldset><!--$-->", "<!--/--></div>"],
|
|
3913
3935
|
$fab07f52c9861732$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
|
|
3914
|
-
$fab07f52c9861732$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span
|
|
3936
|
+
$fab07f52c9861732$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span', ">", '</span><div class="selected-w-sign"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></summary>"],
|
|
3915
3937
|
$fab07f52c9861732$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
|
|
3916
3938
|
$fab07f52c9861732$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
|
|
3917
3939
|
function $fab07f52c9861732$export$3f1a388cc0d8fed7(props) {
|
|
@@ -3995,13 +4017,14 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
3995
4017
|
const a_filter_is_selected = $i7OB2$createMemo(() => selected_filters_in_group().size);
|
|
3996
4018
|
const [get_details_width, set_get_details_width] = $i7OB2$createSignal();
|
|
3997
4019
|
const details_element_width_ = $i7OB2$createMemo(() => get_details_width?.()?.());
|
|
4020
|
+
const title_id = $i7OB2$make_random_classname();
|
|
3998
4021
|
return $i7OB2$createComponent((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
|
|
3999
4022
|
is_open_: is_open,
|
|
4000
4023
|
get details_() {
|
|
4001
4024
|
return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("data-group-title", $i7OB2$escape(section_, true), false));
|
|
4002
4025
|
},
|
|
4003
4026
|
get summary_() {
|
|
4004
|
-
return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$6, $i7OB2$ssrHydrationKey(), $i7OB2$escape(section_), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
4027
|
+
return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$6, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("id", $i7OB2$escape(title_id, true), false), $i7OB2$escape(section_), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
4005
4028
|
get when() {
|
|
4006
4029
|
return a_filter_is_selected();
|
|
4007
4030
|
},
|
|
@@ -4023,7 +4046,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
4023
4046
|
})));
|
|
4024
4047
|
},
|
|
4025
4048
|
get children() {
|
|
4026
|
-
return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$4, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent(SearchThisFilterGroup_, {})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Index), {
|
|
4049
|
+
return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$4, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("aria-labelledby", $i7OB2$escape(title_id, true), false), $i7OB2$escape($i7OB2$createComponent(SearchThisFilterGroup_, {})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Index), {
|
|
4027
4050
|
get each() {
|
|
4028
4051
|
return searched_filter_array_();
|
|
4029
4052
|
},
|
|
@@ -6107,7 +6130,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
|
|
|
6107
6130
|
})));
|
|
6108
6131
|
return container;
|
|
6109
6132
|
}
|
|
6110
|
-
const $70bb27cc6be01fc7$var$
|
|
6133
|
+
const $70bb27cc6be01fc7$var$defaultCustomUrls = (url, width) => {
|
|
6111
6134
|
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
6112
6135
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
6113
6136
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
@@ -6116,18 +6139,21 @@ const $70bb27cc6be01fc7$var$customUrls = (url, width) => {
|
|
|
6116
6139
|
return `https://app.depict.ai/cdn-cgi/image/width=${width},format=auto/${url}`;
|
|
6117
6140
|
};
|
|
6118
6141
|
function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
6142
|
+
const resolvedCustomUrls = props.imageResizer_ ?? $70bb27cc6be01fc7$var$defaultCustomUrls;
|
|
6119
6143
|
return $i7OB2$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $i7OB2$mergeProps1(props, {
|
|
6120
6144
|
get imgProps() {
|
|
6121
6145
|
return {
|
|
6122
6146
|
...props.imgProps,
|
|
6123
|
-
customUrls:
|
|
6147
|
+
customUrls: resolvedCustomUrls
|
|
6124
6148
|
};
|
|
6125
6149
|
}
|
|
6126
6150
|
}));
|
|
6127
6151
|
}
|
|
6128
6152
|
function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
|
|
6129
6153
|
return $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps1(props, {
|
|
6130
|
-
customUrls
|
|
6154
|
+
get customUrls() {
|
|
6155
|
+
return props.imageResizer_ ?? $70bb27cc6be01fc7$var$defaultCustomUrls;
|
|
6156
|
+
}
|
|
6131
6157
|
}));
|
|
6132
6158
|
}
|
|
6133
6159
|
var $f916989c4b1be9f7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
|
|
@@ -6137,7 +6163,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6137
6163
|
router_: router_,
|
|
6138
6164
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
6139
6165
|
mediaUrl_: mediaUrl_,
|
|
6140
|
-
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
6166
|
+
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
6167
|
+
imageResizer_: imageResizer_
|
|
6141
6168
|
}) {
|
|
6142
6169
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
6143
6170
|
const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
|
|
@@ -6185,7 +6212,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6185
6212
|
sizeHeight: () => wrapperSize()?.[1]?.() || 0,
|
|
6186
6213
|
src: mediaUrl_,
|
|
6187
6214
|
"class": "d-standard-content",
|
|
6188
|
-
onDecoded: () => setHasLoaded(true)
|
|
6215
|
+
onDecoded: () => setHasLoaded(true),
|
|
6216
|
+
imageResizer_: imageResizer_
|
|
6189
6217
|
});
|
|
6190
6218
|
}
|
|
6191
6219
|
}), $i7OB2$createComponent((0, $i7OB2$Match), {
|
|
@@ -6199,7 +6227,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6199
6227
|
}
|
|
6200
6228
|
}));
|
|
6201
6229
|
}
|
|
6202
|
-
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_) {
|
|
6230
|
+
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
6203
6231
|
let hasSeenContentBlock = false;
|
|
6204
6232
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
6205
6233
|
const contentComponents = new Map();
|
|
@@ -6254,7 +6282,8 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6254
6282
|
...prev.aspectRatios,
|
|
6255
6283
|
[componentCacheKey]: Math.round(aspectRatio * 100) / 100
|
|
6256
6284
|
}
|
|
6257
|
-
}))
|
|
6285
|
+
})),
|
|
6286
|
+
imageResizer_: imageResizer_
|
|
6258
6287
|
});
|
|
6259
6288
|
contentComponents.set(componentCacheKey, component);
|
|
6260
6289
|
}
|
|
@@ -6316,7 +6345,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
6316
6345
|
filterModalParent_: filterModalParent_,
|
|
6317
6346
|
showSliderArrow_: showSliderArrow_,
|
|
6318
6347
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6319
|
-
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6348
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
6349
|
+
imageResizer_: imageResizer_
|
|
6320
6350
|
}) {
|
|
6321
6351
|
let results_for;
|
|
6322
6352
|
let only_show_filters_opener_;
|
|
@@ -6412,7 +6442,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
6412
6442
|
setMetaRequestsForQuery(prev => prev.set(query.id_type_ + query.id_to_query_for_, listing));
|
|
6413
6443
|
return result;
|
|
6414
6444
|
}));
|
|
6415
|
-
const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading);
|
|
6445
|
+
const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading, imageResizer_);
|
|
6416
6446
|
const countOfProductsForUI = $3ef0154d1cf118ed$export$a86bc18439445599(plp_products_, all_products_loaded_, currentlyLoadedDisplays);
|
|
6417
6447
|
const available_sortings_ = $i7OB2$createMemo(() => plp_products_()?.sorts?.map(sort => ({
|
|
6418
6448
|
...sort,
|
|
@@ -6923,7 +6953,8 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
|
|
|
6923
6953
|
outerRef_: outerRef_,
|
|
6924
6954
|
animationDuration_: animationDuration_,
|
|
6925
6955
|
priceFormatting_: priceFormatting_,
|
|
6926
|
-
pseudoRouter_: pseudoRouter_
|
|
6956
|
+
pseudoRouter_: pseudoRouter_,
|
|
6957
|
+
imageResizer_: imageResizer_
|
|
6927
6958
|
}) {
|
|
6928
6959
|
const variantToUse = $i7OB2$createMemo(() => {
|
|
6929
6960
|
const display = display_();
|
|
@@ -6974,7 +7005,8 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
|
|
|
6974
7005
|
},
|
|
6975
7006
|
imgProps: {
|
|
6976
7007
|
keyRatioUpdating: true
|
|
6977
|
-
}
|
|
7008
|
+
},
|
|
7009
|
+
imageResizer_: imageResizer_
|
|
6978
7010
|
});
|
|
6979
7011
|
}
|
|
6980
7012
|
})));
|
|
@@ -7123,7 +7155,8 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
|
|
|
7123
7155
|
supportsHover_: supportsHover_,
|
|
7124
7156
|
priceFormatting_: priceFormatting_,
|
|
7125
7157
|
pseudoRouter_: pseudoRouter_,
|
|
7126
|
-
containerHeight_: containerHeight_
|
|
7158
|
+
containerHeight_: containerHeight_,
|
|
7159
|
+
imageResizer_: imageResizer_
|
|
7127
7160
|
}) {
|
|
7128
7161
|
let isAffectedByChromeBug = false;
|
|
7129
7162
|
// If the user requests the drawer to be expanded or not
|
|
@@ -7159,6 +7192,7 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
|
|
|
7159
7192
|
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
7160
7193
|
textFadeInAnimationRunning_: textFadeInAnimationRunning,
|
|
7161
7194
|
priceFormatting_: priceFormatting_,
|
|
7195
|
+
imageResizer_: imageResizer_,
|
|
7162
7196
|
outerRef_: el => $i7OB2$createEffect(() => {
|
|
7163
7197
|
if (index !== 0) return;
|
|
7164
7198
|
const resizeObserver = new ResizeObserver($i7OB2$catchify1(records => setLookItemHeight(records.at(-1).contentRect.height)));
|
|
@@ -7201,7 +7235,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
7201
7235
|
placeholderImageAspectRatio_: placeholderImageAspectRatio_,
|
|
7202
7236
|
animationDuration_: animationDuration_,
|
|
7203
7237
|
priceFormatting_: priceFormatting_,
|
|
7204
|
-
pseudoRouter_: pseudoRouter_
|
|
7238
|
+
pseudoRouter_: pseudoRouter_,
|
|
7239
|
+
imageResizer_: imageResizer_
|
|
7205
7240
|
}) {
|
|
7206
7241
|
let container;
|
|
7207
7242
|
const useWantsExpandedSignal_ = $i7OB2$createSignal(false);
|
|
@@ -7266,7 +7301,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
7266
7301
|
return display_()?.image_urls?.[0];
|
|
7267
7302
|
},
|
|
7268
7303
|
aspectRatio: placeholderImageAspectRatio_,
|
|
7269
|
-
autoAdjustAspectRatio: true
|
|
7304
|
+
autoAdjustAspectRatio: true,
|
|
7305
|
+
imageResizer_: imageResizer_
|
|
7270
7306
|
});
|
|
7271
7307
|
}
|
|
7272
7308
|
})), $i7OB2$escape($i7OB2$createComponent((0, $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae), {
|
|
@@ -7278,7 +7314,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
7278
7314
|
FavoriteButton_: FavoriteButton_,
|
|
7279
7315
|
priceFormatting_: priceFormatting_,
|
|
7280
7316
|
pseudoRouter_: pseudoRouter_,
|
|
7281
|
-
containerHeight_: containerHeight_
|
|
7317
|
+
containerHeight_: containerHeight_,
|
|
7318
|
+
imageResizer_: imageResizer_
|
|
7282
7319
|
})));
|
|
7283
7320
|
}
|
|
7284
7321
|
|
|
@@ -7534,7 +7571,8 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
7534
7571
|
animationDuration_: expandingAnimationDuration,
|
|
7535
7572
|
expandedLooksSignal_: $07ef910e8ef6b783$var$expandedLooksSignal_,
|
|
7536
7573
|
priceFormatting_: () => props.priceFormatting_,
|
|
7537
|
-
pseudoRouter_: pseudoRouter
|
|
7574
|
+
pseudoRouter_: pseudoRouter,
|
|
7575
|
+
imageResizer_: props.imageResizer_
|
|
7538
7576
|
}),
|
|
7539
7577
|
recommendations_resource_: looksResource,
|
|
7540
7578
|
title_: () => props.title_,
|
|
@@ -8938,7 +8976,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
8938
8976
|
merchant_: merchant_,
|
|
8939
8977
|
keyboardNavigationGroupIndex_: keyboardNavigationGroupIndex_,
|
|
8940
8978
|
index_: index_,
|
|
8941
|
-
selected_index_: [read_selected_index_, write_selected_index_]
|
|
8979
|
+
selected_index_: [read_selected_index_, write_selected_index_],
|
|
8980
|
+
imageResizer_: imageResizer_
|
|
8942
8981
|
}) {
|
|
8943
8982
|
const href = $i7OB2$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
|
|
8944
8983
|
const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps1(props, {
|
|
@@ -8957,7 +8996,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
8957
8996
|
tabIndex: -1,
|
|
8958
8997
|
get children() {
|
|
8959
8998
|
return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
|
|
8960
|
-
image_urls_: image_urls
|
|
8999
|
+
image_urls_: image_urls,
|
|
9000
|
+
imageResizer_: imageResizer_
|
|
8961
9001
|
})));
|
|
8962
9002
|
}
|
|
8963
9003
|
})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
@@ -8984,7 +9024,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
8984
9024
|
})));
|
|
8985
9025
|
}
|
|
8986
9026
|
function $4ce5b8892775b62d$export$ea41102db9bd68c3({
|
|
8987
|
-
image_urls_: image_urls_
|
|
9027
|
+
image_urls_: image_urls_,
|
|
9028
|
+
imageResizer_: imageResizer_
|
|
8988
9029
|
}) {
|
|
8989
9030
|
return $i7OB2$createComponent((0, $i7OB2$Show), {
|
|
8990
9031
|
get when() {
|
|
@@ -9007,7 +9048,8 @@ function $4ce5b8892775b62d$export$ea41102db9bd68c3({
|
|
|
9007
9048
|
},
|
|
9008
9049
|
imgProps: {
|
|
9009
9050
|
style: "object-fit: cover;"
|
|
9010
|
-
}
|
|
9051
|
+
},
|
|
9052
|
+
imageResizer_: imageResizer_
|
|
9011
9053
|
})
|
|
9012
9054
|
});
|
|
9013
9055
|
}
|
|
@@ -9031,7 +9073,8 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
|
|
|
9031
9073
|
selected_index_: selected_index_,
|
|
9032
9074
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
9033
9075
|
showPlaceholders_: showPlaceholders_,
|
|
9034
|
-
currently_showing_suggestions_: [, set_currently_showing_suggestions]
|
|
9076
|
+
currently_showing_suggestions_: [, set_currently_showing_suggestions],
|
|
9077
|
+
imageResizer_: imageResizer_
|
|
9035
9078
|
}) {
|
|
9036
9079
|
const listings_by_id = $i7OB2$createMemo(() => Object.fromEntries((listing_suggestions_() || []).map(listing => [listing.listing_id, listing])));
|
|
9037
9080
|
const productCards = $i7OB2$createComponent((0, $i7OB2$For), {
|
|
@@ -9049,7 +9092,8 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
|
|
|
9049
9092
|
merchant_: merchant_,
|
|
9050
9093
|
keyboardNavigationGroupIndex_: itemIndex_,
|
|
9051
9094
|
index_: index,
|
|
9052
|
-
selected_index_: selected_index_
|
|
9095
|
+
selected_index_: selected_index_,
|
|
9096
|
+
imageResizer_: imageResizer_
|
|
9053
9097
|
});
|
|
9054
9098
|
}
|
|
9055
9099
|
});
|
|
@@ -9358,7 +9402,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9358
9402
|
sorting_query_param_: sorting_query_param_,
|
|
9359
9403
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
9360
9404
|
setSearchFieldOuterWidth_: setSearchFieldOuterWidth_,
|
|
9361
|
-
forceUseDiv_: forceUseDiv_
|
|
9405
|
+
forceUseDiv_: forceUseDiv_,
|
|
9406
|
+
imageResizer_: imageResizer_
|
|
9362
9407
|
}) {
|
|
9363
9408
|
let on_enter_in_search_field_function;
|
|
9364
9409
|
let listingSuggestionsDebounceTimeout;
|
|
@@ -9564,7 +9609,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9564
9609
|
},
|
|
9565
9610
|
imgProps: {
|
|
9566
9611
|
alt: "Product image"
|
|
9567
|
-
}
|
|
9612
|
+
},
|
|
9613
|
+
imageResizer_: imageResizer_
|
|
9568
9614
|
}),
|
|
9569
9615
|
...instant_results_options_
|
|
9570
9616
|
})));
|
|
@@ -9593,7 +9639,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9593
9639
|
selected_index_: selected_index_,
|
|
9594
9640
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
9595
9641
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
9596
|
-
showPlaceholders_: () => !suggestions_response_.latest
|
|
9642
|
+
showPlaceholders_: () => !suggestions_response_.latest,
|
|
9643
|
+
imageResizer_: imageResizer_
|
|
9597
9644
|
});
|
|
9598
9645
|
}
|
|
9599
9646
|
});
|
|
@@ -12277,6 +12324,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
12277
12324
|
display_transformers: display_transformers,
|
|
12278
12325
|
api: api,
|
|
12279
12326
|
searchModalComponent: searchModalComponent,
|
|
12327
|
+
imageResizer_: imageResizer_,
|
|
12280
12328
|
// Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
12281
12329
|
disable_scrolling_during_modal = true,
|
|
12282
12330
|
bottom_distance_under_modal: bottom_distance_under_modal,
|
|
@@ -12407,6 +12455,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
12407
12455
|
},
|
|
12408
12456
|
i18n_: i18n_,
|
|
12409
12457
|
enable_category_suggestions_: enable_category_suggestions,
|
|
12458
|
+
imageResizer_: imageResizer_,
|
|
12410
12459
|
disable_scrolling_: disable_scrolling_during_modal,
|
|
12411
12460
|
bottom_distance_under_modal_: bottom_distance_under_modal
|
|
12412
12461
|
}, override_modal_element);
|
|
@@ -13181,7 +13230,8 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
13181
13230
|
product_card_template_: product_card_template,
|
|
13182
13231
|
sorting_query_param_: sorting_query_param_,
|
|
13183
13232
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
13184
|
-
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
13233
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
13234
|
+
imageResizer_: props.imageResizer_
|
|
13185
13235
|
});
|
|
13186
13236
|
}, "Entire CategoryPage failed");
|
|
13187
13237
|
}
|