@coveo/atomic 3.30.1-pre.b9a94ab348 → 3.30.1-pre.c9170aa2ce
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/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -2
- package/dist/atomic/components/_index.js +0 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-product-image.js +6 -0
- package/dist/atomic/components/atomic-product-image.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +169 -0
- package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.tw.css.js +2 -0
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -0
- package/dist/atomic/components/components/commerce/index.js +1 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +1 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/{p-b37a4633.js → p-445ef2eb.js} +2 -2
- package/dist/atomic/{p-26894735.entry.js → p-50fadbb5.entry.js} +2 -2
- package/dist/atomic/{p-0280eabd.entry.js → p-a91c32c7.entry.js} +2 -2
- package/dist/atomic/{p-1e72083a.entry.js → p-baf18842.entry.js} +2 -2
- package/dist/atomic/p-e883ad5b.entry.js.map +1 -1
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-d59b5689.js → analytics-config-95de1bd9.js} +2 -2
- package/dist/cjs/{analytics-config-d59b5689.js.map → analytics-config-95de1bd9.js.map} +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-image.cjs.entry.js +6 -0
- package/dist/cjs/atomic-product-image.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +0 -4
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-a1636408.js → analytics-config-345f9d27.js} +2 -2
- package/dist/esm/{analytics-config-a1636408.js.map → analytics-config-345f9d27.js.map} +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-product-image.entry.js +6 -0
- package/dist/esm/atomic-product-image.entry.js.map +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/index-3f35faca.js +0 -4
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts +2 -2
- package/dist/types/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.d.ts +2 -2
- package/dist/types/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.d.ts +20 -14
- package/dist/types/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-price/atomic-product-price.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +1 -0
- package/dist/types/components/commerce/index.d.ts +1 -0
- package/dist/types/components/common/atomic-result-placeholder/item-placeholders.d.ts +1 -1
- package/dist/types/components/common/facets/facet-common-store.d.ts +1 -1
- package/dist/types/components/common/image-carousel/image-carousel-indicators.d.ts +3 -3
- package/dist/types/components/common/image-carousel/image-carousel.d.ts +4 -4
- package/dist/types/components/common/image-carousel/stencil-image-carousel-indicators.d.ts +12 -0
- package/dist/types/components/common/image-carousel/stencil-image-carousel.d.ts +15 -0
- package/dist/types/components/common/interface/interface-common.d.ts +2 -2
- package/dist/types/components/common/item-list/context/item-context-controller.d.ts +1 -1
- package/dist/types/components/common/item-list/display-wrapper.d.ts +1 -1
- package/dist/types/components/common/item-list/table-layout.d.ts +1 -1
- package/dist/types/components/common/item-text/item-text-fallback.d.ts +1 -1
- package/dist/types/components/common/item-text/item-text-highlighted.d.ts +1 -1
- package/dist/types/components/common/no-items/guard.d.ts +1 -1
- package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
- package/dist/types/components/common/suggestions/suggestions-common.d.ts +1 -1
- package/dist/types/components/context/bindings-context.d.ts +1 -1
- package/dist/types/components.d.ts +0 -49
- package/dist/types/decorators/inject-styles-for-no-shadow-dom.d.ts +1 -1
- package/dist/types/utils/props-utils.d.ts +1 -1
- package/docs/atomic-docs.json +1 -135
- package/package.json +5 -5
- package/dist/atomic/components/atomic-product-multi-value-text.d.ts +0 -11
- package/dist/atomic/components/atomic-product-multi-value-text.js +0 -158
- package/dist/atomic/components/atomic-product-multi-value-text.js.map +0 -1
- package/dist/atomic/p-3f27f540.entry.js +0 -2
- package/dist/atomic/p-3f27f540.entry.js.map +0 -1
- package/dist/cjs/atomic-product-multi-value-text.cjs.entry.js +0 -146
- package/dist/cjs/atomic-product-multi-value-text.cjs.entry.js.map +0 -1
- package/dist/esm/atomic-product-multi-value-text.entry.js +0 -142
- package/dist/esm/atomic-product-multi-value-text.entry.js.map +0 -1
- /package/dist/atomic/{p-b37a4633.js.map → p-445ef2eb.js.map} +0 -0
- /package/dist/atomic/{p-26894735.entry.js.map → p-50fadbb5.entry.js.map} +0 -0
- /package/dist/atomic/{p-0280eabd.entry.js.map → p-a91c32c7.entry.js.map} +0 -0
- /package/dist/atomic/{p-1e72083a.entry.js.map → p-baf18842.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-dc3df5ce.js";export{s as setNonce}from"./p-dc3df5ce.js";import{g as a}from"./p-e1255160.js";var i=()=>{const t=import.meta.url;const a={};if(t!==""){a.resourcesUrl=new URL(".",t).href}return e(a)};i().then((async e=>{await a();return t(JSON.parse('[["p-446b788b",[[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-c4b07e90",[[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-07d19b22",[[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-9d3858df",[[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-4c272a6c",[[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-eefae5f3",[[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-11d00cb7",[[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-11fc1800",[[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-bdfd2e76",[[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-84740eed",[[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-ecfe4a14",[[0,"atomic-commerce-facets",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetGeneratorState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-7f3dd6ef",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-81fa9806",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-bc580c32",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-26894735",[[1,"atomic-search-interface",{"fieldsToInclude":[1025,"fields-to-include"],"pipeline":[1537],"searchHub":[1537,"search-hub"],"analytics":[516],"timezone":[513],"logLevel":[513,"log-level"],"i18n":[16],"language":[513],"engine":[1040],"reflectStateInUrl":[516,"reflect-state-in-url"],"scrollContainer":[513,"scroll-container"],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"enableRelevanceInspector":[516,"enable-relevance-inspector"],"CspNonce":[513,"csp-nonce"],"error":[32],"relevanceInspectorIsOpen":[32],"initialize":[64],"initializeWithSearchEngine":[64],"executeFirstSearch":[64]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","scrollToTop"],[0,"atomic/relevanceInspector/close","closeRelevanceInspector"]],{"searchHub":["updateSearchHub"],"pipeline":["updatePipeline"],"analytics":["toggleAnalytics"],"language":["updateLanguage"],"iconAssetsPath":["updateIconAssetsPath"]}]]],["p-41d42425",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-ad51bbe0",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-6f8f1f01",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-48d35e0e",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-716e9e1d",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-b043958c",[[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-842bd0bc",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-cfa49eeb",[[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-ac93a338",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-8fcd9605",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-3f50439d",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-f8d58d5f",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-7399a93c",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-724422db",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-174f6410",[[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-1176959c",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-b0172d8a",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-3cae3945",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-85749286",[[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-b8392842",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-f525677e",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-c67f8f3d",[[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-101d9faa",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-64dc1a62",[[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-f382e228",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-609d801e",[[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-621acd20",[[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-307f0fd1",[[0,"atomic-external",{"selector":[513],"boundInterface":[1040]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","handleScrollToTop"],[8,"atomic/parentReady","handleParentReady"]]]]],["p-e14019fd",[[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-3a22931a",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-b8beb062",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-efd2bb5f",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-5fc9f751",[[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-e790d557",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-a0a70368",[[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"],"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-b6849cd9",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-0873c1b8",[[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-304ce977",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-eeee13ab",[[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"],"generatedAnswerState":[32],"searchStatusState":[32],"error":[32],"copied":[32],"copyError":[32]},null,{"generatedAnswerState":["updateAnswerCollapsed"]}]]],["p-844b538a",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-1e72083a",[[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-5e1091db",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-422671dc",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-16814430",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-23ce8653",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-26dcc17d",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-6c88c34c",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-c08adb83",[[0,"atomic-insight-result-action-bar"]]],["p-eebc7deb",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-993c3c82",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-7b6843d6",[[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-538fa6a8",[[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-99aed728",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-a4f1e397",[[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-145f5227",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-5c7a3eef",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-79a1d93a",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-0ad7746d",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-bc790446",[[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-905e8bfd",[[1,"atomic-pager",{"numberOfPages":[514,"number-of-pages"],"previousButtonIcon":[513,"previous-button-icon"],"nextButtonIcon":[513,"next-button-icon"],"pagerState":[32],"searchStatusState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-745322ff",[[0,"atomic-product-description",{"truncateAfter":[1,"truncate-after"],"field":[1],"isCollapsible":[4,"is-collapsible"],"isExpanded":[32],"isTruncated":[32]}]]],["p-7c62d253",[[4,"atomic-product-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-e883ad5b",[[1,"atomic-product-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32],"currentImage":[32],"images":[32],"previousImage":[64],"nextImage":[64],"navigateToImage":[64]}]]],["p-bb6dc512",[[4,"atomic-product-link",{"hrefTemplate":[513,"href-template"]}]]],["p-3f27f540",[[1,"atomic-product-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-2c812e4e",[[1,"atomic-product-rating",{"field":[513],"ratingDetailsField":[513,"rating-details-field"],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"numberOfStars":[32],"ratingDetails":[32]}]]],["p-b878425f",[[0,"atomic-product-section-actions"]]],["p-8a959224",[[0,"atomic-product-section-badges"]]],["p-8ecb50bb",[[0,"atomic-product-section-bottom-metadata"]]],["p-9ebb392a",[[0,"atomic-product-section-children"]]],["p-0b790b7c",[[0,"atomic-product-section-description"]]],["p-30529a7b",[[0,"atomic-product-section-emphasized"]]],["p-84efa266",[[0,"atomic-product-section-metadata"]]],["p-6e0aa85b",[[0,"atomic-product-section-name"]]],["p-719d27a4",[[0,"atomic-product-section-visual",{"imageSize":[16]}]]],["p-33e788d0",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-6f1b0d7f",[[1,"atomic-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-107dc56b",[[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-e41d8eb0",[[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-d2996a22",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-0280eabd",[[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-7969276e",[[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-5a1b0c43",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-0afc3e7c",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-25f8b8d8",[[0,"atomic-result-fields-list"]]],["p-8ec6e54b",[[1,"atomic-result-icon"]]],["p-c9b01229",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-be04b3b0",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-f4a4f813",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-3e5a304a",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-d916edd6",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-d57f5ca9",[[0,"atomic-result-section-children"]]],["p-6c833c68",[[0,"atomic-result-section-emphasized"]]],["p-4ac7cf4d",[[0,"atomic-result-section-title-metadata"]]],["p-741cfe8d",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-b6f28f78",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-884ec36b",[[1,"atomic-results-per-page",{"choicesDisplayed":[513,"choices-displayed"],"initialChoice":[1538,"initial-choice"],"resultPerPageState":[32],"searchStatusState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-dbee1385",[[0,"atomic-search-layout",{"mobileBreakpoint":[513,"mobile-breakpoint"]}]]],["p-f7ae7657",[[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-16d994b4",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-e44ba87e",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-c8f4a164",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["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-a24a8702",[[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-6d25f34e",[[1,"atomic-modal",{"fullscreen":[1540],"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"close":[1040],"scope":[16],"boundary":[513],"error":[32]},[[16,"keyup","handleCloseOnEscape"],[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}],[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-69571c81",[[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-33188e77",[[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-3a731bee",[[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-aac5eebe",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-297903a6",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-27a6d0d9",[[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-a0445771",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-88e3af33",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-445af481",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-3f2442d3",[[1,"atomic-relevance-inspector",{"bindings":[16],"open":[516]}],[0,"atomic-aria-live",{"regions":[32],"updateMessage":[64],"registerRegion":[64]},[[4,"atomic/accessibility/findAriaLive","onFindAriaLive"]]]]],["p-5b888121",[[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-c8d47706",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}],[1,"atomic-search-box-recent-queries",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-92e09b96",[[0,"atomic-commerce-facet-number-input",{"bindings":[16],"label":[1],"range":[16],"facet":[16],"start":[32],"end":[32]}]]],["p-7abdbad3",[[0,"atomic-facet-date-input",{"bindings":[16],"rangeGetter":[16],"rangeSetter":[16],"facetId":[1,"facet-id"],"label":[1],"min":[1],"max":[1],"start":[32],"end":[32]}]]],["p-34280d19",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-3f627d55",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-f7fff4b1",[[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-b7df58a2",[[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-fc68c8b0",[[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-3f881919",[[1,"atomic-commerce-numeric-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32]},[[0,"atomic/numberInputApply","applyNumberInput"]]],[1,"atomic-commerce-timeframe-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32],"inputRange":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]],[1,"atomic-commerce-category-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32]}],[1,"atomic-commerce-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32]}]]],["p-ea4db91a",[[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-aaaa424a",[[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-30417eb1",[[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-51c8d252",[[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-6647f464",[[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-f1bbe060",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-13d7ebbd",[[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-446b788b",[[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-c4b07e90",[[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-07d19b22",[[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-9d3858df",[[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-4c272a6c",[[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-eefae5f3",[[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-11d00cb7",[[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-11fc1800",[[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-bdfd2e76",[[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-84740eed",[[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-ecfe4a14",[[0,"atomic-commerce-facets",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetGeneratorState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-7f3dd6ef",[[1,"atomic-insight-user-actions-toggle",{"userId":[1,"user-id"],"ticketCreationDateTime":[1,"ticket-creation-date-time"],"excludedCustomActions":[16],"userActionsState":[32],"error":[32]}]]],["p-81fa9806",[[1,"atomic-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"searchStatusState":[32]}]]],["p-bc580c32",[[1,"atomic-insight-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-50fadbb5",[[1,"atomic-search-interface",{"fieldsToInclude":[1025,"fields-to-include"],"pipeline":[1537],"searchHub":[1537,"search-hub"],"analytics":[516],"timezone":[513],"logLevel":[513,"log-level"],"i18n":[16],"language":[513],"engine":[1040],"reflectStateInUrl":[516,"reflect-state-in-url"],"scrollContainer":[513,"scroll-container"],"languageAssetsPath":[513,"language-assets-path"],"iconAssetsPath":[513,"icon-assets-path"],"enableRelevanceInspector":[516,"enable-relevance-inspector"],"CspNonce":[513,"csp-nonce"],"error":[32],"relevanceInspectorIsOpen":[32],"initialize":[64],"initializeWithSearchEngine":[64],"executeFirstSearch":[64]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","scrollToTop"],[0,"atomic/relevanceInspector/close","closeRelevanceInspector"]],{"searchHub":["updateSearchHub"],"pipeline":["updatePipeline"],"analytics":["toggleAnalytics"],"language":["updateLanguage"],"iconAssetsPath":["updateIconAssetsPath"]}]]],["p-41d42425",[[1,"atomic-smart-snippet-suggestions",{"headingLevel":[514,"heading-level"],"snippetStyle":[1,"snippet-style"],"smartSnippetQuestionsListState":[32]}]]],["p-ad51bbe0",[[1,"atomic-insight-refine-toggle",{"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-6f8f1f01",[[0,"atomic-insight-result-quickview-action",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-48d35e0e",[[1,"atomic-ipx-refine-toggle",{"collapseFacetsAfter":[514,"collapse-facets-after"],"error":[32],"breadcrumbManagerState":[32],"searchStatusState":[32]}]]],["p-716e9e1d",[[1,"atomic-quickview",{"sandbox":[1],"error":[32],"quickviewState":[32]},[[16,"atomic/quickview/next","onNextQuickview"],[16,"atomic/quickview/previous","onPreviousQuickview"]]]]],["p-b043958c",[[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-842bd0bc",[[1,"atomic-tab-manager",{"clearFiltersOnTabChange":[4,"clear-filters-on-tab-change"],"tabManagerState":[32],"error":[32]}]]],["p-cfa49eeb",[[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-ac93a338",[[4,"atomic-insight-tabs",{"error":[32]}]]],["p-8fcd9605",[[4,"atomic-ipx-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-3f50439d",[[4,"atomic-ipx-tabs",{"error":[32]}]]],["p-f8d58d5f",[[1,"atomic-result-badge",{"field":[513],"label":[513],"icon":[513]}]]],["p-7399a93c",[[4,"atomic-result-link",{"hrefTemplate":[513,"href-template"]}]]],["p-724422db",[[0,"atomic-result-printable-uri",{"maxNumberOfParts":[514,"max-number-of-parts"],"listExpanded":[32],"error":[32]}]]],["p-174f6410",[[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-1176959c",[[1,"atomic-insight-search-box",{"disableSearch":[516,"disable-search"],"numberOfSuggestions":[514,"number-of-suggestions"],"searchBoxState":[32],"error":[32],"isExpanded":[32]}]]],["p-b0172d8a",[[1,"atomic-ipx-embedded",{"container":[1040],"error":[32],"hasFooterSlotElements":[32]}]]],["p-3cae3945",[[1,"atomic-ipx-modal",{"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"error":[32],"hasFooterSlotElements":[32]},[[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}]]],["p-85749286",[[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-b8392842",[[1,"atomic-popover",{"searchStatusState":[32],"facetState":[32],"error":[32],"isOpen":[32],"childFacet":[32]},[[0,"atomic/initializePopover","initializePopover"],[0,"keydown","handleKeyDown"]]]]],["p-f525677e",[[0,"atomic-result-html",{"field":[513],"sanitize":[516],"error":[32]}]]],["p-c67f8f3d",[[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-101d9faa",[[1,"atomic-breadbox",{"pathLimit":[2,"path-limit"],"breadcrumbManagerState":[32],"facetManagerState":[32],"error":[32],"isCollapsed":[32]}]]],["p-64dc1a62",[[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-f382e228",[[0,"atomic-citation",{"citation":[16],"index":[2],"sendHoverEndEvent":[16],"interactiveCitation":[16],"isOpen":[32]},null,{"isOpen":["sendHoverAnalytics"]}]]],["p-609d801e",[[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-621acd20",[[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-307f0fd1",[[0,"atomic-external",{"selector":[513],"boundInterface":[1040]},[[0,"atomic/initializeComponent","handleInitialization"],[0,"atomic/scrollToTop","handleScrollToTop"],[8,"atomic/parentReady","handleParentReady"]]]]],["p-e14019fd",[[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-3a22931a",[[4,"atomic-facet-manager",{"collapseFacetsAfter":[514,"collapse-facets-after"],"facetManagerState":[32],"error":[32]}]]],["p-b8beb062",[[4,"atomic-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-efd2bb5f",[[1,"atomic-format-currency",{"currency":[513],"error":[32]}]]],["p-5fc9f751",[[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-e790d557",[[1,"atomic-format-unit",{"unit":[513],"unitDisplay":[513,"unit-display"],"error":[32]}]]],["p-a0a70368",[[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"],"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-b6849cd9",[[1,"atomic-insight-edit-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-0873c1b8",[[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-304ce977",[[1,"atomic-insight-full-search-button",{"tooltip":[1025],"error":[32]}]]],["p-eeee13ab",[[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"],"generatedAnswerState":[32],"searchStatusState":[32],"error":[32],"copied":[32],"copyError":[32]},null,{"generatedAnswerState":["updateAnswerCollapsed"]}]]],["p-844b538a",[[1,"atomic-insight-history-toggle",{"clickCallback":[1040],"tooltip":[1025]}]]],["p-baf18842",[[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-5e1091db",[[0,"atomic-insight-layout",{"widget":[1540]},null,{"widget":["updateStyles"]}]]],["p-422671dc",[[1,"atomic-insight-no-results",{"searchStatusState":[32],"querySummaryState":[32],"error":[32]}]]],["p-16814430",[[1,"atomic-insight-pager",{"numberOfPages":[514,"number-of-pages"],"pagerState":[32],"searchStatusState":[32],"error":[32]}]]],["p-23ce8653",[[1,"atomic-insight-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-26dcc17d",[[1,"atomic-insight-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-6c88c34c",[[0,"atomic-insight-result-action",{"icon":[1025],"tooltip":[1025],"tooltipOnClick":[1025,"tooltip-on-click"],"action":[1025],"error":[32]}]]],["p-c08adb83",[[0,"atomic-insight-result-action-bar"]]],["p-eebc7deb",[[0,"atomic-insight-result-attach-to-case-action",{"error":[32],"attachToCaseState":[32]}]]],["p-993c3c82",[[0,"atomic-insight-result-attach-to-case-indicator",{"error":[32],"attachToCaseState":[32]}]]],["p-7b6843d6",[[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-538fa6a8",[[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-99aed728",[[1,"atomic-insight-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-a4f1e397",[[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-145f5227",[[1,"atomic-ipx-button",{"label":[513],"closeIcon":[513,"close-icon"],"openIcon":[513,"open-icon"],"isModalOpen":[1540,"is-modal-open"],"error":[32]}]]],["p-5c7a3eef",[[1,"atomic-ipx-tab",{"label":[513],"active":[1540],"expression":[1],"error":[32],"isAppLoaded":[32],"tabState":[32],"select":[64]}]]],["p-79a1d93a",[[1,"atomic-load-more-results",{"querySummaryState":[32],"resultListState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-0ad7746d",[[1,"atomic-no-results",{"enableCancelLastAction":[516,"enable-cancel-last-action"],"searchStatusState":[32],"historyState":[32],"querySummaryState":[32],"error":[32]}]]],["p-bc790446",[[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-905e8bfd",[[1,"atomic-pager",{"numberOfPages":[514,"number-of-pages"],"previousButtonIcon":[513,"previous-button-icon"],"nextButtonIcon":[513,"next-button-icon"],"pagerState":[32],"searchStatusState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-745322ff",[[0,"atomic-product-description",{"truncateAfter":[1,"truncate-after"],"field":[1],"isCollapsible":[4,"is-collapsible"],"isExpanded":[32],"isTruncated":[32]}]]],["p-7c62d253",[[4,"atomic-product-field-condition",{"ifDefined":[513,"if-defined"],"ifNotDefined":[513,"if-not-defined"],"mustMatch":[16],"mustNotMatch":[16]}]]],["p-e883ad5b",[[1,"atomic-product-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32],"currentImage":[32],"images":[32],"previousImage":[64],"nextImage":[64],"navigateToImage":[64]}]]],["p-bb6dc512",[[4,"atomic-product-link",{"hrefTemplate":[513,"href-template"]}]]],["p-2c812e4e",[[1,"atomic-product-rating",{"field":[513],"ratingDetailsField":[513,"rating-details-field"],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"numberOfStars":[32],"ratingDetails":[32]}]]],["p-b878425f",[[0,"atomic-product-section-actions"]]],["p-8a959224",[[0,"atomic-product-section-badges"]]],["p-8ecb50bb",[[0,"atomic-product-section-bottom-metadata"]]],["p-9ebb392a",[[0,"atomic-product-section-children"]]],["p-0b790b7c",[[0,"atomic-product-section-description"]]],["p-30529a7b",[[0,"atomic-product-section-emphasized"]]],["p-84efa266",[[0,"atomic-product-section-metadata"]]],["p-6e0aa85b",[[0,"atomic-product-section-name"]]],["p-719d27a4",[[0,"atomic-product-section-visual",{"imageSize":[16]}]]],["p-33e788d0",[[1,"atomic-query-error",{"queryErrorState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-6f1b0d7f",[[1,"atomic-query-summary",{"querySummaryState":[32],"error":[32]}]]],["p-107dc56b",[[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-e41d8eb0",[[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-d2996a22",[[1,"atomic-recs-error",{"recommendationListState":[32],"error":[32],"showMoreInfo":[32]}]]],["p-a91c32c7",[[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-7969276e",[[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-5a1b0c43",[[1,"atomic-result-children-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-0afc3e7c",[[0,"atomic-result-date",{"field":[513],"format":[513],"relativeTime":[516,"relative-time"],"error":[32]}]]],["p-25f8b8d8",[[0,"atomic-result-fields-list"]]],["p-8ec6e54b",[[1,"atomic-result-icon"]]],["p-c9b01229",[[0,"atomic-result-image",{"field":[513],"imageAltField":[513,"image-alt-field"],"fallback":[513],"useFallback":[32]}]]],["p-be04b3b0",[[0,"atomic-result-localized-text",{"localeKey":[1,"locale-key"],"field":[16],"fieldCount":[1,"field-count"],"error":[32]}]]],["p-f4a4f813",[[1,"atomic-result-multi-value-text",{"field":[513],"maxValuesToDisplay":[514,"max-values-to-display"],"delimiter":[513],"error":[32]}]]],["p-3e5a304a",[[0,"atomic-result-number",{"field":[513],"error":[32],"formatter":[32],"valueToDisplay":[32]},[[0,"atomic/numberFormat","setFormat"]]]]],["p-d916edd6",[[1,"atomic-result-rating",{"field":[513],"maxValueInIndex":[514,"max-value-in-index"],"icon":[513],"error":[32],"numberOfStars":[32]}]]],["p-d57f5ca9",[[0,"atomic-result-section-children"]]],["p-6c833c68",[[0,"atomic-result-section-emphasized"]]],["p-4ac7cf4d",[[0,"atomic-result-section-title-metadata"]]],["p-741cfe8d",[[1,"atomic-result-template",{"conditions":[16],"mustMatch":[16],"mustNotMatch":[16],"error":[32],"getTemplate":[64]}]]],["p-b6f28f78",[[0,"atomic-result-timespan",{"field":[513],"unit":[513],"format":[513],"error":[32]}]]],["p-884ec36b",[[1,"atomic-results-per-page",{"choicesDisplayed":[513,"choices-displayed"],"initialChoice":[1538,"initial-choice"],"resultPerPageState":[32],"searchStatusState":[32],"error":[32],"isAppLoaded":[32]}]]],["p-dbee1385",[[0,"atomic-search-layout",{"mobileBreakpoint":[513,"mobile-breakpoint"]}]]],["p-f7ae7657",[[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-16d994b4",[[1,"atomic-segmented-facet-scrollable",{"searchStatusState":[32],"error":[32],"hideLeftArrow":[32],"hideRightArrow":[32]},[[1,"wheel","handleScroll"],[1,"touchmove","handleScroll"],[0,"keydown","handleScroll"]]]]],["p-e44ba87e",[[1,"atomic-sort-dropdown",{"sortState":[32],"searchStatusState":[32],"tabManagerState":[32],"error":[32]}]]],["p-c8f4a164",[[0,"atomic-sort-expression",{"label":[513],"expression":[513],"tabsIncluded":[1537,"tabs-included"],"tabsExcluded":[1537,"tabs-excluded"]}]]],["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-a24a8702",[[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-69571c81",[[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-3a731bee",[[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-aac5eebe",[[1,"atomic-insight-refine-modal",{"openButton":[1040],"isOpen":[1540,"is-open"],"querySummaryState":[32],"breadcrumbManagerState":[32],"error":[32],"interfaceDimensions":[32]},null,{"isOpen":["watchEnabled"]}]]],["p-297903a6",[[1,"atomic-insight-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-27a6d0d9",[[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-a0445771",[[1,"atomic-smart-snippet-feedback-modal",{"source":[1040],"isOpen":[1540,"is-open"],"error":[32],"currentAnswer":[32]},null,{"isOpen":["watchToggleOpen"]}]]],["p-88e3af33",[[1,"atomic-html",{"value":[1],"sanitize":[516],"error":[32]}]]],["p-445af481",[[0,"atomic-tab-button",{"label":[1],"active":[4],"select":[16]}]]],["p-3f2442d3",[[1,"atomic-relevance-inspector",{"bindings":[16],"open":[516]}],[0,"atomic-aria-live",{"regions":[32],"updateMessage":[64],"registerRegion":[64]},[[4,"atomic/accessibility/findAriaLive","onFindAriaLive"]]]]],["p-5b888121",[[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-c8d47706",[[1,"atomic-search-box-query-suggestions",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}],[1,"atomic-search-box-recent-queries",{"icon":[1],"maxWithQuery":[514,"max-with-query"],"maxWithoutQuery":[514,"max-without-query"],"error":[32]}]]],["p-92e09b96",[[0,"atomic-commerce-facet-number-input",{"bindings":[16],"label":[1],"range":[16],"facet":[16],"start":[32],"end":[32]}]]],["p-7abdbad3",[[0,"atomic-facet-date-input",{"bindings":[16],"rangeGetter":[16],"rangeSetter":[16],"facetId":[1,"facet-id"],"label":[1],"min":[1],"max":[1],"start":[32],"end":[32]}]]],["p-34280d19",[[0,"atomic-facet-number-input",{"bindings":[16],"type":[1],"filter":[16],"filterState":[16],"label":[1],"start":[32],"end":[32]}]]],["p-3f627d55",[[1,"atomic-ipx-body",{"isOpen":[1028,"is-open"],"displayFooterSlot":[516,"display-footer-slot"],"error":[32]}]]],["p-f7fff4b1",[[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-b7df58a2",[[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-fc68c8b0",[[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-3f881919",[[1,"atomic-commerce-numeric-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32]},[[0,"atomic/numberInputApply","applyNumberInput"]]],[1,"atomic-commerce-timeframe-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32],"inputRange":[32]},[[0,"atomic/dateInputApply","applyDateInput"]]],[1,"atomic-commerce-category-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32]}],[1,"atomic-commerce-facet",{"summary":[16],"facet":[16],"isCollapsed":[1540,"is-collapsed"],"field":[513],"facetState":[32],"summaryState":[32],"error":[32]}]]],["p-aaaa424a",[[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-30417eb1",[[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-33188e77",[[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-51c8d252",[[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-6647f464",[[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-f1bbe060",[[0,"atomic-result-text",{"field":[513],"shouldHighlight":[516,"should-highlight"],"default":[513],"error":[32]}],[1,"atomic-text",{"value":[513],"count":[514],"error":[32]}]]],["p-ea4db91a",[[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-6d25f34e",[[1,"atomic-modal",{"fullscreen":[1540],"source":[1040],"container":[1040],"isOpen":[1540,"is-open"],"close":[1040],"scope":[16],"boundary":[513],"error":[32]},[[16,"keyup","handleCloseOnEscape"],[0,"touchmove","onWindowTouchMove"]],{"isOpen":["watchToggleOpen"]}],[0,"atomic-focus-trap",{"active":[4],"source":[1040],"container":[1040],"shouldHideSelf":[4,"should-hide-self"],"scope":[16]},[[4,"focusin","onFocusChanged"]],{"active":["activeChanged"]}]]],["p-13d7ebbd",[[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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,
|
|
1
|
+
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EClB7BH,IAAeQ,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,42nCAAuCJ,EAAA","ignoreList":[]}
|
|
@@ -171,8 +171,6 @@ export { AtomicProductImage as AtomicProductImage } from '../../types/components
|
|
|
171
171
|
export { defineCustomElement as defineCustomElementAtomicProductImage } from './atomic-product-image';
|
|
172
172
|
export { AtomicProductLink as AtomicProductLink } from '../../types/components/commerce/atomic-product-link/atomic-product-link';
|
|
173
173
|
export { defineCustomElement as defineCustomElementAtomicProductLink } from './atomic-product-link';
|
|
174
|
-
export { AtomicProductMultiValueText as AtomicProductMultiValueText } from '../../types/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text';
|
|
175
|
-
export { defineCustomElement as defineCustomElementAtomicProductMultiValueText } from './atomic-product-multi-value-text';
|
|
176
174
|
export { AtomicProductRating as AtomicProductRating } from '../../types/components/commerce/atomic-product-rating/atomic-product-rating';
|
|
177
175
|
export { defineCustomElement as defineCustomElementAtomicProductRating } from './atomic-product-rating';
|
|
178
176
|
export { AtomicProductSectionActions as AtomicProductSectionActions } from '../../types/components/commerce/atomic-product-sections/atomic-product-section-actions';
|
|
@@ -92,7 +92,6 @@ export { AtomicProductDescription, defineCustomElement as defineCustomElementAto
|
|
|
92
92
|
export { AtomicProductFieldCondition, defineCustomElement as defineCustomElementAtomicProductFieldCondition } from './atomic-product-field-condition.js';
|
|
93
93
|
export { AtomicProductImage, defineCustomElement as defineCustomElementAtomicProductImage } from './atomic-product-image.js';
|
|
94
94
|
export { AtomicProductLink, defineCustomElement as defineCustomElementAtomicProductLink } from './atomic-product-link.js';
|
|
95
|
-
export { AtomicProductMultiValueText, defineCustomElement as defineCustomElementAtomicProductMultiValueText } from './atomic-product-multi-value-text.js';
|
|
96
95
|
export { AtomicProductRating, defineCustomElement as defineCustomElementAtomicProductRating } from './atomic-product-rating.js';
|
|
97
96
|
export { AtomicProductSectionActions, defineCustomElement as defineCustomElementAtomicProductSectionActions } from './atomic-product-section-actions.js';
|
|
98
97
|
export { AtomicProductSectionBadges, defineCustomElement as defineCustomElementAtomicProductSectionBadges } from './atomic-product-section-badges.js';
|
|
@@ -8,6 +8,9 @@ import { B as Button } from './stencil-button.js';
|
|
|
8
8
|
import { P as ProductContext } from './stencil-product-template-decorators.js';
|
|
9
9
|
|
|
10
10
|
/* eslint-disable @cspell/spellchecker */
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Should only be used for Stencil components;
|
|
13
|
+
*/
|
|
11
14
|
const CarouselIndicator = ({ numberOfImages, currentImage: currentImage, navigateToImage: navigateToImage, maxImagesBeforeAndAfter = 2, }) => {
|
|
12
15
|
return (h("ul", { part: "indicators", class: "absolute bottom-2 mt-6 mb-1 flex max-w-4/5 items-center justify-center gap-2" }, Array.from({ length: numberOfImages }, (_, index) => {
|
|
13
16
|
const isActive = index === currentImage % numberOfImages;
|
|
@@ -27,6 +30,9 @@ const CarouselIndicator = ({ numberOfImages, currentImage: currentImage, navigat
|
|
|
27
30
|
})));
|
|
28
31
|
};
|
|
29
32
|
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Should only be used for Stencil components;
|
|
35
|
+
*/
|
|
30
36
|
const ImageCarousel = (props, children) => {
|
|
31
37
|
const commonPaginationClasses = 'w-6 h-6 grid mobile-only:w-10 mobile-only:h-10 justify-center items-center z-1 group rounded-full duration-200 opacity-50 hover:opacity-100 focus:opacity-100 transition-opacity hover:shadow-sm bottom-0 mb-1 absolute';
|
|
32
38
|
const commonArrowClasses = 'w-4 align-middle text-on-background group-hover:text-primary';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"atomic-product-image.js","mappings":";;;;;;;;;AAAA;AAUA,MAAM,iBAAiB,GAAgD,CAAC,EACtE,cAAc,EACd,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,uBAAuB,GAAG,CAAC,GAC5B;IACC,QACE,UACE,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,8EAA8E,I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;qDAA2B;;;;;;;;;;;;;;;;;;;;","names":["AtomicProductImage"],"sources":["src/components/common/image-carousel/image-carousel-indicators.tsx","src/components/common/image-carousel/image-carousel.tsx","src/components/commerce/atomic-product-image/atomic-product-image.pcss?tag=atomic-product-image&encapsulation=shadow","src/components/commerce/atomic-product-image/atomic-product-image.tsx"],"sourcesContent":["/* eslint-disable @cspell/spellchecker */\nimport {FunctionalComponent, h} from '@stencil/core';\n\ninterface CarouselIndicatorProps {\n numberOfImages: number;\n currentImage: number;\n navigateToImage: (index: number) => void;\n maxImagesBeforeAndAfter?: number;\n}\n\nconst CarouselIndicator: FunctionalComponent<CarouselIndicatorProps> = ({\n numberOfImages,\n currentImage: currentImage,\n navigateToImage: navigateToImage,\n maxImagesBeforeAndAfter = 2,\n}) => {\n return (\n <ul\n part=\"indicators\"\n class=\"absolute bottom-2 mt-6 mb-1 flex max-w-4/5 items-center justify-center gap-2\"\n >\n {Array.from({length: numberOfImages}, (_, index) => {\n const isActive = index === currentImage % numberOfImages;\n\n const shouldDisplay =\n index >= Math.max(0, currentImage - maxImagesBeforeAndAfter) &&\n index <=\n Math.min(\n currentImage + maxImagesBeforeAndAfter,\n numberOfImages - 1\n );\n\n const isLastDisplayed =\n index ===\n Math.min(\n currentImage + maxImagesBeforeAndAfter,\n numberOfImages - 1\n ) && index < numberOfImages - 1;\n\n const isFirstDisplayed =\n index === Math.max(0, currentImage - maxImagesBeforeAndAfter) &&\n index > 0;\n\n return (\n <li\n part={`indicator ${isActive ? 'active-indicator' : ''}`}\n class={`hover:bg-primary-light cursor-pointer rounded-md shadow transition-all duration-200 ease-in-out ${\n isActive ? 'bg-primary' : 'bg-neutral'\n } ${isLastDisplayed || isFirstDisplayed ? 'mobile-only:w-2 mobile-only:h-2 h-1 w-1 scale-75 transform' : 'mobile-only:w-3 mobile-only:h-3 h-2 w-2 scale-100 transform'} ${\n shouldDisplay\n ? 'pointer-events-auto opacity-80'\n : 'pointer-events-none hidden opacity-0'\n }`}\n onClick={(event) => {\n event.stopPropagation();\n navigateToImage(index);\n }}\n ></li>\n );\n })}\n </ul>\n );\n};\n\nexport default CarouselIndicator;\n","import {h, FunctionalComponent, Fragment} from '@stencil/core';\nimport {JSXBase} from '@stencil/core/internal';\nimport ArrowRight from '../../../images/arrow-right.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button} from '../stencil-button';\nimport CarouselIndicator from './image-carousel-indicators';\n\nexport interface CarouselProps {\n bindings: AnyBindings;\n previousImage(): void;\n nextImage(): void;\n navigateToImage(index: number): void;\n numberOfImages: number;\n currentImage: number;\n}\n\nexport const ImageCarousel: FunctionalComponent<\n CarouselProps & JSXBase.HTMLAttributes<HTMLHeadingElement>\n> = (props, children) => {\n const commonPaginationClasses =\n 'w-6 h-6 grid mobile-only:w-10 mobile-only:h-10 justify-center items-center z-1 group rounded-full duration-200 opacity-50 hover:opacity-100 focus:opacity-100 transition-opacity hover:shadow-sm bottom-0 mb-1 absolute';\n const commonArrowClasses =\n 'w-4 align-middle text-on-background group-hover:text-primary';\n\n function renderPreviousButton() {\n return (\n <Button\n style=\"text-primary\"\n ariaLabel={props.bindings.i18n.t('previous')}\n onClick={(event) => {\n event?.stopPropagation();\n props.previousImage();\n }}\n part=\"previous-button\"\n class={`${commonPaginationClasses} left-0 ml-1`}\n >\n <atomic-icon\n icon={ArrowRight}\n class={`${commonArrowClasses} rotate-180`}\n ></atomic-icon>\n </Button>\n );\n }\n\n function renderNextButton() {\n return (\n <Button\n style=\"text-primary\"\n ariaLabel={props.bindings.i18n.t('next')}\n onClick={(event) => {\n event?.stopPropagation();\n props.nextImage();\n }}\n part=\"next-button\"\n class={`${commonPaginationClasses} right-0 mr-1`}\n >\n <atomic-icon icon={ArrowRight} class={commonArrowClasses}></atomic-icon>\n </Button>\n );\n }\n function renderIndicators() {\n return (\n <CarouselIndicator\n numberOfImages={props.numberOfImages}\n currentImage={props.currentImage}\n navigateToImage={props.navigateToImage}\n />\n );\n }\n return (\n <Fragment>\n <div class=\"relative flex w-full min-w-full items-center justify-center\">\n {renderPreviousButton()}\n {children}\n {renderNextButton()}\n {renderIndicators()}\n </div>\n </Fragment>\n );\n};\n","@import '../../../global/global.pcss';\n@import '../../common/item-list/styles/mixins.pcss';\n@import '../../common/item-list/styles/placeholders.pcss';\n\n:host {\n @apply atomic-grid-clickable-elements;\n @apply atomic-grid-display-common;\n display: grid;\n place-items: center;\n grid-template-rows: 100%;\n width: 100%;\n height: 100%;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {Product, ProductTemplatesHelpers} from '@coveo/headless/commerce';\nimport {Component, h, Prop, Element, State, Method} from '@stencil/core';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {filterProtocol} from '../../../utils/xss-utils';\nimport {ImageCarousel} from '../../common/image-carousel/image-carousel';\nimport {CommerceBindings as Bindings} from '../atomic-commerce-interface/atomic-commerce-interface';\nimport {ProductContext} from '../product-template-component-utils/stencil-product-template-decorators';\n\ntype Image = {\n src: string;\n alt: string;\n};\n\n/**\n * The `atomic-product-image` component renders an image from a product field.\n * @alpha\n */\n@Component({\n tag: 'atomic-product-image',\n styleUrl: 'atomic-product-image.pcss',\n shadow: true,\n})\nexport class AtomicProductImage implements InitializableComponent<Bindings> {\n @InitializeBindings() public bindings!: Bindings;\n @ProductContext() private product!: Product;\n @Element() private host!: HTMLElement;\n @State() private useFallback = false;\n @State() private currentImage = 0;\n @State() private images: Image[] = [];\n\n public error!: Error;\n\n /**\n * The product field which the component should use. This will look for the field in the product object first, then in the product.additionalFields object.\n */\n @Prop({reflect: true}) field: string = 'ec_thumbnails';\n\n /**\n * The product field that contains the alt text for the images. This will look for the field in the product object first, then in the product.additionalFields object.\n * If the product has multiple images, the value of the `imageAltField` will be used as the alt text for every image.\n *\n * If the field is not specified, or does not contain a valid value, the alt text will be set to \"Image {index} out of {totalImages} for {productName}\".\n * @type {string}\n */\n @Prop({reflect: true}) imageAltField?: string;\n\n /**\n * An fallback image URL that will be used in case the specified image is not available or an error is encountered.\n */\n @Prop({reflect: true}) fallback: string =\n // eslint-disable-next-line @cspell/spellchecker\n 'data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"50\" height=\"50\" viewBox=\"0 0 50 50\"%3E%3Crect width=\"50\" height=\"50\" fill=\"none\" stroke=\"none\"%3E%3C/rect%3E%3C/svg%3E';\n\n /**\n * Moves to the previous image, when the carousel is activated.\n */\n @Method() public async previousImage() {\n this.currentImage =\n this.currentImage - 1 < 0\n ? this.numberOfImages - 1\n : this.currentImage - 1;\n }\n\n /**\n * Moves to the next image, when the carousel is activated.\n */\n @Method() public async nextImage() {\n this.currentImage = (this.currentImage + 1) % this.numberOfImages;\n }\n\n /**\n * Navigates to the specified image index.\n *\n * @param index - The index of the image to navigate to.\n */\n @Method() public async navigateToImage(index: number) {\n this.currentImage = index;\n }\n\n private logWarning(message: string) {\n this.bindings.engine.logger.warn(message, this.host);\n }\n\n private handleImageError(event: Event) {\n const image = event.target as HTMLImageElement;\n const message = `The image url \"${image.src}\" is not valid or could not be loaded. You might want to add a \"fallback\" property.`;\n if (this.fallback && image.src !== this.fallback) {\n this.useFallback = true;\n image.src = this.fallback;\n } else if (image.src === this.fallback) {\n this.logWarning('The fallback image failed to load.');\n } else {\n this.logWarning(message);\n }\n }\n\n private handleMissingFallback(message: string) {\n if (!this.fallback) {\n this.logWarning(message);\n this.host.remove();\n return null;\n }\n return this.fallback;\n }\n\n private validateUrl(url: string | undefined) {\n if (!url) {\n const message = `Image for ${this.product.ec_name} is missing. Please review your indexing. You might want to add a \"fallback\" property.`;\n return this.handleMissingFallback(message);\n }\n\n if (typeof url !== 'string') {\n const message = `Expected \"${this.field}\" to be a text field. Please review your indexing. You might want to add a \"fallback\" property.`;\n return this.handleMissingFallback(message);\n }\n\n return url;\n }\n\n componentWillLoad(): void {\n const validImages = this.imageUrls.filter(\n (image) => typeof image === 'string'\n );\n\n const validImageAlt = this.imageAlt;\n\n this.images = validImages.map((url, index) => {\n const finalUrl = this.useFallback ? this.fallback : url;\n\n this.validateUrl(finalUrl);\n let altText;\n\n if (typeof validImageAlt === 'string') {\n altText = validImageAlt;\n } else {\n altText = this.bindings.i18n.t('image-alt-fallback-multiple', {\n count: index + 1,\n max: validImages?.length,\n itemName: this.product.ec_name,\n });\n }\n\n return {\n src: filterProtocol(finalUrl),\n alt: altText,\n };\n }) as Image[];\n }\n\n private get imageUrls() {\n const value = ProductTemplatesHelpers.getProductProperty(\n this.product,\n this.field\n );\n\n return Array.isArray(value) ? value : [value];\n }\n\n private get imageAlt() {\n if (!this.imageAltField) {\n return null;\n }\n const value = ProductTemplatesHelpers.getProductProperty(\n this.product,\n this.imageAltField\n );\n if (isNullOrUndefined(value)) {\n return null;\n }\n return (value as string).trim();\n }\n\n private get numberOfImages() {\n return this.images?.length ?? 0;\n }\n\n private renderCurrentImage(image: Image | null) {\n if (image === null) {\n return;\n }\n\n return (\n <img\n class=\"aspect-square\"\n alt={image.alt}\n src={image.src}\n onError={(image) => this.handleImageError(image)}\n loading=\"lazy\"\n />\n );\n }\n\n public render() {\n const imagesToRender = this.images.map((image: Image) => {\n return {\n src: image.src,\n alt: image.alt,\n };\n });\n\n if (this.images.length === 0) {\n this.validateUrl(this.fallback);\n const alt = this.imageAlt\n ? this.imageAlt\n : this.bindings.i18n.t('image-not-found-alt', {\n itemName: this.product.ec_name,\n });\n return (\n <img\n class=\"aspect-square\"\n alt={alt}\n src={this.fallback}\n loading=\"eager\"\n />\n );\n }\n if (this.images.length === 1) {\n return this.renderCurrentImage(imagesToRender[this.currentImage]);\n }\n\n return (\n // TODO - KIT-3612 : handle small/icon image sizes better on mobile\n <ImageCarousel\n bindings={this.bindings}\n currentImage={this.currentImage}\n navigateToImage={(index) => this.navigateToImage(index)}\n nextImage={() => this.nextImage()}\n previousImage={() => this.previousImage()}\n numberOfImages={this.numberOfImages}\n >\n {this.renderCurrentIm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AS,EAAE,MAAM,IAAI,CAAC,SAAS,EAAE,EACjC,aAAa,EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,EACzC,cAAc,EAAE,IAAI,CAAC,cAAc,IAElC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAC1C,EAChB;KACH;;;;;;;;;;;;;;AAlN4B;IAA5B,kBAAkB,EAAE;sDAA4B;AACvB;IAAzB,cAAc,EAAE;qDAA2B;;;;;;;;;;;;;;;;;;;;","names":["AtomicProductImage"],"sources":["src/components/common/image-carousel/stencil-image-carousel-indicators.tsx","src/components/common/image-carousel/stencil-image-carousel.tsx","src/components/commerce/atomic-product-image/atomic-product-image.pcss?tag=atomic-product-image&encapsulation=shadow","src/components/commerce/atomic-product-image/atomic-product-image.tsx"],"sourcesContent":["/* eslint-disable @cspell/spellchecker */\nimport {FunctionalComponent, h} from '@stencil/core';\n\ninterface CarouselIndicatorProps {\n numberOfImages: number;\n currentImage: number;\n navigateToImage: (index: number) => void;\n maxImagesBeforeAndAfter?: number;\n}\n\n\n/**\n * @deprecated Should only be used for Stencil components;\n */\nconst CarouselIndicator: FunctionalComponent<CarouselIndicatorProps> = ({\n numberOfImages,\n currentImage: currentImage,\n navigateToImage: navigateToImage,\n maxImagesBeforeAndAfter = 2,\n}) => {\n return (\n <ul\n part=\"indicators\"\n class=\"absolute bottom-2 mt-6 mb-1 flex max-w-4/5 items-center justify-center gap-2\"\n >\n {Array.from({length: numberOfImages}, (_, index) => {\n const isActive = index === currentImage % numberOfImages;\n\n const shouldDisplay =\n index >= Math.max(0, currentImage - maxImagesBeforeAndAfter) &&\n index <=\n Math.min(\n currentImage + maxImagesBeforeAndAfter,\n numberOfImages - 1\n );\n\n const isLastDisplayed =\n index ===\n Math.min(\n currentImage + maxImagesBeforeAndAfter,\n numberOfImages - 1\n ) && index < numberOfImages - 1;\n\n const isFirstDisplayed =\n index === Math.max(0, currentImage - maxImagesBeforeAndAfter) &&\n index > 0;\n\n return (\n <li\n part={`indicator ${isActive ? 'active-indicator' : ''}`}\n class={`hover:bg-primary-light cursor-pointer rounded-md shadow transition-all duration-200 ease-in-out ${\n isActive ? 'bg-primary' : 'bg-neutral'\n } ${isLastDisplayed || isFirstDisplayed ? 'mobile-only:w-2 mobile-only:h-2 h-1 w-1 scale-75 transform' : 'mobile-only:w-3 mobile-only:h-3 h-2 w-2 scale-100 transform'} ${\n shouldDisplay\n ? 'pointer-events-auto opacity-80'\n : 'pointer-events-none hidden opacity-0'\n }`}\n onClick={(event) => {\n event.stopPropagation();\n navigateToImage(index);\n }}\n ></li>\n );\n })}\n </ul>\n );\n};\n\nexport default CarouselIndicator;\n","import {h, FunctionalComponent, Fragment} from '@stencil/core';\nimport {JSXBase} from '@stencil/core/internal';\nimport ArrowRight from '../../../images/arrow-right.svg';\nimport {AnyBindings} from '../interface/bindings';\nimport {Button} from '../stencil-button';\nimport CarouselIndicator from './stencil-image-carousel-indicators';\n\nexport interface CarouselProps {\n bindings: AnyBindings;\n previousImage(): void;\n nextImage(): void;\n navigateToImage(index: number): void;\n numberOfImages: number;\n currentImage: number;\n}\n\n/**\n * @deprecated Should only be used for Stencil components;\n */\nexport const ImageCarousel: FunctionalComponent<\n CarouselProps & JSXBase.HTMLAttributes<HTMLHeadingElement>\n> = (props, children) => {\n const commonPaginationClasses =\n 'w-6 h-6 grid mobile-only:w-10 mobile-only:h-10 justify-center items-center z-1 group rounded-full duration-200 opacity-50 hover:opacity-100 focus:opacity-100 transition-opacity hover:shadow-sm bottom-0 mb-1 absolute';\n const commonArrowClasses =\n 'w-4 align-middle text-on-background group-hover:text-primary';\n\n function renderPreviousButton() {\n return (\n <Button\n style=\"text-primary\"\n ariaLabel={props.bindings.i18n.t('previous')}\n onClick={(event) => {\n event?.stopPropagation();\n props.previousImage();\n }}\n part=\"previous-button\"\n class={`${commonPaginationClasses} left-0 ml-1`}\n >\n <atomic-icon\n icon={ArrowRight}\n class={`${commonArrowClasses} rotate-180`}\n ></atomic-icon>\n </Button>\n );\n }\n\n function renderNextButton() {\n return (\n <Button\n style=\"text-primary\"\n ariaLabel={props.bindings.i18n.t('next')}\n onClick={(event) => {\n event?.stopPropagation();\n props.nextImage();\n }}\n part=\"next-button\"\n class={`${commonPaginationClasses} right-0 mr-1`}\n >\n <atomic-icon icon={ArrowRight} class={commonArrowClasses}></atomic-icon>\n </Button>\n );\n }\n function renderIndicators() {\n return (\n <CarouselIndicator\n numberOfImages={props.numberOfImages}\n currentImage={props.currentImage}\n navigateToImage={props.navigateToImage}\n />\n );\n }\n return (\n <Fragment>\n <div class=\"relative flex w-full min-w-full items-center justify-center\">\n {renderPreviousButton()}\n {children}\n {renderNextButton()}\n {renderIndicators()}\n </div>\n </Fragment>\n );\n};\n","@import '../../../global/global.pcss';\n@import '../../common/item-list/styles/mixins.pcss';\n@import '../../common/item-list/styles/placeholders.pcss';\n\n:host {\n @apply atomic-grid-clickable-elements;\n @apply atomic-grid-display-common;\n display: grid;\n place-items: center;\n grid-template-rows: 100%;\n width: 100%;\n height: 100%;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n}\n","import {isNullOrUndefined} from '@coveo/bueno';\nimport {Product, ProductTemplatesHelpers} from '@coveo/headless/commerce';\nimport {Component, h, Prop, Element, State, Method} from '@stencil/core';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {filterProtocol} from '../../../utils/xss-utils';\nimport {ImageCarousel} from '../../common/image-carousel/stencil-image-carousel';\nimport {CommerceBindings as Bindings} from '../atomic-commerce-interface/atomic-commerce-interface';\nimport {ProductContext} from '../product-template-component-utils/stencil-product-template-decorators';\n\ntype Image = {\n src: string;\n alt: string;\n};\n\n/**\n * The `atomic-product-image` component renders an image from a product field.\n * @alpha\n */\n@Component({\n tag: 'atomic-product-image',\n styleUrl: 'atomic-product-image.pcss',\n shadow: true,\n})\nexport class AtomicProductImage implements InitializableComponent<Bindings> {\n @InitializeBindings() public bindings!: Bindings;\n @ProductContext() private product!: Product;\n @Element() private host!: HTMLElement;\n @State() private useFallback = false;\n @State() private currentImage = 0;\n @State() private images: Image[] = [];\n\n public error!: Error;\n\n /**\n * The product field which the component should use. This will look for the field in the product object first, then in the product.additionalFields object.\n */\n @Prop({reflect: true}) field: string = 'ec_thumbnails';\n\n /**\n * The product field that contains the alt text for the images. This will look for the field in the product object first, then in the product.additionalFields object.\n * If the product has multiple images, the value of the `imageAltField` will be used as the alt text for every image.\n *\n * If the field is not specified, or does not contain a valid value, the alt text will be set to \"Image {index} out of {totalImages} for {productName}\".\n * @type {string}\n */\n @Prop({reflect: true}) imageAltField?: string;\n\n /**\n * An fallback image URL that will be used in case the specified image is not available or an error is encountered.\n */\n @Prop({reflect: true}) fallback: string =\n // eslint-disable-next-line @cspell/spellchecker\n 'data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"50\" height=\"50\" viewBox=\"0 0 50 50\"%3E%3Crect width=\"50\" height=\"50\" fill=\"none\" stroke=\"none\"%3E%3C/rect%3E%3C/svg%3E';\n\n /**\n * Moves to the previous image, when the carousel is activated.\n */\n @Method() public async previousImage() {\n this.currentImage =\n this.currentImage - 1 < 0\n ? this.numberOfImages - 1\n : this.currentImage - 1;\n }\n\n /**\n * Moves to the next image, when the carousel is activated.\n */\n @Method() public async nextImage() {\n this.currentImage = (this.currentImage + 1) % this.numberOfImages;\n }\n\n /**\n * Navigates to the specified image index.\n *\n * @param index - The index of the image to navigate to.\n */\n @Method() public async navigateToImage(index: number) {\n this.currentImage = index;\n }\n\n private logWarning(message: string) {\n this.bindings.engine.logger.warn(message, this.host);\n }\n\n private handleImageError(event: Event) {\n const image = event.target as HTMLImageElement;\n const message = `The image url \"${image.src}\" is not valid or could not be loaded. You might want to add a \"fallback\" property.`;\n if (this.fallback && image.src !== this.fallback) {\n this.useFallback = true;\n image.src = this.fallback;\n } else if (image.src === this.fallback) {\n this.logWarning('The fallback image failed to load.');\n } else {\n this.logWarning(message);\n }\n }\n\n private handleMissingFallback(message: string) {\n if (!this.fallback) {\n this.logWarning(message);\n this.host.remove();\n return null;\n }\n return this.fallback;\n }\n\n private validateUrl(url: string | undefined) {\n if (!url) {\n const message = `Image for ${this.product.ec_name} is missing. Please review your indexing. You might want to add a \"fallback\" property.`;\n return this.handleMissingFallback(message);\n }\n\n if (typeof url !== 'string') {\n const message = `Expected \"${this.field}\" to be a text field. Please review your indexing. You might want to add a \"fallback\" property.`;\n return this.handleMissingFallback(message);\n }\n\n return url;\n }\n\n componentWillLoad(): void {\n const validImages = this.imageUrls.filter(\n (image) => typeof image === 'string'\n );\n\n const validImageAlt = this.imageAlt;\n\n this.images = validImages.map((url, index) => {\n const finalUrl = this.useFallback ? this.fallback : url;\n\n this.validateUrl(finalUrl);\n let altText;\n\n if (typeof validImageAlt === 'string') {\n altText = validImageAlt;\n } else {\n altText = this.bindings.i18n.t('image-alt-fallback-multiple', {\n count: index + 1,\n max: validImages?.length,\n itemName: this.product.ec_name,\n });\n }\n\n return {\n src: filterProtocol(finalUrl),\n alt: altText,\n };\n }) as Image[];\n }\n\n private get imageUrls() {\n const value = ProductTemplatesHelpers.getProductProperty(\n this.product,\n this.field\n );\n\n return Array.isArray(value) ? value : [value];\n }\n\n private get imageAlt() {\n if (!this.imageAltField) {\n return null;\n }\n const value = ProductTemplatesHelpers.getProductProperty(\n this.product,\n this.imageAltField\n );\n if (isNullOrUndefined(value)) {\n return null;\n }\n return (value as string).trim();\n }\n\n private get numberOfImages() {\n return this.images?.length ?? 0;\n }\n\n private renderCurrentImage(image: Image | null) {\n if (image === null) {\n return;\n }\n\n return (\n <img\n class=\"aspect-square\"\n alt={image.alt}\n src={image.src}\n onError={(image) => this.handleImageError(image)}\n loading=\"lazy\"\n />\n );\n }\n\n public render() {\n const imagesToRender = this.images.map((image: Image) => {\n return {\n src: image.src,\n alt: image.alt,\n };\n });\n\n if (this.images.length === 0) {\n this.validateUrl(this.fallback);\n const alt = this.imageAlt\n ? this.imageAlt\n : this.bindings.i18n.t('image-not-found-alt', {\n itemName: this.product.ec_name,\n });\n return (\n <img\n class=\"aspect-square\"\n alt={alt}\n src={this.fallback}\n loading=\"eager\"\n />\n );\n }\n if (this.images.length === 1) {\n return this.renderCurrentImage(imagesToRender[this.currentImage]);\n }\n\n return (\n // TODO - KIT-3612 : handle small/icon image sizes better on mobile\n <ImageCarousel\n bindings={this.bindings}\n currentImage={this.currentImage}\n navigateToImage={(index) => this.navigateToImage(index)}\n nextImage={() => this.nextImage()}\n previousImage={() => this.previousImage()}\n numberOfImages={this.numberOfImages}\n >\n {this.renderCurrentImage(this.images[this.currentImage])}\n </ImageCarousel>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { buildProductListing, buildSearch, ProductTemplatesHelpers, } from '@coveo/headless/commerce';
|
|
8
|
+
import { html, LitElement, nothing, unsafeCSS } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
11
|
+
import { bindings } from "../../../decorators/bindings";
|
|
12
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators";
|
|
13
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
|
14
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
|
|
15
|
+
import { getFieldValueCaption } from '../../../utils/field-utils';
|
|
16
|
+
import { titleToKebab } from '../../../utils/utils';
|
|
17
|
+
import styles from './atomic-product-multi-value-text.tw.css';
|
|
18
|
+
/**
|
|
19
|
+
* @alpha
|
|
20
|
+
*
|
|
21
|
+
* The `atomic-product-multi-value-text` component renders the values of a multi-value string field.
|
|
22
|
+
*
|
|
23
|
+
* @part product-multi-value-text-list - The list of field values.
|
|
24
|
+
* @part product-multi-value-text-separator - The separator to display between each of the field values.
|
|
25
|
+
* @part product-multi-value-text-value - A field value.
|
|
26
|
+
* @part product-multi-value-text-value-more - A label indicating some values were omitted.
|
|
27
|
+
* @slot product-multi-value-text-value-* - A custom caption value that's specified for a given part of a multi-text field value. For example, if you want to use `Off-Campus Resident` as a caption value for `Off-campus apartment` in `Off-campus apartment;On-campus apartment`, you'd use `<span slot="product-multi-value-text-value-off-campus-apartment">Off-Campus Resident</span>`). The suffix of this slot corresponds with the field value, written in kebab case.
|
|
28
|
+
*/
|
|
29
|
+
let AtomicProductMultiValueText = class AtomicProductMultiValueText extends LitElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.productController = createProductContextController(this);
|
|
33
|
+
/**
|
|
34
|
+
* The maximum number of field values to display.
|
|
35
|
+
* If there are _n_ more values than the specified maximum, the last displayed value will be "_n_ more...".
|
|
36
|
+
*/
|
|
37
|
+
this.maxValuesToDisplay = 3;
|
|
38
|
+
/**
|
|
39
|
+
* The delimiter used to separate values when the field isn't indexed as a multi value field.
|
|
40
|
+
*/
|
|
41
|
+
this.delimiter = null;
|
|
42
|
+
this.values = [];
|
|
43
|
+
}
|
|
44
|
+
initialize() {
|
|
45
|
+
const searchOrListing = this.bindings.interfaceElement.type === 'product-listing'
|
|
46
|
+
? buildProductListing(this.bindings.engine)
|
|
47
|
+
: buildSearch(this.bindings.engine);
|
|
48
|
+
this.breadcrumbManager = searchOrListing.breadcrumbManager();
|
|
49
|
+
this.values = this.initializeValues();
|
|
50
|
+
}
|
|
51
|
+
initializeValues() {
|
|
52
|
+
const product = this.productController.item;
|
|
53
|
+
if (!product) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
const property = ProductTemplatesHelpers.getProductProperty(product, this.field);
|
|
57
|
+
if (property === null) {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
if (Array.isArray(property)) {
|
|
61
|
+
return property.map((v) => `${v}`.trim());
|
|
62
|
+
}
|
|
63
|
+
if (typeof property !== 'string' || property.trim() === '') {
|
|
64
|
+
this.error = new Error(`Could not parse "${property}" from field "${this.field}" as a string array.`);
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
return this.delimiter
|
|
68
|
+
? property.split(this.delimiter).map((value) => value.trim())
|
|
69
|
+
: [property];
|
|
70
|
+
}
|
|
71
|
+
get facetSelectedValues() {
|
|
72
|
+
return this.breadcrumbManager.state.facetBreadcrumbs.reduce((values, facet) => {
|
|
73
|
+
if (facet.field !== this.field) {
|
|
74
|
+
return values;
|
|
75
|
+
}
|
|
76
|
+
return values.concat(facet.values.map(({ value }) => value.value));
|
|
77
|
+
}, []);
|
|
78
|
+
}
|
|
79
|
+
get sortedValues() {
|
|
80
|
+
const firstValues = this.facetSelectedValues.filter((value) => this.values.includes(value));
|
|
81
|
+
return Array.from(new Set([...firstValues, ...this.values]));
|
|
82
|
+
}
|
|
83
|
+
get shouldDisplayLabel() {
|
|
84
|
+
return (this.maxValuesToDisplay > 0 &&
|
|
85
|
+
this.sortedValues.length > this.maxValuesToDisplay);
|
|
86
|
+
}
|
|
87
|
+
get numberOfValuesToDisplay() {
|
|
88
|
+
return Math.min(this.sortedValues.length, this.maxValuesToDisplay);
|
|
89
|
+
}
|
|
90
|
+
renderValue(value) {
|
|
91
|
+
const label = getFieldValueCaption(this.field, value, this.bindings.i18n);
|
|
92
|
+
const kebabValue = titleToKebab(value);
|
|
93
|
+
return html `
|
|
94
|
+
<li part="product-multi-value-text-value" class="inline-block">
|
|
95
|
+
<slot name=${`product-multi-value-text-value-${kebabValue}`}>
|
|
96
|
+
${label}
|
|
97
|
+
</slot>
|
|
98
|
+
</li>
|
|
99
|
+
`;
|
|
100
|
+
}
|
|
101
|
+
renderSeparator() {
|
|
102
|
+
return html `
|
|
103
|
+
<li
|
|
104
|
+
aria-hidden="true"
|
|
105
|
+
part="product-multi-value-text-separator"
|
|
106
|
+
class="separator inline-block"
|
|
107
|
+
></li>
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
renderMoreLabel(value) {
|
|
111
|
+
return html `
|
|
112
|
+
<li part="product-multi-value-text-value-more" class="inline-block">
|
|
113
|
+
${this.bindings.i18n.t('n-more', { value })}
|
|
114
|
+
</li>
|
|
115
|
+
`;
|
|
116
|
+
}
|
|
117
|
+
renderListItems(values) {
|
|
118
|
+
const templates = [];
|
|
119
|
+
templates.push(this.renderValue(values[0]));
|
|
120
|
+
for (let i = 1; i < this.numberOfValuesToDisplay; i++) {
|
|
121
|
+
templates.push(this.renderSeparator());
|
|
122
|
+
templates.push(this.renderValue(values[i]));
|
|
123
|
+
}
|
|
124
|
+
if (this.shouldDisplayLabel) {
|
|
125
|
+
templates.push(this.renderSeparator());
|
|
126
|
+
templates.push(this.renderMoreLabel(values.length - this.numberOfValuesToDisplay));
|
|
127
|
+
}
|
|
128
|
+
return templates;
|
|
129
|
+
}
|
|
130
|
+
render() {
|
|
131
|
+
if (this.sortedValues.length === 0) {
|
|
132
|
+
return html `${nothing}`;
|
|
133
|
+
}
|
|
134
|
+
return html `
|
|
135
|
+
<ul part="product-multi-value-text-list" class="flex list-none m-0 p-0">
|
|
136
|
+
${this.renderListItems(this.sortedValues)}
|
|
137
|
+
</ul>
|
|
138
|
+
`;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
AtomicProductMultiValueText.styles = [unsafeCSS(styles)];
|
|
142
|
+
__decorate([
|
|
143
|
+
state()
|
|
144
|
+
], AtomicProductMultiValueText.prototype, "bindings", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
state()
|
|
147
|
+
], AtomicProductMultiValueText.prototype, "error", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
property({ reflect: true })
|
|
150
|
+
], AtomicProductMultiValueText.prototype, "field", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
property({ reflect: true, type: Number, attribute: 'max-values-to-display' })
|
|
153
|
+
], AtomicProductMultiValueText.prototype, "maxValuesToDisplay", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
property({ reflect: true })
|
|
156
|
+
], AtomicProductMultiValueText.prototype, "delimiter", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
state()
|
|
159
|
+
], AtomicProductMultiValueText.prototype, "values", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
bindingGuard(),
|
|
162
|
+
errorGuard()
|
|
163
|
+
], AtomicProductMultiValueText.prototype, "render", null);
|
|
164
|
+
AtomicProductMultiValueText = __decorate([
|
|
165
|
+
customElement('atomic-product-multi-value-text'),
|
|
166
|
+
bindings(),
|
|
167
|
+
withTailwindStyles
|
|
168
|
+
], AtomicProductMultiValueText);
|
|
169
|
+
export { AtomicProductMultiValueText };
|
|
@@ -15,6 +15,7 @@ import '../atomic-product-text/atomic-product-text';
|
|
|
15
15
|
import '../atomic-product/atomic-product';
|
|
16
16
|
import '../atomic-product-excerpt/atomic-product-excerpt';
|
|
17
17
|
import '../atomic-product-children/atomic-product-children';
|
|
18
|
+
import '../atomic-product-multi-value-text/atomic-product-multi-value-text';
|
|
18
19
|
import '../atomic-product-price/atomic-product-price';
|
|
19
20
|
import '../atomic-product-numeric-field-value/atomic-product-numeric-field-value';
|
|
20
21
|
/**
|