@coveo/atomic 3.34.0-pre.9b1e6d5dc1 → 3.34.0-pre.af85860e30

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 (241) 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 +0 -2
  4. package/dist/atomic/components/_index.js +0 -1
  5. package/dist/atomic/components/analytics-config.js +1 -1
  6. package/dist/atomic/components/atomic-category-facet.js +1 -1
  7. package/dist/atomic/components/atomic-facet.js +1 -1
  8. package/dist/atomic/components/atomic-format-currency.js +1 -1
  9. package/dist/atomic/components/atomic-format-number.js +1 -1
  10. package/dist/atomic/components/atomic-format-unit.js +1 -1
  11. package/dist/atomic/components/atomic-ipx-result-link.js +3 -3
  12. package/dist/atomic/components/atomic-ipx-result-link.js.map +1 -1
  13. package/dist/atomic/components/atomic-numeric-facet.js +1 -1
  14. package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
  15. package/dist/atomic/components/atomic-quickview.js +1 -1
  16. package/dist/atomic/components/atomic-result-children.js +1 -1
  17. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  18. package/dist/atomic/components/atomic-result-link.js +3 -3
  19. package/dist/atomic/components/atomic-result-link.js.map +1 -1
  20. package/dist/atomic/components/atomic-result-list.js +1 -1
  21. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  22. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
  23. package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
  24. package/dist/atomic/components/atomic-search-box.js +5 -5
  25. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  26. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  27. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  28. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  29. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  30. package/dist/atomic/components/attributes-slot.js +3 -8
  31. package/dist/atomic/components/attributes-slot.js.map +1 -1
  32. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +17 -32
  33. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +3 -6
  34. package/dist/atomic/components/components/common/item-link/attributes-slot.js +3 -8
  35. package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +50 -0
  36. package/dist/atomic/components/components/search/atomic-relevance-inspector/atomic-relevance-inspector.js +100 -0
  37. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +17 -24
  38. package/dist/atomic/components/components/search/index.js +1 -0
  39. package/dist/atomic/components/components/search/lazy-index.js +1 -0
  40. package/dist/atomic/components/generated-answer-common.js +3 -2
  41. package/dist/atomic/components/generated-answer-common.js.map +1 -1
  42. package/dist/atomic/components/global/environment.js +1 -1
  43. package/dist/atomic/components/index.js.map +1 -1
  44. package/dist/atomic/components/slot-utils.js +23 -6
  45. package/dist/atomic/components/slot-utils.js.map +1 -1
  46. package/dist/atomic/components/utils/compare-utils.js +49 -0
  47. package/dist/atomic/components/utils/slot-utils.js +22 -5
  48. package/dist/atomic/{p-06349e36.entry.js → p-01511388.entry.js} +2 -2
  49. package/dist/atomic/p-01511388.entry.js.map +1 -0
  50. package/dist/atomic/{p-f55bda96.entry.js → p-0c098321.entry.js} +2 -2
  51. package/dist/atomic/{p-60800b2f.entry.js → p-0ed76e65.entry.js} +2 -2
  52. package/dist/atomic/p-1891bbcf.js +2 -0
  53. package/dist/atomic/p-1891bbcf.js.map +1 -0
  54. package/dist/atomic/{p-6d52fad7.js → p-20cbcfb9.js} +2 -2
  55. package/dist/atomic/p-20cbcfb9.js.map +1 -0
  56. package/dist/atomic/{p-0aec5665.entry.js → p-2e4628bb.entry.js} +2 -2
  57. package/dist/atomic/p-2e4628bb.entry.js.map +1 -0
  58. package/dist/atomic/{p-16f6c1f3.entry.js → p-2fb49fe8.entry.js} +2 -2
  59. package/dist/atomic/{p-13391e75.entry.js → p-3549a469.entry.js} +2 -2
  60. package/dist/atomic/{p-b2f5f6cb.entry.js → p-47ab6c9f.entry.js} +2 -2
  61. package/dist/atomic/{p-2925bd87.entry.js → p-59b15bd6.entry.js} +2 -2
  62. package/dist/atomic/{p-7ec6dd3e.entry.js → p-65dd9017.entry.js} +2 -2
  63. package/dist/atomic/{p-86bde026.entry.js → p-736f4d7e.entry.js} +2 -2
  64. package/dist/atomic/{p-def0218c.js → p-77d560aa.js} +2 -2
  65. package/dist/atomic/{p-3cbab25b.entry.js → p-7e971d15.entry.js} +2 -2
  66. package/dist/atomic/{p-644f71e2.entry.js → p-83d3857f.entry.js} +2 -2
  67. package/dist/atomic/p-83d3857f.entry.js.map +1 -0
  68. package/dist/atomic/{p-7c3c5f07.entry.js → p-86ca8ef9.entry.js} +2 -2
  69. package/dist/atomic/{p-dbcef3a9.entry.js → p-87f69e53.entry.js} +2 -2
  70. package/dist/atomic/{p-88af4470.entry.js → p-8bf425b0.entry.js} +2 -2
  71. package/dist/atomic/{p-e398835b.entry.js → p-b2b9e83f.entry.js} +2 -2
  72. package/dist/atomic/p-b309aadd.js +2 -0
  73. package/dist/atomic/p-b309aadd.js.map +1 -0
  74. package/dist/atomic/{p-8fdef8a3.entry.js → p-b313058c.entry.js} +2 -2
  75. package/dist/atomic/{p-0bdd730f.entry.js → p-b6ae0244.entry.js} +2 -2
  76. package/dist/atomic/{p-548d6a74.entry.js → p-ba8d24ff.entry.js} +2 -2
  77. package/dist/atomic/{p-3a7a1a00.entry.js → p-bbfe727a.entry.js} +2 -2
  78. package/dist/atomic/{p-97ce3384.entry.js → p-be2a43f4.entry.js} +2 -2
  79. package/dist/atomic/{p-e01d5fdd.entry.js → p-c25f1437.entry.js} +2 -2
  80. package/dist/atomic/{p-55211c25.entry.js → p-cafa4083.entry.js} +2 -2
  81. package/dist/atomic/{p-4701feae.entry.js → p-cb3fd0f4.entry.js} +2 -2
  82. package/dist/atomic/{p-f11c8293.entry.js → p-ce5b896e.entry.js} +2 -2
  83. package/dist/atomic/{p-a5714bc4.entry.js → p-d211a422.entry.js} +2 -2
  84. package/dist/atomic/{p-20764605.entry.js → p-d82b85ab.entry.js} +2 -2
  85. package/dist/atomic/{p-df4397ab.entry.js → p-ea1b81fa.entry.js} +2 -2
  86. package/dist/atomic/{p-7f977dca.entry.js → p-f76b7ac3.entry.js} +2 -2
  87. package/dist/cjs/_loader.cjs.js +1 -1
  88. package/dist/cjs/{analytics-config-006dbe59.js → analytics-config-81ebc0cd.js} +2 -2
  89. package/dist/cjs/{analytics-config-006dbe59.js.map → analytics-config-81ebc0cd.js.map} +1 -1
  90. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  91. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  92. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  93. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  94. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  95. package/dist/cjs/atomic-generated-answer.cjs.entry.js +2 -2
  96. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +2 -2
  97. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  98. package/dist/cjs/atomic-insight-smart-snippet-suggestions.cjs.entry.js +2 -2
  99. package/dist/cjs/atomic-insight-smart-snippet.cjs.entry.js +2 -2
  100. package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +4 -4
  101. package/dist/cjs/atomic-ipx-result-link.cjs.entry.js.map +1 -1
  102. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
  103. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
  104. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  105. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  106. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  107. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  108. package/dist/cjs/atomic-result-link.cjs.entry.js +4 -4
  109. package/dist/cjs/atomic-result-link.cjs.entry.js.map +1 -1
  110. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  111. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +1 -1
  112. package/dist/cjs/atomic-result-printable-uri.cjs.entry.js +2 -2
  113. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
  114. package/dist/cjs/atomic-search-box.cjs.entry.js +5 -5
  115. package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
  116. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  117. package/dist/cjs/atomic-smart-snippet-suggestions.cjs.entry.js +2 -2
  118. package/dist/cjs/atomic-smart-snippet.cjs.entry.js +2 -2
  119. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  120. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  121. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  122. package/dist/cjs/atomic.cjs.js +1 -1
  123. package/dist/cjs/{attributes-slot-afccc1fd.js → attributes-slot-4e7d7a75.js} +4 -9
  124. package/dist/cjs/attributes-slot-4e7d7a75.js.map +1 -0
  125. package/dist/cjs/{generated-answer-common-57443e50.js → generated-answer-common-3c400311.js} +4 -3
  126. package/dist/cjs/generated-answer-common-3c400311.js.map +1 -0
  127. package/dist/cjs/index-757bc886.js +0 -4
  128. package/dist/cjs/slot-utils-a30cb814.js +40 -0
  129. package/dist/cjs/slot-utils-a30cb814.js.map +1 -0
  130. package/dist/cjs/version.cjs.js +1 -1
  131. package/dist/esm/_loader.js +1 -1
  132. package/dist/esm/{analytics-config-efb8a50f.js → analytics-config-a15cf5c0.js} +2 -2
  133. package/dist/esm/{analytics-config-efb8a50f.js.map → analytics-config-a15cf5c0.js.map} +1 -1
  134. package/dist/esm/atomic-category-facet.entry.js +1 -1
  135. package/dist/esm/atomic-facet.entry.js +1 -1
  136. package/dist/esm/atomic-format-currency.entry.js +1 -1
  137. package/dist/esm/atomic-format-number.entry.js +1 -1
  138. package/dist/esm/atomic-format-unit.entry.js +1 -1
  139. package/dist/esm/atomic-generated-answer.entry.js +2 -2
  140. package/dist/esm/atomic-insight-generated-answer.entry.js +2 -2
  141. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  142. package/dist/esm/atomic-insight-smart-snippet-suggestions.entry.js +2 -2
  143. package/dist/esm/atomic-insight-smart-snippet.entry.js +2 -2
  144. package/dist/esm/atomic-ipx-result-link.entry.js +4 -4
  145. package/dist/esm/atomic-ipx-result-link.entry.js.map +1 -1
  146. package/dist/esm/atomic-numeric-facet.entry.js +1 -1
  147. package/dist/esm/atomic-quickview-modal.entry.js +1 -1
  148. package/dist/esm/atomic-quickview.entry.js +1 -1
  149. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  150. package/dist/esm/atomic-result-children.entry.js +1 -1
  151. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  152. package/dist/esm/atomic-result-link.entry.js +4 -4
  153. package/dist/esm/atomic-result-link.entry.js.map +1 -1
  154. package/dist/esm/atomic-result-list.entry.js +1 -1
  155. package/dist/esm/atomic-result-placeholder_8.entry.js +1 -1
  156. package/dist/esm/atomic-result-printable-uri.entry.js +2 -2
  157. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
  158. package/dist/esm/atomic-search-box.entry.js +5 -5
  159. package/dist/esm/atomic-search-box.entry.js.map +1 -1
  160. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  161. package/dist/esm/atomic-smart-snippet-suggestions.entry.js +2 -2
  162. package/dist/esm/atomic-smart-snippet.entry.js +2 -2
  163. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  164. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  165. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  166. package/dist/esm/atomic.js +1 -1
  167. package/dist/esm/{attributes-slot-7bf61dda.js → attributes-slot-cb60f29b.js} +4 -9
  168. package/dist/esm/attributes-slot-cb60f29b.js.map +1 -0
  169. package/dist/esm/{generated-answer-common-8b06a33d.js → generated-answer-common-9d0c5ada.js} +4 -3
  170. package/dist/esm/generated-answer-common-9d0c5ada.js.map +1 -0
  171. package/dist/esm/index-3f35faca.js +0 -4
  172. package/dist/esm/slot-utils-dcf4fc27.js +37 -0
  173. package/dist/esm/slot-utils-dcf4fc27.js.map +1 -0
  174. package/dist/esm/version.js +1 -1
  175. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -3
  176. package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
  177. package/dist/types/components/common/no-items/guard.d.ts +1 -1
  178. package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
  179. package/dist/types/components/common/sort/sort-guard.d.ts +1 -1
  180. package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +32 -0
  181. package/dist/types/components/search/atomic-relevance-inspector/atomic-relevance-inspector.d.ts +18 -8
  182. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +6 -3
  183. package/dist/types/components/search/index.d.ts +1 -0
  184. package/dist/types/components.d.ts +0 -53
  185. package/dist/types/directives/hierarchical-path.d.ts +1 -1
  186. package/dist/types/utils/compare-utils.d.ts +9 -0
  187. package/dist/types/utils/slot-utils.d.ts +2 -2
  188. package/docs/atomic-docs.json +1 -88
  189. package/package.json +1 -1
  190. package/dist/atomic/components/atomic-relevance-inspector.d.ts +0 -11
  191. package/dist/atomic/components/atomic-relevance-inspector.js +0 -53
  192. package/dist/atomic/components/atomic-relevance-inspector.js.map +0 -1
  193. package/dist/atomic/p-06349e36.entry.js.map +0 -1
  194. package/dist/atomic/p-0aec5665.entry.js.map +0 -1
  195. package/dist/atomic/p-644f71e2.entry.js.map +0 -1
  196. package/dist/atomic/p-6d52fad7.js.map +0 -1
  197. package/dist/atomic/p-a62f2bf9.js +0 -2
  198. package/dist/atomic/p-a62f2bf9.js.map +0 -1
  199. package/dist/atomic/p-de687bed.entry.js +0 -2
  200. package/dist/atomic/p-de687bed.entry.js.map +0 -1
  201. package/dist/atomic/p-e7ca5aea.js +0 -2
  202. package/dist/atomic/p-e7ca5aea.js.map +0 -1
  203. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +0 -38
  204. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +0 -1
  205. package/dist/cjs/attributes-slot-afccc1fd.js.map +0 -1
  206. package/dist/cjs/generated-answer-common-57443e50.js.map +0 -1
  207. package/dist/cjs/slot-utils-086dacac.js +0 -23
  208. package/dist/cjs/slot-utils-086dacac.js.map +0 -1
  209. package/dist/esm/atomic-relevance-inspector.entry.js +0 -34
  210. package/dist/esm/atomic-relevance-inspector.entry.js.map +0 -1
  211. package/dist/esm/attributes-slot-7bf61dda.js.map +0 -1
  212. package/dist/esm/generated-answer-common-8b06a33d.js.map +0 -1
  213. package/dist/esm/slot-utils-3a3874a2.js +0 -20
  214. package/dist/esm/slot-utils-3a3874a2.js.map +0 -1
  215. /package/dist/atomic/{p-f55bda96.entry.js.map → p-0c098321.entry.js.map} +0 -0
  216. /package/dist/atomic/{p-60800b2f.entry.js.map → p-0ed76e65.entry.js.map} +0 -0
  217. /package/dist/atomic/{p-16f6c1f3.entry.js.map → p-2fb49fe8.entry.js.map} +0 -0
  218. /package/dist/atomic/{p-13391e75.entry.js.map → p-3549a469.entry.js.map} +0 -0
  219. /package/dist/atomic/{p-b2f5f6cb.entry.js.map → p-47ab6c9f.entry.js.map} +0 -0
  220. /package/dist/atomic/{p-2925bd87.entry.js.map → p-59b15bd6.entry.js.map} +0 -0
  221. /package/dist/atomic/{p-7ec6dd3e.entry.js.map → p-65dd9017.entry.js.map} +0 -0
  222. /package/dist/atomic/{p-86bde026.entry.js.map → p-736f4d7e.entry.js.map} +0 -0
  223. /package/dist/atomic/{p-def0218c.js.map → p-77d560aa.js.map} +0 -0
  224. /package/dist/atomic/{p-3cbab25b.entry.js.map → p-7e971d15.entry.js.map} +0 -0
  225. /package/dist/atomic/{p-7c3c5f07.entry.js.map → p-86ca8ef9.entry.js.map} +0 -0
  226. /package/dist/atomic/{p-dbcef3a9.entry.js.map → p-87f69e53.entry.js.map} +0 -0
  227. /package/dist/atomic/{p-88af4470.entry.js.map → p-8bf425b0.entry.js.map} +0 -0
  228. /package/dist/atomic/{p-e398835b.entry.js.map → p-b2b9e83f.entry.js.map} +0 -0
  229. /package/dist/atomic/{p-8fdef8a3.entry.js.map → p-b313058c.entry.js.map} +0 -0
  230. /package/dist/atomic/{p-0bdd730f.entry.js.map → p-b6ae0244.entry.js.map} +0 -0
  231. /package/dist/atomic/{p-548d6a74.entry.js.map → p-ba8d24ff.entry.js.map} +0 -0
  232. /package/dist/atomic/{p-3a7a1a00.entry.js.map → p-bbfe727a.entry.js.map} +0 -0
  233. /package/dist/atomic/{p-97ce3384.entry.js.map → p-be2a43f4.entry.js.map} +0 -0
  234. /package/dist/atomic/{p-e01d5fdd.entry.js.map → p-c25f1437.entry.js.map} +0 -0
  235. /package/dist/atomic/{p-55211c25.entry.js.map → p-cafa4083.entry.js.map} +0 -0
  236. /package/dist/atomic/{p-4701feae.entry.js.map → p-cb3fd0f4.entry.js.map} +0 -0
  237. /package/dist/atomic/{p-f11c8293.entry.js.map → p-ce5b896e.entry.js.map} +0 -0
  238. /package/dist/atomic/{p-a5714bc4.entry.js.map → p-d211a422.entry.js.map} +0 -0
  239. /package/dist/atomic/{p-20764605.entry.js.map → p-d82b85ab.entry.js.map} +0 -0
  240. /package/dist/atomic/{p-df4397ab.entry.js.map → p-ea1b81fa.entry.js.map} +0 -0
  241. /package/dist/atomic/{p-7f977dca.entry.js.map → p-f76b7ac3.entry.js.map} +0 -0
@@ -481,7 +481,7 @@ const AtomicCategoryFacet = class {
481
481
  }
482
482
  render() {
483
483
  const { bindings: { i18n }, label, facetState: { facetSearch, enabled, valuesAsTrees, selectedValueAncestry }, searchStatusState: { hasError, firstSearchExecuted }, } = this;
484
- return (h(FacetGuard, { key: '0ffcbacbe73edf368726d16f5b9e848901f23cf2', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (h(FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
484
+ return (h(FacetGuard, { key: 'f2968f1c76d3d8b6b49b31e78294920afe26139c', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (h(FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
485
485
  this.renderSearchInput(),
486
486
  shouldDisplaySearchResults(facetSearch) ? (h(Fragment, null, facetSearch.values.length ? (h(FacetValuesGroup, { i18n: i18n, label: label, query: facetSearch.query }, this.renderSearchResults())) : (h("div", { class: "mt-3" })), this.renderMatches())) : (h(Fragment, null, h(FacetValuesGroup, { i18n: i18n, label: label }, this.hasParents ? (h(CategoryFacetParentAsTreeContainer, { isTopLevel: true, className: "mt-3" }, this.renderValuesTree(selectedValueAncestry, true))) : (h(CategoryFacetChildrenAsTreeContainer, { className: "mt-3" }, this.renderChildren()))), this.renderShowMoreLess())),
487
487
  ])) : (h(FacetPlaceholder, { isCollapsed: this.isCollapsed, numberOfValues: this.numberOfValues }))));
@@ -262,7 +262,7 @@ const AtomicFacet = class {
262
262
  return true;
263
263
  }
264
264
  render() {
265
- return (h(FacetGuard, { key: '86e0199496414e899a074abed60f78b09644f41d', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
265
+ return (h(FacetGuard, { key: 'fa5c10a45b72a6ae62a005a752b5808ce3fadad8', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
266
266
  this.focusTargets.header.focusAfterSearch();
267
267
  this.facet.deselectAll();
268
268
  }, numberOfActiveValues: this.activeValues.length, isCollapsed: this.isCollapsed, headingLevel: this.headingLevel, onToggleCollapse: () => (this.isCollapsed = !this.isCollapsed), headerRef: (el) => this.focusTargets.header.setTarget(el) }), this.renderBody())) : (h(FacetPlaceholder, { numberOfValues: this.numberOfValues, isCollapsed: this.isCollapsed }))));
@@ -19,7 +19,7 @@ const AtomicFormatCurrency = class {
19
19
  }
20
20
  render() {
21
21
  if (this.error) {
22
- return (h("atomic-component-error", { key: 'af6838ce71462de1c33af19501ca0eabf434afe5', element: this.host, error: this.error }));
22
+ return (h("atomic-component-error", { key: '3c36da499a9f54d0cd2e9fde56e3cf8b7d560b89', element: this.host, error: this.error }));
23
23
  }
24
24
  }
25
25
  get host() { return getElement(this); }
@@ -31,7 +31,7 @@ const AtomicFormatNumber = class {
31
31
  }
32
32
  render() {
33
33
  if (this.error) {
34
- return (h("atomic-component-error", { key: 'b628208b9523337f2043180ce4b0c49e798462c7', element: this.host, error: this.error }));
34
+ return (h("atomic-component-error", { key: '6cd7c1ec24822765f7cfed26d1f14d5e6990cf12', element: this.host, error: this.error }));
35
35
  }
36
36
  }
37
37
  get host() { return getElement(this); }
@@ -34,7 +34,7 @@ const AtomicFormatUnit = class {
34
34
  }
35
35
  render() {
36
36
  if (this.error) {
37
- return (h("atomic-component-error", { key: 'b9661d5b5575fcc413456872fba86c5a51479de5', element: this.host, error: this.error }));
37
+ return (h("atomic-component-error", { key: '9bf183f8ac84ed4149a53d6c9cfb1ab11221700e', element: this.host, error: this.error }));
38
38
  }
39
39
  }
40
40
  get host() { return getElement(this); }
@@ -5,7 +5,7 @@ import { I as InitializeBindings, B as BindStateToController, H as Hidden } from
5
5
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
6
6
  import { A as AriaLiveRegion } from './stencil-accessibility-utils-196a08f3.js';
7
7
  import { s as shouldDisplayOnCurrentTab } from './tab-utils-35886d3e.js';
8
- import { G as GeneratedAnswerCommon } from './generated-answer-common-8b06a33d.js';
8
+ import { G as GeneratedAnswerCommon } from './generated-answer-common-9d0c5ada.js';
9
9
  import './dom-utils-f6086cd3.js';
10
10
  import './event-utils-8de63ec3.js';
11
11
  import './init-queue-fbe942c3.js';
@@ -15,7 +15,7 @@ import './utils-7161486d.js';
15
15
  import './purify-c7ebd240.js';
16
16
  import './_commonjsHelpers-1789f0cf.js';
17
17
  import './local-storage-utils-410269e6.js';
18
- import './slot-utils-3a3874a2.js';
18
+ import './slot-utils-dcf4fc27.js';
19
19
  import './stencil-heading-2b28a9b9.js';
20
20
  import './stencil-button-1a29a5df.js';
21
21
  import './stencil-button-style-0bc80040.js';
@@ -3,7 +3,7 @@ import { buildInteractiveCitation, buildGeneratedAnswer, buildSearchStatus } fro
3
3
  import { d as debounce } from './debounce-utils-8619dece.js';
4
4
  import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ffbc4136.js';
5
5
  import { A as AriaLiveRegion } from './stencil-accessibility-utils-196a08f3.js';
6
- import { G as GeneratedAnswerCommon } from './generated-answer-common-8b06a33d.js';
6
+ import { G as GeneratedAnswerCommon } from './generated-answer-common-9d0c5ada.js';
7
7
  import './dom-utils-f6086cd3.js';
8
8
  import './event-utils-8de63ec3.js';
9
9
  import './init-queue-fbe942c3.js';
@@ -12,7 +12,7 @@ import './utils-7161486d.js';
12
12
  import './purify-c7ebd240.js';
13
13
  import './_commonjsHelpers-1789f0cf.js';
14
14
  import './local-storage-utils-410269e6.js';
15
- import './slot-utils-3a3874a2.js';
15
+ import './slot-utils-dcf4fc27.js';
16
16
  import './stencil-heading-2b28a9b9.js';
17
17
  import './stencil-button-1a29a5df.js';
18
18
  import './stencil-button-style-0bc80040.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, s as setNonce, h, H as Host, g as getElement } from './index-3f35faca.js';
2
2
  import { m as markParentAsReady } from './init-queue-fbe942c3.js';
3
3
  import { buildResultsPerPage, loadFieldActions, buildInsightEngine } from '@coveo/headless/insight';
4
- import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-efb8a50f.js';
4
+ import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-a15cf5c0.js';
5
5
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
6
6
  import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-utils-7a336631.js';
7
7
  import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-015afa83.js';
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
2
- import { g as getAttributesFromLinkSlot } from './attributes-slot-7bf61dda.js';
2
+ import { g as getAttributesFromLinkSlot } from './attributes-slot-cb60f29b.js';
3
3
  import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ffbc4136.js';
4
4
  import { r as randomID } from './utils-7161486d.js';
5
5
  import { buildSmartSnippetQuestionsList } from '@coveo/headless/insight';
6
6
  import { A as ArrowDown } from './arrow-down-a7ee2ae6.js';
7
7
  import { A as ArrowRight } from './arrow-right-cb365b01.js';
8
8
  import { S as SmartSnippetSuggestionsWrapper, a as SmartSnippetSuggestionsQuestion, g as getQuestionPart, b as SmartSnippetSuggestionsQuestionWrapper, c as SmartSnippetSuggestionsAnswerAndSourceWrapper, d as SmartSnippetSuggestionsFooter } from './smart-snippet-suggestions-common-10bd1697.js';
9
- import './slot-utils-3a3874a2.js';
9
+ import './slot-utils-dcf4fc27.js';
10
10
  import './dom-utils-f6086cd3.js';
11
11
  import './event-utils-8de63ec3.js';
12
12
  import './init-queue-fbe942c3.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
2
- import { g as getAttributesFromLinkSlot } from './attributes-slot-7bf61dda.js';
2
+ import { g as getAttributesFromLinkSlot } from './attributes-slot-cb60f29b.js';
3
3
  import { S as SmartSnippetQuestion, a as SmartSnippetFooter, b as SmartSnippetFeedbackBanner, c as SmartSnippetWrapper } from './smart-snippet-common-5ed4bdfa.js';
4
4
  import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ffbc4136.js';
5
5
  import { r as randomID } from './utils-7161486d.js';
6
6
  import { buildSmartSnippet } from '@coveo/headless/insight';
7
- import './slot-utils-3a3874a2.js';
7
+ import './slot-utils-dcf4fc27.js';
8
8
  import './stencil-button-1a29a5df.js';
9
9
  import './event-utils-8de63ec3.js';
10
10
  import './stencil-button-style-0bc80040.js';
@@ -4,8 +4,8 @@ import { loadIPXActionsHistoryActions } from '@coveo/headless';
4
4
  import { b as buildCustomEvent } from './event-utils-8de63ec3.js';
5
5
  import { I as InitializeBindings } from './initialization-utils-ffbc4136.js';
6
6
  import { a as buildStringTemplateFromResult } from './result-utils-7e9b6b5c.js';
7
- import { a as getDefaultSlotContent } from './slot-utils-3a3874a2.js';
8
- import { g as getAttributesFromLinkSlot } from './attributes-slot-7bf61dda.js';
7
+ import { a as getDefaultSlotFromHost } from './slot-utils-dcf4fc27.js';
8
+ import { g as getAttributesFromLinkSlot } from './attributes-slot-cb60f29b.js';
9
9
  import { L as LinkWithItemAnalytics } from './stencil-item-link-5a3f8f23.js';
10
10
  import { R as ResultContext, I as InteractiveResultContext } from './result-template-decorators-2ed76ea9.js';
11
11
  import './dom-utils-f6086cd3.js';
@@ -40,7 +40,7 @@ const AtomicIPXResultLink = class {
40
40
  }
41
41
  connectedCallback() {
42
42
  const slotName = 'attributes';
43
- this.hasDefaultSlot = getDefaultSlotContent(this.host).length > 0;
43
+ this.hasDefaultSlot = !!getDefaultSlotFromHost(this.host);
44
44
  this.linkAttributes = getAttributesFromLinkSlot(this.host, slotName);
45
45
  }
46
46
  async onSelect() {
@@ -55,7 +55,7 @@ const AtomicIPXResultLink = class {
55
55
  const href = isUndefined(this.hrefTemplate)
56
56
  ? this.result.clickUri
57
57
  : buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
58
- return (h(LinkWithItemAnalytics, { key: '77fed7e0e199416e4141bff15106fcd0750d76e6', href: href, onSelect: () => this.onSelect(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (h("slot", null)) : (h("atomic-result-text", { field: "title", default: "no-title" }))));
58
+ return (h(LinkWithItemAnalytics, { key: 'b1fe73ffc76cf7543f40a400d5e7ae17b01141a8', href: href, onSelect: () => this.onSelect(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (h("slot", null)) : (h("atomic-result-text", { field: "title", default: "no-title" }))));
59
59
  }
60
60
  get host() { return getElement(this); }
61
61
  };
@@ -1 +1 @@
1
- {"file":"atomic-ipx-result-link.entry.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,o8kEAAo8kE,CAAC;AACp+kE,kCAAe,sBAAsB;;;;;;;;;;;;MCiCxB,mBAAmB;;;;;IA6BvB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrB,gBAAgB,CACd,+BAA+B,EAC/B,CAAC,eAAwB;YACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC,CACF,CACF,CAAC;QACF,IAAI,CAAC,qBAAqB,GAAG,4BAA4B,CACvD,IAAI,CAAC,QAAQ,CAAC,MAAM,CACrB,CAAC;KACH;IAEM,iBAAiB;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAI,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QACnE,IAAI,CAAC,cAAc,GAAG,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACtE;IAEM,MAAM,QAAQ;QACnB,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;QACtD,IAAI,iBAAiB,IAAI,IAAI,CAAC,qBAAqB,EAAE;YACnD,MAAM,MAAM,GACV,IAAI,CAAC,qBAAqB,CAAC,gCAAgC,CACzD,iBAAiB,CAClB,CAAC;YACJ,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;KACjC;IAEM,MAAM;QACX,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpB,6BAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACE,EAAC,qBAAqB,qDACpB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,IAAI,CAAC,QAAQ,EAAE,EAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,EACvE,qBAAqB,EAAE,MACrB,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,EAE9C,UAAU,EAAE,IAAI,CAAC,cAAc,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,IAEpC,IAAI,CAAC,cAAc,IAClB,eAAQ,KAER,0BACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxF4B;IAA5B,kBAAkB,EAAE;qDAAgC;AAG5B;IAAxB,aAAa,EAAE;mDAAkC;AACd;IAAnC,wBAAwB,EAAE;8DAA+C;;;;;","names":[],"sources":["src/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.pcss?tag=atomic-ipx-result-link","src/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n@reference '../../../utils/tailwind-utilities/link-style.css';\n\natomic-ipx-result-link {\n a {\n @apply link-style;\n }\n}\n","import {isUndefined} from '@coveo/bueno';\nimport {\n IPXActionsHistoryActionCreators,\n InteractiveResult,\n loadIPXActionsHistoryActions,\n} from '@coveo/headless';\nimport {Component, h, Prop, Element} from '@stencil/core';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {buildStringTemplateFromResult} from '../../../utils/result-utils';\nimport {getDefaultSlotContent} from '../../../utils/slot-utils';\nimport {AnyUnfoldedItem} from '../../common/item-list/unfolded-item';\nimport {getAttributesFromLinkSlot} from '../../common/item-link/attributes-slot';\nimport {LinkWithItemAnalytics} from '../../common/item-link/stencil-item-link';\nimport {RecsBindings} from '../../recommendations/atomic-recs-interface/atomic-recs-interface';\nimport {\n ResultContext,\n InteractiveResultContext,\n} from '../../search/result-template-components/result-template-decorators';\n\n/**\n * The `atomic-ipx-result-link` component automatically transforms a search result title into a clickable link that points to the original item. It is an experimental internal component not intended for general use.\n * @slot default - Lets you display alternative content inside the link\n * @slot attributes - Lets you pass [attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes) down to the link element, overriding other attributes, to be used exclusively with an \"a\" tag such as `<a slot=\"attributes\" target=\"_blank\" download></a>`.\n * @internal\n */\n@Component({\n tag: 'atomic-ipx-result-link',\n styleUrl: 'atomic-ipx-result-link.pcss',\n shadow: false,\n})\nexport class AtomicIPXResultLink\n implements InitializableComponent<RecsBindings>\n{\n @InitializeBindings() public bindings!: RecsBindings;\n public error!: Error;\n\n @ResultContext() private result!: AnyUnfoldedItem;\n @InteractiveResultContext() private interactiveResult!: InteractiveResult;\n\n @Element() private host!: HTMLElement;\n\n /**\n * Specifies a template literal from which to generate the `href` attribute value (see\n * [Template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals)).\n *\n * The template literal can reference any number of result properties from the parent result. It can also reference the window object.\n *\n * For example, the following markup generates an `href` value such as `http://uri.com?id=itemTitle`, using the result's `clickUri` and `itemtitle` fields.\n * ```html\n * <atomic-ipx-result-link href-template='${clickUri}?id=${raw.itemtitle}'></atomic-ipx-result-link>\n * ```\n */\n @Prop({reflect: true}) hrefTemplate?: string;\n\n private hasDefaultSlot!: boolean;\n private linkAttributes?: Attr[];\n private stopPropagation?: boolean;\n private actionsHistoryActions?: IPXActionsHistoryActionCreators;\n\n public initialize() {\n this.host.dispatchEvent(\n buildCustomEvent(\n 'atomic/resolveStopPropagation',\n (stopPropagation: boolean) => {\n this.stopPropagation = stopPropagation;\n }\n )\n );\n this.actionsHistoryActions = loadIPXActionsHistoryActions(\n this.bindings.engine\n );\n }\n\n public connectedCallback() {\n const slotName = 'attributes';\n this.hasDefaultSlot = getDefaultSlotContent(this.host).length > 0;\n this.linkAttributes = getAttributesFromLinkSlot(this.host, slotName);\n }\n\n public async onSelect() {\n const resultPermanentId = this.result.raw.permanentid;\n if (resultPermanentId && this.actionsHistoryActions) {\n const action =\n this.actionsHistoryActions.addPageViewEntryInActionsHistory(\n resultPermanentId\n );\n this.bindings.engine.dispatch(action);\n }\n this.interactiveResult.select();\n }\n\n public render() {\n const href = isUndefined(this.hrefTemplate)\n ? this.result.clickUri\n : buildStringTemplateFromResult(\n this.hrefTemplate,\n this.result,\n this.bindings\n );\n\n return (\n <LinkWithItemAnalytics\n href={href}\n onSelect={() => this.onSelect()}\n onBeginDelayedSelect={() => this.interactiveResult.beginDelayedSelect()}\n onCancelPendingSelect={() =>\n this.interactiveResult.cancelPendingSelect()\n }\n attributes={this.linkAttributes}\n stopPropagation={this.stopPropagation}\n >\n {this.hasDefaultSlot ? (\n <slot />\n ) : (\n <atomic-result-text\n field=\"title\"\n default=\"no-title\"\n ></atomic-result-text>\n )}\n </LinkWithItemAnalytics>\n );\n }\n}\n"],"version":3}
1
+ {"file":"atomic-ipx-result-link.entry.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,o8kEAAo8kE,CAAC;AACp+kE,kCAAe,sBAAsB;;;;;;;;;;;;MCiCxB,mBAAmB;;;;;IA6BvB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrB,gBAAgB,CACd,+BAA+B,EAC/B,CAAC,eAAwB;YACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC,CACF,CACF,CAAC;QACF,IAAI,CAAC,qBAAqB,GAAG,4BAA4B,CACvD,IAAI,CAAC,QAAQ,CAAC,MAAM,CACrB,CAAC;KACH;IAEM,iBAAiB;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,GAAG,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACtE;IAEM,MAAM,QAAQ;QACnB,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;QACtD,IAAI,iBAAiB,IAAI,IAAI,CAAC,qBAAqB,EAAE;YACnD,MAAM,MAAM,GACV,IAAI,CAAC,qBAAqB,CAAC,gCAAgC,CACzD,iBAAiB,CAClB,CAAC;YACJ,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;KACjC;IAEM,MAAM;QACX,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpB,6BAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACE,EAAC,qBAAqB,qDACpB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,IAAI,CAAC,QAAQ,EAAE,EAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,EACvE,qBAAqB,EAAE,MACrB,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,EAE9C,UAAU,EAAE,IAAI,CAAC,cAAc,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,IAEpC,IAAI,CAAC,cAAc,IAClB,eAAQ,KAER,0BACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxF4B;IAA5B,kBAAkB,EAAE;qDAAgC;AAG5B;IAAxB,aAAa,EAAE;mDAAkC;AACd;IAAnC,wBAAwB,EAAE;8DAA+C;;;;;","names":[],"sources":["src/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.pcss?tag=atomic-ipx-result-link","src/components/ipx/atomic-ipx-result-link/atomic-ipx-result-link.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n@reference '../../../utils/tailwind-utilities/link-style.css';\n\natomic-ipx-result-link {\n a {\n @apply link-style;\n }\n}\n","import {isUndefined} from '@coveo/bueno';\nimport {\n IPXActionsHistoryActionCreators,\n InteractiveResult,\n loadIPXActionsHistoryActions,\n} from '@coveo/headless';\nimport {Component, h, Prop, Element} from '@stencil/core';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {buildStringTemplateFromResult} from '../../../utils/result-utils';\nimport {getDefaultSlotFromHost} from '../../../utils/slot-utils';\nimport {AnyUnfoldedItem} from '../../common/item-list/unfolded-item';\nimport {getAttributesFromLinkSlot} from '../../common/item-link/attributes-slot';\nimport {LinkWithItemAnalytics} from '../../common/item-link/stencil-item-link';\nimport {RecsBindings} from '../../recommendations/atomic-recs-interface/atomic-recs-interface';\nimport {\n ResultContext,\n InteractiveResultContext,\n} from '../../search/result-template-components/result-template-decorators';\n\n/**\n * The `atomic-ipx-result-link` component automatically transforms a search result title into a clickable link that points to the original item. It is an experimental internal component not intended for general use.\n * @slot default - Lets you display alternative content inside the link\n * @slot attributes - Lets you pass [attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes) down to the link element, overriding other attributes, to be used exclusively with an \"a\" tag such as `<a slot=\"attributes\" target=\"_blank\" download></a>`.\n * @internal\n */\n@Component({\n tag: 'atomic-ipx-result-link',\n styleUrl: 'atomic-ipx-result-link.pcss',\n shadow: false,\n})\nexport class AtomicIPXResultLink\n implements InitializableComponent<RecsBindings>\n{\n @InitializeBindings() public bindings!: RecsBindings;\n public error!: Error;\n\n @ResultContext() private result!: AnyUnfoldedItem;\n @InteractiveResultContext() private interactiveResult!: InteractiveResult;\n\n @Element() private host!: HTMLElement;\n\n /**\n * Specifies a template literal from which to generate the `href` attribute value (see\n * [Template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals)).\n *\n * The template literal can reference any number of result properties from the parent result. It can also reference the window object.\n *\n * For example, the following markup generates an `href` value such as `http://uri.com?id=itemTitle`, using the result's `clickUri` and `itemtitle` fields.\n * ```html\n * <atomic-ipx-result-link href-template='${clickUri}?id=${raw.itemtitle}'></atomic-ipx-result-link>\n * ```\n */\n @Prop({reflect: true}) hrefTemplate?: string;\n\n private hasDefaultSlot!: boolean;\n private linkAttributes?: Attr[];\n private stopPropagation?: boolean;\n private actionsHistoryActions?: IPXActionsHistoryActionCreators;\n\n public initialize() {\n this.host.dispatchEvent(\n buildCustomEvent(\n 'atomic/resolveStopPropagation',\n (stopPropagation: boolean) => {\n this.stopPropagation = stopPropagation;\n }\n )\n );\n this.actionsHistoryActions = loadIPXActionsHistoryActions(\n this.bindings.engine\n );\n }\n\n public connectedCallback() {\n const slotName = 'attributes';\n this.hasDefaultSlot = !!getDefaultSlotFromHost(this.host);\n this.linkAttributes = getAttributesFromLinkSlot(this.host, slotName);\n }\n\n public async onSelect() {\n const resultPermanentId = this.result.raw.permanentid;\n if (resultPermanentId && this.actionsHistoryActions) {\n const action =\n this.actionsHistoryActions.addPageViewEntryInActionsHistory(\n resultPermanentId\n );\n this.bindings.engine.dispatch(action);\n }\n this.interactiveResult.select();\n }\n\n public render() {\n const href = isUndefined(this.hrefTemplate)\n ? this.result.clickUri\n : buildStringTemplateFromResult(\n this.hrefTemplate,\n this.result,\n this.bindings\n );\n\n return (\n <LinkWithItemAnalytics\n href={href}\n onSelect={() => this.onSelect()}\n onBeginDelayedSelect={() => this.interactiveResult.beginDelayedSelect()}\n onCancelPendingSelect={() =>\n this.interactiveResult.cancelPendingSelect()\n }\n attributes={this.linkAttributes}\n stopPropagation={this.stopPropagation}\n >\n {this.hasDefaultSlot ? (\n <slot />\n ) : (\n <atomic-result-text\n field=\"title\"\n default=\"no-title\"\n ></atomic-result-text>\n )}\n </LinkWithItemAnalytics>\n );\n }\n}\n"],"version":3}
@@ -305,7 +305,7 @@ const AtomicNumericFacet = class {
305
305
  }
306
306
  render() {
307
307
  const { searchStatusState: { firstSearchExecuted, hasError }, bindings: { i18n }, } = this;
308
- return (h(FacetGuard, { key: '95f72de0f0123a8c7f6dca33540552016b17fa80', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
308
+ return (h(FacetGuard, { key: '333e7325e16ce23a1d39baad905ea96f649ff007', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
309
309
  this.focusTarget.focusAfterSearch();
310
310
  if (this.filterState?.range) {
311
311
  this.filter?.clear();
@@ -586,7 +586,7 @@ const AtomicQuickviewModal = class {
586
586
  });
587
587
  }
588
588
  render() {
589
- return (h("atomic-modal", { key: '84b950ecdc79dd6a1b53d3af44c62219740bc572', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
589
+ return (h("atomic-modal", { key: '8ff1438b0d7ff43933a1fc0800891a7cb7065043', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
590
590
  }
591
591
  static get watchers() { return {
592
592
  "highlightKeywords": ["watchHighlightKeywords"]
@@ -112,7 +112,7 @@ const AtomicQuickview = class {
112
112
  }
113
113
  render() {
114
114
  if (this.quickviewState.resultHasPreview) {
115
- return (h(Button, { key: '4e34bfe78864244b13813fb9113b90d2a7658506', part: "button", title: this.bindings.i18n.t('quickview'), style: "outline-primary", class: "p-2", onClick: (event) => this.onClick(event), ref: this.focusTarget.setTarget }, h("atomic-icon", { key: '2d96d58b8e4b63f21bf8f40c2a5383d7711fa59f', part: "icon", class: "flex w-5 justify-center", icon: QuickviewIcon })));
115
+ return (h(Button, { key: 'ec6c644d9d557133df40428ccacddcb3d035c9fd', part: "button", title: this.bindings.i18n.t('quickview'), style: "outline-primary", class: "p-2", onClick: (event) => this.onClick(event), ref: this.focusTarget.setTarget }, h("atomic-icon", { key: 'fa4444026db63add82d7906e9fc0636c3a94e0d8', part: "icon", class: "flex w-5 justify-center", icon: QuickviewIcon })));
116
116
  }
117
117
  }
118
118
  };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
2
2
  import { m as markParentAsReady } from './init-queue-fbe942c3.js';
3
3
  import { loadRecommendationActions, loadSearchConfigurationActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildRecommendationEngine } from '@coveo/headless/recommendation';
4
- import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-efb8a50f.js';
4
+ import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-a15cf5c0.js';
5
5
  import { A as ArrayProp } from './props-utils-e97ad6bd.js';
6
6
  import { u as unsetLoadingFlag, s as setLoadingFlag, a as createBaseStore } from './store-015afa83.js';
7
7
  import './dayjs.min-d04628c6.js';
@@ -135,7 +135,7 @@ const AtomicResultChildren = class {
135
135
  return (h(ChildrenWrapper, { hasChildren: children.length > 0 }, children.map((child, i) => this.renderChild(child, i === children.length - 1))));
136
136
  }
137
137
  render() {
138
- return (h(ResultChildrenGuard, { key: '78cc57aacc5e31fe241f290e38a2fe363ca22852', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
138
+ return (h(ResultChildrenGuard, { key: 'eb224dfff016980d3d7aa281e6a87c3172286c78', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
139
139
  }
140
140
  get host() { return getElement(this); }
141
141
  };
@@ -100,7 +100,7 @@ const AtomicResultFieldsList = class {
100
100
  }
101
101
  }
102
102
  render() {
103
- return h(Host, { key: '8a554da4b25cd72108826703cfc60e26c74a7562' });
103
+ return h(Host, { key: '936654b1f7aa4fd793eecd6fb508e14b8c764bb0' });
104
104
  }
105
105
  get host() { return getElement(this); }
106
106
  };
@@ -3,8 +3,8 @@ import { isUndefined } from '@coveo/bueno';
3
3
  import { b as buildCustomEvent } from './event-utils-8de63ec3.js';
4
4
  import { I as InitializeBindings } from './initialization-utils-ffbc4136.js';
5
5
  import { a as buildStringTemplateFromResult } from './result-utils-7e9b6b5c.js';
6
- import { a as getDefaultSlotContent } from './slot-utils-3a3874a2.js';
7
- import { g as getAttributesFromLinkSlot } from './attributes-slot-7bf61dda.js';
6
+ import { a as getDefaultSlotFromHost } from './slot-utils-dcf4fc27.js';
7
+ import { g as getAttributesFromLinkSlot } from './attributes-slot-cb60f29b.js';
8
8
  import { L as LinkWithItemAnalytics } from './stencil-item-link-5a3f8f23.js';
9
9
  import { R as ResultContext, I as InteractiveResultContext } from './result-template-decorators-2ed76ea9.js';
10
10
  import './dom-utils-f6086cd3.js';
@@ -39,14 +39,14 @@ const AtomicResultLink = class {
39
39
  }
40
40
  connectedCallback() {
41
41
  const slotName = 'attributes';
42
- this.hasDefaultSlot = getDefaultSlotContent(this.host).length > 0;
42
+ this.hasDefaultSlot = !!getDefaultSlotFromHost(this.host);
43
43
  this.linkAttributes = getAttributesFromLinkSlot(this.host, slotName);
44
44
  }
45
45
  render() {
46
46
  const href = isUndefined(this.hrefTemplate)
47
47
  ? this.result.clickUri
48
48
  : buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
49
- return (h(LinkWithItemAnalytics, { key: 'e7cb626fcb020bca3c2f965b0f480b36f46c5ea3', href: href, onSelect: () => this.interactiveResult.select(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (h("slot", null)) : (h("atomic-result-text", { field: "title", default: "no-title" }))));
49
+ return (h(LinkWithItemAnalytics, { key: '822263a18da861e80557adf11226427663627b8f', href: href, onSelect: () => this.interactiveResult.select(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (h("slot", null)) : (h("atomic-result-text", { field: "title", default: "no-title" }))));
50
50
  }
51
51
  get host() { return getElement(this); }
52
52
  };
@@ -1 +1 @@
1
- {"file":"atomic-result-link.entry.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,g5kEAAg5kE,CAAC;AAC76kE,+BAAe,mBAAmB;;;;;;;;;;;;MC4BrB,gBAAgB;;;;;IA0BpB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrB,gBAAgB,CACd,+BAA+B,EAC/B,CAAC,eAAwB;YACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC,CACF,CACF,CAAC;KACH;IAEM,iBAAiB;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAI,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QACnE,IAAI,CAAC,cAAc,GAAG,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACtE;IAEM,MAAM;QACX,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpB,6BAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACE,EAAC,qBAAqB,qDACpB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAC/C,oBAAoB,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,EACvE,qBAAqB,EAAE,MACrB,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,EAE9C,UAAU,EAAE,IAAI,CAAC,cAAc,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,IAEpC,IAAI,CAAC,cAAc,IAClB,eAAQ,KAER,0BACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxE4B;IAA5B,kBAAkB,EAAE;kDAA4B;AAGxB;IAAxB,aAAa,EAAE;gDAAkC;AACd;IAAnC,wBAAwB,EAAE;2DAA+C;;;;;","names":[],"sources":["src/components/search/result-template-components/atomic-result-link/atomic-result-link.pcss?tag=atomic-result-link","src/components/search/result-template-components/atomic-result-link/atomic-result-link.tsx"],"sourcesContent":["@import '../../../../global/global.pcss';\n@reference '../../../../utils/tailwind-utilities/link-style.css';\natomic-result-link {\n a {\n @apply link-style;\n }\n}\n","import {isUndefined} from '@coveo/bueno';\nimport {InteractiveResult} from '@coveo/headless';\nimport {Component, h, Prop, Element} from '@stencil/core';\nimport {buildCustomEvent} from '../../../../utils/event-utils';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {buildStringTemplateFromResult} from '../../../../utils/result-utils';\nimport {getDefaultSlotContent} from '../../../../utils/slot-utils';\nimport {AnyUnfoldedItem} from '../../../common/item-list/unfolded-item';\nimport {getAttributesFromLinkSlot} from '../../../common/item-link/attributes-slot';\nimport {LinkWithItemAnalytics} from '../../../common/item-link/stencil-item-link';\nimport {Bindings} from '../../atomic-search-interface/atomic-search-interface';\nimport {\n InteractiveResultContext,\n ResultContext,\n} from '../result-template-decorators';\n\n/**\n * The `atomic-result-link` component automatically transforms a search result title into a clickable link that points to the original item.\n * @slot default - Lets you display alternative content inside the link\n * @slot attributes - Lets you pass [attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes) down to the link element, overriding other attributes, to be used exclusively with an \"a\" tag such as `<a slot=\"attributes\" target=\"_blank\" download></a>`.\n */\n@Component({\n tag: 'atomic-result-link',\n styleUrl: 'atomic-result-link.pcss',\n shadow: false,\n})\nexport class AtomicResultLink implements InitializableComponent {\n @InitializeBindings() public bindings!: Bindings;\n public error!: Error;\n\n @ResultContext() private result!: AnyUnfoldedItem;\n @InteractiveResultContext() private interactiveResult!: InteractiveResult;\n\n @Element() private host!: HTMLElement;\n\n /**\n * Specifies a template literal from which to generate the `href` attribute value (see\n * [Template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals)).\n *\n * The template literal can reference any number of result properties from the parent result. It can also reference the window object.\n *\n * For example, the following markup generates an `href` value such as `http://uri.com?id=itemTitle`, using the result's `clickUri` and `itemtitle` fields.\n * ```html\n * <atomic-result-link href-template='${clickUri}?id=${raw.itemtitle}'></atomic-result-link>\n * ```\n */\n @Prop({reflect: true}) hrefTemplate?: string;\n\n private hasDefaultSlot!: boolean;\n private linkAttributes?: Attr[];\n private stopPropagation?: boolean;\n\n public initialize() {\n this.host.dispatchEvent(\n buildCustomEvent(\n 'atomic/resolveStopPropagation',\n (stopPropagation: boolean) => {\n this.stopPropagation = stopPropagation;\n }\n )\n );\n }\n\n public connectedCallback() {\n const slotName = 'attributes';\n this.hasDefaultSlot = getDefaultSlotContent(this.host).length > 0;\n this.linkAttributes = getAttributesFromLinkSlot(this.host, slotName);\n }\n\n public render() {\n const href = isUndefined(this.hrefTemplate)\n ? this.result.clickUri\n : buildStringTemplateFromResult(\n this.hrefTemplate,\n this.result,\n this.bindings\n );\n\n return (\n <LinkWithItemAnalytics\n href={href}\n onSelect={() => this.interactiveResult.select()}\n onBeginDelayedSelect={() => this.interactiveResult.beginDelayedSelect()}\n onCancelPendingSelect={() =>\n this.interactiveResult.cancelPendingSelect()\n }\n attributes={this.linkAttributes}\n stopPropagation={this.stopPropagation}\n >\n {this.hasDefaultSlot ? (\n <slot />\n ) : (\n <atomic-result-text\n field=\"title\"\n default=\"no-title\"\n ></atomic-result-text>\n )}\n </LinkWithItemAnalytics>\n );\n }\n}\n"],"version":3}
1
+ {"file":"atomic-result-link.entry.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,g5kEAAg5kE,CAAC;AAC76kE,+BAAe,mBAAmB;;;;;;;;;;;;MC4BrB,gBAAgB;;;;;IA0BpB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrB,gBAAgB,CACd,+BAA+B,EAC/B,CAAC,eAAwB;YACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC,CACF,CACF,CAAC;KACH;IAEM,iBAAiB;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,GAAG,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACtE;IAEM,MAAM;QACX,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpB,6BAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACE,EAAC,qBAAqB,qDACpB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAC/C,oBAAoB,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,EACvE,qBAAqB,EAAE,MACrB,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,EAE9C,UAAU,EAAE,IAAI,CAAC,cAAc,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,IAEpC,IAAI,CAAC,cAAc,IAClB,eAAQ,KAER,0BACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxE4B;IAA5B,kBAAkB,EAAE;kDAA4B;AAGxB;IAAxB,aAAa,EAAE;gDAAkC;AACd;IAAnC,wBAAwB,EAAE;2DAA+C;;;;;","names":[],"sources":["src/components/search/result-template-components/atomic-result-link/atomic-result-link.pcss?tag=atomic-result-link","src/components/search/result-template-components/atomic-result-link/atomic-result-link.tsx"],"sourcesContent":["@import '../../../../global/global.pcss';\n@reference '../../../../utils/tailwind-utilities/link-style.css';\natomic-result-link {\n a {\n @apply link-style;\n }\n}\n","import {isUndefined} from '@coveo/bueno';\nimport {InteractiveResult} from '@coveo/headless';\nimport {Component, h, Prop, Element} from '@stencil/core';\nimport {buildCustomEvent} from '../../../../utils/event-utils';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {buildStringTemplateFromResult} from '../../../../utils/result-utils';\nimport {getDefaultSlotFromHost} from '../../../../utils/slot-utils';\nimport {AnyUnfoldedItem} from '../../../common/item-list/unfolded-item';\nimport {getAttributesFromLinkSlot} from '../../../common/item-link/attributes-slot';\nimport {LinkWithItemAnalytics} from '../../../common/item-link/stencil-item-link';\nimport {Bindings} from '../../atomic-search-interface/atomic-search-interface';\nimport {\n InteractiveResultContext,\n ResultContext,\n} from '../result-template-decorators';\n\n/**\n * The `atomic-result-link` component automatically transforms a search result title into a clickable link that points to the original item.\n * @slot default - Lets you display alternative content inside the link\n * @slot attributes - Lets you pass [attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes) down to the link element, overriding other attributes, to be used exclusively with an \"a\" tag such as `<a slot=\"attributes\" target=\"_blank\" download></a>`.\n */\n@Component({\n tag: 'atomic-result-link',\n styleUrl: 'atomic-result-link.pcss',\n shadow: false,\n})\nexport class AtomicResultLink implements InitializableComponent {\n @InitializeBindings() public bindings!: Bindings;\n public error!: Error;\n\n @ResultContext() private result!: AnyUnfoldedItem;\n @InteractiveResultContext() private interactiveResult!: InteractiveResult;\n\n @Element() private host!: HTMLElement;\n\n /**\n * Specifies a template literal from which to generate the `href` attribute value (see\n * [Template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals)).\n *\n * The template literal can reference any number of result properties from the parent result. It can also reference the window object.\n *\n * For example, the following markup generates an `href` value such as `http://uri.com?id=itemTitle`, using the result's `clickUri` and `itemtitle` fields.\n * ```html\n * <atomic-result-link href-template='${clickUri}?id=${raw.itemtitle}'></atomic-result-link>\n * ```\n */\n @Prop({reflect: true}) hrefTemplate?: string;\n\n private hasDefaultSlot!: boolean;\n private linkAttributes?: Attr[];\n private stopPropagation?: boolean;\n\n public initialize() {\n this.host.dispatchEvent(\n buildCustomEvent(\n 'atomic/resolveStopPropagation',\n (stopPropagation: boolean) => {\n this.stopPropagation = stopPropagation;\n }\n )\n );\n }\n\n public connectedCallback() {\n const slotName = 'attributes';\n this.hasDefaultSlot = !!getDefaultSlotFromHost(this.host);\n this.linkAttributes = getAttributesFromLinkSlot(this.host, slotName);\n }\n\n public render() {\n const href = isUndefined(this.hrefTemplate)\n ? this.result.clickUri\n : buildStringTemplateFromResult(\n this.hrefTemplate,\n this.result,\n this.bindings\n );\n\n return (\n <LinkWithItemAnalytics\n href={href}\n onSelect={() => this.interactiveResult.select()}\n onBeginDelayedSelect={() => this.interactiveResult.beginDelayedSelect()}\n onCancelPendingSelect={() =>\n this.interactiveResult.cancelPendingSelect()\n }\n attributes={this.linkAttributes}\n stopPropagation={this.stopPropagation}\n >\n {this.hasDefaultSlot ? (\n <slot />\n ) : (\n <atomic-result-text\n field=\"title\"\n default=\"no-title\"\n ></atomic-result-text>\n )}\n </LinkWithItemAnalytics>\n );\n }\n}\n"],"version":3}
@@ -191,7 +191,7 @@ const AtomicResultList = class {
191
191
  render() {
192
192
  this.resultListCommon.updateBreakpoints();
193
193
  const listClasses = this.computeListDisplayClasses();
194
- return (h(TabGuard, { key: 'b0ff0e3012ca64073a2ff66eeb16bc98e664dc50', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: '2edd5822368238752cfd611eed25022abb81fbd8', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: 'c29a9d2af689775616355a42d5fe7f43bcf51ea8', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: 'e62e986ea55a9349467b8d32c937281fc3434f44', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: 'f12f2f7b1d0a2e6ee7c8a59ff2a6ba8f31b8bb5a', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
194
+ return (h(TabGuard, { key: 'c8b1ca9302ce0e9cfd5114067cb686fa27b6206f', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: 'b6db922875d6156b42e0060ad2218bb82f9ed196', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: '03ee6cd85a8bc9e94005082b24b42fb5ca893907', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: 'b6a6020f7e40bddb2365c6ca6ef3ee67c5598758', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: 'dea4c3d009fb28a556b81ba8d2fba8be5e02ed49', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
195
195
  ? this.renderAsTable()
196
196
  : this.display === 'grid'
197
197
  ? this.renderAsGrid()
@@ -107,7 +107,7 @@ const AtomicResultTablePlaceholder = class {
107
107
  return getItemDisplayClasses('table', this.density, this.imageSize);
108
108
  }
109
109
  render() {
110
- return (h("table", { key: 'aaef2b349a7fd003ac467e35bd8f252a9ebf948d', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: '52059a56d86650fb006ef5bb5d58e22da90ec522' }, h("tr", { key: '95c0b6ea3fffbe42413c8acbe20db317162576b9' }, h("th", { key: '96c14b820260010d8de3b05898c00ff6d15cc0ef' }, h("div", { key: '0055b9fea2ffce1a7546c5bb6216bc3bb5a317db', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '2c617a8d714305de201fbfdfac6dd52f8cb69148' }, h("div", { key: '068b1cc654f27b33cdc502d416daf1c081d4cf19', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '55a625ccff48da33184579efda097724d200f7ac' }, h("div", { key: '0a843d33317e3d86b9229cc9a73e1a0b2087e34e', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: '62ca6c923527954dc76cd5c398fe7ab04772f8a7' }, Array.from({ length: this.rows }, () => (h("tr", null, h("td", null, h("div", { class: `mb-6 h-8 ${placeholderClasses}`, style: { width: '22.875rem' } }), h("div", { class: `mb-2 h-5 ${placeholderClasses}`, style: { width: '23.75rem' } }), h("div", { class: `h-5 ${placeholderClasses}`, style: { width: '11.5rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '11rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '4.875rem' } }))))))));
110
+ return (h("table", { key: 'ed3f575082ec1c2a9927251e2b09d5c0f70d78b5', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: 'd48900fa9c63a0a201379e034efce277095884e2' }, h("tr", { key: '46641a6003cadf5c7fc8dfad1ab9d1ef11c90190' }, h("th", { key: '617b903b6d8ffde30dcbb3e4dcbaaa4e377d3b19' }, h("div", { key: 'd082c63c3bde168ef9395afb9e0dd50fcb3a6825', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '2fc5a593908aad27a251272284bce7b55ad521e6' }, h("div", { key: 'a49a28d807240f58b43fbe8a646f9de2218e34f9', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '96676c1b68d7ab25dc14b9331642f5288d0f2b53' }, h("div", { key: '648e50f2fa4ba0214bc0b220d38520c86580013c', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: '98adcdb91e5e58c6dd1cc09759e6cc0e7a08bf31' }, Array.from({ length: this.rows }, () => (h("tr", null, h("td", null, h("div", { class: `mb-6 h-8 ${placeholderClasses}`, style: { width: '22.875rem' } }), h("div", { class: `mb-2 h-5 ${placeholderClasses}`, style: { width: '23.75rem' } }), h("div", { class: `h-5 ${placeholderClasses}`, style: { width: '11.5rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '11rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '4.875rem' } }))))))));
111
111
  }
112
112
  };
113
113
  AtomicResultTablePlaceholder.style = AtomicResultTablePlaceholderStyle0;
@@ -5,7 +5,7 @@ import { A as ArrowRight } from './arrow-right-cb365b01.js';
5
5
  import { I as InitializeBindings } from './initialization-utils-ffbc4136.js';
6
6
  import { F as FocusTargetController } from './stencil-accessibility-utils-196a08f3.js';
7
7
  import { p as parseXML } from './utils-7161486d.js';
8
- import { g as getAttributesFromLinkSlot } from './attributes-slot-7bf61dda.js';
8
+ import { g as getAttributesFromLinkSlot } from './attributes-slot-cb60f29b.js';
9
9
  import { L as LinkWithItemAnalytics } from './stencil-item-link-5a3f8f23.js';
10
10
  import { R as ResultContext } from './result-template-decorators-2ed76ea9.js';
11
11
  import './dom-utils-f6086cd3.js';
@@ -14,7 +14,7 @@ import './init-queue-fbe942c3.js';
14
14
  import './initialization-lit-stencil-common-utils-804fe146.js';
15
15
  import './purify-c7ebd240.js';
16
16
  import './_commonjsHelpers-1789f0cf.js';
17
- import './slot-utils-3a3874a2.js';
17
+ import './slot-utils-dcf4fc27.js';
18
18
  import './xss-utils-c92f3869.js';
19
19
  import './stencil-item-decorators-6c453c11.js';
20
20
 
@@ -66,7 +66,7 @@ const AtomicSearchBoxQuerySuggestions = class {
66
66
  }
67
67
  render() {
68
68
  if (this.error) {
69
- return (h("atomic-component-error", { key: 'd8ace632cbbd5924ed771125cea0b395b021fe3e', element: this.host, error: this.error }));
69
+ return (h("atomic-component-error", { key: 'c5e8f0a3254a31cdae54c36868f70432c1673888', element: this.host, error: this.error }));
70
70
  }
71
71
  }
72
72
  get host() { return getElement(this); }
@@ -218,7 +218,7 @@ const AtomicSearchBoxRecentQueries = class {
218
218
  }
219
219
  render() {
220
220
  if (this.error) {
221
- return (h("atomic-component-error", { key: '8b84892b677e093e1d3a077ba76851ccbbc6c0b1', element: this.host, error: this.error }));
221
+ return (h("atomic-component-error", { key: 'a428e82c6ce29e81704777cbbf3bea98937b906a', element: this.host, error: this.error }));
222
222
  }
223
223
  }
224
224
  get host() { return getElement(this); }
@@ -10,7 +10,7 @@ import { o as once, r as randomID, j as spreadProperties, h as isFocusingOut } f
10
10
  import { a as SearchSlimIcon, b as SearchTextArea, S as SuggestionManager, c as SearchBoxWrapper } from './stencil-suggestion-manager-376f83e8.js';
11
11
  import { B as Button } from './stencil-button-1a29a5df.js';
12
12
  import { a as elementHasQuery } from './suggestions-utils-591559a0.js';
13
- import { a as getDefaultSlotContent } from './slot-utils-3a3874a2.js';
13
+ import { a as getDefaultSlotFromHost } from './slot-utils-dcf4fc27.js';
14
14
  import './dom-utils-f6086cd3.js';
15
15
  import './event-utils-8de63ec3.js';
16
16
  import './init-queue-fbe942c3.js';
@@ -425,7 +425,7 @@ const AtomicSearchBox = class {
425
425
  : this.bindings.i18n.t('query-suggestions-unavailable');
426
426
  }
427
427
  renderSlotContent() {
428
- const hasDefaultSlot = getDefaultSlotContent(this.host).length > 0;
428
+ const hasDefaultSlot = !!getDefaultSlotFromHost(this.host);
429
429
  if (hasDefaultSlot) {
430
430
  return h("slot", null);
431
431
  }
@@ -441,14 +441,14 @@ const AtomicSearchBox = class {
441
441
  if (!this.suggestionManager.suggestions.length) {
442
442
  this.registerSearchboxSuggestionEvents();
443
443
  }
444
- return (h(Host, { key: '653748f17f3cec7825222eb6a15aa4fe5de96cb7' }, this.renderAbsolutePositionSpacer(), [
445
- h(SearchBoxWrapper, { key: 'd421e28e74a98ec0329ed4518ee8d9e0a82b9eb3', disabled: isDisabled, onFocusout: (event) => {
444
+ return (h(Host, { key: '6a53ad9feb241283fd9bcb638b8f0f703691937a' }, this.renderAbsolutePositionSpacer(), [
445
+ h(SearchBoxWrapper, { key: 'c704424a22aa17ead0ca97f0104e336df2c57475', disabled: isDisabled, onFocusout: (event) => {
446
446
  if (!isFocusingOut(event)) {
447
447
  return;
448
448
  }
449
449
  this.suggestionManager.clearSuggestions();
450
450
  this.isExpanded = false;
451
- } }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '3e2376be5243dd20c29c1581046c8c14cba53aaa', bindings: this.bindings, disabled: isDisabled, onClick: () => {
451
+ } }, this.renderTextBox(searchLabel), h(SubmitButton, { key: 'ee7fc79825b31c970bad13d6568e0a91b01ff60e', bindings: this.bindings, disabled: isDisabled, onClick: () => {
452
452
  this.searchBox.submit();
453
453
  this.suggestionManager.clearSuggestions();
454
454
  } }), this.renderSuggestions()),