@depict-ai/ui 4.10.29 → 4.10.31
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 +119 -58
- package/ES10/index.d.ts +6 -1
- package/ES10/index.js +119 -58
- package/latest/index.cjs +114 -58
- package/latest/index.d.ts +6 -1
- package/latest/index.js +114 -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 +56 -7
- package/server/ES10/index.d.ts +6 -1
- package/server/ES10/index.js +56 -7
- package/server/latest/index.cjs +51 -7
- package/server/latest/index.d.ts +6 -1
- package/server/latest/index.js +51 -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.31";
|
|
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 => {
|
|
@@ -10447,6 +10447,37 @@ function $bdea39a75c454f4f$export$f50b88e2a00918b5(fn) {
|
|
|
10447
10447
|
}
|
|
10448
10448
|
};
|
|
10449
10449
|
}
|
|
10450
|
+
var $a7ba1f93c26bb7c6$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`),
|
|
10451
|
+
$a7ba1f93c26bb7c6$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=no-exact-matches role=status>`);
|
|
10452
|
+
function $a7ba1f93c26bb7c6$export$cff209a01196ea2a(response) {
|
|
10453
|
+
var _response$displays;
|
|
10454
|
+
return (response === null || response === void 0 ? void 0 : response.is_fallback) === true && !!((_response$displays = response.displays) !== null && _response$displays !== void 0 && _response$displays.length);
|
|
10455
|
+
}
|
|
10456
|
+
function $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd(_ref) {
|
|
10457
|
+
let {
|
|
10458
|
+
get_search_query_: get_search_query_,
|
|
10459
|
+
i18n_: i18n_,
|
|
10460
|
+
is_fallback_: is_fallback_
|
|
10461
|
+
} = _ref;
|
|
10462
|
+
const contents = $52FdA$solidjs.createMemo($52FdA$depictaiutilishared.catchify(() => {
|
|
10463
|
+
var _i18n_$get_no_exact_m, _i18n_$get_no_exact_m2;
|
|
10464
|
+
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((() => {
|
|
10465
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($a7ba1f93c26bb7c6$var$_tmpl$);
|
|
10466
|
+
$52FdA$solidjsweb.insert(_el$, get_search_query_);
|
|
10467
|
+
return _el$;
|
|
10468
|
+
})());
|
|
10469
|
+
}));
|
|
10470
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
10471
|
+
get when() {
|
|
10472
|
+
return $52FdA$solidjsweb.memo(() => !!(is_fallback_() && get_search_query_().trim() !== ""))() && contents();
|
|
10473
|
+
},
|
|
10474
|
+
get children() {
|
|
10475
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($a7ba1f93c26bb7c6$var$_tmpl$2);
|
|
10476
|
+
$52FdA$solidjsweb.insert(_el$2, contents);
|
|
10477
|
+
return _el$2;
|
|
10478
|
+
}
|
|
10479
|
+
});
|
|
10480
|
+
}
|
|
10450
10481
|
function $b0f8d9f49e018db9$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
10451
10482
|
const isSelected = $52FdA$solidjs.createMemo(() => {
|
|
10452
10483
|
const selectedValue = selectedIndex();
|
|
@@ -10674,6 +10705,7 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
|
|
|
10674
10705
|
i18n_: i18n_,
|
|
10675
10706
|
router_: router_,
|
|
10676
10707
|
set_modal_search_results_: set_modal_search_results_,
|
|
10708
|
+
set_instant_query_: set_instant_query_,
|
|
10677
10709
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
10678
10710
|
itemIndex_: itemIndex_,
|
|
10679
10711
|
selected_index_: selected_index_,
|
|
@@ -10712,6 +10744,7 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
|
|
|
10712
10744
|
// 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
10745
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
10714
10746
|
set_modal_search_results_(() => search_results);
|
|
10747
|
+
if (set_instant_query_) $52FdA$solidjs.createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
10715
10748
|
$52FdA$solidjs.onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
10716
10749
|
if (itemIndex_) {
|
|
10717
10750
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -12024,6 +12057,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12024
12057
|
body_: bodyAlignmentSignal = $52FdA$solidjs.createSignal({})
|
|
12025
12058
|
} = alignmentSignals_ || {};
|
|
12026
12059
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
12060
|
+
const [get_instant_query_, set_instant_query_] = $52FdA$solidjs.createSignal("");
|
|
12027
12061
|
const [get_modal_search_results, set_modal_search_results_] = $52FdA$solidjs.createSignal();
|
|
12028
12062
|
const close_on_escape_handler = $52FdA$depictaiutilishared.catchify(_ref2 => {
|
|
12029
12063
|
let {
|
|
@@ -12184,7 +12218,14 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12184
12218
|
get children() {
|
|
12185
12219
|
return $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
|
|
12186
12220
|
get children() {
|
|
12187
|
-
return $
|
|
12221
|
+
return [$52FdA$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
|
|
12222
|
+
get_search_query_: get_instant_query_,
|
|
12223
|
+
i18n_: i18n_,
|
|
12224
|
+
is_fallback_: () => {
|
|
12225
|
+
const results = get_modal_search_results();
|
|
12226
|
+
return !!results && !results.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(results());
|
|
12227
|
+
}
|
|
12228
|
+
}), $52FdA$solidjsweb.memo(() => $6e8d48eea3d0469d$export$62f101a8aa597bf8({
|
|
12188
12229
|
search_field_value_: search_field_value_,
|
|
12189
12230
|
depict_api_: depict_api_,
|
|
12190
12231
|
merchant_: merchant_,
|
|
@@ -12192,6 +12233,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12192
12233
|
market_: market_,
|
|
12193
12234
|
router_: router_,
|
|
12194
12235
|
set_modal_search_results_: set_modal_search_results_,
|
|
12236
|
+
set_instant_query_: set_instant_query_,
|
|
12195
12237
|
InstantCardImageComponent_: props => $52FdA$solidjs.createMemo(() => {
|
|
12196
12238
|
var _props$alt_;
|
|
12197
12239
|
return $52FdA$depictaiutilishared.ContainedImage({
|
|
@@ -12207,7 +12249,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
12207
12249
|
});
|
|
12208
12250
|
}),
|
|
12209
12251
|
...instant_results_options_
|
|
12210
|
-
});
|
|
12252
|
+
}))];
|
|
12211
12253
|
}
|
|
12212
12254
|
});
|
|
12213
12255
|
}
|
|
@@ -12829,7 +12871,7 @@ function $58ffab03481f8973$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
12829
12871
|
instantResultsIndex_: instantResultsIndex_
|
|
12830
12872
|
};
|
|
12831
12873
|
}
|
|
12832
|
-
var $43600b30502feeda$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2
|
|
12874
|
+
var $43600b30502feeda$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2><!$><!/><!$><!/>`),
|
|
12833
12875
|
$43600b30502feeda$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
|
|
12834
12876
|
$43600b30502feeda$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<dialog>`),
|
|
12835
12877
|
$43600b30502feeda$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
@@ -12904,6 +12946,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
12904
12946
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
12905
12947
|
const random_classname_body = $52FdA$depictaiutilishared.make_random_classname();
|
|
12906
12948
|
const backdropRandomClassname = $52FdA$depictaiutilishared.make_random_classname();
|
|
12949
|
+
const [get_instant_query_, set_instant_query_] = $52FdA$solidjs.createSignal("");
|
|
12907
12950
|
const [get_modal_search_results_, set_modal_search_results_] = $52FdA$solidjs.createSignal();
|
|
12908
12951
|
const close_on_escape_handler = $52FdA$depictaiutilishared.catchify(evt => {
|
|
12909
12952
|
if (evt.key === "Escape") {
|
|
@@ -13068,8 +13111,18 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13068
13111
|
var _el$ = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$),
|
|
13069
13112
|
_el$2 = _el$.firstChild,
|
|
13070
13113
|
_el$3 = _el$2.nextSibling,
|
|
13071
|
-
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling)
|
|
13114
|
+
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
13115
|
+
_el$5 = _el$4.nextSibling,
|
|
13116
|
+
[_el$6, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
13072
13117
|
$52FdA$solidjsweb.insert(_el$2, () => i18n_.products_());
|
|
13118
|
+
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
|
|
13119
|
+
get_search_query_: get_instant_query_,
|
|
13120
|
+
i18n_: i18n_,
|
|
13121
|
+
is_fallback_: () => {
|
|
13122
|
+
const results = get_modal_search_results_();
|
|
13123
|
+
return !!results && !results.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(results());
|
|
13124
|
+
}
|
|
13125
|
+
}), _el$4, _co$);
|
|
13073
13126
|
$52FdA$solidjsweb.insert(_el$, () => $6e8d48eea3d0469d$export$62f101a8aa597bf8({
|
|
13074
13127
|
search_field_value_: search_field_value_,
|
|
13075
13128
|
depict_api_: depict_api_,
|
|
@@ -13078,6 +13131,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13078
13131
|
market_: market_,
|
|
13079
13132
|
router_: router_,
|
|
13080
13133
|
set_modal_search_results_: set_modal_search_results_,
|
|
13134
|
+
set_instant_query_: set_instant_query_,
|
|
13081
13135
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
13082
13136
|
selected_index_: selected_index_,
|
|
13083
13137
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -13099,7 +13153,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13099
13153
|
imageResizer_: imageResizer_
|
|
13100
13154
|
}),
|
|
13101
13155
|
...instant_results_options_
|
|
13102
|
-
}), _el$
|
|
13156
|
+
}), _el$6, _co$2);
|
|
13103
13157
|
$52FdA$solidjsweb.effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
13104
13158
|
return _el$;
|
|
13105
13159
|
}
|
|
@@ -13138,25 +13192,25 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13138
13192
|
})]);
|
|
13139
13193
|
const DialogElement = props => {
|
|
13140
13194
|
if (forceUseDiv_) return (() => {
|
|
13141
|
-
var _el$
|
|
13142
|
-
$52FdA$solidjsweb.spread(_el$
|
|
13143
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13195
|
+
var _el$7 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$2);
|
|
13196
|
+
$52FdA$solidjsweb.spread(_el$7, props, false, true);
|
|
13197
|
+
$52FdA$solidjsweb.insert(_el$7, () => props.children);
|
|
13144
13198
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13145
|
-
return _el$
|
|
13199
|
+
return _el$7;
|
|
13146
13200
|
})();
|
|
13147
13201
|
return (() => {
|
|
13148
|
-
var _el$
|
|
13149
|
-
$52FdA$solidjsweb.spread(_el$
|
|
13150
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13202
|
+
var _el$8 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$3);
|
|
13203
|
+
$52FdA$solidjsweb.spread(_el$8, props, false, true);
|
|
13204
|
+
$52FdA$solidjsweb.insert(_el$8, () => props.children);
|
|
13151
13205
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13152
|
-
return _el$
|
|
13206
|
+
return _el$8;
|
|
13153
13207
|
})();
|
|
13154
13208
|
};
|
|
13155
13209
|
const discoverMoreSection = (() => {
|
|
13156
|
-
var _el$
|
|
13157
|
-
_el$
|
|
13158
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
13159
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13210
|
+
var _el$9 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$4),
|
|
13211
|
+
_el$10 = _el$9.firstChild;
|
|
13212
|
+
$52FdA$solidjsweb.addEventListener(_el$10, "click", $52FdA$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
13213
|
+
$52FdA$solidjsweb.insert(_el$10, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
13160
13214
|
get when() {
|
|
13161
13215
|
return get_search_field_value_();
|
|
13162
13216
|
},
|
|
@@ -13173,16 +13227,16 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13173
13227
|
},
|
|
13174
13228
|
get children() {
|
|
13175
13229
|
return i18n_.modal_view_all_results_()((() => {
|
|
13176
|
-
var _el$
|
|
13177
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13178
|
-
return _el$
|
|
13230
|
+
var _el$11 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$5);
|
|
13231
|
+
$52FdA$solidjsweb.insert(_el$11, formattedTotalNumberResults);
|
|
13232
|
+
return _el$11;
|
|
13179
13233
|
})());
|
|
13180
13234
|
}
|
|
13181
13235
|
});
|
|
13182
13236
|
}
|
|
13183
13237
|
}));
|
|
13184
13238
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13185
|
-
return _el$
|
|
13239
|
+
return _el$9;
|
|
13186
13240
|
})();
|
|
13187
13241
|
const search_field = $29e5dbeb69da7a36$export$b94867ecbd698f21({
|
|
13188
13242
|
BackIcon_: (0, $50b50df3efaa8776$export$11e9f390c90a537f),
|
|
@@ -13234,22 +13288,22 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13234
13288
|
},
|
|
13235
13289
|
get children() {
|
|
13236
13290
|
return [(() => {
|
|
13237
|
-
var _el$
|
|
13238
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
13239
|
-
$52FdA$solidjsweb.effect(_$p => $52FdA$solidjsweb.classList(_el$
|
|
13291
|
+
var _el$12 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$6);
|
|
13292
|
+
$52FdA$solidjsweb.addEventListener(_el$12, "click", close_modal_, true);
|
|
13293
|
+
$52FdA$solidjsweb.effect(_$p => $52FdA$solidjsweb.classList(_el$12, {
|
|
13240
13294
|
[backdropRandomClassname]: true
|
|
13241
13295
|
}, _$p));
|
|
13242
13296
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13243
|
-
return _el$
|
|
13297
|
+
return _el$12;
|
|
13244
13298
|
})(), (() => {
|
|
13245
|
-
var _el$
|
|
13246
|
-
_el$
|
|
13247
|
-
_el$
|
|
13248
|
-
[_el$
|
|
13249
|
-
_el$
|
|
13250
|
-
_el$
|
|
13251
|
-
[_el$
|
|
13252
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
13299
|
+
var _el$13 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$7),
|
|
13300
|
+
_el$14 = _el$13.firstChild,
|
|
13301
|
+
_el$16 = _el$14.firstChild,
|
|
13302
|
+
[_el$17, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$16.nextSibling),
|
|
13303
|
+
_el$15 = _el$17.nextSibling,
|
|
13304
|
+
_el$18 = _el$14.nextSibling,
|
|
13305
|
+
[_el$19, _co$4] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling);
|
|
13306
|
+
$52FdA$solidjsweb.addEventListener(_el$13, "click", $52FdA$depictaiutilishared.catchify(_ref3 => {
|
|
13253
13307
|
let {
|
|
13254
13308
|
target: target,
|
|
13255
13309
|
currentTarget: currentTarget
|
|
@@ -13261,8 +13315,8 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13261
13315
|
const resizeObserver = new ResizeObserver($52FdA$depictaiutilishared.catchify(records => setModalBodyWidth(records.at(-1).contentRect.width)));
|
|
13262
13316
|
resizeObserver.observe(element);
|
|
13263
13317
|
$52FdA$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
13264
|
-
}, _el$
|
|
13265
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13318
|
+
}, _el$14);
|
|
13319
|
+
$52FdA$solidjsweb.insert(_el$14, search_field, _el$17, _co$3);
|
|
13266
13320
|
$52FdA$solidjsweb.use(el => {
|
|
13267
13321
|
$52FdA$depictaiutilishared.catchify((0, $246adc3df5966856$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_ || (() => 0.03 // 3% under SearchModalV2 by default
|
|
13268
13322
|
));
|
|
@@ -13277,28 +13331,28 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13277
13331
|
return;
|
|
13278
13332
|
}
|
|
13279
13333
|
el.replaceChildren(...[(() => {
|
|
13280
|
-
var _el$
|
|
13281
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13282
|
-
return _el$
|
|
13334
|
+
var _el$20 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$8);
|
|
13335
|
+
$52FdA$solidjsweb.insert(_el$20, renderedTextSuggestions);
|
|
13336
|
+
return _el$20;
|
|
13283
13337
|
})(), (() => {
|
|
13284
|
-
var _el$
|
|
13285
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13286
|
-
return _el$
|
|
13338
|
+
var _el$21 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$9);
|
|
13339
|
+
$52FdA$solidjsweb.insert(_el$21, renderedVisualSuggestions);
|
|
13340
|
+
return _el$21;
|
|
13287
13341
|
})(), discoverMoreSection]);
|
|
13288
13342
|
});
|
|
13289
|
-
}, _el$
|
|
13290
|
-
$52FdA$solidjsweb.insert(_el$
|
|
13343
|
+
}, _el$15);
|
|
13344
|
+
$52FdA$solidjsweb.insert(_el$13, $52FdA$solidjsweb.createComponent((0, $cc66bbf6e783bb58$export$f021bdedd3ec901a), {
|
|
13291
13345
|
styles: mergedCssObject
|
|
13292
|
-
}), _el$
|
|
13346
|
+
}), _el$19, _co$4);
|
|
13293
13347
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
13294
13348
|
var _v$ = !!modalLayoutStacked_(),
|
|
13295
13349
|
_v$2 = {
|
|
13296
13350
|
[random_classname_body]: true
|
|
13297
13351
|
},
|
|
13298
13352
|
_v$3 = !!noResults();
|
|
13299
|
-
_v$ !== _p$.e && _el$
|
|
13300
|
-
_p$.t = $52FdA$solidjsweb.classList(_el$
|
|
13301
|
-
_v$3 !== _p$.a && _el$
|
|
13353
|
+
_v$ !== _p$.e && _el$13.classList.toggle("stacked", _p$.e = _v$);
|
|
13354
|
+
_p$.t = $52FdA$solidjsweb.classList(_el$14, _v$2, _p$.t);
|
|
13355
|
+
_v$3 !== _p$.a && _el$15.classList.toggle("no-results", _p$.a = _v$3);
|
|
13302
13356
|
return _p$;
|
|
13303
13357
|
}, {
|
|
13304
13358
|
e: undefined,
|
|
@@ -13306,7 +13360,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
13306
13360
|
a: undefined
|
|
13307
13361
|
});
|
|
13308
13362
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
13309
|
-
return _el$
|
|
13363
|
+
return _el$13;
|
|
13310
13364
|
})()];
|
|
13311
13365
|
}
|
|
13312
13366
|
})];
|
|
@@ -16021,7 +16075,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
16021
16075
|
});
|
|
16022
16076
|
}
|
|
16023
16077
|
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
|
|
16078
|
+
$739c927cbecd26b0$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
16025
16079
|
function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
16026
16080
|
let {
|
|
16027
16081
|
depict_api_: depict_api_,
|
|
@@ -16336,10 +16390,12 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16336
16390
|
[_el$19, _co$8] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling),
|
|
16337
16391
|
_el$20 = _el$19.nextSibling,
|
|
16338
16392
|
[_el$21, _co$9] = $52FdA$solidjsweb.getNextMarker(_el$20.nextSibling),
|
|
16339
|
-
_el$22 = _el$
|
|
16393
|
+
_el$22 = _el$21.nextSibling,
|
|
16340
16394
|
[_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)
|
|
16395
|
+
_el$24 = _el$7.nextSibling,
|
|
16396
|
+
[_el$25, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
16397
|
+
_el$26 = _el$25.nextSibling,
|
|
16398
|
+
[_el$27, _co$12] = $52FdA$solidjsweb.getNextMarker(_el$26.nextSibling);
|
|
16343
16399
|
$52FdA$solidjsweb.insert(_el$7, get_search_field_elements, _el$9, _co$3);
|
|
16344
16400
|
$52FdA$solidjsweb.insert(_el$7, make_category_suggestion_card_ ? $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16345
16401
|
severity_: "error",
|
|
@@ -16378,6 +16434,11 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16378
16434
|
}
|
|
16379
16435
|
}), _el$13, _co$5);
|
|
16380
16436
|
$52FdA$solidjsweb.insert(_el$7, () => results_filters[0](), _el$15, _co$6);
|
|
16437
|
+
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
|
|
16438
|
+
get_search_query_: get_search_query_,
|
|
16439
|
+
i18n_: i18n_,
|
|
16440
|
+
is_fallback_: () => !search_results_.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(search_results_())
|
|
16441
|
+
}), _el$17, _co$7);
|
|
16381
16442
|
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
16382
16443
|
get when() {
|
|
16383
16444
|
var _selected_filters_$;
|
|
@@ -16401,7 +16462,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16401
16462
|
}
|
|
16402
16463
|
});
|
|
16403
16464
|
}
|
|
16404
|
-
}), _el$
|
|
16465
|
+
}), _el$19, _co$8);
|
|
16405
16466
|
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16406
16467
|
severity_: "error",
|
|
16407
16468
|
message_: "Search results failed",
|
|
@@ -16438,7 +16499,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16438
16499
|
}
|
|
16439
16500
|
});
|
|
16440
16501
|
}
|
|
16441
|
-
}), _el$
|
|
16502
|
+
}), _el$21, _co$9);
|
|
16442
16503
|
$52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16443
16504
|
severity_: "error",
|
|
16444
16505
|
message_: "Search recommendations failed",
|
|
@@ -16457,7 +16518,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16457
16518
|
}
|
|
16458
16519
|
});
|
|
16459
16520
|
}
|
|
16460
|
-
}), _el$
|
|
16521
|
+
}), _el$23, _co$10);
|
|
16461
16522
|
$52FdA$solidjsweb.insert(_el$6, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16462
16523
|
message_: "Scroll status failed",
|
|
16463
16524
|
severity_: "error",
|
|
@@ -16470,7 +16531,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16470
16531
|
number_of_results_: countOfProductsForUI
|
|
16471
16532
|
});
|
|
16472
16533
|
}
|
|
16473
|
-
}), _el$
|
|
16534
|
+
}), _el$25, _co$11);
|
|
16474
16535
|
$52FdA$solidjsweb.insert(_el$6, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
16475
16536
|
message_: "Floating buttons failed",
|
|
16476
16537
|
severity_: "error",
|
|
@@ -16483,7 +16544,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
16483
16544
|
i18n_: i18n_
|
|
16484
16545
|
});
|
|
16485
16546
|
}
|
|
16486
|
-
}), _el$
|
|
16547
|
+
}), _el$27, _co$12);
|
|
16487
16548
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
16488
16549
|
var _v$ = (0, $c95c6dd9e93acd82$export$44dad306455dddf).SEARCH_PAGE,
|
|
16489
16550
|
_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.31";
|
|
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
|