@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/server/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
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.32";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $b8hua$createSignal(false);
|
|
16
16
|
$b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
|
|
@@ -6925,6 +6925,14 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
6925
6925
|
}
|
|
6926
6926
|
}));
|
|
6927
6927
|
}
|
|
6928
|
+
|
|
6929
|
+
/** Shopify Lite's storefront (theme-static depict-content-blocks.js) treats screens up to 990px wide as phones. */
|
|
6930
|
+
const $3a2a35df91c580c6$export$1e15d45642067bf0 = "(max-width: 990px)";
|
|
6931
|
+
function $3a2a35df91c580c6$export$894065271726d798(visibility, isPhone) {
|
|
6932
|
+
if (visibility === "desktop") return !isPhone;
|
|
6933
|
+
if (visibility === "mobile") return isPhone;
|
|
6934
|
+
return true;
|
|
6935
|
+
}
|
|
6928
6936
|
const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
6929
6937
|
const {
|
|
6930
6938
|
link: link,
|
|
@@ -6940,6 +6948,7 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6940
6948
|
let hasSeenContentBlock = false;
|
|
6941
6949
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
6942
6950
|
const contentComponents = new Map();
|
|
6951
|
+
const isPhone = $00a5b94f0c11efbb$export$d9f36cf74e24d595((0, $3a2a35df91c580c6$export$1e15d45642067bf0));
|
|
6943
6952
|
const delayedServerBlocks = $b8hua$createMemo(prev => {
|
|
6944
6953
|
var _plp_meta;
|
|
6945
6954
|
// Do not update the server blocks while the products request is loading, to avoid this: https://depictaiworkspace.slack.com/archives/C01JB6E7K7G/p1750861454651319
|
|
@@ -6966,7 +6975,10 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6966
6975
|
if (!(blocksFromHistory !== null && blocksFromHistory !== void 0 && blocksFromHistory.length) && !hasSeenContentBlock) return developerProvided;
|
|
6967
6976
|
const content = [...(developerProvided || [])];
|
|
6968
6977
|
hasSeenContentBlock = true;
|
|
6978
|
+
const phone = isPhone();
|
|
6969
6979
|
blocksFromHistory.forEach(row => {
|
|
6980
|
+
// Leave a block hidden on this device out before placement, so products fill its cells instead of a gap.
|
|
6981
|
+
if (!$3a2a35df91c580c6$export$894065271726d798(row.visibility, phone)) return;
|
|
6970
6982
|
const {
|
|
6971
6983
|
content: {
|
|
6972
6984
|
link: link,
|
|
@@ -8577,6 +8589,31 @@ function $01c33966d9ddb108$export$f50b88e2a00918b5(fn) {
|
|
|
8577
8589
|
}
|
|
8578
8590
|
};
|
|
8579
8591
|
}
|
|
8592
|
+
var $f0f23d1343f3986f$var$_tmpl$ = ["<b", ">", "</b>"],
|
|
8593
|
+
$f0f23d1343f3986f$var$_tmpl$2 = ["<div", ' class="no-exact-matches" role="status">', "</div>"];
|
|
8594
|
+
function $f0f23d1343f3986f$export$cff209a01196ea2a(response) {
|
|
8595
|
+
var _response$displays;
|
|
8596
|
+
return (response === null || response === void 0 ? void 0 : response.is_fallback) === true && !!((_response$displays = response.displays) !== null && _response$displays !== void 0 && _response$displays.length);
|
|
8597
|
+
}
|
|
8598
|
+
function $f0f23d1343f3986f$export$6011f3c8b3c691cd(_ref) {
|
|
8599
|
+
let {
|
|
8600
|
+
get_search_query_: get_search_query_,
|
|
8601
|
+
i18n_: i18n_,
|
|
8602
|
+
is_fallback_: is_fallback_
|
|
8603
|
+
} = _ref;
|
|
8604
|
+
const contents = $b8hua$createMemo($b8hua$catchify1(() => {
|
|
8605
|
+
var _i18n_$get_no_exact_m, _i18n_$get_no_exact_m2;
|
|
8606
|
+
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($b8hua$ssr($f0f23d1343f3986f$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(get_search_query_())));
|
|
8607
|
+
}));
|
|
8608
|
+
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
8609
|
+
get when() {
|
|
8610
|
+
return is_fallback_() && get_search_query_().trim() !== "" && contents();
|
|
8611
|
+
},
|
|
8612
|
+
get children() {
|
|
8613
|
+
return $b8hua$ssr($f0f23d1343f3986f$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(contents()));
|
|
8614
|
+
}
|
|
8615
|
+
});
|
|
8616
|
+
}
|
|
8580
8617
|
function $d0883254246d3eb6$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
8581
8618
|
const isSelected = $b8hua$createMemo(() => {
|
|
8582
8619
|
const selectedValue = selectedIndex();
|
|
@@ -8716,6 +8753,7 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
8716
8753
|
i18n_: i18n_,
|
|
8717
8754
|
router_: router_,
|
|
8718
8755
|
set_modal_search_results_: set_modal_search_results_,
|
|
8756
|
+
set_instant_query_: set_instant_query_,
|
|
8719
8757
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
8720
8758
|
itemIndex_: itemIndex_,
|
|
8721
8759
|
selected_index_: selected_index_,
|
|
@@ -8754,6 +8792,7 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
8754
8792
|
// 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
|
|
8755
8793
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
8756
8794
|
set_modal_search_results_(() => search_results);
|
|
8795
|
+
if (set_instant_query_) $b8hua$createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
8757
8796
|
$b8hua$onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
8758
8797
|
if (itemIndex_) {
|
|
8759
8798
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -9737,6 +9776,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
9737
9776
|
body_: bodyAlignmentSignal = $b8hua$createSignal({})
|
|
9738
9777
|
} = alignmentSignals_ || {};
|
|
9739
9778
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
9779
|
+
const [get_instant_query_, set_instant_query_] = $b8hua$createSignal("");
|
|
9740
9780
|
const [get_modal_search_results, set_modal_search_results_] = $b8hua$createSignal();
|
|
9741
9781
|
const close_on_escape_handler = $b8hua$catchify1(_ref2 => {
|
|
9742
9782
|
let {
|
|
@@ -9861,7 +9901,14 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
9861
9901
|
get children() {
|
|
9862
9902
|
return $b8hua$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
9863
9903
|
get children() {
|
|
9864
|
-
return $
|
|
9904
|
+
return [$b8hua$createComponent((0, $f0f23d1343f3986f$export$6011f3c8b3c691cd), {
|
|
9905
|
+
get_search_query_: get_instant_query_,
|
|
9906
|
+
i18n_: i18n_,
|
|
9907
|
+
is_fallback_: () => {
|
|
9908
|
+
const results = get_modal_search_results();
|
|
9909
|
+
return !!results && !results.loading && $f0f23d1343f3986f$export$cff209a01196ea2a(results());
|
|
9910
|
+
}
|
|
9911
|
+
}), $f7414b949aeabc90$export$62f101a8aa597bf8({
|
|
9865
9912
|
search_field_value_: search_field_value_,
|
|
9866
9913
|
depict_api_: depict_api_,
|
|
9867
9914
|
merchant_: merchant_,
|
|
@@ -9869,6 +9916,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
9869
9916
|
market_: market_,
|
|
9870
9917
|
router_: router_,
|
|
9871
9918
|
set_modal_search_results_: set_modal_search_results_,
|
|
9919
|
+
set_instant_query_: set_instant_query_,
|
|
9872
9920
|
InstantCardImageComponent_: props => $b8hua$createMemo(() => {
|
|
9873
9921
|
var _props$alt_;
|
|
9874
9922
|
return $b8hua$ContainedImage({
|
|
@@ -9884,7 +9932,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
9884
9932
|
});
|
|
9885
9933
|
}),
|
|
9886
9934
|
...instant_results_options_
|
|
9887
|
-
});
|
|
9935
|
+
})];
|
|
9888
9936
|
}
|
|
9889
9937
|
});
|
|
9890
9938
|
}
|
|
@@ -10347,7 +10395,7 @@ function $1abb91ab5abc8994$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
10347
10395
|
instantResultsIndex_: instantResultsIndex_
|
|
10348
10396
|
};
|
|
10349
10397
|
}
|
|
10350
|
-
var $06fcd2a345efd24d$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--></div>"],
|
|
10398
|
+
var $06fcd2a345efd24d$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"],
|
|
10351
10399
|
$06fcd2a345efd24d$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
10352
10400
|
$06fcd2a345efd24d$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
10353
10401
|
$06fcd2a345efd24d$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
@@ -10418,6 +10466,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
10418
10466
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
10419
10467
|
const random_classname_body = $b8hua$make_random_classname();
|
|
10420
10468
|
const backdropRandomClassname = $b8hua$make_random_classname();
|
|
10469
|
+
const [get_instant_query_, set_instant_query_] = $b8hua$createSignal("");
|
|
10421
10470
|
const [get_modal_search_results_, set_modal_search_results_] = $b8hua$createSignal();
|
|
10422
10471
|
const close_on_escape_handler = $b8hua$catchify1(evt => {
|
|
10423
10472
|
if (evt.key === "Escape") {
|
|
@@ -10579,7 +10628,14 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
10579
10628
|
get children() {
|
|
10580
10629
|
return $b8hua$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
10581
10630
|
get children() {
|
|
10582
|
-
return $b8hua$ssr($06fcd2a345efd24d$var$_tmpl$, $b8hua$ssrHydrationKey(), "order:" + $b8hua$escape(itemIndexes.instantResultsIndex_(), true), $b8hua$escape(i18n_.products_()), $b8hua$escape($
|
|
10631
|
+
return $b8hua$ssr($06fcd2a345efd24d$var$_tmpl$, $b8hua$ssrHydrationKey(), "order:" + $b8hua$escape(itemIndexes.instantResultsIndex_(), true), $b8hua$escape(i18n_.products_()), $b8hua$escape($b8hua$createComponent((0, $f0f23d1343f3986f$export$6011f3c8b3c691cd), {
|
|
10632
|
+
get_search_query_: get_instant_query_,
|
|
10633
|
+
i18n_: i18n_,
|
|
10634
|
+
is_fallback_: () => {
|
|
10635
|
+
const results = get_modal_search_results_();
|
|
10636
|
+
return !!results && !results.loading && $f0f23d1343f3986f$export$cff209a01196ea2a(results());
|
|
10637
|
+
}
|
|
10638
|
+
})), $b8hua$escape($f7414b949aeabc90$export$62f101a8aa597bf8({
|
|
10583
10639
|
search_field_value_: search_field_value_,
|
|
10584
10640
|
depict_api_: depict_api_,
|
|
10585
10641
|
merchant_: merchant_,
|
|
@@ -10587,6 +10643,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
10587
10643
|
market_: market_,
|
|
10588
10644
|
router_: router_,
|
|
10589
10645
|
set_modal_search_results_: set_modal_search_results_,
|
|
10646
|
+
set_instant_query_: set_instant_query_,
|
|
10590
10647
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
10591
10648
|
selected_index_: selected_index_,
|
|
10592
10649
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -13156,7 +13213,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
13156
13213
|
});
|
|
13157
13214
|
}
|
|
13158
13215
|
var $da279c5a540c6846$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
13159
|
-
$da279c5a540c6846$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
13216
|
+
$da279c5a540c6846$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
13160
13217
|
function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
13161
13218
|
let {
|
|
13162
13219
|
depict_api_: depict_api_,
|
|
@@ -13479,7 +13536,11 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13479
13536
|
}
|
|
13480
13537
|
});
|
|
13481
13538
|
}
|
|
13482
|
-
})), $b8hua$escape(results_filters[0]()), $b8hua$escape($b8hua$createComponent((0, $
|
|
13539
|
+
})), $b8hua$escape(results_filters[0]()), $b8hua$escape($b8hua$createComponent((0, $f0f23d1343f3986f$export$6011f3c8b3c691cd), {
|
|
13540
|
+
get_search_query_: get_search_query_,
|
|
13541
|
+
i18n_: i18n_,
|
|
13542
|
+
is_fallback_: () => !search_results_.loading && $f0f23d1343f3986f$export$cff209a01196ea2a(search_results_())
|
|
13543
|
+
})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
13483
13544
|
get when() {
|
|
13484
13545
|
var _selected_filters_$;
|
|
13485
13546
|
return (_selected_filters_$ = selected_filters_[0]()) === null || _selected_filters_$ === void 0 ? void 0 : _selected_filters_$.length;
|
package/server/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.32";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $5vyXB$solidjs.createSignal(false);
|
|
115
115
|
$5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -6633,6 +6633,14 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
6633
6633
|
}
|
|
6634
6634
|
}));
|
|
6635
6635
|
}
|
|
6636
|
+
|
|
6637
|
+
/** Shopify Lite's storefront (theme-static depict-content-blocks.js) treats screens up to 990px wide as phones. */
|
|
6638
|
+
const $05b9da7b91793a99$export$1e15d45642067bf0 = "(max-width: 990px)";
|
|
6639
|
+
function $05b9da7b91793a99$export$894065271726d798(visibility, isPhone) {
|
|
6640
|
+
if (visibility === "desktop") return !isPhone;
|
|
6641
|
+
if (visibility === "mobile") return isPhone;
|
|
6642
|
+
return true;
|
|
6643
|
+
}
|
|
6636
6644
|
const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
6637
6645
|
const {
|
|
6638
6646
|
link: link,
|
|
@@ -6648,6 +6656,7 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6648
6656
|
let hasSeenContentBlock = false;
|
|
6649
6657
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
6650
6658
|
const contentComponents = new Map();
|
|
6659
|
+
const isPhone = $b54e6192d0caa293$export$d9f36cf74e24d595((0, $05b9da7b91793a99$export$1e15d45642067bf0));
|
|
6651
6660
|
const delayedServerBlocks = $5vyXB$solidjs.createMemo(prev => {
|
|
6652
6661
|
// Do not update the server blocks while the products request is loading, to avoid this: https://depictaiworkspace.slack.com/archives/C01JB6E7K7G/p1750861454651319
|
|
6653
6662
|
if (products_request_loading_()) return prev;
|
|
@@ -6673,7 +6682,10 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6673
6682
|
if (!blocksFromHistory?.length && !hasSeenContentBlock) return developerProvided;
|
|
6674
6683
|
const content = [...(developerProvided || [])];
|
|
6675
6684
|
hasSeenContentBlock = true;
|
|
6685
|
+
const phone = isPhone();
|
|
6676
6686
|
blocksFromHistory.forEach(row => {
|
|
6687
|
+
// Leave a block hidden on this device out before placement, so products fill its cells instead of a gap.
|
|
6688
|
+
if (!$05b9da7b91793a99$export$894065271726d798(row.visibility, phone)) return;
|
|
6677
6689
|
const {
|
|
6678
6690
|
content: {
|
|
6679
6691
|
link: link,
|
|
@@ -8188,6 +8200,26 @@ function $deaaf04362a1bc71$export$f50b88e2a00918b5(fn) {
|
|
|
8188
8200
|
}
|
|
8189
8201
|
};
|
|
8190
8202
|
}
|
|
8203
|
+
var $b84056ffaebb3f3f$var$_tmpl$ = ["<b", ">", "</b>"],
|
|
8204
|
+
$b84056ffaebb3f3f$var$_tmpl$2 = ["<div", ' class="no-exact-matches" role="status">', "</div>"];
|
|
8205
|
+
function $b84056ffaebb3f3f$export$cff209a01196ea2a(response) {
|
|
8206
|
+
return response?.is_fallback === true && !!response.displays?.length;
|
|
8207
|
+
}
|
|
8208
|
+
function $b84056ffaebb3f3f$export$6011f3c8b3c691cd({
|
|
8209
|
+
get_search_query_: get_search_query_,
|
|
8210
|
+
i18n_: i18n_,
|
|
8211
|
+
is_fallback_: is_fallback_
|
|
8212
|
+
}) {
|
|
8213
|
+
const contents = $5vyXB$solidjs.createMemo($5vyXB$depictaiutilishared.catchify(() => i18n_.get_no_exact_matches_?.()?.($5vyXB$solidjsweb.ssr($b84056ffaebb3f3f$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(get_search_query_())))));
|
|
8214
|
+
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
8215
|
+
get when() {
|
|
8216
|
+
return is_fallback_() && get_search_query_().trim() !== "" && contents();
|
|
8217
|
+
},
|
|
8218
|
+
get children() {
|
|
8219
|
+
return $5vyXB$solidjsweb.ssr($b84056ffaebb3f3f$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(contents()));
|
|
8220
|
+
}
|
|
8221
|
+
});
|
|
8222
|
+
}
|
|
8191
8223
|
function $f144ea315d9e4caa$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
8192
8224
|
const isSelected = $5vyXB$solidjs.createMemo(() => {
|
|
8193
8225
|
const selectedValue = selectedIndex();
|
|
@@ -8317,6 +8349,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
|
8317
8349
|
i18n_: i18n_,
|
|
8318
8350
|
router_: router_,
|
|
8319
8351
|
set_modal_search_results_: set_modal_search_results_,
|
|
8352
|
+
set_instant_query_: set_instant_query_,
|
|
8320
8353
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
8321
8354
|
itemIndex_: itemIndex_,
|
|
8322
8355
|
selected_index_: selected_index_,
|
|
@@ -8352,6 +8385,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
|
8352
8385
|
// 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
|
|
8353
8386
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
8354
8387
|
set_modal_search_results_(() => search_results);
|
|
8388
|
+
if (set_instant_query_) $5vyXB$solidjs.createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
8355
8389
|
$5vyXB$solidjs.onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
8356
8390
|
if (itemIndex_) {
|
|
8357
8391
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -9282,6 +9316,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
9282
9316
|
body_: bodyAlignmentSignal = $5vyXB$solidjs.createSignal({})
|
|
9283
9317
|
} = alignmentSignals_ || {};
|
|
9284
9318
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
9319
|
+
const [get_instant_query_, set_instant_query_] = $5vyXB$solidjs.createSignal("");
|
|
9285
9320
|
const [get_modal_search_results, set_modal_search_results_] = $5vyXB$solidjs.createSignal();
|
|
9286
9321
|
const close_on_escape_handler = $5vyXB$depictaiutilishared.catchify(({
|
|
9287
9322
|
key: key
|
|
@@ -9401,7 +9436,14 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
9401
9436
|
get children() {
|
|
9402
9437
|
return $5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
9403
9438
|
get children() {
|
|
9404
|
-
return $
|
|
9439
|
+
return [$5vyXB$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
|
|
9440
|
+
get_search_query_: get_instant_query_,
|
|
9441
|
+
i18n_: i18n_,
|
|
9442
|
+
is_fallback_: () => {
|
|
9443
|
+
const results = get_modal_search_results();
|
|
9444
|
+
return !!results && !results.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(results());
|
|
9445
|
+
}
|
|
9446
|
+
}), $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
9405
9447
|
search_field_value_: search_field_value_,
|
|
9406
9448
|
depict_api_: depict_api_,
|
|
9407
9449
|
merchant_: merchant_,
|
|
@@ -9409,6 +9451,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
9409
9451
|
market_: market_,
|
|
9410
9452
|
router_: router_,
|
|
9411
9453
|
set_modal_search_results_: set_modal_search_results_,
|
|
9454
|
+
set_instant_query_: set_instant_query_,
|
|
9412
9455
|
InstantCardImageComponent_: props => $5vyXB$solidjs.createMemo(() => $5vyXB$depictaiutilishared.ContainedImage({
|
|
9413
9456
|
loading: "lazy",
|
|
9414
9457
|
aspect_ratio: 1,
|
|
@@ -9421,7 +9464,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
9421
9464
|
sizes: "0px"
|
|
9422
9465
|
})),
|
|
9423
9466
|
...instant_results_options_
|
|
9424
|
-
});
|
|
9467
|
+
})];
|
|
9425
9468
|
}
|
|
9426
9469
|
});
|
|
9427
9470
|
}
|
|
@@ -9858,7 +9901,7 @@ function $3b9f2020814c7876$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
9858
9901
|
instantResultsIndex_: instantResultsIndex_
|
|
9859
9902
|
};
|
|
9860
9903
|
}
|
|
9861
|
-
var $11597ae03e703a47$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--></div>"],
|
|
9904
|
+
var $11597ae03e703a47$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"],
|
|
9862
9905
|
$11597ae03e703a47$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9863
9906
|
$11597ae03e703a47$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
9864
9907
|
$11597ae03e703a47$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
@@ -9928,6 +9971,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
9928
9971
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
9929
9972
|
const random_classname_body = $5vyXB$depictaiutilishared.make_random_classname();
|
|
9930
9973
|
const backdropRandomClassname = $5vyXB$depictaiutilishared.make_random_classname();
|
|
9974
|
+
const [get_instant_query_, set_instant_query_] = $5vyXB$solidjs.createSignal("");
|
|
9931
9975
|
const [get_modal_search_results_, set_modal_search_results_] = $5vyXB$solidjs.createSignal();
|
|
9932
9976
|
const close_on_escape_handler = $5vyXB$depictaiutilishared.catchify(evt => {
|
|
9933
9977
|
if (evt.key === "Escape") {
|
|
@@ -10082,7 +10126,14 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
10082
10126
|
get children() {
|
|
10083
10127
|
return $5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
10084
10128
|
get children() {
|
|
10085
|
-
return $5vyXB$solidjsweb.ssr($11597ae03e703a47$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), "order:" + $5vyXB$solidjsweb.escape(itemIndexes.instantResultsIndex_(), true), $5vyXB$solidjsweb.escape(i18n_.products_()), $5vyXB$solidjsweb.escape($
|
|
10129
|
+
return $5vyXB$solidjsweb.ssr($11597ae03e703a47$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), "order:" + $5vyXB$solidjsweb.escape(itemIndexes.instantResultsIndex_(), true), $5vyXB$solidjsweb.escape(i18n_.products_()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
|
|
10130
|
+
get_search_query_: get_instant_query_,
|
|
10131
|
+
i18n_: i18n_,
|
|
10132
|
+
is_fallback_: () => {
|
|
10133
|
+
const results = get_modal_search_results_();
|
|
10134
|
+
return !!results && !results.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(results());
|
|
10135
|
+
}
|
|
10136
|
+
})), $5vyXB$solidjsweb.escape($6ae556e536054e87$export$62f101a8aa597bf8({
|
|
10086
10137
|
search_field_value_: search_field_value_,
|
|
10087
10138
|
depict_api_: depict_api_,
|
|
10088
10139
|
merchant_: merchant_,
|
|
@@ -10090,6 +10141,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
10090
10141
|
market_: market_,
|
|
10091
10142
|
router_: router_,
|
|
10092
10143
|
set_modal_search_results_: set_modal_search_results_,
|
|
10144
|
+
set_instant_query_: set_instant_query_,
|
|
10093
10145
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
10094
10146
|
selected_index_: selected_index_,
|
|
10095
10147
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -12445,7 +12497,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12445
12497
|
});
|
|
12446
12498
|
}
|
|
12447
12499
|
var $f1d7cb69f839a526$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
12448
|
-
$f1d7cb69f839a526$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
12500
|
+
$f1d7cb69f839a526$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
12449
12501
|
function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
12450
12502
|
depict_api_: depict_api_,
|
|
12451
12503
|
search_field_value_: search_field_value_,
|
|
@@ -12749,7 +12801,11 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12749
12801
|
}
|
|
12750
12802
|
});
|
|
12751
12803
|
}
|
|
12752
|
-
})), $5vyXB$solidjsweb.escape(results_filters[0]()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $
|
|
12804
|
+
})), $5vyXB$solidjsweb.escape(results_filters[0]()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
|
|
12805
|
+
get_search_query_: get_search_query_,
|
|
12806
|
+
i18n_: i18n_,
|
|
12807
|
+
is_fallback_: () => !search_results_.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(search_results_())
|
|
12808
|
+
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
12753
12809
|
get when() {
|
|
12754
12810
|
return selected_filters_[0]()?.length;
|
|
12755
12811
|
},
|
package/server/latest/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
|
package/server/latest/index.js
CHANGED
|
@@ -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.10.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.32";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $i7OB2$createSignal(false);
|
|
13
13
|
$i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
|
|
@@ -6531,6 +6531,14 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
6531
6531
|
}
|
|
6532
6532
|
}));
|
|
6533
6533
|
}
|
|
6534
|
+
|
|
6535
|
+
/** Shopify Lite's storefront (theme-static depict-content-blocks.js) treats screens up to 990px wide as phones. */
|
|
6536
|
+
const $46de6aba0746da31$export$1e15d45642067bf0 = "(max-width: 990px)";
|
|
6537
|
+
function $46de6aba0746da31$export$894065271726d798(visibility, isPhone) {
|
|
6538
|
+
if (visibility === "desktop") return !isPhone;
|
|
6539
|
+
if (visibility === "mobile") return isPhone;
|
|
6540
|
+
return true;
|
|
6541
|
+
}
|
|
6534
6542
|
const $486360b09f0d5729$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
6535
6543
|
const {
|
|
6536
6544
|
link: link,
|
|
@@ -6546,6 +6554,7 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6546
6554
|
let hasSeenContentBlock = false;
|
|
6547
6555
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
6548
6556
|
const contentComponents = new Map();
|
|
6557
|
+
const isPhone = $dc9262ef6f786812$export$d9f36cf74e24d595((0, $46de6aba0746da31$export$1e15d45642067bf0));
|
|
6549
6558
|
const delayedServerBlocks = $i7OB2$createMemo(prev => {
|
|
6550
6559
|
// Do not update the server blocks while the products request is loading, to avoid this: https://depictaiworkspace.slack.com/archives/C01JB6E7K7G/p1750861454651319
|
|
6551
6560
|
if (products_request_loading_()) return prev;
|
|
@@ -6571,7 +6580,10 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
6571
6580
|
if (!blocksFromHistory?.length && !hasSeenContentBlock) return developerProvided;
|
|
6572
6581
|
const content = [...(developerProvided || [])];
|
|
6573
6582
|
hasSeenContentBlock = true;
|
|
6583
|
+
const phone = isPhone();
|
|
6574
6584
|
blocksFromHistory.forEach(row => {
|
|
6585
|
+
// Leave a block hidden on this device out before placement, so products fill its cells instead of a gap.
|
|
6586
|
+
if (!$46de6aba0746da31$export$894065271726d798(row.visibility, phone)) return;
|
|
6575
6587
|
const {
|
|
6576
6588
|
content: {
|
|
6577
6589
|
link: link,
|
|
@@ -8086,6 +8098,26 @@ function $d8dbf52fea1773e2$export$f50b88e2a00918b5(fn) {
|
|
|
8086
8098
|
}
|
|
8087
8099
|
};
|
|
8088
8100
|
}
|
|
8101
|
+
var $0ea3251b35307dc0$var$_tmpl$ = ["<b", ">", "</b>"],
|
|
8102
|
+
$0ea3251b35307dc0$var$_tmpl$2 = ["<div", ' class="no-exact-matches" role="status">', "</div>"];
|
|
8103
|
+
function $0ea3251b35307dc0$export$cff209a01196ea2a(response) {
|
|
8104
|
+
return response?.is_fallback === true && !!response.displays?.length;
|
|
8105
|
+
}
|
|
8106
|
+
function $0ea3251b35307dc0$export$6011f3c8b3c691cd({
|
|
8107
|
+
get_search_query_: get_search_query_,
|
|
8108
|
+
i18n_: i18n_,
|
|
8109
|
+
is_fallback_: is_fallback_
|
|
8110
|
+
}) {
|
|
8111
|
+
const contents = $i7OB2$createMemo($i7OB2$catchify1(() => i18n_.get_no_exact_matches_?.()?.($i7OB2$ssr($0ea3251b35307dc0$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(get_search_query_())))));
|
|
8112
|
+
return $i7OB2$createComponent((0, $i7OB2$Show), {
|
|
8113
|
+
get when() {
|
|
8114
|
+
return is_fallback_() && get_search_query_().trim() !== "" && contents();
|
|
8115
|
+
},
|
|
8116
|
+
get children() {
|
|
8117
|
+
return $i7OB2$ssr($0ea3251b35307dc0$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape(contents()));
|
|
8118
|
+
}
|
|
8119
|
+
});
|
|
8120
|
+
}
|
|
8089
8121
|
function $f4125ce4984deee6$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
8090
8122
|
const isSelected = $i7OB2$createMemo(() => {
|
|
8091
8123
|
const selectedValue = selectedIndex();
|
|
@@ -8215,6 +8247,7 @@ function $eea41f703612261b$export$62f101a8aa597bf8({
|
|
|
8215
8247
|
i18n_: i18n_,
|
|
8216
8248
|
router_: router_,
|
|
8217
8249
|
set_modal_search_results_: set_modal_search_results_,
|
|
8250
|
+
set_instant_query_: set_instant_query_,
|
|
8218
8251
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
8219
8252
|
itemIndex_: itemIndex_,
|
|
8220
8253
|
selected_index_: selected_index_,
|
|
@@ -8250,6 +8283,7 @@ function $eea41f703612261b$export$62f101a8aa597bf8({
|
|
|
8250
8283
|
// 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
|
|
8251
8284
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
8252
8285
|
set_modal_search_results_(() => search_results);
|
|
8286
|
+
if (set_instant_query_) $i7OB2$createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
8253
8287
|
$i7OB2$onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
8254
8288
|
if (itemIndex_) {
|
|
8255
8289
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -9180,6 +9214,7 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
9180
9214
|
body_: bodyAlignmentSignal = $i7OB2$createSignal({})
|
|
9181
9215
|
} = alignmentSignals_ || {};
|
|
9182
9216
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
9217
|
+
const [get_instant_query_, set_instant_query_] = $i7OB2$createSignal("");
|
|
9183
9218
|
const [get_modal_search_results, set_modal_search_results_] = $i7OB2$createSignal();
|
|
9184
9219
|
const close_on_escape_handler = $i7OB2$catchify1(({
|
|
9185
9220
|
key: key
|
|
@@ -9299,7 +9334,14 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
9299
9334
|
get children() {
|
|
9300
9335
|
return $i7OB2$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
|
|
9301
9336
|
get children() {
|
|
9302
|
-
return $
|
|
9337
|
+
return [$i7OB2$createComponent((0, $0ea3251b35307dc0$export$6011f3c8b3c691cd), {
|
|
9338
|
+
get_search_query_: get_instant_query_,
|
|
9339
|
+
i18n_: i18n_,
|
|
9340
|
+
is_fallback_: () => {
|
|
9341
|
+
const results = get_modal_search_results();
|
|
9342
|
+
return !!results && !results.loading && $0ea3251b35307dc0$export$cff209a01196ea2a(results());
|
|
9343
|
+
}
|
|
9344
|
+
}), $eea41f703612261b$export$62f101a8aa597bf8({
|
|
9303
9345
|
search_field_value_: search_field_value_,
|
|
9304
9346
|
depict_api_: depict_api_,
|
|
9305
9347
|
merchant_: merchant_,
|
|
@@ -9307,6 +9349,7 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
9307
9349
|
market_: market_,
|
|
9308
9350
|
router_: router_,
|
|
9309
9351
|
set_modal_search_results_: set_modal_search_results_,
|
|
9352
|
+
set_instant_query_: set_instant_query_,
|
|
9310
9353
|
InstantCardImageComponent_: props => $i7OB2$createMemo(() => $i7OB2$ContainedImage({
|
|
9311
9354
|
loading: "lazy",
|
|
9312
9355
|
aspect_ratio: 1,
|
|
@@ -9319,7 +9362,7 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
9319
9362
|
sizes: "0px"
|
|
9320
9363
|
})),
|
|
9321
9364
|
...instant_results_options_
|
|
9322
|
-
});
|
|
9365
|
+
})];
|
|
9323
9366
|
}
|
|
9324
9367
|
});
|
|
9325
9368
|
}
|
|
@@ -9756,7 +9799,7 @@ function $140dbdee2e0b252f$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
9756
9799
|
instantResultsIndex_: instantResultsIndex_
|
|
9757
9800
|
};
|
|
9758
9801
|
}
|
|
9759
|
-
var $500a16dd18ee5a71$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--></div>"],
|
|
9802
|
+
var $500a16dd18ee5a71$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"],
|
|
9760
9803
|
$500a16dd18ee5a71$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9761
9804
|
$500a16dd18ee5a71$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
9762
9805
|
$500a16dd18ee5a71$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
@@ -9826,6 +9869,7 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9826
9869
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
9827
9870
|
const random_classname_body = $i7OB2$make_random_classname();
|
|
9828
9871
|
const backdropRandomClassname = $i7OB2$make_random_classname();
|
|
9872
|
+
const [get_instant_query_, set_instant_query_] = $i7OB2$createSignal("");
|
|
9829
9873
|
const [get_modal_search_results_, set_modal_search_results_] = $i7OB2$createSignal();
|
|
9830
9874
|
const close_on_escape_handler = $i7OB2$catchify1(evt => {
|
|
9831
9875
|
if (evt.key === "Escape") {
|
|
@@ -9980,7 +10024,14 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9980
10024
|
get children() {
|
|
9981
10025
|
return $i7OB2$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
|
|
9982
10026
|
get children() {
|
|
9983
|
-
return $i7OB2$ssr($500a16dd18ee5a71$var$_tmpl$, $i7OB2$ssrHydrationKey(), "order:" + $i7OB2$escape(itemIndexes.instantResultsIndex_(), true), $i7OB2$escape(i18n_.products_()), $i7OB2$escape($
|
|
10027
|
+
return $i7OB2$ssr($500a16dd18ee5a71$var$_tmpl$, $i7OB2$ssrHydrationKey(), "order:" + $i7OB2$escape(itemIndexes.instantResultsIndex_(), true), $i7OB2$escape(i18n_.products_()), $i7OB2$escape($i7OB2$createComponent((0, $0ea3251b35307dc0$export$6011f3c8b3c691cd), {
|
|
10028
|
+
get_search_query_: get_instant_query_,
|
|
10029
|
+
i18n_: i18n_,
|
|
10030
|
+
is_fallback_: () => {
|
|
10031
|
+
const results = get_modal_search_results_();
|
|
10032
|
+
return !!results && !results.loading && $0ea3251b35307dc0$export$cff209a01196ea2a(results());
|
|
10033
|
+
}
|
|
10034
|
+
})), $i7OB2$escape($eea41f703612261b$export$62f101a8aa597bf8({
|
|
9984
10035
|
search_field_value_: search_field_value_,
|
|
9985
10036
|
depict_api_: depict_api_,
|
|
9986
10037
|
merchant_: merchant_,
|
|
@@ -9988,6 +10039,7 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9988
10039
|
market_: market_,
|
|
9989
10040
|
router_: router_,
|
|
9990
10041
|
set_modal_search_results_: set_modal_search_results_,
|
|
10042
|
+
set_instant_query_: set_instant_query_,
|
|
9991
10043
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
9992
10044
|
selected_index_: selected_index_,
|
|
9993
10045
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -12343,7 +12395,7 @@ function $0e562a5b247b1fc2$export$44f738469d5570cf({
|
|
|
12343
12395
|
});
|
|
12344
12396
|
}
|
|
12345
12397
|
var $7097477c78a89208$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
|
|
12346
|
-
$7097477c78a89208$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
12398
|
+
$7097477c78a89208$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
|
|
12347
12399
|
function $7097477c78a89208$export$a54ec244c8863715({
|
|
12348
12400
|
depict_api_: depict_api_,
|
|
12349
12401
|
search_field_value_: search_field_value_,
|
|
@@ -12647,7 +12699,11 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12647
12699
|
}
|
|
12648
12700
|
});
|
|
12649
12701
|
}
|
|
12650
|
-
})), $i7OB2$escape(results_filters[0]()), $i7OB2$escape($i7OB2$createComponent((0, $
|
|
12702
|
+
})), $i7OB2$escape(results_filters[0]()), $i7OB2$escape($i7OB2$createComponent((0, $0ea3251b35307dc0$export$6011f3c8b3c691cd), {
|
|
12703
|
+
get_search_query_: get_search_query_,
|
|
12704
|
+
i18n_: i18n_,
|
|
12705
|
+
is_fallback_: () => !search_results_.loading && $0ea3251b35307dc0$export$cff209a01196ea2a(search_results_())
|
|
12706
|
+
})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
12651
12707
|
get when() {
|
|
12652
12708
|
return selected_filters_[0]()?.length;
|
|
12653
12709
|
},
|