@depict-ai/ui 4.10.30 → 4.10.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +131 -58
- package/ES10/index.d.ts +6 -1
- package/ES10/index.js +131 -58
- package/latest/index.cjs +126 -58
- package/latest/index.d.ts +6 -1
- package/latest/index.js +126 -58
- package/locales/ES10/index.cjs +27 -13
- package/locales/ES10/index.d.ts +5 -0
- package/locales/ES10/index.js +27 -13
- package/locales/latest/index.cjs +27 -13
- package/locales/latest/index.d.ts +5 -0
- package/locales/latest/index.js +27 -13
- package/package.json +4 -4
- package/server/ES10/index.cjs +68 -7
- package/server/ES10/index.d.ts +6 -1
- package/server/ES10/index.js +68 -7
- package/server/latest/index.cjs +63 -7
- package/server/latest/index.d.ts +6 -1
- package/server/latest/index.js +63 -7
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$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 = $8tj43$createSignal(false);
|
|
16
16
|
$8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
|
|
@@ -8487,6 +8487,14 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8487
8487
|
}
|
|
8488
8488
|
}));
|
|
8489
8489
|
}
|
|
8490
|
+
|
|
8491
|
+
/** Shopify Lite's storefront (theme-static depict-content-blocks.js) treats screens up to 990px wide as phones. */
|
|
8492
|
+
const $3a2a35df91c580c6$export$1e15d45642067bf0 = "(max-width: 990px)";
|
|
8493
|
+
function $3a2a35df91c580c6$export$894065271726d798(visibility, isPhone) {
|
|
8494
|
+
if (visibility === "desktop") return !isPhone;
|
|
8495
|
+
if (visibility === "mobile") return isPhone;
|
|
8496
|
+
return true;
|
|
8497
|
+
}
|
|
8490
8498
|
const $12ff24fdc4b26d88$export$af2c67164f68e9e9 = (content, aspectRatio) => {
|
|
8491
8499
|
const {
|
|
8492
8500
|
link: link,
|
|
@@ -8502,6 +8510,7 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8502
8510
|
let hasSeenContentBlock = false;
|
|
8503
8511
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
8504
8512
|
const contentComponents = new Map();
|
|
8513
|
+
const isPhone = $00a5b94f0c11efbb$export$d9f36cf74e24d595((0, $3a2a35df91c580c6$export$1e15d45642067bf0));
|
|
8505
8514
|
const delayedServerBlocks = $8tj43$createMemo(prev => {
|
|
8506
8515
|
var _plp_meta;
|
|
8507
8516
|
// Do not update the server blocks while the products request is loading, to avoid this: https://depictaiworkspace.slack.com/archives/C01JB6E7K7G/p1750861454651319
|
|
@@ -8528,7 +8537,10 @@ function $12ff24fdc4b26d88$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
8528
8537
|
if (!(blocksFromHistory !== null && blocksFromHistory !== void 0 && blocksFromHistory.length) && !hasSeenContentBlock) return developerProvided;
|
|
8529
8538
|
const content = [...(developerProvided || [])];
|
|
8530
8539
|
hasSeenContentBlock = true;
|
|
8540
|
+
const phone = isPhone();
|
|
8531
8541
|
blocksFromHistory.forEach(row => {
|
|
8542
|
+
// Leave a block hidden on this device out before placement, so products fill its cells instead of a gap.
|
|
8543
|
+
if (!$3a2a35df91c580c6$export$894065271726d798(row.visibility, phone)) return;
|
|
8532
8544
|
const {
|
|
8533
8545
|
content: {
|
|
8534
8546
|
link: link,
|
|
@@ -10342,6 +10354,37 @@ function $01c33966d9ddb108$export$f50b88e2a00918b5(fn) {
|
|
|
10342
10354
|
}
|
|
10343
10355
|
};
|
|
10344
10356
|
}
|
|
10357
|
+
var $f0f23d1343f3986f$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<b>`),
|
|
10358
|
+
$f0f23d1343f3986f$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=no-exact-matches role=status>`);
|
|
10359
|
+
function $f0f23d1343f3986f$export$cff209a01196ea2a(response) {
|
|
10360
|
+
var _response$displays;
|
|
10361
|
+
return (response === null || response === void 0 ? void 0 : response.is_fallback) === true && !!((_response$displays = response.displays) !== null && _response$displays !== void 0 && _response$displays.length);
|
|
10362
|
+
}
|
|
10363
|
+
function $f0f23d1343f3986f$export$6011f3c8b3c691cd(_ref) {
|
|
10364
|
+
let {
|
|
10365
|
+
get_search_query_: get_search_query_,
|
|
10366
|
+
i18n_: i18n_,
|
|
10367
|
+
is_fallback_: is_fallback_
|
|
10368
|
+
} = _ref;
|
|
10369
|
+
const contents = $8tj43$createMemo($8tj43$catchify1(() => {
|
|
10370
|
+
var _i18n_$get_no_exact_m, _i18n_$get_no_exact_m2;
|
|
10371
|
+
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((() => {
|
|
10372
|
+
var _el$ = $8tj43$getNextElement($f0f23d1343f3986f$var$_tmpl$);
|
|
10373
|
+
$8tj43$insert(_el$, get_search_query_);
|
|
10374
|
+
return _el$;
|
|
10375
|
+
})());
|
|
10376
|
+
}));
|
|
10377
|
+
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
10378
|
+
get when() {
|
|
10379
|
+
return $8tj43$memo(() => !!(is_fallback_() && get_search_query_().trim() !== ""))() && contents();
|
|
10380
|
+
},
|
|
10381
|
+
get children() {
|
|
10382
|
+
var _el$2 = $8tj43$getNextElement($f0f23d1343f3986f$var$_tmpl$2);
|
|
10383
|
+
$8tj43$insert(_el$2, contents);
|
|
10384
|
+
return _el$2;
|
|
10385
|
+
}
|
|
10386
|
+
});
|
|
10387
|
+
}
|
|
10345
10388
|
function $d0883254246d3eb6$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
|
|
10346
10389
|
const isSelected = $8tj43$createMemo(() => {
|
|
10347
10390
|
const selectedValue = selectedIndex();
|
|
@@ -10569,6 +10612,7 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
10569
10612
|
i18n_: i18n_,
|
|
10570
10613
|
router_: router_,
|
|
10571
10614
|
set_modal_search_results_: set_modal_search_results_,
|
|
10615
|
+
set_instant_query_: set_instant_query_,
|
|
10572
10616
|
InstantCardImageComponent_: InstantCardImageComponent_,
|
|
10573
10617
|
itemIndex_: itemIndex_,
|
|
10574
10618
|
selected_index_: selected_index_,
|
|
@@ -10607,6 +10651,7 @@ function $f7414b949aeabc90$export$62f101a8aa597bf8(_ref) {
|
|
|
10607
10651
|
// 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
|
|
10608
10652
|
// This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
|
|
10609
10653
|
set_modal_search_results_(() => search_results);
|
|
10654
|
+
if (set_instant_query_) $8tj43$createComputed(() => set_instant_query_(read_current_instant_query()));
|
|
10610
10655
|
$8tj43$onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
|
|
10611
10656
|
if (itemIndex_) {
|
|
10612
10657
|
const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
|
|
@@ -11919,6 +11964,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
11919
11964
|
body_: bodyAlignmentSignal = $8tj43$createSignal({})
|
|
11920
11965
|
} = alignmentSignals_ || {};
|
|
11921
11966
|
const [bodyAlignmentStyle] = bodyAlignmentSignal;
|
|
11967
|
+
const [get_instant_query_, set_instant_query_] = $8tj43$createSignal("");
|
|
11922
11968
|
const [get_modal_search_results, set_modal_search_results_] = $8tj43$createSignal();
|
|
11923
11969
|
const close_on_escape_handler = $8tj43$catchify1(_ref2 => {
|
|
11924
11970
|
let {
|
|
@@ -12079,7 +12125,14 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
12079
12125
|
get children() {
|
|
12080
12126
|
return $8tj43$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
|
|
12081
12127
|
get children() {
|
|
12082
|
-
return $
|
|
12128
|
+
return [$8tj43$createComponent((0, $f0f23d1343f3986f$export$6011f3c8b3c691cd), {
|
|
12129
|
+
get_search_query_: get_instant_query_,
|
|
12130
|
+
i18n_: i18n_,
|
|
12131
|
+
is_fallback_: () => {
|
|
12132
|
+
const results = get_modal_search_results();
|
|
12133
|
+
return !!results && !results.loading && $f0f23d1343f3986f$export$cff209a01196ea2a(results());
|
|
12134
|
+
}
|
|
12135
|
+
}), $8tj43$memo(() => $f7414b949aeabc90$export$62f101a8aa597bf8({
|
|
12083
12136
|
search_field_value_: search_field_value_,
|
|
12084
12137
|
depict_api_: depict_api_,
|
|
12085
12138
|
merchant_: merchant_,
|
|
@@ -12087,6 +12140,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
12087
12140
|
market_: market_,
|
|
12088
12141
|
router_: router_,
|
|
12089
12142
|
set_modal_search_results_: set_modal_search_results_,
|
|
12143
|
+
set_instant_query_: set_instant_query_,
|
|
12090
12144
|
InstantCardImageComponent_: props => $8tj43$createMemo(() => {
|
|
12091
12145
|
var _props$alt_;
|
|
12092
12146
|
return $8tj43$ContainedImage({
|
|
@@ -12102,7 +12156,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
12102
12156
|
});
|
|
12103
12157
|
}),
|
|
12104
12158
|
...instant_results_options_
|
|
12105
|
-
});
|
|
12159
|
+
}))];
|
|
12106
12160
|
}
|
|
12107
12161
|
});
|
|
12108
12162
|
}
|
|
@@ -12724,7 +12778,7 @@ function $1abb91ab5abc8994$export$66d1697a0f27069c(modalLayoutStacked) {
|
|
|
12724
12778
|
instantResultsIndex_: instantResultsIndex_
|
|
12725
12779
|
};
|
|
12726
12780
|
}
|
|
12727
|
-
var $06fcd2a345efd24d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=instant-results-wrapper><h2></h2
|
|
12781
|
+
var $06fcd2a345efd24d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=instant-results-wrapper><h2></h2><!$><!/><!$><!/>`),
|
|
12728
12782
|
$06fcd2a345efd24d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
12729
12783
|
$06fcd2a345efd24d$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<dialog>`),
|
|
12730
12784
|
$06fcd2a345efd24d$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=discover-more><button class=major type=button>`),
|
|
@@ -12799,6 +12853,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12799
12853
|
const [unfiltered_previous_searches] = previous_searches_;
|
|
12800
12854
|
const random_classname_body = $8tj43$make_random_classname();
|
|
12801
12855
|
const backdropRandomClassname = $8tj43$make_random_classname();
|
|
12856
|
+
const [get_instant_query_, set_instant_query_] = $8tj43$createSignal("");
|
|
12802
12857
|
const [get_modal_search_results_, set_modal_search_results_] = $8tj43$createSignal();
|
|
12803
12858
|
const close_on_escape_handler = $8tj43$catchify1(evt => {
|
|
12804
12859
|
if (evt.key === "Escape") {
|
|
@@ -12963,8 +13018,18 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12963
13018
|
var _el$ = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$),
|
|
12964
13019
|
_el$2 = _el$.firstChild,
|
|
12965
13020
|
_el$3 = _el$2.nextSibling,
|
|
12966
|
-
[_el$4, _co$] = $8tj43$getNextMarker(_el$3.nextSibling)
|
|
13021
|
+
[_el$4, _co$] = $8tj43$getNextMarker(_el$3.nextSibling),
|
|
13022
|
+
_el$5 = _el$4.nextSibling,
|
|
13023
|
+
[_el$6, _co$2] = $8tj43$getNextMarker(_el$5.nextSibling);
|
|
12967
13024
|
$8tj43$insert(_el$2, () => i18n_.products_());
|
|
13025
|
+
$8tj43$insert(_el$, $8tj43$createComponent((0, $f0f23d1343f3986f$export$6011f3c8b3c691cd), {
|
|
13026
|
+
get_search_query_: get_instant_query_,
|
|
13027
|
+
i18n_: i18n_,
|
|
13028
|
+
is_fallback_: () => {
|
|
13029
|
+
const results = get_modal_search_results_();
|
|
13030
|
+
return !!results && !results.loading && $f0f23d1343f3986f$export$cff209a01196ea2a(results());
|
|
13031
|
+
}
|
|
13032
|
+
}), _el$4, _co$);
|
|
12968
13033
|
$8tj43$insert(_el$, () => $f7414b949aeabc90$export$62f101a8aa597bf8({
|
|
12969
13034
|
search_field_value_: search_field_value_,
|
|
12970
13035
|
depict_api_: depict_api_,
|
|
@@ -12973,6 +13038,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12973
13038
|
market_: market_,
|
|
12974
13039
|
router_: router_,
|
|
12975
13040
|
set_modal_search_results_: set_modal_search_results_,
|
|
13041
|
+
set_instant_query_: set_instant_query_,
|
|
12976
13042
|
itemIndex_: itemIndexes.instantResultsIndex_,
|
|
12977
13043
|
selected_index_: selected_index_,
|
|
12978
13044
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
@@ -12994,7 +13060,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12994
13060
|
imageResizer_: imageResizer_
|
|
12995
13061
|
}),
|
|
12996
13062
|
...instant_results_options_
|
|
12997
|
-
}), _el$
|
|
13063
|
+
}), _el$6, _co$2);
|
|
12998
13064
|
$8tj43$effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
12999
13065
|
return _el$;
|
|
13000
13066
|
}
|
|
@@ -13033,25 +13099,25 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
13033
13099
|
})]);
|
|
13034
13100
|
const DialogElement = props => {
|
|
13035
13101
|
if (forceUseDiv_) return (() => {
|
|
13036
|
-
var _el$
|
|
13037
|
-
$8tj43$spread(_el$
|
|
13038
|
-
$8tj43$insert(_el$
|
|
13102
|
+
var _el$7 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$2);
|
|
13103
|
+
$8tj43$spread(_el$7, props, false, true);
|
|
13104
|
+
$8tj43$insert(_el$7, () => props.children);
|
|
13039
13105
|
$8tj43$runHydrationEvents();
|
|
13040
|
-
return _el$
|
|
13106
|
+
return _el$7;
|
|
13041
13107
|
})();
|
|
13042
13108
|
return (() => {
|
|
13043
|
-
var _el$
|
|
13044
|
-
$8tj43$spread(_el$
|
|
13045
|
-
$8tj43$insert(_el$
|
|
13109
|
+
var _el$8 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$3);
|
|
13110
|
+
$8tj43$spread(_el$8, props, false, true);
|
|
13111
|
+
$8tj43$insert(_el$8, () => props.children);
|
|
13046
13112
|
$8tj43$runHydrationEvents();
|
|
13047
|
-
return _el$
|
|
13113
|
+
return _el$8;
|
|
13048
13114
|
})();
|
|
13049
13115
|
};
|
|
13050
13116
|
const discoverMoreSection = (() => {
|
|
13051
|
-
var _el$
|
|
13052
|
-
_el$
|
|
13053
|
-
$8tj43$addEventListener(_el$
|
|
13054
|
-
$8tj43$insert(_el$
|
|
13117
|
+
var _el$9 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$4),
|
|
13118
|
+
_el$10 = _el$9.firstChild;
|
|
13119
|
+
$8tj43$addEventListener(_el$10, "click", $8tj43$catchify1(() => submit_query_()), true);
|
|
13120
|
+
$8tj43$insert(_el$10, $8tj43$createComponent((0, $8tj43$Show), {
|
|
13055
13121
|
get when() {
|
|
13056
13122
|
return get_search_field_value_();
|
|
13057
13123
|
},
|
|
@@ -13068,16 +13134,16 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
13068
13134
|
},
|
|
13069
13135
|
get children() {
|
|
13070
13136
|
return i18n_.modal_view_all_results_()((() => {
|
|
13071
|
-
var _el$
|
|
13072
|
-
$8tj43$insert(_el$
|
|
13073
|
-
return _el$
|
|
13137
|
+
var _el$11 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$5);
|
|
13138
|
+
$8tj43$insert(_el$11, formattedTotalNumberResults);
|
|
13139
|
+
return _el$11;
|
|
13074
13140
|
})());
|
|
13075
13141
|
}
|
|
13076
13142
|
});
|
|
13077
13143
|
}
|
|
13078
13144
|
}));
|
|
13079
13145
|
$8tj43$runHydrationEvents();
|
|
13080
|
-
return _el$
|
|
13146
|
+
return _el$9;
|
|
13081
13147
|
})();
|
|
13082
13148
|
const search_field = $584c06c09cf4609d$export$b94867ecbd698f21({
|
|
13083
13149
|
BackIcon_: (0, $c2fe922d21c40514$export$11e9f390c90a537f),
|
|
@@ -13129,22 +13195,22 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
13129
13195
|
},
|
|
13130
13196
|
get children() {
|
|
13131
13197
|
return [(() => {
|
|
13132
|
-
var _el$
|
|
13133
|
-
$8tj43$addEventListener(_el$
|
|
13134
|
-
$8tj43$effect(_$p => $8tj43$classList(_el$
|
|
13198
|
+
var _el$12 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$6);
|
|
13199
|
+
$8tj43$addEventListener(_el$12, "click", close_modal_, true);
|
|
13200
|
+
$8tj43$effect(_$p => $8tj43$classList(_el$12, {
|
|
13135
13201
|
[backdropRandomClassname]: true
|
|
13136
13202
|
}, _$p));
|
|
13137
13203
|
$8tj43$runHydrationEvents();
|
|
13138
|
-
return _el$
|
|
13204
|
+
return _el$12;
|
|
13139
13205
|
})(), (() => {
|
|
13140
|
-
var _el$
|
|
13141
|
-
_el$
|
|
13142
|
-
_el$
|
|
13143
|
-
[_el$
|
|
13144
|
-
_el$
|
|
13145
|
-
_el$
|
|
13146
|
-
[_el$
|
|
13147
|
-
$8tj43$addEventListener(_el$
|
|
13206
|
+
var _el$13 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$7),
|
|
13207
|
+
_el$14 = _el$13.firstChild,
|
|
13208
|
+
_el$16 = _el$14.firstChild,
|
|
13209
|
+
[_el$17, _co$3] = $8tj43$getNextMarker(_el$16.nextSibling),
|
|
13210
|
+
_el$15 = _el$17.nextSibling,
|
|
13211
|
+
_el$18 = _el$14.nextSibling,
|
|
13212
|
+
[_el$19, _co$4] = $8tj43$getNextMarker(_el$18.nextSibling);
|
|
13213
|
+
$8tj43$addEventListener(_el$13, "click", $8tj43$catchify1(_ref3 => {
|
|
13148
13214
|
let {
|
|
13149
13215
|
target: target,
|
|
13150
13216
|
currentTarget: currentTarget
|
|
@@ -13156,8 +13222,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
13156
13222
|
const resizeObserver = new ResizeObserver($8tj43$catchify1(records => setModalBodyWidth(records.at(-1).contentRect.width)));
|
|
13157
13223
|
resizeObserver.observe(element);
|
|
13158
13224
|
$8tj43$onCleanup(() => resizeObserver.disconnect());
|
|
13159
|
-
}, _el$
|
|
13160
|
-
$8tj43$insert(_el$
|
|
13225
|
+
}, _el$14);
|
|
13226
|
+
$8tj43$insert(_el$14, search_field, _el$17, _co$3);
|
|
13161
13227
|
$8tj43$use(el => {
|
|
13162
13228
|
$8tj43$catchify1((0, $558d0596fcf0e0b0$export$50b90be27d8502d9))(el, bodyAlignmentSignal, bottom_distance_under_modal_ || (() => 0.03 // 3% under SearchModalV2 by default
|
|
13163
13229
|
));
|
|
@@ -13172,28 +13238,28 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
13172
13238
|
return;
|
|
13173
13239
|
}
|
|
13174
13240
|
el.replaceChildren(...[(() => {
|
|
13175
|
-
var _el$
|
|
13176
|
-
$8tj43$insert(_el$
|
|
13177
|
-
return _el$
|
|
13241
|
+
var _el$20 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$8);
|
|
13242
|
+
$8tj43$insert(_el$20, renderedTextSuggestions);
|
|
13243
|
+
return _el$20;
|
|
13178
13244
|
})(), (() => {
|
|
13179
|
-
var _el$
|
|
13180
|
-
$8tj43$insert(_el$
|
|
13181
|
-
return _el$
|
|
13245
|
+
var _el$21 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$9);
|
|
13246
|
+
$8tj43$insert(_el$21, renderedVisualSuggestions);
|
|
13247
|
+
return _el$21;
|
|
13182
13248
|
})(), discoverMoreSection]);
|
|
13183
13249
|
});
|
|
13184
|
-
}, _el$
|
|
13185
|
-
$8tj43$insert(_el$
|
|
13250
|
+
}, _el$15);
|
|
13251
|
+
$8tj43$insert(_el$13, $8tj43$createComponent((0, $a86e71c0015bd8ab$export$f021bdedd3ec901a), {
|
|
13186
13252
|
styles: mergedCssObject
|
|
13187
|
-
}), _el$
|
|
13253
|
+
}), _el$19, _co$4);
|
|
13188
13254
|
$8tj43$effect(_p$ => {
|
|
13189
13255
|
var _v$ = !!modalLayoutStacked_(),
|
|
13190
13256
|
_v$2 = {
|
|
13191
13257
|
[random_classname_body]: true
|
|
13192
13258
|
},
|
|
13193
13259
|
_v$3 = !!noResults();
|
|
13194
|
-
_v$ !== _p$.e && _el$
|
|
13195
|
-
_p$.t = $8tj43$classList(_el$
|
|
13196
|
-
_v$3 !== _p$.a && _el$
|
|
13260
|
+
_v$ !== _p$.e && _el$13.classList.toggle("stacked", _p$.e = _v$);
|
|
13261
|
+
_p$.t = $8tj43$classList(_el$14, _v$2, _p$.t);
|
|
13262
|
+
_v$3 !== _p$.a && _el$15.classList.toggle("no-results", _p$.a = _v$3);
|
|
13197
13263
|
return _p$;
|
|
13198
13264
|
}, {
|
|
13199
13265
|
e: undefined,
|
|
@@ -13201,7 +13267,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
13201
13267
|
a: undefined
|
|
13202
13268
|
});
|
|
13203
13269
|
$8tj43$runHydrationEvents();
|
|
13204
|
-
return _el$
|
|
13270
|
+
return _el$13;
|
|
13205
13271
|
})()];
|
|
13206
13272
|
}
|
|
13207
13273
|
})];
|
|
@@ -15916,7 +15982,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
15916
15982
|
});
|
|
15917
15983
|
}
|
|
15918
15984
|
var $da279c5a540c6846$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
|
|
15919
|
-
$da279c5a540c6846$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div><div class=listing-page
|
|
15985
|
+
$da279c5a540c6846$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
|
|
15920
15986
|
function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
15921
15987
|
let {
|
|
15922
15988
|
depict_api_: depict_api_,
|
|
@@ -16231,10 +16297,12 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16231
16297
|
[_el$19, _co$8] = $8tj43$getNextMarker(_el$18.nextSibling),
|
|
16232
16298
|
_el$20 = _el$19.nextSibling,
|
|
16233
16299
|
[_el$21, _co$9] = $8tj43$getNextMarker(_el$20.nextSibling),
|
|
16234
|
-
_el$22 = _el$
|
|
16300
|
+
_el$22 = _el$21.nextSibling,
|
|
16235
16301
|
[_el$23, _co$10] = $8tj43$getNextMarker(_el$22.nextSibling),
|
|
16236
|
-
_el$24 = _el$
|
|
16237
|
-
[_el$25, _co$11] = $8tj43$getNextMarker(_el$24.nextSibling)
|
|
16302
|
+
_el$24 = _el$7.nextSibling,
|
|
16303
|
+
[_el$25, _co$11] = $8tj43$getNextMarker(_el$24.nextSibling),
|
|
16304
|
+
_el$26 = _el$25.nextSibling,
|
|
16305
|
+
[_el$27, _co$12] = $8tj43$getNextMarker(_el$26.nextSibling);
|
|
16238
16306
|
$8tj43$insert(_el$7, get_search_field_elements, _el$9, _co$3);
|
|
16239
16307
|
$8tj43$insert(_el$7, make_category_suggestion_card_ ? $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
16240
16308
|
severity_: "error",
|
|
@@ -16273,6 +16341,11 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16273
16341
|
}
|
|
16274
16342
|
}), _el$13, _co$5);
|
|
16275
16343
|
$8tj43$insert(_el$7, () => results_filters[0](), _el$15, _co$6);
|
|
16344
|
+
$8tj43$insert(_el$7, $8tj43$createComponent((0, $f0f23d1343f3986f$export$6011f3c8b3c691cd), {
|
|
16345
|
+
get_search_query_: get_search_query_,
|
|
16346
|
+
i18n_: i18n_,
|
|
16347
|
+
is_fallback_: () => !search_results_.loading && $f0f23d1343f3986f$export$cff209a01196ea2a(search_results_())
|
|
16348
|
+
}), _el$17, _co$7);
|
|
16276
16349
|
$8tj43$insert(_el$7, $8tj43$createComponent((0, $8tj43$Show), {
|
|
16277
16350
|
get when() {
|
|
16278
16351
|
var _selected_filters_$;
|
|
@@ -16296,7 +16369,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16296
16369
|
}
|
|
16297
16370
|
});
|
|
16298
16371
|
}
|
|
16299
|
-
}), _el$
|
|
16372
|
+
}), _el$19, _co$8);
|
|
16300
16373
|
$8tj43$insert(_el$7, $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
16301
16374
|
severity_: "error",
|
|
16302
16375
|
message_: "Search results failed",
|
|
@@ -16333,7 +16406,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16333
16406
|
}
|
|
16334
16407
|
});
|
|
16335
16408
|
}
|
|
16336
|
-
}), _el$
|
|
16409
|
+
}), _el$21, _co$9);
|
|
16337
16410
|
$8tj43$insert(_el$7, $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
16338
16411
|
severity_: "error",
|
|
16339
16412
|
message_: "Search recommendations failed",
|
|
@@ -16352,7 +16425,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16352
16425
|
}
|
|
16353
16426
|
});
|
|
16354
16427
|
}
|
|
16355
|
-
}), _el$
|
|
16428
|
+
}), _el$23, _co$10);
|
|
16356
16429
|
$8tj43$insert(_el$6, $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
16357
16430
|
message_: "Scroll status failed",
|
|
16358
16431
|
severity_: "error",
|
|
@@ -16365,7 +16438,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16365
16438
|
number_of_results_: countOfProductsForUI
|
|
16366
16439
|
});
|
|
16367
16440
|
}
|
|
16368
|
-
}), _el$
|
|
16441
|
+
}), _el$25, _co$11);
|
|
16369
16442
|
$8tj43$insert(_el$6, $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
16370
16443
|
message_: "Floating buttons failed",
|
|
16371
16444
|
severity_: "error",
|
|
@@ -16378,7 +16451,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
16378
16451
|
i18n_: i18n_
|
|
16379
16452
|
});
|
|
16380
16453
|
}
|
|
16381
|
-
}), _el$
|
|
16454
|
+
}), _el$27, _co$12);
|
|
16382
16455
|
$8tj43$effect(_p$ => {
|
|
16383
16456
|
var _v$ = (0, $c3820807ac1e6fd7$export$44dad306455dddf).SEARCH_PAGE,
|
|
16384
16457
|
_v$2 = "depict plp search".concat(class_ !== null && class_ !== void 0 && class_() ? " ".concat(class_()) : "");
|