@depict-ai/ui 4.0.20 → 4.0.22

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 CHANGED
@@ -95,7 +95,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
95
95
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
96
96
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
97
97
  /*! Depict.ai search and product listing SDK */
98
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.20";
98
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.22";
99
99
 
100
100
  /**
101
101
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1692,7 +1692,7 @@ let $c95c6dd9e93acd82$export$44dad306455dddf;
1692
1692
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1693
1693
  })($c95c6dd9e93acd82$export$44dad306455dddf || ($c95c6dd9e93acd82$export$44dad306455dddf = {}));
1694
1694
  var $29e5dbeb69da7a36$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=back type=button>`),
1695
- $29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1695
+ $29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-field role=search><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1696
1696
  function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
1697
1697
  let {
1698
1698
  search_field_value_: search_field_value_,
@@ -2521,13 +2521,10 @@ var $ce467edb5343cfcd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div
2521
2521
  function $ce467edb5343cfcd$export$94026ee33dbabc26(props) {
2522
2522
  return (() => {
2523
2523
  var _el$ = $52FdA$solidjsweb.getNextElement($ce467edb5343cfcd$var$_tmpl$);
2524
- $52FdA$solidjsweb.classList(_el$, {
2525
- ["s-image-container"]: true
2526
- });
2527
2524
  $52FdA$solidjsweb.insert(_el$, () => props.children);
2528
2525
  $52FdA$solidjsweb.effect(_p$ => {
2529
2526
  var _v$ = "padding-bottom:calc(calc(1 / ".concat(props.aspectRatio, ") * 100%)"),
2530
- _v$2 = props.class;
2527
+ _v$2 = "s-image-container" + (props.class ? " " + props.class : "");
2531
2528
  _p$.e = $52FdA$solidjsweb.style(_el$, _v$, _p$.e);
2532
2529
  _v$2 !== _p$.t && $52FdA$solidjsweb.className(_el$, _p$.t = _v$2);
2533
2530
  return _p$;
@@ -2819,8 +2816,9 @@ function $317500f39819fba6$export$9ca09caa9c849d9c() {
2819
2816
  return $52FdA$solidjsweb.getNextElement($317500f39819fba6$var$_tmpl$);
2820
2817
  }
2821
2818
  var $d1e7b96fb13cd1d3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a>`),
2822
- $d1e7b96fb13cd1d3$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2823
- $d1e7b96fb13cd1d3$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=empty-image>`);
2819
+ $d1e7b96fb13cd1d3$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=images-wrapper>`),
2820
+ $d1e7b96fb13cd1d3$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2821
+ $d1e7b96fb13cd1d3$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=empty-image>`);
2824
2822
  const $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent = 400;
2825
2823
  const $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent = 200;
2826
2824
  const $d1e7b96fb13cd1d3$var$listingSuggestionCollageAspectRatio = $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent / $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent;
@@ -2842,26 +2840,22 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2842
2840
  }); // <- 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
2843
2841
  const LinkToListing = props => (() => {
2844
2842
  var _el$ = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$);
2845
- $52FdA$solidjsweb.addEventListener(_el$, "click", $52FdA$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2846
- new_url_: href(),
2847
- is_replace_: false,
2848
- event_: ev,
2849
- listing_query_: {
2850
- id: listing_().listing_id,
2851
- type: $c3739e86187f2054$export$74ee7529ce0f8a00
2843
+ $52FdA$solidjsweb.spread(_el$, $52FdA$solidjsweb.mergeProps(props, {
2844
+ get href() {
2845
+ return href();
2846
+ },
2847
+ get onClick() {
2848
+ return $52FdA$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2849
+ new_url_: href(),
2850
+ is_replace_: false,
2851
+ event_: ev,
2852
+ listing_query_: {
2853
+ id: listing_().listing_id,
2854
+ type: $c3739e86187f2054$export$74ee7529ce0f8a00
2855
+ }
2856
+ }));
2852
2857
  }
2853
- })), true);
2854
- $52FdA$solidjsweb.insert(_el$, () => props.children);
2855
- $52FdA$solidjsweb.effect(_p$ => {
2856
- var _v$ = props.tabIndex_,
2857
- _v$2 = href();
2858
- _v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$, "tabindex", _p$.e = _v$);
2859
- _v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$, "href", _p$.t = _v$2);
2860
- return _p$;
2861
- }, {
2862
- e: undefined,
2863
- t: undefined
2864
- });
2858
+ }), false, false);
2865
2859
  $52FdA$solidjsweb.runHydrationEvents();
2866
2860
  return _el$;
2867
2861
  })();
@@ -2875,11 +2869,12 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2875
2869
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2876
2870
  });
2877
2871
  return (() => {
2878
- var _el$2 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$2),
2879
- _el$3 = _el$2.firstChild,
2880
- _el$5 = _el$3.nextSibling,
2872
+ var _el$2 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$3),
2873
+ _el$5 = _el$2.firstChild,
2881
2874
  [_el$6, _co$] = $52FdA$solidjsweb.getNextMarker(_el$5.nextSibling),
2882
- _el$4 = _el$6.nextSibling;
2875
+ _el$7 = _el$6.nextSibling,
2876
+ [_el$8, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$7.nextSibling),
2877
+ _el$4 = _el$8.nextSibling;
2883
2878
  $52FdA$solidjsweb.use(element => $b0f8d9f49e018db9$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2884
2879
  $52FdA$solidjsweb.addEventListener(_el$2, "mouseleave", $52FdA$depictaiutilishared.catchify(() => write_selected_index_()));
2885
2880
  $52FdA$solidjsweb.addEventListener(_el$2, "mouseover", $52FdA$depictaiutilishared.catchify(_ref2 => {
@@ -2894,15 +2889,22 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2894
2889
  }
2895
2890
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2896
2891
  }), true);
2897
- $52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(LinkToListing, {
2898
- tabIndex_: -1,
2892
+ $52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent(LinkToListing, {
2893
+ "class": "image-part",
2894
+ get style() {
2895
+ var _image_urls$length, _image_urls;
2896
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2897
+ },
2898
+ tabIndex: -1,
2899
2899
  get children() {
2900
- return $52FdA$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2900
+ var _el$3 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$2);
2901
+ $52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2901
2902
  image_urls_: image_urls,
2902
2903
  merchant_: merchant_
2903
- });
2904
+ }));
2905
+ return _el$3;
2904
2906
  }
2905
- }));
2907
+ }), _el$6, _co$);
2906
2908
  $52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
2907
2909
  get when() {
2908
2910
  var _crumbData;
@@ -2918,7 +2920,7 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2918
2920
  placeholderData_: [,,]
2919
2921
  });
2920
2922
  }
2921
- }), _el$6, _co$);
2923
+ }), _el$8, _co$2);
2922
2924
  $52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent(LinkToListing, {
2923
2925
  get children() {
2924
2926
  var _listing_4;
@@ -2928,17 +2930,7 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2928
2930
  });
2929
2931
  }
2930
2932
  }));
2931
- $52FdA$solidjsweb.effect(_p$ => {
2932
- var _image_urls$length, _image_urls;
2933
- var _v$3 = !!isSelected(),
2934
- _v$4 = "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2935
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2936
- _p$.t = $52FdA$solidjsweb.style(_el$3, _v$4, _p$.t);
2937
- return _p$;
2938
- }, {
2939
- e: undefined,
2940
- t: undefined
2941
- });
2933
+ $52FdA$solidjsweb.effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2942
2934
  $52FdA$solidjsweb.runHydrationEvents();
2943
2935
  return _el$2;
2944
2936
  })();
@@ -2983,13 +2975,13 @@ function $d1e7b96fb13cd1d3$export$ea41102db9bd68c3(_ref3) {
2983
2975
  }
2984
2976
  function $d1e7b96fb13cd1d3$var$EmptyImage() {
2985
2977
  return (() => {
2986
- var _el$7 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$3);
2987
- _el$7.style.setProperty("aspect-ratio", "2");
2988
- $52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $317500f39819fba6$export$9ca09caa9c849d9c), {}));
2989
- return _el$7;
2978
+ var _el$9 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$4);
2979
+ _el$9.style.setProperty("aspect-ratio", "2");
2980
+ $52FdA$solidjsweb.insert(_el$9, $52FdA$solidjsweb.createComponent((0, $317500f39819fba6$export$9ca09caa9c849d9c), {}));
2981
+ return _el$9;
2990
2982
  })();
2991
2983
  }
2992
- $52FdA$solidjsweb.delegateEvents(["click", "mouseover"]);
2984
+ $52FdA$solidjsweb.delegateEvents(["mouseover"]);
2993
2985
  var $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2994
2986
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
2995
2987
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
package/ES10/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.20";
13
+ export const version = "4.0.22";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.20";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.22";
14
14
 
15
15
  /**
16
16
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1607,7 +1607,7 @@ let $c3820807ac1e6fd7$export$44dad306455dddf;
1607
1607
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1608
1608
  })($c3820807ac1e6fd7$export$44dad306455dddf || ($c3820807ac1e6fd7$export$44dad306455dddf = {}));
1609
1609
  var $584c06c09cf4609d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class=back type=button>`),
1610
- $584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1610
+ $584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=search-field role=search><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1611
1611
  function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
1612
1612
  let {
1613
1613
  search_field_value_: search_field_value_,
@@ -2436,13 +2436,10 @@ var $801e8845d3fa3653$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
2436
2436
  function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
2437
2437
  return (() => {
2438
2438
  var _el$ = $8tj43$getNextElement($801e8845d3fa3653$var$_tmpl$);
2439
- $8tj43$classList(_el$, {
2440
- ["s-image-container"]: true
2441
- });
2442
2439
  $8tj43$insert(_el$, () => props.children);
2443
2440
  $8tj43$effect(_p$ => {
2444
2441
  var _v$ = "padding-bottom:calc(calc(1 / ".concat(props.aspectRatio, ") * 100%)"),
2445
- _v$2 = props.class;
2442
+ _v$2 = "s-image-container" + (props.class ? " " + props.class : "");
2446
2443
  _p$.e = $8tj43$style(_el$, _v$, _p$.e);
2447
2444
  _v$2 !== _p$.t && $8tj43$className(_el$, _p$.t = _v$2);
2448
2445
  return _p$;
@@ -2734,8 +2731,9 @@ function $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c() {
2734
2731
  return $8tj43$getNextElement($4a3ed70b3b7c60d5$var$_tmpl$);
2735
2732
  }
2736
2733
  var $26db6925469636a4$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a>`),
2737
- $26db6925469636a4$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2738
- $26db6925469636a4$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=empty-image>`);
2734
+ $26db6925469636a4$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=images-wrapper>`),
2735
+ $26db6925469636a4$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2736
+ $26db6925469636a4$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=empty-image>`);
2739
2737
  const $26db6925469636a4$var$aspectRatioWidthComponent = 400;
2740
2738
  const $26db6925469636a4$var$aspectRatioHeightComponent = 200;
2741
2739
  const $26db6925469636a4$var$listingSuggestionCollageAspectRatio = $26db6925469636a4$var$aspectRatioWidthComponent / $26db6925469636a4$var$aspectRatioHeightComponent;
@@ -2757,26 +2755,22 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2757
2755
  }); // <- 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
2758
2756
  const LinkToListing = props => (() => {
2759
2757
  var _el$ = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$);
2760
- $8tj43$addEventListener(_el$, "click", $8tj43$catchify(ev => href() && router_.navigate_.go_to_({
2761
- new_url_: href(),
2762
- is_replace_: false,
2763
- event_: ev,
2764
- listing_query_: {
2765
- id: listing_().listing_id,
2766
- type: $397620a4d7958ed1$export$74ee7529ce0f8a00
2758
+ $8tj43$spread(_el$, $8tj43$mergeProps(props, {
2759
+ get href() {
2760
+ return href();
2761
+ },
2762
+ get onClick() {
2763
+ return $8tj43$catchify(ev => href() && router_.navigate_.go_to_({
2764
+ new_url_: href(),
2765
+ is_replace_: false,
2766
+ event_: ev,
2767
+ listing_query_: {
2768
+ id: listing_().listing_id,
2769
+ type: $397620a4d7958ed1$export$74ee7529ce0f8a00
2770
+ }
2771
+ }));
2767
2772
  }
2768
- })), true);
2769
- $8tj43$insert(_el$, () => props.children);
2770
- $8tj43$effect(_p$ => {
2771
- var _v$ = props.tabIndex_,
2772
- _v$2 = href();
2773
- _v$ !== _p$.e && $8tj43$setAttribute(_el$, "tabindex", _p$.e = _v$);
2774
- _v$2 !== _p$.t && $8tj43$setAttribute(_el$, "href", _p$.t = _v$2);
2775
- return _p$;
2776
- }, {
2777
- e: undefined,
2778
- t: undefined
2779
- });
2773
+ }), false, false);
2780
2774
  $8tj43$runHydrationEvents();
2781
2775
  return _el$;
2782
2776
  })();
@@ -2790,11 +2784,12 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2790
2784
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2791
2785
  });
2792
2786
  return (() => {
2793
- var _el$2 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$2),
2794
- _el$3 = _el$2.firstChild,
2795
- _el$5 = _el$3.nextSibling,
2787
+ var _el$2 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$3),
2788
+ _el$5 = _el$2.firstChild,
2796
2789
  [_el$6, _co$] = $8tj43$getNextMarker(_el$5.nextSibling),
2797
- _el$4 = _el$6.nextSibling;
2790
+ _el$7 = _el$6.nextSibling,
2791
+ [_el$8, _co$2] = $8tj43$getNextMarker(_el$7.nextSibling),
2792
+ _el$4 = _el$8.nextSibling;
2798
2793
  $8tj43$use(element => $d0883254246d3eb6$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2799
2794
  $8tj43$addEventListener(_el$2, "mouseleave", $8tj43$catchify(() => write_selected_index_()));
2800
2795
  $8tj43$addEventListener(_el$2, "mouseover", $8tj43$catchify(_ref2 => {
@@ -2809,15 +2804,22 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2809
2804
  }
2810
2805
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2811
2806
  }), true);
2812
- $8tj43$insert(_el$3, $8tj43$createComponent(LinkToListing, {
2813
- tabIndex_: -1,
2807
+ $8tj43$insert(_el$2, $8tj43$createComponent(LinkToListing, {
2808
+ "class": "image-part",
2809
+ get style() {
2810
+ var _image_urls$length, _image_urls;
2811
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2812
+ },
2813
+ tabIndex: -1,
2814
2814
  get children() {
2815
- return $8tj43$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2815
+ var _el$3 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$2);
2816
+ $8tj43$insert(_el$3, $8tj43$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2816
2817
  image_urls_: image_urls,
2817
2818
  merchant_: merchant_
2818
- });
2819
+ }));
2820
+ return _el$3;
2819
2821
  }
2820
- }));
2822
+ }), _el$6, _co$);
2821
2823
  $8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
2822
2824
  get when() {
2823
2825
  var _crumbData;
@@ -2833,7 +2835,7 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2833
2835
  placeholderData_: [,,]
2834
2836
  });
2835
2837
  }
2836
- }), _el$6, _co$);
2838
+ }), _el$8, _co$2);
2837
2839
  $8tj43$insert(_el$4, $8tj43$createComponent(LinkToListing, {
2838
2840
  get children() {
2839
2841
  var _listing_4;
@@ -2843,17 +2845,7 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2843
2845
  });
2844
2846
  }
2845
2847
  }));
2846
- $8tj43$effect(_p$ => {
2847
- var _image_urls$length, _image_urls;
2848
- var _v$3 = !!isSelected(),
2849
- _v$4 = "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2850
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2851
- _p$.t = $8tj43$style(_el$3, _v$4, _p$.t);
2852
- return _p$;
2853
- }, {
2854
- e: undefined,
2855
- t: undefined
2856
- });
2848
+ $8tj43$effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2857
2849
  $8tj43$runHydrationEvents();
2858
2850
  return _el$2;
2859
2851
  })();
@@ -2898,13 +2890,13 @@ function $26db6925469636a4$export$ea41102db9bd68c3(_ref3) {
2898
2890
  }
2899
2891
  function $26db6925469636a4$var$EmptyImage() {
2900
2892
  return (() => {
2901
- var _el$7 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$3);
2902
- _el$7.style.setProperty("aspect-ratio", "2");
2903
- $8tj43$insert(_el$7, $8tj43$createComponent((0, $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c), {}));
2904
- return _el$7;
2893
+ var _el$9 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$4);
2894
+ _el$9.style.setProperty("aspect-ratio", "2");
2895
+ $8tj43$insert(_el$9, $8tj43$createComponent((0, $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c), {}));
2896
+ return _el$9;
2905
2897
  })();
2906
2898
  }
2907
- $8tj43$delegateEvents(["click", "mouseover"]);
2899
+ $8tj43$delegateEvents(["mouseover"]);
2908
2900
  var $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2909
2901
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
2910
2902
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
package/latest/index.cjs CHANGED
@@ -89,7 +89,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
89
89
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
90
90
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
91
91
  /*! Depict.ai search and product listing SDK */
92
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.20";
92
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.22";
93
93
 
94
94
  /**
95
95
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1611,7 +1611,7 @@ let $0b6e2070a98de347$export$44dad306455dddf;
1611
1611
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1612
1612
  })($0b6e2070a98de347$export$44dad306455dddf || ($0b6e2070a98de347$export$44dad306455dddf = {}));
1613
1613
  var $66b8b9a9613c141d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button class=back type=button>`),
1614
- $66b8b9a9613c141d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1614
+ $66b8b9a9613c141d$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=search-field role=search><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1615
1615
  function $66b8b9a9613c141d$export$b94867ecbd698f21({
1616
1616
  search_field_value_: search_field_value_,
1617
1617
  input_field_ref_: input_field_ref_,
@@ -2414,13 +2414,10 @@ var $93304d59a9747aa6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
2414
2414
  function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
2415
2415
  return (() => {
2416
2416
  var _el$ = $gVhhF$solidjsweb.getNextElement($93304d59a9747aa6$var$_tmpl$);
2417
- $gVhhF$solidjsweb.classList(_el$, {
2418
- ["s-image-container"]: true
2419
- });
2420
2417
  $gVhhF$solidjsweb.insert(_el$, () => props.children);
2421
2418
  $gVhhF$solidjsweb.effect(_p$ => {
2422
2419
  var _v$ = `padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`,
2423
- _v$2 = props.class;
2420
+ _v$2 = "s-image-container" + (props.class ? " " + props.class : "");
2424
2421
  _p$.e = $gVhhF$solidjsweb.style(_el$, _v$, _p$.e);
2425
2422
  _v$2 !== _p$.t && $gVhhF$solidjsweb.className(_el$, _p$.t = _v$2);
2426
2423
  return _p$;
@@ -2703,8 +2700,9 @@ function $3a1c4fee88fb8672$export$9ca09caa9c849d9c() {
2703
2700
  return $gVhhF$solidjsweb.getNextElement($3a1c4fee88fb8672$var$_tmpl$);
2704
2701
  }
2705
2702
  var $1f3b5fa875714dea$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a>`),
2706
- $1f3b5fa875714dea$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2707
- $1f3b5fa875714dea$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=empty-image>`);
2703
+ $1f3b5fa875714dea$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=images-wrapper>`),
2704
+ $1f3b5fa875714dea$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2705
+ $1f3b5fa875714dea$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=empty-image>`);
2708
2706
  const $1f3b5fa875714dea$var$aspectRatioWidthComponent = 400;
2709
2707
  const $1f3b5fa875714dea$var$aspectRatioHeightComponent = 200;
2710
2708
  const $1f3b5fa875714dea$var$listingSuggestionCollageAspectRatio = $1f3b5fa875714dea$var$aspectRatioWidthComponent / $1f3b5fa875714dea$var$aspectRatioHeightComponent;
@@ -2722,26 +2720,22 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2722
2720
  const href = $gVhhF$solidjs.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
2723
2721
  const LinkToListing = props => (() => {
2724
2722
  var _el$ = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$);
2725
- $gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2726
- new_url_: href(),
2727
- is_replace_: false,
2728
- event_: ev,
2729
- listing_query_: {
2730
- id: listing_().listing_id,
2731
- type: $779741d0f266ea8c$export$74ee7529ce0f8a00
2723
+ $gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(props, {
2724
+ get href() {
2725
+ return href();
2726
+ },
2727
+ get onClick() {
2728
+ return $gVhhF$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2729
+ new_url_: href(),
2730
+ is_replace_: false,
2731
+ event_: ev,
2732
+ listing_query_: {
2733
+ id: listing_().listing_id,
2734
+ type: $779741d0f266ea8c$export$74ee7529ce0f8a00
2735
+ }
2736
+ }));
2732
2737
  }
2733
- })), true);
2734
- $gVhhF$solidjsweb.insert(_el$, () => props.children);
2735
- $gVhhF$solidjsweb.effect(_p$ => {
2736
- var _v$ = props.tabIndex_,
2737
- _v$2 = href();
2738
- _v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "tabindex", _p$.e = _v$);
2739
- _v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "href", _p$.t = _v$2);
2740
- return _p$;
2741
- }, {
2742
- e: undefined,
2743
- t: undefined
2744
- });
2738
+ }), false, false);
2745
2739
  $gVhhF$solidjsweb.runHydrationEvents();
2746
2740
  return _el$;
2747
2741
  })();
@@ -2749,11 +2743,12 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2749
2743
  const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2750
2744
  const crumbData = $gVhhF$solidjs.createMemo(() => listing_()?.ancestors);
2751
2745
  return (() => {
2752
- var _el$2 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$2),
2753
- _el$3 = _el$2.firstChild,
2754
- _el$5 = _el$3.nextSibling,
2746
+ var _el$2 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$3),
2747
+ _el$5 = _el$2.firstChild,
2755
2748
  [_el$6, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling),
2756
- _el$4 = _el$6.nextSibling;
2749
+ _el$7 = _el$6.nextSibling,
2750
+ [_el$8, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling),
2751
+ _el$4 = _el$8.nextSibling;
2757
2752
  $gVhhF$solidjsweb.use(element => $f144ea315d9e4caa$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2758
2753
  $gVhhF$solidjsweb.addEventListener(_el$2, "mouseleave", $gVhhF$depictaiutilishared.catchify(() => write_selected_index_()));
2759
2754
  $gVhhF$solidjsweb.addEventListener(_el$2, "mouseover", $gVhhF$depictaiutilishared.catchify(({
@@ -2767,15 +2762,21 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2767
2762
  }
2768
2763
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2769
2764
  }), true);
2770
- $gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(LinkToListing, {
2771
- tabIndex_: -1,
2765
+ $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent(LinkToListing, {
2766
+ "class": "image-part",
2767
+ get style() {
2768
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2769
+ },
2770
+ tabIndex: -1,
2772
2771
  get children() {
2773
- return $gVhhF$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2772
+ var _el$3 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$2);
2773
+ $gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2774
2774
  image_urls_: image_urls,
2775
2775
  merchant_: merchant_
2776
- });
2776
+ }));
2777
+ return _el$3;
2777
2778
  }
2778
- }));
2779
+ }), _el$6, _co$);
2779
2780
  $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
2780
2781
  get when() {
2781
2782
  return crumbData()?.length !== 0;
@@ -2790,7 +2791,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2790
2791
  placeholderData_: [,,]
2791
2792
  });
2792
2793
  }
2793
- }), _el$6, _co$);
2794
+ }), _el$8, _co$2);
2794
2795
  $gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent(LinkToListing, {
2795
2796
  get children() {
2796
2797
  return listing_()?.title || $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
@@ -2799,16 +2800,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2799
2800
  });
2800
2801
  }
2801
2802
  }));
2802
- $gVhhF$solidjsweb.effect(_p$ => {
2803
- var _v$3 = !!isSelected(),
2804
- _v$4 = `--image-count: ${image_urls()?.length ?? 0}`;
2805
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2806
- _p$.t = $gVhhF$solidjsweb.style(_el$3, _v$4, _p$.t);
2807
- return _p$;
2808
- }, {
2809
- e: undefined,
2810
- t: undefined
2811
- });
2803
+ $gVhhF$solidjsweb.effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2812
2804
  $gVhhF$solidjsweb.runHydrationEvents();
2813
2805
  return _el$2;
2814
2806
  })();
@@ -2851,13 +2843,13 @@ function $1f3b5fa875714dea$export$ea41102db9bd68c3({
2851
2843
  }
2852
2844
  function $1f3b5fa875714dea$var$EmptyImage() {
2853
2845
  return (() => {
2854
- var _el$7 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$3);
2855
- _el$7.style.setProperty("aspect-ratio", "2");
2856
- $gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $3a1c4fee88fb8672$export$9ca09caa9c849d9c), {}));
2857
- return _el$7;
2846
+ var _el$9 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$4);
2847
+ _el$9.style.setProperty("aspect-ratio", "2");
2848
+ $gVhhF$solidjsweb.insert(_el$9, $gVhhF$solidjsweb.createComponent((0, $3a1c4fee88fb8672$export$9ca09caa9c849d9c), {}));
2849
+ return _el$9;
2858
2850
  })();
2859
2851
  }
2860
- $gVhhF$solidjsweb.delegateEvents(["click", "mouseover"]);
2852
+ $gVhhF$solidjsweb.delegateEvents(["mouseover"]);
2861
2853
  var $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2862
2854
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
2863
2855
  return (() => {
package/latest/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.20";
13
+ export const version = "4.0.22";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$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.0.20";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.22";
11
11
 
12
12
  /**
13
13
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1529,7 +1529,7 @@ let $f86ba724282f6690$export$44dad306455dddf;
1529
1529
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1530
1530
  })($f86ba724282f6690$export$44dad306455dddf || ($f86ba724282f6690$export$44dad306455dddf = {}));
1531
1531
  var $5285d2814d0fac0c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class=back type=button>`),
1532
- $5285d2814d0fac0c$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=search-field><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1532
+ $5285d2814d0fac0c$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=search-field role=search><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
1533
1533
  function $5285d2814d0fac0c$export$b94867ecbd698f21({
1534
1534
  search_field_value_: search_field_value_,
1535
1535
  input_field_ref_: input_field_ref_,
@@ -2332,13 +2332,10 @@ var $f18d425032111270$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
2332
2332
  function $f18d425032111270$export$94026ee33dbabc26(props) {
2333
2333
  return (() => {
2334
2334
  var _el$ = $9HbP8$getNextElement($f18d425032111270$var$_tmpl$);
2335
- $9HbP8$classList(_el$, {
2336
- ["s-image-container"]: true
2337
- });
2338
2335
  $9HbP8$insert(_el$, () => props.children);
2339
2336
  $9HbP8$effect(_p$ => {
2340
2337
  var _v$ = `padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`,
2341
- _v$2 = props.class;
2338
+ _v$2 = "s-image-container" + (props.class ? " " + props.class : "");
2342
2339
  _p$.e = $9HbP8$style(_el$, _v$, _p$.e);
2343
2340
  _v$2 !== _p$.t && $9HbP8$className(_el$, _p$.t = _v$2);
2344
2341
  return _p$;
@@ -2621,8 +2618,9 @@ function $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c() {
2621
2618
  return $9HbP8$getNextElement($0eb1f9e7ee46f1c2$var$_tmpl$);
2622
2619
  }
2623
2620
  var $4ce5b8892775b62d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a>`),
2624
- $4ce5b8892775b62d$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2625
- $4ce5b8892775b62d$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=empty-image>`);
2621
+ $4ce5b8892775b62d$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=images-wrapper>`),
2622
+ $4ce5b8892775b62d$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2623
+ $4ce5b8892775b62d$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=empty-image>`);
2626
2624
  const $4ce5b8892775b62d$var$aspectRatioWidthComponent = 400;
2627
2625
  const $4ce5b8892775b62d$var$aspectRatioHeightComponent = 200;
2628
2626
  const $4ce5b8892775b62d$var$listingSuggestionCollageAspectRatio = $4ce5b8892775b62d$var$aspectRatioWidthComponent / $4ce5b8892775b62d$var$aspectRatioHeightComponent;
@@ -2640,26 +2638,22 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2640
2638
  const href = $9HbP8$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
2641
2639
  const LinkToListing = props => (() => {
2642
2640
  var _el$ = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$);
2643
- $9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(ev => href() && router_.navigate_.go_to_({
2644
- new_url_: href(),
2645
- is_replace_: false,
2646
- event_: ev,
2647
- listing_query_: {
2648
- id: listing_().listing_id,
2649
- type: $c20599a0d81d953a$export$74ee7529ce0f8a00
2641
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(props, {
2642
+ get href() {
2643
+ return href();
2644
+ },
2645
+ get onClick() {
2646
+ return $9HbP8$catchify(ev => href() && router_.navigate_.go_to_({
2647
+ new_url_: href(),
2648
+ is_replace_: false,
2649
+ event_: ev,
2650
+ listing_query_: {
2651
+ id: listing_().listing_id,
2652
+ type: $c20599a0d81d953a$export$74ee7529ce0f8a00
2653
+ }
2654
+ }));
2650
2655
  }
2651
- })), true);
2652
- $9HbP8$insert(_el$, () => props.children);
2653
- $9HbP8$effect(_p$ => {
2654
- var _v$ = props.tabIndex_,
2655
- _v$2 = href();
2656
- _v$ !== _p$.e && $9HbP8$setAttribute(_el$, "tabindex", _p$.e = _v$);
2657
- _v$2 !== _p$.t && $9HbP8$setAttribute(_el$, "href", _p$.t = _v$2);
2658
- return _p$;
2659
- }, {
2660
- e: undefined,
2661
- t: undefined
2662
- });
2656
+ }), false, false);
2663
2657
  $9HbP8$runHydrationEvents();
2664
2658
  return _el$;
2665
2659
  })();
@@ -2667,11 +2661,12 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2667
2661
  const [isSelected, selectedDueToKeyboardNavigation] = $f4125ce4984deee6$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2668
2662
  const crumbData = $9HbP8$createMemo(() => listing_()?.ancestors);
2669
2663
  return (() => {
2670
- var _el$2 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$2),
2671
- _el$3 = _el$2.firstChild,
2672
- _el$5 = _el$3.nextSibling,
2664
+ var _el$2 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$3),
2665
+ _el$5 = _el$2.firstChild,
2673
2666
  [_el$6, _co$] = $9HbP8$getNextMarker(_el$5.nextSibling),
2674
- _el$4 = _el$6.nextSibling;
2667
+ _el$7 = _el$6.nextSibling,
2668
+ [_el$8, _co$2] = $9HbP8$getNextMarker(_el$7.nextSibling),
2669
+ _el$4 = _el$8.nextSibling;
2675
2670
  $9HbP8$use(element => $f4125ce4984deee6$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2676
2671
  $9HbP8$addEventListener(_el$2, "mouseleave", $9HbP8$catchify(() => write_selected_index_()));
2677
2672
  $9HbP8$addEventListener(_el$2, "mouseover", $9HbP8$catchify(({
@@ -2685,15 +2680,21 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2685
2680
  }
2686
2681
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2687
2682
  }), true);
2688
- $9HbP8$insert(_el$3, $9HbP8$createComponent(LinkToListing, {
2689
- tabIndex_: -1,
2683
+ $9HbP8$insert(_el$2, $9HbP8$createComponent(LinkToListing, {
2684
+ "class": "image-part",
2685
+ get style() {
2686
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2687
+ },
2688
+ tabIndex: -1,
2690
2689
  get children() {
2691
- return $9HbP8$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2690
+ var _el$3 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$2);
2691
+ $9HbP8$insert(_el$3, $9HbP8$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2692
2692
  image_urls_: image_urls,
2693
2693
  merchant_: merchant_
2694
- });
2694
+ }));
2695
+ return _el$3;
2695
2696
  }
2696
- }));
2697
+ }), _el$6, _co$);
2697
2698
  $9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
2698
2699
  get when() {
2699
2700
  return crumbData()?.length !== 0;
@@ -2708,7 +2709,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2708
2709
  placeholderData_: [,,]
2709
2710
  });
2710
2711
  }
2711
- }), _el$6, _co$);
2712
+ }), _el$8, _co$2);
2712
2713
  $9HbP8$insert(_el$4, $9HbP8$createComponent(LinkToListing, {
2713
2714
  get children() {
2714
2715
  return listing_()?.title || $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
@@ -2717,16 +2718,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2717
2718
  });
2718
2719
  }
2719
2720
  }));
2720
- $9HbP8$effect(_p$ => {
2721
- var _v$3 = !!isSelected(),
2722
- _v$4 = `--image-count: ${image_urls()?.length ?? 0}`;
2723
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2724
- _p$.t = $9HbP8$style(_el$3, _v$4, _p$.t);
2725
- return _p$;
2726
- }, {
2727
- e: undefined,
2728
- t: undefined
2729
- });
2721
+ $9HbP8$effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2730
2722
  $9HbP8$runHydrationEvents();
2731
2723
  return _el$2;
2732
2724
  })();
@@ -2769,13 +2761,13 @@ function $4ce5b8892775b62d$export$ea41102db9bd68c3({
2769
2761
  }
2770
2762
  function $4ce5b8892775b62d$var$EmptyImage() {
2771
2763
  return (() => {
2772
- var _el$7 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$3);
2773
- _el$7.style.setProperty("aspect-ratio", "2");
2774
- $9HbP8$insert(_el$7, $9HbP8$createComponent((0, $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c), {}));
2775
- return _el$7;
2764
+ var _el$9 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$4);
2765
+ _el$9.style.setProperty("aspect-ratio", "2");
2766
+ $9HbP8$insert(_el$9, $9HbP8$createComponent((0, $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c), {}));
2767
+ return _el$9;
2776
2768
  })();
2777
2769
  }
2778
- $9HbP8$delegateEvents(["click", "mouseover"]);
2770
+ $9HbP8$delegateEvents(["mouseover"]);
2779
2771
  var $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2780
2772
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
2781
2773
  return (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.0.20",
3
+ "version": "4.0.22",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -236,7 +236,7 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "latest",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^3.0.11",
239
+ "@depict-ai/plp-styling": "^3.0.12",
240
240
  "@depict-ai/types": "^5.0.5",
241
241
  "@depict-ai/utilishared": "^2.0.15",
242
242
  "solid-js": "^1.8.12"
@@ -95,7 +95,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
95
95
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
96
96
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
97
97
  /*! Depict.ai search and product listing SDK */
98
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.20";
98
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.22";
99
99
 
100
100
  /**
101
101
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1373,7 +1373,7 @@ let $c95c6dd9e93acd82$export$44dad306455dddf;
1373
1373
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1374
1374
  })($c95c6dd9e93acd82$export$44dad306455dddf || ($c95c6dd9e93acd82$export$44dad306455dddf = {}));
1375
1375
  var $29e5dbeb69da7a36$var$_tmpl$ = ["<button", ' class="back" type="button"', ">", "</button>"],
1376
- $29e5dbeb69da7a36$var$_tmpl$2 = ["<div", ' class="search-field"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1376
+ $29e5dbeb69da7a36$var$_tmpl$2 = ["<div", ' class="search-field" role="search"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1377
1377
  function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
1378
1378
  let {
1379
1379
  search_field_value_: search_field_value_,
@@ -1961,9 +1961,9 @@ function $1c819dc9d820a149$export$5646050d516e06bc(_ref) {
1961
1961
  }
1962
1962
  });
1963
1963
  }
1964
- var $ce467edb5343cfcd$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
1964
+ var $ce467edb5343cfcd$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1965
1965
  function $ce467edb5343cfcd$export$94026ee33dbabc26(props) {
1966
- return $3hooq$solidjsweb.ssr($ce467edb5343cfcd$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "".concat($3hooq$solidjsweb.escape($3hooq$solidjsweb.escape("s-image-container", true), true)).concat($3hooq$solidjsweb.escape(props.class, true) || ""), $3hooq$solidjsweb.ssrStyle("padding-bottom:calc(calc(1 / ".concat(props.aspectRatio, ") * 100%)")), $3hooq$solidjsweb.escape(props.children));
1966
+ return $3hooq$solidjsweb.ssr($ce467edb5343cfcd$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle("padding-bottom:calc(calc(1 / ".concat(props.aspectRatio, ") * 100%)")), $3hooq$solidjsweb.ssrAttribute("class", "s-image-container" + (props.class ? " " + $3hooq$solidjsweb.escape(props.class, true) : ""), false), $3hooq$solidjsweb.escape(props.children));
1967
1967
  }
1968
1968
  let $e4e98e5080f4386e$var$browserIsBugged = false;
1969
1969
  function $e4e98e5080f4386e$export$2972b890694ced75(callback, _ref) {
@@ -2245,14 +2245,13 @@ var $317500f39819fba6$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2245
2245
  function $317500f39819fba6$export$9ca09caa9c849d9c() {
2246
2246
  return $3hooq$solidjsweb.ssr($317500f39819fba6$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey());
2247
2247
  }
2248
- var $d1e7b96fb13cd1d3$var$_tmpl$ = ["<a", ">", "</a>"],
2249
- $d1e7b96fb13cd1d3$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2248
+ var $d1e7b96fb13cd1d3$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2249
+ $d1e7b96fb13cd1d3$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2250
2250
  $d1e7b96fb13cd1d3$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2251
2251
  const $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent = 400;
2252
2252
  const $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent = 200;
2253
2253
  const $d1e7b96fb13cd1d3$var$listingSuggestionCollageAspectRatio = $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent / $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent;
2254
2254
  function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2255
- var _image_urls$length, _image_urls;
2256
2255
  let {
2257
2256
  listing_: listing_,
2258
2257
  router_: router_,
@@ -2268,7 +2267,11 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2268
2267
  var _listing_;
2269
2268
  return (_listing_ = listing_()) === null || _listing_ === void 0 ? void 0 : _listing_.page_url;
2270
2269
  }); // <- 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
2271
- const LinkToListing = props => $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey() + $3hooq$solidjsweb.ssrAttribute("tabindex", $3hooq$solidjsweb.escape(props.tabIndex_, true), false) + $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false), $3hooq$solidjsweb.escape(props.children));
2270
+ const LinkToListing = props => $3hooq$solidjsweb.ssrElement("a", $3hooq$solidjsweb.mergeProps(props, {
2271
+ get href() {
2272
+ return href();
2273
+ }
2274
+ }), undefined, true);
2272
2275
  const image_urls = $3hooq$solidjs.createMemo(() => {
2273
2276
  var _listing_2;
2274
2277
  return (_listing_2 = listing_()) === null || _listing_2 === void 0 ? void 0 : _listing_2.image_urls;
@@ -2278,13 +2281,18 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2278
2281
  var _listing_3;
2279
2282
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2280
2283
  });
2281
- return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrStyle("--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0)), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(LinkToListing, {
2282
- tabIndex_: -1,
2284
+ return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(LinkToListing, {
2285
+ "class": "image-part",
2286
+ get style() {
2287
+ var _image_urls$length, _image_urls;
2288
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2289
+ },
2290
+ tabIndex: -1,
2283
2291
  get children() {
2284
- return $3hooq$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2292
+ return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2285
2293
  image_urls_: image_urls,
2286
2294
  merchant_: merchant_
2287
- });
2295
+ })));
2288
2296
  }
2289
2297
  })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
2290
2298
  get when() {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.20";
13
+ export const version = "4.0.22";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.20";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.22";
14
14
 
15
15
  /**
16
16
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1288,7 +1288,7 @@ let $c3820807ac1e6fd7$export$44dad306455dddf;
1288
1288
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1289
1289
  })($c3820807ac1e6fd7$export$44dad306455dddf || ($c3820807ac1e6fd7$export$44dad306455dddf = {}));
1290
1290
  var $584c06c09cf4609d$var$_tmpl$ = ["<button", ' class="back" type="button"', ">", "</button>"],
1291
- $584c06c09cf4609d$var$_tmpl$2 = ["<div", ' class="search-field"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1291
+ $584c06c09cf4609d$var$_tmpl$2 = ["<div", ' class="search-field" role="search"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1292
1292
  function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
1293
1293
  let {
1294
1294
  search_field_value_: search_field_value_,
@@ -1876,9 +1876,9 @@ function $52efc9ae4382e25a$export$5646050d516e06bc(_ref) {
1876
1876
  }
1877
1877
  });
1878
1878
  }
1879
- var $801e8845d3fa3653$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
1879
+ var $801e8845d3fa3653$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1880
1880
  function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
1881
- return $b8hua$ssr($801e8845d3fa3653$var$_tmpl$, $b8hua$ssrHydrationKey(), "".concat($b8hua$escape($b8hua$escape("s-image-container", true), true)).concat($b8hua$escape(props.class, true) || ""), $b8hua$ssrStyle("padding-bottom:calc(calc(1 / ".concat(props.aspectRatio, ") * 100%)")), $b8hua$escape(props.children));
1881
+ return $b8hua$ssr($801e8845d3fa3653$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle("padding-bottom:calc(calc(1 / ".concat(props.aspectRatio, ") * 100%)")), $b8hua$ssrAttribute("class", "s-image-container" + (props.class ? " " + $b8hua$escape(props.class, true) : ""), false), $b8hua$escape(props.children));
1882
1882
  }
1883
1883
  let $6db93f70c2db1486$var$browserIsBugged = false;
1884
1884
  function $6db93f70c2db1486$export$2972b890694ced75(callback, _ref) {
@@ -2160,14 +2160,13 @@ var $4a3ed70b3b7c60d5$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2160
2160
  function $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c() {
2161
2161
  return $b8hua$ssr($4a3ed70b3b7c60d5$var$_tmpl$, $b8hua$ssrHydrationKey());
2162
2162
  }
2163
- var $26db6925469636a4$var$_tmpl$ = ["<a", ">", "</a>"],
2164
- $26db6925469636a4$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2163
+ var $26db6925469636a4$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2164
+ $26db6925469636a4$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2165
2165
  $26db6925469636a4$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2166
2166
  const $26db6925469636a4$var$aspectRatioWidthComponent = 400;
2167
2167
  const $26db6925469636a4$var$aspectRatioHeightComponent = 200;
2168
2168
  const $26db6925469636a4$var$listingSuggestionCollageAspectRatio = $26db6925469636a4$var$aspectRatioWidthComponent / $26db6925469636a4$var$aspectRatioHeightComponent;
2169
2169
  function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2170
- var _image_urls$length, _image_urls;
2171
2170
  let {
2172
2171
  listing_: listing_,
2173
2172
  router_: router_,
@@ -2183,7 +2182,11 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2183
2182
  var _listing_;
2184
2183
  return (_listing_ = listing_()) === null || _listing_ === void 0 ? void 0 : _listing_.page_url;
2185
2184
  }); // <- 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
2186
- const LinkToListing = props => $b8hua$ssr($26db6925469636a4$var$_tmpl$, $b8hua$ssrHydrationKey() + $b8hua$ssrAttribute("tabindex", $b8hua$escape(props.tabIndex_, true), false) + $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false), $b8hua$escape(props.children));
2185
+ const LinkToListing = props => $b8hua$ssrElement("a", $b8hua$mergeProps(props, {
2186
+ get href() {
2187
+ return href();
2188
+ }
2189
+ }), undefined, true);
2187
2190
  const image_urls = $b8hua$createMemo(() => {
2188
2191
  var _listing_2;
2189
2192
  return (_listing_2 = listing_()) === null || _listing_2 === void 0 ? void 0 : _listing_2.image_urls;
@@ -2193,13 +2196,18 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2193
2196
  var _listing_3;
2194
2197
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2195
2198
  });
2196
- return $b8hua$ssr($26db6925469636a4$var$_tmpl$2, $b8hua$ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $b8hua$ssrStyle("--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0)), $b8hua$escape($b8hua$createComponent(LinkToListing, {
2197
- tabIndex_: -1,
2199
+ return $b8hua$ssr($26db6925469636a4$var$_tmpl$2, $b8hua$ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $b8hua$escape($b8hua$createComponent(LinkToListing, {
2200
+ "class": "image-part",
2201
+ get style() {
2202
+ var _image_urls$length, _image_urls;
2203
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2204
+ },
2205
+ tabIndex: -1,
2198
2206
  get children() {
2199
- return $b8hua$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2207
+ return $b8hua$ssr($26db6925469636a4$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2200
2208
  image_urls_: image_urls,
2201
2209
  merchant_: merchant_
2202
- });
2210
+ })));
2203
2211
  }
2204
2212
  })), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
2205
2213
  get when() {
@@ -89,7 +89,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
89
89
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
90
90
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
91
91
  /*! Depict.ai search and product listing SDK */
92
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.20";
92
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.22";
93
93
 
94
94
  /**
95
95
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1297,7 +1297,7 @@ let $0b6e2070a98de347$export$44dad306455dddf;
1297
1297
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1298
1298
  })($0b6e2070a98de347$export$44dad306455dddf || ($0b6e2070a98de347$export$44dad306455dddf = {}));
1299
1299
  var $66b8b9a9613c141d$var$_tmpl$ = ["<button", ' class="back" type="button"', ">", "</button>"],
1300
- $66b8b9a9613c141d$var$_tmpl$2 = ["<div", ' class="search-field"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1300
+ $66b8b9a9613c141d$var$_tmpl$2 = ["<div", ' class="search-field" role="search"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1301
1301
  function $66b8b9a9613c141d$export$b94867ecbd698f21({
1302
1302
  search_field_value_: search_field_value_,
1303
1303
  input_field_ref_: input_field_ref_,
@@ -1868,9 +1868,9 @@ function $e53b2e7e632ac4cb$export$5646050d516e06bc({
1868
1868
  }
1869
1869
  });
1870
1870
  }
1871
- var $93304d59a9747aa6$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
1871
+ var $93304d59a9747aa6$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1872
1872
  function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
1873
- return $5vyXB$solidjsweb.ssr($93304d59a9747aa6$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `${$5vyXB$solidjsweb.escape($5vyXB$solidjsweb.escape("s-image-container", true), true)} ${$5vyXB$solidjsweb.escape(props.class, true) || ""}`, $5vyXB$solidjsweb.ssrStyle(`padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`), $5vyXB$solidjsweb.escape(props.children));
1873
+ return $5vyXB$solidjsweb.ssr($93304d59a9747aa6$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrStyle(`padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`), $5vyXB$solidjsweb.ssrAttribute("class", "s-image-container" + (props.class ? " " + $5vyXB$solidjsweb.escape(props.class, true) : ""), false), $5vyXB$solidjsweb.escape(props.children));
1874
1874
  }
1875
1875
  let $3ea8e0af95b5b7d2$var$browserIsBugged = false;
1876
1876
  function $3ea8e0af95b5b7d2$export$2972b890694ced75(callback, {
@@ -2143,8 +2143,8 @@ var $3a1c4fee88fb8672$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2143
2143
  function $3a1c4fee88fb8672$export$9ca09caa9c849d9c() {
2144
2144
  return $5vyXB$solidjsweb.ssr($3a1c4fee88fb8672$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey());
2145
2145
  }
2146
- var $1f3b5fa875714dea$var$_tmpl$ = ["<a", ">", "</a>"],
2147
- $1f3b5fa875714dea$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2146
+ var $1f3b5fa875714dea$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2147
+ $1f3b5fa875714dea$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2148
2148
  $1f3b5fa875714dea$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2149
2149
  const $1f3b5fa875714dea$var$aspectRatioWidthComponent = 400;
2150
2150
  const $1f3b5fa875714dea$var$aspectRatioHeightComponent = 200;
@@ -2161,17 +2161,25 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2161
2161
  selected_index_: [read_selected_index_, write_selected_index_]
2162
2162
  }) {
2163
2163
  const href = $5vyXB$solidjs.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
2164
- const LinkToListing = props => $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey() + $5vyXB$solidjsweb.ssrAttribute("tabindex", $5vyXB$solidjsweb.escape(props.tabIndex_, true), false) + $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false), $5vyXB$solidjsweb.escape(props.children));
2164
+ const LinkToListing = props => $5vyXB$solidjsweb.ssrElement("a", $5vyXB$solidjsweb.mergeProps(props, {
2165
+ get href() {
2166
+ return href();
2167
+ }
2168
+ }), undefined, true);
2165
2169
  const image_urls = $5vyXB$solidjs.createMemo(() => listing_()?.image_urls);
2166
2170
  const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2167
2171
  const crumbData = $5vyXB$solidjs.createMemo(() => listing_()?.ancestors);
2168
- return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrStyle(`--image-count: ${image_urls()?.length ?? 0}`), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(LinkToListing, {
2169
- tabIndex_: -1,
2172
+ return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(LinkToListing, {
2173
+ "class": "image-part",
2174
+ get style() {
2175
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2176
+ },
2177
+ tabIndex: -1,
2170
2178
  get children() {
2171
- return $5vyXB$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2179
+ return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2172
2180
  image_urls_: image_urls,
2173
2181
  merchant_: merchant_
2174
- });
2182
+ })));
2175
2183
  }
2176
2184
  })), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
2177
2185
  get when() {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.20";
13
+ export const version = "4.0.22";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
@@ -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.0.20";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.22";
11
11
 
12
12
  /**
13
13
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -1215,7 +1215,7 @@ let $f86ba724282f6690$export$44dad306455dddf;
1215
1215
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
1216
1216
  })($f86ba724282f6690$export$44dad306455dddf || ($f86ba724282f6690$export$44dad306455dddf = {}));
1217
1217
  var $5285d2814d0fac0c$var$_tmpl$ = ["<button", ' class="back" type="button"', ">", "</button>"],
1218
- $5285d2814d0fac0c$var$_tmpl$2 = ["<div", ' class="search-field"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1218
+ $5285d2814d0fac0c$var$_tmpl$2 = ["<div", ' class="search-field" role="search"><!--$-->', '<!--/--><div class="field"><input class="', '" tabindex="0"', '><button type="button" class="clear"', ' style="', '">', "</button></div>", "</div>"];
1219
1219
  function $5285d2814d0fac0c$export$b94867ecbd698f21({
1220
1220
  search_field_value_: search_field_value_,
1221
1221
  input_field_ref_: input_field_ref_,
@@ -1786,9 +1786,9 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({
1786
1786
  }
1787
1787
  });
1788
1788
  }
1789
- var $f18d425032111270$var$_tmpl$ = ["<div", ' class="', '" style="', '">', "</div>"];
1789
+ var $f18d425032111270$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1790
1790
  function $f18d425032111270$export$94026ee33dbabc26(props) {
1791
- return $i7OB2$ssr($f18d425032111270$var$_tmpl$, $i7OB2$ssrHydrationKey(), `${$i7OB2$escape($i7OB2$escape("s-image-container", true), true)} ${$i7OB2$escape(props.class, true) || ""}`, $i7OB2$ssrStyle(`padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`), $i7OB2$escape(props.children));
1791
+ return $i7OB2$ssr($f18d425032111270$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrStyle(`padding-bottom:calc(calc(1 / ${props.aspectRatio}) * 100%)`), $i7OB2$ssrAttribute("class", "s-image-container" + (props.class ? " " + $i7OB2$escape(props.class, true) : ""), false), $i7OB2$escape(props.children));
1792
1792
  }
1793
1793
  let $4ea56971d92eb0cd$var$browserIsBugged = false;
1794
1794
  function $4ea56971d92eb0cd$export$2972b890694ced75(callback, {
@@ -2061,8 +2061,8 @@ var $0eb1f9e7ee46f1c2$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2061
2061
  function $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c() {
2062
2062
  return $i7OB2$ssr($0eb1f9e7ee46f1c2$var$_tmpl$, $i7OB2$ssrHydrationKey());
2063
2063
  }
2064
- var $4ce5b8892775b62d$var$_tmpl$ = ["<a", ">", "</a>"],
2065
- $4ce5b8892775b62d$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2064
+ var $4ce5b8892775b62d$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2065
+ $4ce5b8892775b62d$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2066
2066
  $4ce5b8892775b62d$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2067
2067
  const $4ce5b8892775b62d$var$aspectRatioWidthComponent = 400;
2068
2068
  const $4ce5b8892775b62d$var$aspectRatioHeightComponent = 200;
@@ -2079,17 +2079,25 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2079
2079
  selected_index_: [read_selected_index_, write_selected_index_]
2080
2080
  }) {
2081
2081
  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
2082
- const LinkToListing = props => $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$, $i7OB2$ssrHydrationKey() + $i7OB2$ssrAttribute("tabindex", $i7OB2$escape(props.tabIndex_, true), false) + $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false), $i7OB2$escape(props.children));
2082
+ const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps(props, {
2083
+ get href() {
2084
+ return href();
2085
+ }
2086
+ }), undefined, true);
2083
2087
  const image_urls = $i7OB2$createMemo(() => listing_()?.image_urls);
2084
2088
  const [isSelected, selectedDueToKeyboardNavigation] = $f4125ce4984deee6$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2085
2089
  const crumbData = $i7OB2$createMemo(() => listing_()?.ancestors);
2086
- return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $i7OB2$ssrStyle(`--image-count: ${image_urls()?.length ?? 0}`), $i7OB2$escape($i7OB2$createComponent(LinkToListing, {
2087
- tabIndex_: -1,
2090
+ return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $i7OB2$escape($i7OB2$createComponent(LinkToListing, {
2091
+ "class": "image-part",
2092
+ get style() {
2093
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2094
+ },
2095
+ tabIndex: -1,
2088
2096
  get children() {
2089
- return $i7OB2$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2097
+ return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2090
2098
  image_urls_: image_urls,
2091
2099
  merchant_: merchant_
2092
- });
2100
+ })));
2093
2101
  }
2094
2102
  })), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
2095
2103
  get when() {