@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/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.13";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $b8hua$createSignal(false);
|
|
16
16
|
$b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
|
|
@@ -2206,13 +2206,13 @@ function $ff3225aef892a467$export$f21ab0717a89c77f(props) {
|
|
|
2206
2206
|
height: "12"
|
|
2207
2207
|
}), () => $b8hua$ssr($ff3225aef892a467$var$_tmpl$), true);
|
|
2208
2208
|
}
|
|
2209
|
-
var $3e850b2f2cca761f$var$_tmpl$ = ["<button", ' type="button" class="', '"
|
|
2209
|
+
var $3e850b2f2cca761f$var$_tmpl$ = ["<button", ' type="button" class="', '"', "><!--$-->", "<!--/--><span>", "</span></button>"];
|
|
2210
2210
|
function $3e850b2f2cca761f$export$ca21a16d65b3dd8(_ref) {
|
|
2211
2211
|
let {
|
|
2212
2212
|
show_extras_: [get_show_extras, set_show_extras],
|
|
2213
2213
|
i18n_: i18n_
|
|
2214
2214
|
} = _ref;
|
|
2215
|
-
return $b8hua$ssr($3e850b2f2cca761f$var$_tmpl$, $b8hua$ssrHydrationKey(), "expand-filter ".concat(get_show_extras() ? "expanded" : ""), $b8hua$escape($b8hua$createComponent((0, $ff3225aef892a467$export$f21ab0717a89c77f), {})), get_show_extras() ? $b8hua$escape(i18n_.view_less_()) : $b8hua$escape(i18n_.view_more_()));
|
|
2215
|
+
return $b8hua$ssr($3e850b2f2cca761f$var$_tmpl$, $b8hua$ssrHydrationKey(), "expand-filter ".concat(get_show_extras() ? "expanded" : ""), $b8hua$ssrAttribute("aria-expanded", $b8hua$escape(get_show_extras(), true), false), $b8hua$escape($b8hua$createComponent((0, $ff3225aef892a467$export$f21ab0717a89c77f), {})), get_show_extras() ? $b8hua$escape(i18n_.view_less_()) : $b8hua$escape(i18n_.view_more_()));
|
|
2216
2216
|
}
|
|
2217
2217
|
var $02b6641aa50ce528$var$_tmpl$ = ["<span", ' class="highlighted-part">', "</span>"],
|
|
2218
2218
|
$02b6641aa50ce528$var$_tmpl$2 = ["<span", ' class="', '"', ">", "</span>"];
|
|
@@ -2461,7 +2461,7 @@ function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
})));
|
|
2463
2463
|
}
|
|
2464
|
-
var $1e7465a8ffa97f6c$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>"],
|
|
2464
|
+
var $1e7465a8ffa97f6c$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>"],
|
|
2465
2465
|
$1e7465a8ffa97f6c$var$_tmpl$2 = ["<div", ' class="slider"><div class="progress" style="', '"></div></div>'],
|
|
2466
2466
|
$1e7465a8ffa97f6c$var$_tmpl$3 = ["<div", ' class="range-group"><input', ' type="range"', ' step="any"><input', ' type="range"', ' step="any"></div>'];
|
|
2467
2467
|
function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
@@ -2560,7 +2560,8 @@ function $1e7465a8ffa97f6c$var$RangeSelector(_ref3) {
|
|
|
2560
2560
|
min_: min_,
|
|
2561
2561
|
current_range_: current_range_,
|
|
2562
2562
|
i18n_: i18n_,
|
|
2563
|
-
should_be_disabled_: should_be_disabled_
|
|
2563
|
+
should_be_disabled_: should_be_disabled_,
|
|
2564
|
+
priceFormatting_: price_formatting_
|
|
2564
2565
|
})), $b8hua$escape(pre_price()), $b8hua$escape($b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
2565
2566
|
get price_() {
|
|
2566
2567
|
return min_();
|
|
@@ -2583,7 +2584,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref4) {
|
|
|
2583
2584
|
min_: min_,
|
|
2584
2585
|
i18n_: i18n_,
|
|
2585
2586
|
max_: max_,
|
|
2586
|
-
should_be_disabled_: should_be_disabled_
|
|
2587
|
+
should_be_disabled_: should_be_disabled_,
|
|
2588
|
+
priceFormatting_: priceFormatting_
|
|
2587
2589
|
} = _ref4;
|
|
2588
2590
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
2589
2591
|
const transform_linear_to_nonlinear = _ref5 => {
|
|
@@ -2620,7 +2622,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref4) {
|
|
|
2620
2622
|
max_: modified_max,
|
|
2621
2623
|
offset_value_calculator_: offset_value_calculator_,
|
|
2622
2624
|
i18n_: i18n_,
|
|
2623
|
-
should_be_disabled_: should_be_disabled_
|
|
2625
|
+
should_be_disabled_: should_be_disabled_,
|
|
2626
|
+
priceFormatting_: priceFormatting_
|
|
2624
2627
|
});
|
|
2625
2628
|
}
|
|
2626
2629
|
function $1e7465a8ffa97f6c$var$LinearSlider(_ref6) {
|
|
@@ -2630,12 +2633,17 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref6) {
|
|
|
2630
2633
|
current_range_: current_range_,
|
|
2631
2634
|
offset_value_calculator_: offset_value_calculator_,
|
|
2632
2635
|
i18n_: i18n_,
|
|
2633
|
-
should_be_disabled_: should_be_disabled_
|
|
2636
|
+
should_be_disabled_: should_be_disabled_,
|
|
2637
|
+
priceFormatting_: priceFormatting_
|
|
2634
2638
|
} = _ref6;
|
|
2635
2639
|
let range_input_1;
|
|
2636
2640
|
let range_input_2;
|
|
2637
2641
|
let clickable_slider;
|
|
2638
2642
|
const [get_current_range, set_current_range] = current_range_;
|
|
2643
|
+
const formatRealPrice = value => {
|
|
2644
|
+
const priceFormatting = priceFormatting_();
|
|
2645
|
+
return priceFormatting.pre_ + $b8hua$standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
2646
|
+
};
|
|
2639
2647
|
const progress_styling = $b8hua$createMemo(() => {
|
|
2640
2648
|
const min = min_();
|
|
2641
2649
|
const span = max_() - min;
|
|
@@ -2654,13 +2662,13 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref6) {
|
|
|
2654
2662
|
el.value = get_current_range()[index];
|
|
2655
2663
|
});
|
|
2656
2664
|
};
|
|
2657
|
-
return [$b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle(progress_styling())), $b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true), $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false) + $b8hua$ssrAttribute("value", $b8hua$escape($b8hua$createMemo(() => {
|
|
2665
|
+
return [$b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle(progress_styling())), $b8hua$ssr($1e7465a8ffa97f6c$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true), $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_low_point_aria_label_(), true), false) + $b8hua$ssrAttribute("aria-valuetext", $b8hua$escape(formatRealPrice(get_current_range()[0]), true), false) + $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false) + $b8hua$ssrAttribute("value", $b8hua$escape($b8hua$createMemo(() => {
|
|
2658
2666
|
min_();
|
|
2659
2667
|
max_();
|
|
2660
2668
|
return get_current_range()[0];
|
|
2661
2669
|
}, undefined, {
|
|
2662
2670
|
equals: false
|
|
2663
|
-
})(), true), false), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true) + $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_high_point_aria_label_(), true), false), $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false))];
|
|
2671
|
+
})(), true), false), $b8hua$ssrAttribute("disabled", should_be_disabled_(), true) + $b8hua$ssrAttribute("aria-label", $b8hua$escape(i18n_.range_filter_high_point_aria_label_(), true), false) + $b8hua$ssrAttribute("aria-valuetext", $b8hua$escape(formatRealPrice(get_current_range()[1]), true), false), $b8hua$ssrAttribute("min", $b8hua$escape(min_(), true), false) + $b8hua$ssrAttribute("max", $b8hua$escape(max_(), true), false))];
|
|
2664
2672
|
}
|
|
2665
2673
|
function $1e7465a8ffa97f6c$var$set_range_with_sanitation(min_, max_, current_range_signal, index, target_el) {
|
|
2666
2674
|
let get_offset_value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : (value, how_many) => value + how_many;
|
|
@@ -3528,6 +3536,13 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
|
|
|
3528
3536
|
const label = $b8hua$createMemo(() => value().name_ || value().value_ + "");
|
|
3529
3537
|
const count_zero = $b8hua$createMemo(() => value().count_ === 0);
|
|
3530
3538
|
return $b8hua$ssrElement("button", $b8hua$mergeProps1(attributes, {
|
|
3539
|
+
type: "button",
|
|
3540
|
+
get ["aria-pressed"]() {
|
|
3541
|
+
return is_selected();
|
|
3542
|
+
},
|
|
3543
|
+
get ["aria-label"]() {
|
|
3544
|
+
return value().count_ != undefined ? "".concat(label(), ", ").concat(value().count_) : label();
|
|
3545
|
+
},
|
|
3531
3546
|
get disabled() {
|
|
3532
3547
|
return count_zero() && !is_selected();
|
|
3533
3548
|
},
|
|
@@ -3706,7 +3721,14 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
|
3706
3721
|
return !!(data !== null && data !== void 0 && data.some(item => $af5d8e0b7d97a7f6$export$325f75597868c4f0(item) === value));
|
|
3707
3722
|
});
|
|
3708
3723
|
const value = $b8hua$createMemo(() => checkbox().value_);
|
|
3709
|
-
const label_text = $b8hua$createMemo(() =>
|
|
3724
|
+
const label_text = $b8hua$createMemo(() => {
|
|
3725
|
+
const name = checkbox().name_;
|
|
3726
|
+
if (name) return name;
|
|
3727
|
+
const value_string = value() + "";
|
|
3728
|
+
if (backendFilterV2()) return value_string;
|
|
3729
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
3730
|
+
return value_string.split(";")[0] || value_string;
|
|
3731
|
+
});
|
|
3710
3732
|
const count = $b8hua$createMemo(() => checkbox().count_);
|
|
3711
3733
|
const colorNameDatasetValue = $b8hua$createMemo(() => {
|
|
3712
3734
|
var _split2;
|
|
@@ -4134,9 +4156,9 @@ function $e354b2f9ce33cb75$var$find_str_arr_in_str_arr_arr(operation, haystack,
|
|
|
4134
4156
|
var $f6b0500577e1b210$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "</div>"],
|
|
4135
4157
|
$f6b0500577e1b210$var$_tmpl$2 = ["<button", ' class="clear-group"><!--$-->', "<!--/--><span>", "</span></button>"],
|
|
4136
4158
|
$f6b0500577e1b210$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
4137
|
-
$f6b0500577e1b210$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><
|
|
4159
|
+
$f6b0500577e1b210$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><fieldset class="filter-part"', "><!--$-->", "<!--/--><!--$-->", "<!--/--></fieldset><!--$-->", "<!--/--></div>"],
|
|
4138
4160
|
$f6b0500577e1b210$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
|
|
4139
|
-
$f6b0500577e1b210$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span
|
|
4161
|
+
$f6b0500577e1b210$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span', ">", '</span><div class="selected-w-sign"><!--$-->', "<!--/--><!--$-->", "<!--/--></div></div></summary>"],
|
|
4140
4162
|
$f6b0500577e1b210$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
|
|
4141
4163
|
$f6b0500577e1b210$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
|
|
4142
4164
|
function $f6b0500577e1b210$export$3f1a388cc0d8fed7(props) {
|
|
@@ -4233,13 +4255,14 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
4233
4255
|
var _get_details_width;
|
|
4234
4256
|
return get_details_width === null || get_details_width === void 0 ? void 0 : (_get_details_width = get_details_width()) === null || _get_details_width === void 0 ? void 0 : _get_details_width();
|
|
4235
4257
|
});
|
|
4258
|
+
const title_id = $b8hua$make_random_classname();
|
|
4236
4259
|
return $b8hua$createComponent((0, $ad371564683947ab$export$6c6d7a51fa9aa15d), {
|
|
4237
4260
|
is_open_: is_open,
|
|
4238
4261
|
get details_() {
|
|
4239
4262
|
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$5, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("data-group-title", $b8hua$escape(section_, true), false));
|
|
4240
4263
|
},
|
|
4241
4264
|
get summary_() {
|
|
4242
|
-
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$6, $b8hua$ssrHydrationKey(), $b8hua$escape(section_), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
4265
|
+
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$6, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("id", $b8hua$escape(title_id, true), false), $b8hua$escape(section_), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
4243
4266
|
get when() {
|
|
4244
4267
|
return a_filter_is_selected();
|
|
4245
4268
|
},
|
|
@@ -4261,7 +4284,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
4261
4284
|
})));
|
|
4262
4285
|
},
|
|
4263
4286
|
get children() {
|
|
4264
|
-
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(SearchThisFilterGroup_, {})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
4287
|
+
return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("aria-labelledby", $b8hua$escape(title_id, true), false), $b8hua$escape($b8hua$createComponent(SearchThisFilterGroup_, {})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
4265
4288
|
get each() {
|
|
4266
4289
|
return searched_filter_array_();
|
|
4267
4290
|
},
|
|
@@ -6481,7 +6504,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
|
|
|
6481
6504
|
})));
|
|
6482
6505
|
return container;
|
|
6483
6506
|
}
|
|
6484
|
-
const $98688279b9059f50$var$
|
|
6507
|
+
const $98688279b9059f50$var$defaultCustomUrls = (url, width) => {
|
|
6485
6508
|
var _url$startsWith;
|
|
6486
6509
|
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
6487
6510
|
// 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,
|
|
@@ -6491,18 +6514,23 @@ const $98688279b9059f50$var$customUrls = (url, width) => {
|
|
|
6491
6514
|
return "https://app.depict.ai/cdn-cgi/image/width=".concat(width, ",format=auto/").concat(url);
|
|
6492
6515
|
};
|
|
6493
6516
|
function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
6517
|
+
var _props$imageResizer_;
|
|
6518
|
+
const resolvedCustomUrls = (_props$imageResizer_ = props.imageResizer_) !== null && _props$imageResizer_ !== void 0 ? _props$imageResizer_ : $98688279b9059f50$var$defaultCustomUrls;
|
|
6494
6519
|
return $b8hua$createComponent((0, $4df489344a0f97c7$export$e4b984597b71e989), $b8hua$mergeProps1(props, {
|
|
6495
6520
|
get imgProps() {
|
|
6496
6521
|
return {
|
|
6497
6522
|
...props.imgProps,
|
|
6498
|
-
customUrls:
|
|
6523
|
+
customUrls: resolvedCustomUrls
|
|
6499
6524
|
};
|
|
6500
6525
|
}
|
|
6501
6526
|
}));
|
|
6502
6527
|
}
|
|
6503
6528
|
function $98688279b9059f50$export$140423fa4bfb6d63(props) {
|
|
6504
6529
|
return $b8hua$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), $b8hua$mergeProps1(props, {
|
|
6505
|
-
customUrls
|
|
6530
|
+
get customUrls() {
|
|
6531
|
+
var _props$imageResizer_2;
|
|
6532
|
+
return (_props$imageResizer_2 = props.imageResizer_) !== null && _props$imageResizer_2 !== void 0 ? _props$imageResizer_2 : $98688279b9059f50$var$defaultCustomUrls;
|
|
6533
|
+
}
|
|
6506
6534
|
}));
|
|
6507
6535
|
}
|
|
6508
6536
|
var $3b772ef9a35560fe$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
|
|
@@ -6513,7 +6541,8 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6513
6541
|
router_: router_,
|
|
6514
6542
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
6515
6543
|
mediaUrl_: mediaUrl_,
|
|
6516
|
-
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
6544
|
+
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
6545
|
+
imageResizer_: imageResizer_
|
|
6517
6546
|
} = _ref;
|
|
6518
6547
|
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
|
|
6519
6548
|
const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
|
|
@@ -6567,7 +6596,8 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6567
6596
|
},
|
|
6568
6597
|
src: mediaUrl_,
|
|
6569
6598
|
"class": "d-standard-content",
|
|
6570
|
-
onDecoded: () => setHasLoaded(true)
|
|
6599
|
+
onDecoded: () => setHasLoaded(true),
|
|
6600
|
+
imageResizer_: imageResizer_
|
|
6571
6601
|
});
|
|
6572
6602
|
}
|
|
6573
6603
|
}), $b8hua$createComponent((0, $b8hua$Match), {
|
|
@@ -6581,7 +6611,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6581
6611
|
}
|
|
6582
6612
|
}));
|
|
6583
6613
|
}
|
|
6584
|
-
function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_) {
|
|
6614
|
+
function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
6585
6615
|
let hasSeenContentBlock = false;
|
|
6586
6616
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
6587
6617
|
const contentComponents = new Map();
|
|
@@ -6637,7 +6667,8 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6637
6667
|
...prev.aspectRatios,
|
|
6638
6668
|
[componentCacheKey]: Math.round(aspectRatio * 100) / 100
|
|
6639
6669
|
}
|
|
6640
|
-
}))
|
|
6670
|
+
})),
|
|
6671
|
+
imageResizer_: imageResizer_
|
|
6641
6672
|
});
|
|
6642
6673
|
contentComponents.set(componentCacheKey, component);
|
|
6643
6674
|
}
|
|
@@ -6702,7 +6733,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
6702
6733
|
filterModalParent_: filterModalParent_,
|
|
6703
6734
|
showSliderArrow_: showSliderArrow_,
|
|
6704
6735
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
6705
|
-
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
6736
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
6737
|
+
imageResizer_: imageResizer_
|
|
6706
6738
|
} = _ref;
|
|
6707
6739
|
let results_for;
|
|
6708
6740
|
let only_show_filters_opener_;
|
|
@@ -6798,7 +6830,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
6798
6830
|
setMetaRequestsForQuery(prev => prev.set(query.id_type_ + query.id_to_query_for_, listing));
|
|
6799
6831
|
return result;
|
|
6800
6832
|
}));
|
|
6801
|
-
const contentBlocksByRow = $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading);
|
|
6833
|
+
const contentBlocksByRow = $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading, imageResizer_);
|
|
6802
6834
|
const countOfProductsForUI = $0728458b46ee9d32$export$a86bc18439445599(plp_products_, all_products_loaded_, currentlyLoadedDisplays);
|
|
6803
6835
|
const available_sortings_ = $b8hua$createMemo(() => {
|
|
6804
6836
|
var _plp_products_, _plp_products_$sorts;
|
|
@@ -7343,7 +7375,8 @@ function $f84b097e079b0a33$export$b73ed90f0ee50dc3(_ref) {
|
|
|
7343
7375
|
outerRef_: outerRef_,
|
|
7344
7376
|
animationDuration_: animationDuration_,
|
|
7345
7377
|
priceFormatting_: priceFormatting_,
|
|
7346
|
-
pseudoRouter_: pseudoRouter_
|
|
7378
|
+
pseudoRouter_: pseudoRouter_,
|
|
7379
|
+
imageResizer_: imageResizer_
|
|
7347
7380
|
} = _ref;
|
|
7348
7381
|
const variantToUse = $b8hua$createMemo(() => {
|
|
7349
7382
|
const display = display_();
|
|
@@ -7409,7 +7442,8 @@ function $f84b097e079b0a33$export$b73ed90f0ee50dc3(_ref) {
|
|
|
7409
7442
|
},
|
|
7410
7443
|
imgProps: {
|
|
7411
7444
|
keyRatioUpdating: true
|
|
7412
|
-
}
|
|
7445
|
+
},
|
|
7446
|
+
imageResizer_: imageResizer_
|
|
7413
7447
|
});
|
|
7414
7448
|
}
|
|
7415
7449
|
})));
|
|
@@ -7562,7 +7596,8 @@ function $275d06a183ca0a29$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
7562
7596
|
supportsHover_: supportsHover_,
|
|
7563
7597
|
priceFormatting_: priceFormatting_,
|
|
7564
7598
|
pseudoRouter_: pseudoRouter_,
|
|
7565
|
-
containerHeight_: containerHeight_
|
|
7599
|
+
containerHeight_: containerHeight_,
|
|
7600
|
+
imageResizer_: imageResizer_
|
|
7566
7601
|
} = _ref;
|
|
7567
7602
|
let isAffectedByChromeBug = false;
|
|
7568
7603
|
// If the user requests the drawer to be expanded or not
|
|
@@ -7598,6 +7633,7 @@ function $275d06a183ca0a29$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
7598
7633
|
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
7599
7634
|
textFadeInAnimationRunning_: textFadeInAnimationRunning,
|
|
7600
7635
|
priceFormatting_: priceFormatting_,
|
|
7636
|
+
imageResizer_: imageResizer_,
|
|
7601
7637
|
outerRef_: el => $b8hua$createEffect(() => {
|
|
7602
7638
|
if (index !== 0) return;
|
|
7603
7639
|
const resizeObserver = new ResizeObserver($b8hua$catchify1(records => setLookItemHeight(records.at(-1).contentRect.height)));
|
|
@@ -7641,7 +7677,8 @@ function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
|
7641
7677
|
placeholderImageAspectRatio_: placeholderImageAspectRatio_,
|
|
7642
7678
|
animationDuration_: animationDuration_,
|
|
7643
7679
|
priceFormatting_: priceFormatting_,
|
|
7644
|
-
pseudoRouter_: pseudoRouter_
|
|
7680
|
+
pseudoRouter_: pseudoRouter_,
|
|
7681
|
+
imageResizer_: imageResizer_
|
|
7645
7682
|
} = _ref;
|
|
7646
7683
|
let container;
|
|
7647
7684
|
const useWantsExpandedSignal_ = $b8hua$createSignal(false);
|
|
@@ -7709,7 +7746,8 @@ function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
|
7709
7746
|
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
7710
7747
|
},
|
|
7711
7748
|
aspectRatio: placeholderImageAspectRatio_,
|
|
7712
|
-
autoAdjustAspectRatio: true
|
|
7749
|
+
autoAdjustAspectRatio: true,
|
|
7750
|
+
imageResizer_: imageResizer_
|
|
7713
7751
|
});
|
|
7714
7752
|
}
|
|
7715
7753
|
})), $b8hua$escape($b8hua$createComponent((0, $275d06a183ca0a29$export$ebf0b1d4f90c09ae), {
|
|
@@ -7724,7 +7762,8 @@ function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
|
7724
7762
|
FavoriteButton_: FavoriteButton_,
|
|
7725
7763
|
priceFormatting_: priceFormatting_,
|
|
7726
7764
|
pseudoRouter_: pseudoRouter_,
|
|
7727
|
-
containerHeight_: containerHeight_
|
|
7765
|
+
containerHeight_: containerHeight_,
|
|
7766
|
+
imageResizer_: imageResizer_
|
|
7728
7767
|
})));
|
|
7729
7768
|
}
|
|
7730
7769
|
|
|
@@ -7999,7 +8038,8 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
7999
8038
|
animationDuration_: expandingAnimationDuration,
|
|
8000
8039
|
expandedLooksSignal_: $bb34cd283e904784$var$expandedLooksSignal_,
|
|
8001
8040
|
priceFormatting_: () => props.priceFormatting_,
|
|
8002
|
-
pseudoRouter_: pseudoRouter
|
|
8041
|
+
pseudoRouter_: pseudoRouter,
|
|
8042
|
+
imageResizer_: props.imageResizer_
|
|
8003
8043
|
}),
|
|
8004
8044
|
recommendations_resource_: looksResource,
|
|
8005
8045
|
title_: () => props.title_,
|
|
@@ -9486,7 +9526,8 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
9486
9526
|
merchant_: merchant_,
|
|
9487
9527
|
keyboardNavigationGroupIndex_: keyboardNavigationGroupIndex_,
|
|
9488
9528
|
index_: index_,
|
|
9489
|
-
selected_index_: [read_selected_index_, write_selected_index_]
|
|
9529
|
+
selected_index_: [read_selected_index_, write_selected_index_],
|
|
9530
|
+
imageResizer_: imageResizer_
|
|
9490
9531
|
} = _ref;
|
|
9491
9532
|
const href = $b8hua$createMemo(() => {
|
|
9492
9533
|
var _listing_;
|
|
@@ -9515,7 +9556,8 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
9515
9556
|
tabIndex: -1,
|
|
9516
9557
|
get children() {
|
|
9517
9558
|
return $b8hua$ssr($26db6925469636a4$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
|
|
9518
|
-
image_urls_: image_urls
|
|
9559
|
+
image_urls_: image_urls,
|
|
9560
|
+
imageResizer_: imageResizer_
|
|
9519
9561
|
})));
|
|
9520
9562
|
}
|
|
9521
9563
|
})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
@@ -9545,7 +9587,8 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
9545
9587
|
}
|
|
9546
9588
|
function $26db6925469636a4$export$ea41102db9bd68c3(_ref2) {
|
|
9547
9589
|
let {
|
|
9548
|
-
image_urls_: image_urls_
|
|
9590
|
+
image_urls_: image_urls_,
|
|
9591
|
+
imageResizer_: imageResizer_
|
|
9549
9592
|
} = _ref2;
|
|
9550
9593
|
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
9551
9594
|
get when() {
|
|
@@ -9569,7 +9612,8 @@ function $26db6925469636a4$export$ea41102db9bd68c3(_ref2) {
|
|
|
9569
9612
|
},
|
|
9570
9613
|
imgProps: {
|
|
9571
9614
|
style: "object-fit: cover;"
|
|
9572
|
-
}
|
|
9615
|
+
},
|
|
9616
|
+
imageResizer_: imageResizer_
|
|
9573
9617
|
})
|
|
9574
9618
|
});
|
|
9575
9619
|
}
|
|
@@ -9594,7 +9638,8 @@ function $ab401afaded322ab$export$c8d7e00464029b45(_ref) {
|
|
|
9594
9638
|
selected_index_: selected_index_,
|
|
9595
9639
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
9596
9640
|
showPlaceholders_: showPlaceholders_,
|
|
9597
|
-
currently_showing_suggestions_: [, set_currently_showing_suggestions]
|
|
9641
|
+
currently_showing_suggestions_: [, set_currently_showing_suggestions],
|
|
9642
|
+
imageResizer_: imageResizer_
|
|
9598
9643
|
} = _ref;
|
|
9599
9644
|
const listings_by_id = $b8hua$createMemo(() => Object.fromEntries((listing_suggestions_() || []).map(listing => [listing.listing_id, listing])));
|
|
9600
9645
|
const productCards = $b8hua$createComponent((0, $b8hua$For), {
|
|
@@ -9612,7 +9657,8 @@ function $ab401afaded322ab$export$c8d7e00464029b45(_ref) {
|
|
|
9612
9657
|
merchant_: merchant_,
|
|
9613
9658
|
keyboardNavigationGroupIndex_: itemIndex_,
|
|
9614
9659
|
index_: index,
|
|
9615
|
-
selected_index_: selected_index_
|
|
9660
|
+
selected_index_: selected_index_,
|
|
9661
|
+
imageResizer_: imageResizer_
|
|
9616
9662
|
});
|
|
9617
9663
|
}
|
|
9618
9664
|
});
|
|
@@ -9932,7 +9978,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
9932
9978
|
sorting_query_param_: sorting_query_param_,
|
|
9933
9979
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
9934
9980
|
setSearchFieldOuterWidth_: setSearchFieldOuterWidth_,
|
|
9935
|
-
forceUseDiv_: forceUseDiv_
|
|
9981
|
+
forceUseDiv_: forceUseDiv_,
|
|
9982
|
+
imageResizer_: imageResizer_
|
|
9936
9983
|
} = _ref;
|
|
9937
9984
|
let on_enter_in_search_field_function;
|
|
9938
9985
|
let listingSuggestionsDebounceTimeout;
|
|
@@ -10145,7 +10192,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
10145
10192
|
},
|
|
10146
10193
|
imgProps: {
|
|
10147
10194
|
alt: "Product image"
|
|
10148
|
-
}
|
|
10195
|
+
},
|
|
10196
|
+
imageResizer_: imageResizer_
|
|
10149
10197
|
}),
|
|
10150
10198
|
...instant_results_options_
|
|
10151
10199
|
})));
|
|
@@ -10174,7 +10222,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
10174
10222
|
selected_index_: selected_index_,
|
|
10175
10223
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
10176
10224
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
10177
|
-
showPlaceholders_: () => !suggestions_response_.latest
|
|
10225
|
+
showPlaceholders_: () => !suggestions_response_.latest,
|
|
10226
|
+
imageResizer_: imageResizer_
|
|
10178
10227
|
});
|
|
10179
10228
|
}
|
|
10180
10229
|
});
|
|
@@ -13125,6 +13174,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
13125
13174
|
display_transformers: display_transformers,
|
|
13126
13175
|
api: api,
|
|
13127
13176
|
searchModalComponent: searchModalComponent,
|
|
13177
|
+
imageResizer_: imageResizer_,
|
|
13128
13178
|
// Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
13129
13179
|
disable_scrolling_during_modal = true,
|
|
13130
13180
|
bottom_distance_under_modal: bottom_distance_under_modal,
|
|
@@ -13288,6 +13338,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
13288
13338
|
},
|
|
13289
13339
|
i18n_: i18n_,
|
|
13290
13340
|
enable_category_suggestions_: enable_category_suggestions,
|
|
13341
|
+
imageResizer_: imageResizer_,
|
|
13291
13342
|
disable_scrolling_: disable_scrolling_during_modal,
|
|
13292
13343
|
bottom_distance_under_modal_: bottom_distance_under_modal
|
|
13293
13344
|
}, override_modal_element);
|
|
@@ -14189,7 +14240,8 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
14189
14240
|
product_card_template_: product_card_template,
|
|
14190
14241
|
sorting_query_param_: sorting_query_param_,
|
|
14191
14242
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14192
|
-
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
14243
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
14244
|
+
imageResizer_: props.imageResizer_
|
|
14193
14245
|
});
|
|
14194
14246
|
}, "Entire CategoryPage failed");
|
|
14195
14247
|
}
|