@coveo/atomic 3.33.8-pre.b74eafaaaf → 3.33.8-pre.b914715b30

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 (199) 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-insight-pager.js +38 -2
  12. package/dist/atomic/components/atomic-insight-pager.js.map +1 -1
  13. package/dist/atomic/components/atomic-numeric-facet.js +1 -1
  14. package/dist/atomic/components/atomic-query-error.js +1 -1
  15. package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
  16. package/dist/atomic/components/atomic-quickview.js +1 -1
  17. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  18. package/dist/atomic/components/atomic-refine-toggle.js +1 -1
  19. package/dist/atomic/components/atomic-relevance-inspector2.js +2 -2
  20. package/dist/atomic/components/atomic-result-children.js +1 -1
  21. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  22. package/dist/atomic/components/atomic-result-link.js +1 -1
  23. package/dist/atomic/components/atomic-result-list.js +1 -1
  24. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  25. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
  26. package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
  27. package/dist/atomic/components/atomic-search-box.js +4 -4
  28. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  29. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  30. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  31. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  32. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +18 -11
  33. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +51 -14
  34. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +19 -10
  35. package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +25 -11
  36. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
  37. package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
  38. package/dist/atomic/components/components/common/layout/layout-styles-controller.js +40 -0
  39. package/dist/atomic/components/components/common/layout/mobile-breakpoint-controller.js +26 -0
  40. package/dist/atomic/components/components/search/atomic-pager/atomic-pager.js +188 -0
  41. package/dist/atomic/components/components/search/index.js +1 -0
  42. package/dist/atomic/components/components/search/lazy-index.js +1 -0
  43. package/dist/atomic/components/global/environment.js +1 -1
  44. package/dist/atomic/components/index.js.map +1 -1
  45. package/dist/atomic/{p-ae060711.entry.js → p-00e5bb15.entry.js} +2 -2
  46. package/dist/atomic/{p-330e6e7c.entry.js → p-3af5c567.entry.js} +2 -2
  47. package/dist/atomic/{p-75e00690.entry.js → p-45c4685e.entry.js} +2 -2
  48. package/dist/atomic/{p-7a625c7e.entry.js → p-4915faeb.entry.js} +2 -2
  49. package/dist/atomic/{p-02d3a2ef.entry.js → p-4bb56ba5.entry.js} +2 -2
  50. package/dist/atomic/{p-52ba404c.entry.js → p-4c30ca3e.entry.js} +2 -2
  51. package/dist/atomic/{p-534b8550.entry.js → p-4d96e1be.entry.js} +2 -2
  52. package/dist/atomic/{p-aa2a81fd.entry.js → p-4e9d1f9e.entry.js} +2 -2
  53. package/dist/atomic/{p-31f1e44e.entry.js → p-516b8165.entry.js} +2 -2
  54. package/dist/atomic/p-593903ec.entry.js +2 -0
  55. package/dist/atomic/p-593903ec.entry.js.map +1 -0
  56. package/dist/atomic/{p-877d35b1.entry.js → p-5adbf098.entry.js} +2 -2
  57. package/dist/atomic/{p-4b3d253b.entry.js → p-65373475.entry.js} +2 -2
  58. package/dist/atomic/{p-82450237.js → p-6a8dd69a.js} +2 -2
  59. package/dist/atomic/{p-3c8d109e.entry.js → p-6f988841.entry.js} +2 -2
  60. package/dist/atomic/{p-b28011e6.entry.js → p-71bb8125.entry.js} +2 -2
  61. package/dist/atomic/{p-de066001.entry.js → p-757de797.entry.js} +2 -2
  62. package/dist/atomic/{p-78b70622.entry.js → p-8acb1466.entry.js} +2 -2
  63. package/dist/atomic/{p-93e29b24.entry.js → p-9883415e.entry.js} +2 -2
  64. package/dist/atomic/{p-7b899b57.entry.js → p-a02b1209.entry.js} +2 -2
  65. package/dist/atomic/{p-d00a12e9.entry.js → p-b4ad3036.entry.js} +2 -2
  66. package/dist/atomic/{p-a760d9f9.entry.js → p-be1b98a6.entry.js} +2 -2
  67. package/dist/atomic/{p-7dfcd6af.entry.js → p-bf50b64d.entry.js} +2 -2
  68. package/dist/atomic/{p-3b3dfa51.entry.js → p-bffe95c6.entry.js} +2 -2
  69. package/dist/atomic/{p-c49cfa0c.entry.js → p-d11b2b24.entry.js} +2 -2
  70. package/dist/atomic/{p-f22bcb8c.entry.js → p-d2d22ab2.entry.js} +2 -2
  71. package/dist/atomic/{p-021f01d6.entry.js → p-e8d5e852.entry.js} +2 -2
  72. package/dist/atomic/{p-7b0b9e9b.entry.js → p-f073a78d.entry.js} +2 -2
  73. package/dist/atomic/{p-c88a3d2d.entry.js → p-fb7ad34b.entry.js} +2 -2
  74. package/dist/cjs/_loader.cjs.js +1 -1
  75. package/dist/cjs/{analytics-config-91d76002.js → analytics-config-1937db62.js} +2 -2
  76. package/dist/cjs/{analytics-config-91d76002.js.map → analytics-config-1937db62.js.map} +1 -1
  77. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  78. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  79. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  80. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  81. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  82. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  83. package/dist/cjs/atomic-insight-pager.cjs.entry.js +41 -7
  84. package/dist/cjs/atomic-insight-pager.cjs.entry.js.map +1 -1
  85. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
  86. package/dist/cjs/atomic-query-error.cjs.entry.js +1 -1
  87. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
  88. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  89. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  90. package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
  91. package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
  92. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
  93. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  94. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  95. package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
  96. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  97. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +1 -1
  98. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
  99. package/dist/cjs/atomic-search-box.cjs.entry.js +4 -4
  100. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  101. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  102. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  103. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  104. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  105. package/dist/cjs/atomic.cjs.js +1 -1
  106. package/dist/cjs/index-757bc886.js +0 -4
  107. package/dist/cjs/version.cjs.js +2 -2
  108. package/dist/esm/_loader.js +1 -1
  109. package/dist/esm/{analytics-config-5742f5ee.js → analytics-config-968cae64.js} +2 -2
  110. package/dist/esm/{analytics-config-5742f5ee.js.map → analytics-config-968cae64.js.map} +1 -1
  111. package/dist/esm/atomic-category-facet.entry.js +1 -1
  112. package/dist/esm/atomic-facet.entry.js +1 -1
  113. package/dist/esm/atomic-format-currency.entry.js +1 -1
  114. package/dist/esm/atomic-format-number.entry.js +1 -1
  115. package/dist/esm/atomic-format-unit.entry.js +1 -1
  116. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  117. package/dist/esm/atomic-insight-pager.entry.js +38 -4
  118. package/dist/esm/atomic-insight-pager.entry.js.map +1 -1
  119. package/dist/esm/atomic-numeric-facet.entry.js +1 -1
  120. package/dist/esm/atomic-query-error.entry.js +1 -1
  121. package/dist/esm/atomic-quickview-modal.entry.js +1 -1
  122. package/dist/esm/atomic-quickview.entry.js +1 -1
  123. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  124. package/dist/esm/atomic-refine-modal.entry.js +1 -1
  125. package/dist/esm/atomic-refine-toggle.entry.js +1 -1
  126. package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
  127. package/dist/esm/atomic-result-children.entry.js +1 -1
  128. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  129. package/dist/esm/atomic-result-link.entry.js +1 -1
  130. package/dist/esm/atomic-result-list.entry.js +1 -1
  131. package/dist/esm/atomic-result-placeholder_8.entry.js +1 -1
  132. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
  133. package/dist/esm/atomic-search-box.entry.js +4 -4
  134. package/dist/esm/atomic-search-interface.entry.js +1 -1
  135. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  136. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  137. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  138. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  139. package/dist/esm/atomic.js +1 -1
  140. package/dist/esm/index-3f35faca.js +0 -4
  141. package/dist/esm/version.js +2 -2
  142. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
  143. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +29 -2
  144. package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +3 -3
  145. package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +5 -3
  146. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
  147. package/dist/types/components/common/layout/layout-styles-controller.d.ts +22 -0
  148. package/dist/types/components/common/layout/mobile-breakpoint-controller.d.ts +18 -0
  149. package/dist/types/components/search/atomic-pager/atomic-pager.d.ts +28 -16
  150. package/dist/types/components/search/index.d.ts +1 -0
  151. package/dist/types/components.d.ts +0 -65
  152. package/docs/atomic-docs.json +1 -167
  153. package/package.json +3 -3
  154. package/dist/atomic/components/atomic-pager.d.ts +0 -11
  155. package/dist/atomic/components/atomic-pager.js +0 -134
  156. package/dist/atomic/components/atomic-pager.js.map +0 -1
  157. package/dist/atomic/components/stencil-pager-navigation.js +0 -42
  158. package/dist/atomic/components/stencil-pager-navigation.js.map +0 -1
  159. package/dist/atomic/p-211d7d6a.js +0 -2
  160. package/dist/atomic/p-211d7d6a.js.map +0 -1
  161. package/dist/atomic/p-fa8b7c4c.entry.js +0 -2
  162. package/dist/atomic/p-fa8b7c4c.entry.js.map +0 -1
  163. package/dist/atomic/p-fcf3f7d7.entry.js +0 -2
  164. package/dist/atomic/p-fcf3f7d7.entry.js.map +0 -1
  165. package/dist/cjs/atomic-pager.cjs.entry.js +0 -121
  166. package/dist/cjs/atomic-pager.cjs.entry.js.map +0 -1
  167. package/dist/cjs/stencil-pager-navigation-c20b8a95.js +0 -48
  168. package/dist/cjs/stencil-pager-navigation-c20b8a95.js.map +0 -1
  169. package/dist/esm/atomic-pager.entry.js +0 -117
  170. package/dist/esm/atomic-pager.entry.js.map +0 -1
  171. package/dist/esm/stencil-pager-navigation-7261a834.js +0 -42
  172. package/dist/esm/stencil-pager-navigation-7261a834.js.map +0 -1
  173. /package/dist/atomic/{p-ae060711.entry.js.map → p-00e5bb15.entry.js.map} +0 -0
  174. /package/dist/atomic/{p-330e6e7c.entry.js.map → p-3af5c567.entry.js.map} +0 -0
  175. /package/dist/atomic/{p-75e00690.entry.js.map → p-45c4685e.entry.js.map} +0 -0
  176. /package/dist/atomic/{p-7a625c7e.entry.js.map → p-4915faeb.entry.js.map} +0 -0
  177. /package/dist/atomic/{p-02d3a2ef.entry.js.map → p-4bb56ba5.entry.js.map} +0 -0
  178. /package/dist/atomic/{p-52ba404c.entry.js.map → p-4c30ca3e.entry.js.map} +0 -0
  179. /package/dist/atomic/{p-534b8550.entry.js.map → p-4d96e1be.entry.js.map} +0 -0
  180. /package/dist/atomic/{p-aa2a81fd.entry.js.map → p-4e9d1f9e.entry.js.map} +0 -0
  181. /package/dist/atomic/{p-31f1e44e.entry.js.map → p-516b8165.entry.js.map} +0 -0
  182. /package/dist/atomic/{p-877d35b1.entry.js.map → p-5adbf098.entry.js.map} +0 -0
  183. /package/dist/atomic/{p-4b3d253b.entry.js.map → p-65373475.entry.js.map} +0 -0
  184. /package/dist/atomic/{p-82450237.js.map → p-6a8dd69a.js.map} +0 -0
  185. /package/dist/atomic/{p-3c8d109e.entry.js.map → p-6f988841.entry.js.map} +0 -0
  186. /package/dist/atomic/{p-b28011e6.entry.js.map → p-71bb8125.entry.js.map} +0 -0
  187. /package/dist/atomic/{p-de066001.entry.js.map → p-757de797.entry.js.map} +0 -0
  188. /package/dist/atomic/{p-78b70622.entry.js.map → p-8acb1466.entry.js.map} +0 -0
  189. /package/dist/atomic/{p-93e29b24.entry.js.map → p-9883415e.entry.js.map} +0 -0
  190. /package/dist/atomic/{p-7b899b57.entry.js.map → p-a02b1209.entry.js.map} +0 -0
  191. /package/dist/atomic/{p-d00a12e9.entry.js.map → p-b4ad3036.entry.js.map} +0 -0
  192. /package/dist/atomic/{p-a760d9f9.entry.js.map → p-be1b98a6.entry.js.map} +0 -0
  193. /package/dist/atomic/{p-7dfcd6af.entry.js.map → p-bf50b64d.entry.js.map} +0 -0
  194. /package/dist/atomic/{p-3b3dfa51.entry.js.map → p-bffe95c6.entry.js.map} +0 -0
  195. /package/dist/atomic/{p-c49cfa0c.entry.js.map → p-d11b2b24.entry.js.map} +0 -0
  196. /package/dist/atomic/{p-f22bcb8c.entry.js.map → p-d2d22ab2.entry.js.map} +0 -0
  197. /package/dist/atomic/{p-021f01d6.entry.js.map → p-e8d5e852.entry.js.map} +0 -0
  198. /package/dist/atomic/{p-7b0b9e9b.entry.js.map → p-f073a78d.entry.js.map} +0 -0
  199. /package/dist/atomic/{p-c88a3d2d.entry.js.map → p-fb7ad34b.entry.js.map} +0 -0
@@ -289,7 +289,7 @@ const AtomicNumericFacet$1 = /*@__PURE__*/ proxyCustomElement(class AtomicNumeri
289
289
  }
290
290
  render() {
291
291
  const { searchStatusState: { firstSearchExecuted, hasError }, bindings: { i18n }, } = this;
292
- return (h(FacetGuard, { key: '481b5d0d304d6e7f6696faa14dc0dbb501f0490d', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
292
+ return (h(FacetGuard, { key: '15b03c400b65ced232766d9ef8a7a9b2fbff9c98', enabled: this.enabled, firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: this.shouldRenderFacet }, firstSearchExecuted ? (h(FacetContainer, null, h(FacetHeader, { i18n: i18n, label: this.label, onClearFilters: () => {
293
293
  this.focusTarget.focusAfterSearch();
294
294
  if (this.filterState?.range) {
295
295
  this.filter?.clear();
@@ -37,7 +37,7 @@ const AtomicQueryError$1 = /*@__PURE__*/ proxyCustomElement(class AtomicQueryErr
37
37
  if (hasError) {
38
38
  this.ariaMessage = getAriaMessageFromErrorType(i18n, organizationId, url, error?.type);
39
39
  }
40
- return (h(QueryErrorGuard, { key: 'ffb2ce6b51bbb932a641ca4913d9e526f83c07cb', hasError: hasError }, h(QueryErrorContainer, { key: 'c59053c9d4ef036c9875816343bbdc73845410c3' }, h(QueryErrorIcon, { key: '278d4b8216dbfa149a041fc2cc16e8799e1c0810', errorType: error?.type }), h(QueryErrorTitle, { key: '6aa2ae0ac592206ff2e29d70810f0789132e556a', errorType: error?.type, i18n: i18n, organizationId: organizationId }), h(QueryErrorDescription, { key: '0a7af988b7769aaa45d8659cd7782a3c0321aa30', i18n: i18n, organizationId: organizationId, url: url, errorType: error?.type }), h(QueryErrorShowMore, { key: 'c12b72ed1b843f60d8709fe6212d902b3c920c28', link: h(QueryErrorLink, { i18n: i18n, errorType: error?.type }), onShowMore: () => (this.showMoreInfo = !this.showMoreInfo), i18n: i18n }), h(QueryErrorDetails, { key: 'e772576f173f5c67a7a2e6d4a824bf454c2c2370', error: error, show: this.showMoreInfo }))));
40
+ return (h(QueryErrorGuard, { key: '03bbb522c2940aba7bd608dc2f8c5f3ccfcdc4bb', hasError: hasError }, h(QueryErrorContainer, { key: '527e7454327429302b58c227bdec3b48fbbe4711' }, h(QueryErrorIcon, { key: '6f64bd01c47cbca966c9f579de76a2a0037918b7', errorType: error?.type }), h(QueryErrorTitle, { key: '434d6a8521b4e5684f3d4eef383d7eb202ee3a23', errorType: error?.type, i18n: i18n, organizationId: organizationId }), h(QueryErrorDescription, { key: 'e81443b64f891b0db01403b7962ce3694fc3c4b7', i18n: i18n, organizationId: organizationId, url: url, errorType: error?.type }), h(QueryErrorShowMore, { key: '40b280ffce9d9041425f8955d9ea0b1791d300bb', link: h(QueryErrorLink, { i18n: i18n, errorType: error?.type }), onShowMore: () => (this.showMoreInfo = !this.showMoreInfo), i18n: i18n }), h(QueryErrorDetails, { key: '26091175ee3103ea36f3acbcf3cda528590a376a', error: error, show: this.showMoreInfo }))));
41
41
  }
42
42
  static get style() { return AtomicQueryErrorStyle0; }
43
43
  }, [1, "atomic-query-error", {
@@ -582,7 +582,7 @@ const AtomicQuickviewModal = /*@__PURE__*/ proxyCustomElement(class AtomicQuickv
582
582
  });
583
583
  }
584
584
  render() {
585
- return (h("atomic-modal", { key: '39961d2d82abff5de836cc62847719c3c8e42a8a', 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()));
585
+ return (h("atomic-modal", { key: '9b31f319fb04a44adb84434f2e09bc211b7cf03a', 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()));
586
586
  }
587
587
  static get watchers() { return {
588
588
  "highlightKeywords": ["watchHighlightKeywords"]
@@ -106,7 +106,7 @@ const AtomicQuickview$1 = /*@__PURE__*/ proxyCustomElement(class AtomicQuickview
106
106
  }
107
107
  render() {
108
108
  if (this.quickviewState.resultHasPreview) {
109
- return (h(Button, { key: 'e764a4103dfec30f0fc15ad4237aaa64a2db267c', 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: '5df8ef61e0138ba63512897f99364391e5c5be14', part: "icon", class: "flex w-5 justify-center", icon: QuickviewIcon })));
109
+ return (h(Button, { key: '923515932e09ccd18ec5060671a55800e5e6e83a', 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: '375e24610aae279d97f4efa17c6084cea5957008', part: "icon", class: "flex w-5 justify-center", icon: QuickviewIcon })));
110
110
  }
111
111
  }
112
112
  static get style() { return AtomicQuickviewStyle0; }
@@ -204,7 +204,7 @@ const AtomicRefineModal = /*@__PURE__*/ proxyCustomElement(class AtomicRefineMod
204
204
  return (h(RefineModalFiltersSection, { i18n: i18n, withFacets: hasFacetElements, withAutomaticFacets: hasAutomaticFacets }, this.breadcrumbManagerState.hasBreadcrumbs && (h(RefineModalFiltersClearButton, { i18n: i18n, onClick: () => this.breadcrumbManager.deselectAll() }))));
205
205
  }
206
206
  render() {
207
- return (h(RefineModal, { key: 'f73c3acc43f2fee8af45e90cd39c3adaedb76dd0', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), title: this.bindings.i18n.t('sort-and-filter'), numberOfItems: this.querySummaryState.total, openButton: this.openButton }, h(RefineModalBody, { key: 'd02d887640c8ad335300b5808a34abc40cdf598a' }, this.renderSort(), this.renderFilters())));
207
+ return (h(RefineModal, { key: 'b24978bc166205334991a7cd364924dcc33a41f6', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), title: this.bindings.i18n.t('sort-and-filter'), numberOfItems: this.querySummaryState.total, openButton: this.openButton }, h(RefineModalBody, { key: '5ef9af05829d5b359005abc8ee7a584cf5c955d4' }, this.renderSort(), this.renderFilters())));
208
208
  }
209
209
  componentDidLoad() {
210
210
  this.host.style.display = '';
@@ -68,7 +68,7 @@ const AtomicRefineToggle$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRefine
68
68
  this.modalRef && (this.modalRef.isOpen = true);
69
69
  }
70
70
  render() {
71
- return (h(RefineToggleGuard, { key: '30146bbcdbbf8fc15c2f5b6e03f72e909b975b4c', firstRequestExecuted: this.searchStatusState.firstSearchExecuted, hasError: this.searchStatusState.hasError, hasItems: this.searchStatusState.hasResults }, h(RefineToggleButton, { key: 'df667755709ab4d7f1d4c2f3af3ea78ec89a57eb', i18n: this.bindings.i18n, onClick: () => this.enableModal(), setRef: (button) => {
71
+ return (h(RefineToggleGuard, { key: '312e1ac5b9c66596ae803bd31cc0348232b8f326', firstRequestExecuted: this.searchStatusState.firstSearchExecuted, hasError: this.searchStatusState.hasError, hasItems: this.searchStatusState.hasResults }, h(RefineToggleButton, { key: 'a9d05a44b082ccf83b6be5e84a076c0259b27a39', i18n: this.bindings.i18n, onClick: () => this.enableModal(), setRef: (button) => {
72
72
  if (!button) {
73
73
  return;
74
74
  }
@@ -16,9 +16,9 @@ const AtomicRelevanceInspector = /*@__PURE__*/ proxyCustomElement(class AtomicRe
16
16
  this.open = false;
17
17
  }
18
18
  render() {
19
- return (h("atomic-modal", { key: 'a2a06af98fa63735677cb7bd1c81208ce01ede22', exportparts: "footer", isOpen: this.open, close: () => {
19
+ return (h("atomic-modal", { key: 'e3ce0d01d697da5adb7e6028692734ce78fe88b5', exportparts: "footer", isOpen: this.open, close: () => {
20
20
  this.closeRelevanceInspector?.emit();
21
- } }, h("p", { key: 'ca288b04b48ea98d5e7e8a9e13e6768886415118', slot: "header" }, "Open the relevance inspector"), h("p", { key: '7eb8f2bb1b8a39d6ad0c900b7d4647c751b8020c', slot: "body" }, "The Relevance Inspector will open in the Coveo Administration Console."), h("div", { key: 'df1dbdcc3db3f5ba75c2f9472977f19c51a539e7', slot: "footer", class: "flex w-full items-center justify-end" }, h(Button, { key: '57808d93ac86afc8897c90c2da61f5004ee23d33', style: "outline-primary", class: "mr-2 p-2", onClick: () => this.closeRelevanceInspector?.emit() }, "Ignore"), h("a", { key: 'c2cabaacd04b5ce4de627bd8dc1351dc020342f2', class: "btn-primary p-2", target: "_blank", href: this.adminHref, onClick: () => this.closeRelevanceInspector?.emit() }, "Open"))));
21
+ } }, h("p", { key: 'a9d5de1f5c779b36843f0c4b92352707ed57f59f', slot: "header" }, "Open the relevance inspector"), h("p", { key: 'ded771ba370b30470ead89dd71dcd3d7942de20e', slot: "body" }, "The Relevance Inspector will open in the Coveo Administration Console."), h("div", { key: 'bd7f1afa7457ca17b45c1a913dc82586d72c5bb7', slot: "footer", class: "flex w-full items-center justify-end" }, h(Button, { key: 'ebe15b64f3ebcd37fac4e5d5b1d270a9611df18e', style: "outline-primary", class: "mr-2 p-2", onClick: () => this.closeRelevanceInspector?.emit() }, "Ignore"), h("a", { key: 'f774884a805fbe36c5f5529142a0becf0b200e2d', class: "btn-primary p-2", target: "_blank", href: this.adminHref, onClick: () => this.closeRelevanceInspector?.emit() }, "Open"))));
22
22
  }
23
23
  get adminHref() {
24
24
  const { organizationId, environment } = this.bindings.engine.state.configuration;
@@ -138,7 +138,7 @@ const AtomicResultChildren$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResu
138
138
  return (h(ChildrenWrapper, { hasChildren: children.length > 0 }, children.map((child, i) => this.renderChild(child, i === children.length - 1))));
139
139
  }
140
140
  render() {
141
- return (h(ResultChildrenGuard, { key: '28a209dcfc87da57c297a1a5fe5a06877311eaf7', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
141
+ return (h(ResultChildrenGuard, { key: '87e4eb542feb7fd2fe4adafb1a966a77653195e6', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
142
142
  }
143
143
  get host() { return this; }
144
144
  static get style() { return AtomicResultChildrenStyle0; }
@@ -98,7 +98,7 @@ const AtomicResultFieldsList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRe
98
98
  }
99
99
  }
100
100
  render() {
101
- return h(Host, { key: '7206c67fd17f812fdf7a5aaf9429af162907677e' });
101
+ return h(Host, { key: 'bb78009f1c331adf546e3fb7516413cce13de162' });
102
102
  }
103
103
  get host() { return this; }
104
104
  static get style() { return AtomicResultFieldsListStyle0; }
@@ -43,7 +43,7 @@ const AtomicResultLink$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResultLi
43
43
  const href = isUndefined(this.hrefTemplate)
44
44
  ? this.result.clickUri
45
45
  : buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
46
- return (h(LinkWithItemAnalytics, { key: 'adbdf25dba24847402d7ba4afd254627e6ae833c', 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" }))));
46
+ return (h(LinkWithItemAnalytics, { key: '161199ea164427d67db5456e43d7c3cb2ebe9d8d', 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" }))));
47
47
  }
48
48
  get host() { return this; }
49
49
  static get style() { return AtomicResultLinkStyle0; }
@@ -194,7 +194,7 @@ const AtomicResultList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResultLi
194
194
  render() {
195
195
  this.resultListCommon.updateBreakpoints();
196
196
  const listClasses = this.computeListDisplayClasses();
197
- return (h(TabGuard, { key: '3300c868d8f38a4f7215288c091db4f60bec918b', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: '76429f5c16104eed0ff58b83dd2cb94f807e2b62', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: 'f0944363d4bba184e1e76869f507ea03bed2951d', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: 'c91a24daf9e86581e73f8ac514eca75275778376', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: '8266609ac00b5e0c3fb8eb7be5c3485b20c7b3d6', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
197
+ return (h(TabGuard, { key: '649dedc762f1c1c9dd45851b000ef76ecd07effa', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: '05afb457fd344b7ccf5cb925d0baf32227f2ddba', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: 'a68a18d3eb5c4fad3949bbc8f11a1610db400346', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: '19c2415dc2c2497abc612acd1866f1284cdf2422', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: '5eadfb9707d35affe14cc9eabfe70a436981cc80', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
198
198
  ? this.renderAsTable()
199
199
  : this.display === 'grid'
200
200
  ? this.renderAsGrid()
@@ -18,7 +18,7 @@ const AtomicResultTablePlaceholder = /*@__PURE__*/ proxyCustomElement(class Atom
18
18
  return getItemDisplayClasses('table', this.density, this.imageSize);
19
19
  }
20
20
  render() {
21
- return (h("table", { key: 'b23e982c8d8a14904231b367e5c066e14824c4b2', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: '00387bd4ff6803951c3e7609322be8472609e73f' }, h("tr", { key: 'c673c8f51db99354ea1dc361c697c96bed55ee58' }, h("th", { key: '824857b37ce0bc45ce4ae4671ee07a3eb3739781' }, h("div", { key: '2519cca4e7ebbbbff1214424e33ec230295d9a9f', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: 'd26312cc0a3a3e3d29300f65d2b53b743bb44365' }, h("div", { key: '3e9cac4825ef7a63147b19f3dab0a03dcf276596', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '48bd51072cd57e612dd4d80ab46bebaea4bc1fe7' }, h("div", { key: '5d84e58fcdb543d1c767dbe80a013339c50567b4', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: '2f0d8102e80d9fa5fa0d2e20e2541f2d1b3e2a13' }, 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' } }))))))));
21
+ return (h("table", { key: 'b8c5b9a4cf0bd04dcb9d0cebfe081a30c6758b35', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: '7e8092ecc1348a54780de5b079d92add1c9124a5' }, h("tr", { key: '0f3411ec8bffc6707e9214acdf15d21134fb4554' }, h("th", { key: '5d84b299102a369cf4c59b6df1487cdae303fbf6' }, h("div", { key: 'c10767a6181669697474b5804e29b265f7a8083f', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '389fed1b7f36142236761962450032ec7739a8a7' }, h("div", { key: 'a1ed8c588b5ffb64de2c2daa234b9e1a88086043', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '36202380fc0afaf244b5e1e9772c7e17ce2b20ba' }, h("div", { key: '6691745f3a6b867056fef0828077747e1b323a80', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: 'cb2b8cb0f545b97998c80f73c4ac33a2d46cdaaf' }, 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' } }))))))));
22
22
  }
23
23
  static get style() { return AtomicResultTablePlaceholderStyle0; }
24
24
  }, [1, "atomic-result-table-placeholder", {
@@ -60,7 +60,7 @@ const AtomicSearchBoxQuerySuggestions = /*@__PURE__*/ proxyCustomElement(class A
60
60
  }
61
61
  render() {
62
62
  if (this.error) {
63
- return (h("atomic-component-error", { key: '818ed7b1734a6f2cbf721b1eb3fd03d020791e9e', element: this.host, error: this.error }));
63
+ return (h("atomic-component-error", { key: 'ee518dd01ee68d5ac1e13c37335888acf7089beb', element: this.host, error: this.error }));
64
64
  }
65
65
  }
66
66
  get host() { return this; }
@@ -154,7 +154,7 @@ const AtomicSearchBoxRecentQueries = /*@__PURE__*/ proxyCustomElement(class Atom
154
154
  }
155
155
  render() {
156
156
  if (this.error) {
157
- return (h("atomic-component-error", { key: 'a0eed6f3235cbc1ecd75fdb75608c6db10934dda', element: this.host, error: this.error }));
157
+ return (h("atomic-component-error", { key: '577129c08c073b99dbb6b86b77e2ffa7c2ff7f69', element: this.host, error: this.error }));
158
158
  }
159
159
  }
160
160
  get host() { return this; }
@@ -425,18 +425,18 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
425
425
  if (!this.suggestionManager.suggestions.length) {
426
426
  this.registerSearchboxSuggestionEvents();
427
427
  }
428
- return (h(Host, { key: 'e3ed5e9633d8f37158974ae3f1b21cedf5f7de01' }, this.renderAbsolutePositionSpacer(), [
429
- h(SearchBoxWrapper, { key: 'b5f0da61b7ac4f1fee156de7027945040dbbf500', disabled: isDisabled, onFocusout: (event) => {
428
+ return (h(Host, { key: 'c6057e947ead5556e40b2cedcf06781a7e9927f0' }, this.renderAbsolutePositionSpacer(), [
429
+ h(SearchBoxWrapper, { key: '628b8bcabcf9612cba7970163b8c2a2f7747de9d', disabled: isDisabled, onFocusout: (event) => {
430
430
  if (!isFocusingOut(event)) {
431
431
  return;
432
432
  }
433
433
  this.suggestionManager.clearSuggestions();
434
434
  this.isExpanded = false;
435
- } }, this.renderTextBox(searchLabel), h(SubmitButton, { key: 'c8c6083671167dac6c211c7b456dcfe87ca1cfaa', bindings: this.bindings, disabled: isDisabled, onClick: () => {
435
+ } }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '82b2a7e72b27405c8ea129dee66901dc95ea7510', bindings: this.bindings, disabled: isDisabled, onClick: () => {
436
436
  this.searchBox.submit();
437
437
  this.suggestionManager.clearSuggestions();
438
438
  } }), this.renderSuggestions()),
439
- !this.suggestionManager.suggestions.length && (h("slot", { key: 'd6c0f1ff47370f794d0dc81782ced70baa04db91' }, h("atomic-search-box-recent-queries", { key: 'e599e83ae1f15386e310d1e03b8111144d452a8e' }), h("atomic-search-box-query-suggestions", { key: '6d446202f6722a66714ac067ad78afcf853a5dbe' }))),
439
+ !this.suggestionManager.suggestions.length && (h("slot", { key: '5d3bfbd30545b9d50afde0ea178121f2157618ae' }, h("atomic-search-box-recent-queries", { key: '0c04feaf3b136bc45532a1a134d0e307bc64131d' }), h("atomic-search-box-query-suggestions", { key: '65c916e94811e1e1a0fae8a6082e8122f34be471' }))),
440
440
  ]));
441
441
  }
442
442
  get host() { return this; }
@@ -43,9 +43,9 @@ const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ proxyCustomElement(class A
43
43
  }
44
44
  render() {
45
45
  updateBreakpoints(this.host);
46
- return (h("atomic-modal", { key: 'e859100c1a2aa70056f471123e6363953a8c978f', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '6f154e3e306f5fe14e724a7cc1124581c4ad50db', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: '0c7aa2809a41f9725324d19d93a121e30995c322', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: '7ea41f9ade73d9e28909ea5eb4d29fa277d6b762', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
46
+ return (h("atomic-modal", { key: '9915bc71b6329068bc8a3731971a793946762f39', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '385350607264cd3a0dce273b18eec02909220384', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: 'e1a01e0df35dbaf9da6891c825ad5e5e1e6bc534', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: 'd92a6395c26802cfafbcbd50fb1b2cd86bb907de', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
47
47
  this.currentAnswer = correspondingAnswer;
48
- } })))), h(SmartSnippetFeedbackModalDetails, { key: 'bb2bcce38f8b554e24df782edfc3bbfd2b997588', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: '2803172d081d52cda72b8c22b2a3b206d3b7cb23', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
48
+ } })))), h(SmartSnippetFeedbackModalDetails, { key: '6dfe87c931bc44d202d78c5a800936aa733b89de', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: '86f51c71ade3a7e360ce5c000e45939e8744ade4', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
49
49
  }
50
50
  close() {
51
51
  this.isOpen = false;
@@ -117,8 +117,8 @@ const AtomicSortDropdown$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSortDr
117
117
  const { hasError, hasResults, firstSearchExecuted } = this.searchStatusState;
118
118
  const { bindings: { i18n }, id, } = this;
119
119
  return [
120
- h(SortGuard, { key: 'de3cefc2f8ba7dacb299dd569ca97d4d93a54249', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '5a7296ed5a7f379509399ef260a344210c17ff34' }, h(SortLabel, { key: '1448eb9996a0b6a2df55f9ce880cd54c3312640d', i18n: i18n, id: id }), h(SortSelect, { key: '273f27873cfb73092eb7d98ef742536f3bb5fac5', i18n: i18n, id: id, onSelect: (evt) => this.select(evt) }, this.options.map(({ label, criteria, expression }) => (h(SortOption, { i18n: i18n, label: label, selected: this.sort.isSortedBy(criteria), value: expression })))))),
121
- h("slot", { key: 'd1058cd5f4e28bca8816e6987ec2f3a72b2d4825' }),
120
+ h(SortGuard, { key: '0669c3a8c7067eef9ba5c178a5f4d12752f8b085', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '6eb9cc11bb18013dfd384b809e6e72d2177cbe60' }, h(SortLabel, { key: '4573530fcd7c614b7ed1d3dbb8f4ad5617477ee3', i18n: i18n, id: id }), h(SortSelect, { key: 'a5ee4b55058679c63fb628337c33d1db192cf481', i18n: i18n, id: id, onSelect: (evt) => this.select(evt) }, this.options.map(({ label, criteria, expression }) => (h(SortOption, { i18n: i18n, label: label, selected: this.sort.isSortedBy(criteria), value: expression })))))),
121
+ h("slot", { key: '39a0d6e53adfe877b5f677d4cf9b0ff9177f84e8' }),
122
122
  ];
123
123
  }
124
124
  get host() { return this; }
@@ -47,7 +47,7 @@ const AtomicSortExpression$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSort
47
47
  const dropdownComponent = 'atomic-sort-dropdown';
48
48
  if (!this.host.closest(dropdownComponent)) {
49
49
  const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
50
- return (h("atomic-component-error", { key: 'c0181fed2562ac8d51cba8d9a2395ab3fc431295', element: this.host, error: error }));
50
+ return (h("atomic-component-error", { key: '4e946fe770ef49fc6346f0bc247db856fd38ba68', element: this.host, error: error }));
51
51
  }
52
52
  }
53
53
  get host() { return this; }
@@ -59,7 +59,7 @@ const AtomicTabManager$1 = /*@__PURE__*/ proxyCustomElement(class AtomicTabManag
59
59
  });
60
60
  }
61
61
  render() {
62
- return (h(Host, { key: 'abd272be633c8913b9c64f3b20d529373e7ca08c' }, h("atomic-tab-bar", { key: 'd21406c4e28a1a4fecd2986d97aa292f0cfd48a9' }, h("div", { key: '6a0375f62e5a178cec1737108984ac1e497370bd', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
62
+ return (h(Host, { key: 'ea60f4179a268319ba97570f95d6881c379c8b18' }, h("atomic-tab-bar", { key: 'ea83347d794b2f83b70706bdfc4240286c27d71e' }, h("div", { key: '9d9e588d7a4b7012f43419f3edae786b177498cc', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
63
63
  defaultValue: tab.label,
64
64
  }), select: () => {
65
65
  if (!tab.tabController.state.isActive) {
@@ -115,23 +115,30 @@ let AtomicCommerceBreadbox = class AtomicCommerceBreadbox extends LitElement {
115
115
  this.breadcrumbShowMoreFocus = new FocusTargetController(this, this.bindings);
116
116
  this.breadcrumbShowLessFocus = new FocusTargetController(this, this.bindings);
117
117
  }
118
- updated(changedProperties) {
119
- super.updated(changedProperties);
118
+ willUpdate(changedProperties) {
120
119
  if (changedProperties.has('pathLimit')) {
121
120
  this.validateProps();
122
121
  }
122
+ }
123
+ updated() {
123
124
  this.adaptBreadcrumbs();
124
125
  }
125
126
  validateProps() {
126
- new Schema({
127
- pathLimit: new NumberValue({
128
- default: 3,
129
- min: 1,
130
- required: false,
131
- }),
132
- }).validate({
133
- pathLimit: this.pathLimit,
134
- });
127
+ try {
128
+ new Schema({
129
+ pathLimit: new NumberValue({
130
+ default: 3,
131
+ min: 1,
132
+ required: false,
133
+ }),
134
+ }).validate({
135
+ pathLimit: this.pathLimit,
136
+ });
137
+ }
138
+ catch (error) {
139
+ this.error = error;
140
+ return;
141
+ }
135
142
  }
136
143
  disconnectedCallback() {
137
144
  this.resizeObserver?.disconnect();
@@ -4,11 +4,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { buildCommerceEngine, buildContext, buildProductListing, buildSearch, VERSION as HEADLESS_VERSION, loadConfigurationActions, loadQueryActions, } from '@coveo/headless/commerce';
7
+ import { buildCommerceEngine, buildContext, buildProductListing, buildSearch, VERSION as HEADLESS_VERSION, loadConfigurationActions, loadContextActions, loadQueryActions, } from '@coveo/headless/commerce';
8
8
  import { provide } from '@lit/context';
9
9
  import i18next from 'i18next';
10
10
  import { css, html, LitElement } from 'lit';
11
11
  import { customElement, property, state } from 'lit/decorators.js';
12
+ import { MobileBreakpointController } from "../../common/layout/mobile-breakpoint-controller";
12
13
  import { booleanConverter } from "../../../converters/boolean-converter";
13
14
  import { errorGuard } from "../../../decorators/error-guard";
14
15
  import { watch } from "../../../decorators/watch";
@@ -85,6 +86,7 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
85
86
  this.urlManager.synchronize(this.fragment);
86
87
  };
87
88
  this.store = createCommerceStore(this.type);
89
+ new MobileBreakpointController(this, this.store);
88
90
  const { promise, resolve } = Promise.withResolvers();
89
91
  this.i18Initialized = promise;
90
92
  this.i18n = i18next.createInstance(undefined, resolve);
@@ -92,7 +94,6 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
92
94
  connectedCallback() {
93
95
  super.connectedCallback();
94
96
  this.store.setLoadingFlag(FirstRequestExecutedFlag);
95
- this.updateMobileBreakpoint();
96
97
  this.addEventListener('atomic/initializeComponent', this.handleInitialization);
97
98
  this.addEventListener('atomic/scrollToTop', this.scrollToTop);
98
99
  }
@@ -143,6 +144,41 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
143
144
  this.searchOrListing.executeFirstRequest();
144
145
  }
145
146
  }
147
+ /**
148
+ * Updates the locale settings for the commerce interface and headless commerce
149
+ * engine. Only the provided parameters will be updated.
150
+ *
151
+ * Calling this method affects the localization of the interface as well as
152
+ * the catalog configuration being used by the Commerce API. If the resulting
153
+ * language-country-currency combination matches no existing catalog
154
+ * configuration in your Coveo organization, requests made through the
155
+ * commerce engine will start failing.
156
+ *
157
+ * @param language - (Optional) The IETF language code tag (e.g., `en`).
158
+ * @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
159
+ * @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
160
+ *
161
+ * @example
162
+ * ```typescript
163
+ * interface.updateLocale('fr', 'CA', 'CAD');
164
+ * ```
165
+ */
166
+ updateLocale(language, country, currency) {
167
+ if (!this.interfaceController.engineIsCreated(this.engine) ||
168
+ !this.context) {
169
+ return;
170
+ }
171
+ language && this.interfaceController.onLanguageChange(language);
172
+ if (this.isNewLocale(language, country, currency)) {
173
+ const { setContext } = loadContextActions(this.engine);
174
+ this.engine.dispatch(setContext({
175
+ ...this.context.state,
176
+ ...(language && { language }),
177
+ ...(country && { country }),
178
+ ...(currency && { currency }),
179
+ }));
180
+ }
181
+ }
146
182
  toggleAnalytics() {
147
183
  this.interfaceController.onAnalyticsChange();
148
184
  }
@@ -156,11 +192,10 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
156
192
  !this.context) {
157
193
  return;
158
194
  }
159
- // TODO - KIT-4993: Add temporary deprecation warning.
195
+ this.engine.logger.warn('The `language` property will be removed in the next major version of Atomic (v4). Rather than using this property, set the initial language through the engine configuration when calling `initialize` or `initializeWithEngine`, and update the language as needed using the `updateLocale` method.');
160
196
  this.context.setLanguage(this.language);
161
197
  return this.interfaceController.onLanguageChange();
162
198
  }
163
- // TODO - KIT-4993: Add updateLocale public method.
164
199
  disconnectedCallback() {
165
200
  super.disconnectedCallback();
166
201
  if (typeof this.unsubscribeUrlManager === 'function') {
@@ -210,11 +245,11 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
210
245
  throw error;
211
246
  }
212
247
  }
213
- // TODO - KIT-4993: Adjust.
214
248
  initLanguage() {
215
- if (!this.language) {
216
- this.language = this.context.state.language;
249
+ if (!this.context || this.language) {
250
+ return;
217
251
  }
252
+ this.interfaceController.onLanguageChange(this.context.state.language);
218
253
  }
219
254
  initRequestStatus() {
220
255
  this.searchOrListing =
@@ -256,7 +291,7 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
256
291
  this.i18Initialized,
257
292
  ]);
258
293
  this.initContext();
259
- this.updateLanguage();
294
+ this.updateLanguage(); // TODO - (v4) KIT-4365: Remove.
260
295
  this.bindings = this.getBindings();
261
296
  markParentAsReady(this);
262
297
  this.initRequestStatus();
@@ -266,6 +301,14 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
266
301
  this.initUrlManager();
267
302
  this.initialized = true;
268
303
  }
304
+ isNewLocale(language, country, currency) {
305
+ if (!this.context) {
306
+ return false;
307
+ }
308
+ return ((language && language !== this.context.state.language) ||
309
+ (country && country !== this.context.state.country) ||
310
+ (currency && currency !== this.context.state.currency));
311
+ }
269
312
  // TODO - (v4) KIT-4991: Make private.
270
313
  scrollToTop() {
271
314
  const scrollContainerElement = document.querySelector(this.scrollContainer);
@@ -285,12 +328,6 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
285
328
  history.pushState(null, document.title, `#${newFragment}`);
286
329
  this.bindings.engine.logger.info(`History pushState #${newFragment}`);
287
330
  }
288
- updateMobileBreakpoint() {
289
- const breakpoint = this.querySelector('atomic-commerce-layout')?.mobileBreakpoint;
290
- if (breakpoint) {
291
- this.store.state.mobileBreakpoint = breakpoint;
292
- }
293
- }
294
331
  };
295
332
  AtomicCommerceInterface.styles = [
296
333
  css`:host{display:block;height:inherit;width:inherit;&>slot{height:inherit}}`,
@@ -4,11 +4,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { LitElement, unsafeCSS } from 'lit';
7
+ import { LitElement } from 'lit';
8
8
  import { customElement, property, state } from 'lit/decorators.js';
9
+ import { LayoutStylesController } from "../../common/layout/layout-styles-controller";
10
+ import { watch } from "../../../decorators/watch";
9
11
  import { ChildrenUpdateCompleteMixin } from "../../../mixins/children-update-complete-mixin";
10
12
  import { LightDomMixin } from "../../../mixins/light-dom";
11
- import { randomID } from "../../../utils/utils";
12
13
  import { DEFAULT_MOBILE_BREAKPOINT } from '../../../utils/replace-breakpoint-utils';
13
14
  import styles from './atomic-commerce-layout.tw.css';
14
15
  import { buildCommerceLayout } from './commerce-layout';
@@ -18,8 +19,6 @@ import { buildCommerceLayout } from './commerce-layout';
18
19
  * @cssprop --atomic-layout-max-search-box-input-width: The maximum width that the search box input will take.
19
20
  * @cssprop --atomic-layout-max-search-box-double-suggestions-width: The maximum width that the search box suggestions will take when displaying a double list.
20
21
  * @cssprop --atomic-layout-search-box-left-suggestions-width: The width of the left list when displaying a double list.
21
- *
22
- * @slot default - The default slot for the layout content.
23
22
  */
24
23
  let AtomicCommerceLayout = class AtomicCommerceLayout extends LightDomMixin(ChildrenUpdateCompleteMixin(LitElement)) {
25
24
  constructor() {
@@ -29,15 +28,22 @@ let AtomicCommerceLayout = class AtomicCommerceLayout extends LightDomMixin(Chil
29
28
  * E.g., 800px, 65rem.
30
29
  */
31
30
  this.mobileBreakpoint = DEFAULT_MOBILE_BREAKPOINT;
32
- }
33
- async addStyles() {
34
- await this.getUpdateComplete();
35
- this.injectStyles(unsafeCSS(buildCommerceLayout(this, this.mobileBreakpoint)));
31
+ this.layoutStylesController = new LayoutStylesController(this, buildCommerceLayout, 'atomic-commerce-layout-');
36
32
  }
37
33
  connectedCallback() {
38
34
  super.connectedCallback();
39
- this.id = randomID('atomic-commerce-layout-');
40
- this.addStyles();
35
+ this.emitBreakpointChangeEvent();
36
+ }
37
+ emitBreakpointChangeEvent() {
38
+ this.dispatchEvent(new CustomEvent('atomic-layout-breakpoint-change', {
39
+ detail: { breakpoint: this.mobileBreakpoint },
40
+ bubbles: true,
41
+ composed: true,
42
+ }));
43
+ }
44
+ onMobileBreakpointChange() {
45
+ this.layoutStylesController.updateStyles();
46
+ this.emitBreakpointChangeEvent();
41
47
  }
42
48
  };
43
49
  AtomicCommerceLayout.styles = [styles];
@@ -47,6 +53,9 @@ __decorate([
47
53
  __decorate([
48
54
  property({ type: String, reflect: true, attribute: 'mobile-breakpoint' })
49
55
  ], AtomicCommerceLayout.prototype, "mobileBreakpoint", void 0);
56
+ __decorate([
57
+ watch('mobileBreakpoint')
58
+ ], AtomicCommerceLayout.prototype, "onMobileBreakpointChange", null);
50
59
  AtomicCommerceLayout = __decorate([
51
60
  customElement('atomic-commerce-layout')
52
61
  ], AtomicCommerceLayout);
@@ -4,10 +4,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ var AtomicCommercePager_1;
7
8
  import { NumberValue, Schema } from '@coveo/bueno';
8
9
  import { buildProductListing, buildSearch, } from '@coveo/headless/commerce';
9
10
  import { html, LitElement } from 'lit';
10
11
  import { customElement, property, state } from 'lit/decorators.js';
12
+ import { keyed } from 'lit/directives/keyed.js';
11
13
  import { when } from 'lit/directives/when.js';
12
14
  import { bindStateToController } from "../../../decorators/bind-state";
13
15
  import { bindingGuard } from "../../../decorators/binding-guard";
@@ -35,9 +37,10 @@ import { getCurrentPagesRange } from './commerce-pager-utils';
35
37
  *
36
38
  * @event atomic/scrollToTop - Emitted when the user clicks the next or previous button, or a page button.
37
39
  */
38
- let AtomicCommercePager = class AtomicCommercePager extends LitElement {
40
+ let AtomicCommercePager = AtomicCommercePager_1 = class AtomicCommercePager extends LitElement {
39
41
  constructor() {
40
42
  super(...arguments);
43
+ this.radioGroupName = randomID('atomic-commerce-pager-');
41
44
  this.isAppLoaded = false;
42
45
  /**
43
46
  * The maximum number of page buttons to display.
@@ -59,7 +62,6 @@ let AtomicCommercePager = class AtomicCommercePager extends LitElement {
59
62
  * - Use a stringified SVG to display it directly.
60
63
  */
61
64
  this.nextButtonIcon = ArrowRightIcon;
62
- this.radioGroupName = randomID('atomic-commerce-pager-');
63
65
  }
64
66
  initialize() {
65
67
  this.validateProps();
@@ -74,12 +76,10 @@ let AtomicCommercePager = class AtomicCommercePager extends LitElement {
74
76
  this.isAppLoaded = isAppLoaded;
75
77
  });
76
78
  }
77
- validateProps() {
78
- new Schema({
79
- numberOfPages: new NumberValue({ min: 0 }),
80
- }).validate({
81
- numberOfPages: this.numberOfPages,
82
- });
79
+ willUpdate(changedProperties) {
80
+ if (changedProperties.has('numberOfPages')) {
81
+ this.validateProps();
82
+ }
83
83
  }
84
84
  render() {
85
85
  const pagesRange = getCurrentPagesRange(this.pagerState.page, this.numberOfPages, this.pagerState.totalPages - 1);
@@ -103,7 +103,7 @@ let AtomicCommercePager = class AtomicCommercePager extends LitElement {
103
103
  props: {
104
104
  i18n: this.bindings.i18n,
105
105
  },
106
- })(html `${pagesRange.map((pageNumber) => renderPagerPageButton({
106
+ })(html `${pagesRange.map((pageNumber, index) => keyed(`page-${pageNumber}-${index}`, renderPagerPageButton({
107
107
  props: {
108
108
  isSelected: pageNumber === this.pagerState.page,
109
109
  ariaLabel: this.bindings.i18n.t('page-number', {
@@ -117,7 +117,7 @@ let AtomicCommercePager = class AtomicCommercePager extends LitElement {
117
117
  groupName: this.radioGroupName,
118
118
  text: (pageNumber + 1).toLocaleString(this.bindings.i18n.language),
119
119
  },
120
- }))}`)}
120
+ })))}`)}
121
121
  ${renderPagerNextButton({
122
122
  props: {
123
123
  icon: this.nextButtonIcon,
@@ -131,11 +131,25 @@ let AtomicCommercePager = class AtomicCommercePager extends LitElement {
131
131
  })}
132
132
  `)}`)}`;
133
133
  }
134
+ validateProps() {
135
+ try {
136
+ AtomicCommercePager_1.propsSchema.validate({
137
+ numberOfPages: this.numberOfPages,
138
+ });
139
+ }
140
+ catch (error) {
141
+ this.error = error;
142
+ return;
143
+ }
144
+ }
134
145
  async focusOnFirstResultAndScrollToTop() {
135
146
  await this.bindings.store.state.resultList?.focusOnFirstResultAfterNextSearch();
136
147
  this.dispatchEvent(new CustomEvent('atomic/scrollToTop'));
137
148
  }
138
149
  };
150
+ AtomicCommercePager.propsSchema = new Schema({
151
+ numberOfPages: new NumberValue({ min: 0 }),
152
+ });
139
153
  __decorate([
140
154
  state()
141
155
  ], AtomicCommercePager.prototype, "bindings", void 0);
@@ -162,7 +176,7 @@ __decorate([
162
176
  bindingGuard(),
163
177
  errorGuard()
164
178
  ], AtomicCommercePager.prototype, "render", null);
165
- AtomicCommercePager = __decorate([
179
+ AtomicCommercePager = AtomicCommercePager_1 = __decorate([
166
180
  customElement('atomic-commerce-pager'),
167
181
  bindings(),
168
182
  withTailwindStyles