@coveo/atomic 3.35.0-pre.ebf3345026 → 3.35.0-pre.ede9717b0e

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.
Files changed (264) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/atomic.esm.js.map +1 -1
  3. package/dist/atomic/components/_index.d.ts +20 -0
  4. package/dist/atomic/components/_index.js +10 -0
  5. package/dist/atomic/components/atomic-category-facet.js +17 -7
  6. package/dist/atomic/components/atomic-category-facet.js.map +1 -1
  7. package/dist/atomic/components/atomic-focus-trap2.js +1 -1
  8. package/dist/atomic/components/atomic-folded-result-list.js +44 -2
  9. package/dist/atomic/components/atomic-folded-result-list.js.map +1 -1
  10. package/dist/atomic/components/atomic-insight-folded-result-list.js +40 -4
  11. package/dist/atomic/components/atomic-insight-folded-result-list.js.map +1 -1
  12. package/dist/atomic/components/atomic-insight-result-action-bar.js +1 -5
  13. package/dist/atomic/components/atomic-insight-result-action-bar.js.map +1 -1
  14. package/dist/atomic/components/atomic-insight-result-children.js +40 -4
  15. package/dist/atomic/components/atomic-insight-result-children.js.map +1 -1
  16. package/dist/atomic/components/atomic-insight-result-list.js +40 -4
  17. package/dist/atomic/components/atomic-insight-result-list.js.map +1 -1
  18. package/dist/atomic/components/atomic-ipx-recs-list.js +40 -4
  19. package/dist/atomic/components/atomic-ipx-recs-list.js.map +1 -1
  20. package/dist/atomic/components/atomic-recs-interface.js +1 -1
  21. package/dist/atomic/components/atomic-recs-list.js +40 -4
  22. package/dist/atomic/components/atomic-recs-list.js.map +1 -1
  23. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  24. package/dist/atomic/components/atomic-result-children.js +44 -2
  25. package/dist/atomic/components/atomic-result-children.js.map +1 -1
  26. package/dist/atomic/components/atomic-result-list.js +44 -2
  27. package/dist/atomic/components/atomic-result-list.js.map +1 -1
  28. package/dist/atomic/components/atomic-result-placeholder2.js +37 -1
  29. package/dist/atomic/components/atomic-result-placeholder2.js.map +1 -1
  30. package/dist/atomic/components/atomic-result-section-actions.d.ts +11 -0
  31. package/dist/atomic/components/atomic-result-section-actions.js +8 -0
  32. package/dist/atomic/components/atomic-result-section-actions.js.map +1 -0
  33. package/dist/atomic/components/atomic-result-section-actions2.js +30 -0
  34. package/dist/atomic/components/atomic-result-section-actions2.js.map +1 -0
  35. package/dist/atomic/components/atomic-result-section-badges.d.ts +11 -0
  36. package/dist/atomic/components/atomic-result-section-badges.js +8 -0
  37. package/dist/atomic/components/atomic-result-section-badges.js.map +1 -0
  38. package/dist/atomic/components/atomic-result-section-badges2.js +30 -0
  39. package/dist/atomic/components/atomic-result-section-badges2.js.map +1 -0
  40. package/dist/atomic/components/atomic-result-section-bottom-metadata.d.ts +11 -0
  41. package/dist/atomic/components/atomic-result-section-bottom-metadata.js +8 -0
  42. package/dist/atomic/components/atomic-result-section-bottom-metadata.js.map +1 -0
  43. package/dist/atomic/components/atomic-result-section-bottom-metadata2.js +30 -0
  44. package/dist/atomic/components/atomic-result-section-bottom-metadata2.js.map +1 -0
  45. package/dist/atomic/components/atomic-result-section-children.d.ts +11 -0
  46. package/dist/atomic/components/atomic-result-section-children.js +33 -0
  47. package/dist/atomic/components/atomic-result-section-children.js.map +1 -0
  48. package/dist/atomic/components/atomic-result-section-emphasized.d.ts +11 -0
  49. package/dist/atomic/components/atomic-result-section-emphasized.js +33 -0
  50. package/dist/atomic/components/atomic-result-section-emphasized.js.map +1 -0
  51. package/dist/atomic/components/atomic-result-section-excerpt.d.ts +11 -0
  52. package/dist/atomic/components/atomic-result-section-excerpt.js +8 -0
  53. package/dist/atomic/components/atomic-result-section-excerpt.js.map +1 -0
  54. package/dist/atomic/components/atomic-result-section-excerpt2.js +30 -0
  55. package/dist/atomic/components/atomic-result-section-excerpt2.js.map +1 -0
  56. package/dist/atomic/components/atomic-result-section-title-metadata.d.ts +11 -0
  57. package/dist/atomic/components/atomic-result-section-title-metadata.js +33 -0
  58. package/dist/atomic/components/atomic-result-section-title-metadata.js.map +1 -0
  59. package/dist/atomic/components/atomic-result-section-title.d.ts +11 -0
  60. package/dist/atomic/components/atomic-result-section-title.js +8 -0
  61. package/dist/atomic/components/atomic-result-section-title.js.map +1 -0
  62. package/dist/atomic/components/atomic-result-section-title2.js +30 -0
  63. package/dist/atomic/components/atomic-result-section-title2.js.map +1 -0
  64. package/dist/atomic/components/atomic-result-section-visual.d.ts +11 -0
  65. package/dist/atomic/components/atomic-result-section-visual.js +8 -0
  66. package/dist/atomic/components/atomic-result-section-visual.js.map +1 -0
  67. package/dist/atomic/components/atomic-result-section-visual2.js +33 -0
  68. package/dist/atomic/components/atomic-result-section-visual2.js.map +1 -0
  69. package/dist/atomic/components/atomic-result.d.ts +11 -0
  70. package/dist/atomic/components/atomic-result.js +8 -0
  71. package/dist/atomic/components/atomic-result.js.map +1 -0
  72. package/dist/atomic/components/atomic-result2.js +158 -0
  73. package/dist/atomic/components/atomic-result2.js.map +1 -0
  74. package/dist/atomic/components/atomic-search-box.js +7 -3
  75. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  76. package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
  77. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +3 -1
  78. package/dist/atomic/components/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +3 -0
  79. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +5 -0
  80. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +3 -0
  81. package/dist/atomic/components/components/common/breadbox/breadcrumb-button.js +6 -1
  82. package/dist/atomic/components/components/common/facets/category-facet/all-categories-button.js +3 -2
  83. package/dist/atomic/components/components/common/facets/category-facet/all-categories-localized-label.js +9 -0
  84. package/dist/atomic/components/components/common/facets/category-facet/search-value.js +6 -1
  85. package/dist/atomic/components/components/common/search-box/text-area-clear-button.js +1 -1
  86. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +0 -2
  87. package/dist/atomic/components/components/search/index.js +0 -10
  88. package/dist/atomic/components/components/search/lazy-index.js +0 -10
  89. package/dist/atomic/components/global/environment.js +1 -1
  90. package/dist/atomic/components/index.js.map +1 -1
  91. package/dist/atomic/components/item-layout-sections.js +1 -1
  92. package/dist/atomic/components/item-section-utils.js +9 -0
  93. package/dist/atomic/components/item-section-utils.js.map +1 -0
  94. package/dist/atomic/components/mixins/item-section-mixin.js +6 -6
  95. package/dist/atomic/components/props-utils.js +1 -1
  96. package/dist/atomic/components/result-template-common.js +1 -1
  97. package/dist/atomic/components/stencil-suggestion-manager.js +1 -1
  98. package/dist/atomic/components/stencil-suggestion-manager.js.map +1 -1
  99. package/dist/atomic/components/utils.js +1 -1
  100. package/dist/atomic/lang/cs.json +1 -1
  101. package/dist/atomic/lang/da.json +1 -1
  102. package/dist/atomic/lang/de.json +1 -1
  103. package/dist/atomic/lang/dev.json +1 -1
  104. package/dist/atomic/lang/el.json +1 -1
  105. package/dist/atomic/lang/en.json +1 -1
  106. package/dist/atomic/lang/es.json +1 -1
  107. package/dist/atomic/lang/fi.json +1 -1
  108. package/dist/atomic/lang/fr.json +1 -1
  109. package/dist/atomic/lang/hu.json +1 -1
  110. package/dist/atomic/lang/id.json +1 -1
  111. package/dist/atomic/lang/it.json +1 -1
  112. package/dist/atomic/lang/ja.json +1 -1
  113. package/dist/atomic/lang/ko.json +1 -1
  114. package/dist/atomic/lang/nl.json +1 -1
  115. package/dist/atomic/lang/no.json +1 -1
  116. package/dist/atomic/lang/pl.json +1 -1
  117. package/dist/atomic/lang/pt-BR.json +1 -1
  118. package/dist/atomic/lang/pt.json +1 -1
  119. package/dist/atomic/lang/ru.json +1 -1
  120. package/dist/atomic/lang/sv.json +1 -1
  121. package/dist/atomic/lang/th.json +1 -1
  122. package/dist/atomic/lang/tr.json +1 -1
  123. package/dist/atomic/lang/zh-CN.json +1 -1
  124. package/dist/atomic/lang/zh-TW.json +1 -1
  125. package/dist/atomic/lang/zh.json +1 -1
  126. package/dist/atomic/{p-7303a7dc.entry.js → p-0f40890b.entry.js} +2 -2
  127. package/dist/atomic/{p-ff23598b.entry.js → p-2c8d8e83.entry.js} +2 -2
  128. package/dist/atomic/p-2c8d8e83.entry.js.map +1 -0
  129. package/dist/atomic/p-2c94b87e.js +2 -0
  130. package/dist/atomic/p-2c94b87e.js.map +1 -0
  131. package/dist/atomic/p-36e2c945.entry.js +2 -0
  132. package/dist/atomic/p-36e2c945.entry.js.map +1 -0
  133. package/dist/atomic/p-463336ca.entry.js +2 -0
  134. package/dist/atomic/p-463336ca.entry.js.map +1 -0
  135. package/dist/atomic/{p-72cdb9d8.entry.js → p-4ba1eb36.entry.js} +2 -2
  136. package/dist/atomic/p-4ba1eb36.entry.js.map +1 -0
  137. package/dist/atomic/p-55c41e00.entry.js +2 -0
  138. package/dist/atomic/p-55c41e00.entry.js.map +1 -0
  139. package/dist/atomic/p-5d0fc7e2.js +2 -0
  140. package/dist/atomic/p-5d0fc7e2.js.map +1 -0
  141. package/dist/atomic/{p-87eafe2f.entry.js → p-77727995.entry.js} +2 -2
  142. package/dist/atomic/p-7fd58269.entry.js +2 -0
  143. package/dist/atomic/p-7fd58269.entry.js.map +1 -0
  144. package/dist/atomic/p-a9016629.entry.js.map +1 -1
  145. package/dist/atomic/p-d1fbb20a.entry.js +2 -0
  146. package/dist/atomic/p-d1fbb20a.entry.js.map +1 -0
  147. package/dist/atomic/p-e62caa78.entry.js.map +1 -1
  148. package/dist/atomic/p-f800678c.entry.js +2 -0
  149. package/dist/atomic/p-f800678c.entry.js.map +1 -0
  150. package/dist/cjs/_loader.cjs.js +1 -1
  151. package/dist/cjs/atomic-category-facet.cjs.entry.js +17 -7
  152. package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
  153. package/dist/cjs/atomic-folded-result-list.cjs.entry.js.map +1 -1
  154. package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js +3 -6
  155. package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js.map +1 -1
  156. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +1 -1
  157. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  158. package/dist/cjs/atomic-result-list.cjs.entry.js.map +1 -1
  159. package/dist/cjs/{atomic-result-placeholder_2.cjs.entry.js → atomic-result-placeholder_8.cjs.entry.js} +69 -1
  160. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js.map +1 -0
  161. package/dist/cjs/atomic-result-section-children.cjs.entry.js +23 -0
  162. package/dist/cjs/atomic-result-section-children.cjs.entry.js.map +1 -0
  163. package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js +23 -0
  164. package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js.map +1 -0
  165. package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js +23 -0
  166. package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js.map +1 -0
  167. package/dist/cjs/atomic-result.cjs.entry.js +141 -0
  168. package/dist/cjs/atomic-result.cjs.entry.js.map +1 -0
  169. package/dist/cjs/atomic-search-box.cjs.entry.js +8 -4
  170. package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
  171. package/dist/cjs/atomic.cjs.js +1 -1
  172. package/dist/cjs/index-757bc886.js +18 -2
  173. package/dist/cjs/item-section-utils-37848715.js +11 -0
  174. package/dist/cjs/item-section-utils-37848715.js.map +1 -0
  175. package/dist/cjs/{stencil-suggestion-manager-83efa596.js → stencil-suggestion-manager-62c42aa3.js} +2 -2
  176. package/dist/cjs/stencil-suggestion-manager-62c42aa3.js.map +1 -0
  177. package/dist/cjs/version.cjs.js +2 -2
  178. package/dist/esm/_loader.js +1 -1
  179. package/dist/esm/atomic-category-facet.entry.js +17 -7
  180. package/dist/esm/atomic-category-facet.entry.js.map +1 -1
  181. package/dist/esm/atomic-folded-result-list.entry.js.map +1 -1
  182. package/dist/esm/atomic-insight-result-action-bar.entry.js +2 -5
  183. package/dist/esm/atomic-insight-result-action-bar.entry.js.map +1 -1
  184. package/dist/esm/atomic-insight-search-box.entry.js +1 -1
  185. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  186. package/dist/esm/atomic-result-list.entry.js.map +1 -1
  187. package/dist/esm/{atomic-result-placeholder_2.entry.js → atomic-result-placeholder_8.entry.js} +65 -3
  188. package/dist/esm/atomic-result-placeholder_8.entry.js.map +1 -0
  189. package/dist/esm/atomic-result-section-children.entry.js +19 -0
  190. package/dist/esm/atomic-result-section-children.entry.js.map +1 -0
  191. package/dist/esm/atomic-result-section-emphasized.entry.js +19 -0
  192. package/dist/esm/atomic-result-section-emphasized.entry.js.map +1 -0
  193. package/dist/esm/atomic-result-section-title-metadata.entry.js +19 -0
  194. package/dist/esm/atomic-result-section-title-metadata.entry.js.map +1 -0
  195. package/dist/esm/atomic-result.entry.js +137 -0
  196. package/dist/esm/atomic-result.entry.js.map +1 -0
  197. package/dist/esm/atomic-search-box.entry.js +8 -4
  198. package/dist/esm/atomic-search-box.entry.js.map +1 -1
  199. package/dist/esm/atomic.js +1 -1
  200. package/dist/esm/index-3f35faca.js +18 -2
  201. package/dist/esm/item-section-utils-d8aa24b7.js +9 -0
  202. package/dist/esm/item-section-utils-d8aa24b7.js.map +1 -0
  203. package/dist/esm/{stencil-suggestion-manager-c1c4298e.js → stencil-suggestion-manager-3d2eea75.js} +2 -2
  204. package/dist/esm/stencil-suggestion-manager-3d2eea75.js.map +1 -0
  205. package/dist/esm/version.js +2 -2
  206. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +1 -0
  207. package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +1 -0
  208. package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +1 -0
  209. package/dist/types/components/common/breadbox/breadcrumb-button.d.ts +2 -0
  210. package/dist/types/components/common/facets/category-facet/all-categories-button.d.ts +2 -0
  211. package/dist/types/components/common/facets/category-facet/all-categories-localized-label.d.ts +6 -0
  212. package/dist/types/components/common/facets/category-facet/search-value.d.ts +1 -0
  213. package/dist/types/components/common/facets/category-facet/stencil-all-categories-button.d.ts +2 -0
  214. package/dist/types/components/common/facets/category-facet/stencil-search-value.d.ts +1 -0
  215. package/dist/types/components/common/layout/item-layout-sections.d.ts +1 -1
  216. package/dist/types/components/search/atomic-result/atomic-result.d.ts +29 -38
  217. package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -0
  218. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +0 -1
  219. package/dist/types/components/search/index.d.ts +0 -10
  220. package/dist/types/components/search/{atomic-result-section-actions → result-template-components/atomic-result-sections}/atomic-result-section-actions.d.ts +3 -9
  221. package/dist/types/components/search/{atomic-result-section-badges → result-template-components/atomic-result-sections}/atomic-result-section-badges.d.ts +3 -9
  222. package/dist/types/components/search/{atomic-result-section-bottom-metadata → result-template-components/atomic-result-sections}/atomic-result-section-bottom-metadata.d.ts +3 -9
  223. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-children.d.ts +10 -0
  224. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-emphasized.d.ts +12 -0
  225. package/dist/types/components/search/{atomic-result-section-excerpt → result-template-components/atomic-result-sections}/atomic-result-section-excerpt.d.ts +3 -9
  226. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-title-metadata.d.ts +13 -0
  227. package/dist/types/components/search/{atomic-result-section-title → result-template-components/atomic-result-sections}/atomic-result-section-title.d.ts +3 -9
  228. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-visual.d.ts +20 -0
  229. package/dist/types/components.d.ts +521 -2
  230. package/dist/types/directives/hierarchical-path.d.ts +1 -1
  231. package/dist/types/mixins/item-section-mixin.d.ts +3 -3
  232. package/docs/atomic-docs.json +609 -1
  233. package/package.json +3 -3
  234. package/dist/atomic/components/components/search/atomic-result/atomic-result.js +0 -218
  235. package/dist/atomic/components/components/search/atomic-result/atomic-result.tw.css.js +0 -3
  236. package/dist/atomic/components/components/search/atomic-result-section-actions/atomic-result-section-actions.js +0 -25
  237. package/dist/atomic/components/components/search/atomic-result-section-badges/atomic-result-section-badges.js +0 -24
  238. package/dist/atomic/components/components/search/atomic-result-section-bottom-metadata/atomic-result-section-bottom-metadata.js +0 -25
  239. package/dist/atomic/components/components/search/atomic-result-section-children/atomic-result-section-children.js +0 -21
  240. package/dist/atomic/components/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.js +0 -23
  241. package/dist/atomic/components/components/search/atomic-result-section-excerpt/atomic-result-section-excerpt.js +0 -24
  242. package/dist/atomic/components/components/search/atomic-result-section-title/atomic-result-section-title.js +0 -24
  243. package/dist/atomic/components/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.js +0 -24
  244. package/dist/atomic/components/components/search/atomic-result-section-visual/atomic-result-section-visual.js +0 -29
  245. package/dist/atomic/components/components/search/result-template-component-utils/context/result-context-controller.js +0 -14
  246. package/dist/atomic/p-72cdb9d8.entry.js.map +0 -1
  247. package/dist/atomic/p-8641e3a9.entry.js +0 -2
  248. package/dist/atomic/p-8641e3a9.entry.js.map +0 -1
  249. package/dist/atomic/p-aa290a01.js +0 -2
  250. package/dist/atomic/p-aa290a01.js.map +0 -1
  251. package/dist/atomic/p-d63acdc6.entry.js +0 -2
  252. package/dist/atomic/p-d63acdc6.entry.js.map +0 -1
  253. package/dist/atomic/p-ff23598b.entry.js.map +0 -1
  254. package/dist/cjs/atomic-result-placeholder_2.cjs.entry.js.map +0 -1
  255. package/dist/cjs/stencil-suggestion-manager-83efa596.js.map +0 -1
  256. package/dist/esm/atomic-result-placeholder_2.entry.js.map +0 -1
  257. package/dist/esm/stencil-suggestion-manager-c1c4298e.js.map +0 -1
  258. package/dist/types/components/search/atomic-result/atomic-result.tw.css.d.ts +0 -2
  259. package/dist/types/components/search/atomic-result-section-children/atomic-result-section-children.d.ts +0 -16
  260. package/dist/types/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.d.ts +0 -18
  261. package/dist/types/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.d.ts +0 -19
  262. package/dist/types/components/search/atomic-result-section-visual/atomic-result-section-visual.d.ts +0 -26
  263. /package/dist/atomic/{p-7303a7dc.entry.js.map → p-0f40890b.entry.js.map} +0 -0
  264. /package/dist/atomic/{p-87eafe2f.entry.js.map → p-77727995.entry.js.map} +0 -0
@@ -3,16 +3,6 @@ export default {
3
3
  'atomic-pager': async () => await import('./atomic-pager/atomic-pager.js'),
4
4
  'atomic-query-summary': async () => await import('./atomic-query-summary/atomic-query-summary.js'),
5
5
  'atomic-relevance-inspector': async () => await import('./atomic-relevance-inspector/atomic-relevance-inspector.js'),
6
- 'atomic-result': async () => await import('./atomic-result/atomic-result.js'),
7
- 'atomic-result-section-actions': async () => await import('./atomic-result-section-actions/atomic-result-section-actions.js'),
8
- 'atomic-result-section-badges': async () => await import('./atomic-result-section-badges/atomic-result-section-badges.js'),
9
- 'atomic-result-section-bottom-metadata': async () => await import('./atomic-result-section-bottom-metadata/atomic-result-section-bottom-metadata.js'),
10
- 'atomic-result-section-children': async () => await import('./atomic-result-section-children/atomic-result-section-children.js'),
11
- 'atomic-result-section-emphasized': async () => await import('./atomic-result-section-emphasized/atomic-result-section-emphasized.js'),
12
- 'atomic-result-section-excerpt': async () => await import('./atomic-result-section-excerpt/atomic-result-section-excerpt.js'),
13
- 'atomic-result-section-title': async () => await import('./atomic-result-section-title/atomic-result-section-title.js'),
14
- 'atomic-result-section-title-metadata': async () => await import('./atomic-result-section-title-metadata/atomic-result-section-title-metadata.js'),
15
- 'atomic-result-section-visual': async () => await import('./atomic-result-section-visual/atomic-result-section-visual.js'),
16
6
  'atomic-results-per-page': async () => await import('./atomic-results-per-page/atomic-results-per-page.js'),
17
7
  'atomic-search-box-instant-results': async () => await import('./atomic-search-box-instant-results/atomic-search-box-instant-results.js'),
18
8
  'atomic-search-box-query-suggestions': async () => await import('./atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js'),
@@ -3,7 +3,7 @@ function getWindow() {
3
3
  }
4
4
  export function getAtomicEnvironment(headlessVersion) {
5
5
  return {
6
- version: "3.35.0-pre.ebf3345026",
6
+ version: "3.35.0-pre.ede9717b0e",
7
7
  headlessVersion,
8
8
  };
9
9
  }
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAca,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CAAC;SACH;KACF,CAAC,CAAC;AACL;;ACrBA;;;;;;;;;;SAUgB,mBAAmB,CAAoB,OAAgB;IACrE,OAAO,gBAAgB,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACxD;;ACZA;;;;;;;;;;;;SAYgB,cAAc,CAAoB,OAAgB;IAChE,OAAO,WAAW,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD;;ACVA;;;;;;;;;MASa,iCAAiC,GAAG,CAI/C,KAA+D,EAC/D,OAAoB,EACpB,2BAA0E,iBAAiB;IAE3F,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,KAAK,CACb,QAAQ,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gFAAgF,wBAAwB,CAAC,IAAI,CACjJ,IAAI,CACL,EAAE,CACJ,CAAC;KACH;IACD,KAAK,2CAA2C,CAC9C,gBAAgB,EAChB,OAAO,EACP,KAAK,CACN,CAAC;AACJ,EAAE;AAEF,MAAM,iBAAiB,GAAG;IACxB,mBAAmB;IACnB,2BAA2B;IAC3B,4BAA4B;CACpB,CAAC;AAEX,MAAM,mBAAmB,GAAG,CAAC,SAAkB,KAC7C,gBAAgB,IAAK,SAAwB;IAC5C,SAAwB,CAAC,cAAc,YAAY,OAAO,CAAC;AAE9D,MAAM,2CAA2C,GAAG,OAIlD,gBAAyB,EACzB,OAAoB,EACpB,KAA+D;IAE/D,MAAM,cAAc,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1E,IAAI,mBAAmB,CAAC,gBAAgB,CAAC,EAAE;QACzC,MAAM,gBAAgB,CAAC,cAAc,CAAC;KACvC;SAAM,IAAI,kBAAkB,IAAI,gBAAgB,EAAE;QACjD,MAAO,gBAAuC,CAAC,gBAAgB,EAAE,CAAC;KACnE;IACD,OAAO,CAAC,aAAa,CACnB,gBAAgB,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAC/D,CAAC;AACJ,CAAC;;;;","names":[],"sources":["src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/components/commerce/product-template-component-utils/context/fetch-product-context.ts","src/components/commerce/product-template-component-utils/context/stencil-product-template-decorators.tsx","src/components/common/suggestions/suggestions-events.ts"],"sourcesContent":["import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {Product} from '@coveo/headless/commerce';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n","import {Product} from '@coveo/headless/commerce';\nimport {itemContext} from '@/src/components/common/item-list/stencil-item-decorators';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/components/commerce/product-template-component-utils/context/fetch-product-context.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {HTMLStencilElement} from '@stencil/core/internal';\nimport type {LitElement} from 'lit';\nimport {closest} from '../../../utils/dom-utils';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport type {AnyBindings} from '../interface/bindings';\nimport type {SearchBoxSuggestionsEvent} from './suggestions-types';\n\n/**\n * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.\n *\n * @param event Event sent from the registered query suggestions to the parent search box\n * @param element Element on which to dispatch the event, which must be the child of a configured search box\n * @param allowedSearchBoxElements Optional array of allowed search box element selectors\n *\n * @throws Error if the element is not a child of an allowed search box element\n */\nexport const dispatchSearchBoxSuggestionsEvent = <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>,\n element: HTMLElement,\n allowedSearchBoxElements: readonly (typeof searchBoxElements)[number][] = searchBoxElements\n) => {\n const interfaceElement = closest(element, searchBoxElements.join(', '));\n if (!interfaceElement) {\n throw new Error(\n `The \"${element.nodeName.toLowerCase()}\" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(\n ', '\n )}`\n );\n }\n void dispatchSearchBoxSuggestionsEventEventually(\n interfaceElement,\n element,\n event\n );\n};\n\nconst searchBoxElements = [\n 'atomic-search-box',\n 'atomic-insight-search-box',\n 'atomic-commerce-search-box',\n] as const;\n\nconst isLitElementLoosely = (candidate: unknown): candidate is LitElement =>\n 'updateComplete' in (candidate as LitElement) &&\n (candidate as LitElement).updateComplete instanceof Promise;\n\nconst dispatchSearchBoxSuggestionsEventEventually = async <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n interfaceElement: Element,\n element: HTMLElement,\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>\n) => {\n await customElements.whenDefined(interfaceElement.nodeName.toLowerCase());\n if (isLitElementLoosely(interfaceElement)) {\n await interfaceElement.updateComplete;\n } else if ('componentOnReady' in interfaceElement) {\n await (interfaceElement as HTMLStencilElement).componentOnReady();\n }\n element.dispatchEvent(\n buildCustomEvent('atomic/searchBoxSuggestion/register', event)\n );\n};\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAca,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CA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AAC;KACnE;IACD,OAAO,CAAC,aAAa,CACnB,gBAAgB,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAC/D,CAAC;AACJ,CAAC;;;;","names":[],"sources":["src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/components/commerce/product-template-component-utils/context/fetch-product-context.ts","src/components/commerce/product-template-component-utils/context/stencil-product-template-decorators.tsx","src/components/common/suggestions/suggestions-events.ts"],"sourcesContent":["import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {Product} from '@coveo/headless/commerce';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n","import {Product} from '@coveo/headless/commerce';\nimport {itemContext} from '@/src/components/common/item-list/stencil-item-decorators';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/components/commerce/product-template-component-utils/context/fetch-product-context.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {HTMLStencilElement} from '@stencil/core/internal';\nimport type {LitElement} from 'lit';\nimport {closest} from '../../../utils/dom-utils';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport type {AnyBindings} from '../interface/bindings';\nimport type {SearchBoxSuggestionsEvent} from './suggestions-types';\n\n/**\n * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.\n *\n * @param event Event sent from the registered query suggestions to the parent search box\n * @param element Element on which to dispatch the event, which must be the child of a configured search box\n * @param allowedSearchBoxElements Optional array of allowed search box element selectors\n *\n * @throws Error if the element is not a child of an allowed search box element\n */\nexport const dispatchSearchBoxSuggestionsEvent = <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>,\n element: HTMLElement,\n allowedSearchBoxElements: readonly (typeof searchBoxElements)[number][] = searchBoxElements\n) => {\n const interfaceElement = closest(element, searchBoxElements.join(', '));\n if (!interfaceElement) {\n throw new Error(\n `The \"${element.nodeName.toLowerCase()}\" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(\n ', '\n )}`\n );\n }\n void dispatchSearchBoxSuggestionsEventEventually(\n interfaceElement,\n element,\n event\n );\n};\n\nconst searchBoxElements = [\n 'atomic-search-box',\n 'atomic-insight-search-box',\n 'atomic-commerce-search-box',\n] as const;\n\nconst isLitElementLoosely = (candidate: unknown): candidate is LitElement =>\n 'updateComplete' in (candidate as LitElement) &&\n (candidate as LitElement).updateComplete instanceof Promise;\n\nconst dispatchSearchBoxSuggestionsEventEventually = async <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n interfaceElement: Element,\n element: HTMLElement,\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>\n) => {\n await customElements.whenDefined(interfaceElement.nodeName.toLowerCase());\n if (isLitElementLoosely(interfaceElement)) {\n await interfaceElement.updateComplete;\n } else if ('componentOnReady' in interfaceElement) {\n await (interfaceElement as HTMLStencilElement).componentOnReady();\n }\n element.dispatchEvent(\n buildCustomEvent('atomic/searchBoxSuggestion/register', event)\n );\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { q as isElementNode } from './utils.js';
1
+ import { n as isElementNode } from './utils.js';
2
2
 
3
3
  const resultSectionTags = new Set([
4
4
  'atomic-result-section-visual',
@@ -0,0 +1,9 @@
1
+ import { q as containsVisualElement } from './utils.js';
2
+
3
+ function hideEmptySection(element) {
4
+ element.style.display = containsVisualElement(element) ? '' : 'none';
5
+ }
6
+
7
+ export { hideEmptySection as h };
8
+
9
+ //# sourceMappingURL=item-section-utils.js.map
@@ -0,0 +1 @@
1
+ {"file":"item-section-utils.js","mappings":";;SAEgB,gBAAgB,CAAC,OAAoB;IACnD,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,qBAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;AACvE;;;;","names":[],"sources":["src/utils/item-section-utils.ts"],"sourcesContent":["import {containsVisualElement} from './utils';\n\nexport function hideEmptySection(element: HTMLElement) {\n element.style.display = containsVisualElement(element) ? '' : 'none';\n}\n"],"version":3}
@@ -1,19 +1,19 @@
1
1
  import { hideEmptySection } from '../utils/item-section-utils.js';
2
2
  import { LightDomMixin } from './light-dom.js';
3
3
  /**
4
- * Mixin for item section components that provides common functionality.
5
- * All item section components extend LitElement and call hideEmptySection in updated().
4
+ * Mixin for product section components that provides common functionality.
5
+ * All product section components extend LitElement and call hideEmptySection in updated().
6
6
  *
7
7
  * @param superClass - The base class to extend
8
8
  * @param styles - The styles to apply to the section.
9
- * @returns A class that extends the superClass with item section functionality
9
+ * @returns A class that extends the superClass with product section functionality
10
10
  */
11
11
  export function ItemSectionMixin(superClass, styles) {
12
- class ItemSectionMixinClass extends LightDomMixin(superClass) {
12
+ class ProductSectionMixinClass extends LightDomMixin(superClass) {
13
13
  updated() {
14
14
  hideEmptySection(this);
15
15
  }
16
16
  }
17
- ItemSectionMixinClass.styles = styles;
18
- return ItemSectionMixinClass;
17
+ ProductSectionMixinClass.styles = styles;
18
+ return ProductSectionMixinClass;
19
19
  }
@@ -1,6 +1,6 @@
1
1
  import { isArray } from '@coveo/bueno';
2
2
  import { getElement } from '@stencil/core/internal/client';
3
- import { k as camelToKebab, l as kebabToCamel } from './utils.js';
3
+ import { j as camelToKebab, k as kebabToCamel } from './utils.js';
4
4
 
5
5
  /**
6
6
  * @deprecated Use the `mapProperty` decorator instead.
@@ -1,6 +1,6 @@
1
1
  import { ResultTemplatesHelpers } from '@coveo/headless';
2
2
  import { h } from '@stencil/core/internal/client';
3
- import { m as aggregate, n as isVisualNode, q as isElementNode } from './utils.js';
3
+ import { l as aggregate, m as isVisualNode, n as isElementNode } from './utils.js';
4
4
  import { t as tableElementTagName } from './table-element-utils.js';
5
5
  import { i as isResultSectionNode } from './item-layout-sections.js';
6
6
 
@@ -56,7 +56,7 @@ const TextAreaClearButton = ({ inputRef, bindings, onClick, ...defaultButtonProp
56
56
  h(Button, { style: "text-transparent", part: "clear-button", class: "text-neutral-dark flex h-8 w-8 shrink-0 items-center justify-center", onClick: () => {
57
57
  onClick?.();
58
58
  inputRef?.focus();
59
- }, ariaLabel: bindings.i18n.t('clear'), ...defaultButtonProps },
59
+ }, ariaLabel: bindings.i18n.t('clear-searchbox'), ...defaultButtonProps },
60
60
  h("atomic-icon", { part: "clear-icon", icon: ClearSlim, class: "h-4 w-4" }))));
61
61
 
62
62
  function getPopupAttributes(props) {
@@ -1 +1 @@
1
- {"file":"stencil-suggestion-manager.js","mappings":";;;;;;AAEA;;;;;;SAMgB,iBAAiB,CAAC,EAA8B;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7C,CAAC;AAED;;;;;;SAMgB,eAAe,CAAC,EAA8B;IAC5D,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC9C;;;;;;;;ACbA;;;MAGa,gBAAgB,GAA+B,CAC1D,KAAK,EACL,QAAQ;IAER,MAAM,UAAU,GAAG;QACjB,MAAM,WAAW,GACf,sGAAsG,CAAC;QACzG,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ;cAC/B,wDAAwD;cACxD,4DAA4D,CAAC;QAEjE,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC9C,CAAC;IAEF,QACE,WAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,IAClE,QAAQ,CACL,EACN;AACJ;;;;;;;;ACnBA;;;AAGO,MAAM,mBAAmB,GAA+B,CAAC,EAC9D,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,GAAG,kBAAkB,EACtB,MACC,WACE,IAAI,EAAC,sBAAsB,EAC3B,KAAK,EAAC,4CAA4C;IAElD,EAAC,MAAM,IACL,KAAK,EAAC,kB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iBAAiB,CAAC,KAAK,CAAC,EAAE;gBAC9C,OAAO,IAAI,CAAC;aACb;YACD,IAAI,iBAAiB,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE;gBAClD,OAAO,KAAK,CAAC;aACd;iBAAM;gBACL,iBAAiB,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBAC/C,OAAO,IAAI,CAAC;aACb;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;KACZ;IAEO,qBAAqB,CAAC,WAAmC;QAC/D,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,KAC9C,UAAU,CAAC,WAAW,EAAE,CACzB,CAAC;QAEF,MAAM,GAAG,GACP,IAAI,CAAC,mBAAmB,CAAC,+BAA+B,EAAE;YAC1D,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;QAE5C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;KAC/B;IAEO,iBAAiB,CAAC,gBAAgB,GAAG,EAAE;QAC7C,MAAM,wBAAwB,GAAG,IAAI,CAAC,uBAAuB,CAAC;QAC9D,IAAI,CAAC,+BAA+B,GAAG,wBAAwB,CAAC;QAChE,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;KAC/C;IAEO,uBAAuB;QAC7B,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;QACjC,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC;KACnC;;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-utils.ts","src/components/common/search-box/stencil-search-box-wrapper.tsx","src/components/common/search-box/stencil-text-area-clear-button.tsx","src/components/common/search-box/stencil-search-text-area.tsx","src/utils/promise-utils.ts","src/components/common/suggestions/stencil-suggestion-manager.ts"],"sourcesContent":["import type {SearchBoxSuggestionElement} from './suggestions-types';\n\n/**\n * Checks if a search box suggestion element has no query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has no query or the query is whitespace-only\n */\nexport function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean {\n return !el.query || el.query.trim() === '';\n}\n\n/**\n * Checks if a search box suggestion element has a query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has a non-empty, non-whitespace query\n */\nexport function elementHasQuery(el: SearchBoxSuggestionElement): boolean {\n return !!el.query && el.query.trim() !== '';\n}\n","import {FunctionalComponent, h} from '@stencil/core';\n\ninterface Props {\n disabled: boolean;\n onFocusout?: (event: FocusEvent) => void;\n}\n\n/**\n * @deprecated should only be used for Stencil components.\n */\nexport const SearchBoxWrapper: FunctionalComponent<Props> = (\n props,\n children\n) => {\n const getClasses = () => {\n const baseClasses =\n 'flex bg-background w-full border border-neutral rounded-md focus-within:ring-3 absolute top-0 left-0';\n const focusClasses = props.disabled\n ? 'focus-within:border-disabled focus-within:ring-neutral'\n : 'focus-within:border-primary focus-within:ring-ring-primary';\n\n return [baseClasses, focusClasses].join(' ');\n };\n\n return (\n <div part=\"wrapper\" class={getClasses()} onFocusout={props.onFocusout}>\n {children}\n </div>\n );\n};\n","import {FunctionalComponent, h} from '@stencil/core';\nimport ClearSlim from '../../../images/clear-slim.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button, StencilButtonProps} from '../stencil-button';\n\ninterface Props extends Partial<StencilButtonProps> {\n bindings: AnyBindings;\n inputRef: HTMLInputElement | HTMLTextAreaElement | null;\n}\n\n/**\n * @deprecated should only be used for Stencil components.\n */\nexport const TextAreaClearButton: FunctionalComponent<Props> = ({\n inputRef,\n bindings,\n onClick,\n ...defaultButtonProps\n}) => (\n <div\n part=\"clear-button-wrapper\"\n class=\"ml-2 flex items-center justify-center py-2\"\n >\n <Button\n style=\"text-transparent\"\n part=\"clear-button\"\n class=\"text-neutral-dark flex h-8 w-8 shrink-0 items-center justify-center\"\n onClick={() => {\n onClick?.();\n inputRef?.focus();\n }}\n ariaLabel={bindings.i18n.t('clear')}\n {...defaultButtonProps}\n >\n <atomic-icon\n part=\"clear-icon\"\n icon={ClearSlim}\n class=\"h-4 w-4\"\n ></atomic-icon>\n </Button>\n </div>\n);\n","import {FunctionalComponent, h} from '@stencil/core';\nimport {JSXBase} from '@stencil/core/internal';\nimport {AnyBindings} from '../interface/bindings';\nimport {TextAreaClearButton} from './stencil-text-area-clear-button';\n\ninterface Props extends JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement> {\n textAreaRef: HTMLTextAreaElement;\n loading: boolean;\n bindings: AnyBindings;\n value: string;\n ariaLabel: string;\n onClear(): void;\n popup?: {\n id: string;\n activeDescendant: string;\n expanded: boolean;\n hasSuggestions: boolean;\n };\n}\n\nfunction getPopupAttributes(props: Required<Props>['popup']) {\n return {\n autocomplete: 'off',\n autocapitalize: 'off',\n autocorrect: 'off',\n ...(props.activeDescendant && {\n 'aria-activedescendant': props.activeDescendant,\n }),\n 'aria-autocomplete': 'both',\n 'aria-haspopup': 'true',\n 'aria-controls': props.id,\n };\n}\n\nfunction syncTextWithReplica(elem: HTMLTextAreaElement, value?: string) {\n const parent = elem?.parentNode as HTMLElement;\n if (!parent) {\n return;\n }\n if (elem.value === '\\n') {\n return;\n }\n parent.dataset.replicatedValue = value ?? elem.value;\n}\n\nfunction resetReplicaText(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n delete parent.dataset.replicatedValue;\n }\n}\n\nfunction collapseTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.remove('expanded');\n }\n}\n\nfunction expandTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.add('expanded');\n }\n}\n\n/**\n * @deprecated should only be used for Stencil components.\n */\nexport const SearchTextArea: FunctionalComponent<Props> = ({\n textAreaRef,\n loading,\n bindings,\n onInput,\n onFocus,\n onBlur,\n onChange,\n onKeyDown,\n onKeyUp,\n value,\n ariaLabel,\n onClear,\n popup,\n ...defaultInputProps\n}) => (\n <div class=\"flex grow overflow-hidden\">\n <div part=\"textarea-expander\" class=\"grid grow overflow-hidden\">\n <textarea\n part=\"textarea\"\n aria-label={ariaLabel}\n placeholder={bindings.i18n.t('search')}\n class=\"placeholder-neutral-dark\"\n rows={1}\n onInput={(e) => {\n onInput?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onKeyDown={(e) => {\n syncTextWithReplica(textAreaRef);\n if (e.key === 'Enter') {\n if (e.shiftKey) {\n return;\n }\n e.preventDefault();\n }\n onKeyDown?.(e);\n }}\n onKeyUp={(e) => {\n onKeyUp?.(e);\n if (e.key === 'Enter') {\n e.preventDefault();\n return;\n }\n syncTextWithReplica(textAreaRef);\n }}\n onBlur={(e) => {\n onBlur?.(e);\n collapseTextArea(textAreaRef);\n syncTextWithReplica(textAreaRef);\n }}\n onChange={(e) => {\n onChange?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onFocus={(e) => {\n onFocus?.(e);\n const target = e.target as HTMLTextAreaElement;\n syncTextWithReplica(textAreaRef ?? target);\n expandTextArea(textAreaRef ?? target);\n }}\n autocomplete=\"off\"\n {...(popup && getPopupAttributes(popup))}\n {...defaultInputProps}\n value={value}\n />\n </div>\n\n {loading && (\n <div class=\"searchbox-button-wrapper ml-2 flex items-center justify-center\">\n <span\n part=\"loading\"\n class=\"loading mr-2 grid h-5 w-5 animate-spin place-items-center rounded-full bg-linear-to-r\"\n ></span>\n </div>\n )}\n {!loading && value && (\n <TextAreaClearButton\n inputRef={textAreaRef}\n bindings={bindings}\n onClick={() => {\n onClear();\n resetReplicaText(textAreaRef);\n }}\n />\n )}\n </div>\n);\n","export function promiseTimeout<T>(prom: T | Promise<T>, ms: number) {\n let id: NodeJS.Timeout;\n const timeout = new Promise((_, reject) => {\n id = setTimeout(() => {\n reject(new Error('Promise timed out.'));\n }, ms);\n });\n return Promise.race([prom, timeout]).then(() => {\n clearTimeout(id);\n });\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {forceUpdate} from '@stencil/core';\nimport DOMPurify from 'dompurify';\nimport {debounce} from '../../../utils/debounce-utils';\nimport {promiseTimeout} from '../../../utils/promise-utils';\nimport type {\n SearchBoxSuggestionElement,\n SearchBoxSuggestionsBindings,\n SearchBoxSuggestionsEvent,\n} from './suggestions-types';\nimport {elementHasNoQuery, elementHasQuery} from './suggestions-utils';\n\n/**\n * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.\n */\nexport interface SearchBoxSuggestions {\n /**\n * The search box will sort the position of suggestions using this value, the lowest value being first.\n * By default, the DOM position will be used.\n */\n position: number;\n /**\n * Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the right panel.\n */\n panel?: 'left' | 'right';\n /**\n * Method that returns the list of elements which will be rendered in the list of suggestions.\n */\n renderItems(): SearchBoxSuggestionElement[];\n /**\n * Hook called when the user changes the search box's input value. This can lead to all the query suggestions being updated.\n */\n onInput?(): Promise<unknown>;\n /**\n * Hook called when the current suggested query changes as the user navigates the list of suggestions.\n * This is used for instant results, which are rendered based on the current suggested query.\n * @param q The new current suggested query.\n */\n onSuggestedQueryChange?(q: string): Promise<unknown>;\n}\n\ninterface SearchBoxProps {\n getSearchBoxValue: () => string;\n updateQuery: (suggestedQuery: string) => void;\n getSuggestionTimeout: () => number;\n getNumberOfSuggestionsToDisplay: () => number;\n getSuggestionDelay: () => number;\n getLogger: () => Pick<typeof console, 'warn'>;\n getHost: () => HTMLElement;\n}\n\nexport class SuggestionManager<SearchBoxController> {\n public suggestions: SearchBoxSuggestions[] = [];\n public leftSuggestionElements: SearchBoxSuggestionElement[] = [];\n public rightSuggestionElements: SearchBoxSuggestionElement[] = [];\n public leftPanel: HTMLElement | undefined = undefined;\n public rightPanel: HTMLElement | undefined = undefined;\n public triggerSuggestions: () => Promise<void>;\n public activeDescendant = '';\n public suggestedQuery = '';\n public keyboardActiveDescendant = '';\n\n private queryDataAttribute = 'data-query';\n private suggestionEvents: SearchBoxSuggestionsEvent<SearchBoxController>[] =\n [];\n\n private previousActiveDescendantElement: HTMLElement | null = null;\n private leftSuggestions: SearchBoxSuggestions[] = [];\n private rightSuggestions: SearchBoxSuggestions[] = [];\n\n constructor(private ownerSearchBoxProps: SearchBoxProps) {\n this.triggerSuggestions = debounce(\n () => this.executeQuerySuggestion(),\n this.ownerSearchBoxProps.getSuggestionDelay()\n );\n }\n\n public get partialSuggestionBindings(): Pick<\n SearchBoxSuggestionsBindings<SearchBoxController>,\n | 'suggestedQuery'\n | 'clearSuggestions'\n | 'triggerSuggestions'\n | 'getSuggestions'\n | 'getSuggestionElements'\n > {\n return {\n suggestedQuery: () => this.suggestedQuery,\n clearSuggestions: () => this.clearSuggestions(),\n triggerSuggestions: () => this.triggerSuggestions(),\n getSuggestions: () => this.suggestions,\n getSuggestionElements: () => this.allSuggestionElements,\n };\n }\n\n public get activeDescendantElement(): HTMLElement | null {\n if (!this.hasActiveDescendant) {\n return null;\n }\n\n return (\n this.leftPanel?.querySelector(`#${this.activeDescendant}`) ||\n this.rightPanel?.querySelector(`#${this.activeDescendant}`) ||\n null\n );\n }\n\n public onSubmit() {\n this.clickOnActiveElement();\n this.clearSuggestions();\n }\n\n public updateActiveDescendant(id = '') {\n this.activeDescendant = id;\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n public updateKeyboardActiveDescendant(id = '') {\n this.keyboardActiveDescendant = id;\n }\n\n public clickOnActiveElement() {\n this.activeDescendantElement?.click();\n this.updateActiveDescendant();\n }\n\n public isRightPanelInFocus() {\n if (\n isNullOrUndefined(this.panelInFocus) ||\n isNullOrUndefined(this.rightPanel)\n ) {\n return false;\n }\n\n return this.panelInFocus === this.rightPanel;\n }\n\n public initializeSuggestions(\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n this.suggestions = this.suggestionEvents.map((event) => event(bindings));\n }\n\n public registerSuggestionsFromEvent(\n event: CustomEvent<SearchBoxSuggestionsEvent<SearchBoxController>>,\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n event.preventDefault();\n event.stopPropagation();\n this.suggestionEvents.push(event.detail);\n this.suggestions.push(event.detail(bindings));\n }\n\n public registerSuggestions(suggestions: SearchBoxSuggestions) {\n this.suggestions.push(suggestions);\n }\n\n public get isDoubleList() {\n return Boolean(\n this.leftSuggestionElements.length && this.rightSuggestionElements.length\n );\n }\n\n public focusPanel(side: 'left' | 'right') {\n const panel = side === 'left' ? this.leftPanel : this.rightPanel;\n\n if (this.panelInFocus === panel) {\n return;\n }\n if (panel?.firstElementChild) {\n const panelHasActiveDescendant =\n this.previousActiveDescendantElement &&\n panel.contains(this.previousActiveDescendantElement);\n const newValue = panelHasActiveDescendant\n ? this.previousActiveDescendantElement!\n : (panel.firstElementChild as HTMLElement);\n this.updateDescendants(newValue.id);\n }\n }\n\n public clearSuggestions() {\n this.clearSuggestionElements();\n this.updateActiveDescendant();\n }\n\n public async focusNextValue() {\n if (!this.hasSuggestions || !this.nextOrFirstValue) {\n return;\n }\n\n await this.focusValue(this.nextOrFirstValue as HTMLElement);\n }\n\n public async focusValue(value: HTMLElement) {\n this.updateKeyboardActiveDescendant(value.id);\n this.updateActiveDescendant(value.id);\n this.scrollActiveDescendantIntoView();\n await this.updateQueryFromSuggestion();\n }\n\n public async onSuggestionMouseOver(\n item: SearchBoxSuggestionElement,\n side: 'left' | 'right',\n id: string\n ) {\n const thisPanel = side === 'left' ? this.leftPanel : this.rightPanel;\n // When hovering, always reset the keyboard active descendant\n this.updateKeyboardActiveDescendant();\n if (this.panelInFocus === thisPanel) {\n this.updateActiveDescendant(id);\n } else {\n this.updateDescendants(id);\n }\n if (item.query) {\n await this.updateSuggestedQuery(item.query);\n }\n }\n\n public async onSuggestionClick(item: SearchBoxSuggestionElement, e: Event) {\n if (item.query) {\n this.clearSuggestions();\n await this.updateOwnerSearchboxQuery(item.query);\n }\n item.onSelect?.(e);\n }\n\n public get hasSuggestions() {\n return !!this.allSuggestionElements.length;\n }\n\n public get allSuggestionElements() {\n return [...this.leftSuggestionElements, ...this.rightSuggestionElements];\n }\n\n public async focusPreviousValue() {\n if (this.firstValue === this.activeDescendantElement) {\n this.updateKeyboardActiveDescendant();\n this.updateActiveDescendant();\n return;\n }\n\n if (!this.hasSuggestions || !this.previousOrLastValue) {\n return;\n }\n\n await this.focusValue(this.previousOrLastValue as HTMLElement);\n }\n\n public get hasActiveDescendant() {\n return this.activeDescendant !== '';\n }\n\n private async executeQuerySuggestion() {\n this.updateActiveDescendant();\n const settled = await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onInput ? suggestion.onInput() : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n\n const fulfilledSuggestions: SearchBoxSuggestions[] = [];\n\n settled.forEach((prom, j) => {\n if (prom.status === 'fulfilled') {\n fulfilledSuggestions.push(this.suggestions[j]);\n } else {\n this.ownerSearchBoxProps\n .getLogger()\n .warn(\n 'Some query suggestions are not being shown because the promise timed out.'\n );\n }\n });\n\n const splitSuggestions = (side: 'left' | 'right', isDefault = false) =>\n fulfilledSuggestions\n .filter(\n (suggestion) =>\n suggestion.panel === side || (!suggestion.panel && isDefault)\n )\n .sort(this.sortSuggestions);\n\n this.leftSuggestions = splitSuggestions('left', true);\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n\n this.rightSuggestions = splitSuggestions('right');\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n\n const defaultSuggestedQuery =\n this.allSuggestionElements.find(elementHasQuery)?.query || '';\n\n await this.updateSuggestedQuery(defaultSuggestedQuery);\n }\n\n private get lastValue() {\n return this.panelInFocus?.lastElementChild;\n }\n\n private get previousOrLastValue() {\n if (!this.hasActiveDescendant) {\n return this.lastValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.previousElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private sortSuggestions(a: SearchBoxSuggestions, b: SearchBoxSuggestions) {\n return a.position - b.position;\n }\n\n private get nextOrFirstValue() {\n if (!this.hasActiveDescendant) {\n return this.firstValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.nextElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private get firstValue() {\n return this.panelInFocus?.firstElementChild;\n }\n\n private get panelInFocus() {\n if (this.leftPanel?.contains(this.activeDescendantElement)) {\n return this.leftPanel;\n }\n if (this.rightPanel?.contains(this.activeDescendantElement)) {\n return this.rightPanel;\n }\n return this.leftPanel || this.rightPanel;\n }\n\n private scrollActiveDescendantIntoView() {\n this.activeDescendantElement?.scrollIntoView({\n block: 'nearest',\n });\n }\n\n private async updateQueryFromSuggestion() {\n const suggestedQuery = this.activeDescendantElement?.getAttribute(\n this.queryDataAttribute\n );\n await this.updateOwnerSearchboxQuery(suggestedQuery || '');\n }\n\n private async updateOwnerSearchboxQuery(query: string) {\n if (query && this.ownerSearchBoxProps.getSearchBoxValue() !== query) {\n this.ownerSearchBoxProps.updateQuery(query);\n await this.updateSuggestedQuery(query);\n }\n }\n\n private async updateSuggestedQuery(suggestedQuery: string) {\n await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onSuggestedQueryChange\n ? suggestion.onSuggestedQueryChange(suggestedQuery)\n : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n this.suggestedQuery = suggestedQuery;\n this.updateSuggestionElements(suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private updateSuggestionElements(query: string) {\n if (!this.isPanelInFocus(this.leftPanel, query)) {\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n }\n\n if (!this.isPanelInFocus(this.rightPanel, query)) {\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n }\n }\n\n public forceUpdate() {\n this.updateSuggestionElements(this.suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private isPanelInFocus(\n panel: HTMLElement | undefined,\n query: string\n ): boolean {\n if (!this.activeDescendantElement) {\n return false;\n }\n\n if (query) {\n const escaped = DOMPurify.sanitize(query);\n return !!panel?.querySelector(\n `[${this.queryDataAttribute}=\"${CSS.escape(escaped)}\"]`\n );\n }\n\n return this.activeDescendantElement?.closest('ul') === panel;\n }\n\n private getAndFilterLeftSuggestionElements() {\n const suggestionElements = this.getSuggestionElements(this.leftSuggestions);\n const filterOnDuplicate = new Set();\n\n const out = suggestionElements.filter((suggestionElement) => {\n if (isNullOrUndefined(suggestionElement.query)) {\n return true;\n }\n if (filterOnDuplicate.has(suggestionElement.query)) {\n return false;\n } else {\n filterOnDuplicate.add(suggestionElement.query);\n return true;\n }\n });\n\n return out;\n }\n\n private getSuggestionElements(suggestions: SearchBoxSuggestions[]) {\n const elements = suggestions.flatMap((suggestion) =>\n suggestion.renderItems()\n );\n\n const max =\n this.ownerSearchBoxProps.getNumberOfSuggestionsToDisplay() +\n elements.filter(elementHasNoQuery).length;\n\n return elements.slice(0, max);\n }\n\n private updateDescendants(activeDescendant = '') {\n const newPrevDescendantElement = this.activeDescendantElement;\n this.previousActiveDescendantElement = newPrevDescendantElement;\n this.updateActiveDescendant(activeDescendant);\n }\n\n private clearSuggestionElements() {\n this.leftSuggestionElements = [];\n this.rightSuggestionElements = [];\n }\n}\n"],"version":3}
1
+ {"file":"stencil-suggestion-manager.js","mappings":";;;;;;AAEA;;;;;;SAMgB,iBAAiB,CAAC,EAA8B;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7C,CAAC;AAED;;;;;;SAMgB,eAAe,CAAC,EAA8B;IAC5D,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KA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AC;QAE5C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;KAC/B;IAEO,iBAAiB,CAAC,gBAAgB,GAAG,EAAE;QAC7C,MAAM,wBAAwB,GAAG,IAAI,CAAC,uBAAuB,CAAC;QAC9D,IAAI,CAAC,+BAA+B,GAAG,wBAAwB,CAAC;QAChE,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;KAC/C;IAEO,uBAAuB;QAC7B,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;QACjC,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC;KACnC;;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-utils.ts","src/components/common/search-box/stencil-search-box-wrapper.tsx","src/components/common/search-box/stencil-text-area-clear-button.tsx","src/components/common/search-box/stencil-search-text-area.tsx","src/utils/promise-utils.ts","src/components/common/suggestions/stencil-suggestion-manager.ts"],"sourcesContent":["import type {SearchBoxSuggestionElement} from './suggestions-types';\n\n/**\n * Checks if a search box suggestion element has no query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has no query or the query is whitespace-only\n */\nexport function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean {\n return !el.query || el.query.trim() === '';\n}\n\n/**\n * Checks if a search box suggestion element has a query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has a non-empty, non-whitespace query\n */\nexport function elementHasQuery(el: SearchBoxSuggestionElement): boolean {\n return !!el.query && el.query.trim() !== '';\n}\n","import {FunctionalComponent, h} from '@stencil/core';\n\ninterface Props {\n disabled: boolean;\n onFocusout?: (event: FocusEvent) => void;\n}\n\n/**\n * @deprecated should only be used for Stencil components.\n */\nexport const SearchBoxWrapper: FunctionalComponent<Props> = (\n props,\n children\n) => {\n const getClasses = () => {\n const baseClasses =\n 'flex bg-background w-full border border-neutral rounded-md focus-within:ring-3 absolute top-0 left-0';\n const focusClasses = props.disabled\n ? 'focus-within:border-disabled focus-within:ring-neutral'\n : 'focus-within:border-primary focus-within:ring-ring-primary';\n\n return [baseClasses, focusClasses].join(' ');\n };\n\n return (\n <div part=\"wrapper\" class={getClasses()} onFocusout={props.onFocusout}>\n {children}\n </div>\n );\n};\n","import {FunctionalComponent, h} from '@stencil/core';\nimport ClearSlim from '../../../images/clear-slim.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button, StencilButtonProps} from '../stencil-button';\n\ninterface Props extends Partial<StencilButtonProps> {\n bindings: AnyBindings;\n inputRef: HTMLInputElement | HTMLTextAreaElement | null;\n}\n\n/**\n * @deprecated should only be used for Stencil components.\n */\nexport const TextAreaClearButton: FunctionalComponent<Props> = ({\n inputRef,\n bindings,\n onClick,\n ...defaultButtonProps\n}) => (\n <div\n part=\"clear-button-wrapper\"\n class=\"ml-2 flex items-center justify-center py-2\"\n >\n <Button\n style=\"text-transparent\"\n part=\"clear-button\"\n class=\"text-neutral-dark flex h-8 w-8 shrink-0 items-center justify-center\"\n onClick={() => {\n onClick?.();\n inputRef?.focus();\n }}\n ariaLabel={bindings.i18n.t('clear-searchbox')}\n {...defaultButtonProps}\n >\n <atomic-icon\n part=\"clear-icon\"\n icon={ClearSlim}\n class=\"h-4 w-4\"\n ></atomic-icon>\n </Button>\n </div>\n);\n","import {FunctionalComponent, h} from '@stencil/core';\nimport {JSXBase} from '@stencil/core/internal';\nimport {AnyBindings} from '../interface/bindings';\nimport {TextAreaClearButton} from './stencil-text-area-clear-button';\n\ninterface Props extends JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement> {\n textAreaRef: HTMLTextAreaElement;\n loading: boolean;\n bindings: AnyBindings;\n value: string;\n ariaLabel: string;\n onClear(): void;\n popup?: {\n id: string;\n activeDescendant: string;\n expanded: boolean;\n hasSuggestions: boolean;\n };\n}\n\nfunction getPopupAttributes(props: Required<Props>['popup']) {\n return {\n autocomplete: 'off',\n autocapitalize: 'off',\n autocorrect: 'off',\n ...(props.activeDescendant && {\n 'aria-activedescendant': props.activeDescendant,\n }),\n 'aria-autocomplete': 'both',\n 'aria-haspopup': 'true',\n 'aria-controls': props.id,\n };\n}\n\nfunction syncTextWithReplica(elem: HTMLTextAreaElement, value?: string) {\n const parent = elem?.parentNode as HTMLElement;\n if (!parent) {\n return;\n }\n if (elem.value === '\\n') {\n return;\n }\n parent.dataset.replicatedValue = value ?? elem.value;\n}\n\nfunction resetReplicaText(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n delete parent.dataset.replicatedValue;\n }\n}\n\nfunction collapseTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.remove('expanded');\n }\n}\n\nfunction expandTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.add('expanded');\n }\n}\n\n/**\n * @deprecated should only be used for Stencil components.\n */\nexport const SearchTextArea: FunctionalComponent<Props> = ({\n textAreaRef,\n loading,\n bindings,\n onInput,\n onFocus,\n onBlur,\n onChange,\n onKeyDown,\n onKeyUp,\n value,\n ariaLabel,\n onClear,\n popup,\n ...defaultInputProps\n}) => (\n <div class=\"flex grow overflow-hidden\">\n <div part=\"textarea-expander\" class=\"grid grow overflow-hidden\">\n <textarea\n part=\"textarea\"\n aria-label={ariaLabel}\n placeholder={bindings.i18n.t('search')}\n class=\"placeholder-neutral-dark\"\n rows={1}\n onInput={(e) => {\n onInput?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onKeyDown={(e) => {\n syncTextWithReplica(textAreaRef);\n if (e.key === 'Enter') {\n if (e.shiftKey) {\n return;\n }\n e.preventDefault();\n }\n onKeyDown?.(e);\n }}\n onKeyUp={(e) => {\n onKeyUp?.(e);\n if (e.key === 'Enter') {\n e.preventDefault();\n return;\n }\n syncTextWithReplica(textAreaRef);\n }}\n onBlur={(e) => {\n onBlur?.(e);\n collapseTextArea(textAreaRef);\n syncTextWithReplica(textAreaRef);\n }}\n onChange={(e) => {\n onChange?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onFocus={(e) => {\n onFocus?.(e);\n const target = e.target as HTMLTextAreaElement;\n syncTextWithReplica(textAreaRef ?? target);\n expandTextArea(textAreaRef ?? target);\n }}\n autocomplete=\"off\"\n {...(popup && getPopupAttributes(popup))}\n {...defaultInputProps}\n value={value}\n />\n </div>\n\n {loading && (\n <div class=\"searchbox-button-wrapper ml-2 flex items-center justify-center\">\n <span\n part=\"loading\"\n class=\"loading mr-2 grid h-5 w-5 animate-spin place-items-center rounded-full bg-linear-to-r\"\n ></span>\n </div>\n )}\n {!loading && value && (\n <TextAreaClearButton\n inputRef={textAreaRef}\n bindings={bindings}\n onClick={() => {\n onClear();\n resetReplicaText(textAreaRef);\n }}\n />\n )}\n </div>\n);\n","export function promiseTimeout<T>(prom: T | Promise<T>, ms: number) {\n let id: NodeJS.Timeout;\n const timeout = new Promise((_, reject) => {\n id = setTimeout(() => {\n reject(new Error('Promise timed out.'));\n }, ms);\n });\n return Promise.race([prom, timeout]).then(() => {\n clearTimeout(id);\n });\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {forceUpdate} from '@stencil/core';\nimport DOMPurify from 'dompurify';\nimport {debounce} from '../../../utils/debounce-utils';\nimport {promiseTimeout} from '../../../utils/promise-utils';\nimport type {\n SearchBoxSuggestionElement,\n SearchBoxSuggestionsBindings,\n SearchBoxSuggestionsEvent,\n} from './suggestions-types';\nimport {elementHasNoQuery, elementHasQuery} from './suggestions-utils';\n\n/**\n * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.\n */\nexport interface SearchBoxSuggestions {\n /**\n * The search box will sort the position of suggestions using this value, the lowest value being first.\n * By default, the DOM position will be used.\n */\n position: number;\n /**\n * Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the right panel.\n */\n panel?: 'left' | 'right';\n /**\n * Method that returns the list of elements which will be rendered in the list of suggestions.\n */\n renderItems(): SearchBoxSuggestionElement[];\n /**\n * Hook called when the user changes the search box's input value. This can lead to all the query suggestions being updated.\n */\n onInput?(): Promise<unknown>;\n /**\n * Hook called when the current suggested query changes as the user navigates the list of suggestions.\n * This is used for instant results, which are rendered based on the current suggested query.\n * @param q The new current suggested query.\n */\n onSuggestedQueryChange?(q: string): Promise<unknown>;\n}\n\ninterface SearchBoxProps {\n getSearchBoxValue: () => string;\n updateQuery: (suggestedQuery: string) => void;\n getSuggestionTimeout: () => number;\n getNumberOfSuggestionsToDisplay: () => number;\n getSuggestionDelay: () => number;\n getLogger: () => Pick<typeof console, 'warn'>;\n getHost: () => HTMLElement;\n}\n\nexport class SuggestionManager<SearchBoxController> {\n public suggestions: SearchBoxSuggestions[] = [];\n public leftSuggestionElements: SearchBoxSuggestionElement[] = [];\n public rightSuggestionElements: SearchBoxSuggestionElement[] = [];\n public leftPanel: HTMLElement | undefined = undefined;\n public rightPanel: HTMLElement | undefined = undefined;\n public triggerSuggestions: () => Promise<void>;\n public activeDescendant = '';\n public suggestedQuery = '';\n public keyboardActiveDescendant = '';\n\n private queryDataAttribute = 'data-query';\n private suggestionEvents: SearchBoxSuggestionsEvent<SearchBoxController>[] =\n [];\n\n private previousActiveDescendantElement: HTMLElement | null = null;\n private leftSuggestions: SearchBoxSuggestions[] = [];\n private rightSuggestions: SearchBoxSuggestions[] = [];\n\n constructor(private ownerSearchBoxProps: SearchBoxProps) {\n this.triggerSuggestions = debounce(\n () => this.executeQuerySuggestion(),\n this.ownerSearchBoxProps.getSuggestionDelay()\n );\n }\n\n public get partialSuggestionBindings(): Pick<\n SearchBoxSuggestionsBindings<SearchBoxController>,\n | 'suggestedQuery'\n | 'clearSuggestions'\n | 'triggerSuggestions'\n | 'getSuggestions'\n | 'getSuggestionElements'\n > {\n return {\n suggestedQuery: () => this.suggestedQuery,\n clearSuggestions: () => this.clearSuggestions(),\n triggerSuggestions: () => this.triggerSuggestions(),\n getSuggestions: () => this.suggestions,\n getSuggestionElements: () => this.allSuggestionElements,\n };\n }\n\n public get activeDescendantElement(): HTMLElement | null {\n if (!this.hasActiveDescendant) {\n return null;\n }\n\n return (\n this.leftPanel?.querySelector(`#${this.activeDescendant}`) ||\n this.rightPanel?.querySelector(`#${this.activeDescendant}`) ||\n null\n );\n }\n\n public onSubmit() {\n this.clickOnActiveElement();\n this.clearSuggestions();\n }\n\n public updateActiveDescendant(id = '') {\n this.activeDescendant = id;\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n public updateKeyboardActiveDescendant(id = '') {\n this.keyboardActiveDescendant = id;\n }\n\n public clickOnActiveElement() {\n this.activeDescendantElement?.click();\n this.updateActiveDescendant();\n }\n\n public isRightPanelInFocus() {\n if (\n isNullOrUndefined(this.panelInFocus) ||\n isNullOrUndefined(this.rightPanel)\n ) {\n return false;\n }\n\n return this.panelInFocus === this.rightPanel;\n }\n\n public initializeSuggestions(\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n this.suggestions = this.suggestionEvents.map((event) => event(bindings));\n }\n\n public registerSuggestionsFromEvent(\n event: CustomEvent<SearchBoxSuggestionsEvent<SearchBoxController>>,\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n event.preventDefault();\n event.stopPropagation();\n this.suggestionEvents.push(event.detail);\n this.suggestions.push(event.detail(bindings));\n }\n\n public registerSuggestions(suggestions: SearchBoxSuggestions) {\n this.suggestions.push(suggestions);\n }\n\n public get isDoubleList() {\n return Boolean(\n this.leftSuggestionElements.length && this.rightSuggestionElements.length\n );\n }\n\n public focusPanel(side: 'left' | 'right') {\n const panel = side === 'left' ? this.leftPanel : this.rightPanel;\n\n if (this.panelInFocus === panel) {\n return;\n }\n if (panel?.firstElementChild) {\n const panelHasActiveDescendant =\n this.previousActiveDescendantElement &&\n panel.contains(this.previousActiveDescendantElement);\n const newValue = panelHasActiveDescendant\n ? this.previousActiveDescendantElement!\n : (panel.firstElementChild as HTMLElement);\n this.updateDescendants(newValue.id);\n }\n }\n\n public clearSuggestions() {\n this.clearSuggestionElements();\n this.updateActiveDescendant();\n }\n\n public async focusNextValue() {\n if (!this.hasSuggestions || !this.nextOrFirstValue) {\n return;\n }\n\n await this.focusValue(this.nextOrFirstValue as HTMLElement);\n }\n\n public async focusValue(value: HTMLElement) {\n this.updateKeyboardActiveDescendant(value.id);\n this.updateActiveDescendant(value.id);\n this.scrollActiveDescendantIntoView();\n await this.updateQueryFromSuggestion();\n }\n\n public async onSuggestionMouseOver(\n item: SearchBoxSuggestionElement,\n side: 'left' | 'right',\n id: string\n ) {\n const thisPanel = side === 'left' ? this.leftPanel : this.rightPanel;\n // When hovering, always reset the keyboard active descendant\n this.updateKeyboardActiveDescendant();\n if (this.panelInFocus === thisPanel) {\n this.updateActiveDescendant(id);\n } else {\n this.updateDescendants(id);\n }\n if (item.query) {\n await this.updateSuggestedQuery(item.query);\n }\n }\n\n public async onSuggestionClick(item: SearchBoxSuggestionElement, e: Event) {\n if (item.query) {\n this.clearSuggestions();\n await this.updateOwnerSearchboxQuery(item.query);\n }\n item.onSelect?.(e);\n }\n\n public get hasSuggestions() {\n return !!this.allSuggestionElements.length;\n }\n\n public get allSuggestionElements() {\n return [...this.leftSuggestionElements, ...this.rightSuggestionElements];\n }\n\n public async focusPreviousValue() {\n if (this.firstValue === this.activeDescendantElement) {\n this.updateKeyboardActiveDescendant();\n this.updateActiveDescendant();\n return;\n }\n\n if (!this.hasSuggestions || !this.previousOrLastValue) {\n return;\n }\n\n await this.focusValue(this.previousOrLastValue as HTMLElement);\n }\n\n public get hasActiveDescendant() {\n return this.activeDescendant !== '';\n }\n\n private async executeQuerySuggestion() {\n this.updateActiveDescendant();\n const settled = await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onInput ? suggestion.onInput() : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n\n const fulfilledSuggestions: SearchBoxSuggestions[] = [];\n\n settled.forEach((prom, j) => {\n if (prom.status === 'fulfilled') {\n fulfilledSuggestions.push(this.suggestions[j]);\n } else {\n this.ownerSearchBoxProps\n .getLogger()\n .warn(\n 'Some query suggestions are not being shown because the promise timed out.'\n );\n }\n });\n\n const splitSuggestions = (side: 'left' | 'right', isDefault = false) =>\n fulfilledSuggestions\n .filter(\n (suggestion) =>\n suggestion.panel === side || (!suggestion.panel && isDefault)\n )\n .sort(this.sortSuggestions);\n\n this.leftSuggestions = splitSuggestions('left', true);\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n\n this.rightSuggestions = splitSuggestions('right');\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n\n const defaultSuggestedQuery =\n this.allSuggestionElements.find(elementHasQuery)?.query || '';\n\n await this.updateSuggestedQuery(defaultSuggestedQuery);\n }\n\n private get lastValue() {\n return this.panelInFocus?.lastElementChild;\n }\n\n private get previousOrLastValue() {\n if (!this.hasActiveDescendant) {\n return this.lastValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.previousElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private sortSuggestions(a: SearchBoxSuggestions, b: SearchBoxSuggestions) {\n return a.position - b.position;\n }\n\n private get nextOrFirstValue() {\n if (!this.hasActiveDescendant) {\n return this.firstValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.nextElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private get firstValue() {\n return this.panelInFocus?.firstElementChild;\n }\n\n private get panelInFocus() {\n if (this.leftPanel?.contains(this.activeDescendantElement)) {\n return this.leftPanel;\n }\n if (this.rightPanel?.contains(this.activeDescendantElement)) {\n return this.rightPanel;\n }\n return this.leftPanel || this.rightPanel;\n }\n\n private scrollActiveDescendantIntoView() {\n this.activeDescendantElement?.scrollIntoView({\n block: 'nearest',\n });\n }\n\n private async updateQueryFromSuggestion() {\n const suggestedQuery = this.activeDescendantElement?.getAttribute(\n this.queryDataAttribute\n );\n await this.updateOwnerSearchboxQuery(suggestedQuery || '');\n }\n\n private async updateOwnerSearchboxQuery(query: string) {\n if (query && this.ownerSearchBoxProps.getSearchBoxValue() !== query) {\n this.ownerSearchBoxProps.updateQuery(query);\n await this.updateSuggestedQuery(query);\n }\n }\n\n private async updateSuggestedQuery(suggestedQuery: string) {\n await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onSuggestedQueryChange\n ? suggestion.onSuggestedQueryChange(suggestedQuery)\n : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n this.suggestedQuery = suggestedQuery;\n this.updateSuggestionElements(suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private updateSuggestionElements(query: string) {\n if (!this.isPanelInFocus(this.leftPanel, query)) {\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n }\n\n if (!this.isPanelInFocus(this.rightPanel, query)) {\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n }\n }\n\n public forceUpdate() {\n this.updateSuggestionElements(this.suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private isPanelInFocus(\n panel: HTMLElement | undefined,\n query: string\n ): boolean {\n if (!this.activeDescendantElement) {\n return false;\n }\n\n if (query) {\n const escaped = DOMPurify.sanitize(query);\n return !!panel?.querySelector(\n `[${this.queryDataAttribute}=\"${CSS.escape(escaped)}\"]`\n );\n }\n\n return this.activeDescendantElement?.closest('ul') === panel;\n }\n\n private getAndFilterLeftSuggestionElements() {\n const suggestionElements = this.getSuggestionElements(this.leftSuggestions);\n const filterOnDuplicate = new Set();\n\n const out = suggestionElements.filter((suggestionElement) => {\n if (isNullOrUndefined(suggestionElement.query)) {\n return true;\n }\n if (filterOnDuplicate.has(suggestionElement.query)) {\n return false;\n } else {\n filterOnDuplicate.add(suggestionElement.query);\n return true;\n }\n });\n\n return out;\n }\n\n private getSuggestionElements(suggestions: SearchBoxSuggestions[]) {\n const elements = suggestions.flatMap((suggestion) =>\n suggestion.renderItems()\n );\n\n const max =\n this.ownerSearchBoxProps.getNumberOfSuggestionsToDisplay() +\n elements.filter(elementHasNoQuery).length;\n\n return elements.slice(0, max);\n }\n\n private updateDescendants(activeDescendant = '') {\n const newPrevDescendantElement = this.activeDescendantElement;\n this.previousActiveDescendantElement = newPrevDescendantElement;\n this.updateActiveDescendant(activeDescendant);\n }\n\n private clearSuggestionElements() {\n this.leftSuggestionElements = [];\n this.rightSuggestionElements = [];\n }\n}\n"],"version":3}
@@ -147,6 +147,6 @@ async function defer() {
147
147
  return new Promise((resolve) => setTimeout(resolve, 10));
148
148
  }
149
149
 
150
- export { spreadProperties as a, isAncestorOf as b, containsVisualElement as c, defer as d, elementHasAncestorTag as e, getFocusedElement as f, getParent as g, sortByDocumentPosition as h, isFocusingOut as i, sanitizeStyle as j, camelToKebab as k, kebabToCamel as l, aggregate as m, isVisualNode as n, once as o, parseXML as p, isElementNode as q, randomID as r, snakeToCamel as s, titleToKebab as t };
150
+ export { spreadProperties as a, isAncestorOf as b, getFocusedElement as c, defer as d, elementHasAncestorTag as e, sortByDocumentPosition as f, getParent as g, sanitizeStyle as h, isFocusingOut as i, camelToKebab as j, kebabToCamel as k, aggregate as l, isVisualNode as m, isElementNode as n, once as o, parseXML as p, containsVisualElement as q, randomID as r, snakeToCamel as s, titleToKebab as t };
151
151
 
152
152
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"search":"Hledat","no-title":"Žádný název","search-ellipsis":"Vyhledávání...","left":"Vlevo","right":"Právo","search-box":"Vstupní pole pro vyhledávání. Zadejte dotaz. Pro odeslání stiskněte Enter.","search-box-with-suggestions":"Vyhledávací pole s návrhy. Pro navigaci návrhy stiskněte klávesu Dolů. Pro odeslání stiskněte klávesu Enter.","search-box-with-suggestions-macos":"Hledací pole se sugescemi. Návrhy mohou být k dispozici pod tímto polem. Pro odeslání stiskněte Enter.","search-box-with-suggestions-keyboardless":"Vyhledávací pole se sugestemi. Sugestie mohou být k dispozici pod tímto polem. Pro odeslání stiskněte klávesu Enter.","search-suggestions-single-list":"Návrhy hledání. Pro navigaci mezi návrhy použijte klávesy nahoru nebo dolů. Pro výběr návrhu stiskněte Enter.","search-suggestions-double-list":"Dva seznamy návrhů do vyhledávacího pole vedle sebe. Pro navigaci mezi návrhy použijte šipky nahoru a dolů. Pro přepnutí mezi oběma seznamy použijte šipky doleva a doprava. Pro výběr návrhu stiskněte klávesu Enter.","search-suggestion-single-list":"{{label}}. {{position}} z celkových {{count}}.","search-suggestion-double-list":"{{label}}. {{position}} z {{count}}. V {{side}} seznamu.","search-suggestion-button":"{{label}}. Tlačítko","search-disabled":"Zadejte dotaz obsahující minimálně {{length}} znak(y), aby bylo možné vyhledávat.","query-suggestion-label":"Navržený dotaz pro „{{query}}“","recent-query-suggestion-label":"Nedávný dotaz \"{{query}}\"","instant-products-suggestion-label":"{{title}}, okamžitý produkt","instant-results-suggestion-label":"{{title}}, okamžitý výsledek","facet-search-input":"Hledat","facet-search":"Hledat hodnoty ve facetě {{label}}","facet-value":"Filtrace včetně hodnoty {{value}}; {{formattedCount}} výsledek","facet-value_other":"Filtrace příslušnosti kategorie {{value}}; {{formattedCount}} výsledků","facet-value-exclude":"Filtr vyloučení na {{value}}; {{formattedCount}} výsledek","facet-value-exclude_other":"Filtr vyloučení na {{value}}; {{formattedCount}} výsledek","remove-inclusion-filter-on":"Odstranit filtr inkluze na {{value}}","remove-exclusion-filter-on":"Odstranit filtr vyloučení na {{value}}","query-suggestion-list":"Tipy hledání. Vyberte jeden k vyhledání.","tab-search":"Hledat hodnoty na kartě {{label}}.","clear":"Jasno","all-categories":"Všechny kategorie","show-all-products":"Zobrazit všechny produkty","show-all-results":"Zobrazit všechny výsledky","show-more":"Zobrazit více","show-less":"Zobrazit méně","show-less-facet-values":"Zobrazit méně hodnot pro nálepku {{label}}","show-more-facet-values":"Zobrazit více hodnot pro fasetu {{label}}","facet-values":"Hodnoty pro facet {{label}}","facet-search-results":"Hodnoty nalezené pro {{query}} ve zdroji {{label}}","facet-search-results-count":"{{count}} hodnota nalezena v kategorii {{label}}","facet-search-results-count_other":"{{count}} nalezených hodnot v kategorii {{label}}","pagination":"Stránkování","next":"Další","previous":"Předchozí","page-number":"Stránka {{pageNumber}}","no-values-found":"Nebyly nalezeny žádné hodnoty.","products-per-page":"Produkty na stránku","results-per-page":"Počet výsledků na stránce","sort":"Třídit","filters":"Filtr","sort-by":"Seřadit podle","relevance":"Relevance","most-recent":"Nejnovější","clear-filters":"Vymazat filtr","clear-filters_other":"Vymazat {{count}} filtrování","clear-filters-for-facet":"Vymazat {{count}} filtr pro kategorii {{label}}","clear-filters-for-facet_other":"Vymazat {{count}} filtrů pro vlastnost {{label}}","collapse-facet":"Sbalit filtr {{label}}","expand-facet":"Rozšířit filtr {{label}}","showing-products-of":"Produkt {{first}} z {{total}}","showing-results-of":"Výsledek {{first}} ze {{total}}","showing-products-of_other":"Produkty {{first}}-{{last}} z {{total}}","showing-results-of_other":"Výsledky {{first}}–{{last}} ze {{total}}","showing-products-of-with-query":"Produkt {{first}} z {{total}} pro {{query}}","showing-results-of-with-query":"Výsledek {{first}} ze {{total}} za {{query}}","showing-products-of-with-query_other":"Produkty {{first}}-{{last}} z {{total}} pro {{query}}","showing-results-of-with-query_other":"Výsledky {{first}}–{{last}} ze {{total}} za {{query}}","showing-products-of-load-more":"Zobrazování {{last}} z {{total}} produktů","showing-results-of-load-more":"Zobrazuje se {{last}} z celkových {{total}} výsledků","load-more-products":"Načíst další produkty","load-more-results":"Načíst více výsledků","load-all-results":"Načíst všechny výsledky","collapse-results":"Sbalit výsledky","no-documents-related":"K tomuto dokumentu nejsou žádné související dokumenty.","in-seconds":"za dobu: {{count}}","in-seconds_other":"za dobu: {{count}}","no-results-for":"Pro dotaz {{query}} nebyly nalezeny žádné výsledky","no-results-for-did-you-mean":"Pro dotaz {{query}} nebyly nalezeny žádné výsledky","showing-products-for":"Zobrazuji produkty pro {{query}}","showing-results-for":"Zobrazuji výsledky pro {{query}}","search-instead-for":"Hledat místo toho {{query}}","search-tips":"Můžete zkusit použít jiná klíčová slova, zrušení filtrů nebo kontrolu pravopisu.","no-results":"Žádné výsledky","more-matches-for":"Více výsledků pro {{query}}","no-matches-found-for":"Nebylo nalezeno žádné shodné výsledky pro {{query}}","recent-searches":"Poslední hledání","clear-recent-searches":"Vymazat nedávné vyhledávání","cancel-last-action":"Zrušit poslední akci","cancel":"Zrušit","check-spelling":"Zkontrolujte pravopis klíčových slov.","try-using-fewer-keywords":"Zkuste použít méně, více či jiná obecná klíčová slova.","select-fewer-filters":"Chcete-li rozšířit hledání, vyberte méně filtrů.","author":"Autor","file-type":"Typ souboru","language":"Jazyk","source":"Zdroj","printable-uri":"Zdrojová cesta výsledku","collapsed-uri-parts":"Sbalené části URI","disconnected":"Bez přístupu.","check-your-connection":"Vašemu dotazu se nepodařilo odeslat na následující URL: {{url}}. Ověřte své připojení.","no-endpoints":"Vaše organizace {{org}} nemá k dispozici žádný obsah.","invalid-token":"Ujistěte se, že token je platný.","add-sources":"Přidat zdroje obsahu, nebo počkat, až se vaše nově vytvořené zdroje dokončí indexaci.","coveo-online-help":"Coveo online nápověda","cannot-access":"Vaše organizace {{org}} není přístupná.","something-went-wrong":"Na serveru došlo k chybě.","if-problem-persists":"Pokud problém přetrvává, spojte se se správcem.","more-info":"Více informací","clear-all-filters":"Vymazat všechny filtry","n-more":"počet dalších: {{value}}","show-n-more-filters":"Zobrazit {{value}} dalších filtrů","query-auto-corrected-to":"Dotaz byl automaticky opraven na {{query}}","did-you-mean":"Měli jste na mysli: {{query}}","close":"Zavřít","no-label":"Bez popisku","to":"{{- start}} až {{- end}}","min":"Min","max":"Max","apply":"Použít","yes":"Ano","no":"Ne","popover":"Menu vyskakovacího okna pro prvek {{label}}","number-input-minimum":"Zadejte minimální číselnou hodnotu pro filtr {{label}}","number-input-maximum":"Zadejte maximální numerickou hodnotu pro parametr {{label}}","number-input-apply":"Použít vlastní číselné hodnoty pro filtr {{label}}","end":"Konec","start":"Začátek","date-input-start":"Zadejte začátek datumu pro prvek {{label}}","date-input-end":"Zadejte koncové datum pro položku {{label}}","date-input-apply":"Použít vlastní počáteční a koncová data pro atribut {{label}}","past-minute":"Minutu zpět","past-minute_other":"Před {{count}} minutami","past-hour":"Poslední hodina","past-hour_other":"Posledních {{count}} hodin","past-day":"Minulý den","past-day_other":"Minulých {{count}} dní","past-week":"Minulý týden","past-week_other":"Uplynulo {{count}} týdnů","past-month":"Poslední měsíc","past-month_other":"Posledních {{count}} měsíců","past-quarter":"Minulé čtvrtletí","past-quarter_other":"Minulých {{count}} čtvrtletí","past-year":"Minulý rok","past-year_other":"Minulých {{count}} let","next-minute":"Příští minuta","next-minute_other":"V příštích {{count}} minutách","next-hour":"Příští hodina","next-hour_other":"Příštích {{count}} hodin","next-day":"Příští den","next-day_other":"Příštích {{count}} dní","next-week":"Příští týden","next-week_other":"Další {{count}} týdny","next-month":"Příští měsíc","next-month_other":"Dalších {{count}} měsíců","next-quarter":"Příští čtvrtletí","next-quarter_other":"Dalších {{count}} kvartálů","next-year":"Příští rok","next-year_other":"Dalších {{count}} let","in":"v","under":"{{child}} pod {{parent}}","preview-result":"Zobrazit náhled výsledku","preview-modal-title":"Náhled výsledku","sort-and-filter":"Třídit a filtrovat","view-products":"Zobrazit produkty","view-results":"Zobrazit výsledky","organization-is-paused":"Vaše organizace {{org}} byla pozastavena kvůli neaktivitě a vyhledávání je momentálně nedostupné.","organization-will-resume":"Vaše organizace se obnovuje a bude brzy k dispozici.","rating":"Hodnocení","and-up":"& nahoru","only":"pouze","loading-products":"Načítání nových produktů","loading-results":"Načítání nových výsledků","query-suggestions-available-no-query":"{{count}} dostupná hledání.","query-suggestions-available-no-query_other":"{{count}} dostupné návrhy hledání.","query-suggestions-available":"{{count}} dostupná hledání pro {{query}}.","query-suggestions-available_other":"{{count}} dostupné návrhy hledání pro {{query}}.","query-suggestions-unavailable":"Nebyly nalezeny žádné návrhy k hledání.","stars":"jeden hvězdička z {{max}}","stars_other":"{{count}} hvězdiček z {{max}}","stars-only":"pouze {{count}} hvězdiček z {{count}}","stars-range":"{{value}} hvězdiček a více z celkového počtu {{count}}","with-colon":"{{text}}:","between-quotations":"„{{text}}“","between-parentheses":"({{text}})","notifications":"Upozornění","notification-n":"Upozornění {{n}}: {{text}}","smart-snippet":"Potenciální odpověď na vaši otázku","smart-snippet-source":"Zdroj odpovědi","smart-snippet-feedback-inquiry":"Byla tato informace užitečná?","smart-snippet-feedback-thanks":"Děkujeme za Vaši zpětnou vazbu!","smart-snippet-feedback-explain-why":"Vysvětlit proč","smart-snippet-feedback-select-reason":"Vyberte důvod ","details":"Detaily","feedback-send":"Odeslat","smart-snippet-feedback-reason-does-not-answer":"Tohle vůbec neodpovědělo na mou otázku","smart-snippet-feedback-reason-partially-answers":"Toto pouze částečně odpovídá mé otázce","smart-snippet-feedback-reason-was-not-a-question":"Má žádost nebyla zamýšlena jako otázka","smart-snippet-feedback-reason-other":"Další","smart-snippet-people-also-ask":"Lidé se také ptají","edit-insight":"Úpravná důvtip","insight-history":"Historie akcí Insight","insight-related-cases":"Pohledy související s tímto případem","attach-to-case":"Připojit k případu","detach-from-case":"Odpojit od případu","result-is-attached":"Výsledek je připojen k případu","viewed-by-customer":"Zobrazeno zákazníkovi","full-search":"Tlačítko pro přístup k plnému vyhledávání","calendar-last-day":"[Včera]","calendar-same-day":"[Dnes]","calendar-next-day":"[Zítra]","calendar-next-week":"Příští týden","calendar-last-week":"[Minulý] dddd","approx_year":"Přibližně rok","approx_year_other":"Přibližně před {{count}} lety","approx_month":"Přibližně měsíc","approx_month_other":"Přibližně {{count}} měsíce","approx_day":"Přibližně jeden den","day_other":"Přibližně {{count}} dní","quickview":"Rychlé zobrazení","keywords-highlight":"Zvýraznění klíčových slov","minimize":"Minimalizovat","quickview-add-word":"Přidat zvýraznění","quickview-remove-word":"Odstranit zvýraznění","quickview-next":"Další náhled","quickview-previous":"Předchozí rychlé zobrazení","quickview-toggle-navigation":"Přepnout navigaci klíčových slov","quickview-navigate-keywords":"Navigovat mezi {{occurrences}} výskyty klíčového slova {{keyword}}","quickview-loading":"Načítání nového rychlého náhledu","quickview-loaded":"Rychlé zobrazení pro výsledek {{title}} bylo načteno. {{first}} z {{last}} jsou k dispozici.","more":"Více","tab-popover":"Rozbalovací nabídka pro více karet","generating-answer":"Generování odpovědi","answer-generated":"Vygenerovaná odpověď: {{answer}}","answer-could-not-be-generated":"Odpověď se nepodařilo vygenerovat","generated-answer-hidden":"Generovaná odpověď je skrytá","generated-answer-title":"Vygenerovaná odpověď","generated-answer-toggle-on":"Vygenerovaná odpověď zapnuta","generated-answer-toggle-off":"Vygenerovaná odpověď VYPNUTA","this-answer-was-helpful":"Užitečné","this-answer-was-not-helpful":"Nepomohlo","generated-answer-loading":"Hledání odpovědi...","retry":"Opakovat","retry-stream-message":"Ups! Při pokusu o generování odpovědi došlo k chybě.","generated-answer-feedback-instructions":"Řekněte nám, proč nebyla generovaná odpověď užitečná.","irrelevant":"Nepodstatné","not-accurate":"Nepřesné","out-of-date":"Zastaralé","harmful":"Škodlivý","other":"Jiné","add-details":"Přidejte podrobnosti","modal-done":"Hotovo","citations":"Citace","copy-generated-answer":"Kopírovat odpověď","generated-answer-copied":"Zkopírováno!","failed-to-copy-generated-answer":"Nepodařilo se zkopírovat odpověď","generated-answer-disclaimer":"Generovaný obsah může obsahovat chyby. Ověřte důležité informace.","available-in":"Dostupné v:","image-alt-fallback-multiple":"Obrázek {{count}} z {{max}} pro {{itemName}}","image-alt-fallback":"Obrázek pro {{itemName}}","image-not-found-alt":"Žádný obrázek není k dispozici pro {{itemName}}.","feedback-modal-title":"Pomozte nám se zlepšit!","skip":"Přeskočit","generated-answer-feedback-link":"Odkaz na správnou odpověď","generated-answer-additional-notes":"Další poznámky","feedback-hallucination-free":"Je odpověď bez halucinačního obsahu?","feedback-readable":"Je odpověď čitelná?","required-fields-error":"Toto pole je vyžadováno.","generated-answer-feedback-success":"Děkujeme! Vaše zpětná vazba nám pomůže zlepšit generované odpovědi.","additional-feedback":"Poskytněte další zpětnou vazbu","answer-evaluation":"Hodnocení odpovědi","generated-answer-send-feedback":"Odeslat zpětnou vazbu","add-notes":"Přidat poznámky","unknown":"Nejsem si jistý","feedback-correct-topic":"Je odpověď na správné téma?","feedback-documented":"Lze otázku zodpovědět dokumentací?","required-fields":"Požadovaná pole","ticket-created":"Vstupenka vytvořena","more-actions-in-session":"{{count}} další akce v této relaci","more-actions-in-session_other":"{{count}} další akce v této relaci","user-actions":"Uživatelské akce","no-user-actions-available":"Nejsou k dispozici žádné uživatelské akce","no-user-actions-associated-with-params":"K uživatelskému ID nejsou přiřazeny žádné uživatelské akce nebo je případ příliš starý na detekci souvisejících akcí.","hide-preceding-sessions":"Skrýt předchozí relace","show-preceding-sessions":"Zobrazit předchozí relace","hide-following-sessions":"Skrýt následující relace","show-following-sessions":"Zobrazit následující relace","empty-search":"Prázdné vyhledávání","no-products":"Žádné produkty","no-products-for":"Nepodařilo se nám najít žádný produkt pro {{query}}"}
1
+ {"search":"Hledat","no-title":"Žádný název","search-ellipsis":"Vyhledávání...","left":"Vlevo","right":"Právo","search-box":"Vstupní pole pro vyhledávání. Zadejte dotaz. Pro odeslání stiskněte Enter.","search-box-with-suggestions":"Vyhledávací pole s návrhy. Pro navigaci návrhy stiskněte klávesu Dolů. Pro odeslání stiskněte klávesu Enter.","search-box-with-suggestions-macos":"Hledací pole se sugescemi. Návrhy mohou být k dispozici pod tímto polem. Pro odeslání stiskněte Enter.","search-box-with-suggestions-keyboardless":"Vyhledávací pole se sugestemi. Sugestie mohou být k dispozici pod tímto polem. Pro odeslání stiskněte klávesu Enter.","search-suggestions-single-list":"Návrhy hledání. Pro navigaci mezi návrhy použijte klávesy nahoru nebo dolů. Pro výběr návrhu stiskněte Enter.","search-suggestions-double-list":"Dva seznamy návrhů do vyhledávacího pole vedle sebe. Pro navigaci mezi návrhy použijte šipky nahoru a dolů. Pro přepnutí mezi oběma seznamy použijte šipky doleva a doprava. Pro výběr návrhu stiskněte klávesu Enter.","search-suggestion-single-list":"{{label}}. {{position}} z celkových {{count}}.","search-suggestion-double-list":"{{label}}. {{position}} z {{count}}. V {{side}} seznamu.","search-suggestion-button":"{{label}}. Tlačítko","search-disabled":"Zadejte dotaz obsahující minimálně {{length}} znak(y), aby bylo možné vyhledávat.","query-suggestion-label":"Navržený dotaz pro „{{query}}“","recent-query-suggestion-label":"Nedávný dotaz \"{{query}}\"","instant-products-suggestion-label":"{{title}}, okamžitý produkt","instant-results-suggestion-label":"{{title}}, okamžitý výsledek","facet-search-input":"Hledat","facet-search":"Hledat hodnoty ve facetě {{label}}","facet-value":"Filtrace včetně hodnoty {{value}}; {{formattedCount}} výsledek","facet-value_other":"Filtrace příslušnosti kategorie {{value}}; {{formattedCount}} výsledků","facet-value-exclude":"Filtr vyloučení na {{value}}; {{formattedCount}} výsledek","facet-value-exclude_other":"Filtr vyloučení na {{value}}; {{formattedCount}} výsledek","remove-inclusion-filter-on":"Odstranit filtr inkluze na {{value}}","remove-exclusion-filter-on":"Odstranit filtr vyloučení na {{value}}","query-suggestion-list":"Tipy hledání. Vyberte jeden k vyhledání.","tab-search":"Hledat hodnoty na kartě {{label}}.","clear":"Jasno","filter-removed":"Filtr odstraněn","clear-searchbox":"Vymazat vyhledávací pole","search-box-cleared":"Hledání vymazáno","recent-search-cleared":"Nedávná hledání vymazána","all-categories":"Všechny kategorie","show-all-products":"Zobrazit všechny produkty","show-all-results":"Zobrazit všechny výsledky","show-more":"Zobrazit více","show-less":"Zobrazit méně","show-less-facet-values":"Zobrazit méně hodnot pro nálepku {{label}}","show-more-facet-values":"Zobrazit více hodnot pro fasetu {{label}}","facet-values":"Hodnoty pro facet {{label}}","facet-search-results":"Hodnoty nalezené pro {{query}} ve zdroji {{label}}","facet-search-results-count":"{{count}} hodnota nalezena v kategorii {{label}}","facet-search-results-count_other":"{{count}} nalezených hodnot v kategorii {{label}}","pagination":"Stránkování","next":"Další","previous":"Předchozí","page-number":"Stránka {{pageNumber}}","no-values-found":"Nebyly nalezeny žádné hodnoty.","products-per-page":"Produkty na stránku","results-per-page":"Počet výsledků na stránce","sort":"Třídit","filters":"Filtr","sort-by":"Seřadit podle","relevance":"Relevance","most-recent":"Nejnovější","clear-filters":"Vymazat filtr","clear-filters_other":"Vymazat {{count}} filtrování","clear-filters-for-facet":"Vymazat {{count}} filtr pro kategorii {{label}}","clear-filters-for-facet_other":"Vymazat {{count}} filtrů pro vlastnost {{label}}","collapse-facet":"Sbalit filtr {{label}}","expand-facet":"Rozšířit filtr {{label}}","showing-products-of":"Produkt {{first}} z {{total}}","showing-results-of":"Výsledek {{first}} ze {{total}}","showing-products-of_other":"Produkty {{first}}-{{last}} z {{total}}","showing-results-of_other":"Výsledky {{first}}–{{last}} ze {{total}}","showing-products-of-with-query":"Produkt {{first}} z {{total}} pro {{query}}","showing-results-of-with-query":"Výsledek {{first}} ze {{total}} za {{query}}","showing-products-of-with-query_other":"Produkty {{first}}-{{last}} z {{total}} pro {{query}}","showing-results-of-with-query_other":"Výsledky {{first}}–{{last}} ze {{total}} za {{query}}","showing-products-of-load-more":"Zobrazování {{last}} z {{total}} produktů","showing-results-of-load-more":"Zobrazuje se {{last}} z celkových {{total}} výsledků","load-more-products":"Načíst další produkty","load-more-results":"Načíst více výsledků","load-all-results":"Načíst všechny výsledky","collapse-results":"Sbalit výsledky","no-documents-related":"K tomuto dokumentu nejsou žádné související dokumenty.","in-seconds":"za dobu: {{count}}","in-seconds_other":"za dobu: {{count}}","no-results-for":"Pro dotaz {{query}} nebyly nalezeny žádné výsledky","no-results-for-did-you-mean":"Pro dotaz {{query}} nebyly nalezeny žádné výsledky","showing-products-for":"Zobrazuji produkty pro {{query}}","showing-results-for":"Zobrazuji výsledky pro {{query}}","search-instead-for":"Hledat místo toho {{query}}","search-tips":"Můžete zkusit použít jiná klíčová slova, zrušení filtrů nebo kontrolu pravopisu.","no-results":"Žádné výsledky","more-matches-for":"Více výsledků pro {{query}}","no-matches-found-for":"Nebylo nalezeno žádné shodné výsledky pro {{query}}","recent-searches":"Poslední hledání","clear-recent-searches":"Vymazat nedávné vyhledávání","cancel-last-action":"Zrušit poslední akci","cancel":"Zrušit","check-spelling":"Zkontrolujte pravopis klíčových slov.","try-using-fewer-keywords":"Zkuste použít méně, více či jiná obecná klíčová slova.","select-fewer-filters":"Chcete-li rozšířit hledání, vyberte méně filtrů.","author":"Autor","file-type":"Typ souboru","language":"Jazyk","source":"Zdroj","printable-uri":"Zdrojová cesta výsledku","collapsed-uri-parts":"Sbalené části URI","disconnected":"Bez přístupu.","check-your-connection":"Vašemu dotazu se nepodařilo odeslat na následující URL: {{url}}. Ověřte své připojení.","no-endpoints":"Vaše organizace {{org}} nemá k dispozici žádný obsah.","invalid-token":"Ujistěte se, že token je platný.","add-sources":"Přidat zdroje obsahu, nebo počkat, až se vaše nově vytvořené zdroje dokončí indexaci.","coveo-online-help":"Coveo online nápověda","cannot-access":"Vaše organizace {{org}} není přístupná.","something-went-wrong":"Na serveru došlo k chybě.","if-problem-persists":"Pokud problém přetrvává, spojte se se správcem.","more-info":"Více informací","clear-all-filters":"Vymazat všechny filtry","n-more":"počet dalších: {{value}}","show-n-more-filters":"Zobrazit {{value}} dalších filtrů","query-auto-corrected-to":"Dotaz byl automaticky opraven na {{query}}","did-you-mean":"Měli jste na mysli: {{query}}","close":"Zavřít","no-label":"Bez popisku","to":"{{- start}} až {{- end}}","min":"Min","max":"Max","apply":"Použít","yes":"Ano","no":"Ne","popover":"Menu vyskakovacího okna pro prvek {{label}}","number-input-minimum":"Zadejte minimální číselnou hodnotu pro filtr {{label}}","number-input-maximum":"Zadejte maximální numerickou hodnotu pro parametr {{label}}","number-input-apply":"Použít vlastní číselné hodnoty pro filtr {{label}}","end":"Konec","start":"Začátek","date-input-start":"Zadejte začátek datumu pro prvek {{label}}","date-input-end":"Zadejte koncové datum pro položku {{label}}","date-input-apply":"Použít vlastní počáteční a koncová data pro atribut {{label}}","past-minute":"Minutu zpět","past-minute_other":"Před {{count}} minutami","past-hour":"Poslední hodina","past-hour_other":"Posledních {{count}} hodin","past-day":"Minulý den","past-day_other":"Minulých {{count}} dní","past-week":"Minulý týden","past-week_other":"Uplynulo {{count}} týdnů","past-month":"Poslední měsíc","past-month_other":"Posledních {{count}} měsíců","past-quarter":"Minulé čtvrtletí","past-quarter_other":"Minulých {{count}} čtvrtletí","past-year":"Minulý rok","past-year_other":"Minulých {{count}} let","next-minute":"Příští minuta","next-minute_other":"V příštích {{count}} minutách","next-hour":"Příští hodina","next-hour_other":"Příštích {{count}} hodin","next-day":"Příští den","next-day_other":"Příštích {{count}} dní","next-week":"Příští týden","next-week_other":"Další {{count}} týdny","next-month":"Příští měsíc","next-month_other":"Dalších {{count}} měsíců","next-quarter":"Příští čtvrtletí","next-quarter_other":"Dalších {{count}} kvartálů","next-year":"Příští rok","next-year_other":"Dalších {{count}} let","in":"v","under":"{{child}} pod {{parent}}","preview-result":"Zobrazit náhled výsledku","preview-modal-title":"Náhled výsledku","sort-and-filter":"Třídit a filtrovat","view-products":"Zobrazit produkty","view-results":"Zobrazit výsledky","organization-is-paused":"Vaše organizace {{org}} byla pozastavena kvůli neaktivitě a vyhledávání je momentálně nedostupné.","organization-will-resume":"Vaše organizace se obnovuje a bude brzy k dispozici.","rating":"Hodnocení","and-up":"& nahoru","only":"pouze","loading-products":"Načítání nových produktů","loading-results":"Načítání nových výsledků","query-suggestions-available-no-query":"{{count}} dostupná hledání.","query-suggestions-available-no-query_other":"{{count}} dostupné návrhy hledání.","query-suggestions-available":"{{count}} dostupná hledání pro {{query}}.","query-suggestions-available_other":"{{count}} dostupné návrhy hledání pro {{query}}.","query-suggestions-unavailable":"Nebyly nalezeny žádné návrhy k hledání.","stars":"jeden hvězdička z {{max}}","stars_other":"{{count}} hvězdiček z {{max}}","stars-only":"pouze {{count}} hvězdiček z {{count}}","stars-range":"{{value}} hvězdiček a více z celkového počtu {{count}}","with-colon":"{{text}}:","between-quotations":"„{{text}}“","between-parentheses":"({{text}})","notifications":"Upozornění","notification-n":"Upozornění {{n}}: {{text}}","smart-snippet":"Potenciální odpověď na vaši otázku","smart-snippet-source":"Zdroj odpovědi","smart-snippet-feedback-inquiry":"Byla tato informace užitečná?","smart-snippet-feedback-thanks":"Děkujeme za Vaši zpětnou vazbu!","smart-snippet-feedback-explain-why":"Vysvětlit proč","smart-snippet-feedback-select-reason":"Vyberte důvod ","details":"Detaily","feedback-send":"Odeslat","smart-snippet-feedback-reason-does-not-answer":"Tohle vůbec neodpovědělo na mou otázku","smart-snippet-feedback-reason-partially-answers":"Toto pouze částečně odpovídá mé otázce","smart-snippet-feedback-reason-was-not-a-question":"Má žádost nebyla zamýšlena jako otázka","smart-snippet-feedback-reason-other":"Další","smart-snippet-people-also-ask":"Lidé se také ptají","edit-insight":"Úpravná důvtip","insight-history":"Historie akcí Insight","insight-related-cases":"Pohledy související s tímto případem","attach-to-case":"Připojit k případu","detach-from-case":"Odpojit od případu","result-is-attached":"Výsledek je připojen k případu","viewed-by-customer":"Zobrazeno zákazníkovi","full-search":"Tlačítko pro přístup k plnému vyhledávání","calendar-last-day":"[Včera]","calendar-same-day":"[Dnes]","calendar-next-day":"[Zítra]","calendar-next-week":"Příští týden","calendar-last-week":"[Minulý] dddd","approx_year":"Přibližně rok","approx_year_other":"Přibližně před {{count}} lety","approx_month":"Přibližně měsíc","approx_month_other":"Přibližně {{count}} měsíce","approx_day":"Přibližně jeden den","day_other":"Přibližně {{count}} dní","quickview":"Rychlé zobrazení","keywords-highlight":"Zvýraznění klíčových slov","minimize":"Minimalizovat","quickview-add-word":"Přidat zvýraznění","quickview-remove-word":"Odstranit zvýraznění","quickview-next":"Další náhled","quickview-previous":"Předchozí rychlé zobrazení","quickview-toggle-navigation":"Přepnout navigaci klíčových slov","quickview-navigate-keywords":"Navigovat mezi {{occurrences}} výskyty klíčového slova {{keyword}}","quickview-loading":"Načítání nového rychlého náhledu","quickview-loaded":"Rychlé zobrazení pro výsledek {{title}} bylo načteno. {{first}} z {{last}} jsou k dispozici.","more":"Více","tab-popover":"Rozbalovací nabídka pro více karet","generating-answer":"Generování odpovědi","answer-generated":"Vygenerovaná odpověď: {{answer}}","answer-could-not-be-generated":"Odpověď se nepodařilo vygenerovat","generated-answer-hidden":"Generovaná odpověď je skrytá","generated-answer-title":"Vygenerovaná odpověď","generated-answer-toggle-on":"Vygenerovaná odpověď zapnuta","generated-answer-toggle-off":"Vygenerovaná odpověď VYPNUTA","this-answer-was-helpful":"Užitečné","this-answer-was-not-helpful":"Nepomohlo","generated-answer-loading":"Hledání odpovědi...","retry":"Opakovat","retry-stream-message":"Ups! Při pokusu o generování odpovědi došlo k chybě.","generated-answer-feedback-instructions":"Řekněte nám, proč nebyla generovaná odpověď užitečná.","irrelevant":"Nepodstatné","not-accurate":"Nepřesné","out-of-date":"Zastaralé","harmful":"Škodlivý","other":"Jiné","add-details":"Přidejte podrobnosti","modal-done":"Hotovo","citations":"Citace","copy-generated-answer":"Kopírovat odpověď","generated-answer-copied":"Zkopírováno!","failed-to-copy-generated-answer":"Nepodařilo se zkopírovat odpověď","generated-answer-disclaimer":"Generovaný obsah může obsahovat chyby. Ověřte důležité informace.","available-in":"Dostupné v:","image-alt-fallback-multiple":"Obrázek {{count}} z {{max}} pro {{itemName}}","image-alt-fallback":"Obrázek pro {{itemName}}","image-not-found-alt":"Žádný obrázek není k dispozici pro {{itemName}}.","feedback-modal-title":"Pomozte nám se zlepšit!","skip":"Přeskočit","generated-answer-feedback-link":"Odkaz na správnou odpověď","generated-answer-additional-notes":"Další poznámky","feedback-hallucination-free":"Je odpověď bez halucinačního obsahu?","feedback-readable":"Je odpověď čitelná?","required-fields-error":"Toto pole je vyžadováno.","generated-answer-feedback-success":"Děkujeme! Vaše zpětná vazba nám pomůže zlepšit generované odpovědi.","additional-feedback":"Poskytněte další zpětnou vazbu","answer-evaluation":"Hodnocení odpovědi","generated-answer-send-feedback":"Odeslat zpětnou vazbu","add-notes":"Přidat poznámky","unknown":"Nejsem si jistý","feedback-correct-topic":"Je odpověď na správné téma?","feedback-documented":"Lze otázku zodpovědět dokumentací?","required-fields":"Požadovaná pole","ticket-created":"Vstupenka vytvořena","more-actions-in-session":"{{count}} další akce v této relaci","more-actions-in-session_other":"{{count}} další akce v této relaci","user-actions":"Uživatelské akce","no-user-actions-available":"Nejsou k dispozici žádné uživatelské akce","no-user-actions-associated-with-params":"K uživatelskému ID nejsou přiřazeny žádné uživatelské akce nebo je případ příliš starý na detekci souvisejících akcí.","hide-preceding-sessions":"Skrýt předchozí relace","show-preceding-sessions":"Zobrazit předchozí relace","hide-following-sessions":"Skrýt následující relace","show-following-sessions":"Zobrazit následující relace","empty-search":"Prázdné vyhledávání","no-products":"Žádné produkty","no-products-for":"Nepodařilo se nám najít žádný produkt pro {{query}}"}
@@ -1 +1 @@
1
- {"search":"Søg","no-title":"Ingen titel","search-ellipsis":"Søg...","left":"Venstre","right":"Højre","search-box":"Indtastningsfelt til søgning. Indsæt en forespørgsel. For at sende skal du trykke på Enter.","search-box-with-suggestions":"Søgefelt med forslag. Tryk på Pil ned for at navigere i forslagene. Tryk på Enter for at sende.","search-box-with-suggestions-macos":"Søgefelt med forslag. Forslag kan være tilgængelige under dette felt. For at sende tryk på Enter.","search-box-with-suggestions-keyboardless":"Søgefelt med forslag. Forslag kan være tilgængelige under dette felt. Tryk på Enter for at sende.","search-suggestions-single-list":"Søgeforslag. For at navigere mellem forslagene, trykker du på Pil op eller Pil ned. For at vælge et forslag, trykker du på Enter.","search-suggestions-double-list":"To lister med forslag til søgefeltet side om side. For at navigere mellem forslag, tryk på op eller ned pil. For at skifte mellem de to lister, tryk på venstre eller højre pil. For at vælge et forslag, tryk på Enter.","search-suggestion-single-list":"{{label}}. {{position}} af {{count}}.","search-suggestion-double-list":"{{label}}. {{position}} af {{count}}. I {{side}} liste.","search-suggestion-button":"{{label}}. Knap","search-disabled":"Indtast en søgeforespørgsel med mindst {{length}} tegn for at aktivere søgning.","query-suggestion-label":"Foreslået søgning for «{{query}}»","recent-query-suggestion-label":"Seneste forespørgsel \"{{query}}\"","instant-products-suggestion-label":"{{title}}, øjeblikkeligt produkt","instant-results-suggestion-label":"{{title}}, øjeblikkeligt resultat","facet-search-input":"Søg","facet-search":"Søg efter værdier i facetten {{label}}","facet-value":"Inklusionsfilter på {{value}}; {{formattedCount}} resultat","facet-value_other":"Inklusionsfilter på {{value}}; {{formattedCount}} resultater","facet-value-exclude":"Udelukkelsesfilter på {{value}}; {{formattedCount}} resultat","facet-value-exclude_other":"Udelukkelsesfilter på {{value}}; {{formattedCount}} resultat","remove-inclusion-filter-on":"Fjern inklusionsfilter på {{value}}","remove-exclusion-filter-on":"Fjern udelukkelsesfilter på {{value}}","query-suggestion-list":"Søgeforslag. Vælg en til at søge.","tab-search":"Søg efter værdier i fanen {{label}}.","clear":"Ryd","all-categories":"Alle kategorier","show-all-products":"Se alle produkter","show-all-results":"Se alle resultater","show-more":"Vis mere","show-less":"Vis mindre","show-less-facet-values":"Vis færre værdier for {{label}} facetten","show-more-facet-values":"Vis flere værdier for facetten {{label}}","facet-values":"Værdier for facetten {{label}}","facet-search-results":"Værdier fundet for {{query}} i {{label}} facet","facet-search-results-count":"{{count}} værdi fundet i facetet {{label}}","facet-search-results-count_other":"{{count}} værdier fundet i kategorien {{label}}","pagination":"Paginering","next":"Næste","previous":"Forrige","page-number":"Side {{pageNumber}}","no-values-found":"Ingen værdier fundet.","products-per-page":"Produkter pr. side","results-per-page":"Resultater pr. side","sort":"Sortér","filters":"Filtre","sort-by":"Sorter efter","relevance":"Relevans","most-recent":"Seneste","clear-filters":"Ryd filter","clear-filters_other":"Ryd alle {{count}} filtre","clear-filters-for-facet":"Ryd {{count}} filter for {{label}} facet","clear-filters-for-facet_other":"Ryd {{count}} filtre for facetten {{label}}","collapse-facet":"Skjul {{label}} filter","expand-facet":"Udvid {{label}} filteret","showing-products-of":"Produkt {{first}} af {{total}}","showing-results-of":"Resultat {{first}} af {{total}}","showing-products-of_other":"Produkter {{first}}-{{last}} af {{total}}","showing-results-of_other":"Resultater {{first}}-{{last}} af {{total}}","showing-products-of-with-query":"Produkt {{first}} af {{total}} til {{query}}","showing-results-of-with-query":"Resultat {{first}} af {{total}} til {{query}}","showing-products-of-with-query_other":"Produkter {{first}}-{{last}} af {{total}} for {{query}}","showing-results-of-with-query_other":"Resultater {{first}}-{{last}} af {{total}} til {{query}}","showing-products-of-load-more":"Viser {{last}} af {{total}} produkter","showing-results-of-load-more":"Viser {{last}} af {{total}} resultater","load-more-products":"Indlæs flere produkter","load-more-results":"Indlæs flere resultater","load-all-results":"Indlæs alle resultater","collapse-results":"Skjul resultater","no-documents-related":"Ingen dokumenter er relaterede til dette.","in-seconds":"i {{count}} sekund","in-seconds_other":"i {{count}} sekunder","no-results-for":"Ingen resultater for {{query}}","no-results-for-did-you-mean":"Ingen resultater for {{query}}","showing-products-for":"Viser produkter for {{query}}","showing-results-for":"Viser resultater for {{query}}","search-instead-for":"Søg i stedet efter {{query}}","search-tips":"Du kan prøve at bruge forskellige søgeord, fravælge filtre eller tjekke for stavefejl.","no-results":"Ingen resultater","more-matches-for":"Flere træffere for {{query}}","no-matches-found-for":"Ingen resultater fundet for {{query}}","recent-searches":"Seneste søgninger","clear-recent-searches":"Ryd seneste søgninger","cancel-last-action":"Annullér sidste handling","cancel":"Annuller","check-spelling":"Tjek stavningen i dine nøgleord.","try-using-fewer-keywords":"Prøv at benytte færre, andre eller mere generelle nøgleord.","select-fewer-filters":"Vælg færre filtre for at gøre din søgning bredere.","author":"Forfatter","file-type":"Filtype","language":"Sprog","source":"Kilde","printable-uri":"Kilde sti af resultatet","collapsed-uri-parts":"Sammenklappede URI-dele","disconnected":"Ingen adgang.","check-your-connection":"Din forespørgsel kunne ikke sendes til følgende URL: {{url}}. Verificer din forbindelse.","no-endpoints":"Din organisation {{org}} har ingen tilgængeligt indhold.","invalid-token":"Sørg for, at token er gyldigt.","add-sources":"Tilføj indholdskilder, eller vent på at dine nyoprettede kilder er færdige med at indeksere.","coveo-online-help":"Coveo Online Hjælp","cannot-access":"Din organisation {{org}} kan ikke tilgås.","something-went-wrong":"Noget gik galt på serveren.","if-problem-persists":"Kontakt administratoren, hvis problemet fortsætter.","more-info":"Mere information","clear-all-filters":"Ryd alle filtre","n-more":"{{value}} mere ...","show-n-more-filters":"Vis {{value}} flere filtre","query-auto-corrected-to":"Forespørgsel blev automatisk rettet til {{query}}","did-you-mean":"Mente du: {{query}}","close":"Luk","no-label":"Ingen label","to":"{{- start}} til {{- end}}","min":"Min","max":"Max","apply":"Ansøg","yes":"Ja","no":"Nej","popover":"Pop-op-menu til {{label}} -fasetten","number-input-minimum":"Indtast en minimum numerisk værdi for facetten {{label}}","number-input-maximum":"Indtast en maksimal numerisk værdi for {{label}} facet","number-input-apply":"Anvend brugerdefinerede numeriske værdier for {{label}} filteret","end":"Afslut","start":"Start","date-input-start":"Indtast en startdato for facetten {{label}}","date-input-end":"Indtast en slutdato for filteret {{label}}","date-input-apply":"Anvend brugerdefinerede start- og slutdatoer for facetten {{label}}","past-minute":"Sidste minut","past-minute_other":"Sidste {{count}} minutter","past-hour":"Seneste time","past-hour_other":"Sidste {{count}} timer","past-day":"Sidste dag","past-day_other":"De sidste {{count}} dage","past-week":"Sidste uge","past-week_other":"De seneste {{count}} uger","past-month":"Sidste måned","past-month_other":"De sidste {{count}} måneder","past-quarter":"Sidste kvartal","past-quarter_other":"De seneste {{count}} kvartaler","past-year":"Sidste år","past-year_other":"De sidste {{count}} år","next-minute":"Næste minut","next-minute_other":"Næste {{count}} minutter","next-hour":"Næste time","next-hour_other":"Næste {{count}} timer","next-day":"Næste dag","next-day_other":"Næste {{count}} dage","next-week":"Næste uge","next-week_other":"Næste {{count}} uger","next-month":"Næste måned","next-month_other":"Næste {{count}} måneder","next-quarter":"Næste kvartal","next-quarter_other":"Næste {{count}} kvartaler","next-year":"Næste år","next-year_other":"Næste {{count}} år","in":"i","under":"{{child}} under {{parent}}","preview-result":"Forhåndsvis resultatet","preview-modal-title":"Forhåndsvisning af resultatet","sort-and-filter":"Sorter og filtrer","view-products":"Se produkter","view-results":"Se resultater","organization-is-paused":"Din organisation {{org}} er sat på pause på grund af inaktivitet, og søgning er i øjeblikket ikke tilgængelig.","organization-will-resume":"Din organisation vil genoptage og vil snart være tilgængelig.","rating":"Bedømmelse","and-up":"& op","only":"kun","loading-products":"Indlæser nye produkter","loading-results":"Indlæser nye resultater","query-suggestions-available-no-query":"{{count}} søgeforslag tilgængelige.","query-suggestions-available-no-query_other":"{{count}} søgeforslag er tilgængelige.","query-suggestions-available":"{{count}} søgeforslag tilgængelige for {{query}}.","query-suggestions-available_other":"{{count}} søgeforslag er tilgængelige for {{query}}.","query-suggestions-unavailable":"Ingen søgeforslag tilgængelige.","stars":"én stjerne ud af {{max}}","stars_other":"{{count}} stjerner ud af {{max}}","stars-only":"kun {{count}} stjerner ud af {{count}}","stars-range":"{{value}} stjerner og derover ud af {{count}}","with-colon":"{{text}}:","between-quotations":"”{{text}}”","between-parentheses":"({{text}})","notifications":"Notifikationer","notification-n":"Notifikation {{n}}: {{text}}","smart-snippet":"Potentielt svar på dit spørgsmål","smart-snippet-source":"Kilde til svaret","smart-snippet-feedback-inquiry":"Var denne information nyttig?","smart-snippet-feedback-thanks":"Tak for din feedback!","smart-snippet-feedback-explain-why":"Forklar hvorfor","smart-snippet-feedback-select-reason":"Vælg årsagen ","details":"Detaljer","feedback-send":"Send","smart-snippet-feedback-reason-does-not-answer":"Dette besvarede slet ikke mit spørgsmål","smart-snippet-feedback-reason-partially-answers":"Dette besvarede kun delvist mit spørgsmål","smart-snippet-feedback-reason-was-not-a-question":"Mit forespørgsel var ikke meningen at blive opfattet som et spørgsmål","smart-snippet-feedback-reason-other":"Andet","smart-snippet-people-also-ask":"Folk spørger også","edit-insight":"Rediger indsigt","insight-history":"Insight-handlingshistorik","insight-related-cases":"Indsigter relateret til denne sag","attach-to-case":"Tilføj til sag","detach-from-case":"Fjern fra sag","result-is-attached":"Resultatet er tilføjet sagen","viewed-by-customer":"Set af kunden","full-search":"Knap til at få adgang til fuld søgning","calendar-last-day":"[I går]","calendar-same-day":"[I dag]","calendar-next-day":"[I morgen]","calendar-next-week":"Næste uge","calendar-last-week":"[Sidste] dddd","approx_year":"Omtrent et år","approx_year_other":"Omkring {{count}} år siden","approx_month":"Omkring en måned","approx_month_other":"Omtrent {{count}} måneder","approx_day":"Omtrent en dag","day_other":"Ca. {{count}} dage","quickview":"Hurtigvis","keywords-highlight":"Nøgleord fremhævning","minimize":"Minimer","quickview-add-word":"Tilføj fremhævninger","quickview-remove-word":"Fjern markeringer","quickview-next":"Næste hurtigvisning","quickview-previous":"Forrige hurtigvisning","quickview-toggle-navigation":"Skift nøgleord navigation","quickview-navigate-keywords":"Naviger mellem {{occurrences}} forekomster af {{keyword}}","quickview-loading":"Indlæser nyt hurtigt overblik","quickview-loaded":"Hurtigvisning af resultatet {{title}} indlæst. {{first}} ud af {{last}} er tilgængelige.","more":"Mere","tab-popover":"Pop op-menu til flere faner","generating-answer":"Genererer svar","answer-generated":"Genereret svar: {{answer}}","answer-could-not-be-generated":"Svar kunne ikke genereres","generated-answer-hidden":"Det genererede svar er skjult","generated-answer-title":"Genereret svar","generated-answer-toggle-on":"Genereret svar TIL","generated-answer-toggle-off":"Genereret svar FRA","this-answer-was-helpful":"Hjælpsomt","this-answer-was-not-helpful":"Ikke hjælpsomt","generated-answer-loading":"Søger efter et svar...","retry":"Prøv igen","retry-stream-message":"Ups! Noget gik galt under forsøget på at generere et svar.","generated-answer-feedback-instructions":"Fortæl os, hvorfor det genererede svar ikke var nyttigt.","irrelevant":"Irrelevant","not-accurate":"Ikke præcist","out-of-date":"Forældet","harmful":"Skadelig","other":"Andet","add-details":"Tilføj detaljer","modal-done":"Færdig","citations":"Citationer","copy-generated-answer":"Kopiér svar","generated-answer-copied":"Kopieret!","failed-to-copy-generated-answer":"Kunne ikke kopiere svaret","generated-answer-disclaimer":"Genereret indhold kan indeholde fejl. Bekræft vigtig information.","available-in":"Tilgængelig på:","image-alt-fallback-multiple":"Billede {{count}} ud af {{max}} for {{itemName}}","image-alt-fallback":"Billede for {{itemName}}","image-not-found-alt":"Ingen billede tilgængelig for {{itemName}}.","feedback-modal-title":"Hjælp os med at forbedre!","skip":"Spring over","generated-answer-feedback-link":"Link til korrekt svar","generated-answer-additional-notes":"Yderligere noter","feedback-hallucination-free":"Er svaret frit for hallucineret indhold?","feedback-readable":"Er svaret læsbart?","required-fields-error":"Dette felt er nødvendigt.","generated-answer-feedback-success":"Tak! Din feedback vil hjælpe os med at forbedre de genererede svar.","additional-feedback":"Giv yderligere feedback","answer-evaluation":"Svar evaluering","generated-answer-send-feedback":"Send feedback","add-notes":"Tilføj noter","unknown":"Ikke sikker","feedback-correct-topic":"Er svaret om det rigtige emne?","feedback-documented":"Kan spørgsmålet besvares ved dokumentation?","required-fields":"Obligatoriske felter","ticket-created":"Billet oprettet","more-actions-in-session":"{{count}} mere handling i denne session","more-actions-in-session_other":"{{count}} flere handlinger i denne session","user-actions":"Bruger handlinger","no-user-actions-available":"Ingen brugerhandlinger tilgængelige","no-user-actions-associated-with-params":"Der er ingen brugerhandlinger forbundet med bruger-id'et, eller sagen er for gammel til at opdage relaterede handlinger.","hide-preceding-sessions":"Skjul forudgående sessioner","show-preceding-sessions":"Vis foregående sessioner","hide-following-sessions":"Skjul følgende sessioner","show-following-sessions":"Vis følgende sessioner","empty-search":"Tom søgning","no-products":"Ingen produkter","no-products-for":"Vi kunne ikke finde noget produkt til {{query}}"}
1
+ {"search":"Søg","no-title":"Ingen titel","search-ellipsis":"Søg...","left":"Venstre","right":"Højre","search-box":"Indtastningsfelt til søgning. Indsæt en forespørgsel. For at sende skal du trykke på Enter.","search-box-with-suggestions":"Søgefelt med forslag. Tryk på Pil ned for at navigere i forslagene. Tryk på Enter for at sende.","search-box-with-suggestions-macos":"Søgefelt med forslag. Forslag kan være tilgængelige under dette felt. For at sende tryk på Enter.","search-box-with-suggestions-keyboardless":"Søgefelt med forslag. Forslag kan være tilgængelige under dette felt. Tryk på Enter for at sende.","search-suggestions-single-list":"Søgeforslag. For at navigere mellem forslagene, trykker du på Pil op eller Pil ned. For at vælge et forslag, trykker du på Enter.","search-suggestions-double-list":"To lister med forslag til søgefeltet side om side. For at navigere mellem forslag, tryk på op eller ned pil. For at skifte mellem de to lister, tryk på venstre eller højre pil. For at vælge et forslag, tryk på Enter.","search-suggestion-single-list":"{{label}}. {{position}} af {{count}}.","search-suggestion-double-list":"{{label}}. {{position}} af {{count}}. I {{side}} liste.","search-suggestion-button":"{{label}}. Knap","search-disabled":"Indtast en søgeforespørgsel med mindst {{length}} tegn for at aktivere søgning.","query-suggestion-label":"Foreslået søgning for «{{query}}»","recent-query-suggestion-label":"Seneste forespørgsel \"{{query}}\"","instant-products-suggestion-label":"{{title}}, øjeblikkeligt produkt","instant-results-suggestion-label":"{{title}}, øjeblikkeligt resultat","facet-search-input":"Søg","facet-search":"Søg efter værdier i facetten {{label}}","facet-value":"Inklusionsfilter på {{value}}; {{formattedCount}} resultat","facet-value_other":"Inklusionsfilter på {{value}}; {{formattedCount}} resultater","facet-value-exclude":"Udelukkelsesfilter på {{value}}; {{formattedCount}} resultat","facet-value-exclude_other":"Udelukkelsesfilter på {{value}}; {{formattedCount}} resultat","remove-inclusion-filter-on":"Fjern inklusionsfilter på {{value}}","remove-exclusion-filter-on":"Fjern udelukkelsesfilter på {{value}}","query-suggestion-list":"Søgeforslag. Vælg en til at søge.","tab-search":"Søg efter værdier i fanen {{label}}.","clear":"Ryd","filter-removed":"Filter fjernet","clear-searchbox":"Ryd søgefelt","search-box-cleared":"Søgning ryddet","recent-search-cleared":"Seneste søgninger ryddet","all-categories":"Alle kategorier","show-all-products":"Se alle produkter","show-all-results":"Se alle resultater","show-more":"Vis mere","show-less":"Vis mindre","show-less-facet-values":"Vis færre værdier for {{label}} facetten","show-more-facet-values":"Vis flere værdier for facetten {{label}}","facet-values":"Værdier for facetten {{label}}","facet-search-results":"Værdier fundet for {{query}} i {{label}} facet","facet-search-results-count":"{{count}} værdi fundet i facetet {{label}}","facet-search-results-count_other":"{{count}} værdier fundet i kategorien {{label}}","pagination":"Paginering","next":"Næste","previous":"Forrige","page-number":"Side {{pageNumber}}","no-values-found":"Ingen værdier fundet.","products-per-page":"Produkter pr. side","results-per-page":"Resultater pr. side","sort":"Sortér","filters":"Filtre","sort-by":"Sorter efter","relevance":"Relevans","most-recent":"Seneste","clear-filters":"Ryd filter","clear-filters_other":"Ryd alle {{count}} filtre","clear-filters-for-facet":"Ryd {{count}} filter for {{label}} facet","clear-filters-for-facet_other":"Ryd {{count}} filtre for facetten {{label}}","collapse-facet":"Skjul {{label}} filter","expand-facet":"Udvid {{label}} filteret","showing-products-of":"Produkt {{first}} af {{total}}","showing-results-of":"Resultat {{first}} af {{total}}","showing-products-of_other":"Produkter {{first}}-{{last}} af {{total}}","showing-results-of_other":"Resultater {{first}}-{{last}} af {{total}}","showing-products-of-with-query":"Produkt {{first}} af {{total}} til {{query}}","showing-results-of-with-query":"Resultat {{first}} af {{total}} til {{query}}","showing-products-of-with-query_other":"Produkter {{first}}-{{last}} af {{total}} for {{query}}","showing-results-of-with-query_other":"Resultater {{first}}-{{last}} af {{total}} til {{query}}","showing-products-of-load-more":"Viser {{last}} af {{total}} produkter","showing-results-of-load-more":"Viser {{last}} af {{total}} resultater","load-more-products":"Indlæs flere produkter","load-more-results":"Indlæs flere resultater","load-all-results":"Indlæs alle resultater","collapse-results":"Skjul resultater","no-documents-related":"Ingen dokumenter er relaterede til dette.","in-seconds":"i {{count}} sekund","in-seconds_other":"i {{count}} sekunder","no-results-for":"Ingen resultater for {{query}}","no-results-for-did-you-mean":"Ingen resultater for {{query}}","showing-products-for":"Viser produkter for {{query}}","showing-results-for":"Viser resultater for {{query}}","search-instead-for":"Søg i stedet efter {{query}}","search-tips":"Du kan prøve at bruge forskellige søgeord, fravælge filtre eller tjekke for stavefejl.","no-results":"Ingen resultater","more-matches-for":"Flere træffere for {{query}}","no-matches-found-for":"Ingen resultater fundet for {{query}}","recent-searches":"Seneste søgninger","clear-recent-searches":"Ryd seneste søgninger","cancel-last-action":"Annullér sidste handling","cancel":"Annuller","check-spelling":"Tjek stavningen i dine nøgleord.","try-using-fewer-keywords":"Prøv at benytte færre, andre eller mere generelle nøgleord.","select-fewer-filters":"Vælg færre filtre for at gøre din søgning bredere.","author":"Forfatter","file-type":"Filtype","language":"Sprog","source":"Kilde","printable-uri":"Kilde sti af resultatet","collapsed-uri-parts":"Sammenklappede URI-dele","disconnected":"Ingen adgang.","check-your-connection":"Din forespørgsel kunne ikke sendes til følgende URL: {{url}}. Verificer din forbindelse.","no-endpoints":"Din organisation {{org}} har ingen tilgængeligt indhold.","invalid-token":"Sørg for, at token er gyldigt.","add-sources":"Tilføj indholdskilder, eller vent på at dine nyoprettede kilder er færdige med at indeksere.","coveo-online-help":"Coveo Online Hjælp","cannot-access":"Din organisation {{org}} kan ikke tilgås.","something-went-wrong":"Noget gik galt på serveren.","if-problem-persists":"Kontakt administratoren, hvis problemet fortsætter.","more-info":"Mere information","clear-all-filters":"Ryd alle filtre","n-more":"{{value}} mere ...","show-n-more-filters":"Vis {{value}} flere filtre","query-auto-corrected-to":"Forespørgsel blev automatisk rettet til {{query}}","did-you-mean":"Mente du: {{query}}","close":"Luk","no-label":"Ingen label","to":"{{- start}} til {{- end}}","min":"Min","max":"Max","apply":"Ansøg","yes":"Ja","no":"Nej","popover":"Pop-op-menu til {{label}} -fasetten","number-input-minimum":"Indtast en minimum numerisk værdi for facetten {{label}}","number-input-maximum":"Indtast en maksimal numerisk værdi for {{label}} facet","number-input-apply":"Anvend brugerdefinerede numeriske værdier for {{label}} filteret","end":"Afslut","start":"Start","date-input-start":"Indtast en startdato for facetten {{label}}","date-input-end":"Indtast en slutdato for filteret {{label}}","date-input-apply":"Anvend brugerdefinerede start- og slutdatoer for facetten {{label}}","past-minute":"Sidste minut","past-minute_other":"Sidste {{count}} minutter","past-hour":"Seneste time","past-hour_other":"Sidste {{count}} timer","past-day":"Sidste dag","past-day_other":"De sidste {{count}} dage","past-week":"Sidste uge","past-week_other":"De seneste {{count}} uger","past-month":"Sidste måned","past-month_other":"De sidste {{count}} måneder","past-quarter":"Sidste kvartal","past-quarter_other":"De seneste {{count}} kvartaler","past-year":"Sidste år","past-year_other":"De sidste {{count}} år","next-minute":"Næste minut","next-minute_other":"Næste {{count}} minutter","next-hour":"Næste time","next-hour_other":"Næste {{count}} timer","next-day":"Næste dag","next-day_other":"Næste {{count}} dage","next-week":"Næste uge","next-week_other":"Næste {{count}} uger","next-month":"Næste måned","next-month_other":"Næste {{count}} måneder","next-quarter":"Næste kvartal","next-quarter_other":"Næste {{count}} kvartaler","next-year":"Næste år","next-year_other":"Næste {{count}} år","in":"i","under":"{{child}} under {{parent}}","preview-result":"Forhåndsvis resultatet","preview-modal-title":"Forhåndsvisning af resultatet","sort-and-filter":"Sorter og filtrer","view-products":"Se produkter","view-results":"Se resultater","organization-is-paused":"Din organisation {{org}} er sat på pause på grund af inaktivitet, og søgning er i øjeblikket ikke tilgængelig.","organization-will-resume":"Din organisation vil genoptage og vil snart være tilgængelig.","rating":"Bedømmelse","and-up":"& op","only":"kun","loading-products":"Indlæser nye produkter","loading-results":"Indlæser nye resultater","query-suggestions-available-no-query":"{{count}} søgeforslag tilgængelige.","query-suggestions-available-no-query_other":"{{count}} søgeforslag er tilgængelige.","query-suggestions-available":"{{count}} søgeforslag tilgængelige for {{query}}.","query-suggestions-available_other":"{{count}} søgeforslag er tilgængelige for {{query}}.","query-suggestions-unavailable":"Ingen søgeforslag tilgængelige.","stars":"én stjerne ud af {{max}}","stars_other":"{{count}} stjerner ud af {{max}}","stars-only":"kun {{count}} stjerner ud af {{count}}","stars-range":"{{value}} stjerner og derover ud af {{count}}","with-colon":"{{text}}:","between-quotations":"”{{text}}”","between-parentheses":"({{text}})","notifications":"Notifikationer","notification-n":"Notifikation {{n}}: {{text}}","smart-snippet":"Potentielt svar på dit spørgsmål","smart-snippet-source":"Kilde til svaret","smart-snippet-feedback-inquiry":"Var denne information nyttig?","smart-snippet-feedback-thanks":"Tak for din feedback!","smart-snippet-feedback-explain-why":"Forklar hvorfor","smart-snippet-feedback-select-reason":"Vælg årsagen ","details":"Detaljer","feedback-send":"Send","smart-snippet-feedback-reason-does-not-answer":"Dette besvarede slet ikke mit spørgsmål","smart-snippet-feedback-reason-partially-answers":"Dette besvarede kun delvist mit spørgsmål","smart-snippet-feedback-reason-was-not-a-question":"Mit forespørgsel var ikke meningen at blive opfattet som et spørgsmål","smart-snippet-feedback-reason-other":"Andet","smart-snippet-people-also-ask":"Folk spørger også","edit-insight":"Rediger indsigt","insight-history":"Insight-handlingshistorik","insight-related-cases":"Indsigter relateret til denne sag","attach-to-case":"Tilføj til sag","detach-from-case":"Fjern fra sag","result-is-attached":"Resultatet er tilføjet sagen","viewed-by-customer":"Set af kunden","full-search":"Knap til at få adgang til fuld søgning","calendar-last-day":"[I går]","calendar-same-day":"[I dag]","calendar-next-day":"[I morgen]","calendar-next-week":"Næste uge","calendar-last-week":"[Sidste] dddd","approx_year":"Omtrent et år","approx_year_other":"Omkring {{count}} år siden","approx_month":"Omkring en måned","approx_month_other":"Omtrent {{count}} måneder","approx_day":"Omtrent en dag","day_other":"Ca. {{count}} dage","quickview":"Hurtigvis","keywords-highlight":"Nøgleord fremhævning","minimize":"Minimer","quickview-add-word":"Tilføj fremhævninger","quickview-remove-word":"Fjern markeringer","quickview-next":"Næste hurtigvisning","quickview-previous":"Forrige hurtigvisning","quickview-toggle-navigation":"Skift nøgleord navigation","quickview-navigate-keywords":"Naviger mellem {{occurrences}} forekomster af {{keyword}}","quickview-loading":"Indlæser nyt hurtigt overblik","quickview-loaded":"Hurtigvisning af resultatet {{title}} indlæst. {{first}} ud af {{last}} er tilgængelige.","more":"Mere","tab-popover":"Pop op-menu til flere faner","generating-answer":"Genererer svar","answer-generated":"Genereret svar: {{answer}}","answer-could-not-be-generated":"Svar kunne ikke genereres","generated-answer-hidden":"Det genererede svar er skjult","generated-answer-title":"Genereret svar","generated-answer-toggle-on":"Genereret svar TIL","generated-answer-toggle-off":"Genereret svar FRA","this-answer-was-helpful":"Hjælpsomt","this-answer-was-not-helpful":"Ikke hjælpsomt","generated-answer-loading":"Søger efter et svar...","retry":"Prøv igen","retry-stream-message":"Ups! Noget gik galt under forsøget på at generere et svar.","generated-answer-feedback-instructions":"Fortæl os, hvorfor det genererede svar ikke var nyttigt.","irrelevant":"Irrelevant","not-accurate":"Ikke præcist","out-of-date":"Forældet","harmful":"Skadelig","other":"Andet","add-details":"Tilføj detaljer","modal-done":"Færdig","citations":"Citationer","copy-generated-answer":"Kopiér svar","generated-answer-copied":"Kopieret!","failed-to-copy-generated-answer":"Kunne ikke kopiere svaret","generated-answer-disclaimer":"Genereret indhold kan indeholde fejl. Bekræft vigtig information.","available-in":"Tilgængelig på:","image-alt-fallback-multiple":"Billede {{count}} ud af {{max}} for {{itemName}}","image-alt-fallback":"Billede for {{itemName}}","image-not-found-alt":"Ingen billede tilgængelig for {{itemName}}.","feedback-modal-title":"Hjælp os med at forbedre!","skip":"Spring over","generated-answer-feedback-link":"Link til korrekt svar","generated-answer-additional-notes":"Yderligere noter","feedback-hallucination-free":"Er svaret frit for hallucineret indhold?","feedback-readable":"Er svaret læsbart?","required-fields-error":"Dette felt er nødvendigt.","generated-answer-feedback-success":"Tak! Din feedback vil hjælpe os med at forbedre de genererede svar.","additional-feedback":"Giv yderligere feedback","answer-evaluation":"Svar evaluering","generated-answer-send-feedback":"Send feedback","add-notes":"Tilføj noter","unknown":"Ikke sikker","feedback-correct-topic":"Er svaret om det rigtige emne?","feedback-documented":"Kan spørgsmålet besvares ved dokumentation?","required-fields":"Obligatoriske felter","ticket-created":"Billet oprettet","more-actions-in-session":"{{count}} mere handling i denne session","more-actions-in-session_other":"{{count}} flere handlinger i denne session","user-actions":"Bruger handlinger","no-user-actions-available":"Ingen brugerhandlinger tilgængelige","no-user-actions-associated-with-params":"Der er ingen brugerhandlinger forbundet med bruger-id'et, eller sagen er for gammel til at opdage relaterede handlinger.","hide-preceding-sessions":"Skjul forudgående sessioner","show-preceding-sessions":"Vis foregående sessioner","hide-following-sessions":"Skjul følgende sessioner","show-following-sessions":"Vis følgende sessioner","empty-search":"Tom søgning","no-products":"Ingen produkter","no-products-for":"Vi kunne ikke finde noget produkt til {{query}}"}