@coveo/atomic 3.34.0-pre.b77b6e3b85 → 3.34.0-pre.b893a97055

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 (164) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/components/analytics-config.js +1 -1
  3. package/dist/atomic/components/{sections.js → atomic-layout-section-utils.js} +1 -1
  4. package/dist/atomic/components/atomic-layout-section-utils.js.map +1 -0
  5. package/dist/atomic/components/atomic-refine-modal2.js +2 -2
  6. package/dist/atomic/components/atomic-refine-modal2.js.map +1 -1
  7. package/dist/atomic/components/components/common/atomic-layout-section/layout.js +1 -1
  8. package/dist/atomic/components/components/common/layout/display-options.js +1 -1
  9. package/dist/atomic/components/components/common/layout/{sections.js → item-layout-sections.js} +1 -1
  10. package/dist/atomic/components/components/common/product-template/product-template-common.js +1 -1
  11. package/dist/atomic/components/components/insight/atomic-insight-layout/insight-layout.js +1 -1
  12. package/dist/atomic/components/display-options.js +1 -1
  13. package/dist/atomic/components/display-options.js.map +1 -1
  14. package/dist/atomic/components/global/environment.js +1 -1
  15. package/dist/atomic/components/insight-layout.js +1 -1
  16. package/dist/atomic/components/insight-layout.js.map +1 -1
  17. package/dist/atomic/components/{sections2.js → item-layout-sections.js} +1 -1
  18. package/dist/atomic/components/item-layout-sections.js.map +1 -0
  19. package/dist/atomic/components/result-template-common.js +1 -1
  20. package/dist/atomic/components/result-template-common.js.map +1 -1
  21. package/dist/atomic/{p-2caa1859.js → p-0e62bdd6.js} +2 -2
  22. package/dist/atomic/p-0e62bdd6.js.map +1 -0
  23. package/dist/atomic/{p-5f706e3d.entry.js → p-170c7da6.entry.js} +2 -2
  24. package/dist/atomic/{p-3857d6a3.entry.js → p-1bbaf206.entry.js} +2 -2
  25. package/dist/atomic/{p-4723ffa5.entry.js → p-20b33c18.entry.js} +2 -2
  26. package/dist/atomic/{p-7709fba4.js → p-2250f505.js} +2 -2
  27. package/dist/atomic/p-2250f505.js.map +1 -0
  28. package/dist/atomic/{p-9a30cf05.js → p-2a457f26.js} +2 -2
  29. package/dist/atomic/{p-bd3542d2.entry.js → p-36112c34.entry.js} +2 -2
  30. package/dist/atomic/p-36112c34.entry.js.map +1 -0
  31. package/dist/atomic/{p-d6e04719.entry.js → p-373448df.entry.js} +2 -2
  32. package/dist/atomic/p-62e85c20.entry.js +2 -0
  33. package/dist/atomic/{p-e97d0ce9.entry.js → p-663c1246.entry.js} +2 -2
  34. package/dist/atomic/{p-93da1f4e.entry.js → p-6f34dd3a.entry.js} +2 -2
  35. package/dist/atomic/{p-0c0b8d41.entry.js → p-768b172e.entry.js} +2 -2
  36. package/dist/atomic/{p-a4d277c7.entry.js → p-7fd5b6ac.entry.js} +2 -2
  37. package/dist/atomic/{p-f71b14b2.entry.js → p-9260dd7d.entry.js} +2 -2
  38. package/dist/atomic/{p-ed8e5c4d.entry.js → p-98dd6df1.entry.js} +2 -2
  39. package/dist/atomic/{p-736f4d7e.entry.js → p-9a6ec803.entry.js} +2 -2
  40. package/dist/atomic/{p-0b5efb51.entry.js → p-a1e5f767.entry.js} +2 -2
  41. package/dist/atomic/{p-1db20a4a.entry.js → p-a5f66ecd.entry.js} +2 -2
  42. package/dist/atomic/{p-65dd9017.entry.js → p-af1b4924.entry.js} +2 -2
  43. package/dist/atomic/{p-577d34ba.entry.js → p-c4fb6426.entry.js} +2 -2
  44. package/dist/atomic/{p-9c7dbbdf.js → p-cc2b2231.js} +1 -1
  45. package/dist/atomic/p-cc2b2231.js.map +1 -0
  46. package/dist/atomic/{p-9faad55b.entry.js → p-dc128135.entry.js} +2 -2
  47. package/dist/atomic/{p-97748161.js → p-dc28ee14.js} +1 -1
  48. package/dist/{esm/sections-d787040b.js.map → atomic/p-dc28ee14.js.map} +1 -1
  49. package/dist/atomic/{p-a210b4a4.entry.js → p-e461f0cc.entry.js} +2 -2
  50. package/dist/atomic/{p-27b8404c.js → p-e62fc40e.js} +2 -2
  51. package/dist/atomic/p-e62fc40e.js.map +1 -0
  52. package/dist/atomic/{p-d1795580.entry.js → p-e7a25b00.entry.js} +2 -2
  53. package/dist/cjs/{analytics-config-4e0eac4d.js → analytics-config-f9b37a30.js} +2 -2
  54. package/dist/cjs/{analytics-config-4e0eac4d.js.map → analytics-config-f9b37a30.js.map} +1 -1
  55. package/dist/cjs/atomic-field-condition.cjs.entry.js +2 -2
  56. package/dist/cjs/atomic-folded-result-list.cjs.entry.js +2 -2
  57. package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +2 -2
  58. package/dist/cjs/atomic-insight-interface.cjs.entry.js +3 -3
  59. package/dist/cjs/atomic-insight-layout.cjs.entry.js +2 -2
  60. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +2 -2
  61. package/dist/cjs/atomic-insight-result-list.cjs.entry.js +2 -2
  62. package/dist/cjs/atomic-insight-result-template.cjs.entry.js +2 -2
  63. package/dist/cjs/atomic-insight-result.cjs.entry.js +2 -2
  64. package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +2 -2
  65. package/dist/cjs/{sections-4b4af2f8.js → atomic-layout-section-utils-08b4fbcd.js} +1 -1
  66. package/dist/cjs/atomic-layout-section-utils-08b4fbcd.js.map +1 -0
  67. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  68. package/dist/cjs/atomic-recs-list.cjs.entry.js +2 -2
  69. package/dist/cjs/atomic-recs-result-template.cjs.entry.js +2 -2
  70. package/dist/cjs/atomic-recs-result.cjs.entry.js +2 -2
  71. package/dist/cjs/atomic-refine-modal.cjs.entry.js +4 -4
  72. package/dist/cjs/atomic-refine-modal.cjs.entry.js.map +1 -1
  73. package/dist/cjs/atomic-result-children-template.cjs.entry.js +2 -2
  74. package/dist/cjs/atomic-result-list.cjs.entry.js +2 -2
  75. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +2 -2
  76. package/dist/cjs/atomic-result-template.cjs.entry.js +2 -2
  77. package/dist/cjs/atomic-result.cjs.entry.js +2 -2
  78. package/dist/cjs/{display-options-14f05862.js → display-options-69531e8d.js} +4 -4
  79. package/dist/cjs/display-options-69531e8d.js.map +1 -0
  80. package/dist/cjs/{insight-layout-355a94dd.js → insight-layout-b6ff92fd.js} +11 -11
  81. package/dist/cjs/insight-layout-b6ff92fd.js.map +1 -0
  82. package/dist/cjs/{sections-fbb93b53.js → item-layout-sections-b09ba4b3.js} +1 -1
  83. package/dist/cjs/item-layout-sections-b09ba4b3.js.map +1 -0
  84. package/dist/cjs/{result-template-common-88359dad.js → result-template-common-84bd4057.js} +3 -3
  85. package/dist/cjs/result-template-common-84bd4057.js.map +1 -0
  86. package/dist/cjs/version.cjs.js +1 -1
  87. package/dist/esm/{analytics-config-7bb0f237.js → analytics-config-b57631c1.js} +2 -2
  88. package/dist/esm/{analytics-config-7bb0f237.js.map → analytics-config-b57631c1.js.map} +1 -1
  89. package/dist/esm/atomic-field-condition.entry.js +2 -2
  90. package/dist/esm/atomic-folded-result-list.entry.js +2 -2
  91. package/dist/esm/atomic-insight-folded-result-list.entry.js +2 -2
  92. package/dist/esm/atomic-insight-interface.entry.js +3 -3
  93. package/dist/esm/atomic-insight-layout.entry.js +2 -2
  94. package/dist/esm/atomic-insight-result-children-template.entry.js +2 -2
  95. package/dist/esm/atomic-insight-result-list.entry.js +2 -2
  96. package/dist/esm/atomic-insight-result-template.entry.js +2 -2
  97. package/dist/esm/atomic-insight-result.entry.js +2 -2
  98. package/dist/esm/atomic-ipx-recs-list.entry.js +2 -2
  99. package/dist/esm/{sections-ae00b53a.js → atomic-layout-section-utils-c8ca7445.js} +1 -1
  100. package/dist/esm/atomic-layout-section-utils-c8ca7445.js.map +1 -0
  101. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  102. package/dist/esm/atomic-recs-list.entry.js +2 -2
  103. package/dist/esm/atomic-recs-result-template.entry.js +2 -2
  104. package/dist/esm/atomic-recs-result.entry.js +2 -2
  105. package/dist/esm/atomic-refine-modal.entry.js +2 -2
  106. package/dist/esm/atomic-refine-modal.entry.js.map +1 -1
  107. package/dist/esm/atomic-result-children-template.entry.js +2 -2
  108. package/dist/esm/atomic-result-list.entry.js +2 -2
  109. package/dist/esm/atomic-result-placeholder_8.entry.js +2 -2
  110. package/dist/esm/atomic-result-template.entry.js +2 -2
  111. package/dist/esm/atomic-result.entry.js +2 -2
  112. package/dist/esm/{display-options-c16840c6.js → display-options-1199eed5.js} +2 -2
  113. package/dist/esm/display-options-1199eed5.js.map +1 -0
  114. package/dist/esm/{insight-layout-776b87f2.js → insight-layout-a1e4b795.js} +2 -2
  115. package/dist/esm/insight-layout-a1e4b795.js.map +1 -0
  116. package/dist/esm/{sections-d787040b.js → item-layout-sections-8afb5049.js} +1 -1
  117. package/dist/esm/item-layout-sections-8afb5049.js.map +1 -0
  118. package/dist/esm/{result-template-common-ac9fecab.js → result-template-common-995b94f8.js} +2 -2
  119. package/dist/esm/result-template-common-995b94f8.js.map +1 -0
  120. package/dist/esm/version.js +1 -1
  121. package/dist/types/components/common/atomic-layout-section/atomic-layout-section.d.ts +1 -1
  122. package/docs/atomic-docs.json +1 -1
  123. package/package.json +1 -1
  124. package/dist/atomic/components/sections.js.map +0 -1
  125. package/dist/atomic/components/sections2.js.map +0 -1
  126. package/dist/atomic/p-250f34d4.entry.js +0 -2
  127. package/dist/atomic/p-27b8404c.js.map +0 -1
  128. package/dist/atomic/p-2caa1859.js.map +0 -1
  129. package/dist/atomic/p-7709fba4.js.map +0 -1
  130. package/dist/atomic/p-97748161.js.map +0 -1
  131. package/dist/atomic/p-9c7dbbdf.js.map +0 -1
  132. package/dist/atomic/p-bd3542d2.entry.js.map +0 -1
  133. package/dist/cjs/display-options-14f05862.js.map +0 -1
  134. package/dist/cjs/insight-layout-355a94dd.js.map +0 -1
  135. package/dist/cjs/result-template-common-88359dad.js.map +0 -1
  136. package/dist/cjs/sections-4b4af2f8.js.map +0 -1
  137. package/dist/cjs/sections-fbb93b53.js.map +0 -1
  138. package/dist/esm/display-options-c16840c6.js.map +0 -1
  139. package/dist/esm/insight-layout-776b87f2.js.map +0 -1
  140. package/dist/esm/result-template-common-ac9fecab.js.map +0 -1
  141. package/dist/esm/sections-ae00b53a.js.map +0 -1
  142. /package/dist/atomic/components/components/common/atomic-layout-section/{sections.js → atomic-layout-section-utils.js} +0 -0
  143. /package/dist/atomic/{p-5f706e3d.entry.js.map → p-170c7da6.entry.js.map} +0 -0
  144. /package/dist/atomic/{p-3857d6a3.entry.js.map → p-1bbaf206.entry.js.map} +0 -0
  145. /package/dist/atomic/{p-4723ffa5.entry.js.map → p-20b33c18.entry.js.map} +0 -0
  146. /package/dist/atomic/{p-9a30cf05.js.map → p-2a457f26.js.map} +0 -0
  147. /package/dist/atomic/{p-d6e04719.entry.js.map → p-373448df.entry.js.map} +0 -0
  148. /package/dist/atomic/{p-250f34d4.entry.js.map → p-62e85c20.entry.js.map} +0 -0
  149. /package/dist/atomic/{p-e97d0ce9.entry.js.map → p-663c1246.entry.js.map} +0 -0
  150. /package/dist/atomic/{p-93da1f4e.entry.js.map → p-6f34dd3a.entry.js.map} +0 -0
  151. /package/dist/atomic/{p-0c0b8d41.entry.js.map → p-768b172e.entry.js.map} +0 -0
  152. /package/dist/atomic/{p-a4d277c7.entry.js.map → p-7fd5b6ac.entry.js.map} +0 -0
  153. /package/dist/atomic/{p-f71b14b2.entry.js.map → p-9260dd7d.entry.js.map} +0 -0
  154. /package/dist/atomic/{p-ed8e5c4d.entry.js.map → p-98dd6df1.entry.js.map} +0 -0
  155. /package/dist/atomic/{p-736f4d7e.entry.js.map → p-9a6ec803.entry.js.map} +0 -0
  156. /package/dist/atomic/{p-0b5efb51.entry.js.map → p-a1e5f767.entry.js.map} +0 -0
  157. /package/dist/atomic/{p-1db20a4a.entry.js.map → p-a5f66ecd.entry.js.map} +0 -0
  158. /package/dist/atomic/{p-65dd9017.entry.js.map → p-af1b4924.entry.js.map} +0 -0
  159. /package/dist/atomic/{p-577d34ba.entry.js.map → p-c4fb6426.entry.js.map} +0 -0
  160. /package/dist/atomic/{p-9faad55b.entry.js.map → p-dc128135.entry.js.map} +0 -0
  161. /package/dist/atomic/{p-a210b4a4.entry.js.map → p-e461f0cc.entry.js.map} +0 -0
  162. /package/dist/atomic/{p-d1795580.entry.js.map → p-e7a25b00.entry.js.map} +0 -0
  163. /package/dist/types/components/common/atomic-layout-section/{sections.d.ts → atomic-layout-section-utils.d.ts} +0 -0
  164. /package/dist/types/components/common/layout/{sections.d.ts → item-layout-sections.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as e,b as t}from"./p-dc3df5ce.js";export{s as setNonce}from"./p-dc3df5ce.js";import{g as a}from"./p-e1255160.js";var i=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};i().then((async e=>{await a();return t(JSON.parse('[["p-65dd9017",[[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"]}]]],["p-1db20a4a",[[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"]}]]],["p-3857d6a3",[[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"]]]]],["p-24fd7df6",[[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"]]]]],["p-9faad55b",[[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]}]]],["p-5f706e3d",[[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"]}]]],["p-4723ffa5",[[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"]}]]],["p-bbfe727a",[[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"]]]]],["p-47ab6c9f",[[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]}]]],["p-cb3fd0f4",[[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"]]]]],["p-ce5b896e",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-f76b7ac3",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-9239be63",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-59f043a0",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-52d5461a",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-c2b4b401",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-2e4628bb",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-0edea6f9",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-4069d801",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-01511388",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-c25f1437",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-83d3857f",[[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"]}]]],["p-4bdc6d5a",[[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"]]]]],["p-cdeb5f2a",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-ee957926",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-a1522fe5",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-85145c88",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-36f63642",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-30c09377",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-be2a43f4",[[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"]]]]],["p-3a01a398",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-b313058c",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-78427c6a",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-fb1a1e2e",[[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]}]]],["p-7e9a1a1a",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-b6ae0244",[[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]}]]],["p-a9383817",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-fe59fb2d",[[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]}]]],["p-6d0e9fad",[[1,"atomic-did-you-mean",{"automaticallyCorrectQuery":[516,"automatically-correct-query"],"queryCorrectionMode":[513,"query-correction-mode"],"didYouMeanState":[32],"queryTriggerState":[32],"error":[32]},null,{"queryCorrectionMode":["updateQueryCorrectionMode"]}]]],["p-47002021",[[0,"atomic-external",{"selector":[513],"boundInterface":[1040]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","handleScrollToTop"],[8,"atomic/parentReady","handleParentReady"]]]]],["p-3549a469",[[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]}]]],["p-0610b3e7",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-a4d277c7",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-7e971d15",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-b2b9e83f",[[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]}]]],["p-0ed76e65",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-59b15bd6",[[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"]}]]],["p-b320f270",[[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"]}]]],["p-a130b00b",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-dbc0ce5c",[[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]}]]],["p-89d8bb0d",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-cafa4083",[[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"]}]]],["p-6078667f",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-a210b4a4",[[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"]}]]],["p-0c0b8d41",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-0f449e9d",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-fdcd187d",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-fa658ef2",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-edede7d1",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-0f39889d",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-519d9abd",[[0,"atomic-insight-result-action-bar"]]],["p-fafd5042",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-93f1d551",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-f71b14b2",[[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]}]]],["p-0b5efb51",[[1,"atomic-insight-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-00069a4b",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-97538903",[[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"]]]]],["p-fdd0aa42",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-c7af4b9e",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-a1ee594f",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-93601dc0",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-06284430",[[1,"atomic-notifications",{"headingLevel":[514,"heading-level"],"icon":[513],"notifyTriggerState":[32],"error":[32]}]]],["p-c4046d57",[[0,"atomic-numeric-range",{"label":[513],"start":[514],"end":[514],"endInclusive":[516,"end-inclusive"]}]]],["p-3e9db2b5",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-4830b9bb",[[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]}]]],["p-f9dd14b2",[[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]}]]],["p-367ec37d",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-e97d0ce9",[[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"]}]]],["p-d1795580",[[1,"atomic-recs-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-250f34d4",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-e9dc8e90",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-87f69e53",[[0,"atomic-result-fields-list"]]],["p-dbf0c5a3",[[1,"atomic-result-icon"]]],["p-1ff7a9da",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-c9f1790d",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-0c8e7d5f",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-b3f6561d",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-852cc16d",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-8572a953",[[0,"atomic-result-section-children"]]],["p-da845e35",[[0,"atomic-result-section-emphasized"]]],["p-3d55fce6",[[0,"atomic-result-section-title-metadata"]]],["p-d6e04719",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-945ddd53",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-998393ec",[[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]}]]],["p-5606819d",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-2fb49fe8",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-d211a422",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["p-97829295",[[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]}]]],["p-56adc7d8",[[0,"atomic-tab",{"label":[1],"name":[1],"expression":[1]}]]],["p-5f6cf383",[[0,"atomic-table-element",{"label":[513]}]]],["p-ba52e9f3",[[0,"atomic-timeframe",{"period":[513],"unit":[513],"amount":[514],"label":[513]}]]],["p-23d4dc54",[[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"]]]]],["p-9b2561e8",[[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"]}]]],["p-bd3542d2",[[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"]}]]],["p-416d088e",[[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-10b5e0f3",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-345c425d",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-7cced247",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-b6415814",[[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"]}]]],["p-6f1bffa2",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-40c1dfcb",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-f9608731",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-f936f55e",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-fe3cd55b",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-4f4c9a03",[[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"]}]]],["p-ed8e5c4d",[[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"]]]]],["p-00a6ab8c",[[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]}]]],["p-577d34ba",[[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"]]]]],["p-dd35e7ad",[[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]}]]],["p-93da1f4e",[[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"]]]]],["p-6098b906",[[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]}]]],["p-740cd5bc",[[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"]}]]],["p-1435fb6f",[[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"]]]]],["p-190ddaca",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-723f76a1",[[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"]}]]],["p-736f4d7e",[[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"]}]]]]'),e)}));
1
+ import{p as e,b as t}from"./p-dc3df5ce.js";export{s as setNonce}from"./p-dc3df5ce.js";import{g as a}from"./p-e1255160.js";var i=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};i().then((async e=>{await a();return t(JSON.parse('[["p-af1b4924",[[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"]}]]],["p-a5f66ecd",[[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"]}]]],["p-1bbaf206",[[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"]]]]],["p-24fd7df6",[[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"]]]]],["p-dc128135",[[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]}]]],["p-170c7da6",[[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"]}]]],["p-20b33c18",[[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"]}]]],["p-bbfe727a",[[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"]]]]],["p-47ab6c9f",[[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]}]]],["p-cb3fd0f4",[[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"]]]]],["p-ce5b896e",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-f76b7ac3",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-9239be63",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-59f043a0",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-52d5461a",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-c2b4b401",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-2e4628bb",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-0edea6f9",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-4069d801",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-01511388",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-c25f1437",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-83d3857f",[[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"]}]]],["p-4bdc6d5a",[[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"]]]]],["p-cdeb5f2a",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-ee957926",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-a1522fe5",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-85145c88",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-36f63642",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-30c09377",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-be2a43f4",[[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"]]]]],["p-3a01a398",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-b313058c",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-78427c6a",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-fb1a1e2e",[[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]}]]],["p-7e9a1a1a",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-b6ae0244",[[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]}]]],["p-a9383817",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-fe59fb2d",[[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]}]]],["p-6d0e9fad",[[1,"atomic-did-you-mean",{"automaticallyCorrectQuery":[516,"automatically-correct-query"],"queryCorrectionMode":[513,"query-correction-mode"],"didYouMeanState":[32],"queryTriggerState":[32],"error":[32]},null,{"queryCorrectionMode":["updateQueryCorrectionMode"]}]]],["p-47002021",[[0,"atomic-external",{"selector":[513],"boundInterface":[1040]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","handleScrollToTop"],[8,"atomic/parentReady","handleParentReady"]]]]],["p-3549a469",[[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]}]]],["p-0610b3e7",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-7fd5b6ac",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-7e971d15",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-b2b9e83f",[[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]}]]],["p-0ed76e65",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-59b15bd6",[[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"]}]]],["p-b320f270",[[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"]}]]],["p-a130b00b",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-dbc0ce5c",[[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]}]]],["p-89d8bb0d",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-cafa4083",[[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"]}]]],["p-6078667f",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-e461f0cc",[[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"]}]]],["p-768b172e",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-0f449e9d",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-fdcd187d",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-fa658ef2",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-edede7d1",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-0f39889d",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-519d9abd",[[0,"atomic-insight-result-action-bar"]]],["p-fafd5042",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-93f1d551",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-9260dd7d",[[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]}]]],["p-a1e5f767",[[1,"atomic-insight-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-00069a4b",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-97538903",[[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"]]]]],["p-fdd0aa42",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-c7af4b9e",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-a1ee594f",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-93601dc0",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-06284430",[[1,"atomic-notifications",{"headingLevel":[514,"heading-level"],"icon":[513],"notifyTriggerState":[32],"error":[32]}]]],["p-c4046d57",[[0,"atomic-numeric-range",{"label":[513],"start":[514],"end":[514],"endInclusive":[516,"end-inclusive"]}]]],["p-3e9db2b5",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-4830b9bb",[[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]}]]],["p-f9dd14b2",[[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]}]]],["p-367ec37d",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-663c1246",[[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"]}]]],["p-e7a25b00",[[1,"atomic-recs-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-62e85c20",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-e9dc8e90",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-87f69e53",[[0,"atomic-result-fields-list"]]],["p-dbf0c5a3",[[1,"atomic-result-icon"]]],["p-1ff7a9da",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-c9f1790d",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-0c8e7d5f",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-b3f6561d",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-852cc16d",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-8572a953",[[0,"atomic-result-section-children"]]],["p-da845e35",[[0,"atomic-result-section-emphasized"]]],["p-3d55fce6",[[0,"atomic-result-section-title-metadata"]]],["p-373448df",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-945ddd53",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-998393ec",[[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]}]]],["p-5606819d",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-2fb49fe8",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-d211a422",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["p-97829295",[[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]}]]],["p-56adc7d8",[[0,"atomic-tab",{"label":[1],"name":[1],"expression":[1]}]]],["p-5f6cf383",[[0,"atomic-table-element",{"label":[513]}]]],["p-ba52e9f3",[[0,"atomic-timeframe",{"period":[513],"unit":[513],"amount":[514],"label":[513]}]]],["p-23d4dc54",[[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"]]]]],["p-9b2561e8",[[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"]}]]],["p-36112c34",[[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"]}]]],["p-416d088e",[[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-10b5e0f3",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-345c425d",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-7cced247",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-b6415814",[[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"]}]]],["p-6f1bffa2",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-40c1dfcb",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-f9608731",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-f936f55e",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-fe3cd55b",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-4f4c9a03",[[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"]}]]],["p-98dd6df1",[[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"]]]]],["p-00a6ab8c",[[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]}]]],["p-c4fb6426",[[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"]]]]],["p-dd35e7ad",[[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]}]]],["p-6f34dd3a",[[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"]]]]],["p-6098b906",[[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]}]]],["p-740cd5bc",[[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"]}]]],["p-1435fb6f",[[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"]]]]],["p-190ddaca",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-723f76a1",[[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"]}]]],["p-9a6ec803",[[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"]}]]]]'),e)}));
2
2
  //# sourceMappingURL=atomic.esm.js.map
@@ -2156,7 +2156,7 @@ function getWindow() {
2156
2156
  }
2157
2157
  function getAtomicEnvironment(headlessVersion) {
2158
2158
  return {
2159
- version: "3.34.0-pre.b77b6e3b85",
2159
+ version: "3.34.0-pre.b893a97055",
2160
2160
  headlessVersion,
2161
2161
  };
2162
2162
  }
@@ -7,4 +7,4 @@ function sectionSelector(section) {
7
7
 
8
8
  export { findSection as f, sectionSelector as s };
9
9
 
10
- //# sourceMappingURL=sections.js.map
10
+ //# sourceMappingURL=atomic-layout-section-utils.js.map
@@ -0,0 +1 @@
1
+ {"file":"atomic-layout-section-utils.js","mappings":"SAYgB,WAAW,CAAC,OAAoB,EAAE,OAAgB;IAChE,OAAO,OAAO,CAAC,aAAa,CAC1B,eAAe,CAAC,OAAO,CAAC,CACK,CAAC;AAClC,CAAC;SAEe,eAAe,CAAC,OAAgB;IAC9C,OAAO,kCAAkC,OAAO,IAAI,CAAC;AACvD;;;;","names":[],"sources":["src/components/common/atomic-layout-section/atomic-layout-section-utils.ts"],"sourcesContent":["import type {AtomicLayoutSection} from './atomic-layout-section';\n\nexport type Section =\n | 'search'\n | 'facets'\n | 'main'\n | 'status'\n | 'results'\n | 'horizontal-facets'\n | 'products'\n | 'pagination';\n\nexport function findSection(element: HTMLElement, section: Section) {\n return element.querySelector(\n sectionSelector(section)\n ) as AtomicLayoutSection | null;\n}\n\nexport function sectionSelector(section: Section) {\n return `atomic-layout-section[section=\"${section}\"]`;\n}\n"],"version":3}
@@ -3,7 +3,7 @@ import { buildBreadcrumbManager, buildSort, buildQuerySummary, buildSearchStatus
3
3
  import { I as InitializeBindings, B as BindStateToController } from './initialization-utils.js';
4
4
  import { s as shouldDisplayOnCurrentTab } from './tab-utils.js';
5
5
  import { f as sortByDocumentPosition } from './utils.js';
6
- import { f as findSection } from './sections.js';
6
+ import { f as findSection } from './atomic-layout-section-utils.js';
7
7
  import { p as popoverClass } from './popover-type.js';
8
8
  import { t as triageFacetsByParents, s as sortFacetVisibility, c as collapseFacetsAfter } from './stencil-facet-common.js';
9
9
  import { i as isRefineModalFacet } from './store.js';
@@ -204,7 +204,7 @@ const AtomicRefineModal = /*@__PURE__*/ proxyCustomElement(class AtomicRefineMod
204
204
  return (h(RefineModalFiltersSection, { i18n: i18n, withFacets: hasFacetElements, withAutomaticFacets: hasAutomaticFacets }, this.breadcrumbManagerState.hasBreadcrumbs && (h(RefineModalFiltersClearButton, { i18n: i18n, onClick: () => this.breadcrumbManager.deselectAll() }))));
205
205
  }
206
206
  render() {
207
- return (h(RefineModal, { key: 'c1903b44e0c9deffc57515099a0993203c92c9b7', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), title: this.bindings.i18n.t('sort-and-filter'), numberOfItems: this.querySummaryState.total, openButton: this.openButton }, h(RefineModalBody, { key: '7a48ac497f20763f538e115965d34e1f6eb776b7' }, this.renderSort(), this.renderFilters())));
207
+ return (h(RefineModal, { key: 'd52b215733e486584cca925dd4c9a7081201bcca', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), title: this.bindings.i18n.t('sort-and-filter'), numberOfItems: this.querySummaryState.total, openButton: this.openButton }, h(RefineModalBody, { key: 'd5506f5c9537b988dd32fe0dfcf1cffdd8d970dd' }, this.renderSort(), this.renderFilters())));
208
208
  }
209
209
  componentDidLoad() {
210
210
  this.host.style.display = '';
@@ -1 +1 @@
1
- {"file":"atomic-refine-modal2.js","mappings":";;;;;;;;;;;;;;AAEO,MAAM,eAAe,GAAwB,CAAC,CAAC,EAAE,QAAQ;IAC9D,QACE,aACE,IAAI,EAAC,SAAS,EACd,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,sBAAsB,IAE3B,QAAQ,CACH,EACR;AACJ,CAAC;;ACHM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;AAGrC;IAFP,qBAAqB,CAAC,mBAAmB,CAAC;iEAEa;AAGjD;IAFN,qBAAqB,CAAC,cAAc,CAAC;4DAEO;AACE;IAArC,qBAAqB,CAAC,MAAM,CAAC;oDAA8B;AAI9D;IAFN,qBAAqB,CAAC,YAAY,CAAC;0DAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/common/refine-modal/stencil-body.tsx","src/components/common/refine-modal/stencil-filters.tsx","src/components/common/refine-modal/stencil-sort.tsx","src/components/search/atomic-refine-modal/atomic-refine-modal.pcss?tag=atomic-refine-modal&encapsulation=shadow","src/components/search/atomic-refine-modal/atomic-refine-modal.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\n\nexport const RefineModalBody: FunctionalComponent = (_, children) => {\n return (\n <aside\n part=\"content\"\n slot=\"body\"\n class=\"flex flex-col w-full\"\n >\n {children}\n </aside>\n );\n};\n","import {FunctionalComponent, Fragment, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport {Button} from '../stencil-button';\n\ninterface RefineModalFiltersSectionProps {\n i18n: i18n;\n withFacets: boolean;\n withAutomaticFacets: boolean;\n}\nexport const RefineModalFiltersSection: FunctionalComponent<\n RefineModalFiltersSectionProps\n> = ({i18n, withAutomaticFacets, withFacets}, children) => {\n return (\n <Fragment>\n <div part=\"filter-section\" class=\"mt-8 mb-3 flex w-full justify-between\">\n <h1\n part=\"section-title section-filters-title\"\n class=\"truncate text-2xl font-bold\"\n >\n {i18n.t('filters')}\n </h1>\n {children}\n </div>\n {withFacets && <slot name=\"facets\"></slot>}\n {withAutomaticFacets && <slot name=\"automatic-facets\"></slot>}\n </Fragment>\n );\n};\n\ninterface RefineModalFiltersClearButtonProps {\n i18n: i18n;\n onClick: () => void;\n}\nexport const RefineModalFiltersClearButton: FunctionalComponent<\n RefineModalFiltersClearButtonProps\n> = ({i18n, onClick}) => {\n return (\n <Button\n onClick={onClick}\n style=\"text-primary\"\n text={i18n.t('clear')}\n class=\"px-2 py-1\"\n part=\"filter-clear-all\"\n ></Button>\n );\n};\n","import {Fragment, FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport SortIcon from '../../../images/sort.svg';\n\ninterface RefineModalSortSectionProps {\n i18n: i18n;\n onSelect: (e: Event) => void;\n}\nexport const RefineModalSortSection: FunctionalComponent<\n RefineModalSortSectionProps\n> = ({i18n, onSelect}, children) => {\n return (\n <Fragment>\n <h1\n part=\"section-title section-sort-title\"\n class=\"mb-3 truncate text-2xl font-bold\"\n >\n {i18n.t('sort')}\n </h1>\n <div part=\"select-wrapper\" class=\"relative\">\n <select\n class=\"btn-outline-neutral w-full grow cursor-pointer appearance-none rounded-lg px-6 py-5 text-lg font-bold\"\n part=\"select\"\n aria-label={i18n.t('sort-by')}\n onChange={onSelect}\n >\n {children}\n </select>\n <div\n part=\"select-icon-wrapper\"\n class=\"pointer-events-none absolute top-0 right-0 bottom-0 flex items-center justify-center pr-6\"\n >\n <atomic-icon\n part=\"select-icon\"\n icon={SortIcon}\n class=\"h-6 w-6\"\n ></atomic-icon>\n </div>\n </div>\n </Fragment>\n );\n};\n","@import '../../../global/global.pcss';\n\n/* This stylesheet can be removed once atomic-refine-modal is migrated to lit.\n\nThe remaining styles can also be removed as they have been moved to the refine-modal/sort.ts functional component*/\n\n/**\n * @prop --atomic-refine-modal-facet-margin: The spacing between the modal's facets.\n */\nselect:hover + div,\nselect:focus-visible + div {\n @apply text-primary-light;\n}\n","import {\n BreadcrumbManager,\n buildBreadcrumbManager,\n BreadcrumbManagerState,\n QuerySummary,\n QuerySummaryState,\n FacetManagerState,\n Sort,\n buildSort,\n SortState,\n buildQuerySummary,\n buildSearchStatus,\n SearchStatus,\n FacetManager,\n buildFacetManager,\n TabManager,\n TabManagerState,\n buildTabManager,\n} from '@coveo/headless';\nimport {Component, h, State, Prop, Element, Watch} from '@stencil/core';\nimport {\n AtomicInterface,\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {shouldDisplayOnCurrentTab} from '../../../utils/tab-utils';\nimport {sortByDocumentPosition} from '../../../utils/utils';\nimport {findSection} from '../../common/atomic-layout-section/sections';\nimport {popoverClass} from '../../common/facets/popover/popover-type';\nimport {\n BaseFacetElement,\n sortFacetVisibility,\n triageFacetsByParents,\n collapseFacetsAfter,\n} from '../../common/facets/stencil-facet-common';\nimport {isRefineModalFacet} from '../../common/interface/store';\nimport {RefineModalBody} from '../../common/refine-modal/stencil-body';\nimport {\n RefineModalFiltersClearButton,\n RefineModalFiltersSection,\n} from '../../common/refine-modal/stencil-filters';\nimport {RefineModal} from '../../common/refine-modal/stencil-modal';\nimport {RefineModalSortSection} from '../../common/refine-modal/stencil-sort';\nimport {Bindings} from '../atomic-search-interface/atomic-search-interface';\nimport {SortDropdownOption} from '../atomic-search-interface/store';\n\n/**\n * The `atomic-refine-modal` is automatically created as a child of the `atomic-search-interface` when the `atomic-refine-toggle` is initialized.\n *\n * When the modal is opened, the class `atomic-modal-opened` is added to the interface element and the body, allowing further customization.\n *\n * @part container - The modal's outermost container.\n * @part header-wrapper - The wrapper around the header.\n * @part header - The header of the modal, containing the title.\n * @part title - The title of the modal.\n * @part close-button - The button in the header that closes the modal.\n * @part close-icon - The icon of the close button.\n * @part header-ruler - The horizontal ruler underneath the header.\n * @part body-wrapper - The wrapper around the body.\n * @part body - The body of the modal, between the header and the footer.\n * @part content - The wrapper around the content inside the body of the modal.\n * @part section-title - The title for each section.\n * @part section-sort-title - The title for the sort section.\n * @part section-filters-title - The title for the filters section.\n * @part select-wrapper - The wrapper around the select element, used to position the icon.\n * @part select - The `<select>` element of the dropdown list.\n * @part select-icon-wrapper - The wrapper around the sort icon that's used to align it.\n * @part select-icon - The select dropdown's sort icon.\n * @part filter-section - The section containing facets and the \"filters\" title.\n * @part filter-clear-all - The button that resets all actively selected facet values.\n * @part footer-wrapper - The wrapper with a shadow or background color around the footer.\n * @part footer - The footer of the modal.\n * @part footer-content - The wrapper around the content inside the footer of the modal, containing the button to view results.\n * @part footer-button - The button in the footer that closes the modal.\n * @part footer-button-text - The text inside the button in the footer that closes the modal.\n * @part footer-button-count - The count inside the button in the footer that closes the modal.\n */\n@Component({\n tag: 'atomic-refine-modal',\n styleUrl: 'atomic-refine-modal.pcss',\n shadow: true,\n})\nexport class AtomicRefineModal implements InitializableComponent {\n private sort!: Sort;\n private breadcrumbManager!: BreadcrumbManager;\n public querySummary!: QuerySummary;\n public searchStatus!: SearchStatus;\n public facetManager!: FacetManager;\n @InitializeBindings() public bindings!: Bindings;\n @Element() public host!: HTMLElement;\n\n @BindStateToController('querySummary')\n @State()\n public querySummaryState!: QuerySummaryState;\n @BindStateToController('breadcrumbManager')\n @State()\n private breadcrumbManagerState!: BreadcrumbManagerState;\n @BindStateToController('facetManager')\n @State()\n public facetManagerState!: FacetManagerState;\n @State() @BindStateToController('sort') public sortState!: SortState;\n public tabManager!: TabManager;\n @BindStateToController('tabManager')\n @State()\n public tabManagerState!: TabManagerState;\n @State() public error!: Error;\n\n @Prop({mutable: true}) openButton?: HTMLElement;\n\n @Prop({reflect: true, mutable: true}) isOpen = false;\n\n /**\n * The number of expanded facets inside the refine modal.\n * Remaining facets are automatically collapsed.\n *\n * Using the value `0` collapses all facets.\n */\n @Prop({reflect: true}) public collapseFacetsAfter = 0;\n\n @Watch('isOpen')\n watchEnabled(isOpen: boolean) {\n if (isOpen) {\n if (this.host.querySelector('div[slot=\"facets\"]')) {\n return;\n }\n\n this.host.append(this.createFacetSlot());\n }\n }\n\n public initialize() {\n this.breadcrumbManager = buildBreadcrumbManager(this.bindings.engine);\n this.sort = buildSort(this.bindings.engine);\n this.querySummary = buildQuerySummary(this.bindings.engine);\n this.searchStatus = buildSearchStatus(this.bindings.engine);\n this.facetManager = buildFacetManager(this.bindings.engine);\n this.tabManager = buildTabManager(this.bindings.engine);\n this.watchEnabled(this.isOpen);\n }\n\n private createFacetSlot(): HTMLDivElement {\n const divSlot = document.createElement('div');\n divSlot.setAttribute('slot', 'facets');\n this.addFacetColumnStyling(divSlot);\n\n const facets = this.bindings.store.getFacetElements() as BaseFacetElement[];\n const boundInterfaces = this.getBoundInterfaces().sort(\n sortByDocumentPosition\n );\n const facetsSection = [];\n const horizontalFacetsSection = [];\n for (const boundInterface of boundInterfaces) {\n const facetSection = findSection(boundInterface, 'facets');\n if (facetSection) {\n facetsSection.push(facetSection);\n }\n const horizontalFacetSection = findSection(\n boundInterface,\n 'horizontal-facets'\n );\n if (horizontalFacetSection) {\n horizontalFacetsSection.push(horizontalFacetSection);\n }\n }\n const triagedFacets = triageFacetsByParents(\n facets,\n ...horizontalFacetsSection,\n ...facetsSection\n );\n for (const triagedFacet of triagedFacets.values()) {\n triagedFacet.sort(sortByDocumentPosition);\n }\n\n const sortedFacets = [];\n for (let i = 0; i < boundInterfaces.length; i++) {\n sortedFacets.push(...(triagedFacets.get(facetsSection[i]) || []));\n sortedFacets.push(\n ...(triagedFacets.get(horizontalFacetsSection[i]) || [])\n );\n }\n sortedFacets.push(...(triagedFacets.get(null) || []));\n\n const {visibleFacets, invisibleFacets} = sortFacetVisibility(\n sortedFacets,\n this.bindings.store.getAllFacets()\n );\n\n const visibleFacetsClone = this.cloneFacets(visibleFacets);\n const invisibleFacetsClone = this.cloneFacets(invisibleFacets);\n\n collapseFacetsAfter(visibleFacetsClone, this.collapseFacetsAfter);\n\n divSlot.append(...visibleFacetsClone);\n divSlot.append(...invisibleFacetsClone);\n\n const generator = this.makeAutomaticFacetGenerator();\n if (generator) {\n generator.updateCollapseFacetsDependingOnFacetsVisibility(\n this.collapseFacetsAfter,\n visibleFacets.length\n );\n divSlot.append(generator);\n }\n\n return divSlot;\n }\n\n private getBoundInterfaces(): AtomicInterface[] {\n const mainInterface: AtomicInterface | null =\n this.host.closest('atomic-search-interface') ??\n this.host.closest('atomic-external')?.boundInterface ??\n null;\n if (!mainInterface) {\n throw new Error('Cannot find bound interface');\n }\n const boundExternalInterfaces = Array.from(\n document.querySelectorAll('atomic-external')\n ).filter(\n (atomicExternal) => atomicExternal.boundInterface === mainInterface\n );\n return [...boundExternalInterfaces, mainInterface];\n }\n\n private cloneFacets(facets: BaseFacetElement[]): BaseFacetElement[] {\n return facets.map((facet, i) => {\n facet.classList.remove(popoverClass);\n facet.setAttribute(isRefineModalFacet, '');\n const clone = facet.cloneNode(true) as BaseFacetElement;\n clone.isCollapsed =\n this.collapseFacetsAfter === -1\n ? false\n : i + 1 > this.collapseFacetsAfter;\n return clone;\n });\n }\n\n private makeAutomaticFacetGenerator() {\n if (!this.bindings.engine.state.automaticFacetSet?.desiredCount) {\n return;\n }\n const generator = document.createElement(\n 'atomic-automatic-facet-generator'\n );\n\n generator.setAttribute(\n 'desired-count',\n `${this.bindings.engine.state.automaticFacetSet?.desiredCount}`\n );\n this.addFacetColumnStyling(generator);\n\n return generator;\n }\n\n private addFacetColumnStyling(el: HTMLElement) {\n el.style.display = 'flex';\n el.style.flexDirection = 'column';\n el.style.gap = 'var(--atomic-refine-modal-facet-margin, 20px)';\n }\n\n private get options() {\n return this.bindings.store.state.sortOptions;\n }\n\n private select(e: Event) {\n const select = e.composedPath()[0] as HTMLSelectElement;\n const option = this.options.find(\n (option) => option.expression === select.value\n );\n option && this.sort.sortBy(option.criteria);\n }\n\n private buildOption({expression, criteria, label, tabs}: SortDropdownOption) {\n if (\n !shouldDisplayOnCurrentTab(\n [...tabs.included],\n [...tabs.excluded],\n this.tabManagerState?.activeTab\n )\n ) {\n return;\n }\n return (\n <option value={expression} selected={this.sort.isSortedBy(criteria)}>\n {this.bindings.i18n.t(label)}\n </option>\n );\n }\n\n private renderSort() {\n if (!this.options.length) {\n return;\n }\n\n return (\n <RefineModalSortSection\n i18n={this.bindings.i18n}\n onSelect={(option) => this.select(option)}\n >\n {this.options.map((option) => this.buildOption(option))}\n </RefineModalSortSection>\n );\n }\n\n private renderFilters() {\n const hasFacetElements = this.bindings.store.getFacetElements().length > 0;\n const hasAutomaticFacets =\n this.bindings.engine.state.automaticFacetSet?.set !== undefined;\n\n if (!hasFacetElements && !hasAutomaticFacets) {\n return;\n }\n\n const {i18n} = this.bindings;\n\n return (\n <RefineModalFiltersSection\n i18n={i18n}\n withFacets={hasFacetElements}\n withAutomaticFacets={hasAutomaticFacets}\n >\n {this.breadcrumbManagerState.hasBreadcrumbs && (\n <RefineModalFiltersClearButton\n i18n={i18n}\n onClick={() => this.breadcrumbManager.deselectAll()}\n />\n )}\n </RefineModalFiltersSection>\n );\n }\n\n public render() {\n return (\n <RefineModal\n i18n={this.bindings.i18n}\n host={this.host}\n isOpen={this.isOpen}\n onClose={() => (this.isOpen = false)}\n title={this.bindings.i18n.t('sort-and-filter')}\n numberOfItems={this.querySummaryState.total}\n openButton={this.openButton}\n >\n <RefineModalBody>\n {this.renderSort()}\n {this.renderFilters()}\n </RefineModalBody>\n </RefineModal>\n );\n }\n\n public componentDidLoad() {\n this.host.style.display = '';\n }\n}\n"],"version":3}
1
+ {"file":"atomic-refine-modal2.js","mappings":";;;;;;;;;;;;;;AAEO,MAAM,eAAe,GAAwB,CAAC,CAAC,EAAE,QAAQ;IAC9D,QACE,aACE,IAAI,EAAC,SAAS,EACd,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,sBAAsB,IAE3B,QAAQ,CACH,EACR;AACJ,CAAC;;ACHM,MAAM,yBAAyB,GAElC,CAAC,EAAC,IAAI,EAAE,mBAAmB,EAAE,UAAU,EAAC,EAAE,QAAQ;IACpD,QACE,EAAC,QAAQ;QACP,WAAK,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAC,uCAAuC;YACtE,UACE,IAAI,EAAC,qCAAqC,EAC1C,KAAK,EAAC,6BAA6B,IAElC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CACf;YACJ,QAAQ,CACL;QACL,UAAU,IAAI,YAAM,IAAI,EAAC,QAAQ,GAAQ;QACzC,mBAAmB,IAAI,YAAM,IAAI,EAAC,kBAAkB,GAAQ,CACpD,EACX;AACJ,CAAC,CAAC;AAMK,MAAM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6B,IAC5B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,GACnD,CACH,CACyB,EAC5B;KACH;IAEM,MAAM;QACX,QACE,EAAC,WAAW,qDACV,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,OAAO,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,EACpC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAC9C,aAAa,EAAE,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAC3C,UAAU,EAAE,IAAI,CAAC,UAAU,IAE3B,EAAC,eAAe,uDACb,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,aAAa,EAAE,CACL,CACN,EACd;KACH;IAEM,gBAAgB;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;KAC9B;;;;;;;;;;;;;;;;;;;AAvQ4B;IAA5B,kBAAkB,EAAE;mDAA4B;AAK1C;IAFN,qBAAqB,CAAC,cAAc,CAAC;4DAEO;AAGrC;IAFP,qBAAqB,CAAC,mBAAmB,CAAC;iEAEa;AAGjD;IAFN,qBAAqB,CAAC,cAAc,CAAC;4DAEO;AACE;IAArC,qBAAqB,CAAC,MAAM,CAAC;oDAA8B;AAI9D;IAFN,qBAAqB,CAAC,YAAY,CAAC;0DAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/common/refine-modal/stencil-body.tsx","src/components/common/refine-modal/stencil-filters.tsx","src/components/common/refine-modal/stencil-sort.tsx","src/components/search/atomic-refine-modal/atomic-refine-modal.pcss?tag=atomic-refine-modal&encapsulation=shadow","src/components/search/atomic-refine-modal/atomic-refine-modal.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\n\nexport const RefineModalBody: FunctionalComponent = (_, children) => {\n return (\n <aside\n part=\"content\"\n slot=\"body\"\n class=\"flex flex-col w-full\"\n >\n {children}\n </aside>\n );\n};\n","import {FunctionalComponent, Fragment, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport {Button} from '../stencil-button';\n\ninterface RefineModalFiltersSectionProps {\n i18n: i18n;\n withFacets: boolean;\n withAutomaticFacets: boolean;\n}\nexport const RefineModalFiltersSection: FunctionalComponent<\n RefineModalFiltersSectionProps\n> = ({i18n, withAutomaticFacets, withFacets}, children) => {\n return (\n <Fragment>\n <div part=\"filter-section\" class=\"mt-8 mb-3 flex w-full justify-between\">\n <h1\n part=\"section-title section-filters-title\"\n class=\"truncate text-2xl font-bold\"\n >\n {i18n.t('filters')}\n </h1>\n {children}\n </div>\n {withFacets && <slot name=\"facets\"></slot>}\n {withAutomaticFacets && <slot name=\"automatic-facets\"></slot>}\n </Fragment>\n );\n};\n\ninterface RefineModalFiltersClearButtonProps {\n i18n: i18n;\n onClick: () => void;\n}\nexport const RefineModalFiltersClearButton: FunctionalComponent<\n RefineModalFiltersClearButtonProps\n> = ({i18n, onClick}) => {\n return (\n <Button\n onClick={onClick}\n style=\"text-primary\"\n text={i18n.t('clear')}\n class=\"px-2 py-1\"\n part=\"filter-clear-all\"\n ></Button>\n );\n};\n","import {Fragment, FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport SortIcon from '../../../images/sort.svg';\n\ninterface RefineModalSortSectionProps {\n i18n: i18n;\n onSelect: (e: Event) => void;\n}\nexport const RefineModalSortSection: FunctionalComponent<\n RefineModalSortSectionProps\n> = ({i18n, onSelect}, children) => {\n return (\n <Fragment>\n <h1\n part=\"section-title section-sort-title\"\n class=\"mb-3 truncate text-2xl font-bold\"\n >\n {i18n.t('sort')}\n </h1>\n <div part=\"select-wrapper\" class=\"relative\">\n <select\n class=\"btn-outline-neutral w-full grow cursor-pointer appearance-none rounded-lg px-6 py-5 text-lg font-bold\"\n part=\"select\"\n aria-label={i18n.t('sort-by')}\n onChange={onSelect}\n >\n {children}\n </select>\n <div\n part=\"select-icon-wrapper\"\n class=\"pointer-events-none absolute top-0 right-0 bottom-0 flex items-center justify-center pr-6\"\n >\n <atomic-icon\n part=\"select-icon\"\n icon={SortIcon}\n class=\"h-6 w-6\"\n ></atomic-icon>\n </div>\n </div>\n </Fragment>\n );\n};\n","@import '../../../global/global.pcss';\n\n/* This stylesheet can be removed once atomic-refine-modal is migrated to lit.\n\nThe remaining styles can also be removed as they have been moved to the refine-modal/sort.ts functional component*/\n\n/**\n * @prop --atomic-refine-modal-facet-margin: The spacing between the modal's facets.\n */\nselect:hover + div,\nselect:focus-visible + div {\n @apply text-primary-light;\n}\n","import {\n BreadcrumbManager,\n buildBreadcrumbManager,\n BreadcrumbManagerState,\n QuerySummary,\n QuerySummaryState,\n FacetManagerState,\n Sort,\n buildSort,\n SortState,\n buildQuerySummary,\n buildSearchStatus,\n SearchStatus,\n FacetManager,\n buildFacetManager,\n TabManager,\n TabManagerState,\n buildTabManager,\n} from '@coveo/headless';\nimport {Component, h, State, Prop, Element, Watch} from '@stencil/core';\nimport {\n AtomicInterface,\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {shouldDisplayOnCurrentTab} from '../../../utils/tab-utils';\nimport {sortByDocumentPosition} from '../../../utils/utils';\nimport {findSection} from '../../common/atomic-layout-section/atomic-layout-section-utils';\nimport {popoverClass} from '../../common/facets/popover/popover-type';\nimport {\n BaseFacetElement,\n sortFacetVisibility,\n triageFacetsByParents,\n collapseFacetsAfter,\n} from '../../common/facets/stencil-facet-common';\nimport {isRefineModalFacet} from '../../common/interface/store';\nimport {RefineModalBody} from '../../common/refine-modal/stencil-body';\nimport {\n RefineModalFiltersClearButton,\n RefineModalFiltersSection,\n} from '../../common/refine-modal/stencil-filters';\nimport {RefineModal} from '../../common/refine-modal/stencil-modal';\nimport {RefineModalSortSection} from '../../common/refine-modal/stencil-sort';\nimport {Bindings} from '../atomic-search-interface/atomic-search-interface';\nimport {SortDropdownOption} from '../atomic-search-interface/store';\n\n/**\n * The `atomic-refine-modal` is automatically created as a child of the `atomic-search-interface` when the `atomic-refine-toggle` is initialized.\n *\n * When the modal is opened, the class `atomic-modal-opened` is added to the interface element and the body, allowing further customization.\n *\n * @part container - The modal's outermost container.\n * @part header-wrapper - The wrapper around the header.\n * @part header - The header of the modal, containing the title.\n * @part title - The title of the modal.\n * @part close-button - The button in the header that closes the modal.\n * @part close-icon - The icon of the close button.\n * @part header-ruler - The horizontal ruler underneath the header.\n * @part body-wrapper - The wrapper around the body.\n * @part body - The body of the modal, between the header and the footer.\n * @part content - The wrapper around the content inside the body of the modal.\n * @part section-title - The title for each section.\n * @part section-sort-title - The title for the sort section.\n * @part section-filters-title - The title for the filters section.\n * @part select-wrapper - The wrapper around the select element, used to position the icon.\n * @part select - The `<select>` element of the dropdown list.\n * @part select-icon-wrapper - The wrapper around the sort icon that's used to align it.\n * @part select-icon - The select dropdown's sort icon.\n * @part filter-section - The section containing facets and the \"filters\" title.\n * @part filter-clear-all - The button that resets all actively selected facet values.\n * @part footer-wrapper - The wrapper with a shadow or background color around the footer.\n * @part footer - The footer of the modal.\n * @part footer-content - The wrapper around the content inside the footer of the modal, containing the button to view results.\n * @part footer-button - The button in the footer that closes the modal.\n * @part footer-button-text - The text inside the button in the footer that closes the modal.\n * @part footer-button-count - The count inside the button in the footer that closes the modal.\n */\n@Component({\n tag: 'atomic-refine-modal',\n styleUrl: 'atomic-refine-modal.pcss',\n shadow: true,\n})\nexport class AtomicRefineModal implements InitializableComponent {\n private sort!: Sort;\n private breadcrumbManager!: BreadcrumbManager;\n public querySummary!: QuerySummary;\n public searchStatus!: SearchStatus;\n public facetManager!: FacetManager;\n @InitializeBindings() public bindings!: Bindings;\n @Element() public host!: HTMLElement;\n\n @BindStateToController('querySummary')\n @State()\n public querySummaryState!: QuerySummaryState;\n @BindStateToController('breadcrumbManager')\n @State()\n private breadcrumbManagerState!: BreadcrumbManagerState;\n @BindStateToController('facetManager')\n @State()\n public facetManagerState!: FacetManagerState;\n @State() @BindStateToController('sort') public sortState!: SortState;\n public tabManager!: TabManager;\n @BindStateToController('tabManager')\n @State()\n public tabManagerState!: TabManagerState;\n @State() public error!: Error;\n\n @Prop({mutable: true}) openButton?: HTMLElement;\n\n @Prop({reflect: true, mutable: true}) isOpen = false;\n\n /**\n * The number of expanded facets inside the refine modal.\n * Remaining facets are automatically collapsed.\n *\n * Using the value `0` collapses all facets.\n */\n @Prop({reflect: true}) public collapseFacetsAfter = 0;\n\n @Watch('isOpen')\n watchEnabled(isOpen: boolean) {\n if (isOpen) {\n if (this.host.querySelector('div[slot=\"facets\"]')) {\n return;\n }\n\n this.host.append(this.createFacetSlot());\n }\n }\n\n public initialize() {\n this.breadcrumbManager = buildBreadcrumbManager(this.bindings.engine);\n this.sort = buildSort(this.bindings.engine);\n this.querySummary = buildQuerySummary(this.bindings.engine);\n this.searchStatus = buildSearchStatus(this.bindings.engine);\n this.facetManager = buildFacetManager(this.bindings.engine);\n this.tabManager = buildTabManager(this.bindings.engine);\n this.watchEnabled(this.isOpen);\n }\n\n private createFacetSlot(): HTMLDivElement {\n const divSlot = document.createElement('div');\n divSlot.setAttribute('slot', 'facets');\n this.addFacetColumnStyling(divSlot);\n\n const facets = this.bindings.store.getFacetElements() as BaseFacetElement[];\n const boundInterfaces = this.getBoundInterfaces().sort(\n sortByDocumentPosition\n );\n const facetsSection = [];\n const horizontalFacetsSection = [];\n for (const boundInterface of boundInterfaces) {\n const facetSection = findSection(boundInterface, 'facets');\n if (facetSection) {\n facetsSection.push(facetSection);\n }\n const horizontalFacetSection = findSection(\n boundInterface,\n 'horizontal-facets'\n );\n if (horizontalFacetSection) {\n horizontalFacetsSection.push(horizontalFacetSection);\n }\n }\n const triagedFacets = triageFacetsByParents(\n facets,\n ...horizontalFacetsSection,\n ...facetsSection\n );\n for (const triagedFacet of triagedFacets.values()) {\n triagedFacet.sort(sortByDocumentPosition);\n }\n\n const sortedFacets = [];\n for (let i = 0; i < boundInterfaces.length; i++) {\n sortedFacets.push(...(triagedFacets.get(facetsSection[i]) || []));\n sortedFacets.push(\n ...(triagedFacets.get(horizontalFacetsSection[i]) || [])\n );\n }\n sortedFacets.push(...(triagedFacets.get(null) || []));\n\n const {visibleFacets, invisibleFacets} = sortFacetVisibility(\n sortedFacets,\n this.bindings.store.getAllFacets()\n );\n\n const visibleFacetsClone = this.cloneFacets(visibleFacets);\n const invisibleFacetsClone = this.cloneFacets(invisibleFacets);\n\n collapseFacetsAfter(visibleFacetsClone, this.collapseFacetsAfter);\n\n divSlot.append(...visibleFacetsClone);\n divSlot.append(...invisibleFacetsClone);\n\n const generator = this.makeAutomaticFacetGenerator();\n if (generator) {\n generator.updateCollapseFacetsDependingOnFacetsVisibility(\n this.collapseFacetsAfter,\n visibleFacets.length\n );\n divSlot.append(generator);\n }\n\n return divSlot;\n }\n\n private getBoundInterfaces(): AtomicInterface[] {\n const mainInterface: AtomicInterface | null =\n this.host.closest('atomic-search-interface') ??\n this.host.closest('atomic-external')?.boundInterface ??\n null;\n if (!mainInterface) {\n throw new Error('Cannot find bound interface');\n }\n const boundExternalInterfaces = Array.from(\n document.querySelectorAll('atomic-external')\n ).filter(\n (atomicExternal) => atomicExternal.boundInterface === mainInterface\n );\n return [...boundExternalInterfaces, mainInterface];\n }\n\n private cloneFacets(facets: BaseFacetElement[]): BaseFacetElement[] {\n return facets.map((facet, i) => {\n facet.classList.remove(popoverClass);\n facet.setAttribute(isRefineModalFacet, '');\n const clone = facet.cloneNode(true) as BaseFacetElement;\n clone.isCollapsed =\n this.collapseFacetsAfter === -1\n ? false\n : i + 1 > this.collapseFacetsAfter;\n return clone;\n });\n }\n\n private makeAutomaticFacetGenerator() {\n if (!this.bindings.engine.state.automaticFacetSet?.desiredCount) {\n return;\n }\n const generator = document.createElement(\n 'atomic-automatic-facet-generator'\n );\n\n generator.setAttribute(\n 'desired-count',\n `${this.bindings.engine.state.automaticFacetSet?.desiredCount}`\n );\n this.addFacetColumnStyling(generator);\n\n return generator;\n }\n\n private addFacetColumnStyling(el: HTMLElement) {\n el.style.display = 'flex';\n el.style.flexDirection = 'column';\n el.style.gap = 'var(--atomic-refine-modal-facet-margin, 20px)';\n }\n\n private get options() {\n return this.bindings.store.state.sortOptions;\n }\n\n private select(e: Event) {\n const select = e.composedPath()[0] as HTMLSelectElement;\n const option = this.options.find(\n (option) => option.expression === select.value\n );\n option && this.sort.sortBy(option.criteria);\n }\n\n private buildOption({expression, criteria, label, tabs}: SortDropdownOption) {\n if (\n !shouldDisplayOnCurrentTab(\n [...tabs.included],\n [...tabs.excluded],\n this.tabManagerState?.activeTab\n )\n ) {\n return;\n }\n return (\n <option value={expression} selected={this.sort.isSortedBy(criteria)}>\n {this.bindings.i18n.t(label)}\n </option>\n );\n }\n\n private renderSort() {\n if (!this.options.length) {\n return;\n }\n\n return (\n <RefineModalSortSection\n i18n={this.bindings.i18n}\n onSelect={(option) => this.select(option)}\n >\n {this.options.map((option) => this.buildOption(option))}\n </RefineModalSortSection>\n );\n }\n\n private renderFilters() {\n const hasFacetElements = this.bindings.store.getFacetElements().length > 0;\n const hasAutomaticFacets =\n this.bindings.engine.state.automaticFacetSet?.set !== undefined;\n\n if (!hasFacetElements && !hasAutomaticFacets) {\n return;\n }\n\n const {i18n} = this.bindings;\n\n return (\n <RefineModalFiltersSection\n i18n={i18n}\n withFacets={hasFacetElements}\n withAutomaticFacets={hasAutomaticFacets}\n >\n {this.breadcrumbManagerState.hasBreadcrumbs && (\n <RefineModalFiltersClearButton\n i18n={i18n}\n onClick={() => this.breadcrumbManager.deselectAll()}\n />\n )}\n </RefineModalFiltersSection>\n );\n }\n\n public render() {\n return (\n <RefineModal\n i18n={this.bindings.i18n}\n host={this.host}\n isOpen={this.isOpen}\n onClose={() => (this.isOpen = false)}\n title={this.bindings.i18n.t('sort-and-filter')}\n numberOfItems={this.querySummaryState.total}\n openButton={this.openButton}\n >\n <RefineModalBody>\n {this.renderSort()}\n {this.renderFilters()}\n </RefineModalBody>\n </RefineModal>\n );\n }\n\n public componentDidLoad() {\n this.host.style.display = '';\n }\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { findSection, sectionSelector } from './sections';
1
+ import { findSection, sectionSelector } from './atomic-layout-section-utils';
2
2
  export function makeDesktopQuery(mobileBreakpoint) {
3
3
  return `only screen and (min-width: ${mobileBreakpoint})`;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { containsSections } from './sections';
1
+ import { containsSections, } from './item-layout-sections';
2
2
  function getDisplayClass(display) {
3
3
  switch (display) {
4
4
  case 'grid':
@@ -1,4 +1,4 @@
1
- import { isElementNode } from '../../../utils/utils';
1
+ import { isElementNode } from "../../../utils/utils";
2
2
  const resultSectionTags = new Set([
3
3
  'atomic-result-section-visual',
4
4
  'atomic-result-section-badges',
@@ -2,7 +2,7 @@ import { ProductTemplatesHelpers, } from '@coveo/headless/commerce';
2
2
  import { intersection } from '../../../utils/set';
3
3
  import { isElementNode, isVisualNode } from '../../../utils/utils';
4
4
  import { tableElementTagName } from '../../search/atomic-table-result/table-element-utils';
5
- import { isResultSectionNode } from '../layout/sections';
5
+ import { isResultSectionNode } from '../layout/item-layout-sections';
6
6
  export function getTemplateNodeType(node) {
7
7
  if (isResultSectionNode(node)) {
8
8
  return 'section';
@@ -1,4 +1,4 @@
1
- import { findSection, sectionSelector, } from '../../common/atomic-layout-section/sections';
1
+ import { findSection, sectionSelector, } from '../../common/atomic-layout-section/atomic-layout-section-utils';
2
2
  const tabsSelector = 'atomic-insight-tabs';
3
3
  const refineModalSelector = 'atomic-insight-refine-modal';
4
4
  const searchBoxSelector = 'atomic-insight-search-box';
@@ -1,4 +1,4 @@
1
- import { c as containsSections } from './sections2.js';
1
+ import { c as containsSections } from './item-layout-sections.js';
2
2
 
3
3
  function getDisplayClass(display) {
4
4
  switch (display) {
@@ -1 +1 @@
1
- {"file":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B,EACxB,OAA0B,EAC1B,OAA2B,EAC3B,SAA+B;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC5B;IAEO,wBAAwB;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAC/B,8BAA8B,CAC/B,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;QAC9B,IAAI,CAAC,SAAS,EAAE;YACd,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,SAAiC,CAAC;KAC1C;IAEO,UAAU,CAAC,OAA2B;QAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CACnC,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,OAAO,CACvD,CAAC;KACH;IAEM,UAAU,CAAC,WAAoB;QACpC,MAAM,OAAO,GAAG,qBAAqB,CACnC,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,wBAAwB,EAAE,IAAI,IAAI,CAAC,SAAS,CAClD,CAAC;QACF,IACE,WAAW;cACP,gBAAgB,CAAC,WAAW,CAAC;cAC7B,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EACnC;YACA,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAC/B;QACD,OAAO,OAAO,CAAC;KAChB;;;;;","names":[],"sources":["src/components/common/layout/display-options.ts"],"sourcesContent":["import {containsSections, type ItemSectionTagName} from './sections';\n\nexport type ItemDisplayBasicLayout = 'list' | 'grid';\nexport type ItemDisplayLayout = ItemDisplayBasicLayout | 'table';\nexport type ItemDisplayDensity = 'comfortable' | 'normal' | 'compact';\nexport type ItemDisplayImageSize = 'large' | 'small' | 'icon' | 'none';\nexport type ItemTarget = '_self' | '_blank' | '_parent' | '_top';\n\nfunction getDisplayClass(display: ItemDisplayLayout) {\n switch (display) {\n case 'grid':\n return 'display-grid';\n case 'table':\n return 'display-table';\n default:\n return 'display-list';\n }\n}\n\nfunction getDensityClass(density: ItemDisplayDensity) {\n switch (density) {\n case 'comfortable':\n return 'density-comfortable';\n case 'compact':\n return 'density-compact';\n default:\n return 'density-normal';\n }\n}\n\nfunction getImageClass(image: ItemDisplayImageSize) {\n switch (image) {\n case 'large':\n return 'image-large';\n case 'small':\n return 'image-small';\n case 'none':\n return 'image-none';\n default:\n return 'image-icon';\n }\n}\n\nexport function getItemListDisplayClasses(\n display: ItemDisplayLayout,\n density: ItemDisplayDensity,\n image: ItemDisplayImageSize,\n isLoading: boolean,\n isAppLoading: boolean\n) {\n const classes = getItemDisplayClasses(display, density, image);\n\n if (isLoading) {\n classes.push('loading');\n }\n\n if (isAppLoading) {\n classes.push('placeholder');\n }\n return classes.join(' ');\n}\n\nexport function getItemDisplayClasses(\n display: ItemDisplayLayout,\n density: ItemDisplayDensity,\n image: ItemDisplayImageSize\n) {\n const classes = [\n getDisplayClass(display),\n getDensityClass(density),\n getImageClass(image),\n ];\n return classes;\n}\n\nexport class ItemLayout {\n private children: HTMLCollection;\n private density: ItemDisplayDensity;\n private imageSize: ItemDisplayImageSize;\n private display: ItemDisplayLayout;\n\n constructor(\n children: HTMLCollection,\n display: ItemDisplayLayout,\n density: ItemDisplayDensity,\n imageSize: ItemDisplayImageSize\n ) {\n this.children = children;\n this.display = display;\n this.density = density;\n this.imageSize = imageSize;\n }\n\n private getImageSizeFromSections() {\n const imageSize = this.getSection(\n 'atomic-result-section-visual'\n )?.getAttribute('image-size');\n if (!imageSize) {\n return undefined;\n }\n return imageSize as ItemDisplayImageSize;\n }\n\n private getSection(section: ItemSectionTagName) {\n return Array.from(this.children).find(\n (element) => element.tagName.toLowerCase() === section\n );\n }\n\n public getClasses(HTMLContent?: string) {\n const classes = getItemDisplayClasses(\n this.display,\n this.density,\n this.getImageSizeFromSections() ?? this.imageSize\n );\n if (\n HTMLContent\n ? containsSections(HTMLContent)\n : containsSections(this.children)\n ) {\n classes.push('with-sections');\n }\n return classes;\n }\n}\n"],"version":3}
1
+ {"file":"display-options.js","mappings":";;AAWA,SAAS,eAAe,CAAC,OAA0B;IACjD,QAAQ,OAAO;QACb,KAAK,MAAM;YACT,OAAO,cAAc,CAAC;QACxB,KAAK,OAAO;YACV,OAAO,eAAe,CAAC;QACzB;YACE,OAAO,cAAc,CAAC;KACzB;AACH,CAAC;AAED,SAAS,eAAe,CAAC,OAA2B;IAClD,QAAQ,OAAO;QACb,KAAK,aAAa;YAChB,OAAO,qBAAqB,CAAC;QAC/B,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAC;QAC3B;YACE,OAAO,gBAAgB,CAAC;KAC3B;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAA2B;IAChD,QAAQ,KAAK;QACX,KAAK,OAAO;YACV,OAAO,aAAa,CAAC;QACvB,KAAK,OAAO;YACV,OAAO,aAAa,CAAC;QACvB,KAAK,MAAM;YACT,OAAO,YAAY,CAAC;QACtB;YACE,OAAO,YAAY,CAAC;KACvB;AACH,CAAC;SAEe,yBAAyB,CACvC,OAA0B,EAC1B,OAA2B,EAC3B,KAA2B,EAC3B,SAAkB,EAClB,YAAqB;IAErB,MAAM,OAAO,GAAG,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,IAAI,SAAS,EAAE;QACb,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACzB;IAED,IAAI,YAAY,EAAE;QAChB,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC7B;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;SAEe,qBAAqB,CACnC,OAA0B,EAC1B,OAA2B,EAC3B,KAA2B;IAE3B,MAAM,OAAO,GAAG;QACd,eAAe,CAAC,OAAO,CAAC;QACxB,eAAe,CAAC,OAAO,CAAC;QACxB,aAAa,CAAC,KAAK,CAAC;KACrB,CAAC;IACF,OAAO,OAAO,CAAC;AACjB,CAAC;MAEY,UAAU;IAMrB,YACE,QAAwB,EACxB,OAA0B,EAC1B,OAA2B,EAC3B,SAA+B;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC5B;IAEO,wBAAwB;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAC/B,8BAA8B,CAC/B,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;QAC9B,IAAI,CAAC,SAAS,EAAE;YACd,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,SAAiC,CAAC;KAC1C;IAEO,UAAU,CAAC,OAA2B;QAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CACnC,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,OAAO,CACvD,CAAC;KACH;IAEM,UAAU,CAAC,WAAoB;QACpC,MAAM,OAAO,GAAG,qBAAqB,CACnC,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,wBAAwB,EAAE,IAAI,IAAI,CAAC,SAAS,CAClD,CAAC;QACF,IACE,WAAW;cACP,gBAAgB,CAAC,WAAW,CAAC;cAC7B,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EACnC;YACA,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAC/B;QACD,OAAO,OAAO,CAAC;KAChB;;;;;","names":[],"sources":["src/components/common/layout/display-options.ts"],"sourcesContent":["import {\n containsSections,\n type ItemSectionTagName,\n} from './item-layout-sections';\n\nexport type ItemDisplayBasicLayout = 'list' | 'grid';\nexport type ItemDisplayLayout = ItemDisplayBasicLayout | 'table';\nexport type ItemDisplayDensity = 'comfortable' | 'normal' | 'compact';\nexport type ItemDisplayImageSize = 'large' | 'small' | 'icon' | 'none';\nexport type ItemTarget = '_self' | '_blank' | '_parent' | '_top';\n\nfunction getDisplayClass(display: ItemDisplayLayout) {\n switch (display) {\n case 'grid':\n return 'display-grid';\n case 'table':\n return 'display-table';\n default:\n return 'display-list';\n }\n}\n\nfunction getDensityClass(density: ItemDisplayDensity) {\n switch (density) {\n case 'comfortable':\n return 'density-comfortable';\n case 'compact':\n return 'density-compact';\n default:\n return 'density-normal';\n }\n}\n\nfunction getImageClass(image: ItemDisplayImageSize) {\n switch (image) {\n case 'large':\n return 'image-large';\n case 'small':\n return 'image-small';\n case 'none':\n return 'image-none';\n default:\n return 'image-icon';\n }\n}\n\nexport function getItemListDisplayClasses(\n display: ItemDisplayLayout,\n density: ItemDisplayDensity,\n image: ItemDisplayImageSize,\n isLoading: boolean,\n isAppLoading: boolean\n) {\n const classes = getItemDisplayClasses(display, density, image);\n\n if (isLoading) {\n classes.push('loading');\n }\n\n if (isAppLoading) {\n classes.push('placeholder');\n }\n return classes.join(' ');\n}\n\nexport function getItemDisplayClasses(\n display: ItemDisplayLayout,\n density: ItemDisplayDensity,\n image: ItemDisplayImageSize\n) {\n const classes = [\n getDisplayClass(display),\n getDensityClass(density),\n getImageClass(image),\n ];\n return classes;\n}\n\nexport class ItemLayout {\n private children: HTMLCollection;\n private density: ItemDisplayDensity;\n private imageSize: ItemDisplayImageSize;\n private display: ItemDisplayLayout;\n\n constructor(\n children: HTMLCollection,\n display: ItemDisplayLayout,\n density: ItemDisplayDensity,\n imageSize: ItemDisplayImageSize\n ) {\n this.children = children;\n this.display = display;\n this.density = density;\n this.imageSize = imageSize;\n }\n\n private getImageSizeFromSections() {\n const imageSize = this.getSection(\n 'atomic-result-section-visual'\n )?.getAttribute('image-size');\n if (!imageSize) {\n return undefined;\n }\n return imageSize as ItemDisplayImageSize;\n }\n\n private getSection(section: ItemSectionTagName) {\n return Array.from(this.children).find(\n (element) => element.tagName.toLowerCase() === section\n );\n }\n\n public getClasses(HTMLContent?: string) {\n const classes = getItemDisplayClasses(\n this.display,\n this.density,\n this.getImageSizeFromSections() ?? this.imageSize\n );\n if (\n HTMLContent\n ? containsSections(HTMLContent)\n : containsSections(this.children)\n ) {\n classes.push('with-sections');\n }\n return classes;\n }\n}\n"],"version":3}
@@ -3,7 +3,7 @@ function getWindow() {
3
3
  }
4
4
  export function getAtomicEnvironment(headlessVersion) {
5
5
  return {
6
- version: "3.34.0-pre.b77b6e3b85",
6
+ version: "3.34.0-pre.b893a97055",
7
7
  headlessVersion,
8
8
  };
9
9
  }
@@ -1,4 +1,4 @@
1
- import { f as findSection, s as sectionSelector } from './sections.js';
1
+ import { f as findSection, s as sectionSelector } from './atomic-layout-section-utils.js';
2
2
 
3
3
  const tabsSelector = 'atomic-insight-tabs';
4
4
  const refineModalSelector = 'atomic-insight-refine-modal';
@@ -1 +1 @@
1
- {"file":"insight-layout.js","mappings":";;AAKA,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAC3C,MAAM,mBAAmB,GAAG,6BAA6B,CAAC;AAC1D,MAAM,iBAAiB,GAAG,2BAA2B,CAAC;AACtD,MAAM,eAAe,GAAG;IACtB,8BAA8B;IAC9B,4BAA4B;IAC5B,+BAA+B;CAChC,CAAC;AACF,MAAM,qBAAqB,GAAG;IAC5B,0CAA0C;IAC1C,8BAA8B;CAC/B,CAAC;AACF,MAAM,uBAAuB,GAAG,iCAAiC,CAAC;SAElD,gBAAgB,CAAC,gBAAwB;IACvD,OAAO,+BAA+B,gBAAgB,GAAG,CAAC;AAC5D,CAAC;SAEe,kBAAkB,CAAC,OAAoB,EAAE,MAAe;IACtE,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACtB,MAAM,cAAc,GAAG,yBAAyB,EAAE,EAAE,CAAC;IAErD,MAAM,OAAO,GAAG,OAAO,CACrB,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAC5D,CAAC;IAEF,MAAM,cAAc,GAAG,MAAM;UACzB;IACF,cAAc;;;;;;IAMd,cAAc,IAAI,mBAAmB;;IAErC;UACE,EAAE,CAAC;IAEP,MAAM,MAAM,GAAG,GAAG,eAAe,CAAC,QAAQ,CAAC;;;;;;;;;;;QAWrC,CAAC,OAAO,GAAG,yBAAyB,GAAG,EAAE;;;MAG3C,eAAe,CAAC,QAAQ,CAAC,IAAI,iBAAiB;;;;;MAK9C,eAAe,CAAC,GAAG,CACnB,CAAC,cAAc,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,IAAI,cAAc;;MAElE,CACD;;MAEC,eAAe,CAAC,QAAQ,CAAC,IAAI,YAAY;;;KAG1C,CAAC;IAEJ,MAAM,MAAM,GAAG,GAAG,eAAe,CAAC,QAAQ,CAAC;;;KAGxC,CAAC;IAEJ,MAAM,OAAO,GAAG;MACZ,eAAe,CAAC,SAAS,CAAC;;;;MAI1B,eAAe,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC;;;;MAI7D,eAAe,CAAC,SAAS,CAAC,IAAI,uBAAuB;;;;KAItD,CAAC;IAEJ,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;SAC7C,MAAM,CAAC,CAAC,WAAW,KAAK,WAAW,KAAK,EAAE,CAAC;SAC3C,IAAI,CAAC,MAAM,CAAC,CAAC;AAClB;;;;","names":[],"sources":["src/components/insight/atomic-insight-layout/insight-layout.ts"],"sourcesContent":["import {\n findSection,\n sectionSelector,\n} from '../../common/atomic-layout-section/sections';\n\nconst tabsSelector = 'atomic-insight-tabs';\nconst refineModalSelector = 'atomic-insight-refine-modal';\nconst searchBoxSelector = 'atomic-insight-search-box';\nconst toggleSelectors = [\n 'atomic-insight-refine-toggle',\n 'atomic-insight-edit-toggle',\n 'atomic-insight-history-toggle',\n];\nconst smartSnippetSelectors = [\n 'atomic-insight-smart-snippet-suggestions',\n 'atomic-insight-smart-snippet',\n];\nconst generatedAnswerSelector = 'atomic-insight-generated-answer';\n\nexport function makeDesktopQuery(mobileBreakpoint: string) {\n return `only screen and (min-width: ${mobileBreakpoint})`;\n}\n\nexport function buildInsightLayout(element: HTMLElement, widget: boolean) {\n const id = element.id;\n const layoutSelector = `atomic-insight-layout#${id}`;\n\n const hasTabs = Boolean(\n findSection(element, 'search')?.querySelector(tabsSelector)\n );\n\n const interfaceStyle = widget\n ? `\n ${layoutSelector} {\n display: grid;\n grid-template-rows: auto auto 8fr 1fr;\n max-height: 100%;\n box-sizing: border-box;\n }\n ${layoutSelector} ${refineModalSelector} {\n grid-row-start: 5;\n }`\n : '';\n\n const search = `${sectionSelector('search')} {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n grid-gap: 0.5rem;\n background: var(--atomic-neutral-light);\n padding-top: 1.5rem;\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n box-sizing: border-box;\n min-width: 0;\n ${!hasTabs ? 'padding-bottom: 1.5rem;' : ''}\n }\n\n ${sectionSelector('search')} ${searchBoxSelector} {\n flex-grow: 1;\n height: 2.6rem;\n }\n\n ${toggleSelectors.map(\n (toggleSelector) => `${sectionSelector('search')} ${toggleSelector} {\n flex-shrink: 0;\n }`\n )}\n\n ${sectionSelector('search')} ${tabsSelector} {\n width: 100%;\n }\n `;\n\n const facets = `${sectionSelector('facets')} {\n display: none;\n }\n `;\n\n const results = `\n ${sectionSelector('results')} {\n overflow: auto;\n }\n\n ${sectionSelector('results')} ${smartSnippetSelectors.join(',')} {\n padding: 1.5rem 1.5rem 0px;\n }\n\n ${sectionSelector('results')} ${generatedAnswerSelector} {\n margin-left: 1.5rem;\n margin-right: 1.5rem;\n }\n `;\n\n return [interfaceStyle, search, facets, results]\n .filter((declaration) => declaration !== '')\n .join('\\n\\n');\n}\n"],"version":3}
1
+ {"file":"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;;;MAI1B,eAAe,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC;;;;MAI7D,eAAe,CAAC,SAAS,CAAC,IAAI,uBAAuB;;;;KAItD,CAAC;IAEJ,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;SAC7C,MAAM,CAAC,CAAC,WAAW,KAAK,WAAW,KAAK,EAAE,CAAC;SAC3C,IAAI,CAAC,MAAM,CAAC,CAAC;AAClB;;;;","names":[],"sources":["src/components/insight/atomic-insight-layout/insight-layout.ts"],"sourcesContent":["import {\n findSection,\n sectionSelector,\n} from '../../common/atomic-layout-section/atomic-layout-section-utils';\n\nconst tabsSelector = 'atomic-insight-tabs';\nconst refineModalSelector = 'atomic-insight-refine-modal';\nconst searchBoxSelector = 'atomic-insight-search-box';\nconst toggleSelectors = [\n 'atomic-insight-refine-toggle',\n 'atomic-insight-edit-toggle',\n 'atomic-insight-history-toggle',\n];\nconst smartSnippetSelectors = [\n 'atomic-insight-smart-snippet-suggestions',\n 'atomic-insight-smart-snippet',\n];\nconst generatedAnswerSelector = 'atomic-insight-generated-answer';\n\nexport function makeDesktopQuery(mobileBreakpoint: string) {\n return `only screen and (min-width: ${mobileBreakpoint})`;\n}\n\nexport function buildInsightLayout(element: HTMLElement, widget: boolean) {\n const id = element.id;\n const layoutSelector = `atomic-insight-layout#${id}`;\n\n const hasTabs = Boolean(\n findSection(element, 'search')?.querySelector(tabsSelector)\n );\n\n const interfaceStyle = widget\n ? `\n ${layoutSelector} {\n display: grid;\n grid-template-rows: auto auto 8fr 1fr;\n max-height: 100%;\n box-sizing: border-box;\n }\n ${layoutSelector} ${refineModalSelector} {\n grid-row-start: 5;\n }`\n : '';\n\n const search = `${sectionSelector('search')} {\n width: 100%;\n display: flex;\n flex-wrap: wrap;\n grid-gap: 0.5rem;\n background: var(--atomic-neutral-light);\n padding-top: 1.5rem;\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n box-sizing: border-box;\n min-width: 0;\n ${!hasTabs ? 'padding-bottom: 1.5rem;' : ''}\n }\n\n ${sectionSelector('search')} ${searchBoxSelector} {\n flex-grow: 1;\n height: 2.6rem;\n }\n\n ${toggleSelectors.map(\n (toggleSelector) => `${sectionSelector('search')} ${toggleSelector} {\n flex-shrink: 0;\n }`\n )}\n\n ${sectionSelector('search')} ${tabsSelector} {\n width: 100%;\n }\n `;\n\n const facets = `${sectionSelector('facets')} {\n display: none;\n }\n `;\n\n const results = `\n ${sectionSelector('results')} {\n overflow: auto;\n }\n\n ${sectionSelector('results')} ${smartSnippetSelectors.join(',')} {\n padding: 1.5rem 1.5rem 0px;\n }\n\n ${sectionSelector('results')} ${generatedAnswerSelector} {\n margin-left: 1.5rem;\n margin-right: 1.5rem;\n }\n `;\n\n return [interfaceStyle, search, facets, results]\n .filter((declaration) => declaration !== '')\n .join('\\n\\n');\n}\n"],"version":3}
@@ -38,4 +38,4 @@ function containsSections(content) {
38
38
 
39
39
  export { containsSections as c, isResultSectionNode as i };
40
40
 
41
- //# sourceMappingURL=sections2.js.map
41
+ //# sourceMappingURL=item-layout-sections.js.map
@@ -0,0 +1 @@
1
+ {"file":"item-layout-sections.js","mappings":";;AAEA,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,8BAA8B;IAC9B,8BAA8B;IAC9B,+BAA+B;IAC/B,6BAA6B;IAC7B,sCAAsC;IACtC,kCAAkC;IAClC,+BAA+B;IAC/B,uCAAuC;IACvC,gCAAgC;CACxB,CAAC,CAAC;AAEZ,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,+BAA+B;IAC/B,+BAA+B;IAC/B,gCAAgC;IAChC,6BAA6B;IAC7B,iCAAiC;IACjC,mCAAmC;IACnC,oCAAoC;IACpC,wCAAwC;IACxC,iCAAiC;CACzB,CAAC,CAAC;AAEZ,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,iBAAiB,EAAE,GAAG,kBAAkB,CAAC,CAAC,CAAC;SAMvD,mBAAmB,CAAC,OAAa;IAC/C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;QAC3B,OAAO,KAAK,CAAC;KACd;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAwB,CAAC,CAAC;AAC1E,CAAC;SAEe,gBAAgB,CAAC,OAA2C;IAC1E,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;KAC1E;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;AACzE;;;;","names":[],"sources":["src/components/common/layout/item-layout-sections.ts"],"sourcesContent":["import {isElementNode} from '@/src/utils/utils';\n\nconst resultSectionTags = new Set([\n 'atomic-result-section-visual',\n 'atomic-result-section-badges',\n 'atomic-result-section-actions',\n 'atomic-result-section-title',\n 'atomic-result-section-title-metadata',\n 'atomic-result-section-emphasized',\n 'atomic-result-section-excerpt',\n 'atomic-result-section-bottom-metadata',\n 'atomic-result-section-children',\n] as const);\n\nconst productSectionTags = new Set([\n 'atomic-product-section-visual',\n 'atomic-product-section-badges',\n 'atomic-product-section-actions',\n 'atomic-product-section-name',\n 'atomic-product-section-metadata',\n 'atomic-product-section-emphasized',\n 'atomic-product-section-description',\n 'atomic-product-section-bottom-metadata',\n 'atomic-product-section-children',\n] as const);\n\nconst allTags = new Set([...resultSectionTags, ...productSectionTags]);\n\ntype SetValueType<T> = T extends Set<infer U> ? U : never;\n\nexport type ItemSectionTagName = SetValueType<typeof allTags>;\n\nexport function isResultSectionNode(element: Node) {\n if (!isElementNode(element)) {\n return false;\n }\n return allTags.has(element.tagName.toLowerCase() as ItemSectionTagName);\n}\n\nexport function containsSections(content: string | NodeList | HTMLCollection) {\n if (typeof content === 'string') {\n return Array.from(allTags.values()).some((tag) => content.includes(tag));\n }\n return Array.from(content).some((child) => isResultSectionNode(child));\n}\n"],"version":3}
@@ -2,7 +2,7 @@ import { ResultTemplatesHelpers } from '@coveo/headless';
2
2
  import { h } from '@stencil/core/internal/client';
3
3
  import { l as aggregate, m as isVisualNode, n as isElementNode } from './utils.js';
4
4
  import { t as tableElementTagName } from './table-element-utils.js';
5
- import { i as isResultSectionNode } from './sections2.js';
5
+ import { i as isResultSectionNode } from './item-layout-sections.js';
6
6
 
7
7
  function getTemplateNodeType(node) {
8
8
  if (isResultSectionNode(node)) {
@@ -1 +1 @@
1
- {"file":"result-template-common.js","mappings":";;;;;;SA0BgB,mBAAmB,CAAC,IAAU;IAC5C,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE;QAC7B,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;QACvB,OAAO,UAAU,CAAC;KACnB;IACD,IACE,aAAa,CAAC,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,mBAAmB,EAClD;QACA,OAAO,yBAAyB,CAAC;KAClC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAe;IACvC,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,KAAK,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC;MAEY,oBAAoB;IAK/B,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,UAAU,GAAG,KAAK,GACQ;QARrB,oBAAe,GAA8B,EAAE,CAAC;QAC/C,uBAAkB,GAAe,OAAO,CAAC;QAQ/C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,I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uB,CAAC;YAChE,IAAI,CAAC,6BAA6B,EAAE,EACpC;KACH;CACF;AAED,SAAS,kBAAkB,CAAC,IAAiB;IAC3C,OAAO,IAAI,CAAC,aAAa,CAAsB,sBAAsB,CAAE,CAAC;AAC1E,CAAC;SAEe,mBAAmB,CACjC,SAAmC,EACnC,YAAsC;IAEtC,MAAM,UAAU,GAA8B,EAAE,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE;QAC7B,UAAU,CAAC,IAAI,CACb,sBAAsB,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAC/D,CAAC;KACH;IAED,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE;QAChC,UAAU,CAAC,IAAI,CACb,sBAAsB,CAAC,iBAAiB,CAAC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CACrE,CAAC;KACH;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;SAEe,qBAAqB,CACnC,SAAkB,EAClB,YAAqB;IAErB,MAAM,UAAU,GAA8B,EAAE,CAAC;IACjD,IAAI,SAAS,EAAE;QACb,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;KACzE;IAED,IAAI,YAAY,EAAE;QAChB,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAC;KAC5E;IACD,OAAO,UAAU,CAAC;AACpB;;;;","names":[],"sources":["src/components/common/result-templates/result-template-common.tsx"],"sourcesContent":["import {\n ResultTemplate,\n ResultTemplateCondition,\n ResultTemplatesHelpers,\n} from '@coveo/headless';\nimport {h} from '@stencil/core';\nimport {aggregate, isElementNode, isVisualNode} from '../../../utils/utils';\nimport {tableElementTagName} from '../../search/atomic-table-result/table-element-utils';\nimport {ItemTarget} from '../layout/display-options';\nimport {isResultSectionNode} from '../layout/sections';\n\nexport type TemplateContent = DocumentFragment;\n\ninterface ResultTemplateCommonProps {\n allowEmpty?: boolean;\n host: HTMLDivElement;\n validParents: string[];\n setError: (error: Error) => void;\n}\n\ntype TemplateNodeType =\n | 'section'\n | 'metadata'\n | 'table-column-definition'\n | 'other';\n\nexport function getTemplateNodeType(node: Node): TemplateNodeType {\n if (isResultSectionNode(node)) {\n return 'section';\n }\n if (!isVisualNode(node)) {\n return 'metadata';\n }\n if (\n isElementNode(node) &&\n node.tagName.toLowerCase() === tableElementTagName\n ) {\n return 'table-column-definition';\n }\n return 'other';\n}\n\nfunction groupNodesByType(nodes: NodeList) {\n return aggregate(Array.from(nodes), (node) => getTemplateNodeType(node));\n}\n\nexport class ResultTemplateCommon {\n private host: HTMLDivElement;\n public matchConditions: ResultTemplateCondition[] = [];\n private gridCellLinkTarget: ItemTarget = '_self';\n\n constructor({\n host,\n setError,\n validParents,\n allowEmpty = false,\n }: ResultTemplateCommonProps) {\n this.host = host;\n this.validateTemplate(host, setError, validParents, allowEmpty);\n }\n\n validateTemplate(\n host: HTMLDivElement,\n setError: (error: Error) => void,\n validParents: string[],\n allowEmpty = true\n ) {\n const hasValidParent = validParents\n .map((p) => p.toUpperCase())\n .includes(host.parentElement?.nodeName || '');\n const tagName = host.nodeName.toLowerCase();\n\n if (!hasValidParent) {\n setError(\n new Error(\n `The \"${tagName}\" component has to be the child of one of the following: ${validParents\n .map((p) => `\"${p.toLowerCase()}\"`)\n .join(', ')}.`\n )\n );\n return;\n }\n\n if (\n host.parentElement?.attributes.getNamedItem('display')?.value === 'grid'\n ) {\n this.gridCellLinkTarget = host.parentElement?.attributes.getNamedItem(\n 'grid-cell-link-target'\n )?.value as ItemTarget;\n }\n\n const template = host.querySelector<HTMLTemplateElement>(\n 'template:not([slot])'\n );\n if (!template) {\n setError(\n new Error(\n `The \"${tagName}\" component has to contain a \"template\" element as a child.`\n )\n );\n return;\n }\n\n if (!allowEmpty && !template.innerHTML.trim()) {\n setError(\n new Error(`The \"template\" tag inside \"${tagName}\" cannot be empty.`)\n );\n return;\n }\n\n if (template.content.querySelector('script')) {\n console.warn(\n 'Any \"script\" tags defined inside of \"template\" elements are not supported and will not be executed when the results are rendered.',\n host\n );\n }\n\n const {section: sectionNodes, other: otherNodes} = groupNodesByType(\n template.content.childNodes\n );\n if (sectionNodes?.length && otherNodes?.length) {\n console.warn(\n 'Result templates should only contain section elements or non-section elements. Future updates could unpredictably affect this result template.',\n host,\n {sectionNodes, otherNodes}\n );\n }\n }\n\n getTemplate(\n conditions: ResultTemplateCondition[],\n error: Error\n ): ResultTemplate<TemplateContent> | null {\n if (error) {\n return null;\n }\n\n return {\n conditions: conditions.concat(this.matchConditions),\n content: getTemplateElement(this.host).content!,\n linkContent: this.getLinkTemplateElement(this.host).content!,\n priority: 1,\n };\n }\n\n renderIfError(error: Error) {\n if (error) {\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n\n getDefaultLinkTemplateElement() {\n const linkTemplate = document.createElement('template');\n linkTemplate.innerHTML = `<atomic-result-link>${this.gridCellLinkTarget ? `<a slot=\"attributes\" target=\"${this.gridCellLinkTarget}\"></a>` : ''}</atomic-result-link>`;\n return linkTemplate;\n }\n\n getLinkTemplateElement(host: HTMLElement) {\n return (\n host.querySelector<HTMLTemplateElement>('template[slot=\"link\"]') ??\n this.getDefaultLinkTemplateElement()\n );\n }\n}\n\nfunction getTemplateElement(host: HTMLElement) {\n return host.querySelector<HTMLTemplateElement>('template:not([slot])')!;\n}\n\nexport function makeMatchConditions(\n mustMatch: Record<string, string[]>,\n mustNotMatch: Record<string, string[]>\n): ResultTemplateCondition[] {\n const conditions: ResultTemplateCondition[] = [];\n for (const field in mustMatch) {\n conditions.push(\n ResultTemplatesHelpers.fieldMustMatch(field, mustMatch[field])\n );\n }\n\n for (const field in mustNotMatch) {\n conditions.push(\n ResultTemplatesHelpers.fieldMustNotMatch(field, mustNotMatch[field])\n );\n }\n return conditions;\n}\n\nexport function makeDefinedConditions(\n ifDefined?: string,\n ifNotDefined?: string\n): ResultTemplateCondition[] {\n const conditions: ResultTemplateCondition[] = [];\n if (ifDefined) {\n const fieldNames = ifDefined.split(',');\n conditions.push(ResultTemplatesHelpers.fieldsMustBeDefined(fieldNames));\n }\n\n if (ifNotDefined) {\n const fieldNames = ifNotDefined.split(',');\n conditions.push(ResultTemplatesHelpers.fieldsMustNotBeDefined(fieldNames));\n }\n return conditions;\n}\n"],"version":3}
1
+ {"file":"result-template-common.js","mappings":";;;;;;SA0BgB,mBAAmB,CAAC,IAAU;IAC5C,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE;QAC7B,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;QACvB,OAAO,UAAU,CAAC;KACnB;IACD,IACE,aAAa,CAAC,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,mBAAmB,EAClD;QACA,OAAO,yBAAyB,CAAC;KAClC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAe;IACvC,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,KAAK,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC;MAEY,oBAAoB;IAK/B,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,UAAU,GAAG,KAAK,GACQ;QARrB,oBAAe,GAA8B,EAAE,CAAC;QAC/C,uBAAkB,GAAe,OAAO,CAAC;QAQ/C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;KACj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AAiB;IAC3C,OAAO,IAAI,CAAC,aAAa,CAAsB,sBAAsB,CAAE,CAAC;AAC1E,CAAC;SAEe,mBAAmB,CACjC,SAAmC,EACnC,YAAsC;IAEtC,MAAM,UAAU,GAA8B,EAAE,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE;QAC7B,UAAU,CAAC,IAAI,CACb,sBAAsB,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAC/D,CAAC;KACH;IAED,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE;QAChC,UAAU,CAAC,IAAI,CACb,sBAAsB,CAAC,iBAAiB,CAAC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CACrE,CAAC;KACH;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;SAEe,qBAAqB,CACnC,SAAkB,EAClB,YAAqB;IAErB,MAAM,UAAU,GAA8B,EAAE,CAAC;IACjD,IAAI,SAAS,EAAE;QACb,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;KACzE;IAED,IAAI,YAAY,EAAE;QAChB,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAC;KAC5E;IACD,OAAO,UAAU,CAAC;AACpB;;;;","names":[],"sources":["src/components/common/result-templates/result-template-common.tsx"],"sourcesContent":["import {\n ResultTemplate,\n ResultTemplateCondition,\n ResultTemplatesHelpers,\n} from '@coveo/headless';\nimport {h} from '@stencil/core';\nimport {aggregate, isElementNode, isVisualNode} from '../../../utils/utils';\nimport {tableElementTagName} from '../../search/atomic-table-result/table-element-utils';\nimport {ItemTarget} from '../layout/display-options';\nimport {isResultSectionNode} from '../layout/item-layout-sections';\n\nexport type TemplateContent = DocumentFragment;\n\ninterface ResultTemplateCommonProps {\n allowEmpty?: boolean;\n host: HTMLDivElement;\n validParents: string[];\n setError: (error: Error) => void;\n}\n\ntype TemplateNodeType =\n | 'section'\n | 'metadata'\n | 'table-column-definition'\n | 'other';\n\nexport function getTemplateNodeType(node: Node): TemplateNodeType {\n if (isResultSectionNode(node)) {\n return 'section';\n }\n if (!isVisualNode(node)) {\n return 'metadata';\n }\n if (\n isElementNode(node) &&\n node.tagName.toLowerCase() === tableElementTagName\n ) {\n return 'table-column-definition';\n }\n return 'other';\n}\n\nfunction groupNodesByType(nodes: NodeList) {\n return aggregate(Array.from(nodes), (node) => getTemplateNodeType(node));\n}\n\nexport class ResultTemplateCommon {\n private host: HTMLDivElement;\n public matchConditions: ResultTemplateCondition[] = [];\n private gridCellLinkTarget: ItemTarget = '_self';\n\n constructor({\n host,\n setError,\n validParents,\n allowEmpty = false,\n }: ResultTemplateCommonProps) {\n this.host = host;\n this.validateTemplate(host, setError, validParents, allowEmpty);\n }\n\n validateTemplate(\n host: HTMLDivElement,\n setError: (error: Error) => void,\n validParents: string[],\n allowEmpty = true\n ) {\n const hasValidParent = validParents\n .map((p) => p.toUpperCase())\n .includes(host.parentElement?.nodeName || '');\n const tagName = host.nodeName.toLowerCase();\n\n if (!hasValidParent) {\n setError(\n new Error(\n `The \"${tagName}\" component has to be the child of one of the following: ${validParents\n .map((p) => `\"${p.toLowerCase()}\"`)\n .join(', ')}.`\n )\n );\n return;\n }\n\n if (\n host.parentElement?.attributes.getNamedItem('display')?.value === 'grid'\n ) {\n this.gridCellLinkTarget = host.parentElement?.attributes.getNamedItem(\n 'grid-cell-link-target'\n )?.value as ItemTarget;\n }\n\n const template = host.querySelector<HTMLTemplateElement>(\n 'template:not([slot])'\n );\n if (!template) {\n setError(\n new Error(\n `The \"${tagName}\" component has to contain a \"template\" element as a child.`\n )\n );\n return;\n }\n\n if (!allowEmpty && !template.innerHTML.trim()) {\n setError(\n new Error(`The \"template\" tag inside \"${tagName}\" cannot be empty.`)\n );\n return;\n }\n\n if (template.content.querySelector('script')) {\n console.warn(\n 'Any \"script\" tags defined inside of \"template\" elements are not supported and will not be executed when the results are rendered.',\n host\n );\n }\n\n const {section: sectionNodes, other: otherNodes} = groupNodesByType(\n template.content.childNodes\n );\n if (sectionNodes?.length && otherNodes?.length) {\n console.warn(\n 'Result templates should only contain section elements or non-section elements. Future updates could unpredictably affect this result template.',\n host,\n {sectionNodes, otherNodes}\n );\n }\n }\n\n getTemplate(\n conditions: ResultTemplateCondition[],\n error: Error\n ): ResultTemplate<TemplateContent> | null {\n if (error) {\n return null;\n }\n\n return {\n conditions: conditions.concat(this.matchConditions),\n content: getTemplateElement(this.host).content!,\n linkContent: this.getLinkTemplateElement(this.host).content!,\n priority: 1,\n };\n }\n\n renderIfError(error: Error) {\n if (error) {\n return (\n <atomic-component-error\n element={this.host}\n error={error}\n ></atomic-component-error>\n );\n }\n }\n\n getDefaultLinkTemplateElement() {\n const linkTemplate = document.createElement('template');\n linkTemplate.innerHTML = `<atomic-result-link>${this.gridCellLinkTarget ? `<a slot=\"attributes\" target=\"${this.gridCellLinkTarget}\"></a>` : ''}</atomic-result-link>`;\n return linkTemplate;\n }\n\n getLinkTemplateElement(host: HTMLElement) {\n return (\n host.querySelector<HTMLTemplateElement>('template[slot=\"link\"]') ??\n this.getDefaultLinkTemplateElement()\n );\n }\n}\n\nfunction getTemplateElement(host: HTMLElement) {\n return host.querySelector<HTMLTemplateElement>('template:not([slot])')!;\n}\n\nexport function makeMatchConditions(\n mustMatch: Record<string, string[]>,\n mustNotMatch: Record<string, string[]>\n): ResultTemplateCondition[] {\n const conditions: ResultTemplateCondition[] = [];\n for (const field in mustMatch) {\n conditions.push(\n ResultTemplatesHelpers.fieldMustMatch(field, mustMatch[field])\n );\n }\n\n for (const field in mustNotMatch) {\n conditions.push(\n ResultTemplatesHelpers.fieldMustNotMatch(field, mustNotMatch[field])\n );\n }\n return conditions;\n}\n\nexport function makeDefinedConditions(\n ifDefined?: string,\n ifNotDefined?: string\n): ResultTemplateCondition[] {\n const conditions: ResultTemplateCondition[] = [];\n if (ifDefined) {\n const fieldNames = ifDefined.split(',');\n conditions.push(ResultTemplatesHelpers.fieldsMustBeDefined(fieldNames));\n }\n\n if (ifNotDefined) {\n const fieldNames = ifNotDefined.split(',');\n conditions.push(ResultTemplatesHelpers.fieldsMustNotBeDefined(fieldNames));\n }\n return conditions;\n}\n"],"version":3}