@coveo/atomic 3.33.0-pre.ea13b3b94e → 3.33.0-pre.f3c61095b0

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 (49) 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/atomic-quickview-modal2.js +4 -4
  4. package/dist/atomic/components/atomic-quickview-modal2.js.map +1 -1
  5. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +15 -0
  6. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +3 -6
  7. package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.js +1 -0
  8. package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -1
  9. package/dist/atomic/components/components/commerce/atomic-product-text/atomic-product-text.js +20 -2
  10. package/dist/atomic/components/decorators/bind-state.js +6 -6
  11. package/dist/atomic/components/global/environment.js +1 -1
  12. package/dist/atomic/{p-bc1aafe1.js → p-4481505b.js} +2 -2
  13. package/dist/atomic/{p-94b74fab.entry.js → p-53e77c0b.entry.js} +2 -2
  14. package/dist/atomic/{p-2d09a05a.entry.js → p-83cef923.entry.js} +2 -2
  15. package/dist/atomic/p-8bba9f56.entry.js +2 -0
  16. package/dist/atomic/p-8bba9f56.entry.js.map +1 -0
  17. package/dist/atomic/{p-52e2e688.entry.js → p-fbd2a35f.entry.js} +2 -2
  18. package/dist/cjs/{analytics-config-2a01a84e.js → analytics-config-7a70c2ce.js} +2 -2
  19. package/dist/cjs/{analytics-config-2a01a84e.js.map → analytics-config-7a70c2ce.js.map} +1 -1
  20. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  21. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +4 -4
  22. package/dist/cjs/atomic-quickview-modal.cjs.entry.js.map +1 -1
  23. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  24. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  25. package/dist/cjs/version.cjs.js +2 -2
  26. package/dist/esm/{analytics-config-e9d76018.js → analytics-config-087f9a1e.js} +2 -2
  27. package/dist/esm/{analytics-config-e9d76018.js.map → analytics-config-087f9a1e.js.map} +1 -1
  28. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  29. package/dist/esm/atomic-quickview-modal.entry.js +4 -4
  30. package/dist/esm/atomic-quickview-modal.entry.js.map +1 -1
  31. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  32. package/dist/esm/atomic-search-interface.entry.js +1 -1
  33. package/dist/esm/version.js +2 -2
  34. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -2
  35. package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +8 -0
  36. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +8 -3
  37. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -1
  38. package/dist/types/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.d.ts +14 -1
  39. package/dist/types/components/commerce/atomic-product-description/atomic-product-description.d.ts +1 -0
  40. package/dist/types/components/commerce/atomic-product-text/atomic-product-text.d.ts +6 -1
  41. package/dist/types/components/search/result-template-components/quickview-iframe/quickview-iframe.d.ts +0 -1
  42. package/docs/atomic-docs.json +1 -1
  43. package/package.json +3 -3
  44. package/dist/atomic/p-6083c9be.entry.js +0 -2
  45. package/dist/atomic/p-6083c9be.entry.js.map +0 -1
  46. /package/dist/atomic/{p-bc1aafe1.js.map → p-4481505b.js.map} +0 -0
  47. /package/dist/atomic/{p-94b74fab.entry.js.map → p-53e77c0b.entry.js.map} +0 -0
  48. /package/dist/atomic/{p-2d09a05a.entry.js.map → p-83cef923.entry.js.map} +0 -0
  49. /package/dist/atomic/{p-52e2e688.entry.js.map → p-fbd2a35f.entry.js.map} +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-91d64c67",[[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-62dbc255",[[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-8d0b9f5a",[[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-fbacb7a0",[[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-005dcc88",[[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-ab55ee64",[[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-f9289f2f",[[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-58fe83ae",[[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-c19a9af4",[[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-e43fe680",[[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-7464f00a",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-04481727",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-ff653000",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-4cda93be",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-db9ca9c3",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-db3dce80",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-c35fb052",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-444bff80",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-8b6aaeed",[[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-2d09a05a",[[1,"atomic-search-interface",{"fieldsToInclude":[1025,"fields-to-include"],"pipeline":[1537],"searchHub":[1537,"search-hub"],"analytics":[516],"timezone":[513],"logLevel":[513,"log-level"],"i18n":[16],"language":[513],"engine":[1040],"reflectStateInUrl":[516,"reflect-state-in-url"],"scrollContainer":[513,"scroll-container"],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"enableRelevanceInspector":[516,"enable-relevance-inspector"],"CspNonce":[513,"csp-nonce"],"error":[32],"relevanceInspectorIsOpen":[32],"initialize":[64],"initializeWithSearchEngine":[64],"executeFirstSearch":[64]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","scrollToTop"],[0,"atomic/relevanceInspector/close","closeRelevanceInspector"]],{"searchHub":["updateSearchHub"],"pipeline":["updatePipeline"],"analytics":["toggleAnalytics"],"language":["updateLanguage"],"iconAssetsPath":["updateIconAssetsPath"]}]]],["p-8044bbe4",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-579c5b46",[[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-d5d1c5c0",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-d3e1a9aa",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-731b7ad8",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-e9dd6d4f",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-dc89e560",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-a6be5ee3",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-5afe99b1",[[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-31d3304c",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-09a5ef74",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-882a99f5",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-9a72f043",[[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-48c8a766",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-ce974d50",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-d5071b5a",[[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-4aeb5e8f",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-2a7ac870",[[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-e27e1e46",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-a2b3dfd0",[[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-e5a5b612",[[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-fb26a29f",[[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-27064d6e",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-52df8126",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-52121e1e",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-b0bd2709",[[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-633628d5",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-0c076058",[[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-6497543c",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-617090d1",[[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-66dd8761",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-421850f9",[[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-a1924914",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-52e2e688",[[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-6ad9e0c8",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-5c813055",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-22ef68f4",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-b6c5584a",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-31aa63b8",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-742bd3cb",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-352e8c42",[[0,"atomic-insight-result-action-bar"]]],["p-c3004f08",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-5db0ffd7",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-4c9498de",[[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-ef0e6888",[[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-53070229",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-64c9a9ef",[[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-2b76b255",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-512143ef",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-c727cd49",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-e392095a",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-5ed976df",[[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-8b80d576",[[1,"atomic-pager",{"numberOfPages":[514,"number-of-pages"],"previousButtonIcon":[513,"previous-button-icon"],"nextButtonIcon":[513,"next-button-icon"],"pagerState":[32],"searchStatusState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-d172edcc",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-113cc160",[[1,"atomic-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-cd39ba3c",[[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-83f46502",[[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-1e21a920",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-94b74fab",[[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-6dce5603",[[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-a897e7f1",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-3ca9ced1",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-2f668825",[[0,"atomic-result-fields-list"]]],["p-10e8d6e9",[[1,"atomic-result-icon"]]],["p-7814e1ed",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-0839dd37",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-5a140589",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-ffedf24d",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-dcb930e7",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-26d0a8d6",[[0,"atomic-result-section-children"]]],["p-d61e65c5",[[0,"atomic-result-section-emphasized"]]],["p-4fe614d1",[[0,"atomic-result-section-title-metadata"]]],["p-53b5eec1",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-24cae323",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-cbdb8d78",[[0,"atomic-search-layout",{"mobileBreakpoint":[513,"mobile-breakpoint"]}]]],["p-d1e45cc0",[[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-8c80991f",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-ac8941e8",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-308c3a88",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["p-995b31cf",[[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-412e9a6d",[[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-2d1d5cd9",[[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-2fd28743",[[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-4eb5bc54",[[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-4dd88abc",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-77ae34ce",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-f5f8990e",[[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-009525f1",[[1,"atomic-relevance-inspector",{"bindings":[16],"open":[516]}]]],["p-f2bae47c",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-d5628c4c",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-6adbdb0f",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-6083c9be",[[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-bfdecd0f",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}],[1,"atomic-search-box-recent-queries",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-05ab5909",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-09934c1e",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-d824c0c2",[[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-516b5bd4",[[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-100da102",[[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-1442d3c3",[[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-75851b6c",[[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-a3aaf456",[[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-eb026d69",[[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-7056c717",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-1f4f26ee",[[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-0167ba21",[[1,"atomic-modal",{"fullscreen":[1540],"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"close":[1040],"scope":[16],"boundary":[513],"error":[32]},[[16,"keyup","handleCloseOnEscape"],[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}],[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-3bda3e96",[[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-91d64c67",[[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-62dbc255",[[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-8d0b9f5a",[[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-fbacb7a0",[[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-005dcc88",[[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-ab55ee64",[[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-f9289f2f",[[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-58fe83ae",[[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-c19a9af4",[[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-e43fe680",[[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-7464f00a",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-04481727",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-ff653000",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-4cda93be",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-db9ca9c3",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-db3dce80",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-c35fb052",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-444bff80",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-8b6aaeed",[[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-83cef923",[[1,"atomic-search-interface",{"fieldsToInclude":[1025,"fields-to-include"],"pipeline":[1537],"searchHub":[1537,"search-hub"],"analytics":[516],"timezone":[513],"logLevel":[513,"log-level"],"i18n":[16],"language":[513],"engine":[1040],"reflectStateInUrl":[516,"reflect-state-in-url"],"scrollContainer":[513,"scroll-container"],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"enableRelevanceInspector":[516,"enable-relevance-inspector"],"CspNonce":[513,"csp-nonce"],"error":[32],"relevanceInspectorIsOpen":[32],"initialize":[64],"initializeWithSearchEngine":[64],"executeFirstSearch":[64]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","scrollToTop"],[0,"atomic/relevanceInspector/close","closeRelevanceInspector"]],{"searchHub":["updateSearchHub"],"pipeline":["updatePipeline"],"analytics":["toggleAnalytics"],"language":["updateLanguage"],"iconAssetsPath":["updateIconAssetsPath"]}]]],["p-8044bbe4",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-579c5b46",[[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-d5d1c5c0",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-d3e1a9aa",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-731b7ad8",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-e9dd6d4f",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-dc89e560",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-a6be5ee3",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-5afe99b1",[[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-31d3304c",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-09a5ef74",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-882a99f5",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-9a72f043",[[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-48c8a766",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-ce974d50",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-d5071b5a",[[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-4aeb5e8f",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-2a7ac870",[[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-e27e1e46",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-a2b3dfd0",[[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-e5a5b612",[[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-fb26a29f",[[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-27064d6e",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-52df8126",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-52121e1e",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-b0bd2709",[[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-633628d5",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-0c076058",[[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-6497543c",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-617090d1",[[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-66dd8761",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-421850f9",[[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-a1924914",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-fbd2a35f",[[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-6ad9e0c8",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-5c813055",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-22ef68f4",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-b6c5584a",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-31aa63b8",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-742bd3cb",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-352e8c42",[[0,"atomic-insight-result-action-bar"]]],["p-c3004f08",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-5db0ffd7",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-4c9498de",[[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-ef0e6888",[[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-53070229",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-64c9a9ef",[[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-2b76b255",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-512143ef",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-c727cd49",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-e392095a",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-5ed976df",[[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-8b80d576",[[1,"atomic-pager",{"numberOfPages":[514,"number-of-pages"],"previousButtonIcon":[513,"previous-button-icon"],"nextButtonIcon":[513,"next-button-icon"],"pagerState":[32],"searchStatusState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-d172edcc",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-113cc160",[[1,"atomic-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-cd39ba3c",[[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-83f46502",[[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-1e21a920",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-53e77c0b",[[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-6dce5603",[[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-a897e7f1",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-3ca9ced1",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-2f668825",[[0,"atomic-result-fields-list"]]],["p-10e8d6e9",[[1,"atomic-result-icon"]]],["p-7814e1ed",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-0839dd37",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-5a140589",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-ffedf24d",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-dcb930e7",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-26d0a8d6",[[0,"atomic-result-section-children"]]],["p-d61e65c5",[[0,"atomic-result-section-emphasized"]]],["p-4fe614d1",[[0,"atomic-result-section-title-metadata"]]],["p-53b5eec1",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-24cae323",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-cbdb8d78",[[0,"atomic-search-layout",{"mobileBreakpoint":[513,"mobile-breakpoint"]}]]],["p-d1e45cc0",[[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-8c80991f",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-ac8941e8",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-308c3a88",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["p-995b31cf",[[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-412e9a6d",[[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-2d1d5cd9",[[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-2fd28743",[[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-4eb5bc54",[[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-4dd88abc",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-77ae34ce",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-f5f8990e",[[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-009525f1",[[1,"atomic-relevance-inspector",{"bindings":[16],"open":[516]}]]],["p-f2bae47c",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-d5628c4c",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-6adbdb0f",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-8bba9f56",[[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-bfdecd0f",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}],[1,"atomic-search-box-recent-queries",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-05ab5909",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-09934c1e",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-d824c0c2",[[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-516b5bd4",[[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-100da102",[[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-1442d3c3",[[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-75851b6c",[[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-a3aaf456",[[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-eb026d69",[[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-7056c717",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-1f4f26ee",[[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-0167ba21",[[1,"atomic-modal",{"fullscreen":[1540],"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"close":[1040],"scope":[16],"boundary":[513],"error":[32]},[[16,"keyup","handleCloseOnEscape"],[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}],[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-3bda3e96",[[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.33.0-pre.ea13b3b94e",
2159
+ version: "3.33.0-pre.f3c61095b0",
2160
2160
  headlessVersion,
2161
2161
  };
2162
2162
  }
@@ -107,14 +107,14 @@ const ensureSameResultIsNotOverwritten = (documentWriter, uniqueIdentifier) => {
107
107
  const warnAboutLimitedUsageQuickview = (logger) => {
108
108
  logger?.warn('Quickview initialized in restricted mode due to incompatible sandboxing environment. Keywords hit navigation will be disabled.');
109
109
  };
110
- const QuickviewIframe = ({ title, onSetIframeRef, uniqueIdentifier, content, sandbox, src, logger }) => {
110
+ const QuickviewIframe = ({ onSetIframeRef, uniqueIdentifier, content, sandbox, src, logger }) => {
111
111
  // When a document is written with document.open/document.write/document.close
112
112
  // it is not synchronous and the content of the iframe is only available to be queried at the end of the current call stack.
113
113
  // This add a "wait" (setTimeout 0) before calling the `onSetIframeRef` from the parent modal quickview
114
114
  const waitForIframeContentToBeWritten = () => {
115
115
  return new Promise((resolve) => setTimeout(resolve));
116
116
  };
117
- return (h("iframe", { title: title, src: "about:blank", class: "h-full w-full", sandbox: sandbox, ref: async (el) => {
117
+ return (h("iframe", { src: "about:blank", class: "h-full w-full", sandbox: sandbox, ref: async (el) => {
118
118
  const iframeRef = el;
119
119
  if (!uniqueIdentifier || !content) {
120
120
  return;
@@ -483,7 +483,7 @@ const AtomicQuickviewModal = /*@__PURE__*/ proxyCustomElement(class AtomicQuickv
483
483
  return (h("div", { slot: "header", class: "flex w-full items-center justify-between" }, headerContent));
484
484
  }
485
485
  renderBody() {
486
- return (h("div", { slot: "body", class: "grid h-full grid-cols-[min-content_auto]" }, h("div", { class: "h-full overflow-y-auto", style: { backgroundColor: 'var(--atomic-neutral-light)' } }, h(QuickviewSidebar, { words: this.words, i18n: this.bindings.i18n, highlightKeywords: this.highlightKeywords, onHighlightKeywords: (highlight) => (this.highlightKeywords = highlight), minimized: this.minimizeSidebar, onMinimize: (minimize) => (this.minimizeSidebar = minimize) })), h("div", { class: "relative overflow-auto" }, h(QuickviewIframe, { title: this.result?.title ?? this.bindings.i18n.t('preview-modal-title'), logger: this.logger, src: this.quickviewSrc, sandbox: this.sandbox, uniqueIdentifier: this.quickviewUniqueIdentifier, content: this.content, onSetIframeRef: async (ref) => {
486
+ return (h("div", { slot: "body", class: "grid h-full grid-cols-[min-content_auto]" }, h("div", { class: "h-full overflow-y-auto", style: { backgroundColor: 'var(--atomic-neutral-light)' } }, h(QuickviewSidebar, { words: this.words, i18n: this.bindings.i18n, highlightKeywords: this.highlightKeywords, onHighlightKeywords: (highlight) => (this.highlightKeywords = highlight), minimized: this.minimizeSidebar, onMinimize: (minimize) => (this.minimizeSidebar = minimize) })), h("div", { class: "relative overflow-auto" }, h(QuickviewIframe, { logger: this.logger, src: this.quickviewSrc, sandbox: this.sandbox, uniqueIdentifier: this.quickviewUniqueIdentifier, content: this.content, onSetIframeRef: async (ref) => {
487
487
  this.iframeRef = ref;
488
488
  this.words = getWordsHighlights(this.termsToHighlight, this.iframeRef);
489
489
  this.handleHighlightsScripts();
@@ -584,7 +584,7 @@ const AtomicQuickviewModal = /*@__PURE__*/ proxyCustomElement(class AtomicQuickv
584
584
  });
585
585
  }
586
586
  render() {
587
- return (h("atomic-modal", { key: 'add7af86888f080b12fa1b5d117ce4745668df00', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
587
+ return (h("atomic-modal", { key: '21dbc83d06fcb1b393d13f7b2d116f68732c77d7', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
588
588
  }
589
589
  static get watchers() { return {
590
590
  "highlightKeywords": ["watchHighlightKeywords"]
@@ -1 +1 @@
1
- {"file":"atomic-quickview-modal2.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAaA,MAAM,yBAAyB,GAAG,kCAAkC,CAAC;AAW9D,MAAM,gBAAgB,GAA+C,CAC1E,KAAK;IAEL,MAAM,EAAC,KAAK,EAAE,SAAS,EAAC,GAAG,KAAK,CAAC;IACjC,MAAM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AyB;QACnC,OAAO,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;KAC/C;IAEO,uBAAuB;QAC7B,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE;YACzC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;aAAM;YACL,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC1B;QACD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;YAC1D,IAAI,IAAI,CAAC,OAAO,EAAE;gBAChB,IAAI,CAAC,+BAA+B,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aAC5D;iBAAM;gBACL,IAAI,CAAC,gCAAgC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aAC7D;SACF,CAAC,CAAC;KACJ;IAEM,MAAM;QACX,QACE,qEACE,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,EAC1C,KAAK,EAAE,wBAAwB,EAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,EAC3B,WAAW,EAAE,yBAAyB,IAErC,IAAI,CAAC,YAAY,EAAE,EACnB,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,YAAY,EAAE,CACP,EACf;KACH;;;;;;;;;;;;;;;;;;;;AAjS4B;IAA5B,kBAAkB,EAAE;sDAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArrowDown"],"sources":["src/components/search/result-template-components/atomic-quickview-sidebar/atomic-quickview-sidebar.tsx","src/components/search/result-template-components/quickview-iframe/quickview-iframe.tsx","src/components/search/result-template-components/quickview-preview-bar/quickview-preview-bar.ts","src/utils/color-utils.ts","src/components/search/result-template-components/quickview-word-highlight/quickview-word-highlight.tsx","src/components/search/result-template-components/atomic-quickview-modal/atomic-quickview-modal.pcss?tag=atomic-quickview-modal&encapsulation=shadow","src/components/search/result-template-components/atomic-quickview-modal/atomic-quickview-modal.tsx"],"sourcesContent":["import {Fragment, FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport Add from '../../../../images/add.svg';\nimport ArrowDown from '../../../../images/arrow-bottom-rounded.svg';\nimport ArrowUp from '../../../../images/arrow-top-rounded.svg';\nimport MinimizeIcon from '../../../../images/menu.svg';\nimport Remove from '../../../../images/remove.svg';\nimport {IconButton} from '../../../common/iconButton';\nimport {StencilCheckbox} from '../../../common/stencil-checkbox';\nimport {FieldsetGroup} from '../../../common/stencil-fieldset-group';\nimport type {HighlightKeywords} from '../atomic-quickview-modal/atomic-quickview-modal';\nimport {QuickviewWordHighlight} from '../quickview-word-highlight/quickview-word-highlight';\n\nconst identifierKeywordsSection = 'coveo-quickview-sidebar-keywords';\n\nexport interface QuickviewSidebarProps {\n words: Record<string, QuickviewWordHighlight>;\n i18n: i18n;\n highlightKeywords: HighlightKeywords;\n onHighlightKeywords: (highlight: HighlightKeywords) => void;\n minimized: boolean;\n onMinimize: (minimize: boolean) => void;\n}\n\nexport const QuickviewSidebar: FunctionalComponent<QuickviewSidebarProps> = (\n props\n) => {\n const {words, minimized} = props;\n const numberOfWords = Object.values(words).length;\n\n if (numberOfWords === 0) {\n return;\n }\n\n const minimizeButton = (\n <MinimizeButton {...props} wordsLength={numberOfWords} />\n );\n\n return (\n <div class=\"border-neutral h-full border-r p-4\">\n {minimized && minimizeButton}\n <div class=\"flex items-center justify-between\">\n <div class=\"flex items-center\">\n <HighlightKeywordsCheckbox {...props} />\n </div>\n {!minimized && <div>{minimizeButton}</div>}\n </div>\n\n {!minimized && <Keywords {...props} words={words} />}\n </div>\n );\n};\n\nconst MinimizeButton: FunctionalComponent<\n Pick<\n QuickviewSidebarProps,\n 'i18n' | 'minimized' | 'onMinimize' | 'highlightKeywords'\n > & {wordsLength: number}\n> = ({i18n, minimized, onMinimize, highlightKeywords, wordsLength}) => (\n <IconButton\n partPrefix=\"sidebar-minimize\"\n icon={MinimizeIcon}\n style=\"text-transparent\"\n title={i18n.t('quickview-toggle-navigation')}\n ariaLabel={i18n.t('quickview-toggle-navigation')}\n onClick={() => onMinimize(!minimized)}\n badge={\n highlightKeywords && minimized ? <slot>{wordsLength}</slot> : undefined\n }\n class={`w-fit ${minimized ? '' : 'ml-auto'}`}\n ariaExpanded={(!minimized).toString()}\n ariaControls={identifierKeywordsSection}\n />\n);\n\nconst HighlightKeywordsCheckbox: FunctionalComponent<\n Pick<\n QuickviewSidebarProps,\n 'i18n' | 'highlightKeywords' | 'onHighlightKeywords' | 'minimized'\n >\n> = ({i18n, highlightKeywords, onHighlightKeywords, minimized}) => (\n <Fragment>\n <StencilCheckbox\n text={i18n.t('keywords-highlight')}\n class=\"mr-2\"\n id=\"atomic-quickview-sidebar-highlight-keywords\"\n checked={!highlightKeywords.highlightNone}\n onToggle={(checked) =>\n onHighlightKeywords({\n ...highlightKeywords,\n highlightNone: !checked,\n })\n }\n ></StencilCheckbox>\n {!minimized && (\n <label\n class=\"cursor-pointer font-bold whitespace-nowrap\"\n htmlFor=\"atomic-quickview-sidebar-highlight-keywords\"\n >\n {i18n.t('keywords-highlight')}\n </label>\n )}\n </Fragment>\n);\n\nconst Keywords: FunctionalComponent<\n Pick<\n QuickviewSidebarProps,\n 'i18n' | 'onHighlightKeywords' | 'highlightKeywords'\n > & {\n words: Record<string, QuickviewWordHighlight>;\n }\n> = ({words, i18n, highlightKeywords, onHighlightKeywords}) => {\n return (\n <div id={identifierKeywordsSection}>\n {Object.values(words).map((keyword) => {\n const wordIsEnabled =\n !highlightKeywords.highlightNone &&\n (highlightKeywords.keywords[keyword.text] === undefined ||\n highlightKeywords.keywords[keyword.text].enabled === true);\n\n return (\n <div\n key={keyword.text}\n class=\"my-4 flex w-100 items-center justify-between gap-x-2\"\n >\n <div\n class={`bg-background border-neutral flex grow items-center overflow-x-auto rounded-lg border ${\n !wordIsEnabled ? 'pointer-events-none opacity-50' : ''\n }`}\n >\n <div\n class=\"flex grow items-center border-r p-4\"\n aria-hidden=\"true\"\n >\n <div\n class=\"mr-2 h-5 w-5 flex-none\"\n style={{backgroundColor: keyword.color}}\n ></div>\n <div class=\"mr-2 grow whitespace-nowrap\">{keyword.text}</div>\n <div class=\"flex-none\">\n (\n {new Intl.NumberFormat(i18n.language, {\n notation: 'compact',\n }).format(keyword.occurrences)}\n )\n </div>\n </div>\n <FieldsetGroup\n label={i18n.t('quickview-navigate-keywords', {\n occurrences: keyword.occurrences,\n keyword: keyword.text,\n })}\n >\n <div class=\"flex px-2\">\n <IconButton\n partPrefix=\"sidebar-next\"\n icon={ArrowDown}\n disabled={!wordIsEnabled}\n style=\"text-transparent\"\n class=\"border-0\"\n ariaLabel={i18n.t('next')}\n title={i18n.t('next')}\n onClick={() => keyword.navigateForward()}\n />\n <IconButton\n partPrefix=\"sidebar-previous\"\n icon={ArrowUp}\n disabled={!wordIsEnabled}\n style=\"text-transparent\"\n class=\"border-0\"\n ariaLabel={i18n.t('previous')}\n title={i18n.t('previous')}\n onClick={() => keyword.navigateBackward()}\n />\n </div>\n </FieldsetGroup>\n </div>\n <IconButton\n partPrefix=\"sidebar-remove-word\"\n class={`${\n highlightKeywords.highlightNone\n ? 'pointer-events-none opacity-50'\n : ''\n }`}\n tabIndex={highlightKeywords.highlightNone ? '-1' : '0'}\n ariaPressed={(!wordIsEnabled).toString()}\n style=\"text-transparent\"\n icon={wordIsEnabled ? Remove : Add}\n ariaLabel={i18n.t('quickview-remove-word')}\n onClick={() => {\n onHighlightKeywords({\n ...highlightKeywords,\n keywords: {\n ...highlightKeywords.keywords,\n [keyword.text]: {\n enabled: !wordIsEnabled,\n indexIdentifier: keyword.indexIdentifier,\n },\n },\n });\n }}\n />\n </div>\n );\n })}\n </div>\n );\n};\n","import {SearchEngine} from '@coveo/headless';\nimport {FunctionalComponent, h} from '@stencil/core';\n\nconst documentIdentifierInIframe = 'CoveoDocIdentifier';\n\nconst writeDocument = (documentWriter: Document, content: string) => {\n documentWriter.open();\n documentWriter.write(content);\n documentWriter.close();\n if (documentWriter.scrollingElement) {\n documentWriter.scrollingElement.scrollTop = 0;\n }\n};\n\nconst currentResultAlreadyWrittenToDocument = (\n documentWriter: Document,\n uniqueIdentifier: string\n) => {\n const currentDocIdentifier = documentWriter.getElementById(\n documentIdentifierInIframe\n );\n\n return (\n currentDocIdentifier &&\n currentDocIdentifier.textContent === uniqueIdentifier\n );\n};\n\nconst ensureSameResultIsNotOverwritten = (\n documentWriter: Document,\n uniqueIdentifier: string\n) => {\n const docIdentifier = documentWriter.createElement('div');\n docIdentifier.style.display = 'none';\n docIdentifier.setAttribute('aria-hidden', 'true');\n docIdentifier.id = documentIdentifierInIframe;\n docIdentifier.textContent = uniqueIdentifier;\n documentWriter.body.appendChild(docIdentifier);\n};\n\nconst warnAboutLimitedUsageQuickview = (logger?: SearchEngine['logger']) => {\n logger?.warn(\n 'Quickview initialized in restricted mode due to incompatible sandboxing environment. Keywords hit navigation will be disabled.'\n );\n};\n\nexport const QuickviewIframe: FunctionalComponent<{\n title: string;\n content?: string;\n onSetIframeRef: (ref: HTMLIFrameElement) => void;\n uniqueIdentifier?: string;\n sandbox?: string;\n src?: string;\n logger?: SearchEngine['logger'];\n}> = ({title, onSetIframeRef, uniqueIdentifier, content, sandbox, src, logger}) => {\n // When a document is written with document.open/document.write/document.close\n // it is not synchronous and the content of the iframe is only available to be queried at the end of the current call stack.\n // This add a \"wait\" (setTimeout 0) before calling the `onSetIframeRef` from the parent modal quickview\n const waitForIframeContentToBeWritten = () => {\n return new Promise((resolve) => setTimeout(resolve));\n };\n\n return (\n <iframe\n title={title}\n src=\"about:blank\"\n class=\"h-full w-full\"\n sandbox={sandbox}\n ref={async (el) => {\n const iframeRef = el as HTMLIFrameElement;\n\n if (!uniqueIdentifier || !content) {\n return;\n }\n\n const documentWriter = iframeRef.contentDocument;\n if (!documentWriter) {\n if (src) {\n warnAboutLimitedUsageQuickview(logger);\n iframeRef.src = src;\n }\n\n return;\n }\n if (\n currentResultAlreadyWrittenToDocument(\n documentWriter,\n uniqueIdentifier\n )\n ) {\n return;\n }\n\n writeDocument(documentWriter, content);\n ensureSameResultIsNotOverwritten(documentWriter, uniqueIdentifier);\n\n await waitForIframeContentToBeWritten();\n onSetIframeRef(iframeRef);\n }}\n ></iframe>\n );\n};\n","import type {HighlightKeywords} from '../atomic-quickview-modal/atomic-quickview-modal';\nimport type {QuickviewWordHighlight} from '../quickview-word-highlight/quickview-word-highlight';\n\nconst buildPreviewBar = (documentWriter: Document) => {\n const previewBarId = 'CoveoPreviewBar';\n const bar =\n documentWriter.getElementById(previewBarId) ||\n documentWriter.createElement('div');\n\n bar.id = previewBarId;\n bar.innerHTML = '';\n bar.style.position = 'fixed';\n bar.style.top = '0';\n bar.style.right = '0';\n bar.style.width = '15px';\n bar.style.height = '100%';\n bar.setAttribute('aria-hidden', 'true');\n return bar;\n};\n\nconst buildPreviewUnit = (\n documentWriter: Document,\n word: QuickviewWordHighlight,\n wordElement: HTMLElement,\n docHeight: number,\n highlightKeywords: HighlightKeywords\n) => {\n const previewUnit = documentWriter.createElement('div');\n if (highlightKeywords.keywords[word.text]?.enabled === false) {\n previewUnit.style.display = 'none';\n return previewUnit;\n }\n\n const elementPosition = wordElement.getBoundingClientRect().top;\n\n previewUnit.style.position = 'absolute';\n previewUnit.style.top = `${(elementPosition / docHeight) * 100}%`;\n previewUnit.style.width = '100%';\n previewUnit.style.height = '1px';\n previewUnit.style.border = `1px solid ${word.previewBorderColor}`;\n previewUnit.style.backgroundColor = word.color;\n return previewUnit;\n};\n\nexport const buildQuickviewPreviewBar = (\n words: Record<string, QuickviewWordHighlight>,\n highlightKeywords: HighlightKeywords,\n iframe?: HTMLIFrameElement\n) => {\n if (!iframe) {\n return;\n }\n const documentWriter = iframe.contentDocument;\n if (!documentWriter) {\n return;\n }\n const bar = buildPreviewBar(documentWriter);\n if (highlightKeywords.highlightNone) {\n bar.remove();\n return;\n }\n const docHeight = documentWriter.body.scrollHeight;\n\n Object.values(words).forEach((word) => {\n word.elements.forEach((wordElement) => {\n const previewUnit = buildPreviewUnit(\n documentWriter,\n word,\n wordElement,\n docHeight,\n highlightKeywords\n );\n\n bar.appendChild(previewUnit);\n });\n });\n documentWriter.body.appendChild(bar);\n};\n","export const rgbToHsv = (r: number, g: number, b: number) => {\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n\n let h: number;\n const v = max;\n\n const d = max - min;\n const s = max === 0 ? 0 : d / max;\n\n if (max === min) {\n h = 0;\n } else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n default:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return {h, s, v};\n};\n\nexport const hsvToRgb = (h: number, s: number, v: number) => {\n let r: number, g: number, b: number;\n\n const i = Math.floor(h * 6);\n const f = h * 6 - i;\n const p = v * (1 - s);\n const q = v * (1 - f * s);\n const t = v * (1 - (1 - f) * s);\n\n switch (i % 6) {\n case 0:\n r = v;\n g = t;\n b = p;\n break;\n case 1:\n r = q;\n g = v;\n b = p;\n break;\n case 2:\n r = p;\n g = v;\n b = t;\n break;\n case 3:\n r = p;\n g = q;\n b = v;\n break;\n case 4:\n r = t;\n g = p;\n b = v;\n break;\n default:\n r = v;\n g = p;\n b = q;\n break;\n }\n\n return {\n r: Math.round(r),\n g: Math.round(g),\n b: Math.round(b),\n };\n};\n","import {TermsToHighlight} from '@coveo/headless';\nimport {hsvToRgb, rgbToHsv} from '../../../../utils/color-utils';\n\nexport const HIGHLIGHT_PREFIX = 'CoveoHighlight';\nexport class QuickviewWordHighlight {\n public text: string;\n public indexIdentifier: string;\n public occurrences = 0;\n public color: string;\n public focusedColor: string;\n public previewBorderColor: string;\n public elements: HTMLElement[] = [];\n\n private currentNavigationPosition = -1;\n\n constructor(\n private stemmingInfoFromIndex: TermsToHighlight,\n keywordElementInIframe: HTMLElement\n ) {\n const parsed = this.parseKeywordIdentifier(keywordElementInIframe);\n if (!parsed) {\n throw 'Invalid keyword identifier for quickview';\n }\n\n this.text = this.getText(keywordElementInIframe);\n this.indexIdentifier = `${parsed.keywordIdentifier}`;\n this.color = keywordElementInIframe.style.backgroundColor;\n this.focusedColor = this.computeInvertedColor();\n this.previewBorderColor = this.computeSaturatedColor();\n\n this.addElement(keywordElementInIframe);\n }\n\n public addElement(keywordElementInIframe: HTMLElement) {\n this.occurrences++;\n this.elements.push(keywordElementInIframe);\n }\n\n public navigateForward() {\n this.currentNavigationPosition++;\n if (this.currentNavigationPosition >= this.elements.length) {\n this.currentNavigationPosition = 0;\n }\n this.highlightNavigation();\n this.putElementIntoView();\n return this.elements[this.currentNavigationPosition];\n }\n\n public navigateBackward() {\n this.currentNavigationPosition--;\n if (this.currentNavigationPosition < 0) {\n this.currentNavigationPosition = this.elements.length - 1;\n }\n this.highlightNavigation();\n this.putElementIntoView();\n return this.elements[this.currentNavigationPosition];\n }\n\n private isTaggedWord(element: HTMLElement) {\n return element.nodeName.toLowerCase() === 'coveotaggedword';\n }\n\n private highlightNavigation() {\n const currentElement = this.elements[this.currentNavigationPosition];\n const otherElements = this.elements.filter((el) => el !== currentElement);\n currentElement.style.color = this.color;\n currentElement.style.backgroundColor = this.focusedColor;\n otherElements.forEach((element) => {\n element.style.color = '';\n element.style.backgroundColor = this.color;\n });\n }\n\n private putElementIntoView() {\n const element = this.elements[this.currentNavigationPosition];\n element.scrollIntoView();\n }\n\n private getText(element: HTMLElement) {\n const innerTextOfHTMLElement = this.getHighlightedInnerText(element);\n return this.resolveOriginalTerm(innerTextOfHTMLElement).trim();\n }\n\n private resolveOriginalTerm(highlight: string): string {\n // First try to find either an exact match between the highlight and the original non-stemmed keyword.\n // Otherwise try to find a match between the highlight and the stemming keyword expansions\n // If nothing is found (which should not normally happen...), simply return the highlight keyword as is.\n\n const found = Object.keys(this.stemmingInfoFromIndex).find(\n (originalTerm) => {\n const originalTermMatch =\n originalTerm.toLowerCase() === highlight.toLowerCase();\n if (originalTermMatch) {\n return true;\n }\n const stemmingExpansions = this.stemmingInfoFromIndex[originalTerm];\n if (!stemmingExpansions) {\n return false;\n }\n\n const stemmingExpansionMatch = stemmingExpansions.find(\n (stemmingExpansion) =>\n stemmingExpansion.toLowerCase() === highlight.toLowerCase()\n );\n return stemmingExpansionMatch;\n }\n );\n return found || highlight;\n }\n\n private getHighlightedInnerText(element: HTMLElement): string {\n if (!this.isTaggedWord(element)) {\n return this.getTextOfHTMLElement(element);\n }\n\n const children = Array.from(element.children) as HTMLElement[];\n if (children.length >= 1) {\n return this.getTextOfHTMLElement(children[0]);\n }\n\n return '';\n }\n\n private parseKeywordIdentifier(element: HTMLElement) {\n const parts = element.id\n .substring(HIGHLIGHT_PREFIX.length + 1)\n .match(/^([0-9]+)\\.([0-9]+)\\.([0-9]+)$/);\n\n if (!parts || parts.length <= 3) {\n return null;\n }\n\n return {\n keywordIdentifier: parts[1],\n keywordTermPart: parseInt(parts[3], 10),\n };\n }\n\n private getTextOfHTMLElement(el: HTMLElement) {\n return el.innerText || el.textContent || '';\n }\n\n private computeInvertedColor() {\n const {r, g, b} = this.extractRgb();\n return `rgb(${255 - r}, ${255 - g}, ${255 - b})`;\n }\n\n private computeSaturatedColor() {\n const {r, g, b} = this.extractRgb();\n const {h, s, v} = rgbToHsv(r, g, b);\n let newSaturation = s * 2;\n if (newSaturation > 1) {\n newSaturation = 1;\n }\n const {\n r: rSaturated,\n g: gSaturated,\n b: bSaturated,\n } = hsvToRgb(h, newSaturation, v);\n return `rgb(${rSaturated}, ${gSaturated}, ${bSaturated})`;\n }\n\n private extractRgb() {\n const rgbExtracted = this.color.match(/\\d+/g);\n if (!rgbExtracted) {\n return {r: 255, g: 255, b: 255};\n }\n\n return {\n r: parseInt(rgbExtracted[0], 10),\n g: parseInt(rgbExtracted[1], 10),\n b: parseInt(rgbExtracted[2], 10),\n };\n }\n}\n\nexport const getWordsHighlights = (\n stemmingInfoFromIndex: TermsToHighlight,\n iframe?: HTMLIFrameElement\n) => {\n const wordsHighlights: Record<string, QuickviewWordHighlight> = {};\n if (!iframe) {\n return wordsHighlights;\n }\n\n iframe.contentDocument?.body\n .querySelectorAll(`[id^=\"${HIGHLIGHT_PREFIX}\"]`)\n .forEach((el) => {\n const wordHTMLElementToHighlight = el as HTMLElement;\n\n const wordHighlight = new QuickviewWordHighlight(\n stemmingInfoFromIndex,\n wordHTMLElementToHighlight\n );\n\n if (!wordHighlight.text) {\n return;\n }\n\n const alreadyScannedKeyword =\n wordsHighlights[wordHighlight.indexIdentifier];\n\n if (alreadyScannedKeyword) {\n alreadyScannedKeyword.addElement(wordHTMLElementToHighlight);\n } else {\n wordsHighlights[wordHighlight.indexIdentifier] = wordHighlight;\n }\n });\n\n return wordsHighlights;\n};\n","@import '../../../../global/global.pcss';\n@import '../../../../utils/tailwind-utilities/link-style.tw.css';\n\n.atomic-quickview-modal {\n &::part(backdrop) {\n grid-template-columns: 1fr max(80vw, 30rem) 1fr;\n }\n &::part(body),\n &::part(header),\n &::part(footer) {\n @apply max-w-full;\n }\n\n &::part(footer) {\n @apply flex justify-center;\n }\n\n &::part(body-wrapper) {\n @apply h-full overflow-hidden p-0;\n }\n\n &::part(body) {\n @apply h-full;\n }\n\n &::part(backdrop) {\n grid-template-rows: 1fr 100% 3fr;\n }\n\n &::part(header-wrapper) {\n @apply bg-neutral-light;\n }\n\n a {\n @apply link-style;\n }\n}\n","import {\n buildInteractiveResult,\n Result,\n InteractiveResult,\n TermsToHighlight,\n} from '@coveo/headless';\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Prop,\n State,\n Watch,\n Method,\n VNode,\n Fragment,\n} from '@stencil/core';\nimport CloseIcon from '../../../../images/close.svg';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {ATOMIC_MODAL_EXPORT_PARTS} from '../../../common/atomic-modal/export-parts';\nimport {IconButton} from '../../../common/iconButton';\nimport {LinkWithItemAnalytics} from '../../../common/item-link/stencil-item-link';\nimport {Button} from '../../../common/stencil-button';\nimport {Bindings} from '../../atomic-search-interface/atomic-search-interface';\nimport {QuickviewSidebar} from '../atomic-quickview-sidebar/atomic-quickview-sidebar';\nimport {QuickviewIframe} from '../quickview-iframe/quickview-iframe';\nimport {buildQuickviewPreviewBar} from '../quickview-preview-bar/quickview-preview-bar';\nimport {\n getWordsHighlights,\n HIGHLIGHT_PREFIX,\n QuickviewWordHighlight,\n} from '../quickview-word-highlight/quickview-word-highlight';\n\nexport interface HighlightKeywords {\n highlightNone: boolean;\n keywords: {\n [text: string]: {\n indexIdentifier: string;\n enabled: boolean;\n };\n };\n}\n\n/**\n * The modal opened when clicking on a quickview button.\n * Do not use this component directly; use `atomic-quickview` instead.\n *\n * @part backdrop - The transparent backdrop hiding the content behind the modal.\n * @part container - The modal's outermost container with the outline and background.\n * @part header-wrapper - The wrapper around the header.\n * @part header - The header at the top of the modal.\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 footer-wrapper - The wrapper with a shadow or background color around the footer.\n * @part footer - The footer at the bottom of the modal.\n * @part quickview-modal-header-icon - The close icon of the modal.\n * @part quickview-modal-header-title - The title of the modal.\n */\n@Component({\n tag: 'atomic-quickview-modal',\n styleUrl: 'atomic-quickview-modal.pcss',\n shadow: true,\n})\nexport class AtomicQuickviewModal implements InitializableComponent {\n @InitializeBindings() public bindings!: Bindings;\n @State() public error!: Error;\n\n @State() private highlightKeywords: HighlightKeywords = {\n highlightNone: false,\n keywords: {},\n };\n @Watch('highlightKeywords')\n watchHighlightKeywords() {\n this.handleHighlightsScripts();\n }\n\n @Event({eventName: 'atomic/quickview/next'}) nextQuickview?: EventEmitter;\n @Event({eventName: 'atomic/quickview/previous'})\n previousQuickview?: EventEmitter;\n\n @State() private minimizeSidebar = false;\n @State() private words: Record<string, QuickviewWordHighlight> = {};\n private iframeRef?: HTMLIFrameElement;\n\n @Prop({mutable: true, reflect: false}) content?: string;\n @Prop({mutable: true, reflect: false}) result?: Result;\n @Prop() current?: number;\n @Prop() total?: number;\n @Prop() sandbox?: string;\n @Prop() modalCloseCallback?: () => void;\n\n private interactiveResult?: InteractiveResult;\n\n public componentWillLoad(): void {\n this.minimizeSidebar = this.bindings.store.isMobile();\n }\n\n @Method()\n public async reset() {\n this.highlightKeywords = {\n highlightNone: false,\n keywords: {},\n };\n this.minimizeSidebar = false;\n this.iframeRef = undefined;\n this.content = undefined;\n this.result = undefined;\n this.interactiveResult = undefined;\n }\n\n private renderHeader() {\n let headerContent: VNode | null = null;\n if (this.result) {\n this.interactiveResult = buildInteractiveResult(this.bindings.engine, {\n options: {result: this.result},\n });\n headerContent = (\n <Fragment>\n <LinkWithItemAnalytics\n href={this.result?.clickUri}\n onSelect={() => this.interactiveResult?.select()}\n onBeginDelayedSelect={() =>\n this.interactiveResult?.beginDelayedSelect()\n }\n onCancelPendingSelect={() =>\n this.interactiveResult?.cancelPendingSelect()\n }\n className=\"truncate\"\n part=\"quickview-modal-header-title\"\n >\n {this.result.title}\n </LinkWithItemAnalytics>\n <IconButton\n partPrefix=\"quickview-modal-header\"\n icon={CloseIcon}\n onClick={() => this.onClose()}\n ariaLabel={this.bindings.i18n.t('close')}\n style=\"text-transparent\"\n title={this.bindings.i18n.t('close')}\n />\n </Fragment>\n );\n }\n return (\n <div slot=\"header\" class=\"flex w-full items-center justify-between\">\n {headerContent}\n </div>\n );\n }\n\n private renderBody() {\n return (\n <div slot=\"body\" class=\"grid h-full grid-cols-[min-content_auto]\">\n <div\n class=\"h-full overflow-y-auto\"\n style={{backgroundColor: 'var(--atomic-neutral-light)'}}\n >\n <QuickviewSidebar\n words={this.words}\n i18n={this.bindings.i18n}\n highlightKeywords={this.highlightKeywords}\n onHighlightKeywords={(highlight) =>\n (this.highlightKeywords = highlight)\n }\n minimized={this.minimizeSidebar}\n onMinimize={(minimize) => (this.minimizeSidebar = minimize)}\n />\n </div>\n <div class=\"relative overflow-auto\">\n <QuickviewIframe\n title={this.result?.title ?? this.bindings.i18n.t('preview-modal-title')} \n logger={this.logger}\n src={this.quickviewSrc}\n sandbox={this.sandbox}\n uniqueIdentifier={this.quickviewUniqueIdentifier}\n content={this.content}\n onSetIframeRef={async (ref) => {\n this.iframeRef = ref;\n this.words = getWordsHighlights(\n this.termsToHighlight,\n this.iframeRef\n );\n this.handleHighlightsScripts();\n }}\n />\n {buildQuickviewPreviewBar(\n this.words,\n this.highlightKeywords,\n this.iframeRef\n )}\n </div>\n </div>\n );\n }\n\n private renderFooter() {\n return (\n <div slot=\"footer\" class=\"flex items-center gap-2\">\n <Button\n class=\"p-2\"\n style=\"square-neutral\"\n onClick={() => this.previousQuickview?.emit()}\n disabled={this.current === 1}\n text={this.bindings.i18n.t('quickview-previous')}\n ></Button>\n <p class=\"text-center\">\n {this.bindings.i18n.t('showing-results-of', {\n first: this.current,\n total: this.total,\n })}\n </p>\n <Button\n class=\"p-2\"\n style=\"square-neutral\"\n onClick={() => this.nextQuickview?.emit()}\n disabled={this.current === this.total}\n text={this.bindings.i18n.t('quickview-next')}\n ></Button>\n </div>\n );\n }\n\n private onClose() {\n this.content = undefined;\n this.result = undefined;\n this.modalCloseCallback && this.modalCloseCallback();\n }\n\n private get isOpen() {\n return !!this.content && !!this.result;\n }\n\n private get highlightScriptId() {\n return 'CoveoDisableHighlightStyle';\n }\n\n private get logger() {\n return this.bindings.engine.logger;\n }\n\n private get quickviewSrc() {\n return this.bindings.engine.state.resultPreview?.contentURL;\n }\n\n private enableHighlights() {\n this.removeDisableHighlightScript();\n }\n\n private enableHighlightsSpecificKeyword(identifier: string) {\n this.removeDisableHighlightScript(identifier);\n }\n\n private disableHighlights() {\n this.createDisableHighlightScript();\n }\n\n private disableHighlightsSpecificKeyword(identifier: string) {\n this.createDisableHighlightScript(identifier);\n }\n\n private removeDisableHighlightScript(identifier?: string) {\n const doc = this.iframeRef?.contentWindow?.document;\n if (!doc) {\n return;\n }\n doc\n .getElementById(\n `${this.highlightScriptId}${identifier ? `:${identifier}` : ''}`\n )\n ?.remove();\n }\n\n private createDisableHighlightScript(identifier?: string) {\n const doc = this.iframeRef?.contentWindow?.document;\n if (!doc) {\n return;\n }\n\n const head = doc.head;\n const scriptId = `${this.highlightScriptId}${\n identifier ? `:${identifier}` : ''\n }`;\n const style =\n doc.getElementById(scriptId) || this.bindings.createStyleElement();\n style.setAttribute('id', scriptId);\n head.appendChild(style);\n style.appendChild(\n doc.createTextNode(`[id^=\"${HIGHLIGHT_PREFIX}${\n identifier ? `:${identifier}` : ''\n }\"] {\n background-color: inherit !important;\n color: inherit !important;\n }`)\n );\n }\n\n private get termsToHighlight() {\n const flatPhrasesToHighlight: TermsToHighlight = {};\n\n const phrasesToHighlight =\n this.bindings.engine.state.search.response.phrasesToHighlight;\n\n Object.entries(phrasesToHighlight).forEach(([phrase, keywords]) => {\n flatPhrasesToHighlight[phrase] = Object.entries(keywords).flatMap(\n ([keywordEntry, keywordStemming]) => {\n return [keywordEntry, ...keywordStemming];\n }\n );\n });\n\n return {\n ...this.bindings.engine.state.search.response.termsToHighlight,\n ...flatPhrasesToHighlight,\n };\n }\n\n private get requestId() {\n return this.bindings.engine.state.search.requestId;\n }\n\n private get quickviewUniqueIdentifier() {\n return this.result?.uniqueId + this.requestId;\n }\n\n private handleHighlightsScripts() {\n if (!this.highlightKeywords.highlightNone) {\n this.enableHighlights();\n } else {\n this.disableHighlights();\n }\n Object.values(this.highlightKeywords.keywords).forEach((word) => {\n if (word.enabled) {\n this.enableHighlightsSpecificKeyword(word.indexIdentifier);\n } else {\n this.disableHighlightsSpecificKeyword(word.indexIdentifier);\n }\n });\n }\n\n public render() {\n return (\n <atomic-modal\n fullscreen={this.bindings.store.isMobile()}\n class={'atomic-quickview-modal'}\n isOpen={this.isOpen}\n close={() => this.onClose()}\n exportparts={ATOMIC_MODAL_EXPORT_PARTS}\n >\n {this.renderHeader()}\n {this.renderBody()}\n {this.ren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OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;KACpD;IAED,IAAY,yBAAyB;QACnC,OAAO,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;KAC/C;IAEO,uBAAuB;QAC7B,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE;YACzC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;aAAM;YACL,IAAI,CAAC,iBAAiB,EAAE,CAAC;SAC1B;QACD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI;YAC1D,IAAI,IAAI,CAAC,OAAO,EAAE;gBAChB,IAAI,CAAC,+BAA+B,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aAC5D;iBAAM;gBACL,IAAI,CAAC,gCAAgC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aAC7D;SACF,CAAC,CAAC;KACJ;IAEM,MAAM;QACX,QACE,qEACE,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,EAC1C,KAAK,EAAE,wBAAwB,EAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,MAAM,IAAI,CAAC,OAAO,EAAE,EAC3B,WAAW,EAAE,yBAAyB,IAErC,IAAI,CAAC,YAAY,EAAE,EACnB,IAAI,CAAC,UAAU,EAAE,EACjB,IAAI,CAAC,YAAY,EAAE,CACP,EACf;KACH;;;;;;;;;;;;;;;;;;;;AAhS4B;IAA5B,kBAAkB,EAAE;sDAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ArrowDown"],"sources":["src/components/search/result-template-components/atomic-quickview-sidebar/atomic-quickview-sidebar.tsx","src/components/search/result-template-components/quickview-iframe/quickview-iframe.tsx","src/components/search/result-template-components/quickview-preview-bar/quickview-preview-bar.ts","src/utils/color-utils.ts","src/components/search/result-template-components/quickview-word-highlight/quickview-word-highlight.tsx","src/components/search/result-template-components/atomic-quickview-modal/atomic-quickview-modal.pcss?tag=atomic-quickview-modal&encapsulation=shadow","src/components/search/result-template-components/atomic-quickview-modal/atomic-quickview-modal.tsx"],"sourcesContent":["import {Fragment, FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport Add from '../../../../images/add.svg';\nimport ArrowDown from '../../../../images/arrow-bottom-rounded.svg';\nimport ArrowUp from '../../../../images/arrow-top-rounded.svg';\nimport MinimizeIcon from '../../../../images/menu.svg';\nimport Remove from '../../../../images/remove.svg';\nimport {IconButton} from '../../../common/iconButton';\nimport {StencilCheckbox} from '../../../common/stencil-checkbox';\nimport {FieldsetGroup} from '../../../common/stencil-fieldset-group';\nimport type {HighlightKeywords} from '../atomic-quickview-modal/atomic-quickview-modal';\nimport {QuickviewWordHighlight} from '../quickview-word-highlight/quickview-word-highlight';\n\nconst identifierKeywordsSection = 'coveo-quickview-sidebar-keywords';\n\nexport interface QuickviewSidebarProps {\n words: Record<string, QuickviewWordHighlight>;\n i18n: i18n;\n highlightKeywords: HighlightKeywords;\n onHighlightKeywords: (highlight: HighlightKeywords) => void;\n minimized: boolean;\n onMinimize: (minimize: boolean) => void;\n}\n\nexport const QuickviewSidebar: FunctionalComponent<QuickviewSidebarProps> = (\n props\n) => {\n const {words, minimized} = props;\n const numberOfWords = Object.values(words).length;\n\n if (numberOfWords === 0) {\n return;\n }\n\n const minimizeButton = (\n <MinimizeButton {...props} wordsLength={numberOfWords} />\n );\n\n return (\n <div class=\"border-neutral h-full border-r p-4\">\n {minimized && minimizeButton}\n <div class=\"flex items-center justify-between\">\n <div class=\"flex items-center\">\n <HighlightKeywordsCheckbox {...props} />\n </div>\n {!minimized && <div>{minimizeButton}</div>}\n </div>\n\n {!minimized && <Keywords {...props} words={words} />}\n </div>\n );\n};\n\nconst MinimizeButton: FunctionalComponent<\n Pick<\n QuickviewSidebarProps,\n 'i18n' | 'minimized' | 'onMinimize' | 'highlightKeywords'\n > & {wordsLength: number}\n> = ({i18n, minimized, onMinimize, highlightKeywords, wordsLength}) => (\n <IconButton\n partPrefix=\"sidebar-minimize\"\n icon={MinimizeIcon}\n style=\"text-transparent\"\n title={i18n.t('quickview-toggle-navigation')}\n ariaLabel={i18n.t('quickview-toggle-navigation')}\n onClick={() => onMinimize(!minimized)}\n badge={\n highlightKeywords && minimized ? <slot>{wordsLength}</slot> : undefined\n }\n class={`w-fit ${minimized ? '' : 'ml-auto'}`}\n ariaExpanded={(!minimized).toString()}\n ariaControls={identifierKeywordsSection}\n />\n);\n\nconst HighlightKeywordsCheckbox: FunctionalComponent<\n Pick<\n QuickviewSidebarProps,\n 'i18n' | 'highlightKeywords' | 'onHighlightKeywords' | 'minimized'\n >\n> = ({i18n, highlightKeywords, onHighlightKeywords, minimized}) => (\n <Fragment>\n <StencilCheckbox\n text={i18n.t('keywords-highlight')}\n class=\"mr-2\"\n id=\"atomic-quickview-sidebar-highlight-keywords\"\n checked={!highlightKeywords.highlightNone}\n onToggle={(checked) =>\n onHighlightKeywords({\n ...highlightKeywords,\n highlightNone: !checked,\n })\n }\n ></StencilCheckbox>\n {!minimized && (\n <label\n class=\"cursor-pointer font-bold whitespace-nowrap\"\n htmlFor=\"atomic-quickview-sidebar-highlight-keywords\"\n >\n {i18n.t('keywords-highlight')}\n </label>\n )}\n </Fragment>\n);\n\nconst Keywords: FunctionalComponent<\n Pick<\n QuickviewSidebarProps,\n 'i18n' | 'onHighlightKeywords' | 'highlightKeywords'\n > & {\n words: Record<string, QuickviewWordHighlight>;\n }\n> = ({words, i18n, highlightKeywords, onHighlightKeywords}) => {\n return (\n <div id={identifierKeywordsSection}>\n {Object.values(words).map((keyword) => {\n const wordIsEnabled =\n !highlightKeywords.highlightNone &&\n (highlightKeywords.keywords[keyword.text] === undefined ||\n highlightKeywords.keywords[keyword.text].enabled === true);\n\n return (\n <div\n key={keyword.text}\n class=\"my-4 flex w-100 items-center justify-between gap-x-2\"\n >\n <div\n class={`bg-background border-neutral flex grow items-center overflow-x-auto rounded-lg border ${\n !wordIsEnabled ? 'pointer-events-none opacity-50' : ''\n }`}\n >\n <div\n class=\"flex grow items-center border-r p-4\"\n aria-hidden=\"true\"\n >\n <div\n class=\"mr-2 h-5 w-5 flex-none\"\n style={{backgroundColor: keyword.color}}\n ></div>\n <div class=\"mr-2 grow whitespace-nowrap\">{keyword.text}</div>\n <div class=\"flex-none\">\n (\n {new Intl.NumberFormat(i18n.language, {\n notation: 'compact',\n }).format(keyword.occurrences)}\n )\n </div>\n </div>\n <FieldsetGroup\n label={i18n.t('quickview-navigate-keywords', {\n occurrences: keyword.occurrences,\n keyword: keyword.text,\n })}\n >\n <div class=\"flex px-2\">\n <IconButton\n partPrefix=\"sidebar-next\"\n icon={ArrowDown}\n disabled={!wordIsEnabled}\n style=\"text-transparent\"\n class=\"border-0\"\n ariaLabel={i18n.t('next')}\n title={i18n.t('next')}\n onClick={() => keyword.navigateForward()}\n />\n <IconButton\n partPrefix=\"sidebar-previous\"\n icon={ArrowUp}\n disabled={!wordIsEnabled}\n style=\"text-transparent\"\n class=\"border-0\"\n ariaLabel={i18n.t('previous')}\n title={i18n.t('previous')}\n onClick={() => keyword.navigateBackward()}\n />\n </div>\n </FieldsetGroup>\n </div>\n <IconButton\n partPrefix=\"sidebar-remove-word\"\n class={`${\n highlightKeywords.highlightNone\n ? 'pointer-events-none opacity-50'\n : ''\n }`}\n tabIndex={highlightKeywords.highlightNone ? '-1' : '0'}\n ariaPressed={(!wordIsEnabled).toString()}\n style=\"text-transparent\"\n icon={wordIsEnabled ? Remove : Add}\n ariaLabel={i18n.t('quickview-remove-word')}\n onClick={() => {\n onHighlightKeywords({\n ...highlightKeywords,\n keywords: {\n ...highlightKeywords.keywords,\n [keyword.text]: {\n enabled: !wordIsEnabled,\n indexIdentifier: keyword.indexIdentifier,\n },\n },\n });\n }}\n />\n </div>\n );\n })}\n </div>\n );\n};\n","import {SearchEngine} from '@coveo/headless';\nimport {FunctionalComponent, h} from '@stencil/core';\n\nconst documentIdentifierInIframe = 'CoveoDocIdentifier';\n\nconst writeDocument = (documentWriter: Document, content: string) => {\n documentWriter.open();\n documentWriter.write(content);\n documentWriter.close();\n if (documentWriter.scrollingElement) {\n documentWriter.scrollingElement.scrollTop = 0;\n }\n};\n\nconst currentResultAlreadyWrittenToDocument = (\n documentWriter: Document,\n uniqueIdentifier: string\n) => {\n const currentDocIdentifier = documentWriter.getElementById(\n documentIdentifierInIframe\n );\n\n return (\n currentDocIdentifier &&\n currentDocIdentifier.textContent === uniqueIdentifier\n );\n};\n\nconst ensureSameResultIsNotOverwritten = (\n documentWriter: Document,\n uniqueIdentifier: string\n) => {\n const docIdentifier = documentWriter.createElement('div');\n docIdentifier.style.display = 'none';\n docIdentifier.setAttribute('aria-hidden', 'true');\n docIdentifier.id = documentIdentifierInIframe;\n docIdentifier.textContent = uniqueIdentifier;\n documentWriter.body.appendChild(docIdentifier);\n};\n\nconst warnAboutLimitedUsageQuickview = (logger?: SearchEngine['logger']) => {\n logger?.warn(\n 'Quickview initialized in restricted mode due to incompatible sandboxing environment. Keywords hit navigation will be disabled.'\n );\n};\n\nexport const QuickviewIframe: FunctionalComponent<{\n content?: string;\n onSetIframeRef: (ref: HTMLIFrameElement) => void;\n uniqueIdentifier?: string;\n sandbox?: string;\n src?: string;\n logger?: SearchEngine['logger'];\n}> = ({onSetIframeRef, uniqueIdentifier, content, sandbox, src, logger}) => {\n // When a document is written with document.open/document.write/document.close\n // it is not synchronous and the content of the iframe is only available to be queried at the end of the current call stack.\n // This add a \"wait\" (setTimeout 0) before calling the `onSetIframeRef` from the parent modal quickview\n const waitForIframeContentToBeWritten = () => {\n return new Promise((resolve) => setTimeout(resolve));\n };\n\n return (\n <iframe\n src=\"about:blank\"\n class=\"h-full w-full\"\n sandbox={sandbox}\n ref={async (el) => {\n const iframeRef = el as HTMLIFrameElement;\n\n if (!uniqueIdentifier || !content) {\n return;\n }\n\n const documentWriter = iframeRef.contentDocument;\n if (!documentWriter) {\n if (src) {\n warnAboutLimitedUsageQuickview(logger);\n iframeRef.src = src;\n }\n\n return;\n }\n if (\n currentResultAlreadyWrittenToDocument(\n documentWriter,\n uniqueIdentifier\n )\n ) {\n return;\n }\n\n writeDocument(documentWriter, content);\n ensureSameResultIsNotOverwritten(documentWriter, uniqueIdentifier);\n\n await waitForIframeContentToBeWritten();\n onSetIframeRef(iframeRef);\n }}\n ></iframe>\n );\n};\n","import type {HighlightKeywords} from '../atomic-quickview-modal/atomic-quickview-modal';\nimport type {QuickviewWordHighlight} from '../quickview-word-highlight/quickview-word-highlight';\n\nconst buildPreviewBar = (documentWriter: Document) => {\n const previewBarId = 'CoveoPreviewBar';\n const bar =\n documentWriter.getElementById(previewBarId) ||\n documentWriter.createElement('div');\n\n bar.id = previewBarId;\n bar.innerHTML = '';\n bar.style.position = 'fixed';\n bar.style.top = '0';\n bar.style.right = '0';\n bar.style.width = '15px';\n bar.style.height = '100%';\n bar.setAttribute('aria-hidden', 'true');\n return bar;\n};\n\nconst buildPreviewUnit = (\n documentWriter: Document,\n word: QuickviewWordHighlight,\n wordElement: HTMLElement,\n docHeight: number,\n highlightKeywords: HighlightKeywords\n) => {\n const previewUnit = documentWriter.createElement('div');\n if (highlightKeywords.keywords[word.text]?.enabled === false) {\n previewUnit.style.display = 'none';\n return previewUnit;\n }\n\n const elementPosition = wordElement.getBoundingClientRect().top;\n\n previewUnit.style.position = 'absolute';\n previewUnit.style.top = `${(elementPosition / docHeight) * 100}%`;\n previewUnit.style.width = '100%';\n previewUnit.style.height = '1px';\n previewUnit.style.border = `1px solid ${word.previewBorderColor}`;\n previewUnit.style.backgroundColor = word.color;\n return previewUnit;\n};\n\nexport const buildQuickviewPreviewBar = (\n words: Record<string, QuickviewWordHighlight>,\n highlightKeywords: HighlightKeywords,\n iframe?: HTMLIFrameElement\n) => {\n if (!iframe) {\n return;\n }\n const documentWriter = iframe.contentDocument;\n if (!documentWriter) {\n return;\n }\n const bar = buildPreviewBar(documentWriter);\n if (highlightKeywords.highlightNone) {\n bar.remove();\n return;\n }\n const docHeight = documentWriter.body.scrollHeight;\n\n Object.values(words).forEach((word) => {\n word.elements.forEach((wordElement) => {\n const previewUnit = buildPreviewUnit(\n documentWriter,\n word,\n wordElement,\n docHeight,\n highlightKeywords\n );\n\n bar.appendChild(previewUnit);\n });\n });\n documentWriter.body.appendChild(bar);\n};\n","export const rgbToHsv = (r: number, g: number, b: number) => {\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n\n let h: number;\n const v = max;\n\n const d = max - min;\n const s = max === 0 ? 0 : d / max;\n\n if (max === min) {\n h = 0;\n } else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n default:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return {h, s, v};\n};\n\nexport const hsvToRgb = (h: number, s: number, v: number) => {\n let r: number, g: number, b: number;\n\n const i = Math.floor(h * 6);\n const f = h * 6 - i;\n const p = v * (1 - s);\n const q = v * (1 - f * s);\n const t = v * (1 - (1 - f) * s);\n\n switch (i % 6) {\n case 0:\n r = v;\n g = t;\n b = p;\n break;\n case 1:\n r = q;\n g = v;\n b = p;\n break;\n case 2:\n r = p;\n g = v;\n b = t;\n break;\n case 3:\n r = p;\n g = q;\n b = v;\n break;\n case 4:\n r = t;\n g = p;\n b = v;\n break;\n default:\n r = v;\n g = p;\n b = q;\n break;\n }\n\n return {\n r: Math.round(r),\n g: Math.round(g),\n b: Math.round(b),\n };\n};\n","import {TermsToHighlight} from '@coveo/headless';\nimport {hsvToRgb, rgbToHsv} from '../../../../utils/color-utils';\n\nexport const HIGHLIGHT_PREFIX = 'CoveoHighlight';\nexport class QuickviewWordHighlight {\n public text: string;\n public indexIdentifier: string;\n public occurrences = 0;\n public color: string;\n public focusedColor: string;\n public previewBorderColor: string;\n public elements: HTMLElement[] = [];\n\n private currentNavigationPosition = -1;\n\n constructor(\n private stemmingInfoFromIndex: TermsToHighlight,\n keywordElementInIframe: HTMLElement\n ) {\n const parsed = this.parseKeywordIdentifier(keywordElementInIframe);\n if (!parsed) {\n throw 'Invalid keyword identifier for quickview';\n }\n\n this.text = this.getText(keywordElementInIframe);\n this.indexIdentifier = `${parsed.keywordIdentifier}`;\n this.color = keywordElementInIframe.style.backgroundColor;\n this.focusedColor = this.computeInvertedColor();\n this.previewBorderColor = this.computeSaturatedColor();\n\n this.addElement(keywordElementInIframe);\n }\n\n public addElement(keywordElementInIframe: HTMLElement) {\n this.occurrences++;\n this.elements.push(keywordElementInIframe);\n }\n\n public navigateForward() {\n this.currentNavigationPosition++;\n if (this.currentNavigationPosition >= this.elements.length) {\n this.currentNavigationPosition = 0;\n }\n this.highlightNavigation();\n this.putElementIntoView();\n return this.elements[this.currentNavigationPosition];\n }\n\n public navigateBackward() {\n this.currentNavigationPosition--;\n if (this.currentNavigationPosition < 0) {\n this.currentNavigationPosition = this.elements.length - 1;\n }\n this.highlightNavigation();\n this.putElementIntoView();\n return this.elements[this.currentNavigationPosition];\n }\n\n private isTaggedWord(element: HTMLElement) {\n return element.nodeName.toLowerCase() === 'coveotaggedword';\n }\n\n private highlightNavigation() {\n const currentElement = this.elements[this.currentNavigationPosition];\n const otherElements = this.elements.filter((el) => el !== currentElement);\n currentElement.style.color = this.color;\n currentElement.style.backgroundColor = this.focusedColor;\n otherElements.forEach((element) => {\n element.style.color = '';\n element.style.backgroundColor = this.color;\n });\n }\n\n private putElementIntoView() {\n const element = this.elements[this.currentNavigationPosition];\n element.scrollIntoView();\n }\n\n private getText(element: HTMLElement) {\n const innerTextOfHTMLElement = this.getHighlightedInnerText(element);\n return this.resolveOriginalTerm(innerTextOfHTMLElement).trim();\n }\n\n private resolveOriginalTerm(highlight: string): string {\n // First try to find either an exact match between the highlight and the original non-stemmed keyword.\n // Otherwise try to find a match between the highlight and the stemming keyword expansions\n // If nothing is found (which should not normally happen...), simply return the highlight keyword as is.\n\n const found = Object.keys(this.stemmingInfoFromIndex).find(\n (originalTerm) => {\n const originalTermMatch =\n originalTerm.toLowerCase() === highlight.toLowerCase();\n if (originalTermMatch) {\n return true;\n }\n const stemmingExpansions = this.stemmingInfoFromIndex[originalTerm];\n if (!stemmingExpansions) {\n return false;\n }\n\n const stemmingExpansionMatch = stemmingExpansions.find(\n (stemmingExpansion) =>\n stemmingExpansion.toLowerCase() === highlight.toLowerCase()\n );\n return stemmingExpansionMatch;\n }\n );\n return found || highlight;\n }\n\n private getHighlightedInnerText(element: HTMLElement): string {\n if (!this.isTaggedWord(element)) {\n return this.getTextOfHTMLElement(element);\n }\n\n const children = Array.from(element.children) as HTMLElement[];\n if (children.length >= 1) {\n return this.getTextOfHTMLElement(children[0]);\n }\n\n return '';\n }\n\n private parseKeywordIdentifier(element: HTMLElement) {\n const parts = element.id\n .substring(HIGHLIGHT_PREFIX.length + 1)\n .match(/^([0-9]+)\\.([0-9]+)\\.([0-9]+)$/);\n\n if (!parts || parts.length <= 3) {\n return null;\n }\n\n return {\n keywordIdentifier: parts[1],\n keywordTermPart: parseInt(parts[3], 10),\n };\n }\n\n private getTextOfHTMLElement(el: HTMLElement) {\n return el.innerText || el.textContent || '';\n }\n\n private computeInvertedColor() {\n const {r, g, b} = this.extractRgb();\n return `rgb(${255 - r}, ${255 - g}, ${255 - b})`;\n }\n\n private computeSaturatedColor() {\n const {r, g, b} = this.extractRgb();\n const {h, s, v} = rgbToHsv(r, g, b);\n let newSaturation = s * 2;\n if (newSaturation > 1) {\n newSaturation = 1;\n }\n const {\n r: rSaturated,\n g: gSaturated,\n b: bSaturated,\n } = hsvToRgb(h, newSaturation, v);\n return `rgb(${rSaturated}, ${gSaturated}, ${bSaturated})`;\n }\n\n private extractRgb() {\n const rgbExtracted = this.color.match(/\\d+/g);\n if (!rgbExtracted) {\n return {r: 255, g: 255, b: 255};\n }\n\n return {\n r: parseInt(rgbExtracted[0], 10),\n g: parseInt(rgbExtracted[1], 10),\n b: parseInt(rgbExtracted[2], 10),\n };\n }\n}\n\nexport const getWordsHighlights = (\n stemmingInfoFromIndex: TermsToHighlight,\n iframe?: HTMLIFrameElement\n) => {\n const wordsHighlights: Record<string, QuickviewWordHighlight> = {};\n if (!iframe) {\n return wordsHighlights;\n }\n\n iframe.contentDocument?.body\n .querySelectorAll(`[id^=\"${HIGHLIGHT_PREFIX}\"]`)\n .forEach((el) => {\n const wordHTMLElementToHighlight = el as HTMLElement;\n\n const wordHighlight = new QuickviewWordHighlight(\n stemmingInfoFromIndex,\n wordHTMLElementToHighlight\n );\n\n if (!wordHighlight.text) {\n return;\n }\n\n const alreadyScannedKeyword =\n wordsHighlights[wordHighlight.indexIdentifier];\n\n if (alreadyScannedKeyword) {\n alreadyScannedKeyword.addElement(wordHTMLElementToHighlight);\n } else {\n wordsHighlights[wordHighlight.indexIdentifier] = wordHighlight;\n }\n });\n\n return wordsHighlights;\n};\n","@import '../../../../global/global.pcss';\n@import '../../../../utils/tailwind-utilities/link-style.tw.css';\n\n.atomic-quickview-modal {\n &::part(backdrop) {\n grid-template-columns: 1fr max(80vw, 30rem) 1fr;\n }\n &::part(body),\n &::part(header),\n &::part(footer) {\n @apply max-w-full;\n }\n\n &::part(footer) {\n @apply flex justify-center;\n }\n\n &::part(body-wrapper) {\n @apply h-full overflow-hidden p-0;\n }\n\n &::part(body) {\n @apply h-full;\n }\n\n &::part(backdrop) {\n grid-template-rows: 1fr 100% 3fr;\n }\n\n &::part(header-wrapper) {\n @apply bg-neutral-light;\n }\n\n a {\n @apply link-style;\n }\n}\n","import {\n buildInteractiveResult,\n Result,\n InteractiveResult,\n TermsToHighlight,\n} from '@coveo/headless';\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Prop,\n State,\n Watch,\n Method,\n VNode,\n Fragment,\n} from '@stencil/core';\nimport CloseIcon from '../../../../images/close.svg';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {ATOMIC_MODAL_EXPORT_PARTS} from '../../../common/atomic-modal/export-parts';\nimport {IconButton} from '../../../common/iconButton';\nimport {LinkWithItemAnalytics} from '../../../common/item-link/stencil-item-link';\nimport {Button} from '../../../common/stencil-button';\nimport {Bindings} from '../../atomic-search-interface/atomic-search-interface';\nimport {QuickviewSidebar} from '../atomic-quickview-sidebar/atomic-quickview-sidebar';\nimport {QuickviewIframe} from '../quickview-iframe/quickview-iframe';\nimport {buildQuickviewPreviewBar} from '../quickview-preview-bar/quickview-preview-bar';\nimport {\n getWordsHighlights,\n HIGHLIGHT_PREFIX,\n QuickviewWordHighlight,\n} from '../quickview-word-highlight/quickview-word-highlight';\n\nexport interface HighlightKeywords {\n highlightNone: boolean;\n keywords: {\n [text: string]: {\n indexIdentifier: string;\n enabled: boolean;\n };\n };\n}\n\n/**\n * The modal opened when clicking on a quickview button.\n * Do not use this component directly; use `atomic-quickview` instead.\n *\n * @part backdrop - The transparent backdrop hiding the content behind the modal.\n * @part container - The modal's outermost container with the outline and background.\n * @part header-wrapper - The wrapper around the header.\n * @part header - The header at the top of the modal.\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 footer-wrapper - The wrapper with a shadow or background color around the footer.\n * @part footer - The footer at the bottom of the modal.\n * @part quickview-modal-header-icon - The close icon of the modal.\n * @part quickview-modal-header-title - The title of the modal.\n */\n@Component({\n tag: 'atomic-quickview-modal',\n styleUrl: 'atomic-quickview-modal.pcss',\n shadow: true,\n})\nexport class AtomicQuickviewModal implements InitializableComponent {\n @InitializeBindings() public bindings!: Bindings;\n @State() public error!: Error;\n\n @State() private highlightKeywords: HighlightKeywords = {\n highlightNone: false,\n keywords: {},\n };\n @Watch('highlightKeywords')\n watchHighlightKeywords() {\n this.handleHighlightsScripts();\n }\n\n @Event({eventName: 'atomic/quickview/next'}) nextQuickview?: EventEmitter;\n @Event({eventName: 'atomic/quickview/previous'})\n previousQuickview?: EventEmitter;\n\n @State() private minimizeSidebar = false;\n @State() private words: Record<string, QuickviewWordHighlight> = {};\n private iframeRef?: HTMLIFrameElement;\n\n @Prop({mutable: true, reflect: false}) content?: string;\n @Prop({mutable: true, reflect: false}) result?: Result;\n @Prop() current?: number;\n @Prop() total?: number;\n @Prop() sandbox?: string;\n @Prop() modalCloseCallback?: () => void;\n\n private interactiveResult?: InteractiveResult;\n\n public componentWillLoad(): void {\n this.minimizeSidebar = this.bindings.store.isMobile();\n }\n\n @Method()\n public async reset() {\n this.highlightKeywords = {\n highlightNone: false,\n keywords: {},\n };\n this.minimizeSidebar = false;\n this.iframeRef = undefined;\n this.content = undefined;\n this.result = undefined;\n this.interactiveResult = undefined;\n }\n\n private renderHeader() {\n let headerContent: VNode | null = null;\n if (this.result) {\n this.interactiveResult = buildInteractiveResult(this.bindings.engine, {\n options: {result: this.result},\n });\n headerContent = (\n <Fragment>\n <LinkWithItemAnalytics\n href={this.result?.clickUri}\n onSelect={() => this.interactiveResult?.select()}\n onBeginDelayedSelect={() =>\n this.interactiveResult?.beginDelayedSelect()\n }\n onCancelPendingSelect={() =>\n this.interactiveResult?.cancelPendingSelect()\n }\n className=\"truncate\"\n part=\"quickview-modal-header-title\"\n >\n {this.result.title}\n </LinkWithItemAnalytics>\n <IconButton\n partPrefix=\"quickview-modal-header\"\n icon={CloseIcon}\n onClick={() => this.onClose()}\n ariaLabel={this.bindings.i18n.t('close')}\n style=\"text-transparent\"\n title={this.bindings.i18n.t('close')}\n />\n </Fragment>\n );\n }\n return (\n <div slot=\"header\" class=\"flex w-full items-center justify-between\">\n {headerContent}\n </div>\n );\n }\n\n private renderBody() {\n return (\n <div slot=\"body\" class=\"grid h-full grid-cols-[min-content_auto]\">\n <div\n class=\"h-full overflow-y-auto\"\n style={{backgroundColor: 'var(--atomic-neutral-light)'}}\n >\n <QuickviewSidebar\n words={this.words}\n i18n={this.bindings.i18n}\n highlightKeywords={this.highlightKeywords}\n onHighlightKeywords={(highlight) =>\n (this.highlightKeywords = highlight)\n }\n minimized={this.minimizeSidebar}\n onMinimize={(minimize) => (this.minimizeSidebar = minimize)}\n />\n </div>\n <div class=\"relative overflow-auto\">\n <QuickviewIframe\n logger={this.logger}\n src={this.quickviewSrc}\n sandbox={this.sandbox}\n uniqueIdentifier={this.quickviewUniqueIdentifier}\n content={this.content}\n onSetIframeRef={async (ref) => {\n this.iframeRef = ref;\n this.words = getWordsHighlights(\n this.termsToHighlight,\n this.iframeRef\n );\n this.handleHighlightsScripts();\n }}\n />\n {buildQuickviewPreviewBar(\n this.words,\n this.highlightKeywords,\n this.iframeRef\n )}\n </div>\n </div>\n );\n }\n\n private renderFooter() {\n return (\n <div slot=\"footer\" class=\"flex items-center gap-2\">\n <Button\n class=\"p-2\"\n style=\"square-neutral\"\n onClick={() => this.previousQuickview?.emit()}\n disabled={this.current === 1}\n text={this.bindings.i18n.t('quickview-previous')}\n ></Button>\n <p class=\"text-center\">\n {this.bindings.i18n.t('showing-results-of', {\n first: this.current,\n total: this.total,\n })}\n </p>\n <Button\n class=\"p-2\"\n style=\"square-neutral\"\n onClick={() => this.nextQuickview?.emit()}\n disabled={this.current === this.total}\n text={this.bindings.i18n.t('quickview-next')}\n ></Button>\n </div>\n );\n }\n\n private onClose() {\n this.content = undefined;\n this.result = undefined;\n this.modalCloseCallback && this.modalCloseCallback();\n }\n\n private get isOpen() {\n return !!this.content && !!this.result;\n }\n\n private get highlightScriptId() {\n return 'CoveoDisableHighlightStyle';\n }\n\n private get logger() {\n return this.bindings.engine.logger;\n }\n\n private get quickviewSrc() {\n return this.bindings.engine.state.resultPreview?.contentURL;\n }\n\n private enableHighlights() {\n this.removeDisableHighlightScript();\n }\n\n private enableHighlightsSpecificKeyword(identifier: string) {\n this.removeDisableHighlightScript(identifier);\n }\n\n private disableHighlights() {\n this.createDisableHighlightScript();\n }\n\n private disableHighlightsSpecificKeyword(identifier: string) {\n this.createDisableHighlightScript(identifier);\n }\n\n private removeDisableHighlightScript(identifier?: string) {\n const doc = this.iframeRef?.contentWindow?.document;\n if (!doc) {\n return;\n }\n doc\n .getElementById(\n `${this.highlightScriptId}${identifier ? `:${identifier}` : ''}`\n )\n ?.remove();\n }\n\n private createDisableHighlightScript(identifier?: string) {\n const doc = this.iframeRef?.contentWindow?.document;\n if (!doc) {\n return;\n }\n\n const head = doc.head;\n const scriptId = `${this.highlightScriptId}${\n identifier ? `:${identifier}` : ''\n }`;\n const style =\n doc.getElementById(scriptId) || this.bindings.createStyleElement();\n style.setAttribute('id', scriptId);\n head.appendChild(style);\n style.appendChild(\n doc.createTextNode(`[id^=\"${HIGHLIGHT_PREFIX}${\n identifier ? `:${identifier}` : ''\n }\"] {\n background-color: inherit !important;\n color: inherit !important;\n }`)\n );\n }\n\n private get termsToHighlight() {\n const flatPhrasesToHighlight: TermsToHighlight = {};\n\n const phrasesToHighlight =\n this.bindings.engine.state.search.response.phrasesToHighlight;\n\n Object.entries(phrasesToHighlight).forEach(([phrase, keywords]) => {\n flatPhrasesToHighlight[phrase] = Object.entries(keywords).flatMap(\n ([keywordEntry, keywordStemming]) => {\n return [keywordEntry, ...keywordStemming];\n }\n );\n });\n\n return {\n ...this.bindings.engine.state.search.response.termsToHighlight,\n ...flatPhrasesToHighlight,\n };\n }\n\n private get requestId() {\n return this.bindings.engine.state.search.requestId;\n }\n\n private get quickviewUniqueIdentifier() {\n return this.result?.uniqueId + this.requestId;\n }\n\n private handleHighlightsScripts() {\n if (!this.highlightKeywords.highlightNone) {\n this.enableHighlights();\n } else {\n this.disableHighlights();\n }\n Object.values(this.highlightKeywords.keywords).forEach((word) => {\n if (word.enabled) {\n this.enableHighlightsSpecificKeyword(word.indexIdentifier);\n } else {\n this.disableHighlightsSpecificKeyword(word.indexIdentifier);\n }\n });\n }\n\n public render() {\n return (\n <atomic-modal\n fullscreen={this.bindings.store.isMobile()}\n class={'atomic-quickview-modal'}\n isOpen={this.isOpen}\n close={() => this.onClose()}\n exportparts={ATOMIC_MODAL_EXPORT_PARTS}\n >\n {this.renderHeader()}\n {this.renderBody()}\n {this.renderFooter()}\n </atomic-modal>\n );\n }\n}\n"],"version":3}
@@ -48,8 +48,13 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
48
48
  this.analytics = true;
49
49
  /**
50
50
  * Whether the state should be reflected in the URL parameters.
51
+ * @deprecated - replaced by `disable-state-reflection-in-url`
51
52
  */
52
53
  this.reflectStateInUrl = true;
54
+ /**
55
+ * Disable state reflection in the URL parameters.
56
+ */
57
+ this.disableStateReflectionInUrl = false;
53
58
  /**
54
59
  * The CSS selector for the container where the interface will scroll back to.
55
60
  */
@@ -223,6 +228,9 @@ let AtomicCommerceInterface = class AtomicCommerceInterface extends ChildrenUpda
223
228
  return window.location.hash.slice(1);
224
229
  }
225
230
  initUrlManager() {
231
+ if (this.disableStateReflectionInUrl) {
232
+ return;
233
+ }
226
234
  if (!this.reflectStateInUrl) {
227
235
  return;
228
236
  }
@@ -311,6 +319,13 @@ __decorate([
311
319
  converter: booleanConverter,
312
320
  })
313
321
  ], AtomicCommerceInterface.prototype, "reflectStateInUrl", void 0);
322
+ __decorate([
323
+ property({
324
+ type: Boolean,
325
+ attribute: 'disable-state-reflection-in-url',
326
+ reflect: true,
327
+ })
328
+ ], AtomicCommerceInterface.prototype, "disableStateReflectionInUrl", void 0);
314
329
  __decorate([
315
330
  property({ type: String, attribute: 'scroll-container', reflect: true })
316
331
  ], AtomicCommerceInterface.prototype, "scrollContainer", void 0);