@depict-ai/ui 4.10.30 → 4.10.32
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 +131 -58
- package/ES10/index.d.ts +6 -1
- package/ES10/index.js +131 -58
- package/latest/index.cjs +126 -58
- package/latest/index.d.ts +6 -1
- package/latest/index.js +126 -58
- package/locales/ES10/index.cjs +27 -13
- package/locales/ES10/index.d.ts +5 -0
- package/locales/ES10/index.js +27 -13
- package/locales/latest/index.cjs +27 -13
- package/locales/latest/index.d.ts +5 -0
- package/locales/latest/index.js +27 -13
- package/package.json +4 -4
- package/server/ES10/index.cjs +68 -7
- package/server/ES10/index.d.ts +6 -1
- package/server/ES10/index.js +68 -7
- package/server/latest/index.cjs +63 -7
- package/server/latest/index.d.ts +6 -1
- package/server/latest/index.js +63 -7
package/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.32";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $52FdA$solidjs.createSignal(false);
|
|
121
121
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -8592,6 +8592,14 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8592
8592
|
}
|
|
8593
8593
|
}));
|
|
8594
8594
|
}
|
|
8595
|
+
|
|
8596
|
+
/** Shopify Lite's storefront (theme-static depict-content-blocks.js) treats screens up to 990px wide as phones. */
|
|
8597
|
+
const $c494ba5ea2d4d0b4$export$1e15d45642067bf0 = "(max-width: 990px)";
|
|
8598
|
+
function $c494ba5ea2d4d0b4$export$894065271726d798(visibility, isPhone) {
|
|
8599
|
+
if (visibility === "desktop") return !isPhone;
|
|
8600
|
+
if (visibility === "mobile") return isPhone;
|
|
8601
|
+
return true;
|
|
8602
|
+
}
|
|
8595
8603
|
const $0c035bbe7e30b438$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8596
8604
|
const {
|
|
8597
8605
|
link: link,
|
|
@@ -8607,6 +8615,7 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8607
8615
|
let hasSeenContentBlock = false;
|
|
8608
8616
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
8609
8617
|
const contentComponents = new Map();
|
|
8618
|
+
const isPhone = $3e17e871e9d0911d$export$d9f36cf74e24d595((0, $c494ba5ea2d4d0b4$export$1e15d45642067bf0));
|
|
8610
8619
|
const delayedServerBlocks = $52FdA$solidjs.createMemo(prev => {
|
|
8611
8620
|
var _plp_meta;
|
|
8612
8621
|
// Do not update the server blocks while the products request is loading, to avoid this: https://depictaiworkspace.slack.com/archives/C01JB6E7K7G/p1750861454651319
|
|
@@ -8633,7 +8642,10 @@ function $0c035bbe7e30b438$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8633
8642
|
if (!(blocksFromHistory !== null && blocksFromHistory !== void 0 && blocksFromHistory.length) && !hasSeenContentBlock) return developerProvided;
|
|
8634
8643
|
const content = [...(developerProvided || [])];
|
|
8635
8644
|
hasSeenContentBlock = true;
|
|
8645
|
+
const phone = isPhone();
|
|
8636
8646
|
blocksFromHistory.forEach(row => {
|
|
8647
|
+
// Leave a block hidden on this device out before placement, so products fill its cells instead of a gap.
|
|
8648
|
+
if (!$c494ba5ea2d4d0b4$export$894065271726d798(row.visibility, phone)) return;
|
|
8637
8649
|
const {
|
|
8638
8650
|
content: {
|
|
8639
8651
|
link: link,
|
|
@@ -10447,6 +10459,37 @@ function $bdea39a75c454f4f$export$f50b88e2a00918b5(fn) {
|
|
|
10447
10459
|
}
|
|
10448
10460
|
};
|
|
10449
10461
|
}
|
|
10462
|
+
var $a7ba1f93c26bb7c6$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`),
|
|
10463
|
+
$a7ba1f93c26bb7c6$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=no-exact-matches role=status>`);
|
|
10464
|
+
function $a7ba1f93c26bb7c6$export$cff209a01196ea2a(response) {
|
|
10465
|
+
var _response$displays;
|
|
10466
|
+
return (response === null || response === void 0 ? void 0 : response.is_fallback) === true && !!((_response$displays = response.displays) !== null && _response$displays !== void 0 && _response$displays.length);
|
|
10467
|
+
}
|
|
10468
|
+
function $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd(_ref) {
|
|
10469
|
+
let {
|
|
10470
|
+
get_search_query_: get_search_query_,
|
|
10471
|
+
i18n_: i18n_,
|
|
10472
|
+
is_fallback_: is_fallback_
|
|
10473
|
+
} = _ref;
|
|
10474
|
+
const contents = $52FdA$solidjs.createMemo($52FdA$depictaiutilishared.catchify(() => {
|
|
10475
|
+
var _i18n_$get_no_exact_m, _i18n_$get_no_exact_m2;
|
|
10476
|
+
return (_i18n_$get_no_exact_m = i18n_.get_no_exact_matches_) === null || _i18n_$get_no_exact_m === void 0 ? void 0 : (_i18n_$get_no_exact_m2 = _i18n_$get_no_exact_m.call(i18n_)) === null || _i18n_$get_no_exact_m2 === void 0 ? void 0 : _i18n_$get_no_exact_m2((() => {
|
|
10477
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($a7ba1f93c26bb7c6$var$_tmpl$);
|
|
10478
|
+
$52FdA$solidjsweb.insert(_el$, get_search_query_);
|
|
10479
|
+
return _el$;
|
|
10480
|
+
})());
|
|
10481
|
+
}));
|
|
10482
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
10483
|
+
get when() {
|
|
10484
|
+
return $52FdA$solidjsweb.memo(() => !!(is_fallback_() && get_search_query_().trim() !== ""))() && contents();
|
|
10485
|
+
},
|
|
10486
|
+
get children() {
|
|
10487
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($a7ba1f93c26bb7c6$var$_tmpl$2);
|
|
10488
|
+
$52FdA$solidjsweb.insert(_el$2, contents);
|
|
10489
|
+
return _el$2;
|
|
10490
|
+
}
|
|
10491
|
+
});
|
|
10492
|
+
}
|
|
10450
10493
|
function $b0f8d9f49e018db9$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
10451
10494
|
const isSelected = $52FdA$solidjs.createMemo(() => {
|
|
10452
10495
|
const selectedValue = selectedIndex();
|
|
@@ -10674,6 +10717,7 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
|
|
|
10674
10717
|
i18n_: i18n_,
|
|
10675
10718
|
router_: router_,
|
|
10676
10719
|
set_modal_search_results_: set_modal_search_results_,
|
|
10720
|
+
set_instant_query_: set_instant_query_,
|
|
10677
10721
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
10678
10722
|
itemIndex_: itemIndex_,
|
|
10679
10723
|
selected_index_: selected_index_,
|
|
@@ -10712,6 +10756,7 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
|
|
|
10712
10756
|
// Maybe we should move this createResource out of this component, on the other hand it bloats the parent component and if it fails it takes more than needed with it, so I think writing the content results from here is better
|
|
10713
10757
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
10714
10758
|
set_modal_search_results_(() => search_results);
|
|
10759
|
+
if (set_instant_query_) $52FdA$solidjs.createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
10715
10760
|
$52FdA$solidjs.onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
10716
10761
|
if (itemIndex_) {
|
|
10717
10762
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -12024,6 +12069,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12024
12069
|
body_: bodyAlignmentSignal = $52FdA$solidjs.createSignal({})
|
|
12025
12070
|
} = alignmentSignals_ || {};
|
|
12026
12071
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
12072
|
+
const [get_instant_query_, set_instant_query_] = $52FdA$solidjs.createSignal("");
|
|
12027
12073
|
const [get_modal_search_results, set_modal_search_results_] = $52FdA$solidjs.createSignal();
|
|
12028
12074
|
const close_on_escape_handler = $52FdA$depictaiutilishared.catchify(_ref2 => {
|
|
12029
12075
|
let {
|
|
@@ -12184,7 +12230,14 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12184
12230
|
get children() {
|
|
12185
12231
|
return $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
|
|
12186
12232
|
get children() {
|
|
12187
|
-
return $
|
|
12233
|
+
return [$52FdA$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
|
|
12234
|
+
get_search_query_: get_instant_query_,
|
|
12235
|
+
i18n_: i18n_,
|
|
12236
|
+
is_fallback_: () => {
|
|
12237
|
+
const results = get_modal_search_results();
|
|
12238
|
+
return !!results && !results.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(results());
|
|
12239
|
+
}
|
|
12240
|
+
}), $52FdA$solidjsweb.memo(() => $6e8d48eea3d0469d$export$62f101a8aa597bf8({
|
|
12188
12241
|
search_field_value_: search_field_value_,
|
|
12189
12242
|
depict_api_: depict_api_,
|
|
12190
12243
|
merchant_: merchant_,
|
|
@@ -12192,6 +12245,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12192
12245
|
market_: market_,
|
|
12193
12246
|
router_: router_,
|
|
12194
12247
|
set_modal_search_results_: set_modal_search_results_,
|
|
12248
|
+
set_instant_query_: set_instant_query_,
|
|
12195
12249
|
InstantCardImageComponent_: props => $52FdA$solidjs.createMemo(() => {
|
|
12196
12250
|
var _props$alt_;
|
|
12197
12251
|
return $52FdA$depictaiutilishared.ContainedImage({
|
|
@@ -12207,7 +12261,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12207
12261
|
});
|
|
12208
12262
|
}),
|
|
12209
12263
|
...instant_results_options_
|
|
12210
|
-
});
|
|
12264
|
+
}))];
|
|
12211
12265
|
}
|
|
12212
12266
|
});
|
|
12213
12267
|
}
|
|
@@ -12829,7 +12883,7 @@ function $58ffab03481f8973$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
12829
12883
|
instantResultsIndex_: instantResultsIndex_
|
|
12830
12884
|
};
|
|
12831
12885
|
}
|
|
12832
|
-
var $43600b30502feeda$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2
|
|
12886
|
+
var $43600b30502feeda$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2><!$><!/><!$><!/>`),
|
|
12833
12887
|
$43600b30502feeda$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
|
|
12834
12888
|
$43600b30502feeda$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<dialog>`),
|
|
12835
12889
|
$43600b30502feeda$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
@@ -12904,6 +12958,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
12904
12958
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
12905
12959
|
const random_classname_body = $52FdA$depictaiutilishared.make_random_classname();
|
|
12906
12960
|
const backdropRandomClassname = $52FdA$depictaiutilishared.make_random_classname();
|
|
12961
|
+
const [get_instant_query_, set_instant_query_] = $52FdA$solidjs.createSignal("");
|
|
12907
12962
|
const [get_modal_search_results_, set_modal_search_results_] = $52FdA$solidjs.createSignal();
|
|
12908
12963
|
const close_on_escape_handler = $52FdA$depictaiutilishared.catchify(evt => {
|
|
12909
12964
|
if (evt.key === "Escape") {
|
|
@@ -13068,8 +13123,18 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13068
13123
|
var _el$ = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$),
|
|
13069
13124
|
_el$2 = _el$.firstChild,
|
|
13070
13125
|
_el$3 = _el$2.nextSibling,
|
|
13071
|
-
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling)
|
|
13126
|
+
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
13127
|
+
_el$5 = _el$4.nextSibling,
|
|
13128
|
+
[_el$6, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
13072
13129
|
$52FdA$solidjsweb.insert(_el$2, () => i18n_.products_());
|
|
13130
|
+
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
|
|
13131
|
+
get_search_query_: get_instant_query_,
|
|
13132
|
+
i18n_: i18n_,
|
|
13133
|
+
is_fallback_: () => {
|
|
13134
|
+
const results = get_modal_search_results_();
|
|
13135
|
+
return !!results && !results.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(results());
|
|
13136
|
+
}
|
|
13137
|
+
}), _el$4, _co$);
|
|
13073
13138
|
$52FdA$solidjsweb.insert(_el$, () => $6e8d48eea3d0469d$export$62f101a8aa597bf8({
|
|
13074
13139
|
search_field_value_: search_field_value_,
|
|
13075
13140
|
depict_api_: depict_api_,
|
|
@@ -13078,6 +13143,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13078
13143
|
market_: market_,
|
|
13079
13144
|
router_: router_,
|
|
13080
13145
|
set_modal_search_results_: set_modal_search_results_,
|
|
13146
|
+
set_instant_query_: set_instant_query_,
|
|
13081
13147
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
13082
13148
|
selected_index_: selected_index_,
|
|
13083
13149
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -13099,7 +13165,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13099
13165
|
imageResizer_: imageResizer_
|
|
13100
13166
|
}),
|
|
13101
13167
|
...instant_results_options_
|
|
13102
|
-
}), _el$
|
|
13168
|
+
}), _el$6, _co$2);
|
|
13103
13169
|
$52FdA$solidjsweb.effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
13104
13170
|
return _el$;
|
|
13105
13171
|
}
|
|
@@ -13138,25 +13204,25 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13138
13204
|
})]);
|
|
13139
13205
|
const DialogElement = props => {
|
|
13140
13206
|
if (forceUseDiv_) return (() => {
|
|
13141
|
-
var _el$
|
|
13142
|
-
$52FdA$solidjsweb.spread(_el$
|
|
13143
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13207
|
+
var _el$7 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$2);
|
|
13208
|
+
$52FdA$solidjsweb.spread(_el$7, props, false, true);
|
|
13209
|
+
$52FdA$solidjsweb.insert(_el$7, () => props.children);
|
|
13144
13210
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13145
|
-
return _el$
|
|
13211
|
+
return _el$7;
|
|
13146
13212
|
})();
|
|
13147
13213
|
return (() => {
|
|
13148
|
-
var _el$
|
|
13149
|
-
$52FdA$solidjsweb.spread(_el$
|
|
13150
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13214
|
+
var _el$8 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$3);
|
|
13215
|
+
$52FdA$solidjsweb.spread(_el$8, props, false, true);
|
|
13216
|
+
$52FdA$solidjsweb.insert(_el$8, () => props.children);
|
|
13151
13217
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13152
|
-
return _el$
|
|
13218
|
+
return _el$8;
|
|
13153
13219
|
})();
|
|
13154
13220
|
};
|
|
13155
13221
|
const discoverMoreSection = (() => {
|
|
13156
|
-
var _el$
|
|
13157
|
-
_el$
|
|
13158
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
13159
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13222
|
+
var _el$9 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$4),
|
|
13223
|
+
_el$10 = _el$9.firstChild;
|
|
13224
|
+
$52FdA$solidjsweb.addEventListener(_el$10, "click", $52FdA$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
13225
|
+
$52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
13160
13226
|
get when() {
|
|
13161
13227
|
return get_search_field_value_();
|
|
13162
13228
|
},
|
|
@@ -13173,16 +13239,16 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13173
13239
|
},
|
|
13174
13240
|
get children() {
|
|
13175
13241
|
return i18n_.modal_view_all_results_()((() => {
|
|
13176
|
-
var _el$
|
|
13177
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13178
|
-
return _el$
|
|
13242
|
+
var _el$11 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$5);
|
|
13243
|
+
$52FdA$solidjsweb.insert(_el$11, formattedTotalNumberResults);
|
|
13244
|
+
return _el$11;
|
|
13179
13245
|
})());
|
|
13180
13246
|
}
|
|
13181
13247
|
});
|
|
13182
13248
|
}
|
|
13183
13249
|
}));
|
|
13184
13250
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13185
|
-
return _el$
|
|
13251
|
+
return _el$9;
|
|
13186
13252
|
})();
|
|
13187
13253
|
const search_field = $29e5dbeb69da7a36$export$b94867ecbd698f21({
|
|
13188
13254
|
BackIcon_: (0, $50b50df3efaa8776$export$11e9f390c90a537f),
|
|
@@ -13234,22 +13300,22 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13234
13300
|
},
|
|
13235
13301
|
get children() {
|
|
13236
13302
|
return [(() => {
|
|
13237
|
-
var _el$
|
|
13238
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
13239
|
-
$52FdA$solidjsweb.effect(_$p => $52FdA$solidjsweb.classList(_el$
|
|
13303
|
+
var _el$12 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$6);
|
|
13304
|
+
$52FdA$solidjsweb.addEventListener(_el$12, "click", close_modal_, true);
|
|
13305
|
+
$52FdA$solidjsweb.effect(_$p => $52FdA$solidjsweb.classList(_el$12, {
|
|
13240
13306
|
[backdropRandomClassname]: true
|
|
13241
13307
|
}, _$p));
|
|
13242
13308
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13243
|
-
return _el$
|
|
13309
|
+
return _el$12;
|
|
13244
13310
|
})(), (() => {
|
|
13245
|
-
var _el$
|
|
13246
|
-
_el$
|
|
13247
|
-
_el$
|
|
13248
|
-
[_el$
|
|
13249
|
-
_el$
|
|
13250
|
-
_el$
|
|
13251
|
-
[_el$
|
|
13252
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
13311
|
+
var _el$13 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$7),
|
|
13312
|
+
_el$14 = _el$13.firstChild,
|
|
13313
|
+
_el$16 = _el$14.firstChild,
|
|
13314
|
+
[_el$17, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$16.nextSibling),
|
|
13315
|
+
_el$15 = _el$17.nextSibling,
|
|
13316
|
+
_el$18 = _el$14.nextSibling,
|
|
13317
|
+
[_el$19, _co$4] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling);
|
|
13318
|
+
$52FdA$solidjsweb.addEventListener(_el$13, "click", $52FdA$depictaiutilishared.catchify(_ref3 => {
|
|
13253
13319
|
let {
|
|
13254
13320
|
target: target,
|
|
13255
13321
|
currentTarget: currentTarget
|
|
@@ -13261,8 +13327,8 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13261
13327
|
const resizeObserver = new ResizeObserver($52FdA$depictaiutilishared.catchify(records => setModalBodyWidth(records.at(-1).contentRect.width)));
|
|
13262
13328
|
resizeObserver.observe(element);
|
|
13263
13329
|
$52FdA$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
13264
|
-
}, _el$
|
|
13265
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13330
|
+
}, _el$14);
|
|
13331
|
+
$52FdA$solidjsweb.insert(_el$14, search_field, _el$17, _co$3);
|
|
13266
13332
|
$52FdA$solidjsweb.use(el => {
|
|
13267
13333
|
$52FdA$depictaiutilishared.catchify((0, $246adc3df5966856$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_ || (() => 0.03 // 3% under SearchModalV2 by default
|
|
13268
13334
|
));
|
|
@@ -13277,28 +13343,28 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13277
13343
|
return;
|
|
13278
13344
|
}
|
|
13279
13345
|
el.replaceChildren(...[(() => {
|
|
13280
|
-
var _el$
|
|
13281
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13282
|
-
return _el$
|
|
13346
|
+
var _el$20 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$8);
|
|
13347
|
+
$52FdA$solidjsweb.insert(_el$20, renderedTextSuggestions);
|
|
13348
|
+
return _el$20;
|
|
13283
13349
|
})(), (() => {
|
|
13284
|
-
var _el$
|
|
13285
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13286
|
-
return _el$
|
|
13350
|
+
var _el$21 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$9);
|
|
13351
|
+
$52FdA$solidjsweb.insert(_el$21, renderedVisualSuggestions);
|
|
13352
|
+
return _el$21;
|
|
13287
13353
|
})(), discoverMoreSection]);
|
|
13288
13354
|
});
|
|
13289
|
-
}, _el$
|
|
13290
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13355
|
+
}, _el$15);
|
|
13356
|
+
$52FdA$solidjsweb.insert(_el$13, $52FdA$solidjsweb.createComponent((0, $cc66bbf6e783bb58$export$f021bdedd3ec901a), {
|
|
13291
13357
|
styles: mergedCssObject
|
|
13292
|
-
}), _el$
|
|
13358
|
+
}), _el$19, _co$4);
|
|
13293
13359
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
13294
13360
|
var _v$ = !!modalLayoutStacked_(),
|
|
13295
13361
|
_v$2 = {
|
|
13296
13362
|
[random_classname_body]: true
|
|
13297
13363
|
},
|
|
13298
13364
|
_v$3 = !!noResults();
|
|
13299
|
-
_v$ !== _p$.e && _el$
|
|
13300
|
-
_p$.t = $52FdA$solidjsweb.classList(_el$
|
|
13301
|
-
_v$3 !== _p$.a && _el$
|
|
13365
|
+
_v$ !== _p$.e && _el$13.classList.toggle("stacked", _p$.e = _v$);
|
|
13366
|
+
_p$.t = $52FdA$solidjsweb.classList(_el$14, _v$2, _p$.t);
|
|
13367
|
+
_v$3 !== _p$.a && _el$15.classList.toggle("no-results", _p$.a = _v$3);
|
|
13302
13368
|
return _p$;
|
|
13303
13369
|
}, {
|
|
13304
13370
|
e: undefined,
|
|
@@ -13306,7 +13372,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13306
13372
|
a: undefined
|
|
13307
13373
|
});
|
|
13308
13374
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13309
|
-
return _el$
|
|
13375
|
+
return _el$13;
|
|
13310
13376
|
})()];
|
|
13311
13377
|
}
|
|
13312
13378
|
})];
|
|
@@ -16021,7 +16087,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
16021
16087
|
});
|
|
16022
16088
|
}
|
|
16023
16089
|
var $739c927cbecd26b0$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
16024
|
-
$739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><div class=listing-page
|
|
16090
|
+
$739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
16025
16091
|
function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
16026
16092
|
let {
|
|
16027
16093
|
depict_api_: depict_api_,
|
|
@@ -16336,10 +16402,12 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16336
16402
|
[_el$19, _co$8] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling),
|
|
16337
16403
|
_el$20 = _el$19.nextSibling,
|
|
16338
16404
|
[_el$21, _co$9] = $52FdA$solidjsweb.getNextMarker(_el$20.nextSibling),
|
|
16339
|
-
_el$22 = _el$
|
|
16405
|
+
_el$22 = _el$21.nextSibling,
|
|
16340
16406
|
[_el$23, _co$10] = $52FdA$solidjsweb.getNextMarker(_el$22.nextSibling),
|
|
16341
|
-
_el$24 = _el$
|
|
16342
|
-
[_el$25, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$24.nextSibling)
|
|
16407
|
+
_el$24 = _el$7.nextSibling,
|
|
16408
|
+
[_el$25, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
16409
|
+
_el$26 = _el$25.nextSibling,
|
|
16410
|
+
[_el$27, _co$12] = $52FdA$solidjsweb.getNextMarker(_el$26.nextSibling);
|
|
16343
16411
|
$52FdA$solidjsweb.insert(_el$7, get_search_field_elements, _el$9, _co$3);
|
|
16344
16412
|
$52FdA$solidjsweb.insert(_el$7, make_category_suggestion_card_ ? $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16345
16413
|
severity_: "error",
|
|
@@ -16378,6 +16446,11 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16378
16446
|
}
|
|
16379
16447
|
}), _el$13, _co$5);
|
|
16380
16448
|
$52FdA$solidjsweb.insert(_el$7, () => results_filters[0](), _el$15, _co$6);
|
|
16449
|
+
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
|
|
16450
|
+
get_search_query_: get_search_query_,
|
|
16451
|
+
i18n_: i18n_,
|
|
16452
|
+
is_fallback_: () => !search_results_.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(search_results_())
|
|
16453
|
+
}), _el$17, _co$7);
|
|
16381
16454
|
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
16382
16455
|
get when() {
|
|
16383
16456
|
var _selected_filters_$;
|
|
@@ -16401,7 +16474,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16401
16474
|
}
|
|
16402
16475
|
});
|
|
16403
16476
|
}
|
|
16404
|
-
}), _el$
|
|
16477
|
+
}), _el$19, _co$8);
|
|
16405
16478
|
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16406
16479
|
severity_: "error",
|
|
16407
16480
|
message_: "Search results failed",
|
|
@@ -16438,7 +16511,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16438
16511
|
}
|
|
16439
16512
|
});
|
|
16440
16513
|
}
|
|
16441
|
-
}), _el$
|
|
16514
|
+
}), _el$21, _co$9);
|
|
16442
16515
|
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16443
16516
|
severity_: "error",
|
|
16444
16517
|
message_: "Search recommendations failed",
|
|
@@ -16457,7 +16530,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16457
16530
|
}
|
|
16458
16531
|
});
|
|
16459
16532
|
}
|
|
16460
|
-
}), _el$
|
|
16533
|
+
}), _el$23, _co$10);
|
|
16461
16534
|
$52FdA$solidjsweb.insert(_el$6, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16462
16535
|
message_: "Scroll status failed",
|
|
16463
16536
|
severity_: "error",
|
|
@@ -16470,7 +16543,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16470
16543
|
number_of_results_: countOfProductsForUI
|
|
16471
16544
|
});
|
|
16472
16545
|
}
|
|
16473
|
-
}), _el$
|
|
16546
|
+
}), _el$25, _co$11);
|
|
16474
16547
|
$52FdA$solidjsweb.insert(_el$6, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16475
16548
|
message_: "Floating buttons failed",
|
|
16476
16549
|
severity_: "error",
|
|
@@ -16483,7 +16556,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16483
16556
|
i18n_: i18n_
|
|
16484
16557
|
});
|
|
16485
16558
|
}
|
|
16486
|
-
}), _el$
|
|
16559
|
+
}), _el$27, _co$12);
|
|
16487
16560
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
16488
16561
|
var _v$ = (0, $c95c6dd9e93acd82$export$44dad306455dddf).SEARCH_PAGE,
|
|
16489
16562
|
_v$2 = "depict plp search".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat(class_()) : "");
|
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.10.
|
|
14
|
+
export const version = "4.10.32";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -111,6 +111,11 @@ interface search_i18n extends plp_shared_i18n {
|
|
|
111
111
|
popular_: string;
|
|
112
112
|
products_: string;
|
|
113
113
|
modal_view_all_no_results_: string;
|
|
114
|
+
/**
|
|
115
|
+
* Shown above the results when no product matched the query and search shows similar products.
|
|
116
|
+
* Optional: a custom locale without it shows no notice.
|
|
117
|
+
*/
|
|
118
|
+
get_no_exact_matches_?: (query: HTMLElement) => Elem[];
|
|
114
119
|
}
|
|
115
120
|
/**
|
|
116
121
|
* Category internationalisation
|