@depict-ai/ui 4.8.30 → 4.9.0
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 +61 -26
- package/ES10/index.d.ts +2 -1
- package/ES10/index.js +61 -26
- package/latest/index.cjs +60 -25
- package/latest/index.d.ts +2 -1
- package/latest/index.js +60 -25
- package/locales/ES10/index.cjs +25 -12
- package/locales/ES10/index.d.ts +1 -0
- package/locales/ES10/index.js +25 -12
- package/locales/latest/index.cjs +25 -12
- package/locales/latest/index.d.ts +1 -0
- package/locales/latest/index.js +25 -12
- package/package.json +4 -4
- package/server/ES10/index.cjs +53 -12
- package/server/ES10/index.d.ts +2 -1
- package/server/ES10/index.js +53 -12
- package/server/latest/index.cjs +52 -11
- package/server/latest/index.d.ts +2 -1
- package/server/latest/index.js +52 -11
package/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.9.0";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $52FdA$solidjs.createSignal(false);
|
|
121
121
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -11419,15 +11419,16 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
11419
11419
|
if (key === "Escape") close_modal_();
|
|
11420
11420
|
});
|
|
11421
11421
|
// total number of results = content results + product results
|
|
11422
|
-
const
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11422
|
+
const totalNumberOfResults = $52FdA$solidjs.createMemo(() => {
|
|
11423
|
+
var _get_modal_search_res, _results$content_sear;
|
|
11424
|
+
const results = (_get_modal_search_res = get_modal_search_results()) === null || _get_modal_search_res === void 0 ? void 0 : _get_modal_search_res();
|
|
11425
|
+
const hits = results === null || results === void 0 ? void 0 : results.n_hits;
|
|
11426
|
+
const content_results = results === null || results === void 0 ? void 0 : (_results$content_sear = results.content_search_links) === null || _results$content_sear === void 0 ? void 0 : _results$content_sear.length;
|
|
11427
|
+
if (!content_results || !content_search_enabled_()) return hits;
|
|
11428
|
+
return (hits !== null && hits !== void 0 ? hits : 0) + content_results;
|
|
11429
|
+
});
|
|
11430
|
+
const formattedTotalNumberResults = $068bde7fa83ac02c$export$92f2da32c6e7e7ee({
|
|
11431
|
+
number_: totalNumberOfResults,
|
|
11431
11432
|
i18n_: i18n_
|
|
11432
11433
|
});
|
|
11433
11434
|
const selected_index = $52FdA$solidjs.createSignal();
|
|
@@ -11439,14 +11440,31 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
11439
11440
|
var _el$ = $52FdA$solidjsweb.getNextElement($9035b24c2dbd3f36$var$_tmpl$),
|
|
11440
11441
|
_el$2 = _el$.firstChild;
|
|
11441
11442
|
$52FdA$solidjsweb.addEventListener(_el$2, "click", $52FdA$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
11442
|
-
$52FdA$solidjsweb.insert(_el$2, (()
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
return
|
|
11448
|
-
}
|
|
11449
|
-
|
|
11443
|
+
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
11444
|
+
get when() {
|
|
11445
|
+
return get_search_field_value_();
|
|
11446
|
+
},
|
|
11447
|
+
get fallback() {
|
|
11448
|
+
return i18n_.modal_discover_more_();
|
|
11449
|
+
},
|
|
11450
|
+
get children() {
|
|
11451
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
11452
|
+
get when() {
|
|
11453
|
+
return totalNumberOfResults();
|
|
11454
|
+
},
|
|
11455
|
+
get fallback() {
|
|
11456
|
+
return i18n_.modal_view_all_no_results_();
|
|
11457
|
+
},
|
|
11458
|
+
get children() {
|
|
11459
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
11460
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($9035b24c2dbd3f36$var$_tmpl$2);
|
|
11461
|
+
$52FdA$solidjsweb.insert(_el$3, formattedTotalNumberResults);
|
|
11462
|
+
return _el$3;
|
|
11463
|
+
})());
|
|
11464
|
+
}
|
|
11465
|
+
});
|
|
11466
|
+
}
|
|
11467
|
+
}));
|
|
11450
11468
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
11451
11469
|
return _el$;
|
|
11452
11470
|
})();
|
|
@@ -12488,14 +12506,31 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
12488
12506
|
var _el$7 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$4),
|
|
12489
12507
|
_el$8 = _el$7.firstChild;
|
|
12490
12508
|
$52FdA$solidjsweb.addEventListener(_el$8, "click", $52FdA$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
12491
|
-
$52FdA$solidjsweb.insert(_el$8, (()
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
return
|
|
12497
|
-
}
|
|
12498
|
-
|
|
12509
|
+
$52FdA$solidjsweb.insert(_el$8, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
12510
|
+
get when() {
|
|
12511
|
+
return get_search_field_value_();
|
|
12512
|
+
},
|
|
12513
|
+
get fallback() {
|
|
12514
|
+
return i18n_.modal_discover_more_();
|
|
12515
|
+
},
|
|
12516
|
+
get children() {
|
|
12517
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
12518
|
+
get when() {
|
|
12519
|
+
return totalNumberResults();
|
|
12520
|
+
},
|
|
12521
|
+
get fallback() {
|
|
12522
|
+
return i18n_.modal_view_all_no_results_();
|
|
12523
|
+
},
|
|
12524
|
+
get children() {
|
|
12525
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
12526
|
+
var _el$9 = $52FdA$solidjsweb.getNextElement($43600b30502feeda$var$_tmpl$5);
|
|
12527
|
+
$52FdA$solidjsweb.insert(_el$9, formattedTotalNumberResults);
|
|
12528
|
+
return _el$9;
|
|
12529
|
+
})());
|
|
12530
|
+
}
|
|
12531
|
+
});
|
|
12532
|
+
}
|
|
12533
|
+
}));
|
|
12499
12534
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
12500
12535
|
return _el$7;
|
|
12501
12536
|
})();
|
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.
|
|
14
|
+
export const version = "4.9.0";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -110,6 +110,7 @@ interface search_i18n extends plp_shared_i18n {
|
|
|
110
110
|
previous_: string;
|
|
111
111
|
popular_: string;
|
|
112
112
|
products_: string;
|
|
113
|
+
modal_view_all_no_results_: string;
|
|
113
114
|
}
|
|
114
115
|
/**
|
|
115
116
|
* Category internationalisation
|
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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.0";
|
|
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 => {
|
|
@@ -11314,15 +11314,16 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
11314
11314
|
if (key === "Escape") close_modal_();
|
|
11315
11315
|
});
|
|
11316
11316
|
// total number of results = content results + product results
|
|
11317
|
-
const
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
|
|
11317
|
+
const totalNumberOfResults = $8tj43$createMemo(() => {
|
|
11318
|
+
var _get_modal_search_res, _results$content_sear;
|
|
11319
|
+
const results = (_get_modal_search_res = get_modal_search_results()) === null || _get_modal_search_res === void 0 ? void 0 : _get_modal_search_res();
|
|
11320
|
+
const hits = results === null || results === void 0 ? void 0 : results.n_hits;
|
|
11321
|
+
const content_results = results === null || results === void 0 ? void 0 : (_results$content_sear = results.content_search_links) === null || _results$content_sear === void 0 ? void 0 : _results$content_sear.length;
|
|
11322
|
+
if (!content_results || !content_search_enabled_()) return hits;
|
|
11323
|
+
return (hits !== null && hits !== void 0 ? hits : 0) + content_results;
|
|
11324
|
+
});
|
|
11325
|
+
const formattedTotalNumberResults = $43fbdca0f726a34b$export$92f2da32c6e7e7ee({
|
|
11326
|
+
number_: totalNumberOfResults,
|
|
11326
11327
|
i18n_: i18n_
|
|
11327
11328
|
});
|
|
11328
11329
|
const selected_index = $8tj43$createSignal();
|
|
@@ -11334,14 +11335,31 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
11334
11335
|
var _el$ = $8tj43$getNextElement($40411f2ec772c376$var$_tmpl$),
|
|
11335
11336
|
_el$2 = _el$.firstChild;
|
|
11336
11337
|
$8tj43$addEventListener(_el$2, "click", $8tj43$catchify1(() => submit_query_()), true);
|
|
11337
|
-
$8tj43$insert(_el$2, (()
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
return
|
|
11343
|
-
}
|
|
11344
|
-
|
|
11338
|
+
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
|
|
11339
|
+
get when() {
|
|
11340
|
+
return get_search_field_value_();
|
|
11341
|
+
},
|
|
11342
|
+
get fallback() {
|
|
11343
|
+
return i18n_.modal_discover_more_();
|
|
11344
|
+
},
|
|
11345
|
+
get children() {
|
|
11346
|
+
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
11347
|
+
get when() {
|
|
11348
|
+
return totalNumberOfResults();
|
|
11349
|
+
},
|
|
11350
|
+
get fallback() {
|
|
11351
|
+
return i18n_.modal_view_all_no_results_();
|
|
11352
|
+
},
|
|
11353
|
+
get children() {
|
|
11354
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
11355
|
+
var _el$3 = $8tj43$getNextElement($40411f2ec772c376$var$_tmpl$2);
|
|
11356
|
+
$8tj43$insert(_el$3, formattedTotalNumberResults);
|
|
11357
|
+
return _el$3;
|
|
11358
|
+
})());
|
|
11359
|
+
}
|
|
11360
|
+
});
|
|
11361
|
+
}
|
|
11362
|
+
}));
|
|
11345
11363
|
$8tj43$runHydrationEvents();
|
|
11346
11364
|
return _el$;
|
|
11347
11365
|
})();
|
|
@@ -12383,14 +12401,31 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12383
12401
|
var _el$7 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$4),
|
|
12384
12402
|
_el$8 = _el$7.firstChild;
|
|
12385
12403
|
$8tj43$addEventListener(_el$8, "click", $8tj43$catchify1(() => submit_query_()), true);
|
|
12386
|
-
$8tj43$insert(_el$8, (()
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
return
|
|
12392
|
-
}
|
|
12393
|
-
|
|
12404
|
+
$8tj43$insert(_el$8, $8tj43$createComponent((0, $8tj43$Show), {
|
|
12405
|
+
get when() {
|
|
12406
|
+
return get_search_field_value_();
|
|
12407
|
+
},
|
|
12408
|
+
get fallback() {
|
|
12409
|
+
return i18n_.modal_discover_more_();
|
|
12410
|
+
},
|
|
12411
|
+
get children() {
|
|
12412
|
+
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
12413
|
+
get when() {
|
|
12414
|
+
return totalNumberResults();
|
|
12415
|
+
},
|
|
12416
|
+
get fallback() {
|
|
12417
|
+
return i18n_.modal_view_all_no_results_();
|
|
12418
|
+
},
|
|
12419
|
+
get children() {
|
|
12420
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
12421
|
+
var _el$9 = $8tj43$getNextElement($06fcd2a345efd24d$var$_tmpl$5);
|
|
12422
|
+
$8tj43$insert(_el$9, formattedTotalNumberResults);
|
|
12423
|
+
return _el$9;
|
|
12424
|
+
})());
|
|
12425
|
+
}
|
|
12426
|
+
});
|
|
12427
|
+
}
|
|
12428
|
+
}));
|
|
12394
12429
|
$8tj43$runHydrationEvents();
|
|
12395
12430
|
return _el$7;
|
|
12396
12431
|
})();
|
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.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.9.0";
|
|
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, ({
|
|
@@ -10802,14 +10802,15 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
10802
10802
|
if (key === "Escape") close_modal_();
|
|
10803
10803
|
});
|
|
10804
10804
|
// total number of results = content results + product results
|
|
10805
|
-
const
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10805
|
+
const totalNumberOfResults = $gVhhF$solidjs.createMemo(() => {
|
|
10806
|
+
const results = get_modal_search_results()?.();
|
|
10807
|
+
const hits = results?.n_hits;
|
|
10808
|
+
const content_results = results?.content_search_links?.length;
|
|
10809
|
+
if (!content_results || !content_search_enabled_()) return hits;
|
|
10810
|
+
return (hits ?? 0) + content_results;
|
|
10811
|
+
});
|
|
10812
|
+
const formattedTotalNumberResults = $0f400c3f7248d5f1$export$92f2da32c6e7e7ee({
|
|
10813
|
+
number_: totalNumberOfResults,
|
|
10813
10814
|
i18n_: i18n_
|
|
10814
10815
|
});
|
|
10815
10816
|
const selected_index = $gVhhF$solidjs.createSignal();
|
|
@@ -10821,14 +10822,31 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
10821
10822
|
var _el$ = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$),
|
|
10822
10823
|
_el$2 = _el$.firstChild;
|
|
10823
10824
|
$gVhhF$solidjsweb.addEventListener(_el$2, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
10824
|
-
$gVhhF$solidjsweb.insert(_el$2, (()
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
return
|
|
10830
|
-
}
|
|
10831
|
-
|
|
10825
|
+
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
10826
|
+
get when() {
|
|
10827
|
+
return get_search_field_value_();
|
|
10828
|
+
},
|
|
10829
|
+
get fallback() {
|
|
10830
|
+
return i18n_.modal_discover_more_();
|
|
10831
|
+
},
|
|
10832
|
+
get children() {
|
|
10833
|
+
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
10834
|
+
get when() {
|
|
10835
|
+
return totalNumberOfResults();
|
|
10836
|
+
},
|
|
10837
|
+
get fallback() {
|
|
10838
|
+
return i18n_.modal_view_all_no_results_();
|
|
10839
|
+
},
|
|
10840
|
+
get children() {
|
|
10841
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
10842
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$2);
|
|
10843
|
+
$gVhhF$solidjsweb.insert(_el$3, formattedTotalNumberResults);
|
|
10844
|
+
return _el$3;
|
|
10845
|
+
})());
|
|
10846
|
+
}
|
|
10847
|
+
});
|
|
10848
|
+
}
|
|
10849
|
+
}));
|
|
10832
10850
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
10833
10851
|
return _el$;
|
|
10834
10852
|
})();
|
|
@@ -11831,14 +11849,31 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
11831
11849
|
var _el$7 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$4),
|
|
11832
11850
|
_el$8 = _el$7.firstChild;
|
|
11833
11851
|
$gVhhF$solidjsweb.addEventListener(_el$8, "click", $gVhhF$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
11834
|
-
$gVhhF$solidjsweb.insert(_el$8, (()
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
return
|
|
11840
|
-
}
|
|
11841
|
-
|
|
11852
|
+
$gVhhF$solidjsweb.insert(_el$8, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
11853
|
+
get when() {
|
|
11854
|
+
return get_search_field_value_();
|
|
11855
|
+
},
|
|
11856
|
+
get fallback() {
|
|
11857
|
+
return i18n_.modal_discover_more_();
|
|
11858
|
+
},
|
|
11859
|
+
get children() {
|
|
11860
|
+
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
11861
|
+
get when() {
|
|
11862
|
+
return totalNumberResults();
|
|
11863
|
+
},
|
|
11864
|
+
get fallback() {
|
|
11865
|
+
return i18n_.modal_view_all_no_results_();
|
|
11866
|
+
},
|
|
11867
|
+
get children() {
|
|
11868
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
11869
|
+
var _el$9 = $gVhhF$solidjsweb.getNextElement($11597ae03e703a47$var$_tmpl$5);
|
|
11870
|
+
$gVhhF$solidjsweb.insert(_el$9, formattedTotalNumberResults);
|
|
11871
|
+
return _el$9;
|
|
11872
|
+
})());
|
|
11873
|
+
}
|
|
11874
|
+
});
|
|
11875
|
+
}
|
|
11876
|
+
}));
|
|
11842
11877
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
11843
11878
|
return _el$7;
|
|
11844
11879
|
})();
|
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.
|
|
14
|
+
export const version = "4.9.0";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -110,6 +110,7 @@ interface search_i18n extends plp_shared_i18n {
|
|
|
110
110
|
previous_: string;
|
|
111
111
|
popular_: string;
|
|
112
112
|
products_: string;
|
|
113
|
+
modal_view_all_no_results_: string;
|
|
113
114
|
}
|
|
114
115
|
/**
|
|
115
116
|
* Category internationalisation
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$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
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.0";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $9HbP8$createSignal(false);
|
|
13
13
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -10700,14 +10700,15 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
10700
10700
|
if (key === "Escape") close_modal_();
|
|
10701
10701
|
});
|
|
10702
10702
|
// total number of results = content results + product results
|
|
10703
|
-
const
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10703
|
+
const totalNumberOfResults = $9HbP8$createMemo(() => {
|
|
10704
|
+
const results = get_modal_search_results()?.();
|
|
10705
|
+
const hits = results?.n_hits;
|
|
10706
|
+
const content_results = results?.content_search_links?.length;
|
|
10707
|
+
if (!content_results || !content_search_enabled_()) return hits;
|
|
10708
|
+
return (hits ?? 0) + content_results;
|
|
10709
|
+
});
|
|
10710
|
+
const formattedTotalNumberResults = $511cc0abd9a64ce8$export$92f2da32c6e7e7ee({
|
|
10711
|
+
number_: totalNumberOfResults,
|
|
10711
10712
|
i18n_: i18n_
|
|
10712
10713
|
});
|
|
10713
10714
|
const selected_index = $9HbP8$createSignal();
|
|
@@ -10719,14 +10720,31 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
10719
10720
|
var _el$ = $9HbP8$getNextElement($42912431795f188e$var$_tmpl$),
|
|
10720
10721
|
_el$2 = _el$.firstChild;
|
|
10721
10722
|
$9HbP8$addEventListener(_el$2, "click", $9HbP8$catchify1(() => submit_query_()), true);
|
|
10722
|
-
$9HbP8$insert(_el$2, (()
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
return
|
|
10728
|
-
}
|
|
10729
|
-
|
|
10723
|
+
$9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
10724
|
+
get when() {
|
|
10725
|
+
return get_search_field_value_();
|
|
10726
|
+
},
|
|
10727
|
+
get fallback() {
|
|
10728
|
+
return i18n_.modal_discover_more_();
|
|
10729
|
+
},
|
|
10730
|
+
get children() {
|
|
10731
|
+
return $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
10732
|
+
get when() {
|
|
10733
|
+
return totalNumberOfResults();
|
|
10734
|
+
},
|
|
10735
|
+
get fallback() {
|
|
10736
|
+
return i18n_.modal_view_all_no_results_();
|
|
10737
|
+
},
|
|
10738
|
+
get children() {
|
|
10739
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
10740
|
+
var _el$3 = $9HbP8$getNextElement($42912431795f188e$var$_tmpl$2);
|
|
10741
|
+
$9HbP8$insert(_el$3, formattedTotalNumberResults);
|
|
10742
|
+
return _el$3;
|
|
10743
|
+
})());
|
|
10744
|
+
}
|
|
10745
|
+
});
|
|
10746
|
+
}
|
|
10747
|
+
}));
|
|
10730
10748
|
$9HbP8$runHydrationEvents();
|
|
10731
10749
|
return _el$;
|
|
10732
10750
|
})();
|
|
@@ -11729,14 +11747,31 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11729
11747
|
var _el$7 = $9HbP8$getNextElement($500a16dd18ee5a71$var$_tmpl$4),
|
|
11730
11748
|
_el$8 = _el$7.firstChild;
|
|
11731
11749
|
$9HbP8$addEventListener(_el$8, "click", $9HbP8$catchify1(() => submit_query_()), true);
|
|
11732
|
-
$9HbP8$insert(_el$8, (()
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
return
|
|
11738
|
-
}
|
|
11739
|
-
|
|
11750
|
+
$9HbP8$insert(_el$8, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
11751
|
+
get when() {
|
|
11752
|
+
return get_search_field_value_();
|
|
11753
|
+
},
|
|
11754
|
+
get fallback() {
|
|
11755
|
+
return i18n_.modal_discover_more_();
|
|
11756
|
+
},
|
|
11757
|
+
get children() {
|
|
11758
|
+
return $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
11759
|
+
get when() {
|
|
11760
|
+
return totalNumberResults();
|
|
11761
|
+
},
|
|
11762
|
+
get fallback() {
|
|
11763
|
+
return i18n_.modal_view_all_no_results_();
|
|
11764
|
+
},
|
|
11765
|
+
get children() {
|
|
11766
|
+
return i18n_.modal_view_all_results_()((() => {
|
|
11767
|
+
var _el$9 = $9HbP8$getNextElement($500a16dd18ee5a71$var$_tmpl$5);
|
|
11768
|
+
$9HbP8$insert(_el$9, formattedTotalNumberResults);
|
|
11769
|
+
return _el$9;
|
|
11770
|
+
})());
|
|
11771
|
+
}
|
|
11772
|
+
});
|
|
11773
|
+
}
|
|
11774
|
+
}));
|
|
11740
11775
|
$9HbP8$runHydrationEvents();
|
|
11741
11776
|
return _el$7;
|
|
11742
11777
|
})();
|
package/locales/ES10/index.cjs
CHANGED
|
@@ -123,7 +123,8 @@ const $37232ce8fd20bb15$export$434b5d2e9cbbcde1 = {
|
|
|
123
123
|
get_showing_pages_for_: (query, number_of_results_element, has_query, number_of_results) => {
|
|
124
124
|
const page_form = number_of_results === 1 ? "page" : "pages";
|
|
125
125
|
return has_query ? ["Found ", number_of_results_element, " ".concat(page_form, " for "), query] : ["Found ", number_of_results_element, " ".concat(page_form)];
|
|
126
|
-
}
|
|
126
|
+
},
|
|
127
|
+
modal_view_all_no_results_: "View alternatives"
|
|
127
128
|
};
|
|
128
129
|
const $c318f9c1803402a6$var$czech_base_translation = {
|
|
129
130
|
"of_": "z",
|
|
@@ -198,7 +199,8 @@ const $c318f9c1803402a6$export$62ef558576ddaf3d = {
|
|
|
198
199
|
listing_suggestions_: "Kategorie & Kolekce",
|
|
199
200
|
previous_: "P\u0159edchoz\xed",
|
|
200
201
|
popular_: "Popul\xe1rn\xed",
|
|
201
|
-
products_: "Produkty"
|
|
202
|
+
products_: "Produkty",
|
|
203
|
+
modal_view_all_no_results_: "Zobrazit alternativy"
|
|
202
204
|
};
|
|
203
205
|
const $d2c5f24e02eb2e8a$var$danish_base_translation = {
|
|
204
206
|
"of_": "af",
|
|
@@ -271,7 +273,8 @@ const $d2c5f24e02eb2e8a$export$70578856b2420b5d = {
|
|
|
271
273
|
get_showing_pages_for_: (query, number_of_results_element, has_query, number_of_results) => {
|
|
272
274
|
const page_form = number_of_results === 1 ? "side" : "sider";
|
|
273
275
|
return has_query ? ["Fandt ", number_of_results_element, " ".concat(page_form, " for "), query] : ["Fandt ", number_of_results_element, " ".concat(page_form)];
|
|
274
|
-
}
|
|
276
|
+
},
|
|
277
|
+
modal_view_all_no_results_: "Se alternativer"
|
|
275
278
|
};
|
|
276
279
|
const $4103d7d80b34bfee$var$dutch_base_translation = {
|
|
277
280
|
"of_": "van",
|
|
@@ -344,7 +347,8 @@ const $4103d7d80b34bfee$export$5d14584e27bf4bc5 = {
|
|
|
344
347
|
listing_suggestions_: "Categorie\xebn & Collecties",
|
|
345
348
|
previous_: "Vorige",
|
|
346
349
|
popular_: "Populair",
|
|
347
|
-
products_: "Producten"
|
|
350
|
+
products_: "Producten",
|
|
351
|
+
modal_view_all_no_results_: "Bekijk alternatieven"
|
|
348
352
|
};
|
|
349
353
|
const $b31f22b9e38788da$var$finnish_base_translation = {
|
|
350
354
|
"of_": "/",
|
|
@@ -417,7 +421,8 @@ const $b31f22b9e38788da$export$bb9c5e11b9203620 = {
|
|
|
417
421
|
listing_suggestions_: "Kategoriat & Kokoelmat",
|
|
418
422
|
previous_: "Edellinen",
|
|
419
423
|
popular_: "Suosittu",
|
|
420
|
-
products_: "Tuotteet"
|
|
424
|
+
products_: "Tuotteet",
|
|
425
|
+
modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot"
|
|
421
426
|
};
|
|
422
427
|
const $94cd86d0f0afd844$var$french_base_translation = {
|
|
423
428
|
"of_": "de",
|
|
@@ -490,7 +495,8 @@ const $94cd86d0f0afd844$export$e608b2bb21ba1862 = {
|
|
|
490
495
|
listing_suggestions_: "Cat\xe9gories & Collections",
|
|
491
496
|
previous_: "Pr\xe9c\xe9dent",
|
|
492
497
|
popular_: "Populaire",
|
|
493
|
-
products_: "Produits"
|
|
498
|
+
products_: "Produits",
|
|
499
|
+
modal_view_all_no_results_: "Voir les alternatives"
|
|
494
500
|
};
|
|
495
501
|
const $7a49ed48f9a44684$var$german_base_translation = {
|
|
496
502
|
"of_": "von",
|
|
@@ -563,7 +569,8 @@ const $7a49ed48f9a44684$export$b43a5e72c07b4d2a = {
|
|
|
563
569
|
get_showing_pages_for_: (query, number_of_results_element, has_query, number_of_results) => {
|
|
564
570
|
const page_form = number_of_results === 1 ? "Seite" : "Seiten";
|
|
565
571
|
return has_query ? [number_of_results_element, " ".concat(page_form, " f\xfcr "), query] : [number_of_results_element, " ".concat(page_form)];
|
|
566
|
-
}
|
|
572
|
+
},
|
|
573
|
+
modal_view_all_no_results_: "Alternativen anzeigen"
|
|
567
574
|
};
|
|
568
575
|
const $e35c43442881ef9b$var$italian_base_translation = {
|
|
569
576
|
"of_": "di",
|
|
@@ -636,7 +643,8 @@ const $e35c43442881ef9b$export$c05550c0848a3fe4 = {
|
|
|
636
643
|
listing_suggestions_: "Categorie & Collezioni",
|
|
637
644
|
previous_: "Precedente",
|
|
638
645
|
popular_: "Popolare",
|
|
639
|
-
products_: "Prodotti"
|
|
646
|
+
products_: "Prodotti",
|
|
647
|
+
modal_view_all_no_results_: "Visualizza alternative"
|
|
640
648
|
};
|
|
641
649
|
const $198e62eb02da5caf$var$norwegian_base_translation = {
|
|
642
650
|
"of_": "av",
|
|
@@ -709,7 +717,8 @@ const $198e62eb02da5caf$export$dcb702a89633f297 = {
|
|
|
709
717
|
get_showing_pages_for_: (query, number_of_results_element, has_query, number_of_results) => {
|
|
710
718
|
const page_form = number_of_results === 1 ? "side" : "sider";
|
|
711
719
|
return has_query ? ["Fant ", number_of_results_element, " ".concat(page_form, " for "), query] : ["Fant ", number_of_results_element, " ".concat(page_form)];
|
|
712
|
-
}
|
|
720
|
+
},
|
|
721
|
+
modal_view_all_no_results_: "Vis alternativer"
|
|
713
722
|
};
|
|
714
723
|
const $04b21cf1809eada5$var$polish_base_translation = {
|
|
715
724
|
"of_": "z",
|
|
@@ -791,7 +800,8 @@ const $04b21cf1809eada5$export$b0eb0dd41442f532 = {
|
|
|
791
800
|
listing_suggestions_: "Kategorie & Kolekcje",
|
|
792
801
|
previous_: "Poprzedni",
|
|
793
802
|
popular_: "Popularne",
|
|
794
|
-
products_: "Produkty"
|
|
803
|
+
products_: "Produkty",
|
|
804
|
+
modal_view_all_no_results_: "Zobacz alternatywy"
|
|
795
805
|
};
|
|
796
806
|
const $c276fe3ab8d132a1$var$portuguese_base_translation = {
|
|
797
807
|
"of_": "de",
|
|
@@ -853,7 +863,8 @@ const $c276fe3ab8d132a1$export$b3b5aa2c4df8976f = {
|
|
|
853
863
|
listing_suggestions_: "Categorias & Cole\xe7\xf5es",
|
|
854
864
|
previous_: "Anterior",
|
|
855
865
|
popular_: "Popular",
|
|
856
|
-
products_: "Produtos"
|
|
866
|
+
products_: "Produtos",
|
|
867
|
+
modal_view_all_no_results_: "Ver alternativas"
|
|
857
868
|
};
|
|
858
869
|
const $91dcb6e4a880879a$var$spanish_base_translation = {
|
|
859
870
|
"of_": "de",
|
|
@@ -926,7 +937,8 @@ const $91dcb6e4a880879a$export$49b8f20513f0ff25 = {
|
|
|
926
937
|
listing_suggestions_: "Categor\xedas & Colecciones",
|
|
927
938
|
previous_: "Anterior",
|
|
928
939
|
popular_: "Popular",
|
|
929
|
-
products_: "Productos"
|
|
940
|
+
products_: "Productos",
|
|
941
|
+
modal_view_all_no_results_: "Ver alternativas"
|
|
930
942
|
};
|
|
931
943
|
const $3d7cd7b2646ce6ae$var$swedish_base_translation = {
|
|
932
944
|
"of_": "av",
|
|
@@ -975,6 +987,7 @@ const $3d7cd7b2646ce6ae$export$596caee559c76764 = {
|
|
|
975
987
|
...$3d7cd7b2646ce6ae$var$swedish_base_translation,
|
|
976
988
|
"no_results_text_": "Inga resultat",
|
|
977
989
|
modal_view_all_results_: number_of_results => ["Visa alla ", number_of_results, " resultat"],
|
|
990
|
+
modal_view_all_no_results_: "Visa andra alternativ",
|
|
978
991
|
"search_recs_title_": "Andra alternativ",
|
|
979
992
|
"clear_filters_query_sorting_after_submit_": "Rensa f\xf6rfr\xe5ga och filter + sorting efter ny f\xf6rfr\xe5ga",
|
|
980
993
|
"previous_searches_text_": "Dina tidigare s\xf6kningar",
|