@coveo/atomic 3.34.1-pre.fcd4a532c1 → 3.35.0-pre.3ade253f56
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.
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
- package/dist/atomic/components/atomic-result-table-placeholder2.js.map +1 -1
- package/dist/atomic/components/atomic-search-box.js +7 -3
- package/dist/atomic/components/atomic-search-box.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +3 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-facet-number-input/atomic-commerce-facet-number-input.js +1 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +5 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +3 -0
- package/dist/atomic/components/components/common/breadbox/breadcrumb-button.js +6 -1
- package/dist/atomic/components/components/common/search-box/text-area-clear-button.js +1 -1
- package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +5 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/stencil-suggestion-manager.js +1 -1
- package/dist/atomic/components/stencil-suggestion-manager.js.map +1 -1
- package/dist/atomic/lang/cs.json +1 -1
- package/dist/atomic/lang/da.json +1 -1
- package/dist/atomic/lang/de.json +1 -1
- package/dist/atomic/lang/dev.json +1 -1
- package/dist/atomic/lang/el.json +1 -1
- package/dist/atomic/lang/en.json +1 -1
- package/dist/atomic/lang/es.json +1 -1
- package/dist/atomic/lang/fi.json +1 -1
- package/dist/atomic/lang/fr.json +1 -1
- package/dist/atomic/lang/hu.json +1 -1
- package/dist/atomic/lang/id.json +1 -1
- package/dist/atomic/lang/it.json +1 -1
- package/dist/atomic/lang/ja.json +1 -1
- package/dist/atomic/lang/ko.json +1 -1
- package/dist/atomic/lang/nl.json +1 -1
- package/dist/atomic/lang/no.json +1 -1
- package/dist/atomic/lang/pl.json +1 -1
- package/dist/atomic/lang/pt-BR.json +1 -1
- package/dist/atomic/lang/pt.json +1 -1
- package/dist/atomic/lang/ru.json +1 -1
- package/dist/atomic/lang/sv.json +1 -1
- package/dist/atomic/lang/th.json +1 -1
- package/dist/atomic/lang/tr.json +1 -1
- package/dist/atomic/lang/zh-CN.json +1 -1
- package/dist/atomic/lang/zh-TW.json +1 -1
- package/dist/atomic/lang/zh.json +1 -1
- package/dist/atomic/p-2559747d.js +2 -0
- package/dist/atomic/p-2559747d.js.map +1 -0
- package/dist/atomic/{p-d0e48ad7.entry.js → p-3bdee961.entry.js} +2 -2
- package/dist/atomic/{p-92106884.entry.js → p-84bbdfd7.entry.js} +2 -2
- package/dist/atomic/{p-308db03c.entry.js → p-9a6ec803.entry.js} +2 -2
- package/dist/atomic/{p-308db03c.entry.js.map → p-9a6ec803.entry.js.map} +1 -1
- package/dist/atomic/{p-a1522fe5.entry.js → p-a5c05055.entry.js} +2 -2
- package/dist/atomic/{p-83d3857f.entry.js → p-c91fe6ec.entry.js} +2 -2
- package/dist/atomic/p-c91fe6ec.entry.js.map +1 -0
- package/dist/atomic/{p-93fa7a44.js → p-e59ed2f4.js} +2 -2
- package/dist/cjs/{analytics-config-7a564e80.js → analytics-config-c945d26a.js} +2 -2
- package/dist/cjs/{analytics-config-7a564e80.js.map → analytics-config-c945d26a.js.map} +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-box.cjs.entry.js +8 -4
- package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
- package/dist/cjs/{stencil-suggestion-manager-2cba6d69.js → stencil-suggestion-manager-88cb88f2.js} +2 -2
- package/dist/cjs/stencil-suggestion-manager-88cb88f2.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/{analytics-config-99b1a0b0.js → analytics-config-18033ea1.js} +2 -2
- package/dist/esm/{analytics-config-99b1a0b0.js.map → analytics-config-18033ea1.js.map} +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/atomic-result-placeholder_8.entry.js +1 -1
- package/dist/esm/atomic-result-placeholder_8.entry.js.map +1 -1
- package/dist/esm/atomic-search-box.entry.js +8 -4
- package/dist/esm/atomic-search-box.entry.js.map +1 -1
- package/dist/esm/{stencil-suggestion-manager-376f83e8.js → stencil-suggestion-manager-1f4ed8d0.js} +2 -2
- package/dist/esm/stencil-suggestion-manager-1f4ed8d0.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -0
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +2 -0
- package/dist/types/components/common/breadbox/breadcrumb-button.d.ts +2 -0
- package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -0
- package/dist/types/directives/hierarchical-path.d.ts +1 -1
- package/docs/atomic-docs.json +1 -1
- package/package.json +9 -14
- package/dist/atomic/p-16f4ce98.js +0 -2
- package/dist/atomic/p-16f4ce98.js.map +0 -1
- package/dist/atomic/p-83d3857f.entry.js.map +0 -1
- package/dist/cjs/stencil-suggestion-manager-2cba6d69.js.map +0 -1
- package/dist/esm/stencil-suggestion-manager-376f83e8.js.map +0 -1
- /package/dist/atomic/{p-d0e48ad7.entry.js.map → p-3bdee961.entry.js.map} +0 -0
- /package/dist/atomic/{p-92106884.entry.js.map → p-84bbdfd7.entry.js.map} +0 -0
- /package/dist/atomic/{p-a1522fe5.entry.js.map → p-a5c05055.entry.js.map} +0 -0
- /package/dist/atomic/{p-93fa7a44.js.map → p-e59ed2f4.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-af1b4924",[[1,"atomic-result-list",{"display":[513],"density":[513],"imageSize":[1537,"image-size"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"resultListState":[32],"resultsPerPageState":[32],"tabManagerState":[32],"resultTemplateRegistered":[32],"error":[32],"isAppLoaded":[32],"templateHasError":[32],"setRenderFunction":[64]},null,{"tabManagerState":["watchTabManagerState"]}]]],["p-a5f66ecd",[[1,"atomic-folded-result-list",{"density":[513],"imageSize":[513,"image-size"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"collectionField":[513,"collection-field"],"parentField":[513,"parent-field"],"childField":[513,"child-field"],"numberOfFoldedResults":[514,"number-of-folded-results"],"foldedResultListState":[32],"resultsPerPageState":[32],"tabManagerState":[32],"resultTemplateRegistered":[32],"error":[32],"templateHasError":[32],"isAppLoaded":[32],"setRenderFunction":[64]},[[0,"atomic/resolveFoldedResultList","resolveFoldedResultList"],[0,"atomic/loadCollection","loadCollection"]],{"tabManagerState":["watchTabManagerState"]}]]],["p-1bbaf206",[[1,"atomic-insight-folded-result-list",{"density":[513],"imageSize":[513,"image-size"],"collectionField":[513,"collection-field"],"parentField":[513,"parent-field"],"childField":[513,"child-field"],"foldedResultListState":[32],"resultsPerPageState":[32],"resultTemplateRegistered":[32],"error":[32],"isAppLoaded":[32],"templateHasError":[32],"setRenderFunction":[64]},[[0,"atomic/resolveFoldedResultList","resolveFoldedResultList"],[0,"atomic/loadCollection","loadCollection"]]]]],["p-24fd7df6",[[1,"atomic-insight-result-children",{"inheritTemplates":[4,"inherit-templates"],"imageSize":[513,"image-size"],"noResultText":[1,"no-result-text"],"error":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"foldedResultListState":[32],"showInitialChildren":[32]},[[0,"atomic/resolveChildTemplates","resolveChildTemplates"]]]]],["p-dc128135",[[1,"atomic-insight-result-list",{"density":[513],"imageSize":[513,"image-size"],"resultsPerPageState":[32],"resultListState":[32],"templateHasError":[32],"resultTemplateRegistered":[32],"error":[32],"isAppLoaded":[32],"setRenderFunction":[64]}]]],["p-170c7da6",[[1,"atomic-ipx-recs-list",{"recommendation":[513],"display":[513],"density":[513],"imageSize":[513,"image-size"],"numberOfRecommendations":[514,"number-of-recommendations"],"numberOfRecommendationsPerPage":[514,"number-of-recommendations-per-page"],"label":[513],"headingLevel":[514,"heading-level"],"error":[32],"isAppLoaded":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"currentPage":[32],"recommendationListState":[32],"setRenderFunction":[64],"previousPage":[64],"nextPage":[64]},null,{"numberOfRecommendationsPerPage":["watchNumberOfRecommendationsPerPage"]}]]],["p-20b33c18",[[1,"atomic-recs-list",{"recommendation":[513],"display":[513],"density":[513],"imageSize":[513,"image-size"],"numberOfRecommendations":[514,"number-of-recommendations"],"numberOfRecommendationsPerPage":[514,"number-of-recommendations-per-page"],"label":[513],"headingLevel":[514,"heading-level"],"error":[32],"isAppLoaded":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"currentPage":[32],"recommendationListState":[32],"setRenderFunction":[64],"previousPage":[64],"nextPage":[64]},null,{"numberOfRecommendationsPerPage":["watchNumberOfRecommendationsPerPage"]}]]],["p-bbfe727a",[[1,"atomic-result-children",{"inheritTemplates":[4,"inherit-templates"],"imageSize":[513,"image-size"],"noResultText":[1,"no-result-text"],"error":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"foldedResultListState":[32],"showInitialChildren":[32],"loadedFullCollection":[32]},[[0,"atomic/resolveChildTemplates","resolveChildTemplates"]]]]],["p-47ab6c9f",[[1,"atomic-insight-smart-snippet",{"headingLevel":[514,"heading-level"],"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"snippetStyle":[513,"snippet-style"],"smartSnippetState":[32],"feedbackSent":[32]}]]],["p-cb3fd0f4",[[1,"atomic-smart-snippet",{"headingLevel":[514,"heading-level"],"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"snippetStyle":[513,"snippet-style"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"snippetMaximumHeight":[514,"snippet-maximum-height"],"snippetCollapsedHeight":[514,"snippet-collapsed-height"],"smartSnippetState":[32],"tabManagerState":[32],"feedbackSent":[32]},[[0,"selectInlineLink","onSelectInlineLink"],[0,"beginDelayedSelectInlineLink","onBeginDelayedSelectInlineLink"],[0,"cancelPendingSelectInlineLink","onCancelPendingSelectInlineLink"]]]]],["p-ce5b896e",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-f76b7ac3",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-9239be63",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-59f043a0",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-52d5461a",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-c2b4b401",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-2e4628bb",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-0edea6f9",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-4069d801",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-01511388",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-c25f1437",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-83d3857f",[[1,"atomic-search-box",{"numberOfQueries":[514,"number-of-queries"],"redirectionUrl":[513,"redirection-url"],"suggestionTimeout":[2,"suggestion-timeout"],"suggestionDelay":[2,"suggestion-delay"],"disableSearch":[516,"disable-search"],"minimumQueryLength":[514,"minimum-query-length"],"clearFilters":[516,"clear-filters"],"enableQuerySyntax":[516,"enable-query-syntax"],"searchBoxState":[32],"error":[32],"isExpanded":[32]},[[0,"atomic/searchBoxSuggestion/register","registerSuggestions"]],{"redirectionUrl":["watchRedirectionUrl"]}]]],["p-4bdc6d5a",[[1,"atomic-insight-numeric-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"numberOfValues":[514,"number-of-values"],"withInput":[513,"with-input"],"sortCriteria":[513,"sort-criteria"],"rangeAlgorithm":[513,"range-algorithm"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"filterState":[32],"searchStatusState":[32],"error":[32],"facetForInputState":[32]},[[0,"atomic/numberFormat","setFormat"],[0,"atomic/numberInputApply","applyNumberInput"]]]]],["p-cdeb5f2a",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-ee957926",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-a1522fe5",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-85145c88",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-36f63642",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-30c09377",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-be2a43f4",[[1,"atomic-numeric-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withInput":[513,"with-input"],"sortCriteria":[513,"sort-criteria"],"rangeAlgorithm":[513,"range-algorithm"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"filterState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32],"facetForInputState":[32]},[[0,"atomic/numberFormat","setFormat"],[0,"atomic/numberInputApply","applyNumberInput"]]]]],["p-3a01a398",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-b313058c",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-78427c6a",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-fb1a1e2e",[[1,"atomic-search-box-instant-results",{"maxResultsPerQuery":[514,"max-results-per-query"],"density":[513],"imageSize":[513,"image-size"],"ariaLabelGenerator":[16],"error":[32],"templateHasError":[32],"setRenderFunction":[64]}]]],["p-7e9a1a1a",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-b6ae0244",[[1,"atomic-category-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withSearch":[516,"with-search"],"sortCriteria":[513,"sort-criteria"],"delimitingCharacter":[513,"delimiting-character"],"basePath":[1537,"base-path"],"filterByBasePath":[516,"filter-by-base-path"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-a9383817",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-fe59fb2d",[[1,"atomic-color-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withSearch":[516,"with-search"],"sortCriteria":[513,"sort-criteria"],"resultsMustMatch":[513,"results-must-match"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"allowedValues":[1025,"allowed-values"],"customSort":[1025,"custom-sort"],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-6d0e9fad",[[1,"atomic-did-you-mean",{"automaticallyCorrectQuery":[516,"automatically-correct-query"],"queryCorrectionMode":[513,"query-correction-mode"],"didYouMeanState":[32],"queryTriggerState":[32],"error":[32]},null,{"queryCorrectionMode":["updateQueryCorrectionMode"]}]]],["p-47002021",[[0,"atomic-external",{"selector":[513],"boundInterface":[1040]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","handleScrollToTop"],[8,"atomic/parentReady","handleParentReady"]]]]],["p-3549a469",[[1,"atomic-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withSearch":[516,"with-search"],"sortCriteria":[513,"sort-criteria"],"resultsMustMatch":[513,"results-must-match"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"enableExclusion":[516,"enable-exclusion"],"injectionDepth":[2,"injection-depth"],"dependsOn":[16],"allowedValues":[1025,"allowed-values"],"customSort":[1025,"custom-sort"],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-0610b3e7",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-7fd5b6ac",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-7e971d15",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-b2b9e83f",[[1,"atomic-format-number",{"minimumIntegerDigits":[514,"minimum-integer-digits"],"minimumFractionDigits":[514,"minimum-fraction-digits"],"maximumFractionDigits":[514,"maximum-fraction-digits"],"minimumSignificantDigits":[514,"minimum-significant-digits"],"maximumSignificantDigits":[514,"maximum-significant-digits"],"error":[32]}]]],["p-0ed76e65",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-59b15bd6",[[1,"atomic-generated-answer",{"withToggle":[4,"with-toggle"],"collapsible":[4],"maxCollapsedHeight":[2,"max-collapsed-height"],"answerConfigurationId":[1,"answer-configuration-id"],"fieldsToIncludeInCitations":[1,"fields-to-include-in-citations"],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"generatedAnswerState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32],"copied":[32],"copyError":[32]},null,{"generatedAnswerState":["updateAnswerCollapsed"],"tabManagerState":["watchTabManagerState"]}]]],["p-b320f270",[[1,"atomic-generated-answer-feedback-modal",{"isOpen":[1540,"is-open"],"generatedAnswer":[1040],"helpful":[1540],"error":[32],"currentAnswer":[32],"feedbackSubmitted":[32],"answerEvaluationRequired":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-a130b00b",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-dbc0ce5c",[[1,"atomic-insight-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"numberOfValues":[514,"number-of-values"],"sortCriteria":[513,"sort-criteria"],"resultsMustMatch":[513,"results-must-match"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[2,"injection-depth"],"enableExclusion":[516,"enable-exclusion"],"facetState":[32],"searchStatusState":[32],"error":[32]}]]],["p-89d8bb0d",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-cafa4083",[[1,"atomic-insight-generated-answer",{"withToggle":[4,"with-toggle"],"collapsible":[4],"maxCollapsedHeight":[2,"max-collapsed-height"],"answerConfigurationId":[1,"answer-configuration-id"],"fieldsToIncludeInCitations":[1,"fields-to-include-in-citations"],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"generatedAnswerState":[32],"searchStatusState":[32],"error":[32],"copied":[32],"copyError":[32]},null,{"generatedAnswerState":["updateAnswerCollapsed"]}]]],["p-6078667f",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-92106884",[[1,"atomic-insight-interface",{"engine":[1040],"analytics":[516],"i18n":[16],"logLevel":[513,"log-level"],"language":[513],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"fieldsToInclude":[1025,"fields-to-include"],"resultsPerPage":[514,"results-per-page"],"CspNonce":[513,"csp-nonce"],"error":[32],"initialize":[64],"initializeWithInsightEngine":[64],"executeFirstSearch":[64]},[[0,"atomic/initializeComponent","handleInitialization"]],{"iconAssetsPath":["updateIconAssetsPath"],"language":["updateLanguage"],"analytics":["toggleAnalytics"]}]]],["p-768b172e",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-0f449e9d",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-fdcd187d",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-fa658ef2",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-edede7d1",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-0f39889d",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-519d9abd",[[0,"atomic-insight-result-action-bar"]]],["p-fafd5042",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-93f1d551",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-9260dd7d",[[1,"atomic-insight-result-children-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-a1e5f767",[[1,"atomic-insight-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-00069a4b",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-97538903",[[1,"atomic-insight-timeframe-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"withDatePicker":[516,"with-date-picker"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"sortCriteria":[513,"sort-criteria"],"facetState":[32],"facetForDatePickerState":[32],"filterState":[32],"searchStatusState":[32],"error":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]]]],["p-fdd0aa42",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-c7af4b9e",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-a1ee594f",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-93601dc0",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-06284430",[[1,"atomic-notifications",{"headingLevel":[514,"heading-level"],"icon":[513],"notifyTriggerState":[32],"error":[32]}]]],["p-c4046d57",[[0,"atomic-numeric-range",{"label":[513],"start":[514],"end":[514],"endInclusive":[516,"end-inclusive"]}]]],["p-3e9db2b5",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-4830b9bb",[[1,"atomic-rating-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfIntervals":[514,"number-of-intervals"],"maxValueInIndex":[514,"max-value-in-index"],"minValueInIndex":[514,"min-value-in-index"],"displayValuesAs":[513,"display-values-as"],"icon":[513],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-f9dd14b2",[[1,"atomic-rating-range-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfIntervals":[514,"number-of-intervals"],"maxValueInIndex":[514,"max-value-in-index"],"minValueInIndex":[514,"min-value-in-index"],"icon":[513],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-367ec37d",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-d0e48ad7",[[1,"atomic-recs-interface",{"pipeline":[1537],"searchHub":[1537,"search-hub"],"timezone":[513],"engine":[1040],"analytics":[516],"i18n":[16],"logLevel":[513,"log-level"],"language":[513],"fieldsToInclude":[1025,"fields-to-include"],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"CspNonce":[513,"csp-nonce"],"error":[32],"initialize":[64],"initializeWithRecommendationEngine":[64],"getRecommendations":[64]},[[0,"atomic/initializeComponent","handleInitialization"]],{"iconAssetsPath":["updateIconAssetsPath"],"language":["updateLanguage"],"analytics":["toggleAnalytics"]}]]],["p-e7a25b00",[[1,"atomic-recs-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-62e85c20",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-e9dc8e90",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-87f69e53",[[0,"atomic-result-fields-list"]]],["p-dbf0c5a3",[[1,"atomic-result-icon"]]],["p-1ff7a9da",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-c9f1790d",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-0c8e7d5f",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-b3f6561d",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-852cc16d",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-8572a953",[[0,"atomic-result-section-children"]]],["p-da845e35",[[0,"atomic-result-section-emphasized"]]],["p-3d55fce6",[[0,"atomic-result-section-title-metadata"]]],["p-373448df",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-945ddd53",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-998393ec",[[1,"atomic-segmented-facet",{"facetId":[1537,"facet-id"],"field":[513],"label":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[2,"injection-depth"],"numberOfValues":[514,"number-of-values"],"sortCriteria":[513,"sort-criteria"],"dependsOn":[16],"allowedValues":[1025,"allowed-values"],"customSort":[1025,"custom-sort"],"searchStatusState":[32],"tabManagerState":[32],"facetState":[32],"error":[32]}]]],["p-5606819d",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-2fb49fe8",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-d211a422",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["p-97829295",[[0,"atomic-stencil-facet-date-input",{"bindings":[16],"rangeGetter":[16],"rangeSetter":[16],"facetId":[1,"facet-id"],"label":[1],"min":[1],"max":[1],"start":[32],"end":[32]}]]],["p-56adc7d8",[[0,"atomic-tab",{"label":[1],"name":[1],"expression":[1]}]]],["p-5f6cf383",[[0,"atomic-table-element",{"label":[513]}]]],["p-ba52e9f3",[[0,"atomic-timeframe",{"period":[513],"unit":[513],"amount":[514],"label":[513]}]]],["p-23d4dc54",[[1,"atomic-timeframe-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"withDatePicker":[516,"with-date-picker"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"min":[513],"max":[513],"sortCriteria":[513,"sort-criteria"],"facetState":[32],"facetForDatePickerState":[32],"filterState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]]]],["p-9b2561e8",[[1,"atomic-insight-user-actions-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-36112c34",[[1,"atomic-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"collapseFacetsAfter":[514,"collapse-facets-after"],"querySummaryState":[32],"breadcrumbManagerState":[32],"facetManagerState":[32],"sortState":[32],"tabManagerState":[32],"error":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-416d088e",[[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-10b5e0f3",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-345c425d",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-7cced247",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-b6415814",[[1,"atomic-ipx-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"collapseFacetsAfter":[514,"collapse-facets-after"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-6f1bffa2",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-40c1dfcb",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-f9608731",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-f936f55e",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-fe3cd55b",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-4f4c9a03",[[1,"atomic-quickview-modal",{"content":[1025],"result":[1040],"current":[2],"total":[2],"sandbox":[1],"modalCloseCallback":[16],"error":[32],"highlightKeywords":[32],"minimizeSidebar":[32],"words":[32],"reset":[64]},null,{"highlightKeywords":["watchHighlightKeywords"]}]]],["p-98dd6df1",[[1,"atomic-recs-result",{"stopPropagation":[4,"stop-propagation"],"linkContent":[16],"result":[16],"interactiveResult":[16],"store":[16],"content":[16],"display":[1],"density":[1],"imageSize":[1,"image-size"],"classes":[1],"loadingFlag":[1,"loading-flag"],"renderingFunction":[16]},[[0,"click","handleClick"],[0,"atomic/resolveResult","resolveResult"],[0,"atomic/resolveInteractiveResult","resolveInteractiveResult"],[0,"atomic/resolveStopPropagation","resolveStopPropagation"],[0,"atomic/resolveResultDisplayConfig","resolveResultDisplayConfig"]]]]],["p-00a6ab8c",[[0,"atomic-suggestion-renderer",{"i18n":[16],"id":[1],"suggestion":[16],"isSelected":[4,"is-selected"],"side":[1],"index":[2],"lastIndex":[2,"last-index"],"isDoubleList":[4,"is-double-list"],"onClick":[16],"onMouseOver":[16]}]]],["p-c4fb6426",[[1,"atomic-insight-result",{"stopPropagation":[4,"stop-propagation"],"result":[16],"interactiveResult":[16],"store":[16],"content":[16],"density":[1],"imageSize":[1,"image-size"],"classes":[1],"loadingFlag":[1,"loading-flag"]},[[0,"atomic/resolveResult","resolveResult"],[0,"atomic/resolveInteractiveResult","resolveInteractiveResult"],[0,"atomic/resolveStopPropagation","resolveStopPropagation"],[0,"atomic/resolveResultDisplayConfig","resolveResultDisplayConfig"]]]]],["p-dd35e7ad",[[1,"atomic-smart-snippet-expandable-answer",{"expanded":[516],"htmlContent":[1,"html-content"],"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"snippetStyle":[1,"snippet-style"],"fullHeight":[32]},null,{"fullHeight":["fullHeightUpdated"]}],[1,"atomic-smart-snippet-collapse-wrapper",{"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"isExpanded":[32],"showButton":[32],"fullHeight":[32]}]]],["p-6f34dd3a",[[1,"atomic-result",{"stopPropagation":[4,"stop-propagation"],"result":[16],"interactiveResult":[16],"store":[16],"content":[16],"linkContent":[16],"display":[1],"density":[1],"imageSize":[1,"image-size"],"classes":[1],"loadingFlag":[1,"loading-flag"],"renderingFunction":[16]},[[0,"atomic/resolveResult","resolveResult"],[0,"atomic/resolveInteractiveResult","resolveInteractiveResult"],[0,"atomic/resolveStopPropagation","resolveStopPropagation"],[0,"atomic/resolveResultDisplayConfig","resolveResultDisplayConfig"],[0,"click","handleClick"]]]]],["p-6098b906",[[0,"atomic-automatic-facet-generator",{"desiredCount":[514,"desired-count"],"numberOfValues":[514,"number-of-values"],"error":[32],"automaticFacetGeneratorState":[32],"searchStatusState":[32],"collapseFacetsAfter":[32],"updateCollapseFacetsDependingOnFacetsVisibility":[64]}],[1,"atomic-automatic-facet",{"field":[513],"facetId":[513,"facet-id"],"facet":[16],"searchStatus":[16],"isCollapsed":[1540,"is-collapsed"],"error":[32]}]]],["p-740cd5bc",[[1,"atomic-insight-user-actions-timeline",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"followingSessionsAreVisible":[32],"precedingSessionsAreVisible":[32]}],[1,"atomic-insight-user-actions-session",{"startTimestamp":[2,"start-timestamp"],"userActions":[16],"error":[32],"areActionsAfterCaseCreationVisible":[32]},null,{"userActions":["prepareUserActionsToDisplay"]}]]],["p-1435fb6f",[[1,"atomic-tab-bar",{"popoverTabs":[32]},[[0,"atomic/tabRendered","resolveResult"]]],[1,"atomic-tab-popover",{"show":[32],"error":[32],"isOpen":[32],"toggle":[64],"setButtonVisibility":[64],"closePopoverOnFocusOut":[64]},[[0,"keydown","handleKeyDown"]]]]],["p-190ddaca",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-723f76a1",[[0,"atomic-smart-snippet-source",{"source":[1040],"anchorAttributes":[16],"error":[32]},[[0,"atomic/resolveResult","resolveResult"]]],[1,"atomic-smart-snippet-answer",{"htmlContent":[1,"html-content"],"innerStyle":[1,"inner-style"]}]]],["p-308db03c",[[1,"atomic-result-placeholder",{"display":[1],"density":[1],"imageSize":[1,"image-size"]}],[1,"atomic-result-table-placeholder",{"density":[1],"imageSize":[1,"image-size"],"rows":[2]}],[0,"atomic-result-section-actions"],[0,"atomic-result-section-badges"],[0,"atomic-result-section-bottom-metadata"],[0,"atomic-result-section-excerpt"],[0,"atomic-result-section-title"],[0,"atomic-result-section-visual",{"imageSize":[513,"image-size"]}]]]]'),e)}));
|
1
|
+
import{p as e,b as t}from"./p-dc3df5ce.js";export{s as setNonce}from"./p-dc3df5ce.js";import{g as a}from"./p-e1255160.js";var i=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};i().then((async e=>{await a();return t(JSON.parse('[["p-af1b4924",[[1,"atomic-result-list",{"display":[513],"density":[513],"imageSize":[1537,"image-size"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"resultListState":[32],"resultsPerPageState":[32],"tabManagerState":[32],"resultTemplateRegistered":[32],"error":[32],"isAppLoaded":[32],"templateHasError":[32],"setRenderFunction":[64]},null,{"tabManagerState":["watchTabManagerState"]}]]],["p-a5f66ecd",[[1,"atomic-folded-result-list",{"density":[513],"imageSize":[513,"image-size"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"collectionField":[513,"collection-field"],"parentField":[513,"parent-field"],"childField":[513,"child-field"],"numberOfFoldedResults":[514,"number-of-folded-results"],"foldedResultListState":[32],"resultsPerPageState":[32],"tabManagerState":[32],"resultTemplateRegistered":[32],"error":[32],"templateHasError":[32],"isAppLoaded":[32],"setRenderFunction":[64]},[[0,"atomic/resolveFoldedResultList","resolveFoldedResultList"],[0,"atomic/loadCollection","loadCollection"]],{"tabManagerState":["watchTabManagerState"]}]]],["p-1bbaf206",[[1,"atomic-insight-folded-result-list",{"density":[513],"imageSize":[513,"image-size"],"collectionField":[513,"collection-field"],"parentField":[513,"parent-field"],"childField":[513,"child-field"],"foldedResultListState":[32],"resultsPerPageState":[32],"resultTemplateRegistered":[32],"error":[32],"isAppLoaded":[32],"templateHasError":[32],"setRenderFunction":[64]},[[0,"atomic/resolveFoldedResultList","resolveFoldedResultList"],[0,"atomic/loadCollection","loadCollection"]]]]],["p-24fd7df6",[[1,"atomic-insight-result-children",{"inheritTemplates":[4,"inherit-templates"],"imageSize":[513,"image-size"],"noResultText":[1,"no-result-text"],"error":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"foldedResultListState":[32],"showInitialChildren":[32]},[[0,"atomic/resolveChildTemplates","resolveChildTemplates"]]]]],["p-dc128135",[[1,"atomic-insight-result-list",{"density":[513],"imageSize":[513,"image-size"],"resultsPerPageState":[32],"resultListState":[32],"templateHasError":[32],"resultTemplateRegistered":[32],"error":[32],"isAppLoaded":[32],"setRenderFunction":[64]}]]],["p-170c7da6",[[1,"atomic-ipx-recs-list",{"recommendation":[513],"display":[513],"density":[513],"imageSize":[513,"image-size"],"numberOfRecommendations":[514,"number-of-recommendations"],"numberOfRecommendationsPerPage":[514,"number-of-recommendations-per-page"],"label":[513],"headingLevel":[514,"heading-level"],"error":[32],"isAppLoaded":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"currentPage":[32],"recommendationListState":[32],"setRenderFunction":[64],"previousPage":[64],"nextPage":[64]},null,{"numberOfRecommendationsPerPage":["watchNumberOfRecommendationsPerPage"]}]]],["p-20b33c18",[[1,"atomic-recs-list",{"recommendation":[513],"display":[513],"density":[513],"imageSize":[513,"image-size"],"numberOfRecommendations":[514,"number-of-recommendations"],"numberOfRecommendationsPerPage":[514,"number-of-recommendations-per-page"],"label":[513],"headingLevel":[514,"heading-level"],"error":[32],"isAppLoaded":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"currentPage":[32],"recommendationListState":[32],"setRenderFunction":[64],"previousPage":[64],"nextPage":[64]},null,{"numberOfRecommendationsPerPage":["watchNumberOfRecommendationsPerPage"]}]]],["p-bbfe727a",[[1,"atomic-result-children",{"inheritTemplates":[4,"inherit-templates"],"imageSize":[513,"image-size"],"noResultText":[1,"no-result-text"],"error":[32],"resultTemplateRegistered":[32],"templateHasError":[32],"foldedResultListState":[32],"showInitialChildren":[32],"loadedFullCollection":[32]},[[0,"atomic/resolveChildTemplates","resolveChildTemplates"]]]]],["p-47ab6c9f",[[1,"atomic-insight-smart-snippet",{"headingLevel":[514,"heading-level"],"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"snippetStyle":[513,"snippet-style"],"smartSnippetState":[32],"feedbackSent":[32]}]]],["p-cb3fd0f4",[[1,"atomic-smart-snippet",{"headingLevel":[514,"heading-level"],"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"snippetStyle":[513,"snippet-style"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"snippetMaximumHeight":[514,"snippet-maximum-height"],"snippetCollapsedHeight":[514,"snippet-collapsed-height"],"smartSnippetState":[32],"tabManagerState":[32],"feedbackSent":[32]},[[0,"selectInlineLink","onSelectInlineLink"],[0,"beginDelayedSelectInlineLink","onBeginDelayedSelectInlineLink"],[0,"cancelPendingSelectInlineLink","onCancelPendingSelectInlineLink"]]]]],["p-ce5b896e",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-f76b7ac3",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-9239be63",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-59f043a0",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-52d5461a",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-c2b4b401",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-2e4628bb",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-0edea6f9",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-4069d801",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-01511388",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-c25f1437",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-c91fe6ec",[[1,"atomic-search-box",{"numberOfQueries":[514,"number-of-queries"],"redirectionUrl":[513,"redirection-url"],"suggestionTimeout":[2,"suggestion-timeout"],"suggestionDelay":[2,"suggestion-delay"],"disableSearch":[516,"disable-search"],"minimumQueryLength":[514,"minimum-query-length"],"clearFilters":[516,"clear-filters"],"enableQuerySyntax":[516,"enable-query-syntax"],"searchBoxState":[32],"error":[32],"isExpanded":[32]},[[0,"atomic/searchBoxSuggestion/register","registerSuggestions"]],{"redirectionUrl":["watchRedirectionUrl"]}]]],["p-4bdc6d5a",[[1,"atomic-insight-numeric-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"numberOfValues":[514,"number-of-values"],"withInput":[513,"with-input"],"sortCriteria":[513,"sort-criteria"],"rangeAlgorithm":[513,"range-algorithm"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"filterState":[32],"searchStatusState":[32],"error":[32],"facetForInputState":[32]},[[0,"atomic/numberFormat","setFormat"],[0,"atomic/numberInputApply","applyNumberInput"]]]]],["p-cdeb5f2a",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-ee957926",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-a5c05055",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-85145c88",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-36f63642",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-30c09377",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-be2a43f4",[[1,"atomic-numeric-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withInput":[513,"with-input"],"sortCriteria":[513,"sort-criteria"],"rangeAlgorithm":[513,"range-algorithm"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"filterState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32],"facetForInputState":[32]},[[0,"atomic/numberFormat","setFormat"],[0,"atomic/numberInputApply","applyNumberInput"]]]]],["p-3a01a398",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-b313058c",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-78427c6a",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-fb1a1e2e",[[1,"atomic-search-box-instant-results",{"maxResultsPerQuery":[514,"max-results-per-query"],"density":[513],"imageSize":[513,"image-size"],"ariaLabelGenerator":[16],"error":[32],"templateHasError":[32],"setRenderFunction":[64]}]]],["p-7e9a1a1a",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-b6ae0244",[[1,"atomic-category-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withSearch":[516,"with-search"],"sortCriteria":[513,"sort-criteria"],"delimitingCharacter":[513,"delimiting-character"],"basePath":[1537,"base-path"],"filterByBasePath":[516,"filter-by-base-path"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-a9383817",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-fe59fb2d",[[1,"atomic-color-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withSearch":[516,"with-search"],"sortCriteria":[513,"sort-criteria"],"resultsMustMatch":[513,"results-must-match"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"allowedValues":[1025,"allowed-values"],"customSort":[1025,"custom-sort"],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-6d0e9fad",[[1,"atomic-did-you-mean",{"automaticallyCorrectQuery":[516,"automatically-correct-query"],"queryCorrectionMode":[513,"query-correction-mode"],"didYouMeanState":[32],"queryTriggerState":[32],"error":[32]},null,{"queryCorrectionMode":["updateQueryCorrectionMode"]}]]],["p-47002021",[[0,"atomic-external",{"selector":[513],"boundInterface":[1040]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","handleScrollToTop"],[8,"atomic/parentReady","handleParentReady"]]]]],["p-3549a469",[[1,"atomic-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfValues":[514,"number-of-values"],"withSearch":[516,"with-search"],"sortCriteria":[513,"sort-criteria"],"resultsMustMatch":[513,"results-must-match"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"enableExclusion":[516,"enable-exclusion"],"injectionDepth":[2,"injection-depth"],"dependsOn":[16],"allowedValues":[1025,"allowed-values"],"customSort":[1025,"custom-sort"],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-0610b3e7",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-7fd5b6ac",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-7e971d15",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-b2b9e83f",[[1,"atomic-format-number",{"minimumIntegerDigits":[514,"minimum-integer-digits"],"minimumFractionDigits":[514,"minimum-fraction-digits"],"maximumFractionDigits":[514,"maximum-fraction-digits"],"minimumSignificantDigits":[514,"minimum-significant-digits"],"maximumSignificantDigits":[514,"maximum-significant-digits"],"error":[32]}]]],["p-0ed76e65",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-59b15bd6",[[1,"atomic-generated-answer",{"withToggle":[4,"with-toggle"],"collapsible":[4],"maxCollapsedHeight":[2,"max-collapsed-height"],"answerConfigurationId":[1,"answer-configuration-id"],"fieldsToIncludeInCitations":[1,"fields-to-include-in-citations"],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"generatedAnswerState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32],"copied":[32],"copyError":[32]},null,{"generatedAnswerState":["updateAnswerCollapsed"],"tabManagerState":["watchTabManagerState"]}]]],["p-b320f270",[[1,"atomic-generated-answer-feedback-modal",{"isOpen":[1540,"is-open"],"generatedAnswer":[1040],"helpful":[1540],"error":[32],"currentAnswer":[32],"feedbackSubmitted":[32],"answerEvaluationRequired":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-a130b00b",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-dbc0ce5c",[[1,"atomic-insight-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"numberOfValues":[514,"number-of-values"],"sortCriteria":[513,"sort-criteria"],"resultsMustMatch":[513,"results-must-match"],"displayValuesAs":[513,"display-values-as"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[2,"injection-depth"],"enableExclusion":[516,"enable-exclusion"],"facetState":[32],"searchStatusState":[32],"error":[32]}]]],["p-89d8bb0d",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-cafa4083",[[1,"atomic-insight-generated-answer",{"withToggle":[4,"with-toggle"],"collapsible":[4],"maxCollapsedHeight":[2,"max-collapsed-height"],"answerConfigurationId":[1,"answer-configuration-id"],"fieldsToIncludeInCitations":[1,"fields-to-include-in-citations"],"disableCitationAnchoring":[4,"disable-citation-anchoring"],"generatedAnswerState":[32],"searchStatusState":[32],"error":[32],"copied":[32],"copyError":[32]},null,{"generatedAnswerState":["updateAnswerCollapsed"]}]]],["p-6078667f",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-84bbdfd7",[[1,"atomic-insight-interface",{"engine":[1040],"analytics":[516],"i18n":[16],"logLevel":[513,"log-level"],"language":[513],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"fieldsToInclude":[1025,"fields-to-include"],"resultsPerPage":[514,"results-per-page"],"CspNonce":[513,"csp-nonce"],"error":[32],"initialize":[64],"initializeWithInsightEngine":[64],"executeFirstSearch":[64]},[[0,"atomic/initializeComponent","handleInitialization"]],{"iconAssetsPath":["updateIconAssetsPath"],"language":["updateLanguage"],"analytics":["toggleAnalytics"]}]]],["p-768b172e",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-0f449e9d",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-fdcd187d",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-fa658ef2",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-edede7d1",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-0f39889d",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-519d9abd",[[0,"atomic-insight-result-action-bar"]]],["p-fafd5042",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-93f1d551",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-9260dd7d",[[1,"atomic-insight-result-children-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-a1e5f767",[[1,"atomic-insight-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-00069a4b",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-97538903",[[1,"atomic-insight-timeframe-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"withDatePicker":[516,"with-date-picker"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"sortCriteria":[513,"sort-criteria"],"facetState":[32],"facetForDatePickerState":[32],"filterState":[32],"searchStatusState":[32],"error":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]]]],["p-fdd0aa42",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-c7af4b9e",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-a1ee594f",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-93601dc0",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-06284430",[[1,"atomic-notifications",{"headingLevel":[514,"heading-level"],"icon":[513],"notifyTriggerState":[32],"error":[32]}]]],["p-c4046d57",[[0,"atomic-numeric-range",{"label":[513],"start":[514],"end":[514],"endInclusive":[516,"end-inclusive"]}]]],["p-3e9db2b5",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-4830b9bb",[[1,"atomic-rating-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfIntervals":[514,"number-of-intervals"],"maxValueInIndex":[514,"max-value-in-index"],"minValueInIndex":[514,"min-value-in-index"],"displayValuesAs":[513,"display-values-as"],"icon":[513],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-f9dd14b2",[[1,"atomic-rating-range-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"numberOfIntervals":[514,"number-of-intervals"],"maxValueInIndex":[514,"max-value-in-index"],"minValueInIndex":[514,"min-value-in-index"],"icon":[513],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"facetState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-367ec37d",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-3bdee961",[[1,"atomic-recs-interface",{"pipeline":[1537],"searchHub":[1537,"search-hub"],"timezone":[513],"engine":[1040],"analytics":[516],"i18n":[16],"logLevel":[513,"log-level"],"language":[513],"fieldsToInclude":[1025,"fields-to-include"],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"CspNonce":[513,"csp-nonce"],"error":[32],"initialize":[64],"initializeWithRecommendationEngine":[64],"getRecommendations":[64]},[[0,"atomic/initializeComponent","handleInitialization"]],{"iconAssetsPath":["updateIconAssetsPath"],"language":["updateLanguage"],"analytics":["toggleAnalytics"]}]]],["p-e7a25b00",[[1,"atomic-recs-result-template",{"conditions":[16],"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-62e85c20",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-e9dc8e90",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-87f69e53",[[0,"atomic-result-fields-list"]]],["p-dbf0c5a3",[[1,"atomic-result-icon"]]],["p-1ff7a9da",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-c9f1790d",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-0c8e7d5f",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-b3f6561d",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-852cc16d",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-8572a953",[[0,"atomic-result-section-children"]]],["p-da845e35",[[0,"atomic-result-section-emphasized"]]],["p-3d55fce6",[[0,"atomic-result-section-title-metadata"]]],["p-373448df",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-945ddd53",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-998393ec",[[1,"atomic-segmented-facet",{"facetId":[1537,"facet-id"],"field":[513],"label":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[2,"injection-depth"],"numberOfValues":[514,"number-of-values"],"sortCriteria":[513,"sort-criteria"],"dependsOn":[16],"allowedValues":[1025,"allowed-values"],"customSort":[1025,"custom-sort"],"searchStatusState":[32],"tabManagerState":[32],"facetState":[32],"error":[32]}]]],["p-5606819d",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-2fb49fe8",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-d211a422",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["p-97829295",[[0,"atomic-stencil-facet-date-input",{"bindings":[16],"rangeGetter":[16],"rangeSetter":[16],"facetId":[1,"facet-id"],"label":[1],"min":[1],"max":[1],"start":[32],"end":[32]}]]],["p-56adc7d8",[[0,"atomic-tab",{"label":[1],"name":[1],"expression":[1]}]]],["p-5f6cf383",[[0,"atomic-table-element",{"label":[513]}]]],["p-ba52e9f3",[[0,"atomic-timeframe",{"period":[513],"unit":[513],"amount":[514],"label":[513]}]]],["p-23d4dc54",[[1,"atomic-timeframe-facet",{"facetId":[1537,"facet-id"],"label":[513],"field":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"],"withDatePicker":[516,"with-date-picker"],"isCollapsed":[1540,"is-collapsed"],"headingLevel":[514,"heading-level"],"filterFacetCount":[516,"filter-facet-count"],"injectionDepth":[514,"injection-depth"],"dependsOn":[16],"min":[513],"max":[513],"sortCriteria":[513,"sort-criteria"],"facetState":[32],"facetForDatePickerState":[32],"filterState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]]]],["p-9b2561e8",[[1,"atomic-insight-user-actions-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-36112c34",[[1,"atomic-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"collapseFacetsAfter":[514,"collapse-facets-after"],"querySummaryState":[32],"breadcrumbManagerState":[32],"facetManagerState":[32],"sortState":[32],"tabManagerState":[32],"error":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-416d088e",[[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-10b5e0f3",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-345c425d",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-7cced247",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-b6415814",[[1,"atomic-ipx-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"collapseFacetsAfter":[514,"collapse-facets-after"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-6f1bffa2",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-40c1dfcb",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-f9608731",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-f936f55e",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-fe3cd55b",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-4f4c9a03",[[1,"atomic-quickview-modal",{"content":[1025],"result":[1040],"current":[2],"total":[2],"sandbox":[1],"modalCloseCallback":[16],"error":[32],"highlightKeywords":[32],"minimizeSidebar":[32],"words":[32],"reset":[64]},null,{"highlightKeywords":["watchHighlightKeywords"]}]]],["p-98dd6df1",[[1,"atomic-recs-result",{"stopPropagation":[4,"stop-propagation"],"linkContent":[16],"result":[16],"interactiveResult":[16],"store":[16],"content":[16],"display":[1],"density":[1],"imageSize":[1,"image-size"],"classes":[1],"loadingFlag":[1,"loading-flag"],"renderingFunction":[16]},[[0,"click","handleClick"],[0,"atomic/resolveResult","resolveResult"],[0,"atomic/resolveInteractiveResult","resolveInteractiveResult"],[0,"atomic/resolveStopPropagation","resolveStopPropagation"],[0,"atomic/resolveResultDisplayConfig","resolveResultDisplayConfig"]]]]],["p-00a6ab8c",[[0,"atomic-suggestion-renderer",{"i18n":[16],"id":[1],"suggestion":[16],"isSelected":[4,"is-selected"],"side":[1],"index":[2],"lastIndex":[2,"last-index"],"isDoubleList":[4,"is-double-list"],"onClick":[16],"onMouseOver":[16]}]]],["p-c4fb6426",[[1,"atomic-insight-result",{"stopPropagation":[4,"stop-propagation"],"result":[16],"interactiveResult":[16],"store":[16],"content":[16],"density":[1],"imageSize":[1,"image-size"],"classes":[1],"loadingFlag":[1,"loading-flag"]},[[0,"atomic/resolveResult","resolveResult"],[0,"atomic/resolveInteractiveResult","resolveInteractiveResult"],[0,"atomic/resolveStopPropagation","resolveStopPropagation"],[0,"atomic/resolveResultDisplayConfig","resolveResultDisplayConfig"]]]]],["p-dd35e7ad",[[1,"atomic-smart-snippet-expandable-answer",{"expanded":[516],"htmlContent":[1,"html-content"],"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"snippetStyle":[1,"snippet-style"],"fullHeight":[32]},null,{"fullHeight":["fullHeightUpdated"]}],[1,"atomic-smart-snippet-collapse-wrapper",{"maximumHeight":[514,"maximum-height"],"collapsedHeight":[514,"collapsed-height"],"isExpanded":[32],"showButton":[32],"fullHeight":[32]}]]],["p-6f34dd3a",[[1,"atomic-result",{"stopPropagation":[4,"stop-propagation"],"result":[16],"interactiveResult":[16],"store":[16],"content":[16],"linkContent":[16],"display":[1],"density":[1],"imageSize":[1,"image-size"],"classes":[1],"loadingFlag":[1,"loading-flag"],"renderingFunction":[16]},[[0,"atomic/resolveResult","resolveResult"],[0,"atomic/resolveInteractiveResult","resolveInteractiveResult"],[0,"atomic/resolveStopPropagation","resolveStopPropagation"],[0,"atomic/resolveResultDisplayConfig","resolveResultDisplayConfig"],[0,"click","handleClick"]]]]],["p-6098b906",[[0,"atomic-automatic-facet-generator",{"desiredCount":[514,"desired-count"],"numberOfValues":[514,"number-of-values"],"error":[32],"automaticFacetGeneratorState":[32],"searchStatusState":[32],"collapseFacetsAfter":[32],"updateCollapseFacetsDependingOnFacetsVisibility":[64]}],[1,"atomic-automatic-facet",{"field":[513],"facetId":[513,"facet-id"],"facet":[16],"searchStatus":[16],"isCollapsed":[1540,"is-collapsed"],"error":[32]}]]],["p-740cd5bc",[[1,"atomic-insight-user-actions-timeline",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"followingSessionsAreVisible":[32],"precedingSessionsAreVisible":[32]}],[1,"atomic-insight-user-actions-session",{"startTimestamp":[2,"start-timestamp"],"userActions":[16],"error":[32],"areActionsAfterCaseCreationVisible":[32]},null,{"userActions":["prepareUserActionsToDisplay"]}]]],["p-1435fb6f",[[1,"atomic-tab-bar",{"popoverTabs":[32]},[[0,"atomic/tabRendered","resolveResult"]]],[1,"atomic-tab-popover",{"show":[32],"error":[32],"isOpen":[32],"toggle":[64],"setButtonVisibility":[64],"closePopoverOnFocusOut":[64]},[[0,"keydown","handleKeyDown"]]]]],["p-190ddaca",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-723f76a1",[[0,"atomic-smart-snippet-source",{"source":[1040],"anchorAttributes":[16],"error":[32]},[[0,"atomic/resolveResult","resolveResult"]]],[1,"atomic-smart-snippet-answer",{"htmlContent":[1,"html-content"],"innerStyle":[1,"inner-style"]}]]],["p-9a6ec803",[[1,"atomic-result-placeholder",{"display":[1],"density":[1],"imageSize":[1,"image-size"]}],[1,"atomic-result-table-placeholder",{"density":[1],"imageSize":[1,"image-size"],"rows":[2]}],[0,"atomic-result-section-actions"],[0,"atomic-result-section-badges"],[0,"atomic-result-section-bottom-metadata"],[0,"atomic-result-section-excerpt"],[0,"atomic-result-section-title"],[0,"atomic-result-section-visual",{"imageSize":[513,"image-size"]}]]]]'),e)}));
|
2
2
|
//# sourceMappingURL=atomic.esm.js.map
|
@@ -18,7 +18,7 @@ const AtomicResultTablePlaceholder = /*@__PURE__*/ proxyCustomElement(class Atom
|
|
18
18
|
return getItemDisplayClasses('table', this.density, this.imageSize);
|
19
19
|
}
|
20
20
|
render() {
|
21
|
-
return (h("table", { key: 'ed3f575082ec1c2a9927251e2b09d5c0f70d78b5', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: '
|
21
|
+
return (h("table", { key: 'ed3f575082ec1c2a9927251e2b09d5c0f70d78b5', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: 'd48900fa9c63a0a201379e034efce277095884e2' }, h("tr", { key: '46641a6003cadf5c7fc8dfad1ab9d1ef11c90190' }, h("th", { key: '617b903b6d8ffde30dcbb3e4dcbaaa4e377d3b19' }, h("div", { key: 'd082c63c3bde168ef9395afb9e0dd50fcb3a6825', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '2fc5a593908aad27a251272284bce7b55ad521e6' }, h("div", { key: 'a49a28d807240f58b43fbe8a646f9de2218e34f9', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '96676c1b68d7ab25dc14b9331642f5288d0f2b53' }, h("div", { key: '648e50f2fa4ba0214bc0b220d38520c86580013c', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: '98adcdb91e5e58c6dd1cc09759e6cc0e7a08bf31' }, Array.from({ length: this.rows }, () => (h("tr", null, h("td", null, h("div", { class: `mb-6 h-8 ${placeholderClasses}`, style: { width: '22.875rem' } }), h("div", { class: `mb-2 h-5 ${placeholderClasses}`, style: { width: '23.75rem' } }), h("div", { class: `h-5 ${placeholderClasses}`, style: { width: '11.5rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '11rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '4.875rem' } }))))))));
|
22
22
|
}
|
23
23
|
static get style() { return AtomicResultTablePlaceholderStyle0; }
|
24
24
|
}, [1, "atomic-result-table-placeholder", {
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"atomic-result-table-placeholder2.js","mappings":";;;AAAA,MAAM,+BAA+B,GAAG,8g9EAA8g9E,CAAC;AACvj9E,2CAAe,+BAA+B;;ACM9C,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;MAWzC,4BAA4B;;;;;;;;;IAK/B,UAAU;QAChB,OAAO,qBAAqB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;KACrE;IAEM,MAAM;QACX,QACE,8DAAO,KAAK,EAAE,2BAA2B,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IACpE,
|
1
|
+
{"file":"atomic-result-table-placeholder2.js","mappings":";;;AAAA,MAAM,+BAA+B,GAAG,8g9EAA8g9E,CAAC;AACvj9E,2CAAe,+BAA+B;;ACM9C,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;MAWzC,4BAA4B;;;;;;;;;IAK/B,UAAU;QAChB,OAAO,qBAAqB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;KACrE;IAEM,MAAM;QACX,QACE,8DAAO,KAAK,EAAE,2BAA2B,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IACpE,gEACE,6DACE,6DACE,4DACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,GACpB,CACJ,EACL,6DACE,4DACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,GACpB,CACJ,EACL,6DACE,4DACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAC,GACnB,CACJ,CACF,CACC,EACR,gEACG,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAC,EAAE,OAC/B,cACE,cACE,WACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,WAAW,EAAC,GACtB,EACP,WACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,UAAU,EAAC,GACrB,EACP,WACE,KAAK,EAAE,OAAO,kBAAkB,EAAE,EAClC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,GACpB,CACJ,EACL,cACE,WACE,KAAK,EAAE,cAAc,kBAAkB,EAAE,EACzC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,GAClB,CACJ,EACL,cACE,WACE,KAAK,EAAE,cAAc,kBAAkB,EAAE,EACzC,KAAK,EAAE,EAAC,KAAK,EAAE,UAAU,EAAC,GACrB,CACJ,CACF,CACN,CAAC,CACI,CACF,EACR;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.pcss?tag=atomic-result-table-placeholder&encapsulation=shadow","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n@import '../../common/item-list/styles/mixins.pcss';\n\n:host {\n display: grid;\n}\n\n.list-root.display-table {\n @apply atomic-result-table border-neutral rounded-xl border;\n\n thead tr,\n tbody tr:not(:last-child) {\n position: relative;\n\n &::after {\n content: ' ';\n display: block;\n position: absolute;\n height: 1px;\n bottom: 0;\n left: var(--padding);\n right: var(--padding);\n @apply bg-neutral;\n }\n }\n\n th,\n td {\n border-color: transparent;\n border-radius: initial;\n }\n\n th {\n background-color: transparent;\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral rounded';\n\n/**\n * The `atomic-result-table-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-table-placeholder',\n styleUrl: 'atomic-result-table-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultTablePlaceholder {\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n @Prop() rows!: number;\n\n private getClasses() {\n return getItemDisplayClasses('table', this.density, this.imageSize);\n }\n\n public render() {\n return (\n <table class={`list-root animate-pulse ${this.getClasses().join(' ')}`}>\n <thead>\n <tr>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '14.5rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '9.75rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '6.5rem'}}\n ></div>\n </th>\n </tr>\n </thead>\n <tbody>\n {Array.from({length: this.rows}, () => (\n <tr>\n <td>\n <div\n class={`mb-6 h-8 ${placeholderClasses}`}\n style={{width: '22.875rem'}}\n ></div>\n <div\n class={`mb-2 h-5 ${placeholderClasses}`}\n style={{width: '23.75rem'}}\n ></div>\n <div\n class={`h-5 ${placeholderClasses}`}\n style={{width: '11.5rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '11rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '4.875rem'}}\n ></div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n );\n }\n}\n"],"version":3}
|
@@ -99,6 +99,7 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
99
99
|
onInput: (e) => this.onInput(e.target.value),
|
100
100
|
onKeyDown: (e) => this.onKeyDown(e),
|
101
101
|
onClear: () => {
|
102
|
+
this.announceClearSearchBoxToScreenReader();
|
102
103
|
this.searchBox.clear();
|
103
104
|
this.suggestionManager.clearSuggestions();
|
104
105
|
},
|
@@ -407,6 +408,9 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
407
408
|
this.suggestionsAriaMessage = ariaLabel;
|
408
409
|
}
|
409
410
|
}
|
411
|
+
announceClearSearchBoxToScreenReader() {
|
412
|
+
this.suggestionsAriaMessage = this.bindings.i18n.t("search-box-cleared");
|
413
|
+
}
|
410
414
|
announceNewSuggestionsToScreenReader() {
|
411
415
|
const elsLength = this.suggestionManager.allSuggestionElements.filter(elementHasQuery).length;
|
412
416
|
this.searchBoxAriaMessage = elsLength
|
@@ -435,14 +439,14 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
435
439
|
if (!this.suggestionManager.suggestions.length) {
|
436
440
|
this.registerSearchboxSuggestionEvents();
|
437
441
|
}
|
438
|
-
return (h(Host, { key: '
|
439
|
-
h(SearchBoxWrapper, { key: '
|
442
|
+
return (h(Host, { key: '706f15100c06626e64d35f412350cfa625b87cc3' }, this.renderAbsolutePositionSpacer(), [
|
443
|
+
h(SearchBoxWrapper, { key: '208be73c1c54895152445ebc4b332319afdb5083', disabled: isDisabled, onFocusout: (event) => {
|
440
444
|
if (!isFocusingOut(event)) {
|
441
445
|
return;
|
442
446
|
}
|
443
447
|
this.suggestionManager.clearSuggestions();
|
444
448
|
this.isExpanded = false;
|
445
|
-
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '
|
449
|
+
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '619a30927c3ac572d188dfb247f9f40fac37977b', bindings: this.bindings, disabled: isDisabled, onClick: () => {
|
446
450
|
this.searchBox.submit();
|
447
451
|
this.suggestionManager.clearSuggestions();
|
448
452
|
} }), this.renderSuggestions()),
|
@@ -1 +1 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gBAAgB,qDACf,QAAQ,EAAE,UAAU,EACpB,UAAU,EAAE,CAAC,KAAK;oBAChB,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;wBACzB,OAAO;qBACR;oBACD,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,CAAC;oBAC1C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;iBACzB,IAEA,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAChC,EAAC,YAAY,qDACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE;oBACP,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;oBACxB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,CAAC;iBAC3C,GACD,EACD,IAAI,CAAC,iBAAiB,EAAE,CACR;YACnB,IAAI,CAAC,iBAAiB,EAAE;SACzB,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;AAjpB4B;IAA5B,kBAAkB,EAAE;mDAA4B;AAezC;IAFP,qBAAqB,CAAC,WAAW,CAAC;yDAEgC;AAyFzD;IADT,cAAc,CAAC,YAAY,CAAC;+DACW;AAG9B;IADT,cAAc,CAAC,oBAAoB,EAAE,IAAI,CAAC;iEACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["AtomicSearchBox"],"sources":["src/components/common/search-box/stencil-submit-button.tsx","src/components/search/atomic-search-box/atomic-search-box.pcss?tag=atomic-search-box&encapsulation=shadow","src/components/search/atomic-search-box/atomic-search-box.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\nimport SearchSlimIcon from '../../../images/search-slim.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button} from '../stencil-button';\n\ninterface Props {\n bindings: AnyBindings;\n disabled: boolean;\n onClick: () => void;\n}\n\nexport const SubmitButton: FunctionalComponent<Props> = ({\n bindings,\n disabled,\n onClick,\n}) => (\n <div\n part=\"submit-button-wrapper\"\n class=\"mr-2 flex items-center justify-center py-2\"\n >\n <Button\n style=\"text-primary\"\n class=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-full\"\n part=\"submit-button\"\n ariaLabel={bindings.i18n.t('search')}\n onClick={() => {\n onClick?.();\n }}\n disabled={disabled}\n >\n <atomic-icon\n part=\"submit-icon\"\n icon={SearchSlimIcon}\n class=\"h-4 w-4\"\n ></atomic-icon>\n </Button>\n </div>\n);\n","@import '../../../global/global.pcss';\n@import '../../common/search-box/search-box.pcss';\n\n[part~='instant-results-item'] {\n @apply p-3;\n}\n\n[part~='instant-results-show-all'] {\n @apply border-t-neutral justify-center border-t py-1;\n margin-top: auto;\n box-sizing: content-box;\n button {\n background-color: transparent;\n }\n}\n\n[part~='suggestions-left'] + [part~='suggestions-right'] {\n @apply border-l-neutral border-l;\n}\n\n[part~='suggestions-wrapper'] {\n flex-direction: column;\n @media (width >= theme(--breakpoint-desktop)) {\n flex-direction: row;\n }\n}\n\n:host {\n @apply relative z-10;\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {\n SearchBox,\n SearchBoxState,\n buildSearchBox,\n StandaloneSearchBox,\n StandaloneSearchBoxState,\n buildStandaloneSearchBox,\n SearchBoxOptions,\n} from '@coveo/headless';\nimport {\n Component,\n h,\n State,\n Prop,\n Listen,\n Watch,\n Element,\n Event,\n EventEmitter,\n Host,\n} from '@stencil/core';\nimport {hasKeyboard, isMacOS} from '../../../utils/device-utils';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {\n SafeStorage,\n StandaloneSearchBoxData,\n StorageItems,\n} from '../../../utils/local-storage-utils';\nimport {updateBreakpoints} from '../../../utils/replace-breakpoint-utils';\nimport {AriaLiveRegion} from '../../../utils/stencil-accessibility-utils';\nimport {\n isFocusingOut,\n once,\n randomID,\n spreadProperties,\n} from '../../../utils/utils';\nimport {RedirectionPayload} from '../../common/search-box/redirection-payload';\nimport {SearchBoxWrapper} from '../../common/search-box/stencil-search-box-wrapper';\nimport {SearchTextArea} from '../../common/search-box/stencil-search-text-area';\nimport {SubmitButton} from '../../common/search-box/stencil-submit-button';\nimport {SuggestionManager} from '../../common/suggestions/stencil-suggestion-manager';\nimport {\n elementHasQuery,\n} from '../../common/suggestions/suggestions-utils';\nimport type {\n SearchBoxSuggestionElement,\n SearchBoxSuggestionsBindings,\n SearchBoxSuggestionsEvent,\n} from '../../common/suggestions/suggestions-types';\nimport {Bindings} from '../atomic-search-interface/atomic-search-interface';\nimport { getDefaultSlotFromHost } from '@/src/utils/slot-utils';\n\n/**\n * The `atomic-search-box` component creates a search box with built-in support for suggestions.\n *\n * @slot default - The default slot where you can add child components to the search box.\n *\n * @part wrapper - The search box wrapper.\n * @part input - The search box input.\n * @part loading - The search box loading animation.\n * @part clear-button - The button to clear the search box of input.\n * @part clear-icon - The clear button's icon.\n * @part submit-button - The search box submit button.\n * @part submit-icon - The search box submit button's icon.\n * @part suggestions - A list of suggested query corrections on each panel.\n * @part suggestions-left - A list of suggested query corrections on the left panel.\n * @part suggestions-right - A list of suggested query corrections on the right panel.\n * @part suggestions-wrapper - The wrapper that contains suggestion panels.\n * @part suggestions-single-list - The wrapper that contains 1 suggestion list.\n * @part suggestions-double-list - The wrapper that contains 2 suggestion lists.\n * @part suggestion - A suggested query correction.\n * @part active-suggestion - The currently active suggestion.\n * @part suggestion-divider - An item in the list that separates groups of suggestions.\n * @part suggestion-with-query - An item in the list that will update the search box query.\n *\n * @part query-suggestion-item - A suggestion from the `atomic-search-box-query-suggestions` component.\n * @part query-suggestion-content - The contents of a suggestion from the `atomic-search-box-query-suggestions` component.\n * @part query-suggestion-icon - The icon of a suggestion from the `atomic-search-box-query-suggestions` component.\n * @part query-suggestion-text - The text of a suggestion from the `atomic-search-box-query-suggestions` component.\n *\n * @part recent-query-item - A suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-content - The contents of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-icon - The icon of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-text - The text of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-text-highlight - The highlighted portion of the text of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-title-item - The clear button above suggestions from the `atomic-search-box-recent-queries` component.\n * @part recent-query-title-content - The contents of the clear button above suggestions from the `atomic-search-box-recent-queries` component.\n * @part recent-query-title - The \"recent searches\" text of the clear button above suggestions from the `atomic-search-box-recent-queries` component.\n * @part recent-query-clear - The \"clear\" text of the clear button above suggestions from the `atomic-search-box-recent-queries` component.\n *\n * @part instant-results-item - An instant result rendered by an `atomic-search-box-instant-results` component.\n * @part instant-results-show-all - The clickable suggestion to show all items for the current instant results search rendered by an `atomic-search-box-instant-results` component.\n * @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-search-box-instant-results` component.\n */\n@Component({\n tag: 'atomic-search-box',\n styleUrl: 'atomic-search-box.pcss',\n shadow: true,\n})\nexport class AtomicSearchBox implements InitializableComponent<Bindings> {\n @InitializeBindings() public bindings!: Bindings;\n private searchBox!: SearchBox | StandaloneSearchBox;\n private searchBoxSuggestionEventsQueue: CustomEvent<\n SearchBoxSuggestionsEvent<SearchBox | StandaloneSearchBox>\n >[] = [];\n private id!: string;\n private textAreaRef!: HTMLTextAreaElement;\n private suggestionManager!: SuggestionManager<\n SearchBox | StandaloneSearchBox\n >;\n\n @Element() private host!: HTMLElement;\n\n @BindStateToController('searchBox')\n @State()\n private searchBoxState!: SearchBoxState | StandaloneSearchBoxState;\n @State() public error!: Error;\n @State() private isExpanded = false;\n\n /**\n * The amount of queries displayed when the user interacts with the search box.\n * By default, a mix of query suggestions and recent queries will be shown.\n * You can configure those settings using the following components as children:\n * - atomic-search-box-query-suggestions\n * - atomic-search-box-recent-queries\n */\n @Prop({reflect: true}) public numberOfQueries = 8;\n\n /**\n * Defining this option makes the search box standalone (see [Use a\n * Standalone Search Box](https://docs.coveo.com/en/atomic/latest/usage/ssb/)).\n *\n * This option defines the default URL the user should be redirected to, when a query is submitted.\n * If a query pipeline redirect is triggered, it will redirect to that URL instead\n * (see [query pipeline triggers](https://docs.coveo.com/en/1458)).\n */\n @Prop({reflect: true}) public redirectionUrl?: string;\n\n /**\n * The timeout for suggestion queries, in milliseconds.\n * If a suggestion query times out, the suggestions from that particular query won't be shown.\n */\n @Prop() public suggestionTimeout = 400;\n\n /**\n * The delay for suggestion queries on input, in milliseconds.\n *\n * The suggestion request will be delayed until the end user stops typing for at least the specified amount of time.\n *\n * This delay is used to avoid sending too many requests to the Coveo Platform when the user is typing, as well as reducing potential input lag on low end devices.\n * A higher delay will reduce input lag, at the cost of suggestions freshness.\n */\n @Prop() public suggestionDelay = 0;\n\n /**\n * Whether to prevent the user from triggering searches and query suggestions from the component.\n * Perfect for use cases where you need to disable the search conditionally.\n * For the specific case when you need to disable the search based on the length of the query, refer to {@link minimumQueryLength}.\n */\n @Prop({reflect: true}) public disableSearch = false;\n\n /**\n * The minimum query length required to enable search.\n * For example, to disable the search for empty queries, set this to `1`.\n */\n @Prop({reflect: true}) public minimumQueryLength = 0;\n\n /**\n * Whether to clear all active query filters when the end user submits a new query from the search box.\n * Setting this option to \"false\" is not recommended & can lead to an increasing number of queries returning no results.\n */\n @Prop({reflect: true}) public clearFilters = true;\n\n /**\n * Whether to interpret advanced [Coveo Cloud query syntax](https://docs.coveo.com/en/1814/) in the query.\n * You should only enable query syntax in the search box if you have good reasons to do so, as it\n * requires end users to be familiar with Coveo Cloud query syntax, otherwise they will likely be surprised\n * by the search box behaviour.\n *\n * When the `redirection-url` property is set and redirects to a page with more `atomic-search-box` components, all `atomic-search-box` components need to have the same `enable-query-syntax` value.\n */\n @Prop({reflect: true}) public enableQuerySyntax = false;\n\n /**\n * Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.\n *\n * Example:\n * ```html\n * <script>\n * document.querySelector('atomic-search-box').addEventListener((e) => {\n * e.preventDefault();\n * // handle redirection\n * });\n * </script>\n * ...\n * <atomic-search-box redirection-url=\"/search\"></atomic-search-box>\n * ```\n */\n @Event({\n eventName: 'redirect',\n })\n public redirect!: EventEmitter<RedirectionPayload>;\n\n @AriaLiveRegion('search-box')\n protected searchBoxAriaMessage!: string;\n\n @AriaLiveRegion('search-suggestions', true)\n protected suggestionsAriaMessage!: string;\n\n private isStandaloneSearchBox(\n searchBox: SearchBox | StandaloneSearchBox\n ): searchBox is StandaloneSearchBox {\n return 'redirectTo' in searchBox;\n }\n\n public initialize() {\n this.id ||= randomID('atomic-search-box-');\n\n this.initializeSearchboxController();\n this.initializeSuggestionManager();\n }\n\n private updateRedirectionUrl() {\n if (this.isStandaloneSearchBox(this.searchBox) && this.redirectionUrl) {\n this.searchBox.updateRedirectUrl(this.redirectionUrl);\n } else {\n this.registerNewSearchBoxController();\n }\n }\n\n private registerNewSearchBoxController() {\n this.disconnectedCallback();\n this.initialize();\n }\n\n private initializeSearchboxController() {\n this.searchBox = this.redirectionUrl\n ? buildStandaloneSearchBox(this.bindings.engine, {\n options: {\n ...this.searchBoxOptions,\n redirectionUrl: this.redirectionUrl,\n overwrite: true,\n },\n })\n : buildSearchBox(this.bindings.engine, {\n options: this.searchBoxOptions,\n });\n }\n\n public componentWillUpdate() {\n if (\n !('redirectTo' in this.searchBoxState) ||\n !('afterRedirection' in this.searchBox)\n ) {\n return;\n }\n\n const {redirectTo, value, analytics} = this.searchBoxState;\n\n if (redirectTo === '') {\n return;\n }\n const data: StandaloneSearchBoxData = {\n value,\n enableQuerySyntax: this.enableQuerySyntax,\n analytics,\n };\n const storage = new SafeStorage();\n storage.setJSON(StorageItems.STANDALONE_SEARCH_BOX_DATA, data);\n\n this.searchBox.afterRedirection();\n const event = this.redirect.emit({redirectTo, value});\n if (!event.defaultPrevented) {\n window.location.href = redirectTo;\n }\n }\n\n public disconnectedCallback = () => {};\n\n @Listen('atomic/searchBoxSuggestion/register')\n public registerSuggestions(\n event: CustomEvent<\n SearchBoxSuggestionsEvent<SearchBox | StandaloneSearchBox>\n >\n ) {\n if (!this.bindings) {\n this.searchBoxSuggestionEventsQueue.push(event);\n } else {\n this.suggestionManager.registerSuggestionsFromEvent(\n event,\n this.suggestionBindings\n );\n }\n }\n\n private registerSearchboxSuggestionEvents() {\n this.searchBoxSuggestionEventsQueue.forEach((evt) => {\n this.suggestionManager.registerSuggestionsFromEvent(\n evt,\n this.suggestionBindings\n );\n });\n this.searchBoxSuggestionEventsQueue = [];\n }\n\n @Watch('redirectionUrl')\n watchRedirectionUrl() {\n this.updateRedirectionUrl();\n }\n\n private initializeSuggestionManager() {\n if (this.suggestionManager) {\n return;\n }\n\n this.suggestionManager = new SuggestionManager({\n getNumberOfSuggestionsToDisplay: () => this.numberOfQueries,\n updateQuery: (query) => this.searchBox.updateText(query),\n getSearchBoxValue: () => this.searchBoxState.value,\n getSuggestionTimeout: () => this.suggestionTimeout,\n getSuggestionDelay: () => this.suggestionDelay,\n getHost: () => this.host,\n getLogger: () => this.bindings.engine.logger,\n });\n this.suggestionManager.initializeSuggestions(this.suggestionBindings);\n }\n\n private get suggestionBindings(): SearchBoxSuggestionsBindings<\n SearchBox | StandaloneSearchBox\n > {\n return spreadProperties(\n this.bindings,\n this.suggestionManager.partialSuggestionBindings,\n this.partialSuggestionBindings\n );\n }\n\n private get partialSuggestionBindings(): Pick<\n SearchBoxSuggestionsBindings<SearchBox | StandaloneSearchBox>,\n | 'id'\n | 'isStandalone'\n | 'searchBoxController'\n | 'numberOfQueries'\n | 'clearFilters'\n > {\n return Object.defineProperties(\n {...this.bindings},\n {\n id: {\n get: () => this.id,\n enumerable: true,\n },\n searchBoxController: {\n get: () => this.searchBox,\n enumerable: true,\n },\n isStandalone: {\n get: () => !!this.redirectionUrl,\n enumerable: true,\n },\n numberOfQueries: {\n get: () => this.numberOfQueries,\n enumerable: true,\n },\n clearFilters: {\n get: () => this.clearFilters,\n enumerable: true,\n },\n }\n ) as unknown as Pick<\n SearchBoxSuggestionsBindings<SearchBox | StandaloneSearchBox>,\n | 'id'\n | 'isStandalone'\n | 'searchBoxController'\n | 'numberOfQueries'\n | 'clearFilters'\n >;\n }\n\n private get searchBoxOptions(): SearchBoxOptions {\n return {\n id: this.id,\n numberOfSuggestions: 0,\n highlightOptions: {\n notMatchDelimiters: {\n open: '<span class=\"font-bold\">',\n close: '</span>',\n },\n correctionDelimiters: {\n open: '<span class=\"font-normal\">',\n close: '</span>',\n },\n },\n clearFilters: this.clearFilters,\n enableQuerySyntax: this.enableQuerySyntax,\n };\n }\n\n private updateBreakpoints = once(() => updateBreakpoints(this.host));\n\n private async onInput(value: string) {\n this.searchBox.updateText(value);\n\n if (this.isSearchDisabledForEndUser(value)) {\n this.suggestionManager.clearSuggestions();\n return;\n }\n this.isExpanded = true;\n await this.suggestionManager.triggerSuggestions();\n this.announceNewSuggestionsToScreenReader();\n }\n\n private async onFocus() {\n if (this.isExpanded) {\n return;\n }\n this.isExpanded = true;\n await this.suggestionManager.triggerSuggestions();\n this.announceNewSuggestionsToScreenReader();\n }\n\n private onSubmit() {\n this.isExpanded = false;\n if (this.suggestionManager.keyboardActiveDescendant) {\n this.suggestionManager.onSubmit();\n return;\n }\n\n this.searchBox.submit();\n }\n\n private async onKeyDown(e: KeyboardEvent) {\n if (this.isSearchDisabledForEndUser(this.searchBoxState.value)) {\n return;\n }\n\n switch (e.key) {\n case 'Enter':\n this.onSubmit();\n break;\n case 'Escape':\n this.suggestionManager.clearSuggestions();\n break;\n case 'ArrowDown':\n e.preventDefault();\n await this.suggestionManager.focusNextValue();\n this.announceNewActiveSuggestionToScreenReader();\n break;\n case 'ArrowUp':\n e.preventDefault();\n await this.suggestionManager.focusPreviousValue();\n this.announceNewActiveSuggestionToScreenReader();\n break;\n case 'ArrowRight':\n if (\n this.suggestionManager.hasActiveDescendant ||\n !this.searchBox.state.value\n ) {\n e.preventDefault();\n this.suggestionManager.focusPanel('right');\n this.announceNewActiveSuggestionToScreenReader();\n }\n break;\n case 'ArrowLeft':\n if (\n this.suggestionManager.hasActiveDescendant ||\n !this.searchBox.state.value\n ) {\n e.preventDefault();\n this.suggestionManager.focusPanel('left');\n this.announceNewActiveSuggestionToScreenReader();\n }\n break;\n case 'Tab':\n this.suggestionManager.clearSuggestions();\n break;\n default:\n if (this.suggestionManager.keyboardActiveDescendant) {\n this.suggestionManager.updateKeyboardActiveDescendant();\n }\n break;\n }\n }\n\n private triggerTextAreaChange(value: string) {\n this.textAreaRef.value = value;\n this.textAreaRef.dispatchEvent(new window.Event('change'));\n }\n\n private renderSuggestion(\n item: SearchBoxSuggestionElement,\n index: number,\n lastIndex: number,\n side: 'left' | 'right'\n ) {\n const id = `${this.id}-${side}-suggestion-${item.key}`;\n\n const isSelected = id === this.suggestionManager.activeDescendant;\n\n if (index === lastIndex && item.hideIfLast) {\n return null;\n }\n\n return (\n <atomic-suggestion-renderer\n i18n={this.bindings.i18n}\n id={id}\n suggestion={item}\n isSelected={isSelected}\n side={side}\n index={index}\n lastIndex={lastIndex}\n isDoubleList={this.suggestionManager.isDoubleList}\n onClick={(e: Event) => {\n this.suggestionManager.onSuggestionClick(item, e);\n if (item.key === 'recent-query-clear') {\n return;\n }\n\n this.isExpanded = false;\n }}\n onMouseOver={() => {\n this.suggestionManager.onSuggestionMouseOver(item, side, id);\n }}\n ></atomic-suggestion-renderer>\n );\n }\n\n private renderPanel(\n side: 'left' | 'right',\n elements: SearchBoxSuggestionElement[],\n setRef: (el: HTMLElement | undefined) => void,\n getRef: () => HTMLElement | undefined\n ) {\n if (!elements.length) {\n return null;\n }\n\n return (\n <div\n part={`suggestions suggestions-${side}`}\n ref={setRef}\n class=\"flex grow basis-1/2 flex-col\"\n onMouseDown={(e) => {\n if (e.target === getRef()) {\n e.preventDefault();\n }\n }}\n >\n {elements.map((suggestion, index) =>\n this.renderSuggestion(suggestion, index, elements.length - 1, side)\n )}\n </div>\n );\n }\n\n private get shouldShowSuggestions() {\n return (\n this.suggestionManager.hasSuggestions &&\n this.isExpanded &&\n !this.isSearchDisabledForEndUser(this.searchBoxState.value)\n );\n }\n\n private renderSuggestions() {\n return (\n <div\n id={`${this.id}-popup`}\n part={`suggestions-wrapper ${\n this.suggestionManager.isDoubleList\n ? 'suggestions-double-list'\n : 'suggestions-single-list'\n }`}\n class={`bg-background border-neutral absolute top-full left-0 z-10 flex w-full rounded-md border ${\n this.shouldShowSuggestions ? '' : 'hidden'\n }`}\n role=\"application\"\n aria-label={this.bindings.i18n.t(\n this.suggestionManager.isDoubleList\n ? 'search-suggestions-double-list'\n : 'search-suggestions-single-list'\n )}\n {...(this.suggestionManager.activeDescendant && {\n 'aria-activedescendant': this.suggestionManager.activeDescendant,\n })}\n >\n {this.renderPanel(\n 'left',\n this.suggestionManager.leftSuggestionElements,\n (el) => (this.suggestionManager.leftPanel = el),\n () => this.suggestionManager.leftPanel\n )}\n {this.renderPanel(\n 'right',\n this.suggestionManager.rightSuggestionElements,\n (el) => (this.suggestionManager.rightPanel = el),\n () => this.suggestionManager.rightPanel\n )}\n </div>\n );\n }\n\n private renderTextBox = (searchLabel: string) => {\n const props = {\n loading: this.searchBoxState.isLoading,\n bindings: this.bindings,\n value: this.searchBoxState.value,\n title: searchLabel,\n ariaLabel: searchLabel,\n onFocus: () => this.onFocus(),\n onInput: (e: Event) =>\n this.onInput(\n (e.target as HTMLInputElement | HTMLTextAreaElement).value\n ),\n onKeyDown: (e: KeyboardEvent) => this.onKeyDown(e),\n onClear: () => {\n this.searchBox.clear();\n this.suggestionManager.clearSuggestions();\n },\n popup: {\n id: `${this.id}-popup`,\n activeDescendant: this.suggestionManager.activeDescendant,\n expanded: this.isExpanded,\n hasSuggestions: this.suggestionManager.hasSuggestions,\n },\n };\n\n return (\n <SearchTextArea\n textAreaRef={this.textAreaRef}\n ref={(el) => (this.textAreaRef = el as HTMLTextAreaElement)}\n {...props}\n onClear={() => {\n props.onClear();\n this.triggerTextAreaChange('');\n }}\n />\n );\n };\n\n private renderAbsolutePositionSpacer() {\n return (\n <textarea\n aria-hidden\n part=\"textarea-spacer\"\n class=\"invisible w-full px-4 py-3.5 text-lg\"\n rows={1}\n ></textarea>\n );\n }\n\n private isSearchDisabledForEndUser(queryValue?: string) {\n if (isNullOrUndefined(queryValue)) {\n return this.disableSearch;\n }\n\n if (queryValue.trim().length < this.minimumQueryLength) {\n return true;\n }\n\n return this.disableSearch;\n }\n\n private getSearchInputLabel(minimumQueryLength = 0) {\n if (this.isSearchDisabledForEndUser(this.searchBoxState.value)) {\n return this.bindings.i18n.t('search-disabled', {\n length: minimumQueryLength,\n });\n }\n\n if (isMacOS()) {\n return this.bindings.i18n.t('search-box-with-suggestions-macos');\n }\n if (!hasKeyboard()) {\n return this.bindings.i18n.t('search-box-with-suggestions-keyboardless');\n }\n return this.bindings.i18n.t('search-box-with-suggestions');\n }\n\n private announceNewActiveSuggestionToScreenReader() {\n const ariaLabel = this.suggestionManager.activeDescendantElement?.ariaLabel;\n if (isMacOS() && ariaLabel) {\n this.suggestionsAriaMessage = ariaLabel;\n }\n }\n\n private announceNewSuggestionsToScreenReader() {\n const elsLength =\n this.suggestionManager.allSuggestionElements.filter(\n elementHasQuery\n ).length;\n this.searchBoxAriaMessage = elsLength\n ? this.bindings.i18n.t(\n this.searchBoxState.value\n ? 'query-suggestions-available'\n : 'query-suggestions-available-no-query',\n {\n count: elsLength,\n query: this.searchBoxState.value,\n }\n )\n : this.bindings.i18n.t('query-suggestions-unavailable');\n }\n\n private renderSlotContent() {\n const hasDefaultSlot = !!getDefaultSlotFromHost(this.host);\n\n if (hasDefaultSlot) {\n return <slot></slot>;\n }\n\n return [\n <atomic-search-box-recent-queries></atomic-search-box-recent-queries>,\n <atomic-search-box-query-suggestions></atomic-search-box-query-suggestions>,\n ];\n }\n\n public render() {\n this.updateBreakpoints();\n\n const searchLabel = this.getSearchInputLabel(this.minimumQueryLength);\n const isDisabled = this.isSearchDisabledForEndUser(\n this.searchBoxState.value\n );\n if (!this.suggestionManager.suggestions.length) {\n this.registerSearchboxSuggestionEvents();\n }\n\n return (\n <Host>\n {this.renderAbsolutePositionSpacer()}\n {[\n <SearchBoxWrapper\n disabled={isDisabled}\n onFocusout={(event) => {\n if (!isFocusingOut(event)) {\n return;\n }\n this.suggestionManager.clearSuggestions();\n this.isExpanded = false;\n }}\n >\n {this.renderTextBox(searchLabel)}\n <SubmitButton\n bindings={this.bindings}\n disabled={isDisabled}\n onClick={() => {\n this.searchBox.submit();\n this.suggestionManager.clearSuggestions();\n }}\n />\n {this.renderSuggestions()}\n </SearchBoxWrapper>,\n this.renderSlotContent(),\n ]}\n </Host>\n );\n }\n}\n"],"version":3}
|
1
|
+
{"file":"atomic-search-box.js","mappings":";;;;;;;;;;;;;;AAWO,MAAM,YAAY,GAA+B,CAAC,EACvD,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,MACC,WACE,IAAI,EAAC,uBAAuB,EAC5B,KAAK,EAAC,4CAA4C;IAElD,EAAC,MAAM,IACL,KAAK,EAAC,cAAc,EACpB,KAAK,EAAC,gEAAgE,EACtE,IAAI,EAAC,eAAe,EACpB,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,EACpC,OAAO,EAAE;YACP,OAAO,IAAI,CAAC;SACb,EACD,QAAQ,EAAE,QAAQ;QAElB,mBACE,IAAI,EAAC,aAAa,EAClB,IAAI,EAAE,cAAc,EACpB,KAAK,EAAC,SAAS,GACF,CACR,CACL,CACP;;ACrCD,MAAM,kBAAkB,GAAG,wioEAAwioE,CAAC;AACpkoE,8BAAe,kBAAkB;;;;;;;;;;;;MCuGpBA,iBAAe;;;;;;QAGlB,mCAA8B,GAEhC,EAAE,CAAC;QAaQ,eAAU,GAAG,KAAK,CAAC;;;;;;;;QASN,oBAAe,GAAG,CAAC,CAAC;;;;;QAgBnC,sBAAiB,GAAG,GAAG,CAAC;;;;;;;;;QAUxB,oBAAe,GAAG,CAAC,CAAC;;;;;;QAOL,kBAAa,GAAG,KAAK,CAAC;;;;;QAMtB,uB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;AAyFzD;IADT,cAAc,CAAC,YAAY,CAAC;+DACW;AAG9B;IADT,cAAc,CAAC,oBAAoB,EAAE,IAAI,CAAC;iEACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["AtomicSearchBox"],"sources":["src/components/common/search-box/stencil-submit-button.tsx","src/components/search/atomic-search-box/atomic-search-box.pcss?tag=atomic-search-box&encapsulation=shadow","src/components/search/atomic-search-box/atomic-search-box.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\nimport SearchSlimIcon from '../../../images/search-slim.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button} from '../stencil-button';\n\ninterface Props {\n bindings: AnyBindings;\n disabled: boolean;\n onClick: () => void;\n}\n\nexport const SubmitButton: FunctionalComponent<Props> = ({\n bindings,\n disabled,\n onClick,\n}) => (\n <div\n part=\"submit-button-wrapper\"\n class=\"mr-2 flex items-center justify-center py-2\"\n >\n <Button\n style=\"text-primary\"\n class=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-full\"\n part=\"submit-button\"\n ariaLabel={bindings.i18n.t('search')}\n onClick={() => {\n onClick?.();\n }}\n disabled={disabled}\n >\n <atomic-icon\n part=\"submit-icon\"\n icon={SearchSlimIcon}\n class=\"h-4 w-4\"\n ></atomic-icon>\n </Button>\n </div>\n);\n","@import '../../../global/global.pcss';\n@import '../../common/search-box/search-box.pcss';\n\n[part~='instant-results-item'] {\n @apply p-3;\n}\n\n[part~='instant-results-show-all'] {\n @apply border-t-neutral justify-center border-t py-1;\n margin-top: auto;\n box-sizing: content-box;\n button {\n background-color: transparent;\n }\n}\n\n[part~='suggestions-left'] + [part~='suggestions-right'] {\n @apply border-l-neutral border-l;\n}\n\n[part~='suggestions-wrapper'] {\n flex-direction: column;\n @media (width >= theme(--breakpoint-desktop)) {\n flex-direction: row;\n }\n}\n\n:host {\n @apply relative z-10;\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {\n SearchBox,\n SearchBoxState,\n buildSearchBox,\n StandaloneSearchBox,\n StandaloneSearchBoxState,\n buildStandaloneSearchBox,\n SearchBoxOptions,\n} from '@coveo/headless';\nimport {\n Component,\n h,\n State,\n Prop,\n Listen,\n Watch,\n Element,\n Event,\n EventEmitter,\n Host,\n} from '@stencil/core';\nimport {hasKeyboard, isMacOS} from '../../../utils/device-utils';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {\n SafeStorage,\n StandaloneSearchBoxData,\n StorageItems,\n} from '../../../utils/local-storage-utils';\nimport {updateBreakpoints} from '../../../utils/replace-breakpoint-utils';\nimport {AriaLiveRegion} from '../../../utils/stencil-accessibility-utils';\nimport {\n isFocusingOut,\n once,\n randomID,\n spreadProperties,\n} from '../../../utils/utils';\nimport {RedirectionPayload} from '../../common/search-box/redirection-payload';\nimport {SearchBoxWrapper} from '../../common/search-box/stencil-search-box-wrapper';\nimport {SearchTextArea} from '../../common/search-box/stencil-search-text-area';\nimport {SubmitButton} from '../../common/search-box/stencil-submit-button';\nimport {SuggestionManager} from '../../common/suggestions/stencil-suggestion-manager';\nimport {\n elementHasQuery,\n} from '../../common/suggestions/suggestions-utils';\nimport type {\n SearchBoxSuggestionElement,\n SearchBoxSuggestionsBindings,\n SearchBoxSuggestionsEvent,\n} from '../../common/suggestions/suggestions-types';\nimport {Bindings} from '../atomic-search-interface/atomic-search-interface';\nimport { getDefaultSlotFromHost } from '@/src/utils/slot-utils';\n\n/**\n * The `atomic-search-box` component creates a search box with built-in support for suggestions.\n *\n * @slot default - The default slot where you can add child components to the search box.\n *\n * @part wrapper - The search box wrapper.\n * @part input - The search box input.\n * @part loading - The search box loading animation.\n * @part clear-button - The button to clear the search box of input.\n * @part clear-icon - The clear button's icon.\n * @part submit-button - The search box submit button.\n * @part submit-icon - The search box submit button's icon.\n * @part suggestions - A list of suggested query corrections on each panel.\n * @part suggestions-left - A list of suggested query corrections on the left panel.\n * @part suggestions-right - A list of suggested query corrections on the right panel.\n * @part suggestions-wrapper - The wrapper that contains suggestion panels.\n * @part suggestions-single-list - The wrapper that contains 1 suggestion list.\n * @part suggestions-double-list - The wrapper that contains 2 suggestion lists.\n * @part suggestion - A suggested query correction.\n * @part active-suggestion - The currently active suggestion.\n * @part suggestion-divider - An item in the list that separates groups of suggestions.\n * @part suggestion-with-query - An item in the list that will update the search box query.\n *\n * @part query-suggestion-item - A suggestion from the `atomic-search-box-query-suggestions` component.\n * @part query-suggestion-content - The contents of a suggestion from the `atomic-search-box-query-suggestions` component.\n * @part query-suggestion-icon - The icon of a suggestion from the `atomic-search-box-query-suggestions` component.\n * @part query-suggestion-text - The text of a suggestion from the `atomic-search-box-query-suggestions` component.\n *\n * @part recent-query-item - A suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-content - The contents of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-icon - The icon of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-text - The text of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-text-highlight - The highlighted portion of the text of a suggestion from the `atomic-search-box-recent-queries` component.\n * @part recent-query-title-item - The clear button above suggestions from the `atomic-search-box-recent-queries` component.\n * @part recent-query-title-content - The contents of the clear button above suggestions from the `atomic-search-box-recent-queries` component.\n * @part recent-query-title - The \"recent searches\" text of the clear button above suggestions from the `atomic-search-box-recent-queries` component.\n * @part recent-query-clear - The \"clear\" text of the clear button above suggestions from the `atomic-search-box-recent-queries` component.\n *\n * @part instant-results-item - An instant result rendered by an `atomic-search-box-instant-results` component.\n * @part instant-results-show-all - The clickable suggestion to show all items for the current instant results search rendered by an `atomic-search-box-instant-results` component.\n * @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-search-box-instant-results` component.\n */\n@Component({\n tag: 'atomic-search-box',\n styleUrl: 'atomic-search-box.pcss',\n shadow: true,\n})\nexport class AtomicSearchBox implements InitializableComponent<Bindings> {\n @InitializeBindings() public bindings!: Bindings;\n private searchBox!: SearchBox | StandaloneSearchBox;\n private searchBoxSuggestionEventsQueue: CustomEvent<\n SearchBoxSuggestionsEvent<SearchBox | StandaloneSearchBox>\n >[] = [];\n private id!: string;\n private textAreaRef!: HTMLTextAreaElement;\n private suggestionManager!: SuggestionManager<\n SearchBox | StandaloneSearchBox\n >;\n\n @Element() private host!: HTMLElement;\n\n @BindStateToController('searchBox')\n @State()\n private searchBoxState!: SearchBoxState | StandaloneSearchBoxState;\n @State() public error!: Error;\n @State() private isExpanded = false;\n\n /**\n * The amount of queries displayed when the user interacts with the search box.\n * By default, a mix of query suggestions and recent queries will be shown.\n * You can configure those settings using the following components as children:\n * - atomic-search-box-query-suggestions\n * - atomic-search-box-recent-queries\n */\n @Prop({reflect: true}) public numberOfQueries = 8;\n\n /**\n * Defining this option makes the search box standalone (see [Use a\n * Standalone Search Box](https://docs.coveo.com/en/atomic/latest/usage/ssb/)).\n *\n * This option defines the default URL the user should be redirected to, when a query is submitted.\n * If a query pipeline redirect is triggered, it will redirect to that URL instead\n * (see [query pipeline triggers](https://docs.coveo.com/en/1458)).\n */\n @Prop({reflect: true}) public redirectionUrl?: string;\n\n /**\n * The timeout for suggestion queries, in milliseconds.\n * If a suggestion query times out, the suggestions from that particular query won't be shown.\n */\n @Prop() public suggestionTimeout = 400;\n\n /**\n * The delay for suggestion queries on input, in milliseconds.\n *\n * The suggestion request will be delayed until the end user stops typing for at least the specified amount of time.\n *\n * This delay is used to avoid sending too many requests to the Coveo Platform when the user is typing, as well as reducing potential input lag on low end devices.\n * A higher delay will reduce input lag, at the cost of suggestions freshness.\n */\n @Prop() public suggestionDelay = 0;\n\n /**\n * Whether to prevent the user from triggering searches and query suggestions from the component.\n * Perfect for use cases where you need to disable the search conditionally.\n * For the specific case when you need to disable the search based on the length of the query, refer to {@link minimumQueryLength}.\n */\n @Prop({reflect: true}) public disableSearch = false;\n\n /**\n * The minimum query length required to enable search.\n * For example, to disable the search for empty queries, set this to `1`.\n */\n @Prop({reflect: true}) public minimumQueryLength = 0;\n\n /**\n * Whether to clear all active query filters when the end user submits a new query from the search box.\n * Setting this option to \"false\" is not recommended & can lead to an increasing number of queries returning no results.\n */\n @Prop({reflect: true}) public clearFilters = true;\n\n /**\n * Whether to interpret advanced [Coveo Cloud query syntax](https://docs.coveo.com/en/1814/) in the query.\n * You should only enable query syntax in the search box if you have good reasons to do so, as it\n * requires end users to be familiar with Coveo Cloud query syntax, otherwise they will likely be surprised\n * by the search box behaviour.\n *\n * When the `redirection-url` property is set and redirects to a page with more `atomic-search-box` components, all `atomic-search-box` components need to have the same `enable-query-syntax` value.\n */\n @Prop({reflect: true}) public enableQuerySyntax = false;\n\n /**\n * Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.\n *\n * Example:\n * ```html\n * <script>\n * document.querySelector('atomic-search-box').addEventListener((e) => {\n * e.preventDefault();\n * // handle redirection\n * });\n * </script>\n * ...\n * <atomic-search-box redirection-url=\"/search\"></atomic-search-box>\n * ```\n */\n @Event({\n eventName: 'redirect',\n })\n public redirect!: EventEmitter<RedirectionPayload>;\n\n @AriaLiveRegion('search-box')\n protected searchBoxAriaMessage!: string;\n\n @AriaLiveRegion('search-suggestions', true)\n protected suggestionsAriaMessage!: string;\n\n private isStandaloneSearchBox(\n searchBox: SearchBox | StandaloneSearchBox\n ): searchBox is StandaloneSearchBox {\n return 'redirectTo' in searchBox;\n }\n\n public initialize() {\n this.id ||= randomID('atomic-search-box-');\n\n this.initializeSearchboxController();\n this.initializeSuggestionManager();\n }\n\n private updateRedirectionUrl() {\n if (this.isStandaloneSearchBox(this.searchBox) && this.redirectionUrl) {\n this.searchBox.updateRedirectUrl(this.redirectionUrl);\n } else {\n this.registerNewSearchBoxController();\n }\n }\n\n private registerNewSearchBoxController() {\n this.disconnectedCallback();\n this.initialize();\n }\n\n private initializeSearchboxController() {\n this.searchBox = this.redirectionUrl\n ? buildStandaloneSearchBox(this.bindings.engine, {\n options: {\n ...this.searchBoxOptions,\n redirectionUrl: this.redirectionUrl,\n overwrite: true,\n },\n })\n : buildSearchBox(this.bindings.engine, {\n options: this.searchBoxOptions,\n });\n }\n\n public componentWillUpdate() {\n if (\n !('redirectTo' in this.searchBoxState) ||\n !('afterRedirection' in this.searchBox)\n ) {\n return;\n }\n\n const {redirectTo, value, analytics} = this.searchBoxState;\n\n if (redirectTo === '') {\n return;\n }\n const data: StandaloneSearchBoxData = {\n value,\n enableQuerySyntax: this.enableQuerySyntax,\n analytics,\n };\n const storage = new SafeStorage();\n storage.setJSON(StorageItems.STANDALONE_SEARCH_BOX_DATA, data);\n\n this.searchBox.afterRedirection();\n const event = this.redirect.emit({redirectTo, value});\n if (!event.defaultPrevented) {\n window.location.href = redirectTo;\n }\n }\n\n public disconnectedCallback = () => {};\n\n @Listen('atomic/searchBoxSuggestion/register')\n public registerSuggestions(\n event: CustomEvent<\n SearchBoxSuggestionsEvent<SearchBox | StandaloneSearchBox>\n >\n ) {\n if (!this.bindings) {\n this.searchBoxSuggestionEventsQueue.push(event);\n } else {\n this.suggestionManager.registerSuggestionsFromEvent(\n event,\n this.suggestionBindings\n );\n }\n }\n\n private registerSearchboxSuggestionEvents() {\n this.searchBoxSuggestionEventsQueue.forEach((evt) => {\n this.suggestionManager.registerSuggestionsFromEvent(\n evt,\n this.suggestionBindings\n );\n });\n this.searchBoxSuggestionEventsQueue = [];\n }\n\n @Watch('redirectionUrl')\n watchRedirectionUrl() {\n this.updateRedirectionUrl();\n }\n\n private initializeSuggestionManager() {\n if (this.suggestionManager) {\n return;\n }\n\n this.suggestionManager = new SuggestionManager({\n getNumberOfSuggestionsToDisplay: () => this.numberOfQueries,\n updateQuery: (query) => this.searchBox.updateText(query),\n getSearchBoxValue: () => this.searchBoxState.value,\n getSuggestionTimeout: () => this.suggestionTimeout,\n getSuggestionDelay: () => this.suggestionDelay,\n getHost: () => this.host,\n getLogger: () => this.bindings.engine.logger,\n });\n this.suggestionManager.initializeSuggestions(this.suggestionBindings);\n }\n\n private get suggestionBindings(): SearchBoxSuggestionsBindings<\n SearchBox | StandaloneSearchBox\n > {\n return spreadProperties(\n this.bindings,\n this.suggestionManager.partialSuggestionBindings,\n this.partialSuggestionBindings\n );\n }\n\n private get partialSuggestionBindings(): Pick<\n SearchBoxSuggestionsBindings<SearchBox | StandaloneSearchBox>,\n | 'id'\n | 'isStandalone'\n | 'searchBoxController'\n | 'numberOfQueries'\n | 'clearFilters'\n > {\n return Object.defineProperties(\n {...this.bindings},\n {\n id: {\n get: () => this.id,\n enumerable: true,\n },\n searchBoxController: {\n get: () => this.searchBox,\n enumerable: true,\n },\n isStandalone: {\n get: () => !!this.redirectionUrl,\n enumerable: true,\n },\n numberOfQueries: {\n get: () => this.numberOfQueries,\n enumerable: true,\n },\n clearFilters: {\n get: () => this.clearFilters,\n enumerable: true,\n },\n }\n ) as unknown as Pick<\n SearchBoxSuggestionsBindings<SearchBox | StandaloneSearchBox>,\n | 'id'\n | 'isStandalone'\n | 'searchBoxController'\n | 'numberOfQueries'\n | 'clearFilters'\n >;\n }\n\n private get searchBoxOptions(): SearchBoxOptions {\n return {\n id: this.id,\n numberOfSuggestions: 0,\n highlightOptions: {\n notMatchDelimiters: {\n open: '<span class=\"font-bold\">',\n close: '</span>',\n },\n correctionDelimiters: {\n open: '<span class=\"font-normal\">',\n close: '</span>',\n },\n },\n clearFilters: this.clearFilters,\n enableQuerySyntax: this.enableQuerySyntax,\n };\n }\n\n private updateBreakpoints = once(() => updateBreakpoints(this.host));\n\n private async onInput(value: string) {\n this.searchBox.updateText(value);\n\n if (this.isSearchDisabledForEndUser(value)) {\n this.suggestionManager.clearSuggestions();\n return;\n }\n this.isExpanded = true;\n await this.suggestionManager.triggerSuggestions();\n this.announceNewSuggestionsToScreenReader();\n }\n\n private async onFocus() {\n if (this.isExpanded) {\n return;\n }\n this.isExpanded = true;\n await this.suggestionManager.triggerSuggestions();\n this.announceNewSuggestionsToScreenReader();\n }\n\n private onSubmit() {\n this.isExpanded = false;\n if (this.suggestionManager.keyboardActiveDescendant) {\n this.suggestionManager.onSubmit();\n return;\n }\n\n this.searchBox.submit();\n }\n\n private async onKeyDown(e: KeyboardEvent) {\n if (this.isSearchDisabledForEndUser(this.searchBoxState.value)) {\n return;\n }\n\n switch (e.key) {\n case 'Enter':\n this.onSubmit();\n break;\n case 'Escape':\n this.suggestionManager.clearSuggestions();\n break;\n case 'ArrowDown':\n e.preventDefault();\n await this.suggestionManager.focusNextValue();\n this.announceNewActiveSuggestionToScreenReader();\n break;\n case 'ArrowUp':\n e.preventDefault();\n await this.suggestionManager.focusPreviousValue();\n this.announceNewActiveSuggestionToScreenReader();\n break;\n case 'ArrowRight':\n if (\n this.suggestionManager.hasActiveDescendant ||\n !this.searchBox.state.value\n ) {\n e.preventDefault();\n this.suggestionManager.focusPanel('right');\n this.announceNewActiveSuggestionToScreenReader();\n }\n break;\n case 'ArrowLeft':\n if (\n this.suggestionManager.hasActiveDescendant ||\n !this.searchBox.state.value\n ) {\n e.preventDefault();\n this.suggestionManager.focusPanel('left');\n this.announceNewActiveSuggestionToScreenReader();\n }\n break;\n case 'Tab':\n this.suggestionManager.clearSuggestions();\n break;\n default:\n if (this.suggestionManager.keyboardActiveDescendant) {\n this.suggestionManager.updateKeyboardActiveDescendant();\n }\n break;\n }\n }\n\n private triggerTextAreaChange(value: string) {\n this.textAreaRef.value = value;\n this.textAreaRef.dispatchEvent(new window.Event('change'));\n }\n\n private renderSuggestion(\n item: SearchBoxSuggestionElement,\n index: number,\n lastIndex: number,\n side: 'left' | 'right'\n ) {\n const id = `${this.id}-${side}-suggestion-${item.key}`;\n\n const isSelected = id === this.suggestionManager.activeDescendant;\n\n if (index === lastIndex && item.hideIfLast) {\n return null;\n }\n\n return (\n <atomic-suggestion-renderer\n i18n={this.bindings.i18n}\n id={id}\n suggestion={item}\n isSelected={isSelected}\n side={side}\n index={index}\n lastIndex={lastIndex}\n isDoubleList={this.suggestionManager.isDoubleList}\n onClick={(e: Event) => {\n this.suggestionManager.onSuggestionClick(item, e);\n if (item.key === 'recent-query-clear') {\n return;\n }\n\n this.isExpanded = false;\n }}\n onMouseOver={() => {\n this.suggestionManager.onSuggestionMouseOver(item, side, id);\n }}\n ></atomic-suggestion-renderer>\n );\n }\n\n private renderPanel(\n side: 'left' | 'right',\n elements: SearchBoxSuggestionElement[],\n setRef: (el: HTMLElement | undefined) => void,\n getRef: () => HTMLElement | undefined\n ) {\n if (!elements.length) {\n return null;\n }\n\n return (\n <div\n part={`suggestions suggestions-${side}`}\n ref={setRef}\n class=\"flex grow basis-1/2 flex-col\"\n onMouseDown={(e) => {\n if (e.target === getRef()) {\n e.preventDefault();\n }\n }}\n >\n {elements.map((suggestion, index) =>\n this.renderSuggestion(suggestion, index, elements.length - 1, side)\n )}\n </div>\n );\n }\n\n private get shouldShowSuggestions() {\n return (\n this.suggestionManager.hasSuggestions &&\n this.isExpanded &&\n !this.isSearchDisabledForEndUser(this.searchBoxState.value)\n );\n }\n\n private renderSuggestions() {\n return (\n <div\n id={`${this.id}-popup`}\n part={`suggestions-wrapper ${\n this.suggestionManager.isDoubleList\n ? 'suggestions-double-list'\n : 'suggestions-single-list'\n }`}\n class={`bg-background border-neutral absolute top-full left-0 z-10 flex w-full rounded-md border ${\n this.shouldShowSuggestions ? '' : 'hidden'\n }`}\n role=\"application\"\n aria-label={this.bindings.i18n.t(\n this.suggestionManager.isDoubleList\n ? 'search-suggestions-double-list'\n : 'search-suggestions-single-list'\n )}\n {...(this.suggestionManager.activeDescendant && {\n 'aria-activedescendant': this.suggestionManager.activeDescendant,\n })}\n >\n {this.renderPanel(\n 'left',\n this.suggestionManager.leftSuggestionElements,\n (el) => (this.suggestionManager.leftPanel = el),\n () => this.suggestionManager.leftPanel\n )}\n {this.renderPanel(\n 'right',\n this.suggestionManager.rightSuggestionElements,\n (el) => (this.suggestionManager.rightPanel = el),\n () => this.suggestionManager.rightPanel\n )}\n </div>\n );\n }\n\n private renderTextBox = (searchLabel: string) => {\n const props = {\n loading: this.searchBoxState.isLoading,\n bindings: this.bindings,\n value: this.searchBoxState.value,\n title: searchLabel,\n ariaLabel: searchLabel,\n onFocus: () => this.onFocus(),\n onInput: (e: Event) =>\n this.onInput(\n (e.target as HTMLInputElement | HTMLTextAreaElement).value\n ),\n onKeyDown: (e: KeyboardEvent) => this.onKeyDown(e),\n onClear: () => {\n this.announceClearSearchBoxToScreenReader()\n this.searchBox.clear();\n this.suggestionManager.clearSuggestions();\n },\n popup: {\n id: `${this.id}-popup`,\n activeDescendant: this.suggestionManager.activeDescendant,\n expanded: this.isExpanded,\n hasSuggestions: this.suggestionManager.hasSuggestions,\n },\n };\n\n return (\n <SearchTextArea\n textAreaRef={this.textAreaRef}\n ref={(el) => (this.textAreaRef = el as HTMLTextAreaElement)}\n {...props}\n onClear={() => {\n props.onClear();\n this.triggerTextAreaChange('');\n }}\n />\n );\n };\n\n private renderAbsolutePositionSpacer() {\n return (\n <textarea\n aria-hidden\n part=\"textarea-spacer\"\n class=\"invisible w-full px-4 py-3.5 text-lg\"\n rows={1}\n ></textarea>\n );\n }\n\n private isSearchDisabledForEndUser(queryValue?: string) {\n if (isNullOrUndefined(queryValue)) {\n return this.disableSearch;\n }\n\n if (queryValue.trim().length < this.minimumQueryLength) {\n return true;\n }\n\n return this.disableSearch;\n }\n\n private getSearchInputLabel(minimumQueryLength = 0) {\n if (this.isSearchDisabledForEndUser(this.searchBoxState.value)) {\n return this.bindings.i18n.t('search-disabled', {\n length: minimumQueryLength,\n });\n }\n\n if (isMacOS()) {\n return this.bindings.i18n.t('search-box-with-suggestions-macos');\n }\n if (!hasKeyboard()) {\n return this.bindings.i18n.t('search-box-with-suggestions-keyboardless');\n }\n return this.bindings.i18n.t('search-box-with-suggestions');\n }\n\n private announceNewActiveSuggestionToScreenReader() {\n const ariaLabel = this.suggestionManager.activeDescendantElement?.ariaLabel;\n if (isMacOS() && ariaLabel) {\n this.suggestionsAriaMessage = ariaLabel;\n }\n }\n\n private announceClearSearchBoxToScreenReader() {\n this.suggestionsAriaMessage = this.bindings.i18n.t(\"search-box-cleared\")\n }\n\n private announceNewSuggestionsToScreenReader() {\n const elsLength =\n this.suggestionManager.allSuggestionElements.filter(\n elementHasQuery\n ).length;\n this.searchBoxAriaMessage = elsLength\n ? this.bindings.i18n.t(\n this.searchBoxState.value\n ? 'query-suggestions-available'\n : 'query-suggestions-available-no-query',\n {\n count: elsLength,\n query: this.searchBoxState.value,\n }\n )\n : this.bindings.i18n.t('query-suggestions-unavailable');\n }\n\n private renderSlotContent() {\n const hasDefaultSlot = !!getDefaultSlotFromHost(this.host);\n\n if (hasDefaultSlot) {\n return <slot></slot>;\n }\n\n return [\n <atomic-search-box-recent-queries></atomic-search-box-recent-queries>,\n <atomic-search-box-query-suggestions></atomic-search-box-query-suggestions>,\n ];\n }\n\n public render() {\n this.updateBreakpoints();\n\n const searchLabel = this.getSearchInputLabel(this.minimumQueryLength);\n const isDisabled = this.isSearchDisabledForEndUser(\n this.searchBoxState.value\n );\n if (!this.suggestionManager.suggestions.length) {\n this.registerSearchboxSuggestionEvents();\n }\n\n return (\n <Host>\n {this.renderAbsolutePositionSpacer()}\n {[\n <SearchBoxWrapper\n disabled={isDisabled}\n onFocusout={(event) => {\n if (!isFocusingOut(event)) {\n return;\n }\n this.suggestionManager.clearSuggestions();\n this.isExpanded = false;\n }}\n >\n {this.renderTextBox(searchLabel)}\n <SubmitButton\n bindings={this.bindings}\n disabled={isDisabled}\n onClick={() => {\n this.searchBox.submit();\n this.suggestionManager.clearSuggestions();\n }}\n />\n {this.renderSuggestions()}\n </SearchBoxWrapper>,\n this.renderSlotContent(),\n ]}\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -22,7 +22,7 @@ import { bindingGuard } from "../../../decorators/binding-guard";
|
|
22
22
|
import { bindings } from "../../../decorators/bindings";
|
23
23
|
import { errorGuard } from "../../../decorators/error-guard";
|
24
24
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
25
|
-
import { FocusTargetController } from "../../../utils/accessibility-utils";
|
25
|
+
import { AriaLiveRegionController, FocusTargetController, } from "../../../utils/accessibility-utils";
|
26
26
|
import { parseDate } from "../../../utils/date-utils";
|
27
27
|
import { getFieldValueCaption } from "../../../utils/field-utils";
|
28
28
|
import styles from './atomic-commerce-breadbox.tw.css';
|
@@ -49,6 +49,7 @@ let AtomicCommerceBreadbox = class AtomicCommerceBreadbox extends LitElement {
|
|
49
49
|
this.numberOfCollapsedBreadcrumbs = 0;
|
50
50
|
this.isCollapsed = true;
|
51
51
|
this.showMoreText = '';
|
52
|
+
this.breadboxAriaMessage = new AriaLiveRegionController(this, 'breadbox', true);
|
52
53
|
/**
|
53
54
|
* This prop allows you to control the display depth
|
54
55
|
* of the path by specifying the number of parent or ancestor
|
@@ -230,6 +231,7 @@ let AtomicCommerceBreadbox = class AtomicCommerceBreadbox extends LitElement {
|
|
230
231
|
await this.breadcrumbShowMoreFocus.setTarget(ref);
|
231
232
|
}
|
232
233
|
},
|
234
|
+
ariaController: this.breadboxAriaMessage,
|
233
235
|
},
|
234
236
|
})(html `${renderBreadcrumbContent({
|
235
237
|
props: {
|