@depict-ai/ui 4.10.30 → 4.10.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82,7 +82,8 @@ const $435041cdb16ac262$export$363d705e3ad31495 = {
82
82
  const page_form = number_of_results === 1 ? "\u0635\u0641\u062D\u0629" : "\u0635\u0641\u062D\u0627\u062A";
83
83
  return has_query ? ["\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 ", number_of_results_element, " ".concat(page_form, " \u0644\u0640 "), query] : ["\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 ", number_of_results_element, " ".concat(page_form)];
84
84
  },
85
- modal_view_all_no_results_: "\u0639\u0631\u0636 \u0627\u0644\u0628\u062F\u0627\u0626\u0644"
85
+ modal_view_all_no_results_: "\u0639\u0631\u0636 \u0627\u0644\u0628\u062F\u0627\u0626\u0644",
86
+ get_no_exact_matches_: query => ["\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629 \u062A\u0645\u0627\u0645\u064B\u0627 \u0644\u0640 ", query, ". \u0646\u0639\u0631\u0636 \u0645\u0646\u062A\u062C\u0627\u062A \u0645\u0634\u0627\u0628\u0647\u0629."]
86
87
  };
87
88
  const $3ae9d5d3dda72bac$var$english_base_translation = {
88
89
  backend_locale_: "",
@@ -162,7 +163,8 @@ const $3ae9d5d3dda72bac$export$434b5d2e9cbbcde1 = {
162
163
  const page_form = number_of_results === 1 ? "page" : "pages";
163
164
  return has_query ? ["Found ", number_of_results_element, " ".concat(page_form, " for "), query] : ["Found ", number_of_results_element, " ".concat(page_form)];
164
165
  },
165
- modal_view_all_no_results_: "View alternatives"
166
+ modal_view_all_no_results_: "View alternatives",
167
+ get_no_exact_matches_: query => ["No exact matches for ", query, ". Showing similar products."]
166
168
  };
167
169
  const $6364f832d4df5198$var$czech_base_translation = {
168
170
  "of_": "z",
@@ -238,7 +240,8 @@ const $6364f832d4df5198$export$62ef558576ddaf3d = {
238
240
  previous_: "P\u0159edchoz\xed",
239
241
  popular_: "Popul\xe1rn\xed",
240
242
  products_: "Produkty",
241
- modal_view_all_no_results_: "Zobrazit alternativy"
243
+ modal_view_all_no_results_: "Zobrazit alternativy",
244
+ get_no_exact_matches_: query => ["\u017D\xe1dn\xe9 p\u0159esn\xe9 shody pro ", query, ". Zobrazujeme podobn\xe9 produkty."]
242
245
  };
243
246
  const $d73851348ade03e4$var$danish_base_translation = {
244
247
  "of_": "af",
@@ -312,7 +315,8 @@ const $d73851348ade03e4$export$70578856b2420b5d = {
312
315
  const page_form = number_of_results === 1 ? "side" : "sider";
313
316
  return has_query ? ["Fandt ", number_of_results_element, " ".concat(page_form, " for "), query] : ["Fandt ", number_of_results_element, " ".concat(page_form)];
314
317
  },
315
- modal_view_all_no_results_: "Se alternativer"
318
+ modal_view_all_no_results_: "Se alternativer",
319
+ get_no_exact_matches_: query => ["Ingen pr\xe6cise match for ", query, ". Viser lignende produkter."]
316
320
  };
317
321
  const $368410baba881db8$var$dutch_base_translation = {
318
322
  "of_": "van",
@@ -386,7 +390,8 @@ const $368410baba881db8$export$5d14584e27bf4bc5 = {
386
390
  previous_: "Vorige",
387
391
  popular_: "Populair",
388
392
  products_: "Producten",
389
- modal_view_all_no_results_: "Bekijk alternatieven"
393
+ modal_view_all_no_results_: "Bekijk alternatieven",
394
+ get_no_exact_matches_: query => ["Geen exacte resultaten voor ", query, ". Vergelijkbare producten worden getoond."]
390
395
  };
391
396
  const $5140cb4dc78a083c$var$finnish_base_translation = {
392
397
  "of_": "/",
@@ -460,7 +465,8 @@ const $5140cb4dc78a083c$export$bb9c5e11b9203620 = {
460
465
  previous_: "Edellinen",
461
466
  popular_: "Suosittu",
462
467
  products_: "Tuotteet",
463
- modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot"
468
+ modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot",
469
+ get_no_exact_matches_: query => ["Ei tarkkoja osumia haulle ", query, ". N\xe4ytet\xe4\xe4n samankaltaisia tuotteita."]
464
470
  };
465
471
  const $4696ad1afe2a2ee4$var$french_base_translation = {
466
472
  "of_": "de",
@@ -534,7 +540,8 @@ const $4696ad1afe2a2ee4$export$e608b2bb21ba1862 = {
534
540
  previous_: "Pr\xe9c\xe9dent",
535
541
  popular_: "Populaire",
536
542
  products_: "Produits",
537
- modal_view_all_no_results_: "Voir les alternatives"
543
+ modal_view_all_no_results_: "Voir les alternatives",
544
+ get_no_exact_matches_: query => ["Aucun r\xe9sultat exact pour ", query, ". Voici des produits similaires."]
538
545
  };
539
546
  const $c81467eae166ae22$var$german_base_translation = {
540
547
  "of_": "von",
@@ -608,7 +615,8 @@ const $c81467eae166ae22$export$b43a5e72c07b4d2a = {
608
615
  const page_form = number_of_results === 1 ? "Seite" : "Seiten";
609
616
  return has_query ? [number_of_results_element, " ".concat(page_form, " f\xfcr "), query] : [number_of_results_element, " ".concat(page_form)];
610
617
  },
611
- modal_view_all_no_results_: "Alternativen anzeigen"
618
+ modal_view_all_no_results_: "Alternativen anzeigen",
619
+ get_no_exact_matches_: query => ["Keine genauen Treffer f\xfcr ", query, ". \xc4hnliche Produkte werden angezeigt."]
612
620
  };
613
621
  const $0e84ab0682b2b63b$var$italian_base_translation = {
614
622
  "of_": "di",
@@ -682,7 +690,8 @@ const $0e84ab0682b2b63b$export$c05550c0848a3fe4 = {
682
690
  previous_: "Precedente",
683
691
  popular_: "Popolare",
684
692
  products_: "Prodotti",
685
- modal_view_all_no_results_: "Visualizza alternative"
693
+ modal_view_all_no_results_: "Visualizza alternative",
694
+ get_no_exact_matches_: query => ["Nessuna corrispondenza esatta per ", query, ". Ecco alcuni prodotti simili."]
686
695
  };
687
696
  const $38f06990a10567ed$var$norwegian_base_translation = {
688
697
  "of_": "av",
@@ -756,7 +765,8 @@ const $38f06990a10567ed$export$dcb702a89633f297 = {
756
765
  const page_form = number_of_results === 1 ? "side" : "sider";
757
766
  return has_query ? ["Fant ", number_of_results_element, " ".concat(page_form, " for "), query] : ["Fant ", number_of_results_element, " ".concat(page_form)];
758
767
  },
759
- modal_view_all_no_results_: "Vis alternativer"
768
+ modal_view_all_no_results_: "Vis alternativer",
769
+ get_no_exact_matches_: query => ["Ingen eksakte treff for ", query, ". Viser lignende produkter."]
760
770
  };
761
771
  const $101c0cfbaa775bb0$var$polish_base_translation = {
762
772
  "of_": "z",
@@ -839,7 +849,8 @@ const $101c0cfbaa775bb0$export$b0eb0dd41442f532 = {
839
849
  previous_: "Poprzedni",
840
850
  popular_: "Popularne",
841
851
  products_: "Produkty",
842
- modal_view_all_no_results_: "Zobacz alternatywy"
852
+ modal_view_all_no_results_: "Zobacz alternatywy",
853
+ get_no_exact_matches_: query => ["Brak dok\u0142adnych wynik\xf3w dla ", query, ". Pokazujemy podobne produkty."]
843
854
  };
844
855
  const $fd9d8e59d275df31$var$portuguese_base_translation = {
845
856
  "of_": "de",
@@ -902,7 +913,8 @@ const $fd9d8e59d275df31$export$b3b5aa2c4df8976f = {
902
913
  previous_: "Anterior",
903
914
  popular_: "Popular",
904
915
  products_: "Produtos",
905
- modal_view_all_no_results_: "Ver alternativas"
916
+ modal_view_all_no_results_: "Ver alternativas",
917
+ get_no_exact_matches_: query => ["Nenhuma correspond\xeancia exata para ", query, ". A mostrar produtos semelhantes."]
906
918
  };
907
919
  const $0c1ebd1a211aef29$var$spanish_base_translation = {
908
920
  "of_": "de",
@@ -976,7 +988,8 @@ const $0c1ebd1a211aef29$export$49b8f20513f0ff25 = {
976
988
  previous_: "Anterior",
977
989
  popular_: "Popular",
978
990
  products_: "Productos",
979
- modal_view_all_no_results_: "Ver alternativas"
991
+ modal_view_all_no_results_: "Ver alternativas",
992
+ get_no_exact_matches_: query => ["No hay coincidencias exactas para ", query, ". Mostrando productos similares."]
980
993
  };
981
994
  const $47640445b8596ffd$var$swedish_base_translation = {
982
995
  "of_": "av",
@@ -1026,6 +1039,7 @@ const $47640445b8596ffd$export$596caee559c76764 = {
1026
1039
  "no_results_text_": "Inga resultat",
1027
1040
  modal_view_all_results_: number_of_results => ["Visa alla ", number_of_results, " resultat"],
1028
1041
  modal_view_all_no_results_: "Visa andra alternativ",
1042
+ get_no_exact_matches_: query => ["Inga exakta tr\xe4ffar f\xf6r ", query, ". Visar liknande produkter."],
1029
1043
  "search_recs_title_": "Andra alternativ",
1030
1044
  "clear_filters_query_sorting_after_submit_": "Rensa f\xf6rfr\xe5ga och filter + sorting efter ny f\xf6rfr\xe5ga",
1031
1045
  "previous_searches_text_": "Dina tidigare s\xf6kningar",
@@ -127,7 +127,8 @@ const $1c5d3660e2509a6e$export$363d705e3ad31495 = {
127
127
  const page_form = number_of_results === 1 ? "\u0635\u0641\u062D\u0629" : "\u0635\u0641\u062D\u0627\u062A";
128
128
  return has_query ? [`\u{62A}\u{645} \u{627}\u{644}\u{639}\u{62B}\u{648}\u{631} \u{639}\u{644}\u{649} `, number_of_results_element, ` ${page_form} \u{644}\u{640} `, query] : [`\u{62A}\u{645} \u{627}\u{644}\u{639}\u{62B}\u{648}\u{631} \u{639}\u{644}\u{649} `, number_of_results_element, ` ${page_form}`];
129
129
  },
130
- modal_view_all_no_results_: "\u0639\u0631\u0636 \u0627\u0644\u0628\u062F\u0627\u0626\u0644"
130
+ modal_view_all_no_results_: "\u0639\u0631\u0636 \u0627\u0644\u0628\u062F\u0627\u0626\u0644",
131
+ get_no_exact_matches_: query => ["\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629 \u062A\u0645\u0627\u0645\u064B\u0627 \u0644\u0640 ", query, ". \u0646\u0639\u0631\u0636 \u0645\u0646\u062A\u062C\u0627\u062A \u0645\u0634\u0627\u0628\u0647\u0629."]
131
132
  };
132
133
  const $f1b6d8431ecd6285$var$english_base_translation = {
133
134
  backend_locale_: "",
@@ -207,7 +208,8 @@ const $f1b6d8431ecd6285$export$434b5d2e9cbbcde1 = {
207
208
  const page_form = number_of_results === 1 ? "page" : "pages";
208
209
  return has_query ? [`Found `, number_of_results_element, ` ${page_form} for `, query] : [`Found `, number_of_results_element, ` ${page_form}`];
209
210
  },
210
- modal_view_all_no_results_: "View alternatives"
211
+ modal_view_all_no_results_: "View alternatives",
212
+ get_no_exact_matches_: query => ["No exact matches for ", query, ". Showing similar products."]
211
213
  };
212
214
  const $8ef6412601d023f6$var$czech_base_translation = {
213
215
  "of_": "z",
@@ -283,7 +285,8 @@ const $8ef6412601d023f6$export$62ef558576ddaf3d = {
283
285
  previous_: "P\u0159edchoz\xed",
284
286
  popular_: "Popul\xe1rn\xed",
285
287
  products_: "Produkty",
286
- modal_view_all_no_results_: "Zobrazit alternativy"
288
+ modal_view_all_no_results_: "Zobrazit alternativy",
289
+ get_no_exact_matches_: query => ["\u017D\xe1dn\xe9 p\u0159esn\xe9 shody pro ", query, ". Zobrazujeme podobn\xe9 produkty."]
287
290
  };
288
291
  const $fc1a3c43e73d0d0c$var$danish_base_translation = {
289
292
  "of_": "af",
@@ -357,7 +360,8 @@ const $fc1a3c43e73d0d0c$export$70578856b2420b5d = {
357
360
  const page_form = number_of_results === 1 ? "side" : "sider";
358
361
  return has_query ? [`Fandt `, number_of_results_element, ` ${page_form} for `, query] : [`Fandt `, number_of_results_element, ` ${page_form}`];
359
362
  },
360
- modal_view_all_no_results_: "Se alternativer"
363
+ modal_view_all_no_results_: "Se alternativer",
364
+ get_no_exact_matches_: query => ["Ingen pr\xe6cise match for ", query, ". Viser lignende produkter."]
361
365
  };
362
366
  const $cd1eff535043eb6a$var$dutch_base_translation = {
363
367
  "of_": "van",
@@ -431,7 +435,8 @@ const $cd1eff535043eb6a$export$5d14584e27bf4bc5 = {
431
435
  previous_: "Vorige",
432
436
  popular_: "Populair",
433
437
  products_: "Producten",
434
- modal_view_all_no_results_: "Bekijk alternatieven"
438
+ modal_view_all_no_results_: "Bekijk alternatieven",
439
+ get_no_exact_matches_: query => ["Geen exacte resultaten voor ", query, ". Vergelijkbare producten worden getoond."]
435
440
  };
436
441
  const $d0b352fa07f6870a$var$finnish_base_translation = {
437
442
  "of_": "/",
@@ -505,7 +510,8 @@ const $d0b352fa07f6870a$export$bb9c5e11b9203620 = {
505
510
  previous_: "Edellinen",
506
511
  popular_: "Suosittu",
507
512
  products_: "Tuotteet",
508
- modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot"
513
+ modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot",
514
+ get_no_exact_matches_: query => ["Ei tarkkoja osumia haulle ", query, ". N\xe4ytet\xe4\xe4n samankaltaisia tuotteita."]
509
515
  };
510
516
  const $e564b793c93f72ec$var$french_base_translation = {
511
517
  "of_": "de",
@@ -579,7 +585,8 @@ const $e564b793c93f72ec$export$e608b2bb21ba1862 = {
579
585
  previous_: "Pr\xe9c\xe9dent",
580
586
  popular_: "Populaire",
581
587
  products_: "Produits",
582
- modal_view_all_no_results_: "Voir les alternatives"
588
+ modal_view_all_no_results_: "Voir les alternatives",
589
+ get_no_exact_matches_: query => ["Aucun r\xe9sultat exact pour ", query, ". Voici des produits similaires."]
583
590
  };
584
591
  const $fe31f8ec160a842b$var$german_base_translation = {
585
592
  "of_": "von",
@@ -653,7 +660,8 @@ const $fe31f8ec160a842b$export$b43a5e72c07b4d2a = {
653
660
  const page_form = number_of_results === 1 ? "Seite" : "Seiten";
654
661
  return has_query ? [number_of_results_element, ` ${page_form} f\xfcr `, query] : [number_of_results_element, ` ${page_form}`];
655
662
  },
656
- modal_view_all_no_results_: "Alternativen anzeigen"
663
+ modal_view_all_no_results_: "Alternativen anzeigen",
664
+ get_no_exact_matches_: query => ["Keine genauen Treffer f\xfcr ", query, ". \xc4hnliche Produkte werden angezeigt."]
657
665
  };
658
666
  const $51586940f993357f$var$italian_base_translation = {
659
667
  "of_": "di",
@@ -727,7 +735,8 @@ const $51586940f993357f$export$c05550c0848a3fe4 = {
727
735
  previous_: "Precedente",
728
736
  popular_: "Popolare",
729
737
  products_: "Prodotti",
730
- modal_view_all_no_results_: "Visualizza alternative"
738
+ modal_view_all_no_results_: "Visualizza alternative",
739
+ get_no_exact_matches_: query => ["Nessuna corrispondenza esatta per ", query, ". Ecco alcuni prodotti simili."]
731
740
  };
732
741
  const $0a060b0fa5b7442d$var$norwegian_base_translation = {
733
742
  "of_": "av",
@@ -801,7 +810,8 @@ const $0a060b0fa5b7442d$export$dcb702a89633f297 = {
801
810
  const page_form = number_of_results === 1 ? "side" : "sider";
802
811
  return has_query ? [`Fant `, number_of_results_element, ` ${page_form} for `, query] : [`Fant `, number_of_results_element, ` ${page_form}`];
803
812
  },
804
- modal_view_all_no_results_: "Vis alternativer"
813
+ modal_view_all_no_results_: "Vis alternativer",
814
+ get_no_exact_matches_: query => ["Ingen eksakte treff for ", query, ". Viser lignende produkter."]
805
815
  };
806
816
  const $738a70c7e6fb49c6$var$polish_base_translation = {
807
817
  "of_": "z",
@@ -884,7 +894,8 @@ const $738a70c7e6fb49c6$export$b0eb0dd41442f532 = {
884
894
  previous_: "Poprzedni",
885
895
  popular_: "Popularne",
886
896
  products_: "Produkty",
887
- modal_view_all_no_results_: "Zobacz alternatywy"
897
+ modal_view_all_no_results_: "Zobacz alternatywy",
898
+ get_no_exact_matches_: query => ["Brak dok\u0142adnych wynik\xf3w dla ", query, ". Pokazujemy podobne produkty."]
888
899
  };
889
900
  const $646aae836974143a$var$portuguese_base_translation = {
890
901
  "of_": "de",
@@ -947,7 +958,8 @@ const $646aae836974143a$export$b3b5aa2c4df8976f = {
947
958
  previous_: "Anterior",
948
959
  popular_: "Popular",
949
960
  products_: "Produtos",
950
- modal_view_all_no_results_: "Ver alternativas"
961
+ modal_view_all_no_results_: "Ver alternativas",
962
+ get_no_exact_matches_: query => ["Nenhuma correspond\xeancia exata para ", query, ". A mostrar produtos semelhantes."]
951
963
  };
952
964
  const $4ede94931984913a$var$spanish_base_translation = {
953
965
  "of_": "de",
@@ -1021,7 +1033,8 @@ const $4ede94931984913a$export$49b8f20513f0ff25 = {
1021
1033
  previous_: "Anterior",
1022
1034
  popular_: "Popular",
1023
1035
  products_: "Productos",
1024
- modal_view_all_no_results_: "Ver alternativas"
1036
+ modal_view_all_no_results_: "Ver alternativas",
1037
+ get_no_exact_matches_: query => ["No hay coincidencias exactas para ", query, ". Mostrando productos similares."]
1025
1038
  };
1026
1039
  const $9c8f18e0e8a2b1d9$var$swedish_base_translation = {
1027
1040
  "of_": "av",
@@ -1071,6 +1084,7 @@ const $9c8f18e0e8a2b1d9$export$596caee559c76764 = {
1071
1084
  "no_results_text_": "Inga resultat",
1072
1085
  modal_view_all_results_: number_of_results => ["Visa alla ", number_of_results, " resultat"],
1073
1086
  modal_view_all_no_results_: "Visa andra alternativ",
1087
+ get_no_exact_matches_: query => ["Inga exakta tr\xe4ffar f\xf6r ", query, ". Visar liknande produkter."],
1074
1088
  "search_recs_title_": "Andra alternativ",
1075
1089
  "clear_filters_query_sorting_after_submit_": "Rensa f\xf6rfr\xe5ga och filter + sorting efter ny f\xf6rfr\xe5ga",
1076
1090
  "previous_searches_text_": "Dina tidigare s\xf6kningar",
@@ -71,6 +71,11 @@ export interface search_i18n extends plp_shared_i18n {
71
71
  popular_: string;
72
72
  products_: string;
73
73
  modal_view_all_no_results_: string;
74
+ /**
75
+ * Shown above the results when no product matched the query and search shows similar products.
76
+ * Optional: a custom locale without it shows no notice.
77
+ */
78
+ get_no_exact_matches_?: (query: HTMLElement) => Elem[];
74
79
  }
75
80
  /**
76
81
  * Category internationalisation
@@ -82,7 +82,8 @@ const $270ee6020a1e29ad$export$363d705e3ad31495 = {
82
82
  const page_form = number_of_results === 1 ? "\u0635\u0641\u062D\u0629" : "\u0635\u0641\u062D\u0627\u062A";
83
83
  return has_query ? [`\u{62A}\u{645} \u{627}\u{644}\u{639}\u{62B}\u{648}\u{631} \u{639}\u{644}\u{649} `, number_of_results_element, ` ${page_form} \u{644}\u{640} `, query] : [`\u{62A}\u{645} \u{627}\u{644}\u{639}\u{62B}\u{648}\u{631} \u{639}\u{644}\u{649} `, number_of_results_element, ` ${page_form}`];
84
84
  },
85
- modal_view_all_no_results_: "\u0639\u0631\u0636 \u0627\u0644\u0628\u062F\u0627\u0626\u0644"
85
+ modal_view_all_no_results_: "\u0639\u0631\u0636 \u0627\u0644\u0628\u062F\u0627\u0626\u0644",
86
+ get_no_exact_matches_: query => ["\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629 \u062A\u0645\u0627\u0645\u064B\u0627 \u0644\u0640 ", query, ". \u0646\u0639\u0631\u0636 \u0645\u0646\u062A\u062C\u0627\u062A \u0645\u0634\u0627\u0628\u0647\u0629."]
86
87
  };
87
88
  const $0f11d1c8c78bac40$var$english_base_translation = {
88
89
  backend_locale_: "",
@@ -162,7 +163,8 @@ const $0f11d1c8c78bac40$export$434b5d2e9cbbcde1 = {
162
163
  const page_form = number_of_results === 1 ? "page" : "pages";
163
164
  return has_query ? [`Found `, number_of_results_element, ` ${page_form} for `, query] : [`Found `, number_of_results_element, ` ${page_form}`];
164
165
  },
165
- modal_view_all_no_results_: "View alternatives"
166
+ modal_view_all_no_results_: "View alternatives",
167
+ get_no_exact_matches_: query => ["No exact matches for ", query, ". Showing similar products."]
166
168
  };
167
169
  const $cc5f333f4d0674e5$var$czech_base_translation = {
168
170
  "of_": "z",
@@ -238,7 +240,8 @@ const $cc5f333f4d0674e5$export$62ef558576ddaf3d = {
238
240
  previous_: "P\u0159edchoz\xed",
239
241
  popular_: "Popul\xe1rn\xed",
240
242
  products_: "Produkty",
241
- modal_view_all_no_results_: "Zobrazit alternativy"
243
+ modal_view_all_no_results_: "Zobrazit alternativy",
244
+ get_no_exact_matches_: query => ["\u017D\xe1dn\xe9 p\u0159esn\xe9 shody pro ", query, ". Zobrazujeme podobn\xe9 produkty."]
242
245
  };
243
246
  const $6d2294054a72fcfe$var$danish_base_translation = {
244
247
  "of_": "af",
@@ -312,7 +315,8 @@ const $6d2294054a72fcfe$export$70578856b2420b5d = {
312
315
  const page_form = number_of_results === 1 ? "side" : "sider";
313
316
  return has_query ? [`Fandt `, number_of_results_element, ` ${page_form} for `, query] : [`Fandt `, number_of_results_element, ` ${page_form}`];
314
317
  },
315
- modal_view_all_no_results_: "Se alternativer"
318
+ modal_view_all_no_results_: "Se alternativer",
319
+ get_no_exact_matches_: query => ["Ingen pr\xe6cise match for ", query, ". Viser lignende produkter."]
316
320
  };
317
321
  const $37e37251f83c2043$var$dutch_base_translation = {
318
322
  "of_": "van",
@@ -386,7 +390,8 @@ const $37e37251f83c2043$export$5d14584e27bf4bc5 = {
386
390
  previous_: "Vorige",
387
391
  popular_: "Populair",
388
392
  products_: "Producten",
389
- modal_view_all_no_results_: "Bekijk alternatieven"
393
+ modal_view_all_no_results_: "Bekijk alternatieven",
394
+ get_no_exact_matches_: query => ["Geen exacte resultaten voor ", query, ". Vergelijkbare producten worden getoond."]
390
395
  };
391
396
  const $597bd174c99156c2$var$finnish_base_translation = {
392
397
  "of_": "/",
@@ -460,7 +465,8 @@ const $597bd174c99156c2$export$bb9c5e11b9203620 = {
460
465
  previous_: "Edellinen",
461
466
  popular_: "Suosittu",
462
467
  products_: "Tuotteet",
463
- modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot"
468
+ modal_view_all_no_results_: "N\xe4yt\xe4 vaihtoehdot",
469
+ get_no_exact_matches_: query => ["Ei tarkkoja osumia haulle ", query, ". N\xe4ytet\xe4\xe4n samankaltaisia tuotteita."]
464
470
  };
465
471
  const $69bc56544b53deda$var$french_base_translation = {
466
472
  "of_": "de",
@@ -534,7 +540,8 @@ const $69bc56544b53deda$export$e608b2bb21ba1862 = {
534
540
  previous_: "Pr\xe9c\xe9dent",
535
541
  popular_: "Populaire",
536
542
  products_: "Produits",
537
- modal_view_all_no_results_: "Voir les alternatives"
543
+ modal_view_all_no_results_: "Voir les alternatives",
544
+ get_no_exact_matches_: query => ["Aucun r\xe9sultat exact pour ", query, ". Voici des produits similaires."]
538
545
  };
539
546
  const $dc8b0b929b2d7ddb$var$german_base_translation = {
540
547
  "of_": "von",
@@ -608,7 +615,8 @@ const $dc8b0b929b2d7ddb$export$b43a5e72c07b4d2a = {
608
615
  const page_form = number_of_results === 1 ? "Seite" : "Seiten";
609
616
  return has_query ? [number_of_results_element, ` ${page_form} f\xfcr `, query] : [number_of_results_element, ` ${page_form}`];
610
617
  },
611
- modal_view_all_no_results_: "Alternativen anzeigen"
618
+ modal_view_all_no_results_: "Alternativen anzeigen",
619
+ get_no_exact_matches_: query => ["Keine genauen Treffer f\xfcr ", query, ". \xc4hnliche Produkte werden angezeigt."]
612
620
  };
613
621
  const $e401cebd86a65dd5$var$italian_base_translation = {
614
622
  "of_": "di",
@@ -682,7 +690,8 @@ const $e401cebd86a65dd5$export$c05550c0848a3fe4 = {
682
690
  previous_: "Precedente",
683
691
  popular_: "Popolare",
684
692
  products_: "Prodotti",
685
- modal_view_all_no_results_: "Visualizza alternative"
693
+ modal_view_all_no_results_: "Visualizza alternative",
694
+ get_no_exact_matches_: query => ["Nessuna corrispondenza esatta per ", query, ". Ecco alcuni prodotti simili."]
686
695
  };
687
696
  const $2c5d03375c4a5b27$var$norwegian_base_translation = {
688
697
  "of_": "av",
@@ -756,7 +765,8 @@ const $2c5d03375c4a5b27$export$dcb702a89633f297 = {
756
765
  const page_form = number_of_results === 1 ? "side" : "sider";
757
766
  return has_query ? [`Fant `, number_of_results_element, ` ${page_form} for `, query] : [`Fant `, number_of_results_element, ` ${page_form}`];
758
767
  },
759
- modal_view_all_no_results_: "Vis alternativer"
768
+ modal_view_all_no_results_: "Vis alternativer",
769
+ get_no_exact_matches_: query => ["Ingen eksakte treff for ", query, ". Viser lignende produkter."]
760
770
  };
761
771
  const $7432d62a9527b38a$var$polish_base_translation = {
762
772
  "of_": "z",
@@ -839,7 +849,8 @@ const $7432d62a9527b38a$export$b0eb0dd41442f532 = {
839
849
  previous_: "Poprzedni",
840
850
  popular_: "Popularne",
841
851
  products_: "Produkty",
842
- modal_view_all_no_results_: "Zobacz alternatywy"
852
+ modal_view_all_no_results_: "Zobacz alternatywy",
853
+ get_no_exact_matches_: query => ["Brak dok\u0142adnych wynik\xf3w dla ", query, ". Pokazujemy podobne produkty."]
843
854
  };
844
855
  const $8c622dc7e9fbf3de$var$portuguese_base_translation = {
845
856
  "of_": "de",
@@ -902,7 +913,8 @@ const $8c622dc7e9fbf3de$export$b3b5aa2c4df8976f = {
902
913
  previous_: "Anterior",
903
914
  popular_: "Popular",
904
915
  products_: "Produtos",
905
- modal_view_all_no_results_: "Ver alternativas"
916
+ modal_view_all_no_results_: "Ver alternativas",
917
+ get_no_exact_matches_: query => ["Nenhuma correspond\xeancia exata para ", query, ". A mostrar produtos semelhantes."]
906
918
  };
907
919
  const $32d3bec8717cf616$var$spanish_base_translation = {
908
920
  "of_": "de",
@@ -976,7 +988,8 @@ const $32d3bec8717cf616$export$49b8f20513f0ff25 = {
976
988
  previous_: "Anterior",
977
989
  popular_: "Popular",
978
990
  products_: "Productos",
979
- modal_view_all_no_results_: "Ver alternativas"
991
+ modal_view_all_no_results_: "Ver alternativas",
992
+ get_no_exact_matches_: query => ["No hay coincidencias exactas para ", query, ". Mostrando productos similares."]
980
993
  };
981
994
  const $38de3920ebd2d651$var$swedish_base_translation = {
982
995
  "of_": "av",
@@ -1026,6 +1039,7 @@ const $38de3920ebd2d651$export$596caee559c76764 = {
1026
1039
  "no_results_text_": "Inga resultat",
1027
1040
  modal_view_all_results_: number_of_results => ["Visa alla ", number_of_results, " resultat"],
1028
1041
  modal_view_all_no_results_: "Visa andra alternativ",
1042
+ get_no_exact_matches_: query => ["Inga exakta tr\xe4ffar f\xf6r ", query, ". Visar liknande produkter."],
1029
1043
  "search_recs_title_": "Andra alternativ",
1030
1044
  "clear_filters_query_sorting_after_submit_": "Rensa f\xf6rfr\xe5ga och filter + sorting efter ny f\xf6rfr\xe5ga",
1031
1045
  "previous_searches_text_": "Dina tidigare s\xf6kningar",
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/depict-org/depict-ui.git",
6
6
  "directory": "browser-tags-v2/packages/ui"
7
7
  },
8
- "version": "4.10.30",
8
+ "version": "4.10.31",
9
9
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
10
10
  "packageManager": "yarn@3.2.2",
11
11
  "sass": "styles.scss",
@@ -241,9 +241,9 @@
241
241
  "@babel/plugin-transform-typescript": "^7.22.9",
242
242
  "@babel/runtime": "^7.22.6",
243
243
  "@babel/runtime-corejs3": "^7.22.6",
244
- "@depict-ai/plp-styling": "^4.6.21",
245
- "@depict-ai/types": "^5.6.19",
246
- "@depict-ai/utilishared": "^2.6.19",
244
+ "@depict-ai/plp-styling": "^4.6.22",
245
+ "@depict-ai/types": "^5.6.20",
246
+ "@depict-ai/utilishared": "^2.6.20",
247
247
  "solid-js": "^1.9.10"
248
248
  },
249
249
  "type": "module",
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.30";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.31";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $3hooq$solidjs.createSignal(false);
121
121
  $3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -8682,6 +8682,31 @@ function $bdea39a75c454f4f$export$f50b88e2a00918b5(fn) {
8682
8682
  }
8683
8683
  };
8684
8684
  }
8685
+ var $a7ba1f93c26bb7c6$var$_tmpl$ = ["<b", ">", "</b>"],
8686
+ $a7ba1f93c26bb7c6$var$_tmpl$2 = ["<div", ' class="no-exact-matches" role="status">', "</div>"];
8687
+ function $a7ba1f93c26bb7c6$export$cff209a01196ea2a(response) {
8688
+ var _response$displays;
8689
+ return (response === null || response === void 0 ? void 0 : response.is_fallback) === true && !!((_response$displays = response.displays) !== null && _response$displays !== void 0 && _response$displays.length);
8690
+ }
8691
+ function $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd(_ref) {
8692
+ let {
8693
+ get_search_query_: get_search_query_,
8694
+ i18n_: i18n_,
8695
+ is_fallback_: is_fallback_
8696
+ } = _ref;
8697
+ const contents = $3hooq$solidjs.createMemo($3hooq$depictaiutilishared.catchify(() => {
8698
+ var _i18n_$get_no_exact_m, _i18n_$get_no_exact_m2;
8699
+ 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($3hooq$solidjsweb.ssr($a7ba1f93c26bb7c6$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(get_search_query_())));
8700
+ }));
8701
+ return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
8702
+ get when() {
8703
+ return is_fallback_() && get_search_query_().trim() !== "" && contents();
8704
+ },
8705
+ get children() {
8706
+ return $3hooq$solidjsweb.ssr($a7ba1f93c26bb7c6$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(contents()));
8707
+ }
8708
+ });
8709
+ }
8685
8710
  function $b0f8d9f49e018db9$export$fb40a80c530e5f2b(selectedIndex, groupIndex, indexInGroup) {
8686
8711
  const isSelected = $3hooq$solidjs.createMemo(() => {
8687
8712
  const selectedValue = selectedIndex();
@@ -8821,6 +8846,7 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
8821
8846
  i18n_: i18n_,
8822
8847
  router_: router_,
8823
8848
  set_modal_search_results_: set_modal_search_results_,
8849
+ set_instant_query_: set_instant_query_,
8824
8850
  InstantCardImageComponent_: InstantCardImageComponent_,
8825
8851
  itemIndex_: itemIndex_,
8826
8852
  selected_index_: selected_index_,
@@ -8859,6 +8885,7 @@ function $6e8d48eea3d0469d$export$62f101a8aa597bf8(_ref) {
8859
8885
  // 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
8860
8886
  // This is for the press-enter-to-instant-content-result feature which gets called from Autocomplete.tsx/TextSuggestions.tsx
8861
8887
  set_modal_search_results_(() => search_results);
8888
+ if (set_instant_query_) $3hooq$solidjs.createComputed(() => set_instant_query_(read_current_instant_query()));
8862
8889
  $3hooq$solidjs.onCleanup(() => set_modal_search_results_(undefined)); // for consistency, in case this component crashes
8863
8890
  if (itemIndex_) {
8864
8891
  const [, set_currently_showing_suggestions] = currently_showing_suggestions_;
@@ -9842,6 +9869,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
9842
9869
  body_: bodyAlignmentSignal = $3hooq$solidjs.createSignal({})
9843
9870
  } = alignmentSignals_ || {};
9844
9871
  const [bodyAlignmentStyle] = bodyAlignmentSignal;
9872
+ const [get_instant_query_, set_instant_query_] = $3hooq$solidjs.createSignal("");
9845
9873
  const [get_modal_search_results, set_modal_search_results_] = $3hooq$solidjs.createSignal();
9846
9874
  const close_on_escape_handler = $3hooq$depictaiutilishared.catchify(_ref2 => {
9847
9875
  let {
@@ -9966,7 +9994,14 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
9966
9994
  get children() {
9967
9995
  return $3hooq$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
9968
9996
  get children() {
9969
- return $6e8d48eea3d0469d$export$62f101a8aa597bf8({
9997
+ return [$3hooq$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
9998
+ get_search_query_: get_instant_query_,
9999
+ i18n_: i18n_,
10000
+ is_fallback_: () => {
10001
+ const results = get_modal_search_results();
10002
+ return !!results && !results.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(results());
10003
+ }
10004
+ }), $6e8d48eea3d0469d$export$62f101a8aa597bf8({
9970
10005
  search_field_value_: search_field_value_,
9971
10006
  depict_api_: depict_api_,
9972
10007
  merchant_: merchant_,
@@ -9974,6 +10009,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
9974
10009
  market_: market_,
9975
10010
  router_: router_,
9976
10011
  set_modal_search_results_: set_modal_search_results_,
10012
+ set_instant_query_: set_instant_query_,
9977
10013
  InstantCardImageComponent_: props => $3hooq$solidjs.createMemo(() => {
9978
10014
  var _props$alt_;
9979
10015
  return $3hooq$depictaiutilishared.ContainedImage({
@@ -9989,7 +10025,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
9989
10025
  });
9990
10026
  }),
9991
10027
  ...instant_results_options_
9992
- });
10028
+ })];
9993
10029
  }
9994
10030
  });
9995
10031
  }
@@ -10452,7 +10488,7 @@ function $58ffab03481f8973$export$66d1697a0f27069c(modalLayoutStacked) {
10452
10488
  instantResultsIndex_: instantResultsIndex_
10453
10489
  };
10454
10490
  }
10455
- var $43600b30502feeda$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--></div>"],
10491
+ var $43600b30502feeda$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" style="', '"><h2>', "</h2><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"],
10456
10492
  $43600b30502feeda$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
10457
10493
  $43600b30502feeda$var$_tmpl$3 = ["<b", ">", "</b>"],
10458
10494
  $43600b30502feeda$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
@@ -10523,6 +10559,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
10523
10559
  const [unfiltered_previous_searches] = previous_searches_;
10524
10560
  const random_classname_body = $3hooq$depictaiutilishared.make_random_classname();
10525
10561
  const backdropRandomClassname = $3hooq$depictaiutilishared.make_random_classname();
10562
+ const [get_instant_query_, set_instant_query_] = $3hooq$solidjs.createSignal("");
10526
10563
  const [get_modal_search_results_, set_modal_search_results_] = $3hooq$solidjs.createSignal();
10527
10564
  const close_on_escape_handler = $3hooq$depictaiutilishared.catchify(evt => {
10528
10565
  if (evt.key === "Escape") {
@@ -10684,7 +10721,14 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
10684
10721
  get children() {
10685
10722
  return $3hooq$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
10686
10723
  get children() {
10687
- return $3hooq$solidjsweb.ssr($43600b30502feeda$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "order:" + $3hooq$solidjsweb.escape(itemIndexes.instantResultsIndex_(), true), $3hooq$solidjsweb.escape(i18n_.products_()), $3hooq$solidjsweb.escape($6e8d48eea3d0469d$export$62f101a8aa597bf8({
10724
+ return $3hooq$solidjsweb.ssr($43600b30502feeda$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "order:" + $3hooq$solidjsweb.escape(itemIndexes.instantResultsIndex_(), true), $3hooq$solidjsweb.escape(i18n_.products_()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
10725
+ get_search_query_: get_instant_query_,
10726
+ i18n_: i18n_,
10727
+ is_fallback_: () => {
10728
+ const results = get_modal_search_results_();
10729
+ return !!results && !results.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(results());
10730
+ }
10731
+ })), $3hooq$solidjsweb.escape($6e8d48eea3d0469d$export$62f101a8aa597bf8({
10688
10732
  search_field_value_: search_field_value_,
10689
10733
  depict_api_: depict_api_,
10690
10734
  merchant_: merchant_,
@@ -10692,6 +10736,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
10692
10736
  market_: market_,
10693
10737
  router_: router_,
10694
10738
  set_modal_search_results_: set_modal_search_results_,
10739
+ set_instant_query_: set_instant_query_,
10695
10740
  itemIndex_: itemIndexes.instantResultsIndex_,
10696
10741
  selected_index_: selected_index_,
10697
10742
  currently_showing_suggestions_: currently_showing_suggestions_,
@@ -13261,7 +13306,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
13261
13306
  });
13262
13307
  }
13263
13308
  var $739c927cbecd26b0$var$_tmpl$ = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
13264
- $739c927cbecd26b0$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
13309
+ $739c927cbecd26b0$var$_tmpl$2 = ["<div", ' class="', '"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
13265
13310
  function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
13266
13311
  let {
13267
13312
  depict_api_: depict_api_,
@@ -13584,7 +13629,11 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
13584
13629
  }
13585
13630
  });
13586
13631
  }
13587
- })), $3hooq$solidjsweb.escape(results_filters[0]()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
13632
+ })), $3hooq$solidjsweb.escape(results_filters[0]()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7ba1f93c26bb7c6$export$6011f3c8b3c691cd), {
13633
+ get_search_query_: get_search_query_,
13634
+ i18n_: i18n_,
13635
+ is_fallback_: () => !search_results_.loading && $a7ba1f93c26bb7c6$export$cff209a01196ea2a(search_results_())
13636
+ })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
13588
13637
  get when() {
13589
13638
  var _selected_filters_$;
13590
13639
  return (_selected_filters_$ = selected_filters_[0]()) === null || _selected_filters_$ === void 0 ? void 0 : _selected_filters_$.length;
@@ -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.30";
14
+ export const version = "4.10.31";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -111,6 +111,11 @@ interface search_i18n extends plp_shared_i18n {
111
111
  popular_: string;
112
112
  products_: string;
113
113
  modal_view_all_no_results_: string;
114
+ /**
115
+ * Shown above the results when no product matched the query and search shows similar products.
116
+ * Optional: a custom locale without it shows no notice.
117
+ */
118
+ get_no_exact_matches_?: (query: HTMLElement) => Elem[];
114
119
  }
115
120
  /**
116
121
  * Category internationalisation