@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/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 = $gVhhF$solidjs.createSignal(false);
|
|
115
115
|
$gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -8139,6 +8139,14 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
8139
8139
|
}
|
|
8140
8140
|
}));
|
|
8141
8141
|
}
|
|
8142
|
+
|
|
8143
|
+
/** Shopify Lite's storefront (theme-static depict-content-blocks.js) treats screens up to 990px wide as phones. */
|
|
8144
|
+
const $05b9da7b91793a99$export$1e15d45642067bf0 = "(max-width: 990px)";
|
|
8145
|
+
function $05b9da7b91793a99$export$894065271726d798(visibility, isPhone) {
|
|
8146
|
+
if (visibility === "desktop") return !isPhone;
|
|
8147
|
+
if (visibility === "mobile") return isPhone;
|
|
8148
|
+
return true;
|
|
8149
|
+
}
|
|
8142
8150
|
const $0a80939bf0a1e9cc$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8143
8151
|
const {
|
|
8144
8152
|
link: link,
|
|
@@ -8154,6 +8162,7 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8154
8162
|
let hasSeenContentBlock = false;
|
|
8155
8163
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
8156
8164
|
const contentComponents = new Map();
|
|
8165
|
+
const isPhone = $b54e6192d0caa293$export$d9f36cf74e24d595((0, $05b9da7b91793a99$export$1e15d45642067bf0));
|
|
8157
8166
|
const delayedServerBlocks = $gVhhF$solidjs.createMemo(prev => {
|
|
8158
8167
|
// Do not update the server blocks while the products request is loading, to avoid this: https://depictaiworkspace.slack.com/archives/C01JB6E7K7G/p1750861454651319
|
|
8159
8168
|
if (products_request_loading_()) return prev;
|
|
@@ -8179,7 +8188,10 @@ function $0a80939bf0a1e9cc$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8179
8188
|
if (!blocksFromHistory?.length && !hasSeenContentBlock) return developerProvided;
|
|
8180
8189
|
const content = [...(developerProvided || [])];
|
|
8181
8190
|
hasSeenContentBlock = true;
|
|
8191
|
+
const phone = isPhone();
|
|
8182
8192
|
blocksFromHistory.forEach(row => {
|
|
8193
|
+
// Leave a block hidden on this device out before placement, so products fill its cells instead of a gap.
|
|
8194
|
+
if (!$05b9da7b91793a99$export$894065271726d798(row.visibility, phone)) return;
|
|
8183
8195
|
const {
|
|
8184
8196
|
content: {
|
|
8185
8197
|
link: link,
|
|
@@ -9887,6 +9899,32 @@ function $deaaf04362a1bc71$export$f50b88e2a00918b5(fn) {
|
|
|
9887
9899
|
}
|
|
9888
9900
|
};
|
|
9889
9901
|
}
|
|
9902
|
+
var $b84056ffaebb3f3f$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
9903
|
+
$b84056ffaebb3f3f$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=no-exact-matches role=status>`);
|
|
9904
|
+
function $b84056ffaebb3f3f$export$cff209a01196ea2a(response) {
|
|
9905
|
+
return response?.is_fallback === true && !!response.displays?.length;
|
|
9906
|
+
}
|
|
9907
|
+
function $b84056ffaebb3f3f$export$6011f3c8b3c691cd({
|
|
9908
|
+
get_search_query_: get_search_query_,
|
|
9909
|
+
i18n_: i18n_,
|
|
9910
|
+
is_fallback_: is_fallback_
|
|
9911
|
+
}) {
|
|
9912
|
+
const contents = $gVhhF$solidjs.createMemo($gVhhF$depictaiutilishared.catchify(() => i18n_.get_no_exact_matches_?.()?.((() => {
|
|
9913
|
+
var _el$ = $gVhhF$solidjsweb.getNextElement($b84056ffaebb3f3f$var$_tmpl$);
|
|
9914
|
+
$gVhhF$solidjsweb.insert(_el$, get_search_query_);
|
|
9915
|
+
return _el$;
|
|
9916
|
+
})())));
|
|
9917
|
+
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
9918
|
+
get when() {
|
|
9919
|
+
return $gVhhF$solidjsweb.memo(() => !!(is_fallback_() && get_search_query_().trim() !== ""))() && contents();
|
|
9920
|
+
},
|
|
9921
|
+
get children() {
|
|
9922
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($b84056ffaebb3f3f$var$_tmpl$2);
|
|
9923
|
+
$gVhhF$solidjsweb.insert(_el$2, contents);
|
|
9924
|
+
return _el$2;
|
|
9925
|
+
}
|
|
9926
|
+
});
|
|
9927
|
+
}
|
|
9890
9928
|
function $f144ea315d9e4caa$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
9891
9929
|
const isSelected = $gVhhF$solidjs.createMemo(() => {
|
|
9892
9930
|
const selectedValue = selectedIndex();
|
|
@@ -10101,6 +10139,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
|
10101
10139
|
i18n_: i18n_,
|
|
10102
10140
|
router_: router_,
|
|
10103
10141
|
set_modal_search_results_: set_modal_search_results_,
|
|
10142
|
+
set_instant_query_: set_instant_query_,
|
|
10104
10143
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
10105
10144
|
itemIndex_: itemIndex_,
|
|
10106
10145
|
selected_index_: selected_index_,
|
|
@@ -10136,6 +10175,7 @@ function $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
|
10136
10175
|
// 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
|
|
10137
10176
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
10138
10177
|
set_modal_search_results_(() => search_results);
|
|
10178
|
+
if (set_instant_query_) $gVhhF$solidjs.createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
10139
10179
|
$gVhhF$solidjs.onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
10140
10180
|
if (itemIndex_) {
|
|
10141
10181
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -11390,6 +11430,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
11390
11430
|
body_: bodyAlignmentSignal = $gVhhF$solidjs.createSignal({})
|
|
11391
11431
|
} = alignmentSignals_ || {};
|
|
11392
11432
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
11433
|
+
const [get_instant_query_, set_instant_query_] = $gVhhF$solidjs.createSignal("");
|
|
11393
11434
|
const [get_modal_search_results, set_modal_search_results_] = $gVhhF$solidjs.createSignal();
|
|
11394
11435
|
const close_on_escape_handler = $gVhhF$depictaiutilishared.catchify(({
|
|
11395
11436
|
key: key
|
|
@@ -11544,7 +11585,14 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
11544
11585
|
get children() {
|
|
11545
11586
|
return $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
11546
11587
|
get children() {
|
|
11547
|
-
return $
|
|
11588
|
+
return [$gVhhF$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
|
|
11589
|
+
get_search_query_: get_instant_query_,
|
|
11590
|
+
i18n_: i18n_,
|
|
11591
|
+
is_fallback_: () => {
|
|
11592
|
+
const results = get_modal_search_results();
|
|
11593
|
+
return !!results && !results.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(results());
|
|
11594
|
+
}
|
|
11595
|
+
}), $gVhhF$solidjsweb.memo(() => $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
11548
11596
|
search_field_value_: search_field_value_,
|
|
11549
11597
|
depict_api_: depict_api_,
|
|
11550
11598
|
merchant_: merchant_,
|
|
@@ -11552,6 +11600,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
11552
11600
|
market_: market_,
|
|
11553
11601
|
router_: router_,
|
|
11554
11602
|
set_modal_search_results_: set_modal_search_results_,
|
|
11603
|
+
set_instant_query_: set_instant_query_,
|
|
11555
11604
|
InstantCardImageComponent_: props => $gVhhF$solidjs.createMemo(() => $gVhhF$depictaiutilishared.ContainedImage({
|
|
11556
11605
|
loading: "lazy",
|
|
11557
11606
|
aspect_ratio: 1,
|
|
@@ -11564,7 +11613,7 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
11564
11613
|
sizes: "0px"
|
|
11565
11614
|
})),
|
|
11566
11615
|
...instant_results_options_
|
|
11567
|
-
});
|
|
11616
|
+
}))];
|
|
11568
11617
|
}
|
|
11569
11618
|
});
|
|
11570
11619
|
}
|
|
@@ -12159,7 +12208,7 @@ function $3b9f2020814c7876$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
12159
12208
|
instantResultsIndex_: instantResultsIndex_
|
|
12160
12209
|
};
|
|
12161
12210
|
}
|
|
12162
|
-
var $11597ae03e703a47$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2
|
|
12211
|
+
var $11597ae03e703a47$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=instant-results-wrapper><h2></h2><!$><!/><!$><!/>`),
|
|
12163
12212
|
$11597ae03e703a47$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
12164
12213
|
$11597ae03e703a47$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<dialog>`),
|
|
12165
12214
|
$11597ae03e703a47$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
@@ -12233,6 +12282,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12233
12282
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
12234
12283
|
const random_classname_body = $gVhhF$depictaiutilishared.make_random_classname();
|
|
12235
12284
|
const backdropRandomClassname = $gVhhF$depictaiutilishared.make_random_classname();
|
|
12285
|
+
const [get_instant_query_, set_instant_query_] = $gVhhF$solidjs.createSignal("");
|
|
12236
12286
|
const [get_modal_search_results_, set_modal_search_results_] = $gVhhF$solidjs.createSignal();
|
|
12237
12287
|
const close_on_escape_handler = $gVhhF$depictaiutilishared.catchify(evt => {
|
|
12238
12288
|
if (evt.key === "Escape") {
|
|
@@ -12390,8 +12440,18 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12390
12440
|
var _el$ = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$),
|
|
12391
12441
|
_el$2 = _el$.firstChild,
|
|
12392
12442
|
_el$3 = _el$2.nextSibling,
|
|
12393
|
-
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling)
|
|
12443
|
+
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
12444
|
+
_el$5 = _el$4.nextSibling,
|
|
12445
|
+
[_el$6, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
12394
12446
|
$gVhhF$solidjsweb.insert(_el$2, () => i18n_.products_());
|
|
12447
|
+
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
|
|
12448
|
+
get_search_query_: get_instant_query_,
|
|
12449
|
+
i18n_: i18n_,
|
|
12450
|
+
is_fallback_: () => {
|
|
12451
|
+
const results = get_modal_search_results_();
|
|
12452
|
+
return !!results && !results.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(results());
|
|
12453
|
+
}
|
|
12454
|
+
}), _el$4, _co$);
|
|
12395
12455
|
$gVhhF$solidjsweb.insert(_el$, () => $6ae556e536054e87$export$62f101a8aa597bf8({
|
|
12396
12456
|
search_field_value_: search_field_value_,
|
|
12397
12457
|
depict_api_: depict_api_,
|
|
@@ -12400,6 +12460,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12400
12460
|
market_: market_,
|
|
12401
12461
|
router_: router_,
|
|
12402
12462
|
set_modal_search_results_: set_modal_search_results_,
|
|
12463
|
+
set_instant_query_: set_instant_query_,
|
|
12403
12464
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
12404
12465
|
selected_index_: selected_index_,
|
|
12405
12466
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -12420,7 +12481,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12420
12481
|
imageResizer_: imageResizer_
|
|
12421
12482
|
}),
|
|
12422
12483
|
...instant_results_options_
|
|
12423
|
-
}), _el$
|
|
12484
|
+
}), _el$6, _co$2);
|
|
12424
12485
|
$gVhhF$solidjsweb.effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
12425
12486
|
return _el$;
|
|
12426
12487
|
}
|
|
@@ -12459,25 +12520,25 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12459
12520
|
})]);
|
|
12460
12521
|
const DialogElement = props => {
|
|
12461
12522
|
if (forceUseDiv_) return (() => {
|
|
12462
|
-
var _el$
|
|
12463
|
-
$gVhhF$solidjsweb.spread(_el$
|
|
12464
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12523
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$2);
|
|
12524
|
+
$gVhhF$solidjsweb.spread(_el$7, props, false, true);
|
|
12525
|
+
$gVhhF$solidjsweb.insert(_el$7, () => props.children);
|
|
12465
12526
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
12466
|
-
return _el$
|
|
12527
|
+
return _el$7;
|
|
12467
12528
|
})();
|
|
12468
12529
|
return (() => {
|
|
12469
|
-
var _el$
|
|
12470
|
-
$gVhhF$solidjsweb.spread(_el$
|
|
12471
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12530
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$3);
|
|
12531
|
+
$gVhhF$solidjsweb.spread(_el$8, props, false, true);
|
|
12532
|
+
$gVhhF$solidjsweb.insert(_el$8, () => props.children);
|
|
12472
12533
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
12473
|
-
return _el$
|
|
12534
|
+
return _el$8;
|
|
12474
12535
|
})();
|
|
12475
12536
|
};
|
|
12476
12537
|
const discoverMoreSection = (() => {
|
|
12477
|
-
var _el$
|
|
12478
|
-
_el$
|
|
12479
|
-
$gVhhF$solidjsweb.addEventListener(_el$
|
|
12480
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12538
|
+
var _el$9 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$4),
|
|
12539
|
+
_el$10 = _el$9.firstChild;
|
|
12540
|
+
$gVhhF$solidjsweb.addEventListener(_el$10, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
12541
|
+
$gVhhF$solidjsweb.insert(_el$10, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
12481
12542
|
get when() {
|
|
12482
12543
|
return get_search_field_value_();
|
|
12483
12544
|
},
|
|
@@ -12494,16 +12555,16 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12494
12555
|
},
|
|
12495
12556
|
get children() {
|
|
12496
12557
|
return i18n_.modal_view_all_results_()((() => {
|
|
12497
|
-
var _el$
|
|
12498
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12499
|
-
return _el$
|
|
12558
|
+
var _el$11 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$5);
|
|
12559
|
+
$gVhhF$solidjsweb.insert(_el$11, formattedTotalNumberResults);
|
|
12560
|
+
return _el$11;
|
|
12500
12561
|
})());
|
|
12501
12562
|
}
|
|
12502
12563
|
});
|
|
12503
12564
|
}
|
|
12504
12565
|
}));
|
|
12505
12566
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
12506
|
-
return _el$
|
|
12567
|
+
return _el$9;
|
|
12507
12568
|
})();
|
|
12508
12569
|
const search_field = $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
12509
12570
|
BackIcon_: (0, $b8660a70353e03cf$export$11e9f390c90a537f),
|
|
@@ -12551,22 +12612,22 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12551
12612
|
},
|
|
12552
12613
|
get children() {
|
|
12553
12614
|
return [(() => {
|
|
12554
|
-
var _el$
|
|
12555
|
-
$gVhhF$solidjsweb.addEventListener(_el$
|
|
12556
|
-
$gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.classList(_el$
|
|
12615
|
+
var _el$12 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$6);
|
|
12616
|
+
$gVhhF$solidjsweb.addEventListener(_el$12, "click", close_modal_, true);
|
|
12617
|
+
$gVhhF$solidjsweb.effect(_$p => $gVhhF$solidjsweb.classList(_el$12, {
|
|
12557
12618
|
[backdropRandomClassname]: true
|
|
12558
12619
|
}, _$p));
|
|
12559
12620
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
12560
|
-
return _el$
|
|
12621
|
+
return _el$12;
|
|
12561
12622
|
})(), (() => {
|
|
12562
|
-
var _el$
|
|
12563
|
-
_el$
|
|
12564
|
-
_el$
|
|
12565
|
-
[_el$
|
|
12566
|
-
_el$
|
|
12567
|
-
_el$
|
|
12568
|
-
[_el$
|
|
12569
|
-
$gVhhF$solidjsweb.addEventListener(_el$
|
|
12623
|
+
var _el$13 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$7),
|
|
12624
|
+
_el$14 = _el$13.firstChild,
|
|
12625
|
+
_el$16 = _el$14.firstChild,
|
|
12626
|
+
[_el$17, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$16.nextSibling),
|
|
12627
|
+
_el$15 = _el$17.nextSibling,
|
|
12628
|
+
_el$18 = _el$14.nextSibling,
|
|
12629
|
+
[_el$19, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$18.nextSibling);
|
|
12630
|
+
$gVhhF$solidjsweb.addEventListener(_el$13, "click", $gVhhF$depictaiutilishared.catchify(({
|
|
12570
12631
|
target: target,
|
|
12571
12632
|
currentTarget: currentTarget
|
|
12572
12633
|
}) => {
|
|
@@ -12577,8 +12638,8 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12577
12638
|
const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => setModalBodyWidth(records.at(-1).contentRect.width)));
|
|
12578
12639
|
resizeObserver.observe(element);
|
|
12579
12640
|
$gVhhF$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
12580
|
-
}, _el$
|
|
12581
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12641
|
+
}, _el$14);
|
|
12642
|
+
$gVhhF$solidjsweb.insert(_el$14, search_field, _el$17, _co$3);
|
|
12582
12643
|
$gVhhF$solidjsweb.use(el => {
|
|
12583
12644
|
$gVhhF$depictaiutilishared.catchify((0, $7b98f0cf558884f7$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_ || (() => 0.03 // 3% under SearchModalV2 by default
|
|
12584
12645
|
));
|
|
@@ -12593,28 +12654,28 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12593
12654
|
return;
|
|
12594
12655
|
}
|
|
12595
12656
|
el.replaceChildren(...[(() => {
|
|
12596
|
-
var _el$
|
|
12597
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12598
|
-
return _el$
|
|
12657
|
+
var _el$20 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$8);
|
|
12658
|
+
$gVhhF$solidjsweb.insert(_el$20, renderedTextSuggestions);
|
|
12659
|
+
return _el$20;
|
|
12599
12660
|
})(), (() => {
|
|
12600
|
-
var _el$
|
|
12601
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12602
|
-
return _el$
|
|
12661
|
+
var _el$21 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$9);
|
|
12662
|
+
$gVhhF$solidjsweb.insert(_el$21, renderedVisualSuggestions);
|
|
12663
|
+
return _el$21;
|
|
12603
12664
|
})(), discoverMoreSection]);
|
|
12604
12665
|
});
|
|
12605
|
-
}, _el$
|
|
12606
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
12666
|
+
}, _el$15);
|
|
12667
|
+
$gVhhF$solidjsweb.insert(_el$13, $gVhhF$solidjsweb.createComponent((0, $b776f25acdda22eb$export$f021bdedd3ec901a), {
|
|
12607
12668
|
styles: mergedCssObject
|
|
12608
|
-
}), _el$
|
|
12669
|
+
}), _el$19, _co$4);
|
|
12609
12670
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
12610
12671
|
var _v$ = !!modalLayoutStacked_(),
|
|
12611
12672
|
_v$2 = {
|
|
12612
12673
|
[random_classname_body]: true
|
|
12613
12674
|
},
|
|
12614
12675
|
_v$3 = !!noResults();
|
|
12615
|
-
_v$ !== _p$.e && _el$
|
|
12616
|
-
_p$.t = $gVhhF$solidjsweb.classList(_el$
|
|
12617
|
-
_v$3 !== _p$.a && _el$
|
|
12676
|
+
_v$ !== _p$.e && _el$13.classList.toggle("stacked", _p$.e = _v$);
|
|
12677
|
+
_p$.t = $gVhhF$solidjsweb.classList(_el$14, _v$2, _p$.t);
|
|
12678
|
+
_v$3 !== _p$.a && _el$15.classList.toggle("no-results", _p$.a = _v$3);
|
|
12618
12679
|
return _p$;
|
|
12619
12680
|
}, {
|
|
12620
12681
|
e: undefined,
|
|
@@ -12622,7 +12683,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
12622
12683
|
a: undefined
|
|
12623
12684
|
});
|
|
12624
12685
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
12625
|
-
return _el$
|
|
12686
|
+
return _el$13;
|
|
12626
12687
|
})()];
|
|
12627
12688
|
}
|
|
12628
12689
|
})];
|
|
@@ -15121,7 +15182,7 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
15121
15182
|
});
|
|
15122
15183
|
}
|
|
15123
15184
|
var $f1d7cb69f839a526$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
15124
|
-
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=listing-page
|
|
15185
|
+
$f1d7cb69f839a526$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
15125
15186
|
function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
15126
15187
|
depict_api_: depict_api_,
|
|
15127
15188
|
search_field_value_: search_field_value_,
|
|
@@ -15417,10 +15478,12 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15417
15478
|
[_el$19, _co$8] = $gVhhF$solidjsweb.getNextMarker(_el$18.nextSibling),
|
|
15418
15479
|
_el$20 = _el$19.nextSibling,
|
|
15419
15480
|
[_el$21, _co$9] = $gVhhF$solidjsweb.getNextMarker(_el$20.nextSibling),
|
|
15420
|
-
_el$22 = _el$
|
|
15481
|
+
_el$22 = _el$21.nextSibling,
|
|
15421
15482
|
[_el$23, _co$10] = $gVhhF$solidjsweb.getNextMarker(_el$22.nextSibling),
|
|
15422
|
-
_el$24 = _el$
|
|
15423
|
-
[_el$25, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling)
|
|
15483
|
+
_el$24 = _el$7.nextSibling,
|
|
15484
|
+
[_el$25, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$24.nextSibling),
|
|
15485
|
+
_el$26 = _el$25.nextSibling,
|
|
15486
|
+
[_el$27, _co$12] = $gVhhF$solidjsweb.getNextMarker(_el$26.nextSibling);
|
|
15424
15487
|
$gVhhF$solidjsweb.insert(_el$7, get_search_field_elements, _el$9, _co$3);
|
|
15425
15488
|
$gVhhF$solidjsweb.insert(_el$7, make_category_suggestion_card_ ? $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
15426
15489
|
severity_: "error",
|
|
@@ -15459,6 +15522,11 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15459
15522
|
}
|
|
15460
15523
|
}), _el$13, _co$5);
|
|
15461
15524
|
$gVhhF$solidjsweb.insert(_el$7, () => results_filters[0](), _el$15, _co$6);
|
|
15525
|
+
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $b84056ffaebb3f3f$export$6011f3c8b3c691cd), {
|
|
15526
|
+
get_search_query_: get_search_query_,
|
|
15527
|
+
i18n_: i18n_,
|
|
15528
|
+
is_fallback_: () => !search_results_.loading && $b84056ffaebb3f3f$export$cff209a01196ea2a(search_results_())
|
|
15529
|
+
}), _el$17, _co$7);
|
|
15462
15530
|
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
15463
15531
|
get when() {
|
|
15464
15532
|
return selected_filters_[0]()?.length;
|
|
@@ -15481,7 +15549,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15481
15549
|
}
|
|
15482
15550
|
});
|
|
15483
15551
|
}
|
|
15484
|
-
}), _el$
|
|
15552
|
+
}), _el$19, _co$8);
|
|
15485
15553
|
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
15486
15554
|
severity_: "error",
|
|
15487
15555
|
message_: "Search results failed",
|
|
@@ -15518,7 +15586,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15518
15586
|
}
|
|
15519
15587
|
});
|
|
15520
15588
|
}
|
|
15521
|
-
}), _el$
|
|
15589
|
+
}), _el$21, _co$9);
|
|
15522
15590
|
$gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
15523
15591
|
severity_: "error",
|
|
15524
15592
|
message_: "Search recommendations failed",
|
|
@@ -15537,7 +15605,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15537
15605
|
}
|
|
15538
15606
|
});
|
|
15539
15607
|
}
|
|
15540
|
-
}), _el$
|
|
15608
|
+
}), _el$23, _co$10);
|
|
15541
15609
|
$gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
15542
15610
|
message_: "Scroll status failed",
|
|
15543
15611
|
severity_: "error",
|
|
@@ -15550,7 +15618,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15550
15618
|
number_of_results_: countOfProductsForUI
|
|
15551
15619
|
});
|
|
15552
15620
|
}
|
|
15553
|
-
}), _el$
|
|
15621
|
+
}), _el$25, _co$11);
|
|
15554
15622
|
$gVhhF$solidjsweb.insert(_el$6, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
15555
15623
|
message_: "Floating buttons failed",
|
|
15556
15624
|
severity_: "error",
|
|
@@ -15563,7 +15631,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
15563
15631
|
i18n_: i18n_
|
|
15564
15632
|
});
|
|
15565
15633
|
}
|
|
15566
|
-
}), _el$
|
|
15634
|
+
}), _el$27, _co$12);
|
|
15567
15635
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
15568
15636
|
var _v$ = (0, $0b6e2070a98de347$export$44dad306455dddf).SEARCH_PAGE,
|
|
15569
15637
|
_v$2 = `depict plp search${class_?.() ? ` ${class_()}` : ""}`;
|
package/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
|