@coveo/atomic 3.33.8-pre.a42c491ac0 → 3.33.8-pre.a5e3612f4f

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 (439) 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/autoloader/index.cjs.js +2 -2
  4. package/dist/atomic/autoloader/index.esm.js +2 -2
  5. package/dist/atomic/components/_index.d.ts +0 -2
  6. package/dist/atomic/components/_index.js +0 -1
  7. package/dist/atomic/components/analytics-config.js +1 -1
  8. package/dist/atomic/components/atomic-category-facet.js +1 -1
  9. package/dist/atomic/components/atomic-citation.js +1 -1
  10. package/dist/atomic/components/atomic-facet-manager.js +1 -1
  11. package/dist/atomic/components/atomic-facet.js +1 -1
  12. package/dist/atomic/components/atomic-format-currency.js +1 -1
  13. package/dist/atomic/components/atomic-format-number.js +1 -1
  14. package/dist/atomic/components/atomic-format-unit.js +1 -1
  15. package/dist/atomic/components/atomic-generated-answer-feedback-modal.js +1 -1
  16. package/dist/atomic/components/atomic-html2.js +1 -1
  17. package/dist/atomic/components/atomic-insight-edit-toggle.js +1 -1
  18. package/dist/atomic/components/atomic-insight-facet.js +1 -1
  19. package/dist/atomic/components/atomic-insight-folded-result-list.js +1 -1
  20. package/dist/atomic/components/atomic-insight-full-search-button.js +1 -1
  21. package/dist/atomic/components/atomic-insight-history-toggle.js +1 -1
  22. package/dist/atomic/components/atomic-insight-interface.js +1 -1
  23. package/dist/atomic/components/atomic-insight-no-results.js +1 -1
  24. package/dist/atomic/components/atomic-insight-numeric-facet.js +1 -1
  25. package/dist/atomic/components/atomic-insight-pager.js +3 -3
  26. package/dist/atomic/components/atomic-insight-query-error.js +1 -1
  27. package/dist/atomic/components/atomic-insight-refine-modal2.js +2 -2
  28. package/dist/atomic/components/atomic-insight-refine-toggle.js +1 -1
  29. package/dist/atomic/components/atomic-insight-result-action.js +1 -1
  30. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +1 -1
  31. package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +1 -1
  32. package/dist/atomic/components/atomic-insight-result-children.js +1 -1
  33. package/dist/atomic/components/atomic-insight-result-list.js +1 -1
  34. package/dist/atomic/components/atomic-insight-result-quickview-action.js +1 -1
  35. package/dist/atomic/components/atomic-insight-result2.js +1 -1
  36. package/dist/atomic/components/atomic-insight-search-box.js +2 -2
  37. package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
  38. package/dist/atomic/components/atomic-insight-tabs.js +1 -1
  39. package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
  40. package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
  41. package/dist/atomic/components/atomic-ipx-body2.js +2 -2
  42. package/dist/atomic/components/atomic-ipx-button.js +2 -2
  43. package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
  44. package/dist/atomic/components/atomic-ipx-modal.js +2 -2
  45. package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
  46. package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
  47. package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
  48. package/dist/atomic/components/atomic-ipx-result-link.js +1 -1
  49. package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
  50. package/dist/atomic/components/atomic-load-more-results.js +1 -1
  51. package/dist/atomic/components/atomic-no-results.js +1 -1
  52. package/dist/atomic/components/atomic-numeric-facet.js +2 -1
  53. package/dist/atomic/components/atomic-numeric-facet.js.map +1 -1
  54. package/dist/atomic/components/atomic-pager.js +3 -3
  55. package/dist/atomic/components/atomic-query-error.js +1 -1
  56. package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
  57. package/dist/atomic/components/atomic-quickview.js +1 -1
  58. package/dist/atomic/components/atomic-recs-error.js +1 -1
  59. package/dist/atomic/components/atomic-recs-interface.js +1 -1
  60. package/dist/atomic/components/atomic-recs-list.js +1 -1
  61. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  62. package/dist/atomic/components/atomic-refine-toggle.js +1 -1
  63. package/dist/atomic/components/atomic-relevance-inspector.js +46 -1
  64. package/dist/atomic/components/atomic-relevance-inspector.js.map +1 -1
  65. package/dist/atomic/components/atomic-result-children.js +1 -1
  66. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  67. package/dist/atomic/components/atomic-result-link.js +1 -1
  68. package/dist/atomic/components/atomic-result-list.js +1 -1
  69. package/dist/atomic/components/atomic-result-placeholder2.js +2 -2
  70. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  71. package/dist/atomic/components/atomic-search-box-instant-results.js +1 -1
  72. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
  73. package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
  74. package/dist/atomic/components/atomic-search-box.js +15 -4
  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/atomic-smart-snippet-collapse-wrapper2.js +2 -2
  78. package/dist/atomic/components/atomic-smart-snippet-expandable-answer2.js +1 -1
  79. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  80. package/dist/atomic/components/atomic-smart-snippet-source2.js +1 -1
  81. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  82. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  83. package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
  84. package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
  85. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  86. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +8 -50
  87. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +10 -25
  88. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +12 -5
  89. package/dist/atomic/components/components/search/atomic-search-interface/analytics-config.js +57 -0
  90. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +495 -0
  91. package/dist/atomic/components/components/search/atomic-search-layout/atomic-search-layout.js +20 -9
  92. package/dist/atomic/components/components/search/index.js +1 -0
  93. package/dist/atomic/components/components/search/lazy-index.js +1 -0
  94. package/dist/atomic/components/facet-number-input.js +2 -2
  95. package/dist/atomic/components/global/environment.js +1 -1
  96. package/dist/atomic/components/index.js.map +1 -1
  97. package/dist/atomic/components/tab-button.js +1 -1
  98. package/dist/atomic/components/tab-popover.js +1 -1
  99. package/dist/atomic/{p-6329ff94.entry.js → p-004adbb8.entry.js} +2 -2
  100. package/dist/atomic/{p-d0f47b33.entry.js → p-00a6ab8c.entry.js} +2 -2
  101. package/dist/atomic/{p-3b20b011.entry.js → p-0610b3e7.entry.js} +2 -2
  102. package/dist/atomic/{p-ee6771f1.entry.js → p-07b6424c.entry.js} +2 -2
  103. package/dist/atomic/{p-83c9244a.entry.js → p-0e27d4f2.entry.js} +2 -2
  104. package/dist/atomic/{p-c126ee6b.entry.js → p-0e5dc57f.entry.js} +2 -2
  105. package/dist/atomic/p-0edea6f9.entry.js +2 -0
  106. package/dist/atomic/{p-20341936.entry.js → p-10b5e0f3.entry.js} +2 -2
  107. package/dist/atomic/{p-2ca352f4.entry.js → p-15406648.entry.js} +2 -2
  108. package/dist/atomic/{p-a3efa89e.entry.js → p-160553ce.entry.js} +2 -2
  109. package/dist/atomic/{p-de066001.entry.js → p-2a4e9425.entry.js} +2 -2
  110. package/dist/atomic/{p-26a51a77.entry.js → p-3213225f.entry.js} +2 -2
  111. package/dist/atomic/{p-330e6e7c.entry.js → p-3af5c567.entry.js} +2 -2
  112. package/dist/atomic/{p-021f01d6.entry.js → p-41c5d5fa.entry.js} +2 -2
  113. package/dist/atomic/{p-e23b3334.entry.js → p-441b1a7b.entry.js} +2 -2
  114. package/dist/atomic/{p-75e00690.entry.js → p-45c4685e.entry.js} +2 -2
  115. package/dist/atomic/{p-7a625c7e.entry.js → p-4915faeb.entry.js} +2 -2
  116. package/dist/atomic/{p-52ba404c.entry.js → p-4c30ca3e.entry.js} +2 -2
  117. package/dist/atomic/{p-aa2a81fd.entry.js → p-4e9d1f9e.entry.js} +2 -2
  118. package/dist/atomic/{p-31f1e44e.entry.js → p-516b8165.entry.js} +2 -2
  119. package/dist/atomic/{p-877d35b1.entry.js → p-5adbf098.entry.js} +2 -2
  120. package/dist/atomic/{p-4b3d253b.entry.js → p-65373475.entry.js} +2 -2
  121. package/dist/atomic/p-6de44060.entry.js +2 -0
  122. package/dist/atomic/{p-fcf3f7d7.entry.js.map → p-6de44060.entry.js.map} +1 -1
  123. package/dist/atomic/{p-b28011e6.entry.js → p-71bb8125.entry.js} +2 -2
  124. package/dist/atomic/{p-c1999888.entry.js → p-754909fe.entry.js} +2 -2
  125. package/dist/atomic/{p-811d6dcb.entry.js → p-780170e5.entry.js} +2 -2
  126. package/dist/atomic/p-79a9a372.entry.js +2 -0
  127. package/dist/atomic/{p-c88a3d2d.entry.js.map → p-79a9a372.entry.js.map} +1 -1
  128. package/dist/atomic/{p-36fab158.entry.js → p-7a6468a7.entry.js} +2 -2
  129. package/dist/atomic/{p-3a2c900c.entry.js → p-7b1a3cab.entry.js} +2 -2
  130. package/dist/atomic/{p-d93adf52.entry.js → p-7d63bf7b.entry.js} +2 -2
  131. package/dist/atomic/{p-d364064c.entry.js → p-7f40e57d.entry.js} +2 -2
  132. package/dist/atomic/{p-d785121d.entry.js → p-856e858c.entry.js} +2 -2
  133. package/dist/atomic/{p-534b6a0a.entry.js → p-87c6c206.entry.js} +2 -2
  134. package/dist/atomic/{p-e162805d.entry.js → p-8a7a23b7.entry.js} +2 -2
  135. package/dist/atomic/{p-78b70622.entry.js → p-8acb1466.entry.js} +2 -2
  136. package/dist/atomic/{p-604c4085.entry.js → p-8df7270f.entry.js} +2 -2
  137. package/dist/atomic/{p-8256cd44.entry.js → p-9147b0db.entry.js} +2 -2
  138. package/dist/atomic/{p-37374964.entry.js → p-9727f36b.entry.js} +2 -2
  139. package/dist/atomic/p-97829295.entry.js +2 -0
  140. package/dist/atomic/{p-31aa052e.entry.js → p-97e42c43.entry.js} +2 -2
  141. package/dist/atomic/{p-93e29b24.entry.js → p-9b92b4e2.entry.js} +2 -2
  142. package/dist/atomic/{p-1ef658d8.entry.js → p-9d023f0b.entry.js} +2 -2
  143. package/dist/atomic/{p-40635c2d.entry.js → p-9e771351.entry.js} +2 -2
  144. package/dist/atomic/{p-7b899b57.entry.js → p-a02b1209.entry.js} +2 -2
  145. package/dist/atomic/{p-035f8dc8.entry.js → p-a3fa6695.entry.js} +2 -2
  146. package/dist/atomic/{p-3ae7d4d8.js → p-a4e4ee49.js} +2 -2
  147. package/dist/atomic/{p-f0c2dfe8.entry.js → p-abb14108.entry.js} +2 -2
  148. package/dist/atomic/{p-48f57fd8.entry.js → p-b0c50194.entry.js} +2 -2
  149. package/dist/atomic/{p-d00a12e9.entry.js → p-b4ad3036.entry.js} +2 -2
  150. package/dist/atomic/{p-b0b17e21.entry.js → p-b4c34553.entry.js} +2 -2
  151. package/dist/atomic/{p-98c5b9b8.entry.js → p-b6377fb6.entry.js} +2 -2
  152. package/dist/atomic/{p-9383d0d3.entry.js → p-bc264e0c.entry.js} +2 -2
  153. package/dist/atomic/{p-ea446721.entry.js → p-bd32625e.entry.js} +2 -2
  154. package/dist/atomic/{p-939eaaac.entry.js → p-bd99fcc1.entry.js} +2 -2
  155. package/dist/atomic/{p-a760d9f9.entry.js → p-be1b98a6.entry.js} +2 -2
  156. package/dist/atomic/{p-99b8d52d.entry.js → p-bf49fed3.entry.js} +2 -2
  157. package/dist/atomic/{p-3f912e98.entry.js → p-c08f4ee6.entry.js} +2 -2
  158. package/dist/atomic/p-c2b4b401.entry.js +2 -0
  159. package/dist/atomic/{p-a53c7821.entry.js → p-c538c8ac.entry.js} +2 -2
  160. package/dist/atomic/{p-43d708cb.entry.js → p-c9fe4f77.entry.js} +2 -2
  161. package/dist/atomic/{p-ae060711.entry.js → p-ce41c447.entry.js} +2 -2
  162. package/dist/atomic/{p-c49cfa0c.entry.js → p-d11b2b24.entry.js} +2 -2
  163. package/dist/atomic/{p-f22bcb8c.entry.js → p-d2d22ab2.entry.js} +2 -2
  164. package/dist/atomic/{p-c6eca514.entry.js → p-d3ede2f6.entry.js} +2 -2
  165. package/dist/atomic/{p-fa8b7c4c.entry.js → p-d4ad7336.entry.js} +2 -2
  166. package/dist/atomic/{p-627e1265.entry.js → p-d50c96c2.entry.js} +2 -2
  167. package/dist/atomic/{p-bc0d6d3d.entry.js → p-dee60597.entry.js} +2 -2
  168. package/dist/atomic/{p-b2ff1330.entry.js → p-e1c99e2e.entry.js} +2 -2
  169. package/dist/atomic/{p-6e6d686e.entry.js → p-e3af1bb4.entry.js} +2 -2
  170. package/dist/atomic/{p-7dfcd6af.entry.js → p-e6a7e7b2.entry.js} +2 -2
  171. package/dist/atomic/{p-3c8d109e.entry.js → p-ef64b06a.entry.js} +2 -2
  172. package/dist/atomic/{p-3c8d109e.entry.js.map → p-ef64b06a.entry.js.map} +1 -1
  173. package/dist/atomic/{p-594488f2.entry.js → p-f0012580.entry.js} +2 -2
  174. package/dist/atomic/{p-7b0b9e9b.entry.js → p-f073a78d.entry.js} +2 -2
  175. package/dist/atomic/{p-fea7bf3b.entry.js → p-f936f55e.entry.js} +2 -2
  176. package/dist/atomic/{p-fbfe913d.entry.js → p-fb1a1e2e.entry.js} +2 -2
  177. package/dist/cjs/_loader.cjs.js +1 -1
  178. package/dist/cjs/{analytics-config-e2beaf7f.js → analytics-config-9f07fe99.js} +2 -2
  179. package/dist/cjs/{analytics-config-e2beaf7f.js.map → analytics-config-9f07fe99.js.map} +1 -1
  180. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  181. package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
  182. package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
  183. package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
  184. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  185. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  186. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  187. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  188. package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js +1 -1
  189. package/dist/cjs/atomic-html.cjs.entry.js +1 -1
  190. package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js +1 -1
  191. package/dist/cjs/atomic-insight-facet.cjs.entry.js +1 -1
  192. package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +1 -1
  193. package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js +1 -1
  194. package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +1 -1
  195. package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
  196. package/dist/cjs/atomic-insight-no-results.cjs.entry.js +1 -1
  197. package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +1 -1
  198. package/dist/cjs/atomic-insight-pager.cjs.entry.js +3 -3
  199. package/dist/cjs/atomic-insight-query-error.cjs.entry.js +1 -1
  200. package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +2 -2
  201. package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js +1 -1
  202. package/dist/cjs/atomic-insight-result-action.cjs.entry.js +1 -1
  203. package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +1 -1
  204. package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +1 -1
  205. package/dist/cjs/atomic-insight-result-children.cjs.entry.js +1 -1
  206. package/dist/cjs/atomic-insight-result-list.cjs.entry.js +1 -1
  207. package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +1 -1
  208. package/dist/cjs/atomic-insight-result.cjs.entry.js +1 -1
  209. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -2
  210. package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  211. package/dist/cjs/atomic-insight-tabs.cjs.entry.js +1 -1
  212. package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -1
  213. package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +1 -1
  214. package/dist/cjs/atomic-ipx-body.cjs.entry.js +2 -2
  215. package/dist/cjs/atomic-ipx-button.cjs.entry.js +2 -2
  216. package/dist/cjs/atomic-ipx-embedded.cjs.entry.js +1 -1
  217. package/dist/cjs/atomic-ipx-modal.cjs.entry.js +2 -2
  218. package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +1 -1
  219. package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +1 -1
  220. package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +1 -1
  221. package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +1 -1
  222. package/dist/cjs/atomic-ipx-tabs.cjs.entry.js +1 -1
  223. package/dist/cjs/atomic-load-more-results.cjs.entry.js +1 -1
  224. package/dist/cjs/atomic-no-results.cjs.entry.js +1 -1
  225. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +2 -1
  226. package/dist/cjs/atomic-numeric-facet.cjs.entry.js.map +1 -1
  227. package/dist/cjs/atomic-pager.cjs.entry.js +3 -3
  228. package/dist/cjs/atomic-query-error.cjs.entry.js +1 -1
  229. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
  230. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  231. package/dist/cjs/atomic-recs-error.cjs.entry.js +1 -1
  232. package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
  233. package/dist/cjs/atomic-recs-list.cjs.entry.js +1 -1
  234. package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
  235. package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
  236. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
  237. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  238. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  239. package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
  240. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  241. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +3 -3
  242. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +1 -1
  243. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
  244. package/dist/cjs/atomic-search-box.cjs.entry.js +15 -4
  245. package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
  246. package/dist/cjs/atomic-smart-snippet-answer_2.cjs.entry.js +2 -2
  247. package/dist/cjs/atomic-smart-snippet-collapse-wrapper_2.cjs.entry.js +3 -3
  248. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  249. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  250. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  251. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +3 -3
  252. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
  253. package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -1
  254. package/dist/cjs/atomic-tab-button.cjs.entry.js +1 -1
  255. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  256. package/dist/cjs/atomic.cjs.js +1 -1
  257. package/dist/cjs/index-757bc886.js +4 -8
  258. package/dist/cjs/version.cjs.js +2 -2
  259. package/dist/esm/_loader.js +1 -1
  260. package/dist/esm/{analytics-config-75896191.js → analytics-config-98033b34.js} +2 -2
  261. package/dist/esm/{analytics-config-75896191.js.map → analytics-config-98033b34.js.map} +1 -1
  262. package/dist/esm/atomic-category-facet.entry.js +1 -1
  263. package/dist/esm/atomic-citation.entry.js +1 -1
  264. package/dist/esm/atomic-facet-manager.entry.js +1 -1
  265. package/dist/esm/atomic-facet-number-input.entry.js +2 -2
  266. package/dist/esm/atomic-facet.entry.js +1 -1
  267. package/dist/esm/atomic-format-currency.entry.js +1 -1
  268. package/dist/esm/atomic-format-number.entry.js +1 -1
  269. package/dist/esm/atomic-format-unit.entry.js +1 -1
  270. package/dist/esm/atomic-generated-answer-feedback-modal.entry.js +1 -1
  271. package/dist/esm/atomic-html.entry.js +1 -1
  272. package/dist/esm/atomic-insight-edit-toggle.entry.js +1 -1
  273. package/dist/esm/atomic-insight-facet.entry.js +1 -1
  274. package/dist/esm/atomic-insight-folded-result-list.entry.js +1 -1
  275. package/dist/esm/atomic-insight-full-search-button.entry.js +1 -1
  276. package/dist/esm/atomic-insight-history-toggle.entry.js +1 -1
  277. package/dist/esm/atomic-insight-interface.entry.js +2 -2
  278. package/dist/esm/atomic-insight-no-results.entry.js +1 -1
  279. package/dist/esm/atomic-insight-numeric-facet.entry.js +1 -1
  280. package/dist/esm/atomic-insight-pager.entry.js +3 -3
  281. package/dist/esm/atomic-insight-query-error.entry.js +1 -1
  282. package/dist/esm/atomic-insight-refine-modal.entry.js +2 -2
  283. package/dist/esm/atomic-insight-refine-toggle.entry.js +1 -1
  284. package/dist/esm/atomic-insight-result-action.entry.js +1 -1
  285. package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +1 -1
  286. package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +1 -1
  287. package/dist/esm/atomic-insight-result-children.entry.js +1 -1
  288. package/dist/esm/atomic-insight-result-list.entry.js +1 -1
  289. package/dist/esm/atomic-insight-result-quickview-action.entry.js +1 -1
  290. package/dist/esm/atomic-insight-result.entry.js +1 -1
  291. package/dist/esm/atomic-insight-search-box.entry.js +2 -2
  292. package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +2 -2
  293. package/dist/esm/atomic-insight-tabs.entry.js +1 -1
  294. package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -1
  295. package/dist/esm/atomic-insight-user-actions-toggle.entry.js +1 -1
  296. package/dist/esm/atomic-ipx-body.entry.js +2 -2
  297. package/dist/esm/atomic-ipx-button.entry.js +2 -2
  298. package/dist/esm/atomic-ipx-embedded.entry.js +1 -1
  299. package/dist/esm/atomic-ipx-modal.entry.js +2 -2
  300. package/dist/esm/atomic-ipx-recs-list.entry.js +1 -1
  301. package/dist/esm/atomic-ipx-refine-modal.entry.js +1 -1
  302. package/dist/esm/atomic-ipx-refine-toggle.entry.js +1 -1
  303. package/dist/esm/atomic-ipx-result-link.entry.js +1 -1
  304. package/dist/esm/atomic-ipx-tabs.entry.js +1 -1
  305. package/dist/esm/atomic-load-more-results.entry.js +1 -1
  306. package/dist/esm/atomic-no-results.entry.js +1 -1
  307. package/dist/esm/atomic-numeric-facet.entry.js +2 -1
  308. package/dist/esm/atomic-numeric-facet.entry.js.map +1 -1
  309. package/dist/esm/atomic-pager.entry.js +3 -3
  310. package/dist/esm/atomic-query-error.entry.js +1 -1
  311. package/dist/esm/atomic-quickview-modal.entry.js +1 -1
  312. package/dist/esm/atomic-quickview.entry.js +1 -1
  313. package/dist/esm/atomic-recs-error.entry.js +1 -1
  314. package/dist/esm/atomic-recs-interface.entry.js +2 -2
  315. package/dist/esm/atomic-recs-list.entry.js +1 -1
  316. package/dist/esm/atomic-refine-modal.entry.js +1 -1
  317. package/dist/esm/atomic-refine-toggle.entry.js +1 -1
  318. package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
  319. package/dist/esm/atomic-result-children.entry.js +1 -1
  320. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  321. package/dist/esm/atomic-result-link.entry.js +1 -1
  322. package/dist/esm/atomic-result-list.entry.js +1 -1
  323. package/dist/esm/atomic-result-placeholder_8.entry.js +3 -3
  324. package/dist/esm/atomic-search-box-instant-results.entry.js +1 -1
  325. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
  326. package/dist/esm/atomic-search-box.entry.js +15 -4
  327. package/dist/esm/atomic-search-box.entry.js.map +1 -1
  328. package/dist/esm/atomic-smart-snippet-answer_2.entry.js +2 -2
  329. package/dist/esm/atomic-smart-snippet-collapse-wrapper_2.entry.js +3 -3
  330. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  331. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  332. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  333. package/dist/esm/atomic-stencil-facet-date-input.entry.js +3 -3
  334. package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
  335. package/dist/esm/atomic-tab-bar_2.entry.js +1 -1
  336. package/dist/esm/atomic-tab-button.entry.js +1 -1
  337. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  338. package/dist/esm/atomic.js +1 -1
  339. package/dist/esm/index-3f35faca.js +4 -8
  340. package/dist/esm/version.js +2 -2
  341. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +2 -30
  342. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +0 -1
  343. package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +1 -0
  344. package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -0
  345. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +46 -44
  346. package/dist/types/components/search/atomic-search-interface/interfaces.d.ts +2 -1
  347. package/dist/types/components/search/atomic-search-layout/atomic-search-layout.d.ts +3 -1
  348. package/dist/types/components/search/index.d.ts +1 -0
  349. package/dist/types/components.d.ts +2 -165
  350. package/docs/atomic-docs.json +12 -575
  351. package/package.json +4 -4
  352. package/dist/atomic/components/atomic-relevance-inspector2.js +0 -50
  353. package/dist/atomic/components/atomic-relevance-inspector2.js.map +0 -1
  354. package/dist/atomic/components/atomic-search-interface.d.ts +0 -11
  355. package/dist/atomic/components/atomic-search-interface.js +0 -552
  356. package/dist/atomic/components/atomic-search-interface.js.map +0 -1
  357. package/dist/atomic/p-1992b245.entry.js +0 -2
  358. package/dist/atomic/p-9d6d0631.entry.js +0 -2
  359. package/dist/atomic/p-9d6d0631.entry.js.map +0 -1
  360. package/dist/atomic/p-c88a3d2d.entry.js +0 -2
  361. package/dist/atomic/p-d24d34a7.entry.js +0 -2
  362. package/dist/atomic/p-e2afb475.entry.js +0 -2
  363. package/dist/atomic/p-fcf3f7d7.entry.js +0 -2
  364. package/dist/cjs/atomic-search-interface.cjs.entry.js +0 -511
  365. package/dist/cjs/atomic-search-interface.cjs.entry.js.map +0 -1
  366. package/dist/esm/atomic-search-interface.entry.js +0 -507
  367. package/dist/esm/atomic-search-interface.entry.js.map +0 -1
  368. /package/dist/atomic/{p-6329ff94.entry.js.map → p-004adbb8.entry.js.map} +0 -0
  369. /package/dist/atomic/{p-d0f47b33.entry.js.map → p-00a6ab8c.entry.js.map} +0 -0
  370. /package/dist/atomic/{p-3b20b011.entry.js.map → p-0610b3e7.entry.js.map} +0 -0
  371. /package/dist/atomic/{p-ee6771f1.entry.js.map → p-07b6424c.entry.js.map} +0 -0
  372. /package/dist/atomic/{p-83c9244a.entry.js.map → p-0e27d4f2.entry.js.map} +0 -0
  373. /package/dist/atomic/{p-c126ee6b.entry.js.map → p-0e5dc57f.entry.js.map} +0 -0
  374. /package/dist/atomic/{p-1992b245.entry.js.map → p-0edea6f9.entry.js.map} +0 -0
  375. /package/dist/atomic/{p-20341936.entry.js.map → p-10b5e0f3.entry.js.map} +0 -0
  376. /package/dist/atomic/{p-2ca352f4.entry.js.map → p-15406648.entry.js.map} +0 -0
  377. /package/dist/atomic/{p-a3efa89e.entry.js.map → p-160553ce.entry.js.map} +0 -0
  378. /package/dist/atomic/{p-de066001.entry.js.map → p-2a4e9425.entry.js.map} +0 -0
  379. /package/dist/atomic/{p-26a51a77.entry.js.map → p-3213225f.entry.js.map} +0 -0
  380. /package/dist/atomic/{p-330e6e7c.entry.js.map → p-3af5c567.entry.js.map} +0 -0
  381. /package/dist/atomic/{p-021f01d6.entry.js.map → p-41c5d5fa.entry.js.map} +0 -0
  382. /package/dist/atomic/{p-e23b3334.entry.js.map → p-441b1a7b.entry.js.map} +0 -0
  383. /package/dist/atomic/{p-75e00690.entry.js.map → p-45c4685e.entry.js.map} +0 -0
  384. /package/dist/atomic/{p-7a625c7e.entry.js.map → p-4915faeb.entry.js.map} +0 -0
  385. /package/dist/atomic/{p-52ba404c.entry.js.map → p-4c30ca3e.entry.js.map} +0 -0
  386. /package/dist/atomic/{p-aa2a81fd.entry.js.map → p-4e9d1f9e.entry.js.map} +0 -0
  387. /package/dist/atomic/{p-31f1e44e.entry.js.map → p-516b8165.entry.js.map} +0 -0
  388. /package/dist/atomic/{p-877d35b1.entry.js.map → p-5adbf098.entry.js.map} +0 -0
  389. /package/dist/atomic/{p-4b3d253b.entry.js.map → p-65373475.entry.js.map} +0 -0
  390. /package/dist/atomic/{p-b28011e6.entry.js.map → p-71bb8125.entry.js.map} +0 -0
  391. /package/dist/atomic/{p-c1999888.entry.js.map → p-754909fe.entry.js.map} +0 -0
  392. /package/dist/atomic/{p-811d6dcb.entry.js.map → p-780170e5.entry.js.map} +0 -0
  393. /package/dist/atomic/{p-36fab158.entry.js.map → p-7a6468a7.entry.js.map} +0 -0
  394. /package/dist/atomic/{p-3a2c900c.entry.js.map → p-7b1a3cab.entry.js.map} +0 -0
  395. /package/dist/atomic/{p-d93adf52.entry.js.map → p-7d63bf7b.entry.js.map} +0 -0
  396. /package/dist/atomic/{p-d364064c.entry.js.map → p-7f40e57d.entry.js.map} +0 -0
  397. /package/dist/atomic/{p-d785121d.entry.js.map → p-856e858c.entry.js.map} +0 -0
  398. /package/dist/atomic/{p-534b6a0a.entry.js.map → p-87c6c206.entry.js.map} +0 -0
  399. /package/dist/atomic/{p-e162805d.entry.js.map → p-8a7a23b7.entry.js.map} +0 -0
  400. /package/dist/atomic/{p-78b70622.entry.js.map → p-8acb1466.entry.js.map} +0 -0
  401. /package/dist/atomic/{p-604c4085.entry.js.map → p-8df7270f.entry.js.map} +0 -0
  402. /package/dist/atomic/{p-8256cd44.entry.js.map → p-9147b0db.entry.js.map} +0 -0
  403. /package/dist/atomic/{p-37374964.entry.js.map → p-9727f36b.entry.js.map} +0 -0
  404. /package/dist/atomic/{p-d24d34a7.entry.js.map → p-97829295.entry.js.map} +0 -0
  405. /package/dist/atomic/{p-31aa052e.entry.js.map → p-97e42c43.entry.js.map} +0 -0
  406. /package/dist/atomic/{p-93e29b24.entry.js.map → p-9b92b4e2.entry.js.map} +0 -0
  407. /package/dist/atomic/{p-1ef658d8.entry.js.map → p-9d023f0b.entry.js.map} +0 -0
  408. /package/dist/atomic/{p-40635c2d.entry.js.map → p-9e771351.entry.js.map} +0 -0
  409. /package/dist/atomic/{p-7b899b57.entry.js.map → p-a02b1209.entry.js.map} +0 -0
  410. /package/dist/atomic/{p-035f8dc8.entry.js.map → p-a3fa6695.entry.js.map} +0 -0
  411. /package/dist/atomic/{p-3ae7d4d8.js.map → p-a4e4ee49.js.map} +0 -0
  412. /package/dist/atomic/{p-f0c2dfe8.entry.js.map → p-abb14108.entry.js.map} +0 -0
  413. /package/dist/atomic/{p-48f57fd8.entry.js.map → p-b0c50194.entry.js.map} +0 -0
  414. /package/dist/atomic/{p-d00a12e9.entry.js.map → p-b4ad3036.entry.js.map} +0 -0
  415. /package/dist/atomic/{p-b0b17e21.entry.js.map → p-b4c34553.entry.js.map} +0 -0
  416. /package/dist/atomic/{p-98c5b9b8.entry.js.map → p-b6377fb6.entry.js.map} +0 -0
  417. /package/dist/atomic/{p-9383d0d3.entry.js.map → p-bc264e0c.entry.js.map} +0 -0
  418. /package/dist/atomic/{p-ea446721.entry.js.map → p-bd32625e.entry.js.map} +0 -0
  419. /package/dist/atomic/{p-939eaaac.entry.js.map → p-bd99fcc1.entry.js.map} +0 -0
  420. /package/dist/atomic/{p-a760d9f9.entry.js.map → p-be1b98a6.entry.js.map} +0 -0
  421. /package/dist/atomic/{p-99b8d52d.entry.js.map → p-bf49fed3.entry.js.map} +0 -0
  422. /package/dist/atomic/{p-3f912e98.entry.js.map → p-c08f4ee6.entry.js.map} +0 -0
  423. /package/dist/atomic/{p-e2afb475.entry.js.map → p-c2b4b401.entry.js.map} +0 -0
  424. /package/dist/atomic/{p-a53c7821.entry.js.map → p-c538c8ac.entry.js.map} +0 -0
  425. /package/dist/atomic/{p-43d708cb.entry.js.map → p-c9fe4f77.entry.js.map} +0 -0
  426. /package/dist/atomic/{p-ae060711.entry.js.map → p-ce41c447.entry.js.map} +0 -0
  427. /package/dist/atomic/{p-c49cfa0c.entry.js.map → p-d11b2b24.entry.js.map} +0 -0
  428. /package/dist/atomic/{p-f22bcb8c.entry.js.map → p-d2d22ab2.entry.js.map} +0 -0
  429. /package/dist/atomic/{p-c6eca514.entry.js.map → p-d3ede2f6.entry.js.map} +0 -0
  430. /package/dist/atomic/{p-fa8b7c4c.entry.js.map → p-d4ad7336.entry.js.map} +0 -0
  431. /package/dist/atomic/{p-627e1265.entry.js.map → p-d50c96c2.entry.js.map} +0 -0
  432. /package/dist/atomic/{p-bc0d6d3d.entry.js.map → p-dee60597.entry.js.map} +0 -0
  433. /package/dist/atomic/{p-b2ff1330.entry.js.map → p-e1c99e2e.entry.js.map} +0 -0
  434. /package/dist/atomic/{p-6e6d686e.entry.js.map → p-e3af1bb4.entry.js.map} +0 -0
  435. /package/dist/atomic/{p-7dfcd6af.entry.js.map → p-e6a7e7b2.entry.js.map} +0 -0
  436. /package/dist/atomic/{p-594488f2.entry.js.map → p-f0012580.entry.js.map} +0 -0
  437. /package/dist/atomic/{p-7b0b9e9b.entry.js.map → p-f073a78d.entry.js.map} +0 -0
  438. /package/dist/atomic/{p-fea7bf3b.entry.js.map → p-f936f55e.entry.js.map} +0 -0
  439. /package/dist/atomic/{p-fbfe913d.entry.js.map → p-fb1a1e2e.entry.js.map} +0 -0
@@ -56,11 +56,11 @@ const AtomicSmartSnippetCollapseWrapper = /*@__PURE__*/ proxyCustomElement(class
56
56
  return (h("button", { onClick: () => (this.isExpanded = !this.isExpanded), class: "text-primary mb-4 hover:underline", part: this.isExpanded ? 'show-less-button' : 'show-more-button' }, this.bindings.i18n.t(this.isExpanded ? 'show-less' : 'show-more'), h("atomic-icon", { icon: ArrowDown, class: "ml-2 w-3 align-baseline" })));
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: 'e7e07c36fcb394b85cca875ba778ed0040cd34c6', class: this.fullHeight || !this.shouldRenderButton
59
+ return (h(Host, { key: 'f54077986855f352d54274719926b720d67666f4', class: this.fullHeight || !this.shouldRenderButton
60
60
  ? this.isExpanded
61
61
  ? 'expanded'
62
62
  : ''
63
- : 'invisible' }, h("div", { key: 'b91217dc798f3bad5041f6518ee4de6338dd77cf', part: "smart-snippet-collapse-wrapper", class: "block overflow-hidden" }, h("slot", { key: 'fe7073c94e352af68dafd1141d7c55ac3cf9a0ab' })), this.shouldRenderButton && this.renderButton()));
63
+ : 'invisible' }, h("div", { key: '50da7008c14259a00157127af608164375ac6fee', part: "smart-snippet-collapse-wrapper", class: "block overflow-hidden" }, h("slot", { key: 'c6e9c1299180b61315c6727ff44f594b55d73843' })), this.shouldRenderButton && this.renderButton()));
64
64
  }
65
65
  get host() { return this; }
66
66
  static get style() { return AtomicSmartSnippetCollapseWrapperStyle0; }
@@ -87,7 +87,7 @@ const AtomicSmartSnippetExpandableAnswer = /*@__PURE__*/ proxyCustomElement(clas
87
87
  return (h("button", { onClick: () => this.isExpanded ? this.collapse.emit() : this.expand.emit(), class: "text-primary mb-4 hover:underline", part: this.isExpanded ? 'show-less-button' : 'show-more-button' }, this.bindings.i18n.t(this.isExpanded ? 'show-less' : 'show-more'), h("atomic-icon", { icon: ArrowDown, class: "ml-2 w-3 align-baseline" })));
88
88
  }
89
89
  render() {
90
- return (h("div", { key: '429c0365f32c8bec74fb304441ac201c2968d32b', class: this.isExpanded ? 'expanded' : '' }, this.renderAnswer(), this.renderButton()));
90
+ return (h("div", { key: '19443f9310f0a6705f7f55eb74f7383ae7ff98bf', class: this.isExpanded ? 'expanded' : '' }, this.renderAnswer(), this.renderButton()));
91
91
  }
92
92
  get host() { return this; }
93
93
  static get watchers() { return {
@@ -43,9 +43,9 @@ const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ proxyCustomElement(class A
43
43
  }
44
44
  render() {
45
45
  updateBreakpoints(this.host);
46
- return (h("atomic-modal", { key: 'e859100c1a2aa70056f471123e6363953a8c978f', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '6f154e3e306f5fe14e724a7cc1124581c4ad50db', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: '0c7aa2809a41f9725324d19d93a121e30995c322', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: '7ea41f9ade73d9e28909ea5eb4d29fa277d6b762', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
46
+ return (h("atomic-modal", { key: '9915bc71b6329068bc8a3731971a793946762f39', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '385350607264cd3a0dce273b18eec02909220384', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: 'e1a01e0df35dbaf9da6891c825ad5e5e1e6bc534', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: 'd92a6395c26802cfafbcbd50fb1b2cd86bb907de', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
47
47
  this.currentAnswer = correspondingAnswer;
48
- } })))), h(SmartSnippetFeedbackModalDetails, { key: 'bb2bcce38f8b554e24df782edfc3bbfd2b997588', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: '2803172d081d52cda72b8c22b2a3b206d3b7cb23', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
48
+ } })))), h(SmartSnippetFeedbackModalDetails, { key: '6dfe87c931bc44d202d78c5a800936aa733b89de', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: '86f51c71ade3a7e360ce5c000e45939e8744ade4', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
49
49
  }
50
50
  close() {
51
51
  this.isOpen = false;
@@ -33,7 +33,7 @@ const AtomicSmartSnippetSource = /*@__PURE__*/ proxyCustomElement(class AtomicSm
33
33
  }
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: '59e4530510fba9cd6a01049619dac8ed298d2ad0' }, h(LinkWithItemAnalytics, { key: '543fe4d96b6653157f1e62e069b45b0b25d586f7', title: this.source.clickUri, href: this.source.clickUri, className: "block truncate", part: "source-url", attributes: this.anchorAttributes, onSelect: () => this.selectSource.emit(), onBeginDelayedSelect: () => this.beginDelayedSelectSource.emit(), onCancelPendingSelect: () => this.cancelPendingSelectSource.emit() }, this.source.clickUri), h(LinkWithItemAnalytics, { key: 'd306acd763bc7e5540196848317a365aed1fa3d8', title: this.source.title, href: this.source.clickUri, attributes: this.anchorAttributes, className: "block", part: "source-title", onSelect: () => this.selectSource.emit(), onBeginDelayedSelect: () => this.beginDelayedSelectSource.emit(), onCancelPendingSelect: () => this.cancelPendingSelectSource.emit() }, h("atomic-result-text", { field: "title", default: "no-title", key: this.source.uniqueId }))));
36
+ return (h(Host, { key: '01141ee8feb5120848bdd8932943a34c4cc39314' }, h(LinkWithItemAnalytics, { key: '824f2a0b8166ff4f785c2c03e68e4a8e57f96df8', title: this.source.clickUri, href: this.source.clickUri, className: "block truncate", part: "source-url", attributes: this.anchorAttributes, onSelect: () => this.selectSource.emit(), onBeginDelayedSelect: () => this.beginDelayedSelectSource.emit(), onCancelPendingSelect: () => this.cancelPendingSelectSource.emit() }, this.source.clickUri), h(LinkWithItemAnalytics, { key: '509f68c6ccc999f50522cfc7c24e6ee90e0974f2', title: this.source.title, href: this.source.clickUri, attributes: this.anchorAttributes, className: "block", part: "source-title", onSelect: () => this.selectSource.emit(), onBeginDelayedSelect: () => this.beginDelayedSelectSource.emit(), onCancelPendingSelect: () => this.cancelPendingSelectSource.emit() }, h("atomic-result-text", { field: "title", default: "no-title", key: this.source.uniqueId }))));
37
37
  }
38
38
  }, [0, "atomic-smart-snippet-source", {
39
39
  "source": [1040],
@@ -117,8 +117,8 @@ const AtomicSortDropdown$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSortDr
117
117
  const { hasError, hasResults, firstSearchExecuted } = this.searchStatusState;
118
118
  const { bindings: { i18n }, id, } = this;
119
119
  return [
120
- h(SortGuard, { key: 'de3cefc2f8ba7dacb299dd569ca97d4d93a54249', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '5a7296ed5a7f379509399ef260a344210c17ff34' }, h(SortLabel, { key: '1448eb9996a0b6a2df55f9ce880cd54c3312640d', i18n: i18n, id: id }), h(SortSelect, { key: '273f27873cfb73092eb7d98ef742536f3bb5fac5', i18n: i18n, id: id, onSelect: (evt) => this.select(evt) }, this.options.map(({ label, criteria, expression }) => (h(SortOption, { i18n: i18n, label: label, selected: this.sort.isSortedBy(criteria), value: expression })))))),
121
- h("slot", { key: 'd1058cd5f4e28bca8816e6987ec2f3a72b2d4825' }),
120
+ h(SortGuard, { key: '0669c3a8c7067eef9ba5c178a5f4d12752f8b085', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '6eb9cc11bb18013dfd384b809e6e72d2177cbe60' }, h(SortLabel, { key: '4573530fcd7c614b7ed1d3dbb8f4ad5617477ee3', i18n: i18n, id: id }), h(SortSelect, { key: 'a5ee4b55058679c63fb628337c33d1db192cf481', i18n: i18n, id: id, onSelect: (evt) => this.select(evt) }, this.options.map(({ label, criteria, expression }) => (h(SortOption, { i18n: i18n, label: label, selected: this.sort.isSortedBy(criteria), value: expression })))))),
121
+ h("slot", { key: '39a0d6e53adfe877b5f677d4cf9b0ff9177f84e8' }),
122
122
  ];
123
123
  }
124
124
  get host() { return this; }
@@ -47,7 +47,7 @@ const AtomicSortExpression$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSort
47
47
  const dropdownComponent = 'atomic-sort-dropdown';
48
48
  if (!this.host.closest(dropdownComponent)) {
49
49
  const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
50
- return (h("atomic-component-error", { key: 'c0181fed2562ac8d51cba8d9a2395ab3fc431295', element: this.host, error: error }));
50
+ return (h("atomic-component-error", { key: '4e946fe770ef49fc6346f0bc247db856fd38ba68', element: this.host, error: error }));
51
51
  }
52
52
  }
53
53
  get host() { return this; }
@@ -66,13 +66,13 @@ const FacetDateInput = /*@__PURE__*/ proxyCustomElement(class FacetDateInput ext
66
66
  // Fallback for Safari < 14.1, date with format yyyy-mm-dd over 1400 (API limit)
67
67
  const pattern = '^(1[4-9]\\d{2}|2\\d{3})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$';
68
68
  const range = this.rangeGetter();
69
- return (h("form", { key: 'a9115a4868e39afbdb588fa0f3454d02308e36f5', class: "mt-4 grid grid-cols-[min-content_1fr] gap-2 px-2", onSubmit: (e) => {
69
+ return (h("form", { key: '60acc60ec8b30e3eaa4d0e2e1426732925ff352c', class: "mt-4 grid grid-cols-[min-content_1fr] gap-2 px-2", onSubmit: (e) => {
70
70
  e.preventDefault();
71
71
  this.apply();
72
72
  return false;
73
- } }, h("label", { key: '4d3bcb4549ba5cd003d5284831001830e3ac272f', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_start` }, startLabel, ":"), h("input", { key: '98cc6ca7a7a9a33f777998806259d3a9fa495bb1', id: `${this.facetId}_start`, part: "input-start", type: "date", ref: (ref) => (this.startRef = ref), class: inputClasses, "aria-label": startAria, placeholder: placeholder, pattern: pattern, required: true,
73
+ } }, h("label", { key: 'a43bd6b7f3ae352a7592e9de3390e5b8e180cb29', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_start` }, startLabel, ":"), h("input", { key: '7908bdd17fb8d035d2b75ab02417b13cd1516bd2', id: `${this.facetId}_start`, part: "input-start", type: "date", ref: (ref) => (this.startRef = ref), class: inputClasses, "aria-label": startAria, placeholder: placeholder, pattern: pattern, required: true,
74
74
  // API/Index minimum supported date
75
- min: this.min || this.formattedDateValue('1401-01-01'), max: this.end ? this.formattedDateValue(this.end) : this.max, value: this.formattedDateValue(range?.start), onInput: (e) => (this.start = parseDate(e.target.value).toDate()) }), h("label", { key: 'fee1acc37402670ca45818b9a5da6062ed0b4218', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_end` }, endLabel, ":"), h("input", { key: 'cc3dd617c4d0fb7f8dbb2573bdcc30762aded812', id: `${this.facetId}_end`, part: "input-end", type: "date", ref: (ref) => (this.endRef = ref), class: inputClasses, "aria-label": endAria, placeholder: placeholder, pattern: pattern, required: true, min: this.formattedDateValue(this.start) || this.min, max: this.max, value: this.formattedDateValue(range?.end), onInput: (e) => (this.end = parseDate(e.target.value).toDate()) }), h(Button, { key: 'd5e7426fc8fa1594c533a96f96faa07fce2e2d95', style: "outline-primary", type: "submit", part: "input-apply-button", class: "col-span-2 truncate p-2.5", ariaLabel: applyAria, text: apply })));
75
+ min: this.min || this.formattedDateValue('1401-01-01'), max: this.end ? this.formattedDateValue(this.end) : this.max, value: this.formattedDateValue(range?.start), onInput: (e) => (this.start = parseDate(e.target.value).toDate()) }), h("label", { key: 'd5d35be72e99ae7488fae004a61682d597ab7d7f', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_end` }, endLabel, ":"), h("input", { key: 'b6b30c327c78cecef22c0b6eeec8cbf29b1d711a', id: `${this.facetId}_end`, part: "input-end", type: "date", ref: (ref) => (this.endRef = ref), class: inputClasses, "aria-label": endAria, placeholder: placeholder, pattern: pattern, required: true, min: this.formattedDateValue(this.start) || this.min, max: this.max, value: this.formattedDateValue(range?.end), onInput: (e) => (this.end = parseDate(e.target.value).toDate()) }), h(Button, { key: 'd0b34163e43a90cf982155bf7eeb315212c9e1d2', style: "outline-primary", type: "submit", part: "input-apply-button", class: "col-span-2 truncate p-2.5", ariaLabel: applyAria, text: apply })));
76
76
  }
77
77
  }, [0, "atomic-stencil-facet-date-input", {
78
78
  "bindings": [16],
@@ -80,7 +80,7 @@ const AtomicSuggestionRenderer = /*@__PURE__*/ proxyCustomElement(class AtomicSu
80
80
  }
81
81
  render() {
82
82
  const isButton = !!(this.suggestion.onSelect || this.suggestion.query);
83
- return (h(Host, { key: 'a9f2b556d76e7ff77bcf7e6288191b14ce33fd21', class: "contents" }, isButton ? (h("button", { id: this.id, key: this.suggestion.key, part: this.parts, class: this.classes, onMouseDown: (e) => e.preventDefault(), onClick: (e) => this.onClick?.(e), onMouseOver: (e) => this.onMouseOver?.(e), "data-query": this.suggestion.query, "aria-label": this.ariaLabel(isButton), ref: (el) => {
83
+ return (h(Host, { key: 'c332ae13efeac08cbbad4bdb4d86f15f3400ea60', class: "contents" }, isButton ? (h("button", { id: this.id, key: this.suggestion.key, part: this.parts, class: this.classes, onMouseDown: (e) => e.preventDefault(), onClick: (e) => this.onClick?.(e), onMouseOver: (e) => this.onMouseOver?.(e), "data-query": this.suggestion.query, "aria-label": this.ariaLabel(isButton), ref: (el) => {
84
84
  if (!el) {
85
85
  return;
86
86
  }
@@ -59,7 +59,7 @@ const AtomicTabManager$1 = /*@__PURE__*/ proxyCustomElement(class AtomicTabManag
59
59
  });
60
60
  }
61
61
  render() {
62
- return (h(Host, { key: 'abd272be633c8913b9c64f3b20d529373e7ca08c' }, h("atomic-tab-bar", { key: 'd21406c4e28a1a4fecd2986d97aa292f0cfd48a9' }, h("div", { key: '6a0375f62e5a178cec1737108984ac1e497370bd', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
62
+ return (h(Host, { key: 'ea60f4179a268319ba97570f95d6881c379c8b18' }, h("atomic-tab-bar", { key: 'ea83347d794b2f83b70706bdfc4240286c27d71e' }, h("div", { key: '9d9e588d7a4b7012f43419f3edae786b177498cc', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
63
63
  defaultValue: tab.label,
64
64
  }), select: () => {
65
65
  if (!tab.tabController.state.isActive) {
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { buildCommerceEngine, buildContext, buildProductListing, buildSearch, VERSION as HEADLESS_VERSION, loadConfigurationActions, loadContextActions, loadQueryActions, } from '@coveo/headless/commerce';
7
+ import { buildCommerceEngine, buildContext, buildProductListing, buildSearch, VERSION as HEADLESS_VERSION, loadConfigurationActions, loadQueryActions, } from '@coveo/headless/commerce';
8
8
  import { provide } from '@lit/context';
9
9
  import i18next from 'i18next';
10
10
  import { css, html, LitElement } from 'lit';
@@ -58,7 +58,7 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
58
58
  */
59
59
  this.reflectStateInUrl = true;
60
60
  /**
61
- * Disable state reflection in the URL parameters.
61
+ * Whether to disable state reflection in the URL parameters.
62
62
  */
63
63
  this.disableStateReflectionInUrl = false;
64
64
  /**
@@ -144,41 +144,6 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
144
144
  this.searchOrListing.executeFirstRequest();
145
145
  }
146
146
  }
147
- /**
148
- * Updates the locale settings for the commerce interface and headless commerce
149
- * engine. Only the provided parameters will be updated.
150
- *
151
- * Calling this method affects the localization of the interface as well as
152
- * the catalog configuration being used by the Commerce API. If the resulting
153
- * language-country-currency combination matches no existing catalog
154
- * configuration in your Coveo organization, requests made through the
155
- * commerce engine will start failing.
156
- *
157
- * @param language - (Optional) The IETF language code tag (e.g., `en`).
158
- * @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
159
- * @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
160
- *
161
- * @example
162
- * ```typescript
163
- * interface.updateLocale('fr', 'CA', 'CAD');
164
- * ```
165
- */
166
- updateLocale(language, country, currency) {
167
- if (!this.interfaceController.engineIsCreated(this.engine) ||
168
- !this.context) {
169
- return;
170
- }
171
- language && this.interfaceController.onLanguageChange(language);
172
- if (this.isNewLocale(language, country, currency)) {
173
- const { setContext } = loadContextActions(this.engine);
174
- this.engine.dispatch(setContext({
175
- ...this.context.state,
176
- ...(language && { language }),
177
- ...(country && { country }),
178
- ...(currency && { currency }),
179
- }));
180
- }
181
- }
182
147
  toggleAnalytics() {
183
148
  this.interfaceController.onAnalyticsChange();
184
149
  }
@@ -192,10 +157,11 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
192
157
  !this.context) {
193
158
  return;
194
159
  }
195
- this.engine.logger.warn('The `language` property will be removed in the next major version of Atomic (v4). Rather than using this property, set the initial language through the engine configuration when calling `initialize` or `initializeWithEngine`, and update the language as needed using the `updateLocale` method.');
160
+ // TODO - KIT-4993: Add temporary deprecation warning.
196
161
  this.context.setLanguage(this.language);
197
162
  return this.interfaceController.onLanguageChange();
198
163
  }
164
+ // TODO - KIT-4993: Add updateLocale public method.
199
165
  disconnectedCallback() {
200
166
  super.disconnectedCallback();
201
167
  if (typeof this.unsubscribeUrlManager === 'function') {
@@ -245,11 +211,11 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
245
211
  throw error;
246
212
  }
247
213
  }
214
+ // TODO - KIT-4993: Adjust.
248
215
  initLanguage() {
249
- if (!this.context || this.language) {
250
- return;
216
+ if (!this.language) {
217
+ this.language = this.context.state.language;
251
218
  }
252
- this.interfaceController.onLanguageChange(this.context.state.language);
253
219
  }
254
220
  initRequestStatus() {
255
221
  this.searchOrListing =
@@ -291,7 +257,7 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
291
257
  this.i18Initialized,
292
258
  ]);
293
259
  this.initContext();
294
- this.updateLanguage(); // TODO - (v4) KIT-4365: Remove.
260
+ this.updateLanguage();
295
261
  this.bindings = this.getBindings();
296
262
  markParentAsReady(this);
297
263
  this.initRequestStatus();
@@ -301,14 +267,6 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
301
267
  this.initUrlManager();
302
268
  this.initialized = true;
303
269
  }
304
- isNewLocale(language, country, currency) {
305
- if (!this.context) {
306
- return false;
307
- }
308
- return ((language && language !== this.context.state.language) ||
309
- (country && country !== this.context.state.country) ||
310
- (currency && currency !== this.context.state.currency));
311
- }
312
270
  // TODO - (v4) KIT-4991: Make private.
313
271
  scrollToTop() {
314
272
  const scrollContainerElement = document.querySelector(this.scrollContainer);
@@ -50,9 +50,6 @@ let AtomicCommerceRecommendationInterface = class AtomicCommerceRecommendationIn
50
50
  *
51
51
  */
52
52
  this.iconAssetsPath = './assets';
53
- // TODO - KIT-4994: Add disableAnalytics property that defaults to false.
54
- // TODO - KIT-4994: Deprecate in favor of disableAnalytics property.
55
- // TODO - (v4) KIT-4990: Remove.
56
53
  /**
57
54
  * Whether to enable analytics.
58
55
  */
@@ -107,15 +104,13 @@ let AtomicCommerceRecommendationInterface = class AtomicCommerceRecommendationIn
107
104
  return;
108
105
  }
109
106
  language && this.interfaceController.onLanguageChange(language);
110
- if (this.isNewLocale(language, country, currency)) {
111
- const { setContext } = loadContextActions(this.engine);
112
- this.engine.dispatch(setContext({
113
- ...this.context.state,
114
- ...(language && { language }),
115
- ...(country && { country }),
116
- ...(currency && { currency }),
117
- }));
118
- }
107
+ const { setContext } = loadContextActions(this.engine);
108
+ this.engine.dispatch(setContext({
109
+ ...this.context.state,
110
+ ...(language && { language }),
111
+ ...(country && { country }),
112
+ ...(currency && { currency }),
113
+ }));
119
114
  }
120
115
  toggleAnalytics() {
121
116
  this.interfaceController.onAnalyticsChange();
@@ -123,7 +118,6 @@ let AtomicCommerceRecommendationInterface = class AtomicCommerceRecommendationIn
123
118
  updateIconAssetsPath() {
124
119
  this.store.state.iconAssetsPath = this.iconAssetsPath;
125
120
  }
126
- // TODO - (v4) KIT-4365: Remove.
127
121
  async updateLanguage() {
128
122
  if (!this.interfaceController.engineIsCreated(this.engine) ||
129
123
  !this.language ||
@@ -156,7 +150,7 @@ let AtomicCommerceRecommendationInterface = class AtomicCommerceRecommendationIn
156
150
  this.i18Initialized,
157
151
  ]);
158
152
  this.initContext();
159
- this.updateLanguage();
153
+ this.language && this.updateLanguage();
160
154
  this.bindings = this.getBindings();
161
155
  markParentAsReady(this);
162
156
  this.initLanguage();
@@ -173,18 +167,9 @@ let AtomicCommerceRecommendationInterface = class AtomicCommerceRecommendationIn
173
167
  };
174
168
  }
175
169
  initLanguage() {
176
- if (!this.context || this.language) {
177
- return;
178
- }
179
- this.interfaceController.onLanguageChange(this.context.state.language);
180
- }
181
- isNewLocale(language, country, currency) {
182
- if (!this.context) {
183
- return false;
170
+ if (!this.language) {
171
+ this.interfaceController.onLanguageChange(this.context.state.language);
184
172
  }
185
- return ((language && language !== this.context.state.language) ||
186
- (country && country !== this.context.state.country) ||
187
- (currency && currency !== this.context.state.currency));
188
173
  }
189
174
  };
190
175
  AtomicCommerceRecommendationInterface.styles = [
@@ -20,6 +20,7 @@ import { AriaLiveRegionController } from "../../../utils/accessibility-utils";
20
20
  import { hasKeyboard, isMacOS } from "../../../utils/device-utils";
21
21
  import { SafeStorage, StorageItems, } from "../../../utils/local-storage-utils";
22
22
  import { updateBreakpoints } from "../../../utils/replace-breakpoint-utils";
23
+ import { getDefaultSlotFromHost } from "../../../utils/slot-utils";
23
24
  import { isFocusingOut, once, randomID, spreadProperties, } from '../../../utils/utils';
24
25
  import { renderSearchBoxWrapper } from '../../common/search-box/search-box-wrapper';
25
26
  import { renderSearchBoxTextArea } from '../../common/search-box/search-text-area';
@@ -123,9 +124,6 @@ let AtomicCommerceSearchBox = class AtomicCommerceSearchBox extends LitElement {
123
124
  }
124
125
  connectedCallback() {
125
126
  super.connectedCallback();
126
- if (this.children.length === 0) {
127
- this.replaceChildren(document.createElement('atomic-commerce-search-box-recent-queries'), document.createElement('atomic-commerce-search-box-query-suggestions'));
128
- }
129
127
  this.addEventListener('atomic/searchBoxSuggestion/register', (event) => {
130
128
  const customEvent = event;
131
129
  this.searchBoxSuggestionEventsQueue.push(customEvent);
@@ -492,6 +490,14 @@ let AtomicCommerceSearchBox = class AtomicCommerceSearchBox extends LitElement {
492
490
  ></atomic-suggestion-renderer>
493
491
  `;
494
492
  }
493
+ renderSlotContent() {
494
+ const hasDefaultSlot = !!getDefaultSlotFromHost(this);
495
+ if (hasDefaultSlot) {
496
+ return html `<slot></slot>`;
497
+ }
498
+ return html `<atomic-commerce-search-box-recent-queries></atomic-commerce-search-box-recent-queries>
499
+ <atomic-commerce-search-box-query-suggestions></atomic-commerce-search-box-query-suggestions>`;
500
+ }
495
501
  render() {
496
502
  this.updateBreakpoints();
497
503
  if (!this.suggestionManager.suggestions.length) {
@@ -511,7 +517,7 @@ let AtomicCommerceSearchBox = class AtomicCommerceSearchBox extends LitElement {
511
517
  },
512
518
  },
513
519
  })(html `${this.renderTextBox()}
514
- ${renderSubmitButton({
520
+ ${renderSubmitButton({
515
521
  props: {
516
522
  i18n: this.bindings.i18n,
517
523
  disabled: this.isSearchDisabledForEndUser,
@@ -521,7 +527,8 @@ let AtomicCommerceSearchBox = class AtomicCommerceSearchBox extends LitElement {
521
527
  },
522
528
  },
523
529
  })}
524
- ${this.renderSuggestions()}`)}
530
+ ${this.renderSuggestions()}`)}
531
+ ${this.renderSlotContent()}
525
532
  `;
526
533
  }
527
534
  };
@@ -0,0 +1,57 @@
1
+ import { augmentAnalyticsConfigWithAtomicVersion, augmentAnalyticsConfigWithDocument, augmentAnalyticsWithAtomicVersion, augmentWithExternalMiddleware, getNextAnalyticsConfig, } from '../../common/interface/analytics-config';
2
+ export function getAnalyticsConfig(searchEngineConfig, enabled, store) {
3
+ switch (searchEngineConfig.analytics?.analyticsMode) {
4
+ case 'next':
5
+ return getNextAnalyticsConfig(searchEngineConfig, enabled);
6
+ default:
7
+ return getLegacyAnalyticsConfig(searchEngineConfig, enabled, store);
8
+ }
9
+ }
10
+ function getLegacyAnalyticsConfig(searchEngineConfig, enabled, store) {
11
+ const analyticsClientMiddleware = (event, payload) => augmentAnalytics(event, payload, store, searchEngineConfig);
12
+ const defaultConfiguration = {
13
+ analyticsClientMiddleware,
14
+ enabled,
15
+ ...augmentAnalyticsConfigWithDocument(),
16
+ };
17
+ const immutableConfiguration = {
18
+ ...augmentAnalyticsConfigWithAtomicVersion(),
19
+ };
20
+ if (searchEngineConfig.analytics) {
21
+ return {
22
+ ...defaultConfiguration,
23
+ ...searchEngineConfig.analytics,
24
+ analyticsClientMiddleware,
25
+ ...immutableConfiguration,
26
+ };
27
+ }
28
+ return {
29
+ ...defaultConfiguration,
30
+ ...immutableConfiguration,
31
+ };
32
+ }
33
+ function augmentAnalytics(event, payload, store, config) {
34
+ let result = augmentWithExternalMiddleware(event, payload, config);
35
+ result = augmentAnalyticsWithAtomicVersion(result);
36
+ result = augmentAnalyticsWithFacetTitles(result, store);
37
+ return result;
38
+ }
39
+ function augmentAnalyticsWithFacetTitles(payload, store) {
40
+ const allFacets = store.getAllFacets();
41
+ const getAtomicFacetLabelOrOriginalTitle = (facetId, originalTitle) => (allFacets[facetId] ? allFacets[facetId].label() : originalTitle);
42
+ if (payload.facetState) {
43
+ payload.facetState = payload.facetState.map((analyticsFacetState) => {
44
+ const { id, title: originalTitle } = analyticsFacetState;
45
+ return {
46
+ ...analyticsFacetState,
47
+ title: getAtomicFacetLabelOrOriginalTitle(id, originalTitle),
48
+ };
49
+ });
50
+ }
51
+ if (payload.customData?.facetTitle &&
52
+ payload.customData.facetId &&
53
+ payload.customData.facetTitle) {
54
+ payload.customData.facetTitle = getAtomicFacetLabelOrOriginalTitle(payload.customData.facetId, payload.customData.facetTitle);
55
+ }
56
+ return payload;
57
+ }