@coveo/atomic 3.33.8-pre.c54adf6755 → 3.33.8-pre.d75d8e5578

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 (179) 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 +2 -0
  4. package/dist/atomic/components/_index.js +2 -2
  5. package/dist/atomic/components/analytics-config.js +1 -1
  6. package/dist/atomic/components/atomic-insight-search-box.js +6 -32
  7. package/dist/atomic/components/atomic-insight-search-box.js.map +1 -1
  8. package/dist/atomic/components/atomic-search-box-instant-results.js +2 -2
  9. package/dist/atomic/components/atomic-search-box-instant-results.js.map +1 -1
  10. package/dist/atomic/components/atomic-search-box-query-suggestions.d.ts +11 -0
  11. package/dist/atomic/components/atomic-search-box-query-suggestions.js +8 -0
  12. package/dist/atomic/components/atomic-search-box-query-suggestions.js.map +1 -0
  13. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +89 -0
  14. package/dist/atomic/components/atomic-search-box-query-suggestions2.js.map +1 -0
  15. package/dist/atomic/components/atomic-search-box-recent-queries2.js +2 -2
  16. package/dist/atomic/components/atomic-search-box-recent-queries2.js.map +1 -1
  17. package/dist/atomic/components/atomic-search-box.js +13 -6
  18. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  19. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  20. package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
  21. package/dist/atomic/components/atomic-suggestion-renderer2.js.map +1 -1
  22. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  23. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +4 -1
  24. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +1 -1
  25. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +1 -1
  26. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -1
  27. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -1
  28. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +1 -1
  29. package/dist/atomic/components/components/common/layout/layout-styles-controller.js +1 -1
  30. package/dist/atomic/components/components/common/suggestions/suggestion-manager.js +1 -1
  31. package/dist/atomic/components/components/common/suggestions/{suggestions-events.js → suggestions-common.js} +18 -16
  32. package/dist/atomic/components/components/search/index.js +0 -1
  33. package/dist/atomic/components/components/search/lazy-index.js +0 -1
  34. package/dist/atomic/components/global/environment.js +1 -1
  35. package/dist/atomic/components/stencil-query-suggestions.js +33 -0
  36. package/dist/atomic/components/stencil-query-suggestions.js.map +1 -0
  37. package/dist/atomic/components/stencil-suggestion-manager.js +2 -20
  38. package/dist/atomic/components/stencil-suggestion-manager.js.map +1 -1
  39. package/dist/atomic/components/{suggestions-events.js → suggestions-common.js} +20 -18
  40. package/dist/atomic/components/suggestions-common.js.map +1 -0
  41. package/dist/atomic/index.esm.js +1 -1
  42. package/dist/atomic/index.esm.js.map +1 -1
  43. package/dist/atomic/{p-9b24788e.entry.js → p-0bfa74d3.entry.js} +2 -2
  44. package/dist/atomic/p-29fd6768.js +2 -0
  45. package/dist/atomic/p-29fd6768.js.map +1 -0
  46. package/dist/atomic/{p-d0f47b33.entry.js → p-36e71b99.entry.js} +2 -2
  47. package/dist/atomic/p-36e71b99.entry.js.map +1 -0
  48. package/dist/atomic/{p-c88a3d2d.entry.js → p-3d847e45.entry.js} +2 -2
  49. package/dist/atomic/p-3d847e45.entry.js.map +1 -0
  50. package/dist/atomic/p-7601c3de.js +2 -0
  51. package/dist/atomic/p-7601c3de.js.map +1 -0
  52. package/dist/atomic/{p-ae98c582.entry.js → p-7a625c7e.entry.js} +2 -2
  53. package/dist/atomic/{p-c1384fa7.entry.js → p-828d74f8.entry.js} +2 -2
  54. package/dist/atomic/p-8867af82.entry.js +2 -0
  55. package/dist/atomic/p-8867af82.entry.js.map +1 -0
  56. package/dist/atomic/{p-be8d7ee7.entry.js → p-8b9b8089.entry.js} +2 -2
  57. package/dist/atomic/{p-39e63678.entry.js → p-aa2a81fd.entry.js} +2 -2
  58. package/dist/atomic/{p-fbfe913d.entry.js → p-aa4224ea.entry.js} +2 -2
  59. package/dist/atomic/p-aa4224ea.entry.js.map +1 -0
  60. package/dist/atomic/p-af93b44c.js +2 -0
  61. package/dist/atomic/p-af93b44c.js.map +1 -0
  62. package/dist/atomic/p-c1bf43cf.entry.js +2 -0
  63. package/dist/atomic/p-c1bf43cf.entry.js.map +1 -0
  64. package/dist/atomic/{p-c81ba3db.js → p-caa647d5.js} +2 -2
  65. package/dist/cjs/_index.cjs.js +2 -5
  66. package/dist/cjs/_loader.cjs.js +1 -1
  67. package/dist/cjs/{analytics-config-f6473d68.js → analytics-config-75507a47.js} +2 -2
  68. package/dist/cjs/{analytics-config-f6473d68.js.map → analytics-config-75507a47.js.map} +1 -1
  69. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  70. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +9 -35
  71. package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
  72. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  73. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +3 -3
  74. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js.map +1 -1
  75. package/dist/cjs/{atomic-search-box-recent-queries.cjs.entry.js → atomic-search-box-query-suggestions_2.cjs.entry.js} +69 -6
  76. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +1 -0
  77. package/dist/cjs/atomic-search-box.cjs.entry.js +7 -7
  78. package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
  79. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  80. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  81. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
  82. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js.map +1 -1
  83. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  84. package/dist/cjs/atomic.cjs.js +1 -1
  85. package/dist/cjs/index-757bc886.js +2 -2
  86. package/dist/cjs/index.cjs.js.map +1 -1
  87. package/dist/cjs/stencil-query-suggestions-03268ecc.js +38 -0
  88. package/dist/cjs/stencil-query-suggestions-03268ecc.js.map +1 -0
  89. package/dist/cjs/{stencil-suggestion-manager-2cba6d69.js → stencil-suggestion-manager-c0878ef2.js} +4 -4
  90. package/dist/cjs/{stencil-suggestion-manager-2cba6d69.js.map → stencil-suggestion-manager-c0878ef2.js.map} +1 -1
  91. package/dist/cjs/{suggestions-events-63dd0640.js → suggestions-common-5097a362.js} +21 -17
  92. package/dist/cjs/suggestions-common-5097a362.js.map +1 -0
  93. package/dist/cjs/version.cjs.js +2 -2
  94. package/dist/esm/_index.js +1 -2
  95. package/dist/esm/_loader.js +1 -1
  96. package/dist/esm/{analytics-config-b49fc947.js → analytics-config-54cbe2b9.js} +2 -2
  97. package/dist/esm/{analytics-config-b49fc947.js.map → analytics-config-54cbe2b9.js.map} +1 -1
  98. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  99. package/dist/esm/atomic-insight-search-box.entry.js +7 -33
  100. package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
  101. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  102. package/dist/esm/atomic-search-box-instant-results.entry.js +2 -2
  103. package/dist/esm/atomic-search-box-instant-results.entry.js.map +1 -1
  104. package/dist/esm/{atomic-search-box-recent-queries.entry.js → atomic-search-box-query-suggestions_2.entry.js} +70 -8
  105. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +1 -0
  106. package/dist/esm/atomic-search-box.entry.js +6 -6
  107. package/dist/esm/atomic-search-box.entry.js.map +1 -1
  108. package/dist/esm/atomic-search-interface.entry.js +1 -1
  109. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  110. package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
  111. package/dist/esm/atomic-suggestion-renderer.entry.js.map +1 -1
  112. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  113. package/dist/esm/atomic.js +1 -1
  114. package/dist/esm/index-3f35faca.js +2 -2
  115. package/dist/esm/index.js.map +1 -1
  116. package/dist/esm/stencil-query-suggestions-5d6a46d7.js +33 -0
  117. package/dist/esm/stencil-query-suggestions-5d6a46d7.js.map +1 -0
  118. package/dist/esm/{stencil-suggestion-manager-376f83e8.js → stencil-suggestion-manager-486094dd.js} +2 -2
  119. package/dist/esm/{stencil-suggestion-manager-376f83e8.js.map → stencil-suggestion-manager-486094dd.js.map} +1 -1
  120. package/dist/esm/{suggestions-events-b7a6f007.js → suggestions-common-2b20db26.js} +20 -18
  121. package/dist/esm/suggestions-common-2b20db26.js.map +1 -0
  122. package/dist/esm/version.js +2 -2
  123. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
  124. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +1 -0
  125. package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -1
  126. package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -1
  127. package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +1 -1
  128. package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts +1 -1
  129. package/dist/types/components/common/suggestions/instant-item.d.ts +1 -1
  130. package/dist/types/components/common/suggestions/query-suggestions.d.ts +1 -1
  131. package/dist/types/components/common/suggestions/recent-queries.d.ts +1 -1
  132. package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +1 -1
  133. package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +1 -1
  134. package/dist/types/components/common/suggestions/stencil-recent-queries.d.ts +1 -1
  135. package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +1 -1
  136. package/dist/types/components/common/suggestions/suggestion-manager.d.ts +1 -1
  137. package/dist/types/components/common/suggestions/{suggestions-types.d.ts → suggestions-common.d.ts} +16 -6
  138. package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -1
  139. package/dist/types/components/search/index.d.ts +0 -1
  140. package/dist/types/components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results.d.ts +1 -1
  141. package/dist/types/components/search/{atomic-search-box-query-suggestions → search-box-suggestions/atomic-search-box-query-suggestions}/atomic-search-box-query-suggestions.d.ts +8 -17
  142. package/dist/types/components.d.ts +51 -2
  143. package/dist/types/decorators/types.d.ts +1 -1
  144. package/dist/types/index.d.ts +1 -3
  145. package/docs/atomic-docs.json +104 -5
  146. package/package.json +3 -3
  147. package/dist/atomic/components/components/common/suggestions/suggestions-types.js +0 -1
  148. package/dist/atomic/components/components/common/suggestions/suggestions-utils.js +0 -18
  149. package/dist/atomic/components/components/search/atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js +0 -121
  150. package/dist/atomic/components/suggestions-events.js.map +0 -1
  151. package/dist/atomic/p-0a051b8d.js +0 -2
  152. package/dist/atomic/p-0a051b8d.js.map +0 -1
  153. package/dist/atomic/p-16f4ce98.js +0 -2
  154. package/dist/atomic/p-16f4ce98.js.map +0 -1
  155. package/dist/atomic/p-4b7a19db.js +0 -2
  156. package/dist/atomic/p-4b7a19db.js.map +0 -1
  157. package/dist/atomic/p-7a06a356.entry.js +0 -2
  158. package/dist/atomic/p-7a06a356.entry.js.map +0 -1
  159. package/dist/atomic/p-c88a3d2d.entry.js.map +0 -1
  160. package/dist/atomic/p-d0f47b33.entry.js.map +0 -1
  161. package/dist/atomic/p-d2b14ff1.entry.js +0 -2
  162. package/dist/atomic/p-d2b14ff1.entry.js.map +0 -1
  163. package/dist/atomic/p-fbfe913d.entry.js.map +0 -1
  164. package/dist/cjs/atomic-search-box-recent-queries.cjs.entry.js.map +0 -1
  165. package/dist/cjs/suggestions-events-63dd0640.js.map +0 -1
  166. package/dist/cjs/suggestions-utils-61000808.js +0 -25
  167. package/dist/cjs/suggestions-utils-61000808.js.map +0 -1
  168. package/dist/esm/atomic-search-box-recent-queries.entry.js.map +0 -1
  169. package/dist/esm/suggestions-events-b7a6f007.js.map +0 -1
  170. package/dist/esm/suggestions-utils-591559a0.js +0 -22
  171. package/dist/esm/suggestions-utils-591559a0.js.map +0 -1
  172. package/dist/types/components/common/suggestions/suggestions-events.d.ts +0 -14
  173. package/dist/types/components/common/suggestions/suggestions-utils.d.ts +0 -15
  174. /package/dist/atomic/{p-9b24788e.entry.js.map → p-0bfa74d3.entry.js.map} +0 -0
  175. /package/dist/atomic/{p-ae98c582.entry.js.map → p-7a625c7e.entry.js.map} +0 -0
  176. /package/dist/atomic/{p-c1384fa7.entry.js.map → p-828d74f8.entry.js.map} +0 -0
  177. /package/dist/atomic/{p-be8d7ee7.entry.js.map → p-8b9b8089.entry.js.map} +0 -0
  178. /package/dist/atomic/{p-39e63678.entry.js.map → p-aa2a81fd.entry.js.map} +0 -0
  179. /package/dist/atomic/{p-c81ba3db.js.map → p-caa647d5.js.map} +0 -0
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy(JSON.parse("[[\"atomic-result-list\",[[1,\"atomic-result-list\",{\"display\":[513],\"density\":[513],\"imageSize\":[1537,\"image-size\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"resultListState\":[32],\"resultsPerPageState\":[32],\"tabManagerState\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"isAppLoaded\":[32],\"templateHasError\":[32],\"setRenderFunction\":[64]},null,{\"tabManagerState\":[\"watchTabManagerState\"]}]]],[\"atomic-folded-result-list\",[[1,\"atomic-folded-result-list\",{\"density\":[513],\"imageSize\":[513,\"image-size\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"collectionField\":[513,\"collection-field\"],\"parentField\":[513,\"parent-field\"],\"childField\":[513,\"child-field\"],\"numberOfFoldedResults\":[514,\"number-of-folded-results\"],\"foldedResultListState\":[32],\"resultsPerPageState\":[32],\"tabManagerState\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"templateHasError\":[32],\"isAppLoaded\":[32],\"setRenderFunction\":[64]},[[0,\"atomic/resolveFoldedResultList\",\"resolveFoldedResultList\"],[0,\"atomic/loadCollection\",\"loadCollection\"]],{\"tabManagerState\":[\"watchTabManagerState\"]}]]],[\"atomic-insight-folded-result-list\",[[1,\"atomic-insight-folded-result-list\",{\"density\":[513],\"imageSize\":[513,\"image-size\"],\"collectionField\":[513,\"collection-field\"],\"parentField\":[513,\"parent-field\"],\"childField\":[513,\"child-field\"],\"foldedResultListState\":[32],\"resultsPerPageState\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"isAppLoaded\":[32],\"templateHasError\":[32],\"setRenderFunction\":[64]},[[0,\"atomic/resolveFoldedResultList\",\"resolveFoldedResultList\"],[0,\"atomic/loadCollection\",\"loadCollection\"]]]]],[\"atomic-insight-result-children\",[[1,\"atomic-insight-result-children\",{\"inheritTemplates\":[4,\"inherit-templates\"],\"imageSize\":[513,\"image-size\"],\"noResultText\":[1,\"no-result-text\"],\"error\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"foldedResultListState\":[32],\"showInitialChildren\":[32]},[[0,\"atomic/resolveChildTemplates\",\"resolveChildTemplates\"]]]]],[\"atomic-insight-result-list\",[[1,\"atomic-insight-result-list\",{\"density\":[513],\"imageSize\":[513,\"image-size\"],\"resultsPerPageState\":[32],\"resultListState\":[32],\"templateHasError\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"isAppLoaded\":[32],\"setRenderFunction\":[64]}]]],[\"atomic-ipx-recs-list\",[[1,\"atomic-ipx-recs-list\",{\"recommendation\":[513],\"display\":[513],\"density\":[513],\"imageSize\":[513,\"image-size\"],\"numberOfRecommendations\":[514,\"number-of-recommendations\"],\"numberOfRecommendationsPerPage\":[514,\"number-of-recommendations-per-page\"],\"label\":[513],\"headingLevel\":[514,\"heading-level\"],\"error\":[32],\"isAppLoaded\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"currentPage\":[32],\"recommendationListState\":[32],\"setRenderFunction\":[64],\"previousPage\":[64],\"nextPage\":[64]},null,{\"numberOfRecommendationsPerPage\":[\"watchNumberOfRecommendationsPerPage\"]}]]],[\"atomic-recs-list\",[[1,\"atomic-recs-list\",{\"recommendation\":[513],\"display\":[513],\"density\":[513],\"imageSize\":[513,\"image-size\"],\"numberOfRecommendations\":[514,\"number-of-recommendations\"],\"numberOfRecommendationsPerPage\":[514,\"number-of-recommendations-per-page\"],\"label\":[513],\"headingLevel\":[514,\"heading-level\"],\"error\":[32],\"isAppLoaded\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"currentPage\":[32],\"recommendationListState\":[32],\"setRenderFunction\":[64],\"previousPage\":[64],\"nextPage\":[64]},null,{\"numberOfRecommendationsPerPage\":[\"watchNumberOfRecommendationsPerPage\"]}]]],[\"atomic-result-children\",[[1,\"atomic-result-children\",{\"inheritTemplates\":[4,\"inherit-templates\"],\"imageSize\":[513,\"image-size\"],\"noResultText\":[1,\"no-result-text\"],\"error\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"foldedResultListState\":[32],\"showInitialChildren\":[32],\"loadedFullCollection\":[32]},[[0,\"atomic/resolveChildTemplates\",\"resolveChildTemplates\"]]]]],[\"atomic-insight-smart-snippet\",[[1,\"atomic-insight-smart-snippet\",{\"headingLevel\":[514,\"heading-level\"],\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"snippetStyle\":[513,\"snippet-style\"],\"smartSnippetState\":[32],\"feedbackSent\":[32]}]]],[\"atomic-smart-snippet\",[[1,\"atomic-smart-snippet\",{\"headingLevel\":[514,\"heading-level\"],\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"snippetStyle\":[513,\"snippet-style\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"snippetMaximumHeight\":[514,\"snippet-maximum-height\"],\"snippetCollapsedHeight\":[514,\"snippet-collapsed-height\"],\"smartSnippetState\":[32],\"tabManagerState\":[32],\"feedbackSent\":[32]},[[0,\"selectInlineLink\",\"onSelectInlineLink\"],[0,\"beginDelayedSelectInlineLink\",\"onBeginDelayedSelectInlineLink\"],[0,\"cancelPendingSelectInlineLink\",\"onCancelPendingSelectInlineLink\"]]]]],[\"atomic-insight-smart-snippet-suggestions\",[[1,\"atomic-insight-smart-snippet-suggestions\",{\"headingLevel\":[514,\"heading-level\"],\"snippetStyle\":[1,\"snippet-style\"],\"smartSnippetQuestionsListState\":[32]}]]],[\"atomic-smart-snippet-suggestions\",[[1,\"atomic-smart-snippet-suggestions\",{\"headingLevel\":[514,\"heading-level\"],\"snippetStyle\":[1,\"snippet-style\"],\"smartSnippetQuestionsListState\":[32]}]]],[\"atomic-insight-user-actions-toggle\",[[1,\"atomic-insight-user-actions-toggle\",{\"userId\":[1,\"user-id\"],\"ticketCreationDateTime\":[1,\"ticket-creation-date-time\"],\"excludedCustomActions\":[16],\"userActionsState\":[32],\"error\":[32]}]]],[\"atomic-refine-toggle\",[[1,\"atomic-refine-toggle\",{\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"error\":[32],\"searchStatusState\":[32]}]]],[\"atomic-tab-manager\",[[1,\"atomic-tab-manager\",{\"clearFiltersOnTabChange\":[4,\"clear-filters-on-tab-change\"],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-insight-tabs\",[[4,\"atomic-insight-tabs\",{\"error\":[32]}]]],[\"atomic-ipx-result-link\",[[4,\"atomic-ipx-result-link\",{\"hrefTemplate\":[513,\"href-template\"]}]]],[\"atomic-ipx-tabs\",[[4,\"atomic-ipx-tabs\",{\"error\":[32]}]]],[\"atomic-result-badge\",[[1,\"atomic-result-badge\",{\"field\":[513],\"label\":[513],\"icon\":[513]}]]],[\"atomic-result-link\",[[4,\"atomic-result-link\",{\"hrefTemplate\":[513,\"href-template\"]}]]],[\"atomic-result-printable-uri\",[[0,\"atomic-result-printable-uri\",{\"maxNumberOfParts\":[514,\"max-number-of-parts\"],\"listExpanded\":[32],\"error\":[32]}]]],[\"atomic-search-box\",[[1,\"atomic-search-box\",{\"numberOfQueries\":[514,\"number-of-queries\"],\"redirectionUrl\":[513,\"redirection-url\"],\"suggestionTimeout\":[2,\"suggestion-timeout\"],\"suggestionDelay\":[2,\"suggestion-delay\"],\"disableSearch\":[516,\"disable-search\"],\"minimumQueryLength\":[514,\"minimum-query-length\"],\"clearFilters\":[516,\"clear-filters\"],\"enableQuerySyntax\":[516,\"enable-query-syntax\"],\"searchBoxState\":[32],\"error\":[32],\"isExpanded\":[32]},[[0,\"atomic/searchBoxSuggestion/register\",\"registerSuggestions\"]],{\"redirectionUrl\":[\"watchRedirectionUrl\"]}]]],[\"atomic-insight-numeric-facet\",[[1,\"atomic-insight-numeric-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"numberOfValues\":[514,\"number-of-values\"],\"withInput\":[513,\"with-input\"],\"sortCriteria\":[513,\"sort-criteria\"],\"rangeAlgorithm\":[513,\"range-algorithm\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"error\":[32],\"facetForInputState\":[32]},[[0,\"atomic/numberFormat\",\"setFormat\"],[0,\"atomic/numberInputApply\",\"applyNumberInput\"]]]]],[\"atomic-insight-refine-toggle\",[[1,\"atomic-insight-refine-toggle\",{\"error\":[32],\"breadcrumbManagerState\":[32],\"searchStatusState\":[32]}]]],[\"atomic-insight-result-quickview-action\",[[0,\"atomic-insight-result-quickview-action\",{\"sandbox\":[1],\"error\":[32],\"quickviewState\":[32]},[[16,\"atomic/quickview/next\",\"onNextQuickview\"],[16,\"atomic/quickview/previous\",\"onPreviousQuickview\"]]]]],[\"atomic-insight-search-box\",[[1,\"atomic-insight-search-box\",{\"disableSearch\":[516,\"disable-search\"],\"numberOfSuggestions\":[514,\"number-of-suggestions\"],\"searchBoxState\":[32],\"error\":[32],\"isExpanded\":[32]}]]],[\"atomic-ipx-embedded\",[[1,\"atomic-ipx-embedded\",{\"container\":[1040],\"error\":[32],\"hasFooterSlotElements\":[32]}]]],[\"atomic-ipx-modal\",[[1,\"atomic-ipx-modal\",{\"source\":[1040],\"container\":[1040],\"isOpen\":[1540,\"is-open\"],\"error\":[32],\"hasFooterSlotElements\":[32]},[[0,\"touchmove\",\"onWindowTouchMove\"]],{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-ipx-refine-toggle\",[[1,\"atomic-ipx-refine-toggle\",{\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"error\":[32],\"breadcrumbManagerState\":[32],\"searchStatusState\":[32]}]]],[\"atomic-numeric-facet\",[[1,\"atomic-numeric-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withInput\":[513,\"with-input\"],\"sortCriteria\":[513,\"sort-criteria\"],\"rangeAlgorithm\":[513,\"range-algorithm\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32],\"facetForInputState\":[32]},[[0,\"atomic/numberFormat\",\"setFormat\"],[0,\"atomic/numberInputApply\",\"applyNumberInput\"]]]]],[\"atomic-popover\",[[1,\"atomic-popover\",{\"searchStatusState\":[32],\"facetState\":[32],\"error\":[32],\"isOpen\":[32],\"childFacet\":[32]},[[0,\"atomic/initializePopover\",\"initializePopover\"],[0,\"keydown\",\"handleKeyDown\"]]]]],[\"atomic-quickview\",[[1,\"atomic-quickview\",{\"sandbox\":[1],\"error\":[32],\"quickviewState\":[32]},[[16,\"atomic/quickview/next\",\"onNextQuickview\"],[16,\"atomic/quickview/previous\",\"onPreviousQuickview\"]]]]],[\"atomic-result-html\",[[0,\"atomic-result-html\",{\"field\":[513],\"sanitize\":[516],\"error\":[32]}]]],[\"atomic-search-box-instant-results\",[[1,\"atomic-search-box-instant-results\",{\"maxResultsPerQuery\":[514,\"max-results-per-query\"],\"density\":[513],\"imageSize\":[513,\"image-size\"],\"ariaLabelGenerator\":[16],\"error\":[32],\"templateHasError\":[32],\"setRenderFunction\":[64]}]]],[\"atomic-search-interface\",[[1,\"atomic-search-interface\",{\"fieldsToInclude\":[1025,\"fields-to-include\"],\"pipeline\":[1537],\"searchHub\":[1537,\"search-hub\"],\"analytics\":[516],\"timezone\":[513],\"logLevel\":[513,\"log-level\"],\"i18n\":[16],\"language\":[513],\"engine\":[1040],\"reflectStateInUrl\":[516,\"reflect-state-in-url\"],\"scrollContainer\":[513,\"scroll-container\"],\"languageAssetsPath\":[513,\"language-assets-path\"],\"iconAssetsPath\":[513,\"icon-assets-path\"],\"enableRelevanceInspector\":[516,\"enable-relevance-inspector\"],\"CspNonce\":[513,\"csp-nonce\"],\"error\":[32],\"relevanceInspectorIsOpen\":[32],\"initialize\":[64],\"initializeWithSearchEngine\":[64],\"executeFirstSearch\":[64]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"],[0,\"atomic/scrollToTop\",\"scrollToTop\"],[0,\"atomic/relevanceInspector/close\",\"closeRelevanceInspector\"]],{\"searchHub\":[\"updateSearchHub\"],\"pipeline\":[\"updatePipeline\"],\"analytics\":[\"toggleAnalytics\"],\"language\":[\"updateLanguage\"],\"iconAssetsPath\":[\"updateIconAssetsPath\"]}]]],[\"atomic-breadbox\",[[1,\"atomic-breadbox\",{\"pathLimit\":[2,\"path-limit\"],\"breadcrumbManagerState\":[32],\"facetManagerState\":[32],\"error\":[32],\"isCollapsed\":[32]}]]],[\"atomic-category-facet\",[[1,\"atomic-category-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withSearch\":[516,\"with-search\"],\"sortCriteria\":[513,\"sort-criteria\"],\"delimitingCharacter\":[513,\"delimiting-character\"],\"basePath\":[1537,\"base-path\"],\"filterByBasePath\":[516,\"filter-by-base-path\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-citation\",[[0,\"atomic-citation\",{\"citation\":[16],\"index\":[2],\"sendHoverEndEvent\":[16],\"interactiveCitation\":[16],\"disableCitationAnchoring\":[4,\"disable-citation-anchoring\"],\"isOpen\":[32]},null,{\"isOpen\":[\"sendHoverAnalytics\"]}]]],[\"atomic-color-facet\",[[1,\"atomic-color-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withSearch\":[516,\"with-search\"],\"sortCriteria\":[513,\"sort-criteria\"],\"resultsMustMatch\":[513,\"results-must-match\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"allowedValues\":[1025,\"allowed-values\"],\"customSort\":[1025,\"custom-sort\"],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-did-you-mean\",[[1,\"atomic-did-you-mean\",{\"automaticallyCorrectQuery\":[516,\"automatically-correct-query\"],\"queryCorrectionMode\":[513,\"query-correction-mode\"],\"didYouMeanState\":[32],\"queryTriggerState\":[32],\"error\":[32]},null,{\"queryCorrectionMode\":[\"updateQueryCorrectionMode\"]}]]],[\"atomic-external\",[[0,\"atomic-external\",{\"selector\":[513],\"boundInterface\":[1040]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"],[0,\"atomic/scrollToTop\",\"handleScrollToTop\"],[8,\"atomic/parentReady\",\"handleParentReady\"]]]]],[\"atomic-facet\",[[1,\"atomic-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withSearch\":[516,\"with-search\"],\"sortCriteria\":[513,\"sort-criteria\"],\"resultsMustMatch\":[513,\"results-must-match\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"enableExclusion\":[516,\"enable-exclusion\"],\"injectionDepth\":[2,\"injection-depth\"],\"dependsOn\":[16],\"allowedValues\":[1025,\"allowed-values\"],\"customSort\":[1025,\"custom-sort\"],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-facet-manager\",[[4,\"atomic-facet-manager\",{\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"facetManagerState\":[32],\"error\":[32]}]]],[\"atomic-field-condition\",[[4,\"atomic-field-condition\",{\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16]}]]],[\"atomic-format-currency\",[[1,\"atomic-format-currency\",{\"currency\":[513],\"error\":[32]}]]],[\"atomic-format-number\",[[1,\"atomic-format-number\",{\"minimumIntegerDigits\":[514,\"minimum-integer-digits\"],\"minimumFractionDigits\":[514,\"minimum-fraction-digits\"],\"maximumFractionDigits\":[514,\"maximum-fraction-digits\"],\"minimumSignificantDigits\":[514,\"minimum-significant-digits\"],\"maximumSignificantDigits\":[514,\"maximum-significant-digits\"],\"error\":[32]}]]],[\"atomic-format-unit\",[[1,\"atomic-format-unit\",{\"unit\":[513],\"unitDisplay\":[513,\"unit-display\"],\"error\":[32]}]]],[\"atomic-generated-answer\",[[1,\"atomic-generated-answer\",{\"withToggle\":[4,\"with-toggle\"],\"collapsible\":[4],\"maxCollapsedHeight\":[2,\"max-collapsed-height\"],\"answerConfigurationId\":[1,\"answer-configuration-id\"],\"fieldsToIncludeInCitations\":[1,\"fields-to-include-in-citations\"],\"disableCitationAnchoring\":[4,\"disable-citation-anchoring\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"generatedAnswerState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32],\"copied\":[32],\"copyError\":[32]},null,{\"generatedAnswerState\":[\"updateAnswerCollapsed\"],\"tabManagerState\":[\"watchTabManagerState\"]}]]],[\"atomic-generated-answer-feedback-modal\",[[1,\"atomic-generated-answer-feedback-modal\",{\"isOpen\":[1540,\"is-open\"],\"generatedAnswer\":[1040],\"helpful\":[1540],\"error\":[32],\"currentAnswer\":[32],\"feedbackSubmitted\":[32],\"answerEvaluationRequired\":[32]},null,{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-insight-edit-toggle\",[[1,\"atomic-insight-edit-toggle\",{\"clickCallback\":[1040],\"tooltip\":[1025]}]]],[\"atomic-insight-facet\",[[1,\"atomic-insight-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"numberOfValues\":[514,\"number-of-values\"],\"sortCriteria\":[513,\"sort-criteria\"],\"resultsMustMatch\":[513,\"results-must-match\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[2,\"injection-depth\"],\"enableExclusion\":[516,\"enable-exclusion\"],\"facetState\":[32],\"searchStatusState\":[32],\"error\":[32]}]]],[\"atomic-insight-full-search-button\",[[1,\"atomic-insight-full-search-button\",{\"tooltip\":[1025],\"error\":[32]}]]],[\"atomic-insight-generated-answer\",[[1,\"atomic-insight-generated-answer\",{\"withToggle\":[4,\"with-toggle\"],\"collapsible\":[4],\"maxCollapsedHeight\":[2,\"max-collapsed-height\"],\"answerConfigurationId\":[1,\"answer-configuration-id\"],\"fieldsToIncludeInCitations\":[1,\"fields-to-include-in-citations\"],\"disableCitationAnchoring\":[4,\"disable-citation-anchoring\"],\"generatedAnswerState\":[32],\"searchStatusState\":[32],\"error\":[32],\"copied\":[32],\"copyError\":[32]},null,{\"generatedAnswerState\":[\"updateAnswerCollapsed\"]}]]],[\"atomic-insight-history-toggle\",[[1,\"atomic-insight-history-toggle\",{\"clickCallback\":[1040],\"tooltip\":[1025]}]]],[\"atomic-insight-interface\",[[1,\"atomic-insight-interface\",{\"engine\":[1040],\"analytics\":[516],\"i18n\":[16],\"logLevel\":[513,\"log-level\"],\"language\":[513],\"languageAssetsPath\":[513,\"language-assets-path\"],\"iconAssetsPath\":[513,\"icon-assets-path\"],\"fieldsToInclude\":[1025,\"fields-to-include\"],\"resultsPerPage\":[514,\"results-per-page\"],\"CspNonce\":[513,\"csp-nonce\"],\"error\":[32],\"initialize\":[64],\"initializeWithInsightEngine\":[64],\"executeFirstSearch\":[64]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"]],{\"iconAssetsPath\":[\"updateIconAssetsPath\"],\"language\":[\"updateLanguage\"],\"analytics\":[\"toggleAnalytics\"]}]]],[\"atomic-insight-layout\",[[0,\"atomic-insight-layout\",{\"widget\":[1540]},null,{\"widget\":[\"updateStyles\"]}]]],[\"atomic-insight-no-results\",[[1,\"atomic-insight-no-results\",{\"searchStatusState\":[32],\"querySummaryState\":[32],\"error\":[32]}]]],[\"atomic-insight-pager\",[[1,\"atomic-insight-pager\",{\"numberOfPages\":[514,\"number-of-pages\"],\"pagerState\":[32],\"searchStatusState\":[32],\"error\":[32]}]]],[\"atomic-insight-query-error\",[[1,\"atomic-insight-query-error\",{\"queryErrorState\":[32],\"error\":[32],\"showMoreInfo\":[32]}]]],[\"atomic-insight-query-summary\",[[1,\"atomic-insight-query-summary\",{\"querySummaryState\":[32],\"error\":[32]}]]],[\"atomic-insight-result-action\",[[0,\"atomic-insight-result-action\",{\"icon\":[1025],\"tooltip\":[1025],\"tooltipOnClick\":[1025,\"tooltip-on-click\"],\"action\":[1025],\"error\":[32]}]]],[\"atomic-insight-result-action-bar\",[[0,\"atomic-insight-result-action-bar\"]]],[\"atomic-insight-result-attach-to-case-action\",[[0,\"atomic-insight-result-attach-to-case-action\",{\"error\":[32],\"attachToCaseState\":[32]}]]],[\"atomic-insight-result-attach-to-case-indicator\",[[0,\"atomic-insight-result-attach-to-case-indicator\",{\"error\":[32],\"attachToCaseState\":[32]}]]],[\"atomic-insight-result-children-template\",[[1,\"atomic-insight-result-children-template\",{\"conditions\":[16],\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-insight-result-template\",[[1,\"atomic-insight-result-template\",{\"conditions\":[16],\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-insight-tab\",[[1,\"atomic-insight-tab\",{\"label\":[513],\"active\":[1540],\"expression\":[1],\"error\":[32],\"isAppLoaded\":[32],\"tabState\":[32],\"select\":[64]}]]],[\"atomic-insight-timeframe-facet\",[[1,\"atomic-insight-timeframe-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"withDatePicker\":[516,\"with-date-picker\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"sortCriteria\":[513,\"sort-criteria\"],\"facetState\":[32],\"facetForDatePickerState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"error\":[32]},[[0,\"atomic/dateInputApply\",\"applyDateInput\"]]]]],[\"atomic-ipx-button\",[[1,\"atomic-ipx-button\",{\"label\":[513],\"closeIcon\":[513,\"close-icon\"],\"openIcon\":[513,\"open-icon\"],\"isModalOpen\":[1540,\"is-modal-open\"],\"error\":[32]}]]],[\"atomic-ipx-tab\",[[1,\"atomic-ipx-tab\",{\"label\":[513],\"active\":[1540],\"expression\":[1],\"error\":[32],\"isAppLoaded\":[32],\"tabState\":[32],\"select\":[64]}]]],[\"atomic-load-more-results\",[[1,\"atomic-load-more-results\",{\"querySummaryState\":[32],\"resultListState\":[32],\"error\":[32],\"isAppLoaded\":[32]}]]],[\"atomic-no-results\",[[1,\"atomic-no-results\",{\"enableCancelLastAction\":[516,\"enable-cancel-last-action\"],\"searchStatusState\":[32],\"historyState\":[32],\"querySummaryState\":[32],\"error\":[32]}]]],[\"atomic-notifications\",[[1,\"atomic-notifications\",{\"headingLevel\":[514,\"heading-level\"],\"icon\":[513],\"notifyTriggerState\":[32],\"error\":[32]}]]],[\"atomic-numeric-range\",[[0,\"atomic-numeric-range\",{\"label\":[513],\"start\":[514],\"end\":[514],\"endInclusive\":[516,\"end-inclusive\"]}]]],[\"atomic-pager\",[[1,\"atomic-pager\",{\"numberOfPages\":[514,\"number-of-pages\"],\"previousButtonIcon\":[513,\"previous-button-icon\"],\"nextButtonIcon\":[513,\"next-button-icon\"],\"pagerState\":[32],\"searchStatusState\":[32],\"error\":[32],\"isAppLoaded\":[32]}]]],[\"atomic-query-error\",[[1,\"atomic-query-error\",{\"queryErrorState\":[32],\"error\":[32],\"showMoreInfo\":[32]}]]],[\"atomic-rating-facet\",[[1,\"atomic-rating-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfIntervals\":[514,\"number-of-intervals\"],\"maxValueInIndex\":[514,\"max-value-in-index\"],\"minValueInIndex\":[514,\"min-value-in-index\"],\"displayValuesAs\":[513,\"display-values-as\"],\"icon\":[513],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-rating-range-facet\",[[1,\"atomic-rating-range-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfIntervals\":[514,\"number-of-intervals\"],\"maxValueInIndex\":[514,\"max-value-in-index\"],\"minValueInIndex\":[514,\"min-value-in-index\"],\"icon\":[513],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-recs-error\",[[1,\"atomic-recs-error\",{\"recommendationListState\":[32],\"error\":[32],\"showMoreInfo\":[32]}]]],[\"atomic-recs-interface\",[[1,\"atomic-recs-interface\",{\"pipeline\":[1537],\"searchHub\":[1537,\"search-hub\"],\"timezone\":[513],\"engine\":[1040],\"analytics\":[516],\"i18n\":[16],\"logLevel\":[513,\"log-level\"],\"language\":[513],\"fieldsToInclude\":[1025,\"fields-to-include\"],\"languageAssetsPath\":[513,\"language-assets-path\"],\"iconAssetsPath\":[513,\"icon-assets-path\"],\"CspNonce\":[513,\"csp-nonce\"],\"error\":[32],\"initialize\":[64],\"initializeWithRecommendationEngine\":[64],\"getRecommendations\":[64]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"]],{\"iconAssetsPath\":[\"updateIconAssetsPath\"],\"language\":[\"updateLanguage\"],\"analytics\":[\"toggleAnalytics\"]}]]],[\"atomic-recs-result-template\",[[1,\"atomic-recs-result-template\",{\"conditions\":[16],\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-result-children-template\",[[1,\"atomic-result-children-template\",{\"conditions\":[16],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-result-date\",[[0,\"atomic-result-date\",{\"field\":[513],\"format\":[513],\"relativeTime\":[516,\"relative-time\"],\"error\":[32]}]]],[\"atomic-result-fields-list\",[[0,\"atomic-result-fields-list\"]]],[\"atomic-result-icon\",[[1,\"atomic-result-icon\"]]],[\"atomic-result-image\",[[0,\"atomic-result-image\",{\"field\":[513],\"imageAltField\":[513,\"image-alt-field\"],\"fallback\":[513],\"useFallback\":[32]}]]],[\"atomic-result-localized-text\",[[0,\"atomic-result-localized-text\",{\"localeKey\":[1,\"locale-key\"],\"field\":[16],\"fieldCount\":[1,\"field-count\"],\"error\":[32]}]]],[\"atomic-result-multi-value-text\",[[1,\"atomic-result-multi-value-text\",{\"field\":[513],\"maxValuesToDisplay\":[514,\"max-values-to-display\"],\"delimiter\":[513],\"error\":[32]}]]],[\"atomic-result-number\",[[0,\"atomic-result-number\",{\"field\":[513],\"error\":[32],\"formatter\":[32],\"valueToDisplay\":[32]},[[0,\"atomic/numberFormat\",\"setFormat\"]]]]],[\"atomic-result-rating\",[[1,\"atomic-result-rating\",{\"field\":[513],\"maxValueInIndex\":[514,\"max-value-in-index\"],\"icon\":[513],\"error\":[32],\"numberOfStars\":[32]}]]],[\"atomic-result-section-children\",[[0,\"atomic-result-section-children\"]]],[\"atomic-result-section-emphasized\",[[0,\"atomic-result-section-emphasized\"]]],[\"atomic-result-section-title-metadata\",[[0,\"atomic-result-section-title-metadata\"]]],[\"atomic-result-template\",[[1,\"atomic-result-template\",{\"conditions\":[16],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-result-timespan\",[[0,\"atomic-result-timespan\",{\"field\":[513],\"unit\":[513],\"format\":[513],\"error\":[32]}]]],[\"atomic-segmented-facet\",[[1,\"atomic-segmented-facet\",{\"facetId\":[1537,\"facet-id\"],\"field\":[513],\"label\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[2,\"injection-depth\"],\"numberOfValues\":[514,\"number-of-values\"],\"sortCriteria\":[513,\"sort-criteria\"],\"dependsOn\":[16],\"allowedValues\":[1025,\"allowed-values\"],\"customSort\":[1025,\"custom-sort\"],\"searchStatusState\":[32],\"tabManagerState\":[32],\"facetState\":[32],\"error\":[32]}]]],[\"atomic-segmented-facet-scrollable\",[[1,\"atomic-segmented-facet-scrollable\",{\"searchStatusState\":[32],\"error\":[32],\"hideLeftArrow\":[32],\"hideRightArrow\":[32]},[[1,\"wheel\",\"handleScroll\"],[1,\"touchmove\",\"handleScroll\"],[0,\"keydown\",\"handleScroll\"]]]]],[\"atomic-sort-dropdown\",[[1,\"atomic-sort-dropdown\",{\"sortState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-sort-expression\",[[0,\"atomic-sort-expression\",{\"label\":[513],\"expression\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"]}]]],[\"atomic-stencil-facet-date-input\",[[0,\"atomic-stencil-facet-date-input\",{\"bindings\":[16],\"rangeGetter\":[16],\"rangeSetter\":[16],\"facetId\":[1,\"facet-id\"],\"label\":[1],\"min\":[1],\"max\":[1],\"start\":[32],\"end\":[32]}]]],[\"atomic-tab\",[[0,\"atomic-tab\",{\"label\":[1],\"name\":[1],\"expression\":[1]}]]],[\"atomic-table-element\",[[0,\"atomic-table-element\",{\"label\":[513]}]]],[\"atomic-timeframe\",[[0,\"atomic-timeframe\",{\"period\":[513],\"unit\":[513],\"amount\":[514],\"label\":[513]}]]],[\"atomic-timeframe-facet\",[[1,\"atomic-timeframe-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"withDatePicker\":[516,\"with-date-picker\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"min\":[513],\"max\":[513],\"sortCriteria\":[513,\"sort-criteria\"],\"facetState\":[32],\"facetForDatePickerState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]},[[0,\"atomic/dateInputApply\",\"applyDateInput\"]]]]],[\"atomic-insight-user-actions-modal\",[[1,\"atomic-insight-user-actions-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"userId\":[1,\"user-id\"],\"ticketCreationDateTime\":[1,\"ticket-creation-date-time\"],\"excludedCustomActions\":[16],\"error\":[32],\"interfaceDimensions\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-refine-modal\",[[1,\"atomic-refine-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"querySummaryState\":[32],\"breadcrumbManagerState\":[32],\"facetManagerState\":[32],\"sortState\":[32],\"tabManagerState\":[32],\"error\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-focus-trap\",[[0,\"atomic-focus-trap\",{\"active\":[4],\"source\":[1040],\"container\":[1040],\"shouldHideSelf\":[4,\"should-hide-self\"],\"scope\":[16]},[[4,\"focusin\",\"onFocusChanged\"]],{\"active\":[\"activeChanged\"]}]]],[\"atomic-html\",[[1,\"atomic-html\",{\"value\":[1],\"sanitize\":[516],\"error\":[32]}]]],[\"atomic-insight-refine-modal\",[[1,\"atomic-insight-refine-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"querySummaryState\":[32],\"breadcrumbManagerState\":[32],\"error\":[32],\"interfaceDimensions\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-insight-smart-snippet-feedback-modal\",[[1,\"atomic-insight-smart-snippet-feedback-modal\",{\"source\":[1040],\"isOpen\":[1540,\"is-open\"],\"error\":[32],\"currentAnswer\":[32]},null,{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-ipx-refine-modal\",[[1,\"atomic-ipx-refine-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"querySummaryState\":[32],\"breadcrumbManagerState\":[32],\"error\":[32],\"interfaceDimensions\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-relevance-inspector\",[[1,\"atomic-relevance-inspector\",{\"bindings\":[16],\"open\":[516]}]]],[\"atomic-search-box-recent-queries\",[[1,\"atomic-search-box-recent-queries\",{\"icon\":[1],\"maxWithQuery\":[514,\"max-with-query\"],\"maxWithoutQuery\":[514,\"max-without-query\"],\"error\":[32]}]]],[\"atomic-smart-snippet-feedback-modal\",[[1,\"atomic-smart-snippet-feedback-modal\",{\"source\":[1040],\"isOpen\":[1540,\"is-open\"],\"error\":[32],\"currentAnswer\":[32]},null,{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-tab-button\",[[0,\"atomic-tab-button\",{\"label\":[1],\"active\":[4],\"select\":[16]}]]],[\"atomic-facet-number-input\",[[0,\"atomic-facet-number-input\",{\"bindings\":[16],\"type\":[1],\"filter\":[16],\"filterState\":[16],\"label\":[1],\"start\":[32],\"end\":[32]}]]],[\"atomic-ipx-body\",[[1,\"atomic-ipx-body\",{\"isOpen\":[1028,\"is-open\"],\"displayFooterSlot\":[516,\"display-footer-slot\"],\"error\":[32]}]]],[\"atomic-quickview-modal\",[[1,\"atomic-quickview-modal\",{\"content\":[1025],\"result\":[1040],\"current\":[2],\"total\":[2],\"sandbox\":[1],\"modalCloseCallback\":[16],\"error\":[32],\"highlightKeywords\":[32],\"minimizeSidebar\":[32],\"words\":[32],\"reset\":[64]},null,{\"highlightKeywords\":[\"watchHighlightKeywords\"]}]]],[\"atomic-recs-result\",[[1,\"atomic-recs-result\",{\"stopPropagation\":[4,\"stop-propagation\"],\"linkContent\":[16],\"result\":[16],\"interactiveResult\":[16],\"store\":[16],\"content\":[16],\"display\":[1],\"density\":[1],\"imageSize\":[1,\"image-size\"],\"classes\":[1],\"loadingFlag\":[1,\"loading-flag\"],\"renderingFunction\":[16]},[[0,\"click\",\"handleClick\"],[0,\"atomic/resolveResult\",\"resolveResult\"],[0,\"atomic/resolveInteractiveResult\",\"resolveInteractiveResult\"],[0,\"atomic/resolveStopPropagation\",\"resolveStopPropagation\"],[0,\"atomic/resolveResultDisplayConfig\",\"resolveResultDisplayConfig\"]]]]],[\"atomic-suggestion-renderer\",[[0,\"atomic-suggestion-renderer\",{\"i18n\":[16],\"id\":[1],\"suggestion\":[16],\"isSelected\":[4,\"is-selected\"],\"side\":[1],\"index\":[2],\"lastIndex\":[2,\"last-index\"],\"isDoubleList\":[4,\"is-double-list\"],\"onClick\":[16],\"onMouseOver\":[16]}]]],[\"atomic-insight-result\",[[1,\"atomic-insight-result\",{\"stopPropagation\":[4,\"stop-propagation\"],\"result\":[16],\"interactiveResult\":[16],\"store\":[16],\"content\":[16],\"density\":[1],\"imageSize\":[1,\"image-size\"],\"classes\":[1],\"loadingFlag\":[1,\"loading-flag\"]},[[0,\"atomic/resolveResult\",\"resolveResult\"],[0,\"atomic/resolveInteractiveResult\",\"resolveInteractiveResult\"],[0,\"atomic/resolveStopPropagation\",\"resolveStopPropagation\"],[0,\"atomic/resolveResultDisplayConfig\",\"resolveResultDisplayConfig\"]]]]],[\"atomic-smart-snippet-collapse-wrapper_2\",[[1,\"atomic-smart-snippet-expandable-answer\",{\"expanded\":[516],\"htmlContent\":[1,\"html-content\"],\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"snippetStyle\":[1,\"snippet-style\"],\"fullHeight\":[32]},null,{\"fullHeight\":[\"fullHeightUpdated\"]}],[1,\"atomic-smart-snippet-collapse-wrapper\",{\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"isExpanded\":[32],\"showButton\":[32],\"fullHeight\":[32]}]]],[\"atomic-result\",[[1,\"atomic-result\",{\"stopPropagation\":[4,\"stop-propagation\"],\"result\":[16],\"interactiveResult\":[16],\"store\":[16],\"content\":[16],\"linkContent\":[16],\"display\":[1],\"density\":[1],\"imageSize\":[1,\"image-size\"],\"classes\":[1],\"loadingFlag\":[1,\"loading-flag\"],\"renderingFunction\":[16]},[[0,\"atomic/resolveResult\",\"resolveResult\"],[0,\"atomic/resolveInteractiveResult\",\"resolveInteractiveResult\"],[0,\"atomic/resolveStopPropagation\",\"resolveStopPropagation\"],[0,\"atomic/resolveResultDisplayConfig\",\"resolveResultDisplayConfig\"],[0,\"click\",\"handleClick\"]]]]],[\"atomic-automatic-facet_2\",[[0,\"atomic-automatic-facet-generator\",{\"desiredCount\":[514,\"desired-count\"],\"numberOfValues\":[514,\"number-of-values\"],\"error\":[32],\"automaticFacetGeneratorState\":[32],\"searchStatusState\":[32],\"collapseFacetsAfter\":[32],\"updateCollapseFacetsDependingOnFacetsVisibility\":[64]}],[1,\"atomic-automatic-facet\",{\"field\":[513],\"facetId\":[513,\"facet-id\"],\"facet\":[16],\"searchStatus\":[16],\"isCollapsed\":[1540,\"is-collapsed\"],\"error\":[32]}]]],[\"atomic-insight-user-actions-session_2\",[[1,\"atomic-insight-user-actions-timeline\",{\"userId\":[1,\"user-id\"],\"ticketCreationDateTime\":[1,\"ticket-creation-date-time\"],\"excludedCustomActions\":[16],\"userActionsState\":[32],\"followingSessionsAreVisible\":[32],\"precedingSessionsAreVisible\":[32]}],[1,\"atomic-insight-user-actions-session\",{\"startTimestamp\":[2,\"start-timestamp\"],\"userActions\":[16],\"error\":[32],\"areActionsAfterCaseCreationVisible\":[32]},null,{\"userActions\":[\"prepareUserActionsToDisplay\"]}]]],[\"atomic-tab-bar_2\",[[1,\"atomic-tab-bar\",{\"popoverTabs\":[32]},[[0,\"atomic/tabRendered\",\"resolveResult\"]]],[1,\"atomic-tab-popover\",{\"show\":[32],\"error\":[32],\"isOpen\":[32],\"toggle\":[64],\"setButtonVisibility\":[64],\"closePopoverOnFocusOut\":[64]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"atomic-result-text_2\",[[0,\"atomic-result-text\",{\"field\":[513],\"shouldHighlight\":[516,\"should-highlight\"],\"default\":[513],\"error\":[32]}],[1,\"atomic-text\",{\"value\":[513],\"count\":[514],\"error\":[32]}]]],[\"atomic-smart-snippet-answer_2\",[[0,\"atomic-smart-snippet-source\",{\"source\":[1040],\"anchorAttributes\":[16],\"error\":[32]},[[0,\"atomic/resolveResult\",\"resolveResult\"]]],[1,\"atomic-smart-snippet-answer\",{\"htmlContent\":[1,\"html-content\"],\"innerStyle\":[1,\"inner-style\"]}]]],[\"atomic-result-placeholder_8\",[[1,\"atomic-result-placeholder\",{\"display\":[1],\"density\":[1],\"imageSize\":[1,\"image-size\"]}],[1,\"atomic-result-table-placeholder\",{\"density\":[1],\"imageSize\":[1,\"image-size\"],\"rows\":[2]}],[0,\"atomic-result-section-actions\"],[0,\"atomic-result-section-badges\"],[0,\"atomic-result-section-bottom-metadata\"],[0,\"atomic-result-section-excerpt\"],[0,\"atomic-result-section-title\"],[0,\"atomic-result-section-visual\",{\"imageSize\":[513,\"image-size\"]}]]]]"), options);
19
+ return bootstrapLazy(JSON.parse("[[\"atomic-result-list\",[[1,\"atomic-result-list\",{\"display\":[513],\"density\":[513],\"imageSize\":[1537,\"image-size\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"resultListState\":[32],\"resultsPerPageState\":[32],\"tabManagerState\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"isAppLoaded\":[32],\"templateHasError\":[32],\"setRenderFunction\":[64]},null,{\"tabManagerState\":[\"watchTabManagerState\"]}]]],[\"atomic-folded-result-list\",[[1,\"atomic-folded-result-list\",{\"density\":[513],\"imageSize\":[513,\"image-size\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"collectionField\":[513,\"collection-field\"],\"parentField\":[513,\"parent-field\"],\"childField\":[513,\"child-field\"],\"numberOfFoldedResults\":[514,\"number-of-folded-results\"],\"foldedResultListState\":[32],\"resultsPerPageState\":[32],\"tabManagerState\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"templateHasError\":[32],\"isAppLoaded\":[32],\"setRenderFunction\":[64]},[[0,\"atomic/resolveFoldedResultList\",\"resolveFoldedResultList\"],[0,\"atomic/loadCollection\",\"loadCollection\"]],{\"tabManagerState\":[\"watchTabManagerState\"]}]]],[\"atomic-insight-folded-result-list\",[[1,\"atomic-insight-folded-result-list\",{\"density\":[513],\"imageSize\":[513,\"image-size\"],\"collectionField\":[513,\"collection-field\"],\"parentField\":[513,\"parent-field\"],\"childField\":[513,\"child-field\"],\"foldedResultListState\":[32],\"resultsPerPageState\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"isAppLoaded\":[32],\"templateHasError\":[32],\"setRenderFunction\":[64]},[[0,\"atomic/resolveFoldedResultList\",\"resolveFoldedResultList\"],[0,\"atomic/loadCollection\",\"loadCollection\"]]]]],[\"atomic-insight-result-children\",[[1,\"atomic-insight-result-children\",{\"inheritTemplates\":[4,\"inherit-templates\"],\"imageSize\":[513,\"image-size\"],\"noResultText\":[1,\"no-result-text\"],\"error\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"foldedResultListState\":[32],\"showInitialChildren\":[32]},[[0,\"atomic/resolveChildTemplates\",\"resolveChildTemplates\"]]]]],[\"atomic-insight-result-list\",[[1,\"atomic-insight-result-list\",{\"density\":[513],\"imageSize\":[513,\"image-size\"],\"resultsPerPageState\":[32],\"resultListState\":[32],\"templateHasError\":[32],\"resultTemplateRegistered\":[32],\"error\":[32],\"isAppLoaded\":[32],\"setRenderFunction\":[64]}]]],[\"atomic-ipx-recs-list\",[[1,\"atomic-ipx-recs-list\",{\"recommendation\":[513],\"display\":[513],\"density\":[513],\"imageSize\":[513,\"image-size\"],\"numberOfRecommendations\":[514,\"number-of-recommendations\"],\"numberOfRecommendationsPerPage\":[514,\"number-of-recommendations-per-page\"],\"label\":[513],\"headingLevel\":[514,\"heading-level\"],\"error\":[32],\"isAppLoaded\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"currentPage\":[32],\"recommendationListState\":[32],\"setRenderFunction\":[64],\"previousPage\":[64],\"nextPage\":[64]},null,{\"numberOfRecommendationsPerPage\":[\"watchNumberOfRecommendationsPerPage\"]}]]],[\"atomic-recs-list\",[[1,\"atomic-recs-list\",{\"recommendation\":[513],\"display\":[513],\"density\":[513],\"imageSize\":[513,\"image-size\"],\"numberOfRecommendations\":[514,\"number-of-recommendations\"],\"numberOfRecommendationsPerPage\":[514,\"number-of-recommendations-per-page\"],\"label\":[513],\"headingLevel\":[514,\"heading-level\"],\"error\":[32],\"isAppLoaded\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"currentPage\":[32],\"recommendationListState\":[32],\"setRenderFunction\":[64],\"previousPage\":[64],\"nextPage\":[64]},null,{\"numberOfRecommendationsPerPage\":[\"watchNumberOfRecommendationsPerPage\"]}]]],[\"atomic-result-children\",[[1,\"atomic-result-children\",{\"inheritTemplates\":[4,\"inherit-templates\"],\"imageSize\":[513,\"image-size\"],\"noResultText\":[1,\"no-result-text\"],\"error\":[32],\"resultTemplateRegistered\":[32],\"templateHasError\":[32],\"foldedResultListState\":[32],\"showInitialChildren\":[32],\"loadedFullCollection\":[32]},[[0,\"atomic/resolveChildTemplates\",\"resolveChildTemplates\"]]]]],[\"atomic-insight-smart-snippet\",[[1,\"atomic-insight-smart-snippet\",{\"headingLevel\":[514,\"heading-level\"],\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"snippetStyle\":[513,\"snippet-style\"],\"smartSnippetState\":[32],\"feedbackSent\":[32]}]]],[\"atomic-smart-snippet\",[[1,\"atomic-smart-snippet\",{\"headingLevel\":[514,\"heading-level\"],\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"snippetStyle\":[513,\"snippet-style\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"snippetMaximumHeight\":[514,\"snippet-maximum-height\"],\"snippetCollapsedHeight\":[514,\"snippet-collapsed-height\"],\"smartSnippetState\":[32],\"tabManagerState\":[32],\"feedbackSent\":[32]},[[0,\"selectInlineLink\",\"onSelectInlineLink\"],[0,\"beginDelayedSelectInlineLink\",\"onBeginDelayedSelectInlineLink\"],[0,\"cancelPendingSelectInlineLink\",\"onCancelPendingSelectInlineLink\"]]]]],[\"atomic-insight-smart-snippet-suggestions\",[[1,\"atomic-insight-smart-snippet-suggestions\",{\"headingLevel\":[514,\"heading-level\"],\"snippetStyle\":[1,\"snippet-style\"],\"smartSnippetQuestionsListState\":[32]}]]],[\"atomic-smart-snippet-suggestions\",[[1,\"atomic-smart-snippet-suggestions\",{\"headingLevel\":[514,\"heading-level\"],\"snippetStyle\":[1,\"snippet-style\"],\"smartSnippetQuestionsListState\":[32]}]]],[\"atomic-insight-user-actions-toggle\",[[1,\"atomic-insight-user-actions-toggle\",{\"userId\":[1,\"user-id\"],\"ticketCreationDateTime\":[1,\"ticket-creation-date-time\"],\"excludedCustomActions\":[16],\"userActionsState\":[32],\"error\":[32]}]]],[\"atomic-refine-toggle\",[[1,\"atomic-refine-toggle\",{\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"error\":[32],\"searchStatusState\":[32]}]]],[\"atomic-search-box\",[[1,\"atomic-search-box\",{\"numberOfQueries\":[514,\"number-of-queries\"],\"redirectionUrl\":[513,\"redirection-url\"],\"suggestionTimeout\":[2,\"suggestion-timeout\"],\"suggestionDelay\":[2,\"suggestion-delay\"],\"disableSearch\":[516,\"disable-search\"],\"minimumQueryLength\":[514,\"minimum-query-length\"],\"clearFilters\":[516,\"clear-filters\"],\"enableQuerySyntax\":[516,\"enable-query-syntax\"],\"searchBoxState\":[32],\"error\":[32],\"isExpanded\":[32]},[[0,\"atomic/searchBoxSuggestion/register\",\"registerSuggestions\"]],{\"redirectionUrl\":[\"watchRedirectionUrl\"]}]]],[\"atomic-tab-manager\",[[1,\"atomic-tab-manager\",{\"clearFiltersOnTabChange\":[4,\"clear-filters-on-tab-change\"],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-insight-tabs\",[[4,\"atomic-insight-tabs\",{\"error\":[32]}]]],[\"atomic-ipx-result-link\",[[4,\"atomic-ipx-result-link\",{\"hrefTemplate\":[513,\"href-template\"]}]]],[\"atomic-ipx-tabs\",[[4,\"atomic-ipx-tabs\",{\"error\":[32]}]]],[\"atomic-result-badge\",[[1,\"atomic-result-badge\",{\"field\":[513],\"label\":[513],\"icon\":[513]}]]],[\"atomic-result-link\",[[4,\"atomic-result-link\",{\"hrefTemplate\":[513,\"href-template\"]}]]],[\"atomic-result-printable-uri\",[[0,\"atomic-result-printable-uri\",{\"maxNumberOfParts\":[514,\"max-number-of-parts\"],\"listExpanded\":[32],\"error\":[32]}]]],[\"atomic-insight-numeric-facet\",[[1,\"atomic-insight-numeric-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"numberOfValues\":[514,\"number-of-values\"],\"withInput\":[513,\"with-input\"],\"sortCriteria\":[513,\"sort-criteria\"],\"rangeAlgorithm\":[513,\"range-algorithm\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"error\":[32],\"facetForInputState\":[32]},[[0,\"atomic/numberFormat\",\"setFormat\"],[0,\"atomic/numberInputApply\",\"applyNumberInput\"]]]]],[\"atomic-insight-refine-toggle\",[[1,\"atomic-insight-refine-toggle\",{\"error\":[32],\"breadcrumbManagerState\":[32],\"searchStatusState\":[32]}]]],[\"atomic-insight-result-quickview-action\",[[0,\"atomic-insight-result-quickview-action\",{\"sandbox\":[1],\"error\":[32],\"quickviewState\":[32]},[[16,\"atomic/quickview/next\",\"onNextQuickview\"],[16,\"atomic/quickview/previous\",\"onPreviousQuickview\"]]]]],[\"atomic-insight-search-box\",[[1,\"atomic-insight-search-box\",{\"disableSearch\":[516,\"disable-search\"],\"numberOfSuggestions\":[514,\"number-of-suggestions\"],\"searchBoxState\":[32],\"error\":[32],\"isExpanded\":[32]}]]],[\"atomic-ipx-embedded\",[[1,\"atomic-ipx-embedded\",{\"container\":[1040],\"error\":[32],\"hasFooterSlotElements\":[32]}]]],[\"atomic-ipx-modal\",[[1,\"atomic-ipx-modal\",{\"source\":[1040],\"container\":[1040],\"isOpen\":[1540,\"is-open\"],\"error\":[32],\"hasFooterSlotElements\":[32]},[[0,\"touchmove\",\"onWindowTouchMove\"]],{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-ipx-refine-toggle\",[[1,\"atomic-ipx-refine-toggle\",{\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"error\":[32],\"breadcrumbManagerState\":[32],\"searchStatusState\":[32]}]]],[\"atomic-numeric-facet\",[[1,\"atomic-numeric-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withInput\":[513,\"with-input\"],\"sortCriteria\":[513,\"sort-criteria\"],\"rangeAlgorithm\":[513,\"range-algorithm\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32],\"facetForInputState\":[32]},[[0,\"atomic/numberFormat\",\"setFormat\"],[0,\"atomic/numberInputApply\",\"applyNumberInput\"]]]]],[\"atomic-popover\",[[1,\"atomic-popover\",{\"searchStatusState\":[32],\"facetState\":[32],\"error\":[32],\"isOpen\":[32],\"childFacet\":[32]},[[0,\"atomic/initializePopover\",\"initializePopover\"],[0,\"keydown\",\"handleKeyDown\"]]]]],[\"atomic-quickview\",[[1,\"atomic-quickview\",{\"sandbox\":[1],\"error\":[32],\"quickviewState\":[32]},[[16,\"atomic/quickview/next\",\"onNextQuickview\"],[16,\"atomic/quickview/previous\",\"onPreviousQuickview\"]]]]],[\"atomic-result-html\",[[0,\"atomic-result-html\",{\"field\":[513],\"sanitize\":[516],\"error\":[32]}]]],[\"atomic-search-box-instant-results\",[[1,\"atomic-search-box-instant-results\",{\"maxResultsPerQuery\":[514,\"max-results-per-query\"],\"density\":[513],\"imageSize\":[513,\"image-size\"],\"ariaLabelGenerator\":[16],\"error\":[32],\"templateHasError\":[32],\"setRenderFunction\":[64]}]]],[\"atomic-search-interface\",[[1,\"atomic-search-interface\",{\"fieldsToInclude\":[1025,\"fields-to-include\"],\"pipeline\":[1537],\"searchHub\":[1537,\"search-hub\"],\"analytics\":[516],\"timezone\":[513],\"logLevel\":[513,\"log-level\"],\"i18n\":[16],\"language\":[513],\"engine\":[1040],\"reflectStateInUrl\":[516,\"reflect-state-in-url\"],\"scrollContainer\":[513,\"scroll-container\"],\"languageAssetsPath\":[513,\"language-assets-path\"],\"iconAssetsPath\":[513,\"icon-assets-path\"],\"enableRelevanceInspector\":[516,\"enable-relevance-inspector\"],\"CspNonce\":[513,\"csp-nonce\"],\"error\":[32],\"relevanceInspectorIsOpen\":[32],\"initialize\":[64],\"initializeWithSearchEngine\":[64],\"executeFirstSearch\":[64]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"],[0,\"atomic/scrollToTop\",\"scrollToTop\"],[0,\"atomic/relevanceInspector/close\",\"closeRelevanceInspector\"]],{\"searchHub\":[\"updateSearchHub\"],\"pipeline\":[\"updatePipeline\"],\"analytics\":[\"toggleAnalytics\"],\"language\":[\"updateLanguage\"],\"iconAssetsPath\":[\"updateIconAssetsPath\"]}]]],[\"atomic-breadbox\",[[1,\"atomic-breadbox\",{\"pathLimit\":[2,\"path-limit\"],\"breadcrumbManagerState\":[32],\"facetManagerState\":[32],\"error\":[32],\"isCollapsed\":[32]}]]],[\"atomic-category-facet\",[[1,\"atomic-category-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withSearch\":[516,\"with-search\"],\"sortCriteria\":[513,\"sort-criteria\"],\"delimitingCharacter\":[513,\"delimiting-character\"],\"basePath\":[1537,\"base-path\"],\"filterByBasePath\":[516,\"filter-by-base-path\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-citation\",[[0,\"atomic-citation\",{\"citation\":[16],\"index\":[2],\"sendHoverEndEvent\":[16],\"interactiveCitation\":[16],\"disableCitationAnchoring\":[4,\"disable-citation-anchoring\"],\"isOpen\":[32]},null,{\"isOpen\":[\"sendHoverAnalytics\"]}]]],[\"atomic-color-facet\",[[1,\"atomic-color-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withSearch\":[516,\"with-search\"],\"sortCriteria\":[513,\"sort-criteria\"],\"resultsMustMatch\":[513,\"results-must-match\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"allowedValues\":[1025,\"allowed-values\"],\"customSort\":[1025,\"custom-sort\"],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-did-you-mean\",[[1,\"atomic-did-you-mean\",{\"automaticallyCorrectQuery\":[516,\"automatically-correct-query\"],\"queryCorrectionMode\":[513,\"query-correction-mode\"],\"didYouMeanState\":[32],\"queryTriggerState\":[32],\"error\":[32]},null,{\"queryCorrectionMode\":[\"updateQueryCorrectionMode\"]}]]],[\"atomic-external\",[[0,\"atomic-external\",{\"selector\":[513],\"boundInterface\":[1040]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"],[0,\"atomic/scrollToTop\",\"handleScrollToTop\"],[8,\"atomic/parentReady\",\"handleParentReady\"]]]]],[\"atomic-facet\",[[1,\"atomic-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfValues\":[514,\"number-of-values\"],\"withSearch\":[516,\"with-search\"],\"sortCriteria\":[513,\"sort-criteria\"],\"resultsMustMatch\":[513,\"results-must-match\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"enableExclusion\":[516,\"enable-exclusion\"],\"injectionDepth\":[2,\"injection-depth\"],\"dependsOn\":[16],\"allowedValues\":[1025,\"allowed-values\"],\"customSort\":[1025,\"custom-sort\"],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-facet-manager\",[[4,\"atomic-facet-manager\",{\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"facetManagerState\":[32],\"error\":[32]}]]],[\"atomic-field-condition\",[[4,\"atomic-field-condition\",{\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16]}]]],[\"atomic-format-currency\",[[1,\"atomic-format-currency\",{\"currency\":[513],\"error\":[32]}]]],[\"atomic-format-number\",[[1,\"atomic-format-number\",{\"minimumIntegerDigits\":[514,\"minimum-integer-digits\"],\"minimumFractionDigits\":[514,\"minimum-fraction-digits\"],\"maximumFractionDigits\":[514,\"maximum-fraction-digits\"],\"minimumSignificantDigits\":[514,\"minimum-significant-digits\"],\"maximumSignificantDigits\":[514,\"maximum-significant-digits\"],\"error\":[32]}]]],[\"atomic-format-unit\",[[1,\"atomic-format-unit\",{\"unit\":[513],\"unitDisplay\":[513,\"unit-display\"],\"error\":[32]}]]],[\"atomic-generated-answer\",[[1,\"atomic-generated-answer\",{\"withToggle\":[4,\"with-toggle\"],\"collapsible\":[4],\"maxCollapsedHeight\":[2,\"max-collapsed-height\"],\"answerConfigurationId\":[1,\"answer-configuration-id\"],\"fieldsToIncludeInCitations\":[1,\"fields-to-include-in-citations\"],\"disableCitationAnchoring\":[4,\"disable-citation-anchoring\"],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"generatedAnswerState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32],\"copied\":[32],\"copyError\":[32]},null,{\"generatedAnswerState\":[\"updateAnswerCollapsed\"],\"tabManagerState\":[\"watchTabManagerState\"]}]]],[\"atomic-generated-answer-feedback-modal\",[[1,\"atomic-generated-answer-feedback-modal\",{\"isOpen\":[1540,\"is-open\"],\"generatedAnswer\":[1040],\"helpful\":[1540],\"error\":[32],\"currentAnswer\":[32],\"feedbackSubmitted\":[32],\"answerEvaluationRequired\":[32]},null,{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-insight-edit-toggle\",[[1,\"atomic-insight-edit-toggle\",{\"clickCallback\":[1040],\"tooltip\":[1025]}]]],[\"atomic-insight-facet\",[[1,\"atomic-insight-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"numberOfValues\":[514,\"number-of-values\"],\"sortCriteria\":[513,\"sort-criteria\"],\"resultsMustMatch\":[513,\"results-must-match\"],\"displayValuesAs\":[513,\"display-values-as\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[2,\"injection-depth\"],\"enableExclusion\":[516,\"enable-exclusion\"],\"facetState\":[32],\"searchStatusState\":[32],\"error\":[32]}]]],[\"atomic-insight-full-search-button\",[[1,\"atomic-insight-full-search-button\",{\"tooltip\":[1025],\"error\":[32]}]]],[\"atomic-insight-generated-answer\",[[1,\"atomic-insight-generated-answer\",{\"withToggle\":[4,\"with-toggle\"],\"collapsible\":[4],\"maxCollapsedHeight\":[2,\"max-collapsed-height\"],\"answerConfigurationId\":[1,\"answer-configuration-id\"],\"fieldsToIncludeInCitations\":[1,\"fields-to-include-in-citations\"],\"disableCitationAnchoring\":[4,\"disable-citation-anchoring\"],\"generatedAnswerState\":[32],\"searchStatusState\":[32],\"error\":[32],\"copied\":[32],\"copyError\":[32]},null,{\"generatedAnswerState\":[\"updateAnswerCollapsed\"]}]]],[\"atomic-insight-history-toggle\",[[1,\"atomic-insight-history-toggle\",{\"clickCallback\":[1040],\"tooltip\":[1025]}]]],[\"atomic-insight-interface\",[[1,\"atomic-insight-interface\",{\"engine\":[1040],\"analytics\":[516],\"i18n\":[16],\"logLevel\":[513,\"log-level\"],\"language\":[513],\"languageAssetsPath\":[513,\"language-assets-path\"],\"iconAssetsPath\":[513,\"icon-assets-path\"],\"fieldsToInclude\":[1025,\"fields-to-include\"],\"resultsPerPage\":[514,\"results-per-page\"],\"CspNonce\":[513,\"csp-nonce\"],\"error\":[32],\"initialize\":[64],\"initializeWithInsightEngine\":[64],\"executeFirstSearch\":[64]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"]],{\"iconAssetsPath\":[\"updateIconAssetsPath\"],\"language\":[\"updateLanguage\"],\"analytics\":[\"toggleAnalytics\"]}]]],[\"atomic-insight-layout\",[[0,\"atomic-insight-layout\",{\"widget\":[1540]},null,{\"widget\":[\"updateStyles\"]}]]],[\"atomic-insight-no-results\",[[1,\"atomic-insight-no-results\",{\"searchStatusState\":[32],\"querySummaryState\":[32],\"error\":[32]}]]],[\"atomic-insight-pager\",[[1,\"atomic-insight-pager\",{\"numberOfPages\":[514,\"number-of-pages\"],\"pagerState\":[32],\"searchStatusState\":[32],\"error\":[32]}]]],[\"atomic-insight-query-error\",[[1,\"atomic-insight-query-error\",{\"queryErrorState\":[32],\"error\":[32],\"showMoreInfo\":[32]}]]],[\"atomic-insight-query-summary\",[[1,\"atomic-insight-query-summary\",{\"querySummaryState\":[32],\"error\":[32]}]]],[\"atomic-insight-result-action\",[[0,\"atomic-insight-result-action\",{\"icon\":[1025],\"tooltip\":[1025],\"tooltipOnClick\":[1025,\"tooltip-on-click\"],\"action\":[1025],\"error\":[32]}]]],[\"atomic-insight-result-action-bar\",[[0,\"atomic-insight-result-action-bar\"]]],[\"atomic-insight-result-attach-to-case-action\",[[0,\"atomic-insight-result-attach-to-case-action\",{\"error\":[32],\"attachToCaseState\":[32]}]]],[\"atomic-insight-result-attach-to-case-indicator\",[[0,\"atomic-insight-result-attach-to-case-indicator\",{\"error\":[32],\"attachToCaseState\":[32]}]]],[\"atomic-insight-result-children-template\",[[1,\"atomic-insight-result-children-template\",{\"conditions\":[16],\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-insight-result-template\",[[1,\"atomic-insight-result-template\",{\"conditions\":[16],\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-insight-tab\",[[1,\"atomic-insight-tab\",{\"label\":[513],\"active\":[1540],\"expression\":[1],\"error\":[32],\"isAppLoaded\":[32],\"tabState\":[32],\"select\":[64]}]]],[\"atomic-insight-timeframe-facet\",[[1,\"atomic-insight-timeframe-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"withDatePicker\":[516,\"with-date-picker\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"sortCriteria\":[513,\"sort-criteria\"],\"facetState\":[32],\"facetForDatePickerState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"error\":[32]},[[0,\"atomic/dateInputApply\",\"applyDateInput\"]]]]],[\"atomic-ipx-button\",[[1,\"atomic-ipx-button\",{\"label\":[513],\"closeIcon\":[513,\"close-icon\"],\"openIcon\":[513,\"open-icon\"],\"isModalOpen\":[1540,\"is-modal-open\"],\"error\":[32]}]]],[\"atomic-ipx-tab\",[[1,\"atomic-ipx-tab\",{\"label\":[513],\"active\":[1540],\"expression\":[1],\"error\":[32],\"isAppLoaded\":[32],\"tabState\":[32],\"select\":[64]}]]],[\"atomic-load-more-results\",[[1,\"atomic-load-more-results\",{\"querySummaryState\":[32],\"resultListState\":[32],\"error\":[32],\"isAppLoaded\":[32]}]]],[\"atomic-no-results\",[[1,\"atomic-no-results\",{\"enableCancelLastAction\":[516,\"enable-cancel-last-action\"],\"searchStatusState\":[32],\"historyState\":[32],\"querySummaryState\":[32],\"error\":[32]}]]],[\"atomic-notifications\",[[1,\"atomic-notifications\",{\"headingLevel\":[514,\"heading-level\"],\"icon\":[513],\"notifyTriggerState\":[32],\"error\":[32]}]]],[\"atomic-numeric-range\",[[0,\"atomic-numeric-range\",{\"label\":[513],\"start\":[514],\"end\":[514],\"endInclusive\":[516,\"end-inclusive\"]}]]],[\"atomic-pager\",[[1,\"atomic-pager\",{\"numberOfPages\":[514,\"number-of-pages\"],\"previousButtonIcon\":[513,\"previous-button-icon\"],\"nextButtonIcon\":[513,\"next-button-icon\"],\"pagerState\":[32],\"searchStatusState\":[32],\"error\":[32],\"isAppLoaded\":[32]}]]],[\"atomic-query-error\",[[1,\"atomic-query-error\",{\"queryErrorState\":[32],\"error\":[32],\"showMoreInfo\":[32]}]]],[\"atomic-rating-facet\",[[1,\"atomic-rating-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfIntervals\":[514,\"number-of-intervals\"],\"maxValueInIndex\":[514,\"max-value-in-index\"],\"minValueInIndex\":[514,\"min-value-in-index\"],\"displayValuesAs\":[513,\"display-values-as\"],\"icon\":[513],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-rating-range-facet\",[[1,\"atomic-rating-range-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"numberOfIntervals\":[514,\"number-of-intervals\"],\"maxValueInIndex\":[514,\"max-value-in-index\"],\"minValueInIndex\":[514,\"min-value-in-index\"],\"icon\":[513],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"facetState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-recs-error\",[[1,\"atomic-recs-error\",{\"recommendationListState\":[32],\"error\":[32],\"showMoreInfo\":[32]}]]],[\"atomic-recs-interface\",[[1,\"atomic-recs-interface\",{\"pipeline\":[1537],\"searchHub\":[1537,\"search-hub\"],\"timezone\":[513],\"engine\":[1040],\"analytics\":[516],\"i18n\":[16],\"logLevel\":[513,\"log-level\"],\"language\":[513],\"fieldsToInclude\":[1025,\"fields-to-include\"],\"languageAssetsPath\":[513,\"language-assets-path\"],\"iconAssetsPath\":[513,\"icon-assets-path\"],\"CspNonce\":[513,\"csp-nonce\"],\"error\":[32],\"initialize\":[64],\"initializeWithRecommendationEngine\":[64],\"getRecommendations\":[64]},[[0,\"atomic/initializeComponent\",\"handleInitialization\"]],{\"iconAssetsPath\":[\"updateIconAssetsPath\"],\"language\":[\"updateLanguage\"],\"analytics\":[\"toggleAnalytics\"]}]]],[\"atomic-recs-result-template\",[[1,\"atomic-recs-result-template\",{\"conditions\":[16],\"ifDefined\":[513,\"if-defined\"],\"ifNotDefined\":[513,\"if-not-defined\"],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-result-children-template\",[[1,\"atomic-result-children-template\",{\"conditions\":[16],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-result-date\",[[0,\"atomic-result-date\",{\"field\":[513],\"format\":[513],\"relativeTime\":[516,\"relative-time\"],\"error\":[32]}]]],[\"atomic-result-fields-list\",[[0,\"atomic-result-fields-list\"]]],[\"atomic-result-icon\",[[1,\"atomic-result-icon\"]]],[\"atomic-result-image\",[[0,\"atomic-result-image\",{\"field\":[513],\"imageAltField\":[513,\"image-alt-field\"],\"fallback\":[513],\"useFallback\":[32]}]]],[\"atomic-result-localized-text\",[[0,\"atomic-result-localized-text\",{\"localeKey\":[1,\"locale-key\"],\"field\":[16],\"fieldCount\":[1,\"field-count\"],\"error\":[32]}]]],[\"atomic-result-multi-value-text\",[[1,\"atomic-result-multi-value-text\",{\"field\":[513],\"maxValuesToDisplay\":[514,\"max-values-to-display\"],\"delimiter\":[513],\"error\":[32]}]]],[\"atomic-result-number\",[[0,\"atomic-result-number\",{\"field\":[513],\"error\":[32],\"formatter\":[32],\"valueToDisplay\":[32]},[[0,\"atomic/numberFormat\",\"setFormat\"]]]]],[\"atomic-result-rating\",[[1,\"atomic-result-rating\",{\"field\":[513],\"maxValueInIndex\":[514,\"max-value-in-index\"],\"icon\":[513],\"error\":[32],\"numberOfStars\":[32]}]]],[\"atomic-result-section-children\",[[0,\"atomic-result-section-children\"]]],[\"atomic-result-section-emphasized\",[[0,\"atomic-result-section-emphasized\"]]],[\"atomic-result-section-title-metadata\",[[0,\"atomic-result-section-title-metadata\"]]],[\"atomic-result-template\",[[1,\"atomic-result-template\",{\"conditions\":[16],\"mustMatch\":[16],\"mustNotMatch\":[16],\"error\":[32],\"getTemplate\":[64]}]]],[\"atomic-result-timespan\",[[0,\"atomic-result-timespan\",{\"field\":[513],\"unit\":[513],\"format\":[513],\"error\":[32]}]]],[\"atomic-segmented-facet\",[[1,\"atomic-segmented-facet\",{\"facetId\":[1537,\"facet-id\"],\"field\":[513],\"label\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[2,\"injection-depth\"],\"numberOfValues\":[514,\"number-of-values\"],\"sortCriteria\":[513,\"sort-criteria\"],\"dependsOn\":[16],\"allowedValues\":[1025,\"allowed-values\"],\"customSort\":[1025,\"custom-sort\"],\"searchStatusState\":[32],\"tabManagerState\":[32],\"facetState\":[32],\"error\":[32]}]]],[\"atomic-segmented-facet-scrollable\",[[1,\"atomic-segmented-facet-scrollable\",{\"searchStatusState\":[32],\"error\":[32],\"hideLeftArrow\":[32],\"hideRightArrow\":[32]},[[1,\"wheel\",\"handleScroll\"],[1,\"touchmove\",\"handleScroll\"],[0,\"keydown\",\"handleScroll\"]]]]],[\"atomic-sort-dropdown\",[[1,\"atomic-sort-dropdown\",{\"sortState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]}]]],[\"atomic-sort-expression\",[[0,\"atomic-sort-expression\",{\"label\":[513],\"expression\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"]}]]],[\"atomic-stencil-facet-date-input\",[[0,\"atomic-stencil-facet-date-input\",{\"bindings\":[16],\"rangeGetter\":[16],\"rangeSetter\":[16],\"facetId\":[1,\"facet-id\"],\"label\":[1],\"min\":[1],\"max\":[1],\"start\":[32],\"end\":[32]}]]],[\"atomic-tab\",[[0,\"atomic-tab\",{\"label\":[1],\"name\":[1],\"expression\":[1]}]]],[\"atomic-table-element\",[[0,\"atomic-table-element\",{\"label\":[513]}]]],[\"atomic-timeframe\",[[0,\"atomic-timeframe\",{\"period\":[513],\"unit\":[513],\"amount\":[514],\"label\":[513]}]]],[\"atomic-timeframe-facet\",[[1,\"atomic-timeframe-facet\",{\"facetId\":[1537,\"facet-id\"],\"label\":[513],\"field\":[513],\"tabsIncluded\":[1537,\"tabs-included\"],\"tabsExcluded\":[1537,\"tabs-excluded\"],\"withDatePicker\":[516,\"with-date-picker\"],\"isCollapsed\":[1540,\"is-collapsed\"],\"headingLevel\":[514,\"heading-level\"],\"filterFacetCount\":[516,\"filter-facet-count\"],\"injectionDepth\":[514,\"injection-depth\"],\"dependsOn\":[16],\"min\":[513],\"max\":[513],\"sortCriteria\":[513,\"sort-criteria\"],\"facetState\":[32],\"facetForDatePickerState\":[32],\"filterState\":[32],\"searchStatusState\":[32],\"tabManagerState\":[32],\"error\":[32]},[[0,\"atomic/dateInputApply\",\"applyDateInput\"]]]]],[\"atomic-insight-user-actions-modal\",[[1,\"atomic-insight-user-actions-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"userId\":[1,\"user-id\"],\"ticketCreationDateTime\":[1,\"ticket-creation-date-time\"],\"excludedCustomActions\":[16],\"error\":[32],\"interfaceDimensions\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-refine-modal\",[[1,\"atomic-refine-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"querySummaryState\":[32],\"breadcrumbManagerState\":[32],\"facetManagerState\":[32],\"sortState\":[32],\"tabManagerState\":[32],\"error\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-focus-trap\",[[0,\"atomic-focus-trap\",{\"active\":[4],\"source\":[1040],\"container\":[1040],\"shouldHideSelf\":[4,\"should-hide-self\"],\"scope\":[16]},[[4,\"focusin\",\"onFocusChanged\"]],{\"active\":[\"activeChanged\"]}]]],[\"atomic-html\",[[1,\"atomic-html\",{\"value\":[1],\"sanitize\":[516],\"error\":[32]}]]],[\"atomic-insight-refine-modal\",[[1,\"atomic-insight-refine-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"querySummaryState\":[32],\"breadcrumbManagerState\":[32],\"error\":[32],\"interfaceDimensions\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-insight-smart-snippet-feedback-modal\",[[1,\"atomic-insight-smart-snippet-feedback-modal\",{\"source\":[1040],\"isOpen\":[1540,\"is-open\"],\"error\":[32],\"currentAnswer\":[32]},null,{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-ipx-refine-modal\",[[1,\"atomic-ipx-refine-modal\",{\"openButton\":[1040],\"isOpen\":[1540,\"is-open\"],\"collapseFacetsAfter\":[514,\"collapse-facets-after\"],\"querySummaryState\":[32],\"breadcrumbManagerState\":[32],\"error\":[32],\"interfaceDimensions\":[32]},null,{\"isOpen\":[\"watchEnabled\"]}]]],[\"atomic-relevance-inspector\",[[1,\"atomic-relevance-inspector\",{\"bindings\":[16],\"open\":[516]}]]],[\"atomic-smart-snippet-feedback-modal\",[[1,\"atomic-smart-snippet-feedback-modal\",{\"source\":[1040],\"isOpen\":[1540,\"is-open\"],\"error\":[32],\"currentAnswer\":[32]},null,{\"isOpen\":[\"watchToggleOpen\"]}]]],[\"atomic-tab-button\",[[0,\"atomic-tab-button\",{\"label\":[1],\"active\":[4],\"select\":[16]}]]],[\"atomic-search-box-query-suggestions_2\",[[1,\"atomic-search-box-query-suggestions\",{\"icon\":[1],\"maxWithQuery\":[514,\"max-with-query\"],\"maxWithoutQuery\":[514,\"max-without-query\"],\"error\":[32]}],[1,\"atomic-search-box-recent-queries\",{\"icon\":[1],\"maxWithQuery\":[514,\"max-with-query\"],\"maxWithoutQuery\":[514,\"max-without-query\"],\"error\":[32]}]]],[\"atomic-facet-number-input\",[[0,\"atomic-facet-number-input\",{\"bindings\":[16],\"type\":[1],\"filter\":[16],\"filterState\":[16],\"label\":[1],\"start\":[32],\"end\":[32]}]]],[\"atomic-ipx-body\",[[1,\"atomic-ipx-body\",{\"isOpen\":[1028,\"is-open\"],\"displayFooterSlot\":[516,\"display-footer-slot\"],\"error\":[32]}]]],[\"atomic-quickview-modal\",[[1,\"atomic-quickview-modal\",{\"content\":[1025],\"result\":[1040],\"current\":[2],\"total\":[2],\"sandbox\":[1],\"modalCloseCallback\":[16],\"error\":[32],\"highlightKeywords\":[32],\"minimizeSidebar\":[32],\"words\":[32],\"reset\":[64]},null,{\"highlightKeywords\":[\"watchHighlightKeywords\"]}]]],[\"atomic-recs-result\",[[1,\"atomic-recs-result\",{\"stopPropagation\":[4,\"stop-propagation\"],\"linkContent\":[16],\"result\":[16],\"interactiveResult\":[16],\"store\":[16],\"content\":[16],\"display\":[1],\"density\":[1],\"imageSize\":[1,\"image-size\"],\"classes\":[1],\"loadingFlag\":[1,\"loading-flag\"],\"renderingFunction\":[16]},[[0,\"click\",\"handleClick\"],[0,\"atomic/resolveResult\",\"resolveResult\"],[0,\"atomic/resolveInteractiveResult\",\"resolveInteractiveResult\"],[0,\"atomic/resolveStopPropagation\",\"resolveStopPropagation\"],[0,\"atomic/resolveResultDisplayConfig\",\"resolveResultDisplayConfig\"]]]]],[\"atomic-suggestion-renderer\",[[0,\"atomic-suggestion-renderer\",{\"i18n\":[16],\"id\":[1],\"suggestion\":[16],\"isSelected\":[4,\"is-selected\"],\"side\":[1],\"index\":[2],\"lastIndex\":[2,\"last-index\"],\"isDoubleList\":[4,\"is-double-list\"],\"onClick\":[16],\"onMouseOver\":[16]}]]],[\"atomic-insight-result\",[[1,\"atomic-insight-result\",{\"stopPropagation\":[4,\"stop-propagation\"],\"result\":[16],\"interactiveResult\":[16],\"store\":[16],\"content\":[16],\"density\":[1],\"imageSize\":[1,\"image-size\"],\"classes\":[1],\"loadingFlag\":[1,\"loading-flag\"]},[[0,\"atomic/resolveResult\",\"resolveResult\"],[0,\"atomic/resolveInteractiveResult\",\"resolveInteractiveResult\"],[0,\"atomic/resolveStopPropagation\",\"resolveStopPropagation\"],[0,\"atomic/resolveResultDisplayConfig\",\"resolveResultDisplayConfig\"]]]]],[\"atomic-smart-snippet-collapse-wrapper_2\",[[1,\"atomic-smart-snippet-expandable-answer\",{\"expanded\":[516],\"htmlContent\":[1,\"html-content\"],\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"snippetStyle\":[1,\"snippet-style\"],\"fullHeight\":[32]},null,{\"fullHeight\":[\"fullHeightUpdated\"]}],[1,\"atomic-smart-snippet-collapse-wrapper\",{\"maximumHeight\":[514,\"maximum-height\"],\"collapsedHeight\":[514,\"collapsed-height\"],\"isExpanded\":[32],\"showButton\":[32],\"fullHeight\":[32]}]]],[\"atomic-result\",[[1,\"atomic-result\",{\"stopPropagation\":[4,\"stop-propagation\"],\"result\":[16],\"interactiveResult\":[16],\"store\":[16],\"content\":[16],\"linkContent\":[16],\"display\":[1],\"density\":[1],\"imageSize\":[1,\"image-size\"],\"classes\":[1],\"loadingFlag\":[1,\"loading-flag\"],\"renderingFunction\":[16]},[[0,\"atomic/resolveResult\",\"resolveResult\"],[0,\"atomic/resolveInteractiveResult\",\"resolveInteractiveResult\"],[0,\"atomic/resolveStopPropagation\",\"resolveStopPropagation\"],[0,\"atomic/resolveResultDisplayConfig\",\"resolveResultDisplayConfig\"],[0,\"click\",\"handleClick\"]]]]],[\"atomic-automatic-facet_2\",[[0,\"atomic-automatic-facet-generator\",{\"desiredCount\":[514,\"desired-count\"],\"numberOfValues\":[514,\"number-of-values\"],\"error\":[32],\"automaticFacetGeneratorState\":[32],\"searchStatusState\":[32],\"collapseFacetsAfter\":[32],\"updateCollapseFacetsDependingOnFacetsVisibility\":[64]}],[1,\"atomic-automatic-facet\",{\"field\":[513],\"facetId\":[513,\"facet-id\"],\"facet\":[16],\"searchStatus\":[16],\"isCollapsed\":[1540,\"is-collapsed\"],\"error\":[32]}]]],[\"atomic-insight-user-actions-session_2\",[[1,\"atomic-insight-user-actions-timeline\",{\"userId\":[1,\"user-id\"],\"ticketCreationDateTime\":[1,\"ticket-creation-date-time\"],\"excludedCustomActions\":[16],\"userActionsState\":[32],\"followingSessionsAreVisible\":[32],\"precedingSessionsAreVisible\":[32]}],[1,\"atomic-insight-user-actions-session\",{\"startTimestamp\":[2,\"start-timestamp\"],\"userActions\":[16],\"error\":[32],\"areActionsAfterCaseCreationVisible\":[32]},null,{\"userActions\":[\"prepareUserActionsToDisplay\"]}]]],[\"atomic-tab-bar_2\",[[1,\"atomic-tab-bar\",{\"popoverTabs\":[32]},[[0,\"atomic/tabRendered\",\"resolveResult\"]]],[1,\"atomic-tab-popover\",{\"show\":[32],\"error\":[32],\"isOpen\":[32],\"toggle\":[64],\"setButtonVisibility\":[64],\"closePopoverOnFocusOut\":[64]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"atomic-result-text_2\",[[0,\"atomic-result-text\",{\"field\":[513],\"shouldHighlight\":[516,\"should-highlight\"],\"default\":[513],\"error\":[32]}],[1,\"atomic-text\",{\"value\":[513],\"count\":[514],\"error\":[32]}]]],[\"atomic-smart-snippet-answer_2\",[[0,\"atomic-smart-snippet-source\",{\"source\":[1040],\"anchorAttributes\":[16],\"error\":[32]},[[0,\"atomic/resolveResult\",\"resolveResult\"]]],[1,\"atomic-smart-snippet-answer\",{\"htmlContent\":[1,\"html-content\"],\"innerStyle\":[1,\"inner-style\"]}]]],[\"atomic-result-placeholder_8\",[[1,\"atomic-result-placeholder\",{\"display\":[1],\"density\":[1],\"imageSize\":[1,\"image-size\"]}],[1,\"atomic-result-table-placeholder\",{\"density\":[1],\"imageSize\":[1,\"image-size\"],\"rows\":[2]}],[0,\"atomic-result-section-actions\"],[0,\"atomic-result-section-badges\"],[0,\"atomic-result-section-bottom-metadata\"],[0,\"atomic-result-section-excerpt\"],[0,\"atomic-result-section-title\"],[0,\"atomic-result-section-visual\",{\"imageSize\":[513,\"image-size\"]}]]]]"), options);
20
20
  });
21
21
 
22
22
  //# sourceMappingURL=atomic.js.map
@@ -500,10 +500,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
500
500
  return import(
501
501
  /* webpackMode: "lazy" */
502
502
  './atomic-relevance-inspector.entry.js').then(processMod, consoleError);
503
- case 'atomic-search-box-recent-queries':
503
+ case 'atomic-search-box-query-suggestions_2':
504
504
  return import(
505
505
  /* webpackMode: "lazy" */
506
- './atomic-search-box-recent-queries.entry.js').then(processMod, consoleError);
506
+ './atomic-search-box-query-suggestions_2.entry.js').then(processMod, consoleError);
507
507
  case 'atomic-smart-snippet-feedback-modal':
508
508
  return import(
509
509
  /* webpackMode: "lazy" */
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;;;;;;;;;AAGA;;;;;;;;;;;;SAYgB,cAAc,CAAoB,OAAgB;IAChE,OAAO,WAAW,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD;;MCHa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CAAC;SACH;KACF,CAAC,CAAC;AACL;;ACoDA;;;;;;;;;;SAUgB,mBAAmB,CAAoB,OAAgB;IACrE,OAAO,gBAAgB,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/stencil-product-template-decorators.tsx","src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/decorators/commerce/product-template-decorators.ts"],"sourcesContent":["import {Product} from '@coveo/headless/commerce';\nimport {itemContext} from '../../common/item-list/stencil-item-decorators';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {InteractiveProduct, Product} from '@coveo/headless/commerce';\nimport type {LitElement} from 'lit';\nimport {\n InteractiveItemContextController,\n type InteractiveItemContextEvent,\n} from '@/src/components/common/item-list/context/interactive-item-context-controller';\nimport {\n ItemContextController,\n type ItemContextEvent,\n} from '@/src/components/common/item-list/context/item-context-controller';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing product context in product template components.\n *\n * @param host - The Lit component instance\n * @param options - Configuration options\n * @returns ItemContextController instance configured for atomic-product\n *\n * @example\n * ```typescript\n * @customElement('my-product-component')\n * export class MyProductComponent extends LitElement {\n * private productController = createProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.productController.item;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createProductContextController(\n host: LitElement & {error: Error | null},\n options: {folded?: boolean} = {}\n): ItemContextController<Product> {\n return new ItemContextController<Product>(host, {\n parentName: 'atomic-product',\n folded: options.folded ?? false,\n });\n}\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing interactive product context in product template components.\n *\n * @param host - The Lit component instance\n * @returns InteractiveItemContextController instance\n *\n * @example\n * ```typescript\n * @customElement('my-interactive-product-component')\n * export class MyInteractiveProductComponent extends LitElement {\n * private interactiveProductController = createInteractiveProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.interactiveProductController.interactiveItem;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createInteractiveProductContextController(\n host: LitElement & {error: Error}\n): InteractiveItemContextController<InteractiveProduct> {\n return new InteractiveItemContextController<InteractiveProduct>(host);\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent<\n T extends InteractiveProduct = InteractiveProduct,\n> = InteractiveItemContextEvent<T>;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;;;;;AAGA;;;;;;;;;;;;SAYgB,cAAc,CAAoB,OAAgB;IAChE,OAAO,WAAW,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD;;MCHa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CAAC;SACH;KACF,CAAC,CAAC;AACL;;ACoDA;;;;;;;;;;SAUgB,mBAAmB,CAAoB,OAAgB;IACrE,OAAO,gBAAgB,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/stencil-product-template-decorators.tsx","src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/decorators/commerce/product-template-decorators.ts"],"sourcesContent":["import {Product} from '@coveo/headless/commerce';\nimport {itemContext} from '../../common/item-list/stencil-item-decorators';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {InteractiveProduct, Product} from '@coveo/headless/commerce';\nimport type {LitElement} from 'lit';\nimport {\n InteractiveItemContextController,\n type InteractiveItemContextEvent,\n} from '@/src/components/common/item-list/context/interactive-item-context-controller';\nimport {\n ItemContextController,\n type ItemContextEvent,\n} from '@/src/components/common/item-list/context/item-context-controller';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing product context in product template components.\n *\n * @param host - The Lit component instance\n * @param options - Configuration options\n * @returns ItemContextController instance configured for atomic-product\n *\n * @example\n * ```typescript\n * @customElement('my-product-component')\n * export class MyProductComponent extends LitElement {\n * private productController = createProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.productController.item;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createProductContextController(\n host: LitElement & {error: Error | null},\n options: {folded?: boolean} = {}\n): ItemContextController<Product> {\n return new ItemContextController<Product>(host, {\n parentName: 'atomic-product',\n folded: options.folded ?? false,\n });\n}\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing interactive product context in product template components.\n *\n * @param host - The Lit component instance\n * @returns InteractiveItemContextController instance\n *\n * @example\n * ```typescript\n * @customElement('my-interactive-product-component')\n * export class MyInteractiveProductComponent extends LitElement {\n * private interactiveProductController = createInteractiveProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.interactiveProductController.interactiveItem;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createInteractiveProductContextController(\n host: LitElement & {error: Error}\n): InteractiveItemContextController<InteractiveProduct> {\n return new InteractiveItemContextController<InteractiveProduct>(host);\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent<\n T extends InteractiveProduct = InteractiveProduct,\n> = InteractiveItemContextEvent<T>;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n"],"version":3}
@@ -0,0 +1,33 @@
1
+ import { h } from './index-3f35faca.js';
2
+ import { e as encodeForDomAttribute } from './string-utils-5f5a23a8.js';
3
+
4
+ const getPartialSearchBoxSuggestionElement = (suggestion, i18n) => {
5
+ return {
6
+ part: 'query-suggestion-item',
7
+ key: `qs-${encodeForDomAttribute(suggestion.rawValue)}`,
8
+ query: suggestion.rawValue,
9
+ ariaLabel: i18n.t('query-suggestion-label', {
10
+ query: suggestion.rawValue,
11
+ interpolation: { escapeValue: false },
12
+ }),
13
+ };
14
+ };
15
+ const QuerySuggestionContainer = (_, children) => {
16
+ return (h("div", { part: "query-suggestion-content", class: "flex items-center" }, children));
17
+ };
18
+ const QuerySuggestionIcon = ({ icon, hasSuggestion }) => {
19
+ if (!hasSuggestion) {
20
+ return;
21
+ }
22
+ return (h("atomic-icon", { part: "query-suggestion-icon", icon: icon, class: "mr-2 h-4 w-4 shrink-0" }));
23
+ };
24
+ const QuerySuggestionText = ({ suggestion, hasQuery }) => {
25
+ if (hasQuery) {
26
+ return (h("span", { part: "query-suggestion-text", class: "line-clamp-2 break-all", innerHTML: suggestion.highlightedValue }));
27
+ }
28
+ return (h("span", { part: "query-suggestion-text", class: "line-clamp-2 break-all" }, suggestion.rawValue));
29
+ };
30
+
31
+ export { QuerySuggestionText as Q, QuerySuggestionIcon as a, QuerySuggestionContainer as b, getPartialSearchBoxSuggestionElement as g };
32
+
33
+ //# sourceMappingURL=stencil-query-suggestions-5d6a46d7.js.map
@@ -0,0 +1 @@
1
+ {"file":"stencil-query-suggestions-5d6a46d7.js","mappings":";;;MAUa,oCAAoC,GAAG,CAClD,UAAsB,EACtB,IAAU;IAEV,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,GAAG,EAAE,MAAM,qBAAqB,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QACvD,KAAK,EAAE,UAAU,CAAC,QAAQ;QAC1B,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,wBAAwB,EAAE;YAC1C,KAAK,EAAE,UAAU,CAAC,QAAQ;YAC1B,aAAa,EAAE,EAAC,WAAW,EAAE,KAAK,EAAC;SACpC,CAAC;KACH,CAAC;AACJ,EAAE;MAEW,wBAAwB,GAAwB,CAAC,CAAC,EAAE,QAAQ;IACvE,QACE,WAAK,IAAI,EAAC,0BAA0B,EAAC,KAAK,EAAC,mBAAmB,IAC3D,QAAQ,CACL,EACN;AACJ,EAAE;MAOW,mBAAmB,GAE5B,CAAC,EAAC,IAAI,EAAE,aAAa,EAAC;IACxB,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO;KACR;IAED,QACE,mBACE,IAAI,EAAC,uBAAuB,EAC5B,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,uBAAuB,GAChB,EACf;AACJ,EAAE;MAOW,mBAAmB,GAE5B,CAAC,EAAC,UAAU,EAAE,QAAQ,EAAC;IACzB,IAAI,QAAQ,EAAE;QACZ,QACE,YACE,IAAI,EAAC,uBAAuB,EAC5B,KAAK,EAAC,wBAAwB,EAC9B,SAAS,EAAE,UAAU,CAAC,gBAAgB,GAChC,EACR;KACH;IAED,QACE,YAAM,IAAI,EAAC,uBAAuB,EAAC,KAAK,EAAC,wBAAwB,IAC9D,UAAU,CAAC,QAAQ,CACf,EACP;AACJ;;;;","names":[],"sources":["src/components/common/suggestions/stencil-query-suggestions.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport {encodeForDomAttribute} from '../../../utils/string-utils.js';\nimport {SearchBoxSuggestionElement} from './suggestions-common.js';\n\ninterface Suggestion {\n highlightedValue: string;\n rawValue: string;\n}\n\nexport const getPartialSearchBoxSuggestionElement = (\n suggestion: Suggestion,\n i18n: i18n\n): Pick<SearchBoxSuggestionElement, 'ariaLabel' | 'key' | 'query' | 'part'> => {\n return {\n part: 'query-suggestion-item',\n key: `qs-${encodeForDomAttribute(suggestion.rawValue)}`,\n query: suggestion.rawValue,\n ariaLabel: i18n.t('query-suggestion-label', {\n query: suggestion.rawValue,\n interpolation: {escapeValue: false},\n }),\n };\n};\n\nexport const QuerySuggestionContainer: FunctionalComponent = (_, children) => {\n return (\n <div part=\"query-suggestion-content\" class=\"flex items-center\">\n {children}\n </div>\n );\n};\n\ninterface QuerySuggestionIconProps {\n icon: string;\n hasSuggestion: boolean;\n}\n\nexport const QuerySuggestionIcon: FunctionalComponent<\n QuerySuggestionIconProps\n> = ({icon, hasSuggestion}) => {\n if (!hasSuggestion) {\n return;\n }\n\n return (\n <atomic-icon\n part=\"query-suggestion-icon\"\n icon={icon}\n class=\"mr-2 h-4 w-4 shrink-0\"\n ></atomic-icon>\n );\n};\n\ninterface QuerySuggestionTextProps {\n suggestion: Suggestion;\n hasQuery: boolean;\n}\n\nexport const QuerySuggestionText: FunctionalComponent<\n QuerySuggestionTextProps\n> = ({suggestion, hasQuery}) => {\n if (hasQuery) {\n return (\n <span\n part=\"query-suggestion-text\"\n class=\"line-clamp-2 break-all\"\n innerHTML={suggestion.highlightedValue}\n ></span>\n );\n }\n\n return (\n <span part=\"query-suggestion-text\" class=\"line-clamp-2 break-all\">\n {suggestion.rawValue}\n </span>\n );\n};\n"],"version":3}
@@ -3,7 +3,7 @@ import { B as Button } from './stencil-button-1a29a5df.js';
3
3
  import { isNullOrUndefined } from '@coveo/bueno';
4
4
  import { D as DOMPurify } from './purify-c7ebd240.js';
5
5
  import { d as debounce } from './debounce-utils-8619dece.js';
6
- import { a as elementHasQuery, e as elementHasNoQuery } from './suggestions-utils-591559a0.js';
6
+ import { e as elementHasQuery, a as elementHasNoQuery } from './suggestions-common-2b20db26.js';
7
7
 
8
8
  const SearchSlimIcon = `<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
9
9
  <circle cx="7" cy="7" r="6.5" stroke="currentColor"/>
@@ -411,4 +411,4 @@ class SuggestionManager {
411
411
 
412
412
  export { SuggestionManager as S, SearchSlimIcon as a, SearchTextArea as b, SearchBoxWrapper as c };
413
413
 
414
- //# sourceMappingURL=stencil-suggestion-manager-376f83e8.js.map
414
+ //# sourceMappingURL=stencil-suggestion-manager-486094dd.js.map
@@ -1 +1 @@
1
- {"file":"stencil-suggestion-manager-376f83e8.js","mappings":";;;;;;;;;;;;;MAOa,gBAAgB,GAA+B,CAC1D,KAAK,EACL,QAAQ;IAER,MAAM,UAAU,GAAG;QACjB,MAAM,WAAW,GACf,sGAAsG,CAAC;QACzG,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ;cAC/B,wDAAwD;cACxD,4DAA4D,CAAC;QAEjE,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC9C,CAAC;IAEF,QACE,WAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,IAClE,QAAQ,CACL,EACN;AACJ;;;;;;;;AChBO,MAAM,mBAAmB,GAA+B,CAAC,EAC9D,QAAQ,EACR,QAAQ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,GAAG,IAAI,GAAG,EAAE,CAAC;QAEpC,MAAM,GAAG,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,iBAAiB;YACtD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE;gBAC9C,OAAO,IAAI,CAAC;aACb;YACD,IAAI,iBAAiB,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE;gBAClD,OAAO,KAAK,CAAC;aACd;iBAAM;gBACL,iBAAiB,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBAC/C,OAAO,IAAI,CAAC;aACb;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;KACZ;IAEO,qBAAqB,CAAC,WAAmC;QAC/D,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,KAC9C,UAAU,CAAC,WAAW,EAAE,CACzB,CAAC;QAEF,MAAM,GAAG,GACP,IAAI,CAAC,mBAAmB,CAAC,+BAA+B,EAAE;YAC1D,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;QAE5C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;KAC/B;IAEO,iBAAiB,CAAC,gBAAgB,GAAG,EAAE;QAC7C,MAAM,wBAAwB,GAAG,IAAI,CAAC,uBAAuB,CAAC;QAC9D,IAAI,CAAC,+BAA+B,GAAG,wBAAwB,CAAC;QAChE,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;KAC/C;IAEO,uBAAuB;QAC7B,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;QACjC,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC;KACnC;;;;;","names":[],"sources":["src/components/common/search-box/stencil-search-box-wrapper.tsx","src/components/common/search-box/stencil-text-area-clear-button.tsx","src/components/common/search-box/stencil-search-text-area.tsx","src/utils/promise-utils.ts","src/components/common/suggestions/stencil-suggestion-manager.ts"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\n\ninterface Props {\n disabled: boolean;\n onFocusout?: (event: FocusEvent) => void;\n}\n\nexport const SearchBoxWrapper: FunctionalComponent<Props> = (\n props,\n children\n) => {\n const getClasses = () => {\n const baseClasses =\n 'flex bg-background w-full border border-neutral rounded-md focus-within:ring-3 absolute top-0 left-0';\n const focusClasses = props.disabled\n ? 'focus-within:border-disabled focus-within:ring-neutral'\n : 'focus-within:border-primary focus-within:ring-ring-primary';\n\n return [baseClasses, focusClasses].join(' ');\n };\n\n return (\n <div part=\"wrapper\" class={getClasses()} onFocusout={props.onFocusout}>\n {children}\n </div>\n );\n};\n","import {FunctionalComponent, h} from '@stencil/core';\nimport ClearSlim from '../../../images/clear-slim.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button, StencilButtonProps} from '../stencil-button';\n\ninterface Props extends Partial<StencilButtonProps> {\n bindings: AnyBindings;\n inputRef: HTMLInputElement | HTMLTextAreaElement | null;\n}\n\nexport const TextAreaClearButton: FunctionalComponent<Props> = ({\n inputRef,\n bindings,\n onClick,\n ...defaultButtonProps\n}) => (\n <div\n part=\"clear-button-wrapper\"\n class=\"ml-2 flex items-center justify-center py-2\"\n >\n <Button\n style=\"text-transparent\"\n part=\"clear-button\"\n class=\"text-neutral-dark flex h-8 w-8 shrink-0 items-center justify-center\"\n onClick={() => {\n onClick?.();\n inputRef?.focus();\n }}\n ariaLabel={bindings.i18n.t('clear')}\n {...defaultButtonProps}\n >\n <atomic-icon\n part=\"clear-icon\"\n icon={ClearSlim}\n class=\"h-4 w-4\"\n ></atomic-icon>\n </Button>\n </div>\n);\n","import {FunctionalComponent, h} from '@stencil/core';\nimport {JSXBase} from '@stencil/core/internal';\nimport {AnyBindings} from '../interface/bindings';\nimport {TextAreaClearButton} from './stencil-text-area-clear-button';\n\ninterface Props extends JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement> {\n textAreaRef: HTMLTextAreaElement;\n loading: boolean;\n bindings: AnyBindings;\n value: string;\n ariaLabel: string;\n onClear(): void;\n popup?: {\n id: string;\n activeDescendant: string;\n expanded: boolean;\n hasSuggestions: boolean;\n };\n}\n\nfunction getPopupAttributes(props: Required<Props>['popup']) {\n return {\n autocomplete: 'off',\n autocapitalize: 'off',\n autocorrect: 'off',\n ...(props.activeDescendant && {\n 'aria-activedescendant': props.activeDescendant,\n }),\n 'aria-autocomplete': 'both',\n 'aria-haspopup': 'true',\n 'aria-controls': props.id,\n };\n}\n\nfunction syncTextWithReplica(elem: HTMLTextAreaElement, value?: string) {\n const parent = elem?.parentNode as HTMLElement;\n if (!parent) {\n return;\n }\n if (elem.value === '\\n') {\n return;\n }\n parent.dataset.replicatedValue = value ?? elem.value;\n}\n\nfunction resetReplicaText(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n delete parent.dataset.replicatedValue;\n }\n}\n\nfunction collapseTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.remove('expanded');\n }\n}\n\nfunction expandTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.add('expanded');\n }\n}\n\nexport const SearchTextArea: FunctionalComponent<Props> = ({\n textAreaRef,\n loading,\n bindings,\n onInput,\n onFocus,\n onBlur,\n onChange,\n onKeyDown,\n onKeyUp,\n value,\n ariaLabel,\n onClear,\n popup,\n ...defaultInputProps\n}) => (\n <div class=\"flex grow overflow-hidden\">\n <div part=\"textarea-expander\" class=\"grid grow overflow-hidden\">\n <textarea\n part=\"textarea\"\n aria-label={ariaLabel}\n placeholder={bindings.i18n.t('search')}\n class=\"placeholder-neutral-dark\"\n rows={1}\n onInput={(e) => {\n onInput?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onKeyDown={(e) => {\n syncTextWithReplica(textAreaRef);\n if (e.key === 'Enter') {\n if (e.shiftKey) {\n return;\n }\n e.preventDefault();\n }\n onKeyDown?.(e);\n }}\n onKeyUp={(e) => {\n onKeyUp?.(e);\n if (e.key === 'Enter') {\n e.preventDefault();\n return;\n }\n syncTextWithReplica(textAreaRef);\n }}\n onBlur={(e) => {\n onBlur?.(e);\n collapseTextArea(textAreaRef);\n syncTextWithReplica(textAreaRef);\n }}\n onChange={(e) => {\n onChange?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onFocus={(e) => {\n onFocus?.(e);\n const target = e.target as HTMLTextAreaElement;\n syncTextWithReplica(textAreaRef ?? target);\n expandTextArea(textAreaRef ?? target);\n }}\n autocomplete=\"off\"\n {...(popup && getPopupAttributes(popup))}\n {...defaultInputProps}\n value={value}\n />\n </div>\n\n {loading && (\n <div class=\"searchbox-button-wrapper ml-2 flex items-center justify-center\">\n <span\n part=\"loading\"\n class=\"loading mr-2 grid h-5 w-5 animate-spin place-items-center rounded-full bg-linear-to-r\"\n ></span>\n </div>\n )}\n {!loading && value && (\n <TextAreaClearButton\n inputRef={textAreaRef}\n bindings={bindings}\n onClick={() => {\n onClear();\n resetReplicaText(textAreaRef);\n }}\n />\n )}\n </div>\n);\n","export function promiseTimeout<T>(prom: T | Promise<T>, ms: number) {\n let id: NodeJS.Timeout;\n const timeout = new Promise((_, reject) => {\n id = setTimeout(() => {\n reject(new Error('Promise timed out.'));\n }, ms);\n });\n return Promise.race([prom, timeout]).then(() => {\n clearTimeout(id);\n });\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {forceUpdate} from '@stencil/core';\nimport DOMPurify from 'dompurify';\nimport {debounce} from '../../../utils/debounce-utils';\nimport {promiseTimeout} from '../../../utils/promise-utils';\nimport type {\n SearchBoxSuggestionElement,\n SearchBoxSuggestionsBindings,\n SearchBoxSuggestionsEvent,\n} from './suggestions-types';\nimport {elementHasNoQuery, elementHasQuery} from './suggestions-utils';\n\n/**\n * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.\n */\nexport interface SearchBoxSuggestions {\n /**\n * The search box will sort the position of suggestions using this value, the lowest value being first.\n * By default, the DOM position will be used.\n */\n position: number;\n /**\n * Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the right panel.\n */\n panel?: 'left' | 'right';\n /**\n * Method that returns the list of elements which will be rendered in the list of suggestions.\n */\n renderItems(): SearchBoxSuggestionElement[];\n /**\n * Hook called when the user changes the search box's input value. This can lead to all the query suggestions being updated.\n */\n onInput?(): Promise<unknown>;\n /**\n * Hook called when the current suggested query changes as the user navigates the list of suggestions.\n * This is used for instant results, which are rendered based on the current suggested query.\n * @param q The new current suggested query.\n */\n onSuggestedQueryChange?(q: string): Promise<unknown>;\n}\n\ninterface SearchBoxProps {\n getSearchBoxValue: () => string;\n updateQuery: (suggestedQuery: string) => void;\n getSuggestionTimeout: () => number;\n getNumberOfSuggestionsToDisplay: () => number;\n getSuggestionDelay: () => number;\n getLogger: () => Pick<typeof console, 'warn'>;\n getHost: () => HTMLElement;\n}\n\nexport class SuggestionManager<SearchBoxController> {\n public suggestions: SearchBoxSuggestions[] = [];\n public leftSuggestionElements: SearchBoxSuggestionElement[] = [];\n public rightSuggestionElements: SearchBoxSuggestionElement[] = [];\n public leftPanel: HTMLElement | undefined = undefined;\n public rightPanel: HTMLElement | undefined = undefined;\n public triggerSuggestions: () => Promise<void>;\n public activeDescendant = '';\n public suggestedQuery = '';\n public keyboardActiveDescendant = '';\n\n private queryDataAttribute = 'data-query';\n private suggestionEvents: SearchBoxSuggestionsEvent<SearchBoxController>[] =\n [];\n\n private previousActiveDescendantElement: HTMLElement | null = null;\n private leftSuggestions: SearchBoxSuggestions[] = [];\n private rightSuggestions: SearchBoxSuggestions[] = [];\n\n constructor(private ownerSearchBoxProps: SearchBoxProps) {\n this.triggerSuggestions = debounce(\n () => this.executeQuerySuggestion(),\n this.ownerSearchBoxProps.getSuggestionDelay()\n );\n }\n\n public get partialSuggestionBindings(): Pick<\n SearchBoxSuggestionsBindings<SearchBoxController>,\n | 'suggestedQuery'\n | 'clearSuggestions'\n | 'triggerSuggestions'\n | 'getSuggestions'\n | 'getSuggestionElements'\n > {\n return {\n suggestedQuery: () => this.suggestedQuery,\n clearSuggestions: () => this.clearSuggestions(),\n triggerSuggestions: () => this.triggerSuggestions(),\n getSuggestions: () => this.suggestions,\n getSuggestionElements: () => this.allSuggestionElements,\n };\n }\n\n public get activeDescendantElement(): HTMLElement | null {\n if (!this.hasActiveDescendant) {\n return null;\n }\n\n return (\n this.leftPanel?.querySelector(`#${this.activeDescendant}`) ||\n this.rightPanel?.querySelector(`#${this.activeDescendant}`) ||\n null\n );\n }\n\n public onSubmit() {\n this.clickOnActiveElement();\n this.clearSuggestions();\n }\n\n public updateActiveDescendant(id = '') {\n this.activeDescendant = id;\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n public updateKeyboardActiveDescendant(id = '') {\n this.keyboardActiveDescendant = id;\n }\n\n public clickOnActiveElement() {\n this.activeDescendantElement?.click();\n this.updateActiveDescendant();\n }\n\n public isRightPanelInFocus() {\n if (\n isNullOrUndefined(this.panelInFocus) ||\n isNullOrUndefined(this.rightPanel)\n ) {\n return false;\n }\n\n return this.panelInFocus === this.rightPanel;\n }\n\n public initializeSuggestions(\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n this.suggestions = this.suggestionEvents.map((event) => event(bindings));\n }\n\n public registerSuggestionsFromEvent(\n event: CustomEvent<SearchBoxSuggestionsEvent<SearchBoxController>>,\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n event.preventDefault();\n event.stopPropagation();\n this.suggestionEvents.push(event.detail);\n this.suggestions.push(event.detail(bindings));\n }\n\n public registerSuggestions(suggestions: SearchBoxSuggestions) {\n this.suggestions.push(suggestions);\n }\n\n public get isDoubleList() {\n return Boolean(\n this.leftSuggestionElements.length && this.rightSuggestionElements.length\n );\n }\n\n public focusPanel(side: 'left' | 'right') {\n const panel = side === 'left' ? this.leftPanel : this.rightPanel;\n\n if (this.panelInFocus === panel) {\n return;\n }\n if (panel?.firstElementChild) {\n const panelHasActiveDescendant =\n this.previousActiveDescendantElement &&\n panel.contains(this.previousActiveDescendantElement);\n const newValue = panelHasActiveDescendant\n ? this.previousActiveDescendantElement!\n : (panel.firstElementChild as HTMLElement);\n this.updateDescendants(newValue.id);\n }\n }\n\n public clearSuggestions() {\n this.clearSuggestionElements();\n this.updateActiveDescendant();\n }\n\n public async focusNextValue() {\n if (!this.hasSuggestions || !this.nextOrFirstValue) {\n return;\n }\n\n await this.focusValue(this.nextOrFirstValue as HTMLElement);\n }\n\n public async focusValue(value: HTMLElement) {\n this.updateKeyboardActiveDescendant(value.id);\n this.updateActiveDescendant(value.id);\n this.scrollActiveDescendantIntoView();\n await this.updateQueryFromSuggestion();\n }\n\n public async onSuggestionMouseOver(\n item: SearchBoxSuggestionElement,\n side: 'left' | 'right',\n id: string\n ) {\n const thisPanel = side === 'left' ? this.leftPanel : this.rightPanel;\n // When hovering, always reset the keyboard active descendant\n this.updateKeyboardActiveDescendant();\n if (this.panelInFocus === thisPanel) {\n this.updateActiveDescendant(id);\n } else {\n this.updateDescendants(id);\n }\n if (item.query) {\n await this.updateSuggestedQuery(item.query);\n }\n }\n\n public async onSuggestionClick(item: SearchBoxSuggestionElement, e: Event) {\n if (item.query) {\n this.clearSuggestions();\n await this.updateOwnerSearchboxQuery(item.query);\n }\n item.onSelect?.(e);\n }\n\n public get hasSuggestions() {\n return !!this.allSuggestionElements.length;\n }\n\n public get allSuggestionElements() {\n return [...this.leftSuggestionElements, ...this.rightSuggestionElements];\n }\n\n public async focusPreviousValue() {\n if (this.firstValue === this.activeDescendantElement) {\n this.updateKeyboardActiveDescendant();\n this.updateActiveDescendant();\n return;\n }\n\n if (!this.hasSuggestions || !this.previousOrLastValue) {\n return;\n }\n\n await this.focusValue(this.previousOrLastValue as HTMLElement);\n }\n\n public get hasActiveDescendant() {\n return this.activeDescendant !== '';\n }\n\n private async executeQuerySuggestion() {\n this.updateActiveDescendant();\n const settled = await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onInput ? suggestion.onInput() : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n\n const fulfilledSuggestions: SearchBoxSuggestions[] = [];\n\n settled.forEach((prom, j) => {\n if (prom.status === 'fulfilled') {\n fulfilledSuggestions.push(this.suggestions[j]);\n } else {\n this.ownerSearchBoxProps\n .getLogger()\n .warn(\n 'Some query suggestions are not being shown because the promise timed out.'\n );\n }\n });\n\n const splitSuggestions = (side: 'left' | 'right', isDefault = false) =>\n fulfilledSuggestions\n .filter(\n (suggestion) =>\n suggestion.panel === side || (!suggestion.panel && isDefault)\n )\n .sort(this.sortSuggestions);\n\n this.leftSuggestions = splitSuggestions('left', true);\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n\n this.rightSuggestions = splitSuggestions('right');\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n\n const defaultSuggestedQuery =\n this.allSuggestionElements.find(elementHasQuery)?.query || '';\n\n await this.updateSuggestedQuery(defaultSuggestedQuery);\n }\n\n private get lastValue() {\n return this.panelInFocus?.lastElementChild;\n }\n\n private get previousOrLastValue() {\n if (!this.hasActiveDescendant) {\n return this.lastValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.previousElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private sortSuggestions(a: SearchBoxSuggestions, b: SearchBoxSuggestions) {\n return a.position - b.position;\n }\n\n private get nextOrFirstValue() {\n if (!this.hasActiveDescendant) {\n return this.firstValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.nextElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private get firstValue() {\n return this.panelInFocus?.firstElementChild;\n }\n\n private get panelInFocus() {\n if (this.leftPanel?.contains(this.activeDescendantElement)) {\n return this.leftPanel;\n }\n if (this.rightPanel?.contains(this.activeDescendantElement)) {\n return this.rightPanel;\n }\n return this.leftPanel || this.rightPanel;\n }\n\n private scrollActiveDescendantIntoView() {\n this.activeDescendantElement?.scrollIntoView({\n block: 'nearest',\n });\n }\n\n private async updateQueryFromSuggestion() {\n const suggestedQuery = this.activeDescendantElement?.getAttribute(\n this.queryDataAttribute\n );\n await this.updateOwnerSearchboxQuery(suggestedQuery || '');\n }\n\n private async updateOwnerSearchboxQuery(query: string) {\n if (query && this.ownerSearchBoxProps.getSearchBoxValue() !== query) {\n this.ownerSearchBoxProps.updateQuery(query);\n await this.updateSuggestedQuery(query);\n }\n }\n\n private async updateSuggestedQuery(suggestedQuery: string) {\n await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onSuggestedQueryChange\n ? suggestion.onSuggestedQueryChange(suggestedQuery)\n : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n this.suggestedQuery = suggestedQuery;\n this.updateSuggestionElements(suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private updateSuggestionElements(query: string) {\n if (!this.isPanelInFocus(this.leftPanel, query)) {\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n }\n\n if (!this.isPanelInFocus(this.rightPanel, query)) {\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n }\n }\n\n public forceUpdate() {\n this.updateSuggestionElements(this.suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private isPanelInFocus(\n panel: HTMLElement | undefined,\n query: string\n ): boolean {\n if (!this.activeDescendantElement) {\n return false;\n }\n\n if (query) {\n const escaped = DOMPurify.sanitize(query);\n return !!panel?.querySelector(\n `[${this.queryDataAttribute}=\"${CSS.escape(escaped)}\"]`\n );\n }\n\n return this.activeDescendantElement?.closest('ul') === panel;\n }\n\n private getAndFilterLeftSuggestionElements() {\n const suggestionElements = this.getSuggestionElements(this.leftSuggestions);\n const filterOnDuplicate = new Set();\n\n const out = suggestionElements.filter((suggestionElement) => {\n if (isNullOrUndefined(suggestionElement.query)) {\n return true;\n }\n if (filterOnDuplicate.has(suggestionElement.query)) {\n return false;\n } else {\n filterOnDuplicate.add(suggestionElement.query);\n return true;\n }\n });\n\n return out;\n }\n\n private getSuggestionElements(suggestions: SearchBoxSuggestions[]) {\n const elements = suggestions.flatMap((suggestion) =>\n suggestion.renderItems()\n );\n\n const max =\n this.ownerSearchBoxProps.getNumberOfSuggestionsToDisplay() +\n elements.filter(elementHasNoQuery).length;\n\n return elements.slice(0, max);\n }\n\n private updateDescendants(activeDescendant = '') {\n const newPrevDescendantElement = this.activeDescendantElement;\n this.previousActiveDescendantElement = newPrevDescendantElement;\n this.updateActiveDescendant(activeDescendant);\n }\n\n private clearSuggestionElements() {\n this.leftSuggestionElements = [];\n this.rightSuggestionElements = [];\n }\n}\n"],"version":3}
1
+ {"file":"stencil-suggestion-manager-486094dd.js","mappings":";;;;;;;;;;;;;MAOa,gBAAgB,GAA+B,CAC1D,KAAK,EACL,QAAQ;IAER,MAAM,UAAU,GAAG;QACjB,MAAM,WAAW,GACf,sGAAsG,CAAC;QACzG,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ;cAC/B,wDAAwD;cACxD,4DAA4D,CAAC;QAEjE,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC9C,CAAC;IAEF,QACE,WAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,IAClE,QAAQ,CACL,EACN;AACJ;;;;;;;;AChBO,MAAM,mBAAmB,GAA+B,CAAC,EAC9D,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,GAAG,kBAAkB,EACtB,MACC,WACE,IAAI,EAAC,sBAAsB,EAC3B,KAAK,EAAC,4CAA4C;IAElD,EAAC,MAAM,IACL,KAAK,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,iBAAiB,CAAC,KAAK,CAAC,EAAE;gBAC9C,OAAO,IAAI,CAAC;aACb;YACD,IAAI,iBAAiB,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE;gBAClD,OAAO,KAAK,CAAC;aACd;iBAAM;gBACL,iBAAiB,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBAC/C,OAAO,IAAI,CAAC;aACb;SACF,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;KACZ;IAEO,qBAAqB,CAAC,WAAmC;QAC/D,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,KAC9C,UAAU,CAAC,WAAW,EAAE,CACzB,CAAC;QAEF,MAAM,GAAG,GACP,IAAI,CAAC,mBAAmB,CAAC,+BAA+B,EAAE;YAC1D,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;QAE5C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;KAC/B;IAEO,iBAAiB,CAAC,gBAAgB,GAAG,EAAE;QAC7C,MAAM,wBAAwB,GAAG,IAAI,CAAC,uBAAuB,CAAC;QAC9D,IAAI,CAAC,+BAA+B,GAAG,wBAAwB,CAAC;QAChE,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;KAC/C;IAEO,uBAAuB;QAC7B,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;QACjC,IAAI,CAAC,uBAAuB,GAAG,EAAE,CAAC;KACnC;;;;;","names":[],"sources":["src/components/common/search-box/stencil-search-box-wrapper.tsx","src/components/common/search-box/stencil-text-area-clear-button.tsx","src/components/common/search-box/stencil-search-text-area.tsx","src/utils/promise-utils.ts","src/components/common/suggestions/stencil-suggestion-manager.ts"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\n\ninterface Props {\n disabled: boolean;\n onFocusout?: (event: FocusEvent) => void;\n}\n\nexport const SearchBoxWrapper: FunctionalComponent<Props> = (\n props,\n children\n) => {\n const getClasses = () => {\n const baseClasses =\n 'flex bg-background w-full border border-neutral rounded-md focus-within:ring-3 absolute top-0 left-0';\n const focusClasses = props.disabled\n ? 'focus-within:border-disabled focus-within:ring-neutral'\n : 'focus-within:border-primary focus-within:ring-ring-primary';\n\n return [baseClasses, focusClasses].join(' ');\n };\n\n return (\n <div part=\"wrapper\" class={getClasses()} onFocusout={props.onFocusout}>\n {children}\n </div>\n );\n};\n","import {FunctionalComponent, h} from '@stencil/core';\nimport ClearSlim from '../../../images/clear-slim.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button, StencilButtonProps} from '../stencil-button';\n\ninterface Props extends Partial<StencilButtonProps> {\n bindings: AnyBindings;\n inputRef: HTMLInputElement | HTMLTextAreaElement | null;\n}\n\nexport const TextAreaClearButton: FunctionalComponent<Props> = ({\n inputRef,\n bindings,\n onClick,\n ...defaultButtonProps\n}) => (\n <div\n part=\"clear-button-wrapper\"\n class=\"ml-2 flex items-center justify-center py-2\"\n >\n <Button\n style=\"text-transparent\"\n part=\"clear-button\"\n class=\"text-neutral-dark flex h-8 w-8 shrink-0 items-center justify-center\"\n onClick={() => {\n onClick?.();\n inputRef?.focus();\n }}\n ariaLabel={bindings.i18n.t('clear')}\n {...defaultButtonProps}\n >\n <atomic-icon\n part=\"clear-icon\"\n icon={ClearSlim}\n class=\"h-4 w-4\"\n ></atomic-icon>\n </Button>\n </div>\n);\n","import {FunctionalComponent, h} from '@stencil/core';\nimport {JSXBase} from '@stencil/core/internal';\nimport {AnyBindings} from '../interface/bindings';\nimport {TextAreaClearButton} from './stencil-text-area-clear-button';\n\ninterface Props extends JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement> {\n textAreaRef: HTMLTextAreaElement;\n loading: boolean;\n bindings: AnyBindings;\n value: string;\n ariaLabel: string;\n onClear(): void;\n popup?: {\n id: string;\n activeDescendant: string;\n expanded: boolean;\n hasSuggestions: boolean;\n };\n}\n\nfunction getPopupAttributes(props: Required<Props>['popup']) {\n return {\n autocomplete: 'off',\n autocapitalize: 'off',\n autocorrect: 'off',\n ...(props.activeDescendant && {\n 'aria-activedescendant': props.activeDescendant,\n }),\n 'aria-autocomplete': 'both',\n 'aria-haspopup': 'true',\n 'aria-controls': props.id,\n };\n}\n\nfunction syncTextWithReplica(elem: HTMLTextAreaElement, value?: string) {\n const parent = elem?.parentNode as HTMLElement;\n if (!parent) {\n return;\n }\n if (elem.value === '\\n') {\n return;\n }\n parent.dataset.replicatedValue = value ?? elem.value;\n}\n\nfunction resetReplicaText(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n delete parent.dataset.replicatedValue;\n }\n}\n\nfunction collapseTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.remove('expanded');\n }\n}\n\nfunction expandTextArea(elem: HTMLTextAreaElement) {\n const parent = elem?.parentNode as HTMLElement;\n if (parent) {\n parent.classList.add('expanded');\n }\n}\n\nexport const SearchTextArea: FunctionalComponent<Props> = ({\n textAreaRef,\n loading,\n bindings,\n onInput,\n onFocus,\n onBlur,\n onChange,\n onKeyDown,\n onKeyUp,\n value,\n ariaLabel,\n onClear,\n popup,\n ...defaultInputProps\n}) => (\n <div class=\"flex grow overflow-hidden\">\n <div part=\"textarea-expander\" class=\"grid grow overflow-hidden\">\n <textarea\n part=\"textarea\"\n aria-label={ariaLabel}\n placeholder={bindings.i18n.t('search')}\n class=\"placeholder-neutral-dark\"\n rows={1}\n onInput={(e) => {\n onInput?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onKeyDown={(e) => {\n syncTextWithReplica(textAreaRef);\n if (e.key === 'Enter') {\n if (e.shiftKey) {\n return;\n }\n e.preventDefault();\n }\n onKeyDown?.(e);\n }}\n onKeyUp={(e) => {\n onKeyUp?.(e);\n if (e.key === 'Enter') {\n e.preventDefault();\n return;\n }\n syncTextWithReplica(textAreaRef);\n }}\n onBlur={(e) => {\n onBlur?.(e);\n collapseTextArea(textAreaRef);\n syncTextWithReplica(textAreaRef);\n }}\n onChange={(e) => {\n onChange?.(e);\n syncTextWithReplica(textAreaRef);\n }}\n onFocus={(e) => {\n onFocus?.(e);\n const target = e.target as HTMLTextAreaElement;\n syncTextWithReplica(textAreaRef ?? target);\n expandTextArea(textAreaRef ?? target);\n }}\n autocomplete=\"off\"\n {...(popup && getPopupAttributes(popup))}\n {...defaultInputProps}\n value={value}\n />\n </div>\n\n {loading && (\n <div class=\"searchbox-button-wrapper ml-2 flex items-center justify-center\">\n <span\n part=\"loading\"\n class=\"loading mr-2 grid h-5 w-5 animate-spin place-items-center rounded-full bg-linear-to-r\"\n ></span>\n </div>\n )}\n {!loading && value && (\n <TextAreaClearButton\n inputRef={textAreaRef}\n bindings={bindings}\n onClick={() => {\n onClear();\n resetReplicaText(textAreaRef);\n }}\n />\n )}\n </div>\n);\n","export function promiseTimeout<T>(prom: T | Promise<T>, ms: number) {\n let id: NodeJS.Timeout;\n const timeout = new Promise((_, reject) => {\n id = setTimeout(() => {\n reject(new Error('Promise timed out.'));\n }, ms);\n });\n return Promise.race([prom, timeout]).then(() => {\n clearTimeout(id);\n });\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {forceUpdate} from '@stencil/core';\nimport DOMPurify from 'dompurify';\nimport {debounce} from '../../../utils/debounce-utils';\nimport {promiseTimeout} from '../../../utils/promise-utils';\nimport {\n elementHasNoQuery,\n elementHasQuery,\n type SearchBoxSuggestionElement,\n type SearchBoxSuggestionsBindings,\n type SearchBoxSuggestionsEvent,\n} from './suggestions-common';\n\n/**\n * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.\n */\nexport interface SearchBoxSuggestions {\n /**\n * The search box will sort the position of suggestions using this value, the lowest value being first.\n * By default, the DOM position will be used.\n */\n position: number;\n /**\n * Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the right panel.\n */\n panel?: 'left' | 'right';\n /**\n * Method that returns the list of elements which will be rendered in the list of suggestions.\n */\n renderItems(): SearchBoxSuggestionElement[];\n /**\n * Hook called when the user changes the search box's input value. This can lead to all the query suggestions being updated.\n */\n onInput?(): Promise<unknown>;\n /**\n * Hook called when the current suggested query changes as the user navigates the list of suggestions.\n * This is used for instant results, which are rendered based on the current suggested query.\n * @param q The new current suggested query.\n */\n onSuggestedQueryChange?(q: string): Promise<unknown>;\n}\n\ninterface SearchBoxProps {\n getSearchBoxValue: () => string;\n updateQuery: (suggestedQuery: string) => void;\n getSuggestionTimeout: () => number;\n getNumberOfSuggestionsToDisplay: () => number;\n getSuggestionDelay: () => number;\n getLogger: () => Pick<typeof console, 'warn'>;\n getHost: () => HTMLElement;\n}\n\nexport class SuggestionManager<SearchBoxController> {\n public suggestions: SearchBoxSuggestions[] = [];\n public leftSuggestionElements: SearchBoxSuggestionElement[] = [];\n public rightSuggestionElements: SearchBoxSuggestionElement[] = [];\n public leftPanel: HTMLElement | undefined = undefined;\n public rightPanel: HTMLElement | undefined = undefined;\n public triggerSuggestions: () => Promise<void>;\n public activeDescendant = '';\n public suggestedQuery = '';\n public keyboardActiveDescendant = '';\n\n private queryDataAttribute = 'data-query';\n private suggestionEvents: SearchBoxSuggestionsEvent<SearchBoxController>[] =\n [];\n\n private previousActiveDescendantElement: HTMLElement | null = null;\n private leftSuggestions: SearchBoxSuggestions[] = [];\n private rightSuggestions: SearchBoxSuggestions[] = [];\n\n constructor(private ownerSearchBoxProps: SearchBoxProps) {\n this.triggerSuggestions = debounce(\n () => this.executeQuerySuggestion(),\n this.ownerSearchBoxProps.getSuggestionDelay()\n );\n }\n\n public get partialSuggestionBindings(): Pick<\n SearchBoxSuggestionsBindings<SearchBoxController>,\n | 'suggestedQuery'\n | 'clearSuggestions'\n | 'triggerSuggestions'\n | 'getSuggestions'\n | 'getSuggestionElements'\n > {\n return {\n suggestedQuery: () => this.suggestedQuery,\n clearSuggestions: () => this.clearSuggestions(),\n triggerSuggestions: () => this.triggerSuggestions(),\n getSuggestions: () => this.suggestions,\n getSuggestionElements: () => this.allSuggestionElements,\n };\n }\n\n public get activeDescendantElement(): HTMLElement | null {\n if (!this.hasActiveDescendant) {\n return null;\n }\n\n return (\n this.leftPanel?.querySelector(`#${this.activeDescendant}`) ||\n this.rightPanel?.querySelector(`#${this.activeDescendant}`) ||\n null\n );\n }\n\n public onSubmit() {\n this.clickOnActiveElement();\n this.clearSuggestions();\n }\n\n public updateActiveDescendant(id = '') {\n this.activeDescendant = id;\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n public updateKeyboardActiveDescendant(id = '') {\n this.keyboardActiveDescendant = id;\n }\n\n public clickOnActiveElement() {\n this.activeDescendantElement?.click();\n this.updateActiveDescendant();\n }\n\n public isRightPanelInFocus() {\n if (\n isNullOrUndefined(this.panelInFocus) ||\n isNullOrUndefined(this.rightPanel)\n ) {\n return false;\n }\n\n return this.panelInFocus === this.rightPanel;\n }\n\n public initializeSuggestions(\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n this.suggestions = this.suggestionEvents.map((event) => event(bindings));\n }\n\n public registerSuggestionsFromEvent(\n event: CustomEvent<SearchBoxSuggestionsEvent<SearchBoxController>>,\n bindings: SearchBoxSuggestionsBindings<SearchBoxController>\n ) {\n event.preventDefault();\n event.stopPropagation();\n this.suggestionEvents.push(event.detail);\n this.suggestions.push(event.detail(bindings));\n }\n\n public registerSuggestions(suggestions: SearchBoxSuggestions) {\n this.suggestions.push(suggestions);\n }\n\n public get isDoubleList() {\n return Boolean(\n this.leftSuggestionElements.length && this.rightSuggestionElements.length\n );\n }\n\n public focusPanel(side: 'left' | 'right') {\n const panel = side === 'left' ? this.leftPanel : this.rightPanel;\n\n if (this.panelInFocus === panel) {\n return;\n }\n if (panel?.firstElementChild) {\n const panelHasActiveDescendant =\n this.previousActiveDescendantElement &&\n panel.contains(this.previousActiveDescendantElement);\n const newValue = panelHasActiveDescendant\n ? this.previousActiveDescendantElement!\n : (panel.firstElementChild as HTMLElement);\n this.updateDescendants(newValue.id);\n }\n }\n\n public clearSuggestions() {\n this.clearSuggestionElements();\n this.updateActiveDescendant();\n }\n\n public async focusNextValue() {\n if (!this.hasSuggestions || !this.nextOrFirstValue) {\n return;\n }\n\n await this.focusValue(this.nextOrFirstValue as HTMLElement);\n }\n\n public async focusValue(value: HTMLElement) {\n this.updateKeyboardActiveDescendant(value.id);\n this.updateActiveDescendant(value.id);\n this.scrollActiveDescendantIntoView();\n await this.updateQueryFromSuggestion();\n }\n\n public async onSuggestionMouseOver(\n item: SearchBoxSuggestionElement,\n side: 'left' | 'right',\n id: string\n ) {\n const thisPanel = side === 'left' ? this.leftPanel : this.rightPanel;\n // When hovering, always reset the keyboard active descendant\n this.updateKeyboardActiveDescendant();\n if (this.panelInFocus === thisPanel) {\n this.updateActiveDescendant(id);\n } else {\n this.updateDescendants(id);\n }\n if (item.query) {\n await this.updateSuggestedQuery(item.query);\n }\n }\n\n public async onSuggestionClick(item: SearchBoxSuggestionElement, e: Event) {\n if (item.query) {\n this.clearSuggestions();\n await this.updateOwnerSearchboxQuery(item.query);\n }\n item.onSelect?.(e);\n }\n\n public get hasSuggestions() {\n return !!this.allSuggestionElements.length;\n }\n\n public get allSuggestionElements() {\n return [...this.leftSuggestionElements, ...this.rightSuggestionElements];\n }\n\n public async focusPreviousValue() {\n if (this.firstValue === this.activeDescendantElement) {\n this.updateKeyboardActiveDescendant();\n this.updateActiveDescendant();\n return;\n }\n\n if (!this.hasSuggestions || !this.previousOrLastValue) {\n return;\n }\n\n await this.focusValue(this.previousOrLastValue as HTMLElement);\n }\n\n public get hasActiveDescendant() {\n return this.activeDescendant !== '';\n }\n\n private async executeQuerySuggestion() {\n this.updateActiveDescendant();\n const settled = await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onInput ? suggestion.onInput() : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n\n const fulfilledSuggestions: SearchBoxSuggestions[] = [];\n\n settled.forEach((prom, j) => {\n if (prom.status === 'fulfilled') {\n fulfilledSuggestions.push(this.suggestions[j]);\n } else {\n this.ownerSearchBoxProps\n .getLogger()\n .warn(\n 'Some query suggestions are not being shown because the promise timed out.'\n );\n }\n });\n\n const splitSuggestions = (side: 'left' | 'right', isDefault = false) =>\n fulfilledSuggestions\n .filter(\n (suggestion) =>\n suggestion.panel === side || (!suggestion.panel && isDefault)\n )\n .sort(this.sortSuggestions);\n\n this.leftSuggestions = splitSuggestions('left', true);\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n\n this.rightSuggestions = splitSuggestions('right');\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n\n const defaultSuggestedQuery =\n this.allSuggestionElements.find(elementHasQuery)?.query || '';\n\n await this.updateSuggestedQuery(defaultSuggestedQuery);\n }\n\n private get lastValue() {\n return this.panelInFocus?.lastElementChild;\n }\n\n private get previousOrLastValue() {\n if (!this.hasActiveDescendant) {\n return this.lastValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.previousElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private sortSuggestions(a: SearchBoxSuggestions, b: SearchBoxSuggestions) {\n return a.position - b.position;\n }\n\n private get nextOrFirstValue() {\n if (!this.hasActiveDescendant) {\n return this.firstValue?.firstChild;\n }\n\n const parentOfActiveDescendant =\n this.activeDescendantElement?.parentElement;\n return (\n parentOfActiveDescendant?.nextElementSibling?.firstChild ||\n this.firstValue?.firstChild\n );\n }\n\n private get firstValue() {\n return this.panelInFocus?.firstElementChild;\n }\n\n private get panelInFocus() {\n if (this.leftPanel?.contains(this.activeDescendantElement)) {\n return this.leftPanel;\n }\n if (this.rightPanel?.contains(this.activeDescendantElement)) {\n return this.rightPanel;\n }\n return this.leftPanel || this.rightPanel;\n }\n\n private scrollActiveDescendantIntoView() {\n this.activeDescendantElement?.scrollIntoView({\n block: 'nearest',\n });\n }\n\n private async updateQueryFromSuggestion() {\n const suggestedQuery = this.activeDescendantElement?.getAttribute(\n this.queryDataAttribute\n );\n await this.updateOwnerSearchboxQuery(suggestedQuery || '');\n }\n\n private async updateOwnerSearchboxQuery(query: string) {\n if (query && this.ownerSearchBoxProps.getSearchBoxValue() !== query) {\n this.ownerSearchBoxProps.updateQuery(query);\n await this.updateSuggestedQuery(query);\n }\n }\n\n private async updateSuggestedQuery(suggestedQuery: string) {\n await Promise.allSettled(\n this.suggestions.map((suggestion) =>\n promiseTimeout(\n suggestion.onSuggestedQueryChange\n ? suggestion.onSuggestedQueryChange(suggestedQuery)\n : Promise.resolve(),\n this.ownerSearchBoxProps.getSuggestionTimeout()\n )\n )\n );\n this.suggestedQuery = suggestedQuery;\n this.updateSuggestionElements(suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private updateSuggestionElements(query: string) {\n if (!this.isPanelInFocus(this.leftPanel, query)) {\n this.leftSuggestionElements = this.getAndFilterLeftSuggestionElements();\n }\n\n if (!this.isPanelInFocus(this.rightPanel, query)) {\n this.rightSuggestionElements = this.getSuggestionElements(\n this.rightSuggestions\n );\n }\n }\n\n public forceUpdate() {\n this.updateSuggestionElements(this.suggestedQuery);\n forceUpdate(this.ownerSearchBoxProps.getHost());\n }\n\n private isPanelInFocus(\n panel: HTMLElement | undefined,\n query: string\n ): boolean {\n if (!this.activeDescendantElement) {\n return false;\n }\n\n if (query) {\n const escaped = DOMPurify.sanitize(query);\n return !!panel?.querySelector(\n `[${this.queryDataAttribute}=\"${CSS.escape(escaped)}\"]`\n );\n }\n\n return this.activeDescendantElement?.closest('ul') === panel;\n }\n\n private getAndFilterLeftSuggestionElements() {\n const suggestionElements = this.getSuggestionElements(this.leftSuggestions);\n const filterOnDuplicate = new Set();\n\n const out = suggestionElements.filter((suggestionElement) => {\n if (isNullOrUndefined(suggestionElement.query)) {\n return true;\n }\n if (filterOnDuplicate.has(suggestionElement.query)) {\n return false;\n } else {\n filterOnDuplicate.add(suggestionElement.query);\n return true;\n }\n });\n\n return out;\n }\n\n private getSuggestionElements(suggestions: SearchBoxSuggestions[]) {\n const elements = suggestions.flatMap((suggestion) =>\n suggestion.renderItems()\n );\n\n const max =\n this.ownerSearchBoxProps.getNumberOfSuggestionsToDisplay() +\n elements.filter(elementHasNoQuery).length;\n\n return elements.slice(0, max);\n }\n\n private updateDescendants(activeDescendant = '') {\n const newPrevDescendantElement = this.activeDescendantElement;\n this.previousActiveDescendantElement = newPrevDescendantElement;\n this.updateActiveDescendant(activeDescendant);\n }\n\n private clearSuggestionElements() {\n this.leftSuggestionElements = [];\n this.rightSuggestionElements = [];\n }\n}\n"],"version":3}