@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
@@ -485,7 +485,7 @@ const AtomicCategoryFacet = class {
485
485
  }
486
486
  render() {
487
487
  const { bindings: { i18n }, label, facetState: { facetSearch, enabled, valuesAsTrees, selectedValueAncestry }, searchStatusState: { hasError, firstSearchExecuted }, } = this;
488
- return (index.h(facetGuard.FacetGuard, { key: '0ffcbacbe73edf368726d16f5b9e848901f23cf2', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
488
+ return (index.h(facetGuard.FacetGuard, { key: 'f2968f1c76d3d8b6b49b31e78294920afe26139c', enabled: enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: valuesAsTrees.length > 0 }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, this.renderHeader(), !this.isCollapsed && [
489
489
  this.renderSearchInput(),
490
490
  stencilFacetValueLabelHighlight.shouldDisplaySearchResults(facetSearch) ? (index.h(index.Fragment, null, facetSearch.values.length ? (index.h(stencilFacetValuesGroup.FacetValuesGroup, { i18n: i18n, label: label, query: facetSearch.query }, this.renderSearchResults())) : (index.h("div", { class: "mt-3" })), this.renderMatches())) : (index.h(index.Fragment, null, index.h(stencilFacetValuesGroup.FacetValuesGroup, { i18n: i18n, label: label }, this.hasParents ? (index.h(CategoryFacetParentAsTreeContainer, { isTopLevel: true, className: "mt-3" }, this.renderValuesTree(selectedValueAncestry, true))) : (index.h(CategoryFacetChildrenAsTreeContainer, { className: "mt-3" }, this.renderChildren()))), this.renderShowMoreLess())),
491
491
  ])) : (index.h(facetPlaceholder.FacetPlaceholder, { isCollapsed: this.isCollapsed, numberOfValues: this.numberOfValues }))));
@@ -266,7 +266,7 @@ const AtomicFacet = class {
266
266
  return true;
267
267
  }
268
268
  render() {
269
- return (index.h(facetGuard.FacetGuard, { key: '86e0199496414e899a074abed60f78b09644f41d', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
269
+ return (index.h(facetGuard.FacetGuard, { key: 'fa5c10a45b72a6ae62a005a752b5808ce3fadad8', enabled: this.facetState.enabled, hasError: this.searchStatusState.hasError, firstSearchExecuted: this.searchStatusState.firstSearchExecuted, hasResults: this.facetState.values.length > 0 }, this.searchStatusState.firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: this.bindings.i18n, label: this.definedLabel, onClearFilters: () => {
270
270
  this.focusTargets.header.focusAfterSearch();
271
271
  this.facet.deselectAll();
272
272
  }, numberOfActiveValues: this.activeValues.length, isCollapsed: this.isCollapsed, headingLevel: this.headingLevel, onToggleCollapse: () => (this.isCollapsed = !this.isCollapsed), headerRef: (el) => this.focusTargets.header.setTarget(el) }), this.renderBody())) : (index.h(facetPlaceholder.FacetPlaceholder, { numberOfValues: this.numberOfValues, isCollapsed: this.isCollapsed }))));
@@ -23,7 +23,7 @@ const AtomicFormatCurrency = class {
23
23
  }
24
24
  render() {
25
25
  if (this.error) {
26
- return (index.h("atomic-component-error", { key: 'af6838ce71462de1c33af19501ca0eabf434afe5', element: this.host, error: this.error }));
26
+ return (index.h("atomic-component-error", { key: '3c36da499a9f54d0cd2e9fde56e3cf8b7d560b89', element: this.host, error: this.error }));
27
27
  }
28
28
  }
29
29
  get host() { return index.getElement(this); }
@@ -35,7 +35,7 @@ const AtomicFormatNumber = class {
35
35
  }
36
36
  render() {
37
37
  if (this.error) {
38
- return (index.h("atomic-component-error", { key: 'b628208b9523337f2043180ce4b0c49e798462c7', element: this.host, error: this.error }));
38
+ return (index.h("atomic-component-error", { key: '6cd7c1ec24822765f7cfed26d1f14d5e6990cf12', element: this.host, error: this.error }));
39
39
  }
40
40
  }
41
41
  get host() { return index.getElement(this); }
@@ -38,7 +38,7 @@ const AtomicFormatUnit = class {
38
38
  }
39
39
  render() {
40
40
  if (this.error) {
41
- return (index.h("atomic-component-error", { key: 'b9661d5b5575fcc413456872fba86c5a51479de5', element: this.host, error: this.error }));
41
+ return (index.h("atomic-component-error", { key: '9bf183f8ac84ed4149a53d6c9cfb1ab11221700e', element: this.host, error: this.error }));
42
42
  }
43
43
  }
44
44
  get host() { return index.getElement(this); }
@@ -9,7 +9,7 @@ const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const stencilAccessibilityUtils = require('./stencil-accessibility-utils-aa4c9f6c.js');
11
11
  const tabUtils = require('./tab-utils-d202a0aa.js');
12
- const generatedAnswerCommon = require('./generated-answer-common-57443e50.js');
12
+ const generatedAnswerCommon = require('./generated-answer-common-3c400311.js');
13
13
  require('./dom-utils-d4790328.js');
14
14
  require('./event-utils-9bfcf3c5.js');
15
15
  require('./init-queue-a18aa323.js');
@@ -19,7 +19,7 @@ require('./utils-7153ae6b.js');
19
19
  require('./purify-85b542e2.js');
20
20
  require('./_commonjsHelpers-b3309d7b.js');
21
21
  require('./local-storage-utils-380ce22b.js');
22
- require('./slot-utils-086dacac.js');
22
+ require('./slot-utils-a30cb814.js');
23
23
  require('./stencil-heading-2faee1f7.js');
24
24
  require('./stencil-button-94b89acc.js');
25
25
  require('./stencil-button-style-ba779fe2.js');
@@ -7,7 +7,7 @@ const insight = require('@coveo/headless/insight');
7
7
  const debounceUtils = require('./debounce-utils-d26bcad4.js');
8
8
  const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const stencilAccessibilityUtils = require('./stencil-accessibility-utils-aa4c9f6c.js');
10
- const generatedAnswerCommon = require('./generated-answer-common-57443e50.js');
10
+ const generatedAnswerCommon = require('./generated-answer-common-3c400311.js');
11
11
  require('./dom-utils-d4790328.js');
12
12
  require('./event-utils-9bfcf3c5.js');
13
13
  require('./init-queue-a18aa323.js');
@@ -16,7 +16,7 @@ require('./utils-7153ae6b.js');
16
16
  require('./purify-85b542e2.js');
17
17
  require('./_commonjsHelpers-b3309d7b.js');
18
18
  require('./local-storage-utils-380ce22b.js');
19
- require('./slot-utils-086dacac.js');
19
+ require('./slot-utils-a30cb814.js');
20
20
  require('./stencil-heading-2faee1f7.js');
21
21
  require('./stencil-button-94b89acc.js');
22
22
  require('./stencil-button-style-ba779fe2.js');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const initQueue = require('./init-queue-a18aa323.js');
7
7
  const insight = require('@coveo/headless/insight');
8
- const analyticsConfig = require('./analytics-config-006dbe59.js');
8
+ const analyticsConfig = require('./analytics-config-81ebc0cd.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const replaceBreakpointUtils = require('./replace-breakpoint-utils-7a084f54.js');
11
11
  const store = require('./store-82abd941.js');
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-757bc886.js');
6
- const attributesSlot = require('./attributes-slot-afccc1fd.js');
6
+ const attributesSlot = require('./attributes-slot-4e7d7a75.js');
7
7
  const initializationUtils = require('./initialization-utils-92f1b080.js');
8
8
  const utils = require('./utils-7153ae6b.js');
9
9
  const insight = require('@coveo/headless/insight');
10
10
  const arrowDown = require('./arrow-down-419a0f0f.js');
11
11
  const arrowRight = require('./arrow-right-a3be291c.js');
12
12
  const smartSnippetSuggestionsCommon = require('./smart-snippet-suggestions-common-024c89b7.js');
13
- require('./slot-utils-086dacac.js');
13
+ require('./slot-utils-a30cb814.js');
14
14
  require('./dom-utils-d4790328.js');
15
15
  require('./event-utils-9bfcf3c5.js');
16
16
  require('./init-queue-a18aa323.js');
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-757bc886.js');
6
- const attributesSlot = require('./attributes-slot-afccc1fd.js');
6
+ const attributesSlot = require('./attributes-slot-4e7d7a75.js');
7
7
  const smartSnippetCommon = require('./smart-snippet-common-1fd0dad5.js');
8
8
  const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const utils = require('./utils-7153ae6b.js');
10
10
  const insight = require('@coveo/headless/insight');
11
- require('./slot-utils-086dacac.js');
11
+ require('./slot-utils-a30cb814.js');
12
12
  require('./stencil-button-94b89acc.js');
13
13
  require('./event-utils-9bfcf3c5.js');
14
14
  require('./stencil-button-style-ba779fe2.js');
@@ -8,8 +8,8 @@ const headless = require('@coveo/headless');
8
8
  const eventUtils = require('./event-utils-9bfcf3c5.js');
9
9
  const initializationUtils = require('./initialization-utils-92f1b080.js');
10
10
  const resultUtils = require('./result-utils-3313d650.js');
11
- const slotUtils = require('./slot-utils-086dacac.js');
12
- const attributesSlot = require('./attributes-slot-afccc1fd.js');
11
+ const slotUtils = require('./slot-utils-a30cb814.js');
12
+ const attributesSlot = require('./attributes-slot-4e7d7a75.js');
13
13
  const stencilItemLink = require('./stencil-item-link-9feaef61.js');
14
14
  const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
15
15
  require('./dom-utils-d4790328.js');
@@ -44,7 +44,7 @@ const AtomicIPXResultLink = class {
44
44
  }
45
45
  connectedCallback() {
46
46
  const slotName = 'attributes';
47
- this.hasDefaultSlot = slotUtils.getDefaultSlotContent(this.host).length > 0;
47
+ this.hasDefaultSlot = !!slotUtils.getDefaultSlotFromHost(this.host);
48
48
  this.linkAttributes = attributesSlot.getAttributesFromLinkSlot(this.host, slotName);
49
49
  }
50
50
  async onSelect() {
@@ -59,7 +59,7 @@ const AtomicIPXResultLink = class {
59
59
  const href = bueno.isUndefined(this.hrefTemplate)
60
60
  ? this.result.clickUri
61
61
  : resultUtils.buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
62
- return (index.h(stencilItemLink.LinkWithItemAnalytics, { key: '77fed7e0e199416e4141bff15106fcd0750d76e6', href: href, onSelect: () => this.onSelect(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (index.h("slot", null)) : (index.h("atomic-result-text", { field: "title", default: "no-title" }))));
62
+ return (index.h(stencilItemLink.LinkWithItemAnalytics, { key: 'b1fe73ffc76cf7543f40a400d5e7ae17b01141a8', href: href, onSelect: () => this.onSelect(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (index.h("slot", null)) : (index.h("atomic-result-text", { field: "title", default: "no-title" }))));
63
63
  }
64
64
  get host() { return index.getElement(this); }
65
65
  };
@@ -1 +1 @@
1
- {"file":"atomic-ipx-result-link.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,o8kEAAo8kE,CAAC;AACp+kE,kCAAe,sBAAsB;;;;;;;;;;;;MCiCxB,mBAAmB;;;;;IA6BvB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrBA,2BAAgB,CACd,+BAA+B,EAC/B,CAAC,eAAwB;YACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC,CACF,CACF,CAAC;QACF,IAAI,CAAC,qBAAqB,GAAGC,qCAA4B,CACvD,IAAI,CAAC,QAAQ,CAAC,MAAM,CACrB,CAAC;KACH;IAEM,iBAAiB;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAIC,+BAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QACnE,IAAI,CAAC,cAAc,GAAGC,wCAAyB,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,GAAGC,iBAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpBC,yCAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACEC,QAACC,qCAAqB,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,IAClBD,qBAAQ,KAERA,gCACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxF4B;IAA5BE,sCAAkB,EAAE;qDAAgC;AAG5B;IAAxBC,sCAAa,EAAE;mDAAkC;AACd;IAAnCC,iDAAwB,EAAE;8DAA+C;;;;;","names":["buildCustomEvent","loadIPXActionsHistoryActions","getDefaultSlotContent","getAttributesFromLinkSlot","isUndefined","buildStringTemplateFromResult","h","LinkWithItemAnalytics","InitializeBindings","ResultContext","InteractiveResultContext"],"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.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,o8kEAAo8kE,CAAC;AACp+kE,kCAAe,sBAAsB;;;;;;;;;;;;MCiCxB,mBAAmB;;;;;IA6BvB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrBA,2BAAgB,CACd,+BAA+B,EAC/B,CAAC,eAAwB;YACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SACxC,CACF,CACF,CAAC;QACF,IAAI,CAAC,qBAAqB,GAAGC,qCAA4B,CACvD,IAAI,CAAC,QAAQ,CAAC,MAAM,CACrB,CAAC;KACH;IAEM,iBAAiB;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,CAAC,CAACC,gCAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,GAAGC,wCAAyB,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,GAAGC,iBAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpBC,yCAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACEC,QAACC,qCAAqB,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,IAClBD,qBAAQ,KAERA,gCACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxF4B;IAA5BE,sCAAkB,EAAE;qDAAgC;AAG5B;IAAxBC,sCAAa,EAAE;mDAAkC;AACd;IAAnCC,iDAAwB,EAAE;8DAA+C;;;;;","names":["buildCustomEvent","loadIPXActionsHistoryActions","getDefaultSlotFromHost","getAttributesFromLinkSlot","isUndefined","buildStringTemplateFromResult","h","LinkWithItemAnalytics","InitializeBindings","ResultContext","InteractiveResultContext"],"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}
@@ -309,7 +309,7 @@ const AtomicNumericFacet = class {
309
309
  }
310
310
  render() {
311
311
  const { searchStatusState: { firstSearchExecuted, hasError }, bindings: { i18n }, } = this;
312
- return (index.h(facetGuard.FacetGuard, { key: '95f72de0f0123a8c7f6dca33540552016b17fa80', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
312
+ return (index.h(facetGuard.FacetGuard, { key: '333e7325e16ce23a1d39baad905ea96f649ff007', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (index.h(facetPlaceholder.FacetContainer, null, index.h(facetPlaceholder.FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
313
313
  this.focusTarget.focusAfterSearch();
314
314
  if (this.filterState?.range) {
315
315
  this.filter?.clear();
@@ -590,7 +590,7 @@ const AtomicQuickviewModal = class {
590
590
  });
591
591
  }
592
592
  render() {
593
- return (index.h("atomic-modal", { key: '84b950ecdc79dd6a1b53d3af44c62219740bc572', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: exportParts.ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
593
+ return (index.h("atomic-modal", { key: '8ff1438b0d7ff43933a1fc0800891a7cb7065043', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: exportParts.ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
594
594
  }
595
595
  static get watchers() { return {
596
596
  "highlightKeywords": ["watchHighlightKeywords"]
@@ -116,7 +116,7 @@ const AtomicQuickview = class {
116
116
  }
117
117
  render() {
118
118
  if (this.quickviewState.resultHasPreview) {
119
- return (index.h(stencilButton.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 }, index.h("atomic-icon", { key: '2d96d58b8e4b63f21bf8f40c2a5383d7711fa59f', part: "icon", class: "flex w-5 justify-center", icon: quickview.QuickviewIcon })));
119
+ return (index.h(stencilButton.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 }, index.h("atomic-icon", { key: 'fa4444026db63add82d7906e9fc0636c3a94e0d8', part: "icon", class: "flex w-5 justify-center", icon: quickview.QuickviewIcon })));
120
120
  }
121
121
  }
122
122
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-757bc886.js');
6
6
  const initQueue = require('./init-queue-a18aa323.js');
7
7
  const recommendation = require('@coveo/headless/recommendation');
8
- const analyticsConfig = require('./analytics-config-006dbe59.js');
8
+ const analyticsConfig = require('./analytics-config-81ebc0cd.js');
9
9
  const propsUtils = require('./props-utils-1e4ba1b0.js');
10
10
  const store = require('./store-82abd941.js');
11
11
  require('./dayjs.min-8b80e6d1.js');
@@ -139,7 +139,7 @@ const AtomicResultChildren = class {
139
139
  return (index.h(showHideButton.ChildrenWrapper, { hasChildren: children.length > 0 }, children.map((child, i) => this.renderChild(child, i === children.length - 1))));
140
140
  }
141
141
  render() {
142
- return (index.h(showHideButton.ResultChildrenGuard, { key: '78cc57aacc5e31fe241f290e38a2fe363ca22852', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
142
+ return (index.h(showHideButton.ResultChildrenGuard, { key: 'eb224dfff016980d3d7aa281e6a87c3172286c78', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
143
143
  }
144
144
  get host() { return index.getElement(this); }
145
145
  };
@@ -104,7 +104,7 @@ const AtomicResultFieldsList = class {
104
104
  }
105
105
  }
106
106
  render() {
107
- return index.h(index.Host, { key: '8a554da4b25cd72108826703cfc60e26c74a7562' });
107
+ return index.h(index.Host, { key: '936654b1f7aa4fd793eecd6fb508e14b8c764bb0' });
108
108
  }
109
109
  get host() { return index.getElement(this); }
110
110
  };
@@ -7,8 +7,8 @@ const bueno = require('@coveo/bueno');
7
7
  const eventUtils = require('./event-utils-9bfcf3c5.js');
8
8
  const initializationUtils = require('./initialization-utils-92f1b080.js');
9
9
  const resultUtils = require('./result-utils-3313d650.js');
10
- const slotUtils = require('./slot-utils-086dacac.js');
11
- const attributesSlot = require('./attributes-slot-afccc1fd.js');
10
+ const slotUtils = require('./slot-utils-a30cb814.js');
11
+ const attributesSlot = require('./attributes-slot-4e7d7a75.js');
12
12
  const stencilItemLink = require('./stencil-item-link-9feaef61.js');
13
13
  const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
14
14
  require('./dom-utils-d4790328.js');
@@ -43,14 +43,14 @@ const AtomicResultLink = class {
43
43
  }
44
44
  connectedCallback() {
45
45
  const slotName = 'attributes';
46
- this.hasDefaultSlot = slotUtils.getDefaultSlotContent(this.host).length > 0;
46
+ this.hasDefaultSlot = !!slotUtils.getDefaultSlotFromHost(this.host);
47
47
  this.linkAttributes = attributesSlot.getAttributesFromLinkSlot(this.host, slotName);
48
48
  }
49
49
  render() {
50
50
  const href = bueno.isUndefined(this.hrefTemplate)
51
51
  ? this.result.clickUri
52
52
  : resultUtils.buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
53
- return (index.h(stencilItemLink.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 ? (index.h("slot", null)) : (index.h("atomic-result-text", { field: "title", default: "no-title" }))));
53
+ return (index.h(stencilItemLink.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 ? (index.h("slot", null)) : (index.h("atomic-result-text", { field: "title", default: "no-title" }))));
54
54
  }
55
55
  get host() { return index.getElement(this); }
56
56
  };
@@ -1 +1 @@
1
- {"file":"atomic-result-link.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,g5kEAAg5kE,CAAC;AAC76kE,+BAAe,mBAAmB;;;;;;;;;;;;MC4BrB,gBAAgB;;;;;IA0BpB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrBA,2BAAgB,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,GAAIC,+BAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QACnE,IAAI,CAAC,cAAc,GAAGC,wCAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACtE;IAEM,MAAM;QACX,MAAM,IAAI,GAAGC,iBAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpBC,yCAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACEC,QAACC,qCAAqB,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,IAClBD,qBAAQ,KAERA,gCACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxE4B;IAA5BE,sCAAkB,EAAE;kDAA4B;AAGxB;IAAxBC,sCAAa,EAAE;gDAAkC;AACd;IAAnCC,iDAAwB,EAAE;2DAA+C;;;;;","names":["buildCustomEvent","getDefaultSlotContent","getAttributesFromLinkSlot","isUndefined","buildStringTemplateFromResult","h","LinkWithItemAnalytics","InitializeBindings","ResultContext","InteractiveResultContext"],"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.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,g5kEAAg5kE,CAAC;AAC76kE,+BAAe,mBAAmB;;;;;;;;;;;;MC4BrB,gBAAgB;;;;;IA0BpB,UAAU;QACf,IAAI,CAAC,IAAI,CAAC,aAAa,CACrBA,2BAAgB,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,CAACC,gCAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,GAAGC,wCAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACtE;IAEM,MAAM;QACX,MAAM,IAAI,GAAGC,iBAAW,CAAC,IAAI,CAAC,YAAY,CAAC;cACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;cACpBC,yCAA6B,CAC3B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CACd,CAAC;QAEN,QACEC,QAACC,qCAAqB,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,IAClBD,qBAAQ,KAERA,gCACE,KAAK,EAAC,OAAO,EACb,OAAO,EAAC,UAAU,GACE,CACvB,CACqB,EACxB;KACH;;;AAxE4B;IAA5BE,sCAAkB,EAAE;kDAA4B;AAGxB;IAAxBC,sCAAa,EAAE;gDAAkC;AACd;IAAnCC,iDAAwB,EAAE;2DAA+C;;;;;","names":["buildCustomEvent","getDefaultSlotFromHost","getAttributesFromLinkSlot","isUndefined","buildStringTemplateFromResult","h","LinkWithItemAnalytics","InitializeBindings","ResultContext","InteractiveResultContext"],"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}
@@ -195,7 +195,7 @@ const AtomicResultList = class {
195
195
  render() {
196
196
  this.resultListCommon.updateBreakpoints();
197
197
  const listClasses = this.computeListDisplayClasses();
198
- return (index.h(TabGuard, { key: 'b0ff0e3012ca64073a2ff66eeb16bc98e664dc50', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, index.h(itemListGuard.ItemListGuard, { key: '2edd5822368238752cfd611eed25022abb81fbd8', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, index.h(stencilDisplayWrapper.DisplayWrapper, { key: 'c29a9d2af689775616355a42d5fe7f43bcf51ea8', display: this.display, listClasses: listClasses }, index.h(stencilPlaceholders.ResultsPlaceholdersGuard, { key: 'e62e986ea55a9349467b8d32c937281fc3434f44', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), index.h(stencilDisplayWrapper.ItemDisplayGuard, { key: 'f12f2f7b1d0a2e6ee7c8a59ff2a6ba8f31b8bb5a', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
198
+ return (index.h(TabGuard, { key: 'c8b1ca9302ce0e9cfd5114067cb686fa27b6206f', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, index.h(itemListGuard.ItemListGuard, { key: 'b6db922875d6156b42e0060ad2218bb82f9ed196', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, index.h(stencilDisplayWrapper.DisplayWrapper, { key: '03ee6cd85a8bc9e94005082b24b42fb5ca893907', display: this.display, listClasses: listClasses }, index.h(stencilPlaceholders.ResultsPlaceholdersGuard, { key: 'b6a6020f7e40bddb2365c6ca6ef3ee67c5598758', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), index.h(stencilDisplayWrapper.ItemDisplayGuard, { key: 'dea4c3d009fb28a556b81ba8d2fba8be5e02ed49', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
199
199
  ? this.renderAsTable()
200
200
  : this.display === 'grid'
201
201
  ? this.renderAsGrid()
@@ -111,7 +111,7 @@ const AtomicResultTablePlaceholder = class {
111
111
  return displayOptions.getItemDisplayClasses('table', this.density, this.imageSize);
112
112
  }
113
113
  render() {
114
- return (index.h("table", { key: 'aaef2b349a7fd003ac467e35bd8f252a9ebf948d', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, index.h("thead", { key: '52059a56d86650fb006ef5bb5d58e22da90ec522' }, index.h("tr", { key: '95c0b6ea3fffbe42413c8acbe20db317162576b9' }, index.h("th", { key: '96c14b820260010d8de3b05898c00ff6d15cc0ef' }, index.h("div", { key: '0055b9fea2ffce1a7546c5bb6216bc3bb5a317db', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), index.h("th", { key: '2c617a8d714305de201fbfdfac6dd52f8cb69148' }, index.h("div", { key: '068b1cc654f27b33cdc502d416daf1c081d4cf19', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), index.h("th", { key: '55a625ccff48da33184579efda097724d200f7ac' }, index.h("div", { key: '0a843d33317e3d86b9229cc9a73e1a0b2087e34e', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), index.h("tbody", { key: '62ca6c923527954dc76cd5c398fe7ab04772f8a7' }, Array.from({ length: this.rows }, () => (index.h("tr", null, index.h("td", null, index.h("div", { class: `mb-6 h-8 ${placeholderClasses}`, style: { width: '22.875rem' } }), index.h("div", { class: `mb-2 h-5 ${placeholderClasses}`, style: { width: '23.75rem' } }), index.h("div", { class: `h-5 ${placeholderClasses}`, style: { width: '11.5rem' } })), index.h("td", null, index.h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '11rem' } })), index.h("td", null, index.h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '4.875rem' } }))))))));
114
+ return (index.h("table", { key: 'ed3f575082ec1c2a9927251e2b09d5c0f70d78b5', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, index.h("thead", { key: 'd48900fa9c63a0a201379e034efce277095884e2' }, index.h("tr", { key: '46641a6003cadf5c7fc8dfad1ab9d1ef11c90190' }, index.h("th", { key: '617b903b6d8ffde30dcbb3e4dcbaaa4e377d3b19' }, index.h("div", { key: 'd082c63c3bde168ef9395afb9e0dd50fcb3a6825', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), index.h("th", { key: '2fc5a593908aad27a251272284bce7b55ad521e6' }, index.h("div", { key: 'a49a28d807240f58b43fbe8a646f9de2218e34f9', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), index.h("th", { key: '96676c1b68d7ab25dc14b9331642f5288d0f2b53' }, index.h("div", { key: '648e50f2fa4ba0214bc0b220d38520c86580013c', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), index.h("tbody", { key: '98adcdb91e5e58c6dd1cc09759e6cc0e7a08bf31' }, Array.from({ length: this.rows }, () => (index.h("tr", null, index.h("td", null, index.h("div", { class: `mb-6 h-8 ${placeholderClasses}`, style: { width: '22.875rem' } }), index.h("div", { class: `mb-2 h-5 ${placeholderClasses}`, style: { width: '23.75rem' } }), index.h("div", { class: `h-5 ${placeholderClasses}`, style: { width: '11.5rem' } })), index.h("td", null, index.h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '11rem' } })), index.h("td", null, index.h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '4.875rem' } }))))))));
115
115
  }
116
116
  };
117
117
  AtomicResultTablePlaceholder.style = AtomicResultTablePlaceholderStyle0;
@@ -9,7 +9,7 @@ const arrowRight = require('./arrow-right-a3be291c.js');
9
9
  const initializationUtils = require('./initialization-utils-92f1b080.js');
10
10
  const stencilAccessibilityUtils = require('./stencil-accessibility-utils-aa4c9f6c.js');
11
11
  const utils = require('./utils-7153ae6b.js');
12
- const attributesSlot = require('./attributes-slot-afccc1fd.js');
12
+ const attributesSlot = require('./attributes-slot-4e7d7a75.js');
13
13
  const stencilItemLink = require('./stencil-item-link-9feaef61.js');
14
14
  const resultTemplateDecorators = require('./result-template-decorators-432d11a9.js');
15
15
  require('./dom-utils-d4790328.js');
@@ -18,7 +18,7 @@ require('./init-queue-a18aa323.js');
18
18
  require('./initialization-lit-stencil-common-utils-730030b0.js');
19
19
  require('./purify-85b542e2.js');
20
20
  require('./_commonjsHelpers-b3309d7b.js');
21
- require('./slot-utils-086dacac.js');
21
+ require('./slot-utils-a30cb814.js');
22
22
  require('./xss-utils-f0f93bcb.js');
23
23
  require('./stencil-item-decorators-43a96f33.js');
24
24
 
@@ -70,7 +70,7 @@ const AtomicSearchBoxQuerySuggestions = class {
70
70
  }
71
71
  render() {
72
72
  if (this.error) {
73
- return (index.h("atomic-component-error", { key: 'd8ace632cbbd5924ed771125cea0b395b021fe3e', element: this.host, error: this.error }));
73
+ return (index.h("atomic-component-error", { key: 'c5e8f0a3254a31cdae54c36868f70432c1673888', element: this.host, error: this.error }));
74
74
  }
75
75
  }
76
76
  get host() { return index.getElement(this); }
@@ -222,7 +222,7 @@ const AtomicSearchBoxRecentQueries = class {
222
222
  }
223
223
  render() {
224
224
  if (this.error) {
225
- return (index.h("atomic-component-error", { key: '8b84892b677e093e1d3a077ba76851ccbbc6c0b1', element: this.host, error: this.error }));
225
+ return (index.h("atomic-component-error", { key: 'a428e82c6ce29e81704777cbbf3bea98937b906a', element: this.host, error: this.error }));
226
226
  }
227
227
  }
228
228
  get host() { return index.getElement(this); }
@@ -14,7 +14,7 @@ const utils = require('./utils-7153ae6b.js');
14
14
  const stencilSuggestionManager = require('./stencil-suggestion-manager-2cba6d69.js');
15
15
  const stencilButton = require('./stencil-button-94b89acc.js');
16
16
  const suggestionsUtils = require('./suggestions-utils-61000808.js');
17
- const slotUtils = require('./slot-utils-086dacac.js');
17
+ const slotUtils = require('./slot-utils-a30cb814.js');
18
18
  require('./dom-utils-d4790328.js');
19
19
  require('./event-utils-9bfcf3c5.js');
20
20
  require('./init-queue-a18aa323.js');
@@ -429,7 +429,7 @@ const AtomicSearchBox = class {
429
429
  : this.bindings.i18n.t('query-suggestions-unavailable');
430
430
  }
431
431
  renderSlotContent() {
432
- const hasDefaultSlot = slotUtils.getDefaultSlotContent(this.host).length > 0;
432
+ const hasDefaultSlot = !!slotUtils.getDefaultSlotFromHost(this.host);
433
433
  if (hasDefaultSlot) {
434
434
  return index.h("slot", null);
435
435
  }
@@ -445,14 +445,14 @@ const AtomicSearchBox = class {
445
445
  if (!this.suggestionManager.suggestions.length) {
446
446
  this.registerSearchboxSuggestionEvents();
447
447
  }
448
- return (index.h(index.Host, { key: '653748f17f3cec7825222eb6a15aa4fe5de96cb7' }, this.renderAbsolutePositionSpacer(), [
449
- index.h(stencilSuggestionManager.SearchBoxWrapper, { key: 'd421e28e74a98ec0329ed4518ee8d9e0a82b9eb3', disabled: isDisabled, onFocusout: (event) => {
448
+ return (index.h(index.Host, { key: '6a53ad9feb241283fd9bcb638b8f0f703691937a' }, this.renderAbsolutePositionSpacer(), [
449
+ index.h(stencilSuggestionManager.SearchBoxWrapper, { key: 'c704424a22aa17ead0ca97f0104e336df2c57475', disabled: isDisabled, onFocusout: (event) => {
450
450
  if (!utils.isFocusingOut(event)) {
451
451
  return;
452
452
  }
453
453
  this.suggestionManager.clearSuggestions();
454
454
  this.isExpanded = false;
455
- } }, this.renderTextBox(searchLabel), index.h(SubmitButton, { key: '3e2376be5243dd20c29c1581046c8c14cba53aaa', bindings: this.bindings, disabled: isDisabled, onClick: () => {
455
+ } }, this.renderTextBox(searchLabel), index.h(SubmitButton, { key: 'ee7fc79825b31c970bad13d6568e0a91b01ff60e', bindings: this.bindings, disabled: isDisabled, onClick: () => {
456
456
  this.searchBox.submit();
457
457
  this.suggestionManager.clearSuggestions();
458
458
  } }), this.renderSuggestions()),