@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/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.13";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $8tj43$createSignal(false);
|
|
16
16
|
$8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
|
|
@@ -2733,7 +2733,16 @@ function $3e850b2f2cca761f$export$ca21a16d65b3dd8(_ref) {
|
|
|
2733
2733
|
var _c$ = $8tj43$memo(() => !!get_show_extras());
|
|
2734
2734
|
return () => _c$() ? i18n_.view_less_() : i18n_.view_more_();
|
|
2735
2735
|
})());
|
|
2736
|
-
$8tj43$effect(
|
|
2736
|
+
$8tj43$effect(_p$ => {
|
|
2737
|
+
var _v$ = get_show_extras(),
|
|
2738
|
+
_v$2 = !!get_show_extras();
|
|
2739
|
+
_v$ !== _p$.e && $8tj43$setAttribute(_el$, "aria-expanded", _p$.e = _v$);
|
|
2740
|
+
_v$2 !== _p$.t && _el$.classList.toggle("expanded", _p$.t = _v$2);
|
|
2741
|
+
return _p$;
|
|
2742
|
+
}, {
|
|
2743
|
+
e: undefined,
|
|
2744
|
+
t: undefined
|
|
2745
|
+
});
|
|
2737
2746
|
$8tj43$runHydrationEvents();
|
|
2738
2747
|
return _el$;
|
|
2739
2748
|
})();
|
|
@@ -3076,7 +3085,7 @@ function $b54fc842e721c9eb$export$430444115f70a734(_ref) {
|
|
|
3076
3085
|
return _el$;
|
|
3077
3086
|
})();
|
|
3078
3087
|
}
|
|
3079
|
-
var $1e7465a8ffa97f6c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=range><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><!$><!/><!$><!/><!$><!/>`),
|
|
3088
|
+
var $1e7465a8ffa97f6c$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=range><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><!$><!/><!$><!/><!$><!/>`),
|
|
3080
3089
|
$1e7465a8ffa97f6c$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=slider><div class=progress>`),
|
|
3081
3090
|
$1e7465a8ffa97f6c$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=range-group><input type=range step=any><input type=range step=any>`);
|
|
3082
3091
|
function $1e7465a8ffa97f6c$export$e0d834a0ad870cda(_ref) {
|
|
@@ -3218,7 +3227,8 @@ function $1e7465a8ffa97f6c$var$RangeSelector(_ref3) {
|
|
|
3218
3227
|
min_: min_,
|
|
3219
3228
|
current_range_: current_range_,
|
|
3220
3229
|
i18n_: i18n_,
|
|
3221
|
-
should_be_disabled_: should_be_disabled_
|
|
3230
|
+
should_be_disabled_: should_be_disabled_,
|
|
3231
|
+
priceFormatting_: price_formatting_
|
|
3222
3232
|
}), _el$24, _co$7);
|
|
3223
3233
|
$8tj43$insert(_el$9, pre_price, _el$11, _co$);
|
|
3224
3234
|
$8tj43$insert(_el$9, $8tj43$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
@@ -3283,7 +3293,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref6) {
|
|
|
3283
3293
|
min_: min_,
|
|
3284
3294
|
i18n_: i18n_,
|
|
3285
3295
|
max_: max_,
|
|
3286
|
-
should_be_disabled_: should_be_disabled_
|
|
3296
|
+
should_be_disabled_: should_be_disabled_,
|
|
3297
|
+
priceFormatting_: priceFormatting_
|
|
3287
3298
|
} = _ref6;
|
|
3288
3299
|
// inspired by https://observablehq.com/@mbostock/nonlinear-slider
|
|
3289
3300
|
const transform_linear_to_nonlinear = _ref7 => {
|
|
@@ -3320,7 +3331,8 @@ function $1e7465a8ffa97f6c$var$ExponentialSlider(_ref6) {
|
|
|
3320
3331
|
max_: modified_max,
|
|
3321
3332
|
offset_value_calculator_: offset_value_calculator_,
|
|
3322
3333
|
i18n_: i18n_,
|
|
3323
|
-
should_be_disabled_: should_be_disabled_
|
|
3334
|
+
should_be_disabled_: should_be_disabled_,
|
|
3335
|
+
priceFormatting_: priceFormatting_
|
|
3324
3336
|
});
|
|
3325
3337
|
}
|
|
3326
3338
|
function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
@@ -3330,12 +3342,17 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
3330
3342
|
current_range_: current_range_,
|
|
3331
3343
|
offset_value_calculator_: offset_value_calculator_,
|
|
3332
3344
|
i18n_: i18n_,
|
|
3333
|
-
should_be_disabled_: should_be_disabled_
|
|
3345
|
+
should_be_disabled_: should_be_disabled_,
|
|
3346
|
+
priceFormatting_: priceFormatting_
|
|
3334
3347
|
} = _ref8;
|
|
3335
3348
|
let range_input_1;
|
|
3336
3349
|
let range_input_2;
|
|
3337
3350
|
let clickable_slider;
|
|
3338
3351
|
const [get_current_range, set_current_range] = current_range_;
|
|
3352
|
+
const formatRealPrice = value => {
|
|
3353
|
+
const priceFormatting = priceFormatting_();
|
|
3354
|
+
return priceFormatting.pre_ + $8tj43$standard_price_format(value, priceFormatting.places_after_comma_, priceFormatting.decimal_places_delimiter_, priceFormatting.thousands_delimiter_) + priceFormatting.post_;
|
|
3355
|
+
};
|
|
3339
3356
|
const progress_styling = $8tj43$createMemo(() => {
|
|
3340
3357
|
const min = min_();
|
|
3341
3358
|
const span = max_() - min;
|
|
@@ -3392,20 +3409,24 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
3392
3409
|
$8tj43$effect(_p$ => {
|
|
3393
3410
|
var _v$10 = should_be_disabled_(),
|
|
3394
3411
|
_v$11 = i18n_.range_filter_low_point_aria_label_(),
|
|
3395
|
-
_v$12 =
|
|
3396
|
-
_v$13 =
|
|
3397
|
-
_v$14 =
|
|
3398
|
-
_v$15 =
|
|
3399
|
-
_v$16 =
|
|
3400
|
-
_v$17 =
|
|
3412
|
+
_v$12 = formatRealPrice(get_current_range()[0]),
|
|
3413
|
+
_v$13 = min_(),
|
|
3414
|
+
_v$14 = max_(),
|
|
3415
|
+
_v$15 = should_be_disabled_(),
|
|
3416
|
+
_v$16 = i18n_.range_filter_high_point_aria_label_(),
|
|
3417
|
+
_v$17 = formatRealPrice(get_current_range()[1]),
|
|
3418
|
+
_v$18 = min_(),
|
|
3419
|
+
_v$19 = max_();
|
|
3401
3420
|
_v$10 !== _p$.e && $8tj43$setProperty(_el$28, "disabled", _p$.e = _v$10);
|
|
3402
3421
|
_v$11 !== _p$.t && $8tj43$setAttribute(_el$28, "aria-label", _p$.t = _v$11);
|
|
3403
|
-
_v$12 !== _p$.a && $8tj43$setAttribute(_el$28, "
|
|
3404
|
-
_v$13 !== _p$.o && $8tj43$setAttribute(_el$28, "
|
|
3405
|
-
_v$14 !== _p$.i && $8tj43$
|
|
3406
|
-
_v$15 !== _p$.n && $8tj43$
|
|
3407
|
-
_v$16 !== _p$.s && $8tj43$setAttribute(_el$29, "
|
|
3408
|
-
_v$17 !== _p$.h && $8tj43$setAttribute(_el$29, "
|
|
3422
|
+
_v$12 !== _p$.a && $8tj43$setAttribute(_el$28, "aria-valuetext", _p$.a = _v$12);
|
|
3423
|
+
_v$13 !== _p$.o && $8tj43$setAttribute(_el$28, "min", _p$.o = _v$13);
|
|
3424
|
+
_v$14 !== _p$.i && $8tj43$setAttribute(_el$28, "max", _p$.i = _v$14);
|
|
3425
|
+
_v$15 !== _p$.n && $8tj43$setProperty(_el$29, "disabled", _p$.n = _v$15);
|
|
3426
|
+
_v$16 !== _p$.s && $8tj43$setAttribute(_el$29, "aria-label", _p$.s = _v$16);
|
|
3427
|
+
_v$17 !== _p$.h && $8tj43$setAttribute(_el$29, "aria-valuetext", _p$.h = _v$17);
|
|
3428
|
+
_v$18 !== _p$.r && $8tj43$setAttribute(_el$29, "min", _p$.r = _v$18);
|
|
3429
|
+
_v$19 !== _p$.d && $8tj43$setAttribute(_el$29, "max", _p$.d = _v$19);
|
|
3409
3430
|
return _p$;
|
|
3410
3431
|
}, {
|
|
3411
3432
|
e: undefined,
|
|
@@ -3415,7 +3436,9 @@ function $1e7465a8ffa97f6c$var$LinearSlider(_ref8) {
|
|
|
3415
3436
|
i: undefined,
|
|
3416
3437
|
n: undefined,
|
|
3417
3438
|
s: undefined,
|
|
3418
|
-
h: undefined
|
|
3439
|
+
h: undefined,
|
|
3440
|
+
r: undefined,
|
|
3441
|
+
d: undefined
|
|
3419
3442
|
});
|
|
3420
3443
|
$8tj43$effect(() => $8tj43$setProperty(_el$28, "value", $8tj43$createMemo(() => {
|
|
3421
3444
|
min_();
|
|
@@ -4374,6 +4397,13 @@ const $830ea8efda59884e$export$414f6a19d38e655c = _ref => {
|
|
|
4374
4397
|
_el$7 = _el$6.nextSibling,
|
|
4375
4398
|
[_el$8, _co$2] = $8tj43$getNextMarker(_el$7.nextSibling);
|
|
4376
4399
|
$8tj43$spread(_el$2, $8tj43$mergeProps1(attributes, {
|
|
4400
|
+
"type": "button",
|
|
4401
|
+
get ["aria-pressed"]() {
|
|
4402
|
+
return is_selected();
|
|
4403
|
+
},
|
|
4404
|
+
get ["aria-label"]() {
|
|
4405
|
+
return $8tj43$memo(() => value().count_ != undefined)() ? "".concat(label(), ", ").concat(value().count_) : label();
|
|
4406
|
+
},
|
|
4377
4407
|
get disabled() {
|
|
4378
4408
|
return $8tj43$memo(() => !!count_zero())() && !is_selected();
|
|
4379
4409
|
},
|
|
@@ -4585,7 +4615,14 @@ function $2cb856c297c53e6c$export$82ed4b28ecb67608(_ref) {
|
|
|
4585
4615
|
return !!(data !== null && data !== void 0 && data.some(item => $af5d8e0b7d97a7f6$export$325f75597868c4f0(item) === value));
|
|
4586
4616
|
});
|
|
4587
4617
|
const value = $8tj43$createMemo(() => checkbox().value_);
|
|
4588
|
-
const label_text = $8tj43$createMemo(() =>
|
|
4618
|
+
const label_text = $8tj43$createMemo(() => {
|
|
4619
|
+
const name = checkbox().name_;
|
|
4620
|
+
if (name) return name;
|
|
4621
|
+
const value_string = value() + "";
|
|
4622
|
+
if (backendFilterV2()) return value_string;
|
|
4623
|
+
// Legacy values are "Name;#hex" - split is used to get the name so that screen readers don't announce the hex code
|
|
4624
|
+
return value_string.split(";")[0] || value_string;
|
|
4625
|
+
});
|
|
4589
4626
|
const count = $8tj43$createMemo(() => checkbox().count_);
|
|
4590
4627
|
const colorNameDatasetValue = $8tj43$createMemo(() => {
|
|
4591
4628
|
var _split2;
|
|
@@ -5080,7 +5117,7 @@ $8tj43$delegateEvents(["input", "click"]);
|
|
|
5080
5117
|
var $f6b0500577e1b210$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible>`),
|
|
5081
5118
|
$f6b0500577e1b210$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button class=clear-group><!$><!/><span>`),
|
|
5082
5119
|
$f6b0500577e1b210$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=view-more-clear><!$><!/><!$><!/>`),
|
|
5083
|
-
$f6b0500577e1b210$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible-body><
|
|
5120
|
+
$f6b0500577e1b210$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=filter-collapsible-body><fieldset class=filter-part><!$><!/><!$><!/></fieldset><!$><!/>`),
|
|
5084
5121
|
$f6b0500577e1b210$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<details class=filter-collapsible>`),
|
|
5085
5122
|
$f6b0500577e1b210$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<summary class=filter-group-summary><div class=summary><span></span><div class=selected-w-sign><!$><!/><!$><!/>`),
|
|
5086
5123
|
$f6b0500577e1b210$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class=ungrouped>`),
|
|
@@ -5183,6 +5220,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
5183
5220
|
var _get_details_width;
|
|
5184
5221
|
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();
|
|
5185
5222
|
});
|
|
5223
|
+
const title_id = $8tj43$make_random_classname();
|
|
5186
5224
|
return $8tj43$createComponent((0, $ad371564683947ab$export$6c6d7a51fa9aa15d), {
|
|
5187
5225
|
is_open_: is_open,
|
|
5188
5226
|
get details_() {
|
|
@@ -5203,6 +5241,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
5203
5241
|
[_el$25, _co$7] = $8tj43$getNextMarker(_el$24.nextSibling),
|
|
5204
5242
|
_el$26 = _el$25.nextSibling,
|
|
5205
5243
|
[_el$27, _co$8] = $8tj43$getNextMarker(_el$26.nextSibling);
|
|
5244
|
+
$8tj43$setAttribute(_el$22, "id", title_id);
|
|
5206
5245
|
$8tj43$insert(_el$22, section_);
|
|
5207
5246
|
$8tj43$insert(_el$23, $8tj43$createComponent((0, $8tj43$Show), {
|
|
5208
5247
|
get when() {
|
|
@@ -5237,6 +5276,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
|
|
|
5237
5276
|
[_el$7, _co$2] = $8tj43$getNextMarker(_el$6.nextSibling),
|
|
5238
5277
|
_el$17 = _el$3.nextSibling,
|
|
5239
5278
|
[_el$18, _co$6] = $8tj43$getNextMarker(_el$17.nextSibling);
|
|
5279
|
+
$8tj43$setAttribute(_el$3, "aria-labelledby", title_id);
|
|
5240
5280
|
$8tj43$insert(_el$3, $8tj43$createComponent(SearchThisFilterGroup_, {}), _el$5, _co$);
|
|
5241
5281
|
$8tj43$insert(_el$3, $8tj43$createComponent((0, $8tj43$Index), {
|
|
5242
5282
|
get each() {
|
|
@@ -7907,7 +7947,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
|
|
|
7907
7947
|
})));
|
|
7908
7948
|
return container;
|
|
7909
7949
|
}
|
|
7910
|
-
const $98688279b9059f50$var$
|
|
7950
|
+
const $98688279b9059f50$var$defaultCustomUrls = (url, width) => {
|
|
7911
7951
|
var _url$startsWith;
|
|
7912
7952
|
if (url !== null && url !== void 0 && (_url$startsWith = url.startsWith) !== null && _url$startsWith !== void 0 && _url$startsWith.call(url, "https://cdn.shopify.com"))
|
|
7913
7953
|
// 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,
|
|
@@ -7917,18 +7957,23 @@ const $98688279b9059f50$var$customUrls = (url, width) => {
|
|
|
7917
7957
|
return "https://app.depict.ai/cdn-cgi/image/width=".concat(width, ",format=auto/").concat(url);
|
|
7918
7958
|
};
|
|
7919
7959
|
function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
7960
|
+
var _props$imageResizer_;
|
|
7961
|
+
const resolvedCustomUrls = (_props$imageResizer_ = props.imageResizer_) !== null && _props$imageResizer_ !== void 0 ? _props$imageResizer_ : $98688279b9059f50$var$defaultCustomUrls;
|
|
7920
7962
|
return $8tj43$createComponent((0, $4df489344a0f97c7$export$e4b984597b71e989), $8tj43$mergeProps1(props, {
|
|
7921
7963
|
get imgProps() {
|
|
7922
7964
|
return {
|
|
7923
7965
|
...props.imgProps,
|
|
7924
|
-
customUrls:
|
|
7966
|
+
customUrls: resolvedCustomUrls
|
|
7925
7967
|
};
|
|
7926
7968
|
}
|
|
7927
7969
|
}));
|
|
7928
7970
|
}
|
|
7929
7971
|
function $98688279b9059f50$export$140423fa4bfb6d63(props) {
|
|
7930
7972
|
return $8tj43$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), $8tj43$mergeProps1(props, {
|
|
7931
|
-
customUrls
|
|
7973
|
+
get customUrls() {
|
|
7974
|
+
var _props$imageResizer_2;
|
|
7975
|
+
return (_props$imageResizer_2 = props.imageResizer_) !== null && _props$imageResizer_2 !== void 0 ? _props$imageResizer_2 : $98688279b9059f50$var$defaultCustomUrls;
|
|
7976
|
+
}
|
|
7932
7977
|
}));
|
|
7933
7978
|
}
|
|
7934
7979
|
let $e92c154db502596d$var$cachedHlsModule;
|
|
@@ -7954,7 +7999,8 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
7954
7999
|
router_: router_,
|
|
7955
8000
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
7956
8001
|
mediaUrl_: mediaUrl_,
|
|
7957
|
-
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
8002
|
+
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
8003
|
+
imageResizer_: imageResizer_
|
|
7958
8004
|
} = _ref;
|
|
7959
8005
|
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
|
|
7960
8006
|
const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
|
|
@@ -8010,7 +8056,8 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8010
8056
|
src: mediaUrl_,
|
|
8011
8057
|
"class": "d-standard-content",
|
|
8012
8058
|
onDecoded: () => setHasLoaded(true),
|
|
8013
|
-
ref: el => el.addEventListener("load", $8tj43$catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
|
|
8059
|
+
ref: el => el.addEventListener("load", $8tj43$catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight))),
|
|
8060
|
+
imageResizer_: imageResizer_
|
|
8014
8061
|
});
|
|
8015
8062
|
}
|
|
8016
8063
|
}), $8tj43$createComponent((0, $8tj43$Match), {
|
|
@@ -8061,7 +8108,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8061
8108
|
}
|
|
8062
8109
|
}));
|
|
8063
8110
|
}
|
|
8064
|
-
function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_) {
|
|
8111
|
+
function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
8065
8112
|
let hasSeenContentBlock = false;
|
|
8066
8113
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
8067
8114
|
const contentComponents = new Map();
|
|
@@ -8117,7 +8164,8 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8117
8164
|
...prev.aspectRatios,
|
|
8118
8165
|
[componentCacheKey]: Math.round(aspectRatio * 100) / 100
|
|
8119
8166
|
}
|
|
8120
|
-
}))
|
|
8167
|
+
})),
|
|
8168
|
+
imageResizer_: imageResizer_
|
|
8121
8169
|
});
|
|
8122
8170
|
contentComponents.set(componentCacheKey, component);
|
|
8123
8171
|
}
|
|
@@ -8182,7 +8230,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
8182
8230
|
filterModalParent_: filterModalParent_,
|
|
8183
8231
|
showSliderArrow_: showSliderArrow_,
|
|
8184
8232
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
8185
|
-
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
8233
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
8234
|
+
imageResizer_: imageResizer_
|
|
8186
8235
|
} = _ref;
|
|
8187
8236
|
let results_for;
|
|
8188
8237
|
let only_show_filters_opener_;
|
|
@@ -8278,7 +8327,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
8278
8327
|
setMetaRequestsForQuery(prev => prev.set(query.id_type_ + query.id_to_query_for_, listing));
|
|
8279
8328
|
return result;
|
|
8280
8329
|
}));
|
|
8281
|
-
const contentBlocksByRow = $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading);
|
|
8330
|
+
const contentBlocksByRow = $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading, imageResizer_);
|
|
8282
8331
|
const countOfProductsForUI = $0728458b46ee9d32$export$a86bc18439445599(plp_products_, all_products_loaded_, currentlyLoadedDisplays);
|
|
8283
8332
|
const available_sortings_ = $8tj43$createMemo(() => {
|
|
8284
8333
|
var _plp_products_, _plp_products_$sorts;
|
|
@@ -8864,7 +8913,8 @@ function $f84b097e079b0a33$export$b73ed90f0ee50dc3(_ref) {
|
|
|
8864
8913
|
outerRef_: outerRef_,
|
|
8865
8914
|
animationDuration_: animationDuration_,
|
|
8866
8915
|
priceFormatting_: priceFormatting_,
|
|
8867
|
-
pseudoRouter_: pseudoRouter_
|
|
8916
|
+
pseudoRouter_: pseudoRouter_,
|
|
8917
|
+
imageResizer_: imageResizer_
|
|
8868
8918
|
} = _ref;
|
|
8869
8919
|
const variantToUse = $8tj43$createMemo(() => {
|
|
8870
8920
|
const display = display_();
|
|
@@ -8953,7 +9003,8 @@ function $f84b097e079b0a33$export$b73ed90f0ee50dc3(_ref) {
|
|
|
8953
9003
|
},
|
|
8954
9004
|
imgProps: {
|
|
8955
9005
|
keyRatioUpdating: true
|
|
8956
|
-
}
|
|
9006
|
+
},
|
|
9007
|
+
imageResizer_: imageResizer_
|
|
8957
9008
|
});
|
|
8958
9009
|
}
|
|
8959
9010
|
}));
|
|
@@ -9159,7 +9210,8 @@ function $275d06a183ca0a29$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
9159
9210
|
supportsHover_: supportsHover_,
|
|
9160
9211
|
priceFormatting_: priceFormatting_,
|
|
9161
9212
|
pseudoRouter_: pseudoRouter_,
|
|
9162
|
-
containerHeight_: containerHeight_
|
|
9213
|
+
containerHeight_: containerHeight_,
|
|
9214
|
+
imageResizer_: imageResizer_
|
|
9163
9215
|
} = _ref;
|
|
9164
9216
|
let isAffectedByChromeBug = false;
|
|
9165
9217
|
// If the user requests the drawer to be expanded or not
|
|
@@ -9227,6 +9279,7 @@ function $275d06a183ca0a29$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
9227
9279
|
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
9228
9280
|
textFadeInAnimationRunning_: textFadeInAnimationRunning,
|
|
9229
9281
|
priceFormatting_: priceFormatting_,
|
|
9282
|
+
imageResizer_: imageResizer_,
|
|
9230
9283
|
outerRef_: el => $8tj43$createEffect(() => {
|
|
9231
9284
|
if (index !== 0) return;
|
|
9232
9285
|
const resizeObserver = new ResizeObserver($8tj43$catchify1(records => setLookItemHeight(records.at(-1).contentRect.height)));
|
|
@@ -9286,7 +9339,8 @@ function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
|
9286
9339
|
placeholderImageAspectRatio_: placeholderImageAspectRatio_,
|
|
9287
9340
|
animationDuration_: animationDuration_,
|
|
9288
9341
|
priceFormatting_: priceFormatting_,
|
|
9289
|
-
pseudoRouter_: pseudoRouter_
|
|
9342
|
+
pseudoRouter_: pseudoRouter_,
|
|
9343
|
+
imageResizer_: imageResizer_
|
|
9290
9344
|
} = _ref;
|
|
9291
9345
|
let container;
|
|
9292
9346
|
const useWantsExpandedSignal_ = $8tj43$createSignal(false);
|
|
@@ -9376,7 +9430,8 @@ function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
|
9376
9430
|
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];
|
|
9377
9431
|
},
|
|
9378
9432
|
aspectRatio: placeholderImageAspectRatio_,
|
|
9379
|
-
autoAdjustAspectRatio: true
|
|
9433
|
+
autoAdjustAspectRatio: true,
|
|
9434
|
+
imageResizer_: imageResizer_
|
|
9380
9435
|
});
|
|
9381
9436
|
}
|
|
9382
9437
|
}), _el$3, _co$);
|
|
@@ -9392,7 +9447,8 @@ function $22dd375b476673e2$export$44809a8a3e867e30(_ref) {
|
|
|
9392
9447
|
FavoriteButton_: FavoriteButton_,
|
|
9393
9448
|
priceFormatting_: priceFormatting_,
|
|
9394
9449
|
pseudoRouter_: pseudoRouter_,
|
|
9395
|
-
containerHeight_: containerHeight_
|
|
9450
|
+
containerHeight_: containerHeight_,
|
|
9451
|
+
imageResizer_: imageResizer_
|
|
9396
9452
|
}), _el$5, _co$2);
|
|
9397
9453
|
$8tj43$effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
9398
9454
|
$8tj43$runHydrationEvents();
|
|
@@ -9677,7 +9733,8 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
9677
9733
|
animationDuration_: expandingAnimationDuration,
|
|
9678
9734
|
expandedLooksSignal_: $bb34cd283e904784$var$expandedLooksSignal_,
|
|
9679
9735
|
priceFormatting_: () => props.priceFormatting_,
|
|
9680
|
-
pseudoRouter_: pseudoRouter
|
|
9736
|
+
pseudoRouter_: pseudoRouter,
|
|
9737
|
+
imageResizer_: props.imageResizer_
|
|
9681
9738
|
}),
|
|
9682
9739
|
recommendations_resource_: looksResource,
|
|
9683
9740
|
title_: () => props.title_,
|
|
@@ -11652,7 +11709,8 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
11652
11709
|
merchant_: merchant_,
|
|
11653
11710
|
keyboardNavigationGroupIndex_: keyboardNavigationGroupIndex_,
|
|
11654
11711
|
index_: index_,
|
|
11655
|
-
selected_index_: [read_selected_index_, write_selected_index_]
|
|
11712
|
+
selected_index_: [read_selected_index_, write_selected_index_],
|
|
11713
|
+
imageResizer_: imageResizer_
|
|
11656
11714
|
} = _ref;
|
|
11657
11715
|
const href = $8tj43$createMemo(() => {
|
|
11658
11716
|
var _listing_;
|
|
@@ -11719,7 +11777,8 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
11719
11777
|
get children() {
|
|
11720
11778
|
var _el$3 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$2);
|
|
11721
11779
|
$8tj43$insert(_el$3, $8tj43$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
|
|
11722
|
-
image_urls_: image_urls
|
|
11780
|
+
image_urls_: image_urls,
|
|
11781
|
+
imageResizer_: imageResizer_
|
|
11723
11782
|
}));
|
|
11724
11783
|
return _el$3;
|
|
11725
11784
|
}
|
|
@@ -11765,7 +11824,8 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
11765
11824
|
}
|
|
11766
11825
|
function $26db6925469636a4$export$ea41102db9bd68c3(_ref3) {
|
|
11767
11826
|
let {
|
|
11768
|
-
image_urls_: image_urls_
|
|
11827
|
+
image_urls_: image_urls_,
|
|
11828
|
+
imageResizer_: imageResizer_
|
|
11769
11829
|
} = _ref3;
|
|
11770
11830
|
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
11771
11831
|
get when() {
|
|
@@ -11789,7 +11849,8 @@ function $26db6925469636a4$export$ea41102db9bd68c3(_ref3) {
|
|
|
11789
11849
|
},
|
|
11790
11850
|
imgProps: {
|
|
11791
11851
|
style: "object-fit: cover;"
|
|
11792
|
-
}
|
|
11852
|
+
},
|
|
11853
|
+
imageResizer_: imageResizer_
|
|
11793
11854
|
})
|
|
11794
11855
|
});
|
|
11795
11856
|
}
|
|
@@ -11820,7 +11881,8 @@ function $ab401afaded322ab$export$c8d7e00464029b45(_ref) {
|
|
|
11820
11881
|
selected_index_: selected_index_,
|
|
11821
11882
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
11822
11883
|
showPlaceholders_: showPlaceholders_,
|
|
11823
|
-
currently_showing_suggestions_: [, set_currently_showing_suggestions]
|
|
11884
|
+
currently_showing_suggestions_: [, set_currently_showing_suggestions],
|
|
11885
|
+
imageResizer_: imageResizer_
|
|
11824
11886
|
} = _ref;
|
|
11825
11887
|
const listings_by_id = $8tj43$createMemo(() => Object.fromEntries((listing_suggestions_() || []).map(listing => [listing.listing_id, listing])));
|
|
11826
11888
|
const productCards = $8tj43$createComponent((0, $8tj43$For), {
|
|
@@ -11838,7 +11900,8 @@ function $ab401afaded322ab$export$c8d7e00464029b45(_ref) {
|
|
|
11838
11900
|
merchant_: merchant_,
|
|
11839
11901
|
keyboardNavigationGroupIndex_: itemIndex_,
|
|
11840
11902
|
index_: index,
|
|
11841
|
-
selected_index_: selected_index_
|
|
11903
|
+
selected_index_: selected_index_,
|
|
11904
|
+
imageResizer_: imageResizer_
|
|
11842
11905
|
});
|
|
11843
11906
|
}
|
|
11844
11907
|
});
|
|
@@ -12231,7 +12294,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12231
12294
|
sorting_query_param_: sorting_query_param_,
|
|
12232
12295
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12233
12296
|
setSearchFieldOuterWidth_: setSearchFieldOuterWidth_,
|
|
12234
|
-
forceUseDiv_: forceUseDiv_
|
|
12297
|
+
forceUseDiv_: forceUseDiv_,
|
|
12298
|
+
imageResizer_: imageResizer_
|
|
12235
12299
|
} = _ref;
|
|
12236
12300
|
let on_enter_in_search_field_function;
|
|
12237
12301
|
let listingSuggestionsDebounceTimeout;
|
|
@@ -12449,7 +12513,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12449
12513
|
},
|
|
12450
12514
|
imgProps: {
|
|
12451
12515
|
alt: "Product image"
|
|
12452
|
-
}
|
|
12516
|
+
},
|
|
12517
|
+
imageResizer_: imageResizer_
|
|
12453
12518
|
}),
|
|
12454
12519
|
...instant_results_options_
|
|
12455
12520
|
}), _el$4, _co$);
|
|
@@ -12480,7 +12545,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12480
12545
|
selected_index_: selected_index_,
|
|
12481
12546
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
12482
12547
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
12483
|
-
showPlaceholders_: () => !suggestions_response_.latest
|
|
12548
|
+
showPlaceholders_: () => !suggestions_response_.latest,
|
|
12549
|
+
imageResizer_: imageResizer_
|
|
12484
12550
|
});
|
|
12485
12551
|
}
|
|
12486
12552
|
});
|
|
@@ -15853,6 +15919,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
15853
15919
|
display_transformers: display_transformers,
|
|
15854
15920
|
api: api,
|
|
15855
15921
|
searchModalComponent: searchModalComponent,
|
|
15922
|
+
imageResizer_: imageResizer_,
|
|
15856
15923
|
// Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
15857
15924
|
disable_scrolling_during_modal = true,
|
|
15858
15925
|
bottom_distance_under_modal: bottom_distance_under_modal,
|
|
@@ -16016,6 +16083,7 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
|
|
|
16016
16083
|
},
|
|
16017
16084
|
i18n_: i18n_,
|
|
16018
16085
|
enable_category_suggestions_: enable_category_suggestions,
|
|
16086
|
+
imageResizer_: imageResizer_,
|
|
16019
16087
|
disable_scrolling_: disable_scrolling_during_modal,
|
|
16020
16088
|
bottom_distance_under_modal_: bottom_distance_under_modal
|
|
16021
16089
|
}, override_modal_element);
|
|
@@ -16926,7 +16994,8 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
16926
16994
|
product_card_template_: product_card_template,
|
|
16927
16995
|
sorting_query_param_: sorting_query_param_,
|
|
16928
16996
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16929
|
-
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
16997
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
16998
|
+
imageResizer_: props.imageResizer_
|
|
16930
16999
|
});
|
|
16931
17000
|
}, "Entire CategoryPage failed");
|
|
16932
17001
|
}
|