@coveo/atomic-react 3.11.3 → 3.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/atomic-react.cjs +7772 -7778
  2. package/dist/cjs/atomic-react.cjs.map +1 -1
  3. package/dist/cjs/commerce/atomic-react.cjs +9105 -9109
  4. package/dist/cjs/commerce/atomic-react.cjs.map +1 -1
  5. package/dist/cjs/recommendation/atomic-react.cjs +7772 -7778
  6. package/dist/cjs/recommendation/atomic-react.cjs.map +1 -1
  7. package/dist/esm/atomic-react.mjs +1 -1
  8. package/dist/esm/atomic-react.mjs.map +1 -1
  9. package/dist/esm/commerce/atomic-react.mjs +5 -9
  10. package/dist/esm/commerce/atomic-react.mjs.map +1 -1
  11. package/dist/esm/recommendation/atomic-react.mjs +1 -1
  12. package/dist/esm/recommendation/atomic-react.mjs.map +1 -1
  13. package/dist/lang/cs.json +1 -1
  14. package/dist/lang/da.json +1 -1
  15. package/dist/lang/de.json +1 -1
  16. package/dist/lang/dev.json +1 -1
  17. package/dist/lang/el.json +1 -1
  18. package/dist/lang/en.json +1 -1
  19. package/dist/lang/es.json +1 -1
  20. package/dist/lang/fi.json +1 -1
  21. package/dist/lang/fr.json +1 -1
  22. package/dist/lang/hu.json +1 -1
  23. package/dist/lang/id.json +1 -1
  24. package/dist/lang/it.json +1 -1
  25. package/dist/lang/ja.json +1 -1
  26. package/dist/lang/ko.json +1 -1
  27. package/dist/lang/nl.json +1 -1
  28. package/dist/lang/no.json +1 -1
  29. package/dist/lang/pl.json +1 -1
  30. package/dist/lang/pt-BR.json +1 -1
  31. package/dist/lang/pt.json +1 -1
  32. package/dist/lang/ru.json +1 -1
  33. package/dist/lang/sv.json +1 -1
  34. package/dist/lang/th.json +1 -1
  35. package/dist/lang/tr.json +1 -1
  36. package/dist/lang/zh-CN.json +1 -1
  37. package/dist/lang/zh-TW.json +1 -1
  38. package/dist/lang/zh.json +1 -1
  39. package/package.json +5 -7
@@ -1,6 +1,6 @@
1
- import { AtomicAriaLive as AtomicAriaLive$1, AtomicAutomaticFacet as AtomicAutomaticFacet$1, AtomicAutomaticFacetGenerator as AtomicAutomaticFacetGenerator$1, AtomicBreadbox as AtomicBreadbox$1, AtomicCategoryFacet as AtomicCategoryFacet$1, AtomicColorFacet as AtomicColorFacet$1, AtomicComponentError as AtomicComponentError$1, AtomicDidYouMean as AtomicDidYouMean$1, AtomicExternal as AtomicExternal$1, AtomicFacet as AtomicFacet$1, AtomicFacetManager as AtomicFacetManager$1, AtomicFocusTrap as AtomicFocusTrap$1, AtomicFormatCurrency as AtomicFormatCurrency$1, AtomicFormatNumber as AtomicFormatNumber$1, AtomicFormatUnit as AtomicFormatUnit$1, AtomicGeneratedAnswer as AtomicGeneratedAnswer$1, AtomicGeneratedAnswerFeedbackModal as AtomicGeneratedAnswerFeedbackModal$1, AtomicHtml as AtomicHtml$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicLoadMoreResults as AtomicLoadMoreResults$1, AtomicNoResults as AtomicNoResults$1, AtomicNotifications as AtomicNotifications$1, AtomicNumericFacet as AtomicNumericFacet$1, AtomicNumericRange as AtomicNumericRange$1, AtomicPager as AtomicPager$1, AtomicPopover as AtomicPopover$1, AtomicQueryError as AtomicQueryError$1, AtomicQuerySummary as AtomicQuerySummary$1, AtomicQuickview as AtomicQuickview$1, AtomicQuickviewModal as AtomicQuickviewModal$1, AtomicRatingFacet as AtomicRatingFacet$1, AtomicRatingRangeFacet as AtomicRatingRangeFacet$1, AtomicRecsError as AtomicRecsError$1, AtomicRecsInterface as AtomicRecsInterface$1, AtomicRecsList as AtomicRecsList$1, AtomicRecsResult as AtomicRecsResult$1, AtomicRefineModal as AtomicRefineModal$1, AtomicRefineToggle as AtomicRefineToggle$1, AtomicResult as AtomicResult$1, AtomicResultBadge as AtomicResultBadge$1, AtomicResultChildren as AtomicResultChildren$1, AtomicResultChildrenTemplate as AtomicResultChildrenTemplate$1, AtomicResultDate as AtomicResultDate$1, AtomicResultFieldsList as AtomicResultFieldsList$1, AtomicResultHtml as AtomicResultHtml$1, AtomicResultIcon as AtomicResultIcon$1, AtomicResultImage as AtomicResultImage$1, AtomicResultLink as AtomicResultLink$1, AtomicResultLocalizedText as AtomicResultLocalizedText$1, AtomicResultMultiValueText as AtomicResultMultiValueText$1, AtomicResultNumber as AtomicResultNumber$1, AtomicResultPrintableUri as AtomicResultPrintableUri$1, AtomicResultRating as AtomicResultRating$1, AtomicResultSectionActions as AtomicResultSectionActions$1, AtomicResultSectionBadges as AtomicResultSectionBadges$1, AtomicResultSectionBottomMetadata as AtomicResultSectionBottomMetadata$1, AtomicResultSectionChildren as AtomicResultSectionChildren$1, AtomicResultSectionEmphasized as AtomicResultSectionEmphasized$1, AtomicResultSectionExcerpt as AtomicResultSectionExcerpt$1, AtomicResultSectionTitle as AtomicResultSectionTitle$1, AtomicResultSectionTitleMetadata as AtomicResultSectionTitleMetadata$1, AtomicResultSectionVisual as AtomicResultSectionVisual$1, AtomicResultsPerPage as AtomicResultsPerPage$1, AtomicResultText as AtomicResultText$1, AtomicResultTimespan as AtomicResultTimespan$1, AtomicSearchBox as AtomicSearchBox$1, AtomicSearchBoxQuerySuggestions as AtomicSearchBoxQuerySuggestions$1, AtomicSearchBoxRecentQueries as AtomicSearchBoxRecentQueries$1, AtomicSearchLayout as AtomicSearchLayout$1, AtomicSegmentedFacet as AtomicSegmentedFacet$1, AtomicSegmentedFacetScrollable as AtomicSegmentedFacetScrollable$1, AtomicSmartSnippet as AtomicSmartSnippet$1, AtomicSmartSnippetFeedbackModal as AtomicSmartSnippetFeedbackModal$1, AtomicSmartSnippetSuggestions as AtomicSmartSnippetSuggestions$1, AtomicSortDropdown as AtomicSortDropdown$1, AtomicSortExpression as AtomicSortExpression$1, AtomicTab as AtomicTab$1, AtomicTableElement as AtomicTableElement$1, AtomicTabManager as AtomicTabManager$1, AtomicText as AtomicText$1, AtomicTimeframe as AtomicTimeframe$1, AtomicTimeframeFacet as AtomicTimeframeFacet$1, AtomicFoldedResultList as AtomicFoldedResultList$1, AtomicResultList as AtomicResultList$1, AtomicSearchBoxInstantResults as AtomicSearchBoxInstantResults$1, AtomicSearchInterface as AtomicSearchInterface$1 } from '@coveo/atomic/components';
2
1
  import { createComponent } from '@lit/react';
3
2
  import React, { useRef, useEffect } from 'react';
3
+ import { AtomicAriaLive as AtomicAriaLive$1, AtomicAutomaticFacet as AtomicAutomaticFacet$1, AtomicAutomaticFacetGenerator as AtomicAutomaticFacetGenerator$1, AtomicBreadbox as AtomicBreadbox$1, AtomicCategoryFacet as AtomicCategoryFacet$1, AtomicColorFacet as AtomicColorFacet$1, AtomicComponentError as AtomicComponentError$1, AtomicDidYouMean as AtomicDidYouMean$1, AtomicExternal as AtomicExternal$1, AtomicFacet as AtomicFacet$1, AtomicFacetManager as AtomicFacetManager$1, AtomicFocusTrap as AtomicFocusTrap$1, AtomicFormatCurrency as AtomicFormatCurrency$1, AtomicFormatNumber as AtomicFormatNumber$1, AtomicFormatUnit as AtomicFormatUnit$1, AtomicGeneratedAnswer as AtomicGeneratedAnswer$1, AtomicGeneratedAnswerFeedbackModal as AtomicGeneratedAnswerFeedbackModal$1, AtomicHtml as AtomicHtml$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicLoadMoreResults as AtomicLoadMoreResults$1, AtomicNoResults as AtomicNoResults$1, AtomicNotifications as AtomicNotifications$1, AtomicNumericFacet as AtomicNumericFacet$1, AtomicNumericRange as AtomicNumericRange$1, AtomicPager as AtomicPager$1, AtomicPopover as AtomicPopover$1, AtomicQueryError as AtomicQueryError$1, AtomicQuerySummary as AtomicQuerySummary$1, AtomicQuickview as AtomicQuickview$1, AtomicQuickviewModal as AtomicQuickviewModal$1, AtomicRatingFacet as AtomicRatingFacet$1, AtomicRatingRangeFacet as AtomicRatingRangeFacet$1, AtomicRecsError as AtomicRecsError$1, AtomicRecsInterface as AtomicRecsInterface$1, AtomicRecsList as AtomicRecsList$1, AtomicRecsResult as AtomicRecsResult$1, AtomicRefineModal as AtomicRefineModal$1, AtomicRefineToggle as AtomicRefineToggle$1, AtomicResult as AtomicResult$1, AtomicResultBadge as AtomicResultBadge$1, AtomicResultChildren as AtomicResultChildren$1, AtomicResultChildrenTemplate as AtomicResultChildrenTemplate$1, AtomicResultDate as AtomicResultDate$1, AtomicResultFieldsList as AtomicResultFieldsList$1, AtomicResultHtml as AtomicResultHtml$1, AtomicResultIcon as AtomicResultIcon$1, AtomicResultImage as AtomicResultImage$1, AtomicResultLink as AtomicResultLink$1, AtomicResultLocalizedText as AtomicResultLocalizedText$1, AtomicResultMultiValueText as AtomicResultMultiValueText$1, AtomicResultNumber as AtomicResultNumber$1, AtomicResultPrintableUri as AtomicResultPrintableUri$1, AtomicResultRating as AtomicResultRating$1, AtomicResultSectionActions as AtomicResultSectionActions$1, AtomicResultSectionBadges as AtomicResultSectionBadges$1, AtomicResultSectionBottomMetadata as AtomicResultSectionBottomMetadata$1, AtomicResultSectionChildren as AtomicResultSectionChildren$1, AtomicResultSectionEmphasized as AtomicResultSectionEmphasized$1, AtomicResultSectionExcerpt as AtomicResultSectionExcerpt$1, AtomicResultSectionTitle as AtomicResultSectionTitle$1, AtomicResultSectionTitleMetadata as AtomicResultSectionTitleMetadata$1, AtomicResultSectionVisual as AtomicResultSectionVisual$1, AtomicResultsPerPage as AtomicResultsPerPage$1, AtomicResultText as AtomicResultText$1, AtomicResultTimespan as AtomicResultTimespan$1, AtomicSearchBox as AtomicSearchBox$1, AtomicSearchBoxQuerySuggestions as AtomicSearchBoxQuerySuggestions$1, AtomicSearchBoxRecentQueries as AtomicSearchBoxRecentQueries$1, AtomicSearchLayout as AtomicSearchLayout$1, AtomicSegmentedFacet as AtomicSegmentedFacet$1, AtomicSegmentedFacetScrollable as AtomicSegmentedFacetScrollable$1, AtomicSmartSnippet as AtomicSmartSnippet$1, AtomicSmartSnippetFeedbackModal as AtomicSmartSnippetFeedbackModal$1, AtomicSmartSnippetSuggestions as AtomicSmartSnippetSuggestions$1, AtomicSortDropdown as AtomicSortDropdown$1, AtomicSortExpression as AtomicSortExpression$1, AtomicTab as AtomicTab$1, AtomicTableElement as AtomicTableElement$1, AtomicTabManager as AtomicTabManager$1, AtomicText as AtomicText$1, AtomicTimeframe as AtomicTimeframe$1, AtomicTimeframeFacet as AtomicTimeframeFacet$1, AtomicFoldedResultList as AtomicFoldedResultList$1, AtomicResultList as AtomicResultList$1, AtomicSearchBoxInstantResults as AtomicSearchBoxInstantResults$1, AtomicSearchInterface as AtomicSearchInterface$1 } from '@coveo/atomic/components';
4
4
  import { flushSync } from 'react-dom';
5
5
  import { createRoot } from 'react-dom/client';
6
6
  import { buildSearchEngine, getSampleSearchEngineConfiguration } from '@coveo/headless';
@@ -1 +1 @@
1
- {"version":3,"file":"atomic-react.mjs","sources":["../../src/components/search/components.ts","../../src/components/search/FoldedResultListWrapper.tsx","../../src/components/search/ResultListWrapper.tsx","../../src/components/search/SearchBoxInstantResultsWrapper.tsx","../../src/components/search/SearchInterfaceWrapper.tsx"],"sourcesContent":["import {\n AtomicAriaLive as LitAtomicAriaLive,\n AtomicAutomaticFacet as LitAtomicAutomaticFacet,\n AtomicAutomaticFacetGenerator as LitAtomicAutomaticFacetGenerator,\n AtomicBreadbox as LitAtomicBreadbox,\n AtomicCategoryFacet as LitAtomicCategoryFacet,\n AtomicColorFacet as LitAtomicColorFacet,\n AtomicComponentError as LitAtomicComponentError,\n AtomicDidYouMean as LitAtomicDidYouMean,\n AtomicExternal as LitAtomicExternal,\n AtomicFacet as LitAtomicFacet,\n AtomicFacetManager as LitAtomicFacetManager,\n AtomicFocusTrap as LitAtomicFocusTrap,\n AtomicFoldedResultList as LitAtomicFoldedResultList,\n AtomicFormatCurrency as LitAtomicFormatCurrency,\n AtomicFormatNumber as LitAtomicFormatNumber,\n AtomicFormatUnit as LitAtomicFormatUnit,\n AtomicGeneratedAnswer as LitAtomicGeneratedAnswer,\n AtomicGeneratedAnswerFeedbackModal as LitAtomicGeneratedAnswerFeedbackModal,\n AtomicHtml as LitAtomicHtml,\n AtomicIcon as LitAtomicIcon,\n AtomicLayoutSection as LitAtomicLayoutSection,\n AtomicLoadMoreResults as LitAtomicLoadMoreResults,\n AtomicNoResults as LitAtomicNoResults,\n AtomicNotifications as LitAtomicNotifications,\n AtomicNumericFacet as LitAtomicNumericFacet,\n AtomicNumericRange as LitAtomicNumericRange,\n AtomicPager as LitAtomicPager,\n AtomicPopover as LitAtomicPopover,\n AtomicQueryError as LitAtomicQueryError,\n AtomicQuerySummary as LitAtomicQuerySummary,\n AtomicQuickview as LitAtomicQuickview,\n AtomicQuickviewModal as LitAtomicQuickviewModal,\n AtomicRatingFacet as LitAtomicRatingFacet,\n AtomicRatingRangeFacet as LitAtomicRatingRangeFacet,\n AtomicRecsError as LitAtomicRecsError,\n AtomicRecsInterface as LitAtomicRecsInterface,\n AtomicRecsList as LitAtomicRecsList,\n AtomicRecsResult as LitAtomicRecsResult,\n AtomicRefineModal as LitAtomicRefineModal,\n AtomicRefineToggle as LitAtomicRefineToggle,\n AtomicResult as LitAtomicResult,\n AtomicResultBadge as LitAtomicResultBadge,\n AtomicResultChildren as LitAtomicResultChildren,\n AtomicResultChildrenTemplate as LitAtomicResultChildrenTemplate,\n AtomicResultDate as LitAtomicResultDate,\n AtomicResultFieldsList as LitAtomicResultFieldsList,\n AtomicResultHtml as LitAtomicResultHtml,\n AtomicResultIcon as LitAtomicResultIcon,\n AtomicResultImage as LitAtomicResultImage,\n AtomicResultLink as LitAtomicResultLink,\n AtomicResultList as LitAtomicResultList,\n AtomicResultLocalizedText as LitAtomicResultLocalizedText,\n AtomicResultMultiValueText as LitAtomicResultMultiValueText,\n AtomicResultNumber as LitAtomicResultNumber,\n AtomicResultPrintableUri as LitAtomicResultPrintableUri,\n AtomicResultRating as LitAtomicResultRating,\n AtomicResultSectionActions as LitAtomicResultSectionActions,\n AtomicResultSectionBadges as LitAtomicResultSectionBadges,\n AtomicResultSectionBottomMetadata as LitAtomicResultSectionBottomMetadata,\n AtomicResultSectionChildren as LitAtomicResultSectionChildren,\n AtomicResultSectionEmphasized as LitAtomicResultSectionEmphasized,\n AtomicResultSectionExcerpt as LitAtomicResultSectionExcerpt,\n AtomicResultSectionTitle as LitAtomicResultSectionTitle,\n AtomicResultSectionTitleMetadata as LitAtomicResultSectionTitleMetadata,\n AtomicResultSectionVisual as LitAtomicResultSectionVisual,\n AtomicResultsPerPage as LitAtomicResultsPerPage,\n AtomicResultText as LitAtomicResultText,\n AtomicResultTimespan as LitAtomicResultTimespan,\n AtomicSearchBox as LitAtomicSearchBox,\n AtomicSearchBoxInstantResults as LitAtomicSearchBoxInstantResults,\n AtomicSearchBoxQuerySuggestions as LitAtomicSearchBoxQuerySuggestions,\n AtomicSearchBoxRecentQueries as LitAtomicSearchBoxRecentQueries,\n AtomicSearchInterface as LitAtomicSearchInterface,\n AtomicSearchLayout as LitAtomicSearchLayout,\n AtomicSegmentedFacet as LitAtomicSegmentedFacet,\n AtomicSegmentedFacetScrollable as LitAtomicSegmentedFacetScrollable,\n AtomicSmartSnippet as LitAtomicSmartSnippet,\n AtomicSmartSnippetFeedbackModal as LitAtomicSmartSnippetFeedbackModal,\n AtomicSmartSnippetSuggestions as LitAtomicSmartSnippetSuggestions,\n AtomicSortDropdown as LitAtomicSortDropdown,\n AtomicSortExpression as LitAtomicSortExpression,\n AtomicTab as LitAtomicTab,\n AtomicTableElement as LitAtomicTableElement,\n AtomicTabManager as LitAtomicTabManager,\n AtomicText as LitAtomicText,\n AtomicTimeframe as LitAtomicTimeframe,\n AtomicTimeframeFacet as LitAtomicTimeframeFacet,\n} from '@coveo/atomic/components';\nimport {createComponent} from '@lit/react';\nimport React from 'react';\n\nexport const AtomicAriaLive = /*@__PURE__*/ createComponent({\n tagName: 'atomic-aria-live',\n react: React,\n elementClass: LitAtomicAriaLive,\n});\n\nexport const AtomicAutomaticFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-automatic-facet',\n react: React,\n elementClass: LitAtomicAutomaticFacet,\n});\n\nexport const AtomicAutomaticFacetGenerator = /*@__PURE__*/ createComponent({\n tagName: 'atomic-automatic-facet-generator',\n react: React,\n elementClass: LitAtomicAutomaticFacetGenerator,\n});\n\nexport const AtomicBreadbox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-breadbox',\n react: React,\n elementClass: LitAtomicBreadbox,\n});\n\nexport const AtomicCategoryFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-category-facet',\n react: React,\n elementClass: LitAtomicCategoryFacet,\n});\n\nexport const AtomicColorFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-color-facet',\n react: React,\n elementClass: LitAtomicColorFacet,\n});\n\nexport const AtomicComponentError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-component-error',\n react: React,\n elementClass: LitAtomicComponentError,\n});\n\nexport const AtomicDidYouMean = /*@__PURE__*/ createComponent({\n tagName: 'atomic-did-you-mean',\n react: React,\n elementClass: LitAtomicDidYouMean,\n});\n\nexport const AtomicExternal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-external',\n react: React,\n elementClass: LitAtomicExternal,\n});\n\nexport const AtomicFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-facet',\n react: React,\n elementClass: LitAtomicFacet,\n});\n\nexport const AtomicFacetManager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-facet-manager',\n react: React,\n elementClass: LitAtomicFacetManager,\n});\n\nexport const AtomicFocusTrap = /*@__PURE__*/ createComponent({\n tagName: 'atomic-focus-trap',\n react: React,\n elementClass: LitAtomicFocusTrap,\n});\n\nexport const AtomicFoldedResultList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-folded-result-list',\n react: React,\n elementClass: LitAtomicFoldedResultList,\n});\n\nexport const AtomicFormatCurrency = /*@__PURE__*/ createComponent({\n tagName: 'atomic-format-currency',\n react: React,\n elementClass: LitAtomicFormatCurrency,\n});\n\nexport const AtomicFormatNumber = /*@__PURE__*/ createComponent({\n tagName: 'atomic-format-number',\n react: React,\n elementClass: LitAtomicFormatNumber,\n});\n\nexport const AtomicFormatUnit = /*@__PURE__*/ createComponent({\n tagName: 'atomic-format-unit',\n react: React,\n elementClass: LitAtomicFormatUnit,\n});\n\nexport const AtomicGeneratedAnswer = /*@__PURE__*/ createComponent({\n tagName: 'atomic-generated-answer',\n react: React,\n elementClass: LitAtomicGeneratedAnswer,\n});\n\nexport const AtomicGeneratedAnswerFeedbackModal = /*@__PURE__*/ createComponent(\n {\n tagName: 'atomic-generated-answer-feedback-modal',\n react: React,\n elementClass: LitAtomicGeneratedAnswerFeedbackModal,\n }\n);\n\nexport const AtomicHtml = /*@__PURE__*/ createComponent({\n tagName: 'atomic-html',\n react: React,\n elementClass: LitAtomicHtml,\n});\n\nexport const AtomicIcon = /*@__PURE__*/ createComponent({\n tagName: 'atomic-icon',\n react: React,\n elementClass: LitAtomicIcon,\n});\n\nexport const AtomicLayoutSection = /*@__PURE__*/ createComponent({\n tagName: 'atomic-layout-section',\n react: React,\n elementClass: LitAtomicLayoutSection,\n});\n\nexport const AtomicLoadMoreResults = /*@__PURE__*/ createComponent({\n tagName: 'atomic-load-more-results',\n react: React,\n elementClass: LitAtomicLoadMoreResults,\n});\n\nexport const AtomicNoResults = /*@__PURE__*/ createComponent({\n tagName: 'atomic-no-results',\n react: React,\n elementClass: LitAtomicNoResults,\n});\n\nexport const AtomicNotifications = /*@__PURE__*/ createComponent({\n tagName: 'atomic-notifications',\n react: React,\n elementClass: LitAtomicNotifications,\n});\n\nexport const AtomicNumericFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-numeric-facet',\n react: React,\n elementClass: LitAtomicNumericFacet,\n});\n\nexport const AtomicNumericRange = /*@__PURE__*/ createComponent({\n tagName: 'atomic-numeric-range',\n react: React,\n elementClass: LitAtomicNumericRange,\n});\n\nexport const AtomicPager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-pager',\n react: React,\n elementClass: LitAtomicPager,\n});\n\nexport const AtomicPopover = /*@__PURE__*/ createComponent({\n tagName: 'atomic-popover',\n react: React,\n elementClass: LitAtomicPopover,\n});\n\nexport const AtomicQueryError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-query-error',\n react: React,\n elementClass: LitAtomicQueryError,\n});\n\nexport const AtomicQuerySummary = /*@__PURE__*/ createComponent({\n tagName: 'atomic-query-summary',\n react: React,\n elementClass: LitAtomicQuerySummary,\n});\n\nexport const AtomicQuickview = /*@__PURE__*/ createComponent({\n tagName: 'atomic-quickview',\n react: React,\n elementClass: LitAtomicQuickview,\n});\n\nexport const AtomicQuickviewModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-quickview-modal',\n react: React,\n elementClass: LitAtomicQuickviewModal,\n});\n\nexport const AtomicRatingFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-rating-facet',\n react: React,\n elementClass: LitAtomicRatingFacet,\n});\n\nexport const AtomicRatingRangeFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-rating-range-facet',\n react: React,\n elementClass: LitAtomicRatingRangeFacet,\n});\n\nexport const AtomicRecsError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-error',\n react: React,\n elementClass: LitAtomicRecsError,\n});\n\nexport const AtomicRecsInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-interface',\n react: React,\n elementClass: LitAtomicRecsInterface,\n});\n\nexport const AtomicRecsList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-list',\n react: React,\n elementClass: LitAtomicRecsList,\n});\n\nexport const AtomicRecsResult = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-result',\n react: React,\n elementClass: LitAtomicRecsResult,\n});\n\nexport const AtomicRefineModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-refine-modal',\n react: React,\n elementClass: LitAtomicRefineModal,\n});\n\nexport const AtomicRefineToggle = /*@__PURE__*/ createComponent({\n tagName: 'atomic-refine-toggle',\n react: React,\n elementClass: LitAtomicRefineToggle,\n});\n\nexport const AtomicResult = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result',\n react: React,\n elementClass: LitAtomicResult,\n});\n\nexport const AtomicResultBadge = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-badge',\n react: React,\n elementClass: LitAtomicResultBadge,\n});\n\nexport const AtomicResultChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-children',\n react: React,\n elementClass: LitAtomicResultChildren,\n});\n\nexport const AtomicResultChildrenTemplate = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-children-template',\n react: React,\n elementClass: LitAtomicResultChildrenTemplate,\n});\n\nexport const AtomicResultDate = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-date',\n react: React,\n elementClass: LitAtomicResultDate,\n});\n\nexport const AtomicResultFieldsList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-fields-list',\n react: React,\n elementClass: LitAtomicResultFieldsList,\n});\n\nexport const AtomicResultHtml = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-html',\n react: React,\n elementClass: LitAtomicResultHtml,\n});\n\nexport const AtomicResultIcon = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-icon',\n react: React,\n elementClass: LitAtomicResultIcon,\n});\n\nexport const AtomicResultImage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-image',\n react: React,\n elementClass: LitAtomicResultImage,\n});\n\nexport const AtomicResultLink = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-link',\n react: React,\n elementClass: LitAtomicResultLink,\n});\n\nexport const AtomicResultList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-list',\n react: React,\n elementClass: LitAtomicResultList,\n});\n\nexport const AtomicResultLocalizedText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-localized-text',\n react: React,\n elementClass: LitAtomicResultLocalizedText,\n});\n\nexport const AtomicResultMultiValueText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-multi-value-text',\n react: React,\n elementClass: LitAtomicResultMultiValueText,\n});\n\nexport const AtomicResultNumber = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-number',\n react: React,\n elementClass: LitAtomicResultNumber,\n});\n\nexport const AtomicResultPrintableUri = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-printable-uri',\n react: React,\n elementClass: LitAtomicResultPrintableUri,\n});\n\nexport const AtomicResultRating = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-rating',\n react: React,\n elementClass: LitAtomicResultRating,\n});\n\nexport const AtomicResultSectionActions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-actions',\n react: React,\n elementClass: LitAtomicResultSectionActions,\n});\n\nexport const AtomicResultSectionBadges = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-badges',\n react: React,\n elementClass: LitAtomicResultSectionBadges,\n});\n\nexport const AtomicResultSectionBottomMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-bottom-metadata',\n react: React,\n elementClass: LitAtomicResultSectionBottomMetadata,\n});\n\nexport const AtomicResultSectionChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-children',\n react: React,\n elementClass: LitAtomicResultSectionChildren,\n});\n\nexport const AtomicResultSectionEmphasized = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-emphasized',\n react: React,\n elementClass: LitAtomicResultSectionEmphasized,\n});\n\nexport const AtomicResultSectionExcerpt = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-excerpt',\n react: React,\n elementClass: LitAtomicResultSectionExcerpt,\n});\n\nexport const AtomicResultSectionTitle = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-title',\n react: React,\n elementClass: LitAtomicResultSectionTitle,\n});\n\nexport const AtomicResultSectionTitleMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-title-metadata',\n react: React,\n elementClass: LitAtomicResultSectionTitleMetadata,\n});\n\nexport const AtomicResultSectionVisual = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-visual',\n react: React,\n elementClass: LitAtomicResultSectionVisual,\n});\n\nexport const AtomicResultsPerPage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-results-per-page',\n react: React,\n elementClass: LitAtomicResultsPerPage,\n});\n\nexport const AtomicResultText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-text',\n react: React,\n elementClass: LitAtomicResultText,\n});\n\nexport const AtomicResultTimespan = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-timespan',\n react: React,\n elementClass: LitAtomicResultTimespan,\n});\n\nexport const AtomicSearchBox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box',\n react: React,\n elementClass: LitAtomicSearchBox,\n});\n\nexport const AtomicSearchBoxInstantResults = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box-instant-results',\n react: React,\n elementClass: LitAtomicSearchBoxInstantResults,\n});\n\nexport const AtomicSearchBoxQuerySuggestions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box-query-suggestions',\n react: React,\n elementClass: LitAtomicSearchBoxQuerySuggestions,\n});\n\nexport const AtomicSearchBoxRecentQueries = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box-recent-queries',\n react: React,\n elementClass: LitAtomicSearchBoxRecentQueries,\n});\n\nexport const AtomicSearchInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-interface',\n react: React,\n elementClass: LitAtomicSearchInterface,\n});\n\nexport const AtomicSearchLayout = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-layout',\n react: React,\n elementClass: LitAtomicSearchLayout,\n});\n\nexport const AtomicSegmentedFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-segmented-facet',\n react: React,\n elementClass: LitAtomicSegmentedFacet,\n});\n\nexport const AtomicSegmentedFacetScrollable = /*@__PURE__*/ createComponent({\n tagName: 'atomic-segmented-facet-scrollable',\n react: React,\n elementClass: LitAtomicSegmentedFacetScrollable,\n});\n\nexport const AtomicSmartSnippet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-smart-snippet',\n react: React,\n elementClass: LitAtomicSmartSnippet,\n});\n\nexport const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-smart-snippet-feedback-modal',\n react: React,\n elementClass: LitAtomicSmartSnippetFeedbackModal,\n});\n\nexport const AtomicSmartSnippetSuggestions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-smart-snippet-suggestions',\n react: React,\n elementClass: LitAtomicSmartSnippetSuggestions,\n});\n\nexport const AtomicSortDropdown = /*@__PURE__*/ createComponent({\n tagName: 'atomic-sort-dropdown',\n react: React,\n elementClass: LitAtomicSortDropdown,\n});\n\nexport const AtomicSortExpression = /*@__PURE__*/ createComponent({\n tagName: 'atomic-sort-expression',\n react: React,\n elementClass: LitAtomicSortExpression,\n});\n\nexport const AtomicTab = /*@__PURE__*/ createComponent({\n tagName: 'atomic-tab',\n react: React,\n elementClass: LitAtomicTab,\n});\n\nexport const AtomicTableElement = /*@__PURE__*/ createComponent({\n tagName: 'atomic-table-element',\n react: React,\n elementClass: LitAtomicTableElement,\n});\n\nexport const AtomicTabManager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-tab-manager',\n react: React,\n elementClass: LitAtomicTabManager,\n});\n\nexport const AtomicText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-text',\n react: React,\n elementClass: LitAtomicText,\n});\n\nexport const AtomicTimeframe = /*@__PURE__*/ createComponent({\n tagName: 'atomic-timeframe',\n react: React,\n elementClass: LitAtomicTimeframe,\n});\n\nexport const AtomicTimeframeFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-timeframe-facet',\n react: React,\n elementClass: LitAtomicTimeframeFacet,\n});\n","import type {AtomicFoldedResultList} from '@coveo/atomic/components';\nimport type {FoldedResult} from '@coveo/headless';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {AtomicFoldedResultList as LitAtomicFoldedResultList} from './components.js';\n\n/**\n * The properties of the AtomicFoldedResultList component\n */\ninterface WrapperProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (foldedResult: FoldedResult) => JSX.Element;\n}\n\n/**\n * This component serves as a wrapper for the core AtomicResultList.\n *\n * @param props\n * @returns\n */\nexport const FoldedResultListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const foldedResultListRef = useRef<AtomicFoldedResultList>(null);\n useEffect(() => {\n foldedResultListRef.current?.setRenderFunction((foldedResult, root) => {\n flushSync(() => {\n createRoot(root).render(template(foldedResult as FoldedResult));\n });\n return root.innerHTML;\n });\n }, [template]);\n return (\n <LitAtomicFoldedResultList ref={foldedResultListRef} {...otherProps} />\n );\n};\n","import type {AtomicResultList} from '@coveo/atomic/components';\nimport type {Result} from '@coveo/headless';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {\n AtomicResultLink,\n AtomicResultList as LitAtomicResultList,\n} from './components.js';\n\ninterface Template {\n contentTemplate: JSX.Element;\n linkTemplate: JSX.Element;\n}\n\ninterface AtomicResultListProps {\n /**\n * The spacing of various elements in the result list, including the gap between results, the gap between parts of a result, and the font sizes of different parts in a result.\n */\n density?: AtomicResultList['density'];\n /**\n * The desired layout to use when displaying results. Layouts affect how many results to display per row and how visually distinct they are from each other.\n */\n display?: AtomicResultList['display'];\n /**\n * The expected size of the image displayed for results.\n */\n imageSize?: AtomicResultList['imageSize'];\n /**\n * The desired number of placeholders to display while the result list is loading.\n */\n numberOfPlaceholders?: number;\n}\n\ninterface HTMLAtomicResultListElement extends AtomicResultList, HTMLElement {}\n\n// biome-ignore lint/correctness/noUnusedVariables: <>\nvar HTMLAtomicResultListElement: {\n prototype: HTMLAtomicResultListElement;\n new (): HTMLAtomicResultListElement;\n};\n\n/**\n * The properties of the AtomicResultList component\n */\ninterface WrapperProps extends AtomicResultListProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (result: Result) => JSX.Element | Template;\n}\n\n/**\n * This component serves as a wrapper for the core AtomicResultList.\n *\n * @param props\n * @returns\n */\nexport const ResultListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const resultListRef = useRef<HTMLAtomicResultListElement>(null);\n useEffect(() => {\n resultListRef.current?.setRenderFunction((result, root, linkContainer) => {\n const templateResult = template(result as Result);\n if (isTemplate(templateResult)) {\n return renderTemplate(linkContainer, templateResult, root);\n } else {\n return renderJSXTemplate(\n linkContainer,\n root,\n templateResult,\n otherProps.display\n );\n }\n });\n }, [otherProps.display, template]);\n return <LitAtomicResultList ref={resultListRef} {...otherProps} />;\n};\n\nconst isTemplate = (template: JSX.Element | Template): template is Template => {\n return (template as Template).linkTemplate !== undefined;\n};\n\nfunction renderJSXTemplate(\n linkContainer: HTMLElement | undefined,\n root: HTMLElement,\n templateResult: JSX.Element,\n display: WrapperProps['display']\n) {\n const contentRoot = createRoot(root);\n const linkRoot = linkContainer ? createRoot(linkContainer!) : null;\n flushSync(() => {\n contentRoot.render(templateResult);\n if (!linkRoot) {\n return;\n }\n display === 'grid'\n ? linkRoot.render(<AtomicResultLink></AtomicResultLink>)\n : // biome-ignore lint/complexity/noUselessFragments: <>\n linkRoot.render(<></>);\n });\n return root.innerHTML;\n}\n\nfunction renderTemplate(\n linkContainer: HTMLElement | undefined,\n templateResult: Template,\n root: HTMLElement\n) {\n const linkRoot = createRoot(linkContainer!);\n const contentRoot = createRoot(root);\n flushSync(() => {\n linkRoot.render(templateResult.linkTemplate);\n contentRoot.render(templateResult.contentTemplate);\n });\n return root.innerHTML;\n}\n","import type {Bindings} from '@coveo/atomic';\nimport type {Result} from '@coveo/headless';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {AtomicSearchBoxInstantResults} from './components.js';\n\ninterface WrapperProps {\n maxResultsPerQuery?: number;\n density?: 'comfortable' | 'normal' | 'compact';\n imageSize?: 'icon' | 'small' | 'large' | 'none';\n template: (result: Result) => JSX.Element;\n ariaLabelGenerator?: (\n bindings: Bindings,\n result: Result\n ) => string | undefined;\n}\n\nexport const SearchBoxInstantResultsWrapper: React.FC<WrapperProps> = ({\n maxResultsPerQuery,\n density,\n imageSize,\n template,\n ariaLabelGenerator,\n}) => {\n const ref = useRef<\n HTMLElement & {\n setRenderFunction?: (\n fn: (result: Result, root: HTMLElement) => string\n ) => void;\n ariaLabelGenerator?: (\n bindings: Bindings,\n result: Result\n ) => string | undefined;\n }\n >(null);\n\n useEffect(() => {\n if (ref.current?.setRenderFunction) {\n ref.current.setRenderFunction((result: Result, root: HTMLElement) => {\n const templateResult = template(result);\n const contentRoot = createRoot(root);\n flushSync(() => {\n contentRoot.render(templateResult);\n });\n return root.innerHTML;\n });\n }\n }, [template]);\n\n useEffect(() => {\n if (ref.current && ariaLabelGenerator) {\n ref.current.ariaLabelGenerator = ariaLabelGenerator;\n }\n }, [ariaLabelGenerator]);\n\n return (\n <AtomicSearchBoxInstantResults\n // biome-ignore lint/suspicious/noExplicitAny: Ref typing for web component\n ref={ref as any}\n maxResultsPerQuery={maxResultsPerQuery}\n imageSize={imageSize}\n density={density}\n />\n );\n};\n","import type {i18n} from '@coveo/atomic';\nimport {\n buildSearchEngine,\n getSampleSearchEngineConfiguration,\n} from '@coveo/headless';\n// biome-ignore lint/style/useImportType: <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicSearchInterface} from './components';\n\ntype AtomicSearchInterfaceProps = React.ComponentProps<\n typeof AtomicSearchInterface\n>;\n\ntype ExecuteSearch = AtomicSearchInterfaceProps['executeFirstSearch'];\n/**\n * The properties of the AtomicSearchInterface component\n */\ninterface WrapperProps\n extends Omit<\n AtomicSearchInterfaceProps,\n 'i18n' | 'pipeline' | 'searchHub' | 'analytics'\n > {\n /**\n * An optional callback function that can be used to control the execution of the first query.\n *\n * If not provided, a default function will be used, which execute the first query immediately after initialization.\n */\n onReady?: (executeFirstSearch: ExecuteSearch) => Promise<void>;\n /**\n * An optional callback that lets you control the interface localization.\n *\n * The function receives the search interface 18n instance, which you can then modify (see [Localization](https://docs.coveo.com/en/atomic/latest/usage/atomic-localization/)).\n *\n */\n localization?: (i18n: i18n) => void;\n}\n\nconst DefaultProps: Required<Pick<WrapperProps, 'onReady' | 'localization'>> = {\n onReady: (executeFirstRequest) => {\n return executeFirstRequest ? executeFirstRequest() : Promise.resolve();\n },\n localization: () => {},\n};\n\n/**\n * This component serves as a wrapper for the core AtomicSearchInterface.\n * @param props\n * @returns\n */\nexport const SearchInterfaceWrapper = (\n props: React.PropsWithChildren<WrapperProps>\n) => {\n const mergedProps = {...DefaultProps, ...props};\n if (!mergedProps.engine) {\n mergedProps.engine = buildSearchEngine({\n configuration: getSampleSearchEngineConfiguration(),\n });\n }\n const {engine, localization, onReady, ...allOtherProps} = mergedProps;\n const searchInterfaceRef =\n useRef<React.ElementRef<typeof AtomicSearchInterface>>(null);\n let initialization: Promise<void> | null = null;\n\n useEffect(() => {\n const searchInterfaceAtomic = searchInterfaceRef.current!;\n if (!initialization) {\n initialization = searchInterfaceAtomic.initializeWithSearchEngine(engine);\n initialization.then(() => {\n localization(searchInterfaceAtomic.i18n);\n onReady(\n searchInterfaceAtomic.executeFirstSearch.bind(searchInterfaceAtomic)\n );\n });\n }\n }, [engine, initialization, localization, onReady]);\n\n return (\n <AtomicSearchInterface ref={searchInterfaceRef} {...allOtherProps}>\n {props.children}\n </AtomicSearchInterface>\n );\n};\n"],"names":["LitAtomicAriaLive","LitAtomicAutomaticFacet","LitAtomicAutomaticFacetGenerator","LitAtomicBreadbox","LitAtomicCategoryFacet","LitAtomicColorFacet","LitAtomicComponentError","LitAtomicDidYouMean","LitAtomicExternal","LitAtomicFacet","LitAtomicFacetManager","LitAtomicFocusTrap","LitAtomicFoldedResultList","LitAtomicFormatCurrency","LitAtomicFormatNumber","LitAtomicFormatUnit","LitAtomicGeneratedAnswer","LitAtomicGeneratedAnswerFeedbackModal","LitAtomicHtml","LitAtomicIcon","LitAtomicLayoutSection","LitAtomicLoadMoreResults","LitAtomicNoResults","LitAtomicNotifications","LitAtomicNumericFacet","LitAtomicNumericRange","LitAtomicPager","LitAtomicPopover","LitAtomicQueryError","LitAtomicQuerySummary","LitAtomicQuickview","LitAtomicQuickviewModal","LitAtomicRatingFacet","LitAtomicRatingRangeFacet","LitAtomicRecsError","LitAtomicRecsInterface","LitAtomicRecsList","LitAtomicRecsResult","LitAtomicRefineModal","LitAtomicRefineToggle","LitAtomicResult","LitAtomicResultBadge","LitAtomicResultChildren","LitAtomicResultChildrenTemplate","LitAtomicResultDate","LitAtomicResultFieldsList","LitAtomicResultHtml","LitAtomicResultIcon","LitAtomicResultImage","LitAtomicResultLink","LitAtomicResultList","LitAtomicResultLocalizedText","LitAtomicResultMultiValueText","LitAtomicResultNumber","LitAtomicResultPrintableUri","LitAtomicResultRating","LitAtomicResultSectionActions","LitAtomicResultSectionBadges","LitAtomicResultSectionBottomMetadata","LitAtomicResultSectionChildren","LitAtomicResultSectionEmphasized","LitAtomicResultSectionExcerpt","LitAtomicResultSectionTitle","LitAtomicResultSectionTitleMetadata","LitAtomicResultSectionVisual","LitAtomicResultsPerPage","LitAtomicResultText","LitAtomicResultTimespan","LitAtomicSearchBox","LitAtomicSearchBoxInstantResults","LitAtomicSearchBoxQuerySuggestions","LitAtomicSearchBoxRecentQueries","LitAtomicSearchInterface","LitAtomicSearchLayout","LitAtomicSegmentedFacet","LitAtomicSegmentedFacetScrollable","LitAtomicSmartSnippet","LitAtomicSmartSnippetFeedbackModal","LitAtomicSmartSnippetSuggestions","LitAtomicSortDropdown","LitAtomicSortExpression","LitAtomicTab","LitAtomicTableElement","LitAtomicTabManager","LitAtomicText","LitAtomicTimeframe","LitAtomicTimeframeFacet"],"mappings":";;;;;;;A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,GAAG,kBAAkB,CAAC,OAAQ;QACzD,IAAI,CAAC,cAAc,EAAE;AACnB,YAAA,cAAc,GAAG,qBAAqB,CAAC,0BAA0B,CAAC,MAAM,CAAC;AACzE,YAAA,cAAc,CAAC,IAAI,CAAC,MAAK;AACvB,gBAAA,YAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC;gBACxC,OAAO,CACL,qBAAqB,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CACrE;AACH,YAAA,CAAC,CAAC;QACJ;IACF,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;AAEnD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,qBAAqB,EAAA,EAAC,GAAG,EAAE,kBAAkB,EAAA,GAAM,aAAa,IAC9D,KAAK,CAAC,QAAQ,CACO;AAE5B;;;;"}
1
+ {"version":3,"file":"atomic-react.mjs","sources":["../../src/components/search/components.ts","../../src/components/search/FoldedResultListWrapper.tsx","../../src/components/search/ResultListWrapper.tsx","../../src/components/search/SearchBoxInstantResultsWrapper.tsx","../../src/components/search/SearchInterfaceWrapper.tsx"],"sourcesContent":["import {createComponent} from '@lit/react';\nimport React from 'react';\nimport {AtomicAriaLive as LitAtomicAriaLive,AtomicAutomaticFacet as LitAtomicAutomaticFacet,AtomicAutomaticFacetGenerator as LitAtomicAutomaticFacetGenerator,AtomicBreadbox as LitAtomicBreadbox,AtomicCategoryFacet as LitAtomicCategoryFacet,AtomicColorFacet as LitAtomicColorFacet,AtomicComponentError as LitAtomicComponentError,AtomicDidYouMean as LitAtomicDidYouMean,AtomicExternal as LitAtomicExternal,AtomicFacet as LitAtomicFacet,AtomicFacetManager as LitAtomicFacetManager,AtomicFocusTrap as LitAtomicFocusTrap,AtomicFoldedResultList as LitAtomicFoldedResultList,AtomicFormatCurrency as LitAtomicFormatCurrency,AtomicFormatNumber as LitAtomicFormatNumber,AtomicFormatUnit as LitAtomicFormatUnit,AtomicGeneratedAnswer as LitAtomicGeneratedAnswer,AtomicGeneratedAnswerFeedbackModal as LitAtomicGeneratedAnswerFeedbackModal,AtomicHtml as LitAtomicHtml,AtomicIcon as LitAtomicIcon,AtomicLayoutSection as LitAtomicLayoutSection,AtomicLoadMoreResults as LitAtomicLoadMoreResults,AtomicNoResults as LitAtomicNoResults,AtomicNotifications as LitAtomicNotifications,AtomicNumericFacet as LitAtomicNumericFacet,AtomicNumericRange as LitAtomicNumericRange,AtomicPager as LitAtomicPager,AtomicPopover as LitAtomicPopover,AtomicQueryError as LitAtomicQueryError,AtomicQuerySummary as LitAtomicQuerySummary,AtomicQuickview as LitAtomicQuickview,AtomicQuickviewModal as LitAtomicQuickviewModal,AtomicRatingFacet as LitAtomicRatingFacet,AtomicRatingRangeFacet as LitAtomicRatingRangeFacet,AtomicRecsError as LitAtomicRecsError,AtomicRecsInterface as LitAtomicRecsInterface,AtomicRecsList as LitAtomicRecsList,AtomicRecsResult as LitAtomicRecsResult,AtomicRefineModal as LitAtomicRefineModal,AtomicRefineToggle as LitAtomicRefineToggle,AtomicResult as LitAtomicResult,AtomicResultBadge as LitAtomicResultBadge,AtomicResultChildren as LitAtomicResultChildren,AtomicResultChildrenTemplate as LitAtomicResultChildrenTemplate,AtomicResultDate as LitAtomicResultDate,AtomicResultFieldsList as LitAtomicResultFieldsList,AtomicResultHtml as LitAtomicResultHtml,AtomicResultIcon as LitAtomicResultIcon,AtomicResultImage as LitAtomicResultImage,AtomicResultLink as LitAtomicResultLink,AtomicResultList as LitAtomicResultList,AtomicResultLocalizedText as LitAtomicResultLocalizedText,AtomicResultMultiValueText as LitAtomicResultMultiValueText,AtomicResultNumber as LitAtomicResultNumber,AtomicResultPrintableUri as LitAtomicResultPrintableUri,AtomicResultRating as LitAtomicResultRating,AtomicResultSectionActions as LitAtomicResultSectionActions,AtomicResultSectionBadges as LitAtomicResultSectionBadges,AtomicResultSectionBottomMetadata as LitAtomicResultSectionBottomMetadata,AtomicResultSectionChildren as LitAtomicResultSectionChildren,AtomicResultSectionEmphasized as LitAtomicResultSectionEmphasized,AtomicResultSectionExcerpt as LitAtomicResultSectionExcerpt,AtomicResultSectionTitle as LitAtomicResultSectionTitle,AtomicResultSectionTitleMetadata as LitAtomicResultSectionTitleMetadata,AtomicResultSectionVisual as LitAtomicResultSectionVisual,AtomicResultsPerPage as LitAtomicResultsPerPage,AtomicResultText as LitAtomicResultText,AtomicResultTimespan as LitAtomicResultTimespan,AtomicSearchBox as LitAtomicSearchBox,AtomicSearchBoxInstantResults as LitAtomicSearchBoxInstantResults,AtomicSearchBoxQuerySuggestions as LitAtomicSearchBoxQuerySuggestions,AtomicSearchBoxRecentQueries as LitAtomicSearchBoxRecentQueries,AtomicSearchInterface as LitAtomicSearchInterface,AtomicSearchLayout as LitAtomicSearchLayout,AtomicSegmentedFacet as LitAtomicSegmentedFacet,AtomicSegmentedFacetScrollable as LitAtomicSegmentedFacetScrollable,AtomicSmartSnippet as LitAtomicSmartSnippet,AtomicSmartSnippetFeedbackModal as LitAtomicSmartSnippetFeedbackModal,AtomicSmartSnippetSuggestions as LitAtomicSmartSnippetSuggestions,AtomicSortDropdown as LitAtomicSortDropdown,AtomicSortExpression as LitAtomicSortExpression,AtomicTab as LitAtomicTab,AtomicTableElement as LitAtomicTableElement,AtomicTabManager as LitAtomicTabManager,AtomicText as LitAtomicText,AtomicTimeframe as LitAtomicTimeframe,AtomicTimeframeFacet as LitAtomicTimeframeFacet} from '@coveo/atomic/components';\n\nexport const AtomicAriaLive = /*@__PURE__*/ createComponent({\n tagName: 'atomic-aria-live',\n react: React,\n elementClass: LitAtomicAriaLive,\n});\n\nexport const AtomicAutomaticFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-automatic-facet',\n react: React,\n elementClass: LitAtomicAutomaticFacet,\n});\n\nexport const AtomicAutomaticFacetGenerator = /*@__PURE__*/ createComponent({\n tagName: 'atomic-automatic-facet-generator',\n react: React,\n elementClass: LitAtomicAutomaticFacetGenerator,\n});\n\nexport const AtomicBreadbox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-breadbox',\n react: React,\n elementClass: LitAtomicBreadbox,\n});\n\nexport const AtomicCategoryFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-category-facet',\n react: React,\n elementClass: LitAtomicCategoryFacet,\n});\n\nexport const AtomicColorFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-color-facet',\n react: React,\n elementClass: LitAtomicColorFacet,\n});\n\nexport const AtomicComponentError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-component-error',\n react: React,\n elementClass: LitAtomicComponentError,\n});\n\nexport const AtomicDidYouMean = /*@__PURE__*/ createComponent({\n tagName: 'atomic-did-you-mean',\n react: React,\n elementClass: LitAtomicDidYouMean,\n});\n\nexport const AtomicExternal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-external',\n react: React,\n elementClass: LitAtomicExternal,\n});\n\nexport const AtomicFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-facet',\n react: React,\n elementClass: LitAtomicFacet,\n});\n\nexport const AtomicFacetManager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-facet-manager',\n react: React,\n elementClass: LitAtomicFacetManager,\n});\n\nexport const AtomicFocusTrap = /*@__PURE__*/ createComponent({\n tagName: 'atomic-focus-trap',\n react: React,\n elementClass: LitAtomicFocusTrap,\n});\n\nexport const AtomicFoldedResultList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-folded-result-list',\n react: React,\n elementClass: LitAtomicFoldedResultList,\n});\n\nexport const AtomicFormatCurrency = /*@__PURE__*/ createComponent({\n tagName: 'atomic-format-currency',\n react: React,\n elementClass: LitAtomicFormatCurrency,\n});\n\nexport const AtomicFormatNumber = /*@__PURE__*/ createComponent({\n tagName: 'atomic-format-number',\n react: React,\n elementClass: LitAtomicFormatNumber,\n});\n\nexport const AtomicFormatUnit = /*@__PURE__*/ createComponent({\n tagName: 'atomic-format-unit',\n react: React,\n elementClass: LitAtomicFormatUnit,\n});\n\nexport const AtomicGeneratedAnswer = /*@__PURE__*/ createComponent({\n tagName: 'atomic-generated-answer',\n react: React,\n elementClass: LitAtomicGeneratedAnswer,\n});\n\nexport const AtomicGeneratedAnswerFeedbackModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-generated-answer-feedback-modal',\n react: React,\n elementClass: LitAtomicGeneratedAnswerFeedbackModal,\n});\n\nexport const AtomicHtml = /*@__PURE__*/ createComponent({\n tagName: 'atomic-html',\n react: React,\n elementClass: LitAtomicHtml,\n});\n\nexport const AtomicIcon = /*@__PURE__*/ createComponent({\n tagName: 'atomic-icon',\n react: React,\n elementClass: LitAtomicIcon,\n});\n\nexport const AtomicLayoutSection = /*@__PURE__*/ createComponent({\n tagName: 'atomic-layout-section',\n react: React,\n elementClass: LitAtomicLayoutSection,\n});\n\nexport const AtomicLoadMoreResults = /*@__PURE__*/ createComponent({\n tagName: 'atomic-load-more-results',\n react: React,\n elementClass: LitAtomicLoadMoreResults,\n});\n\nexport const AtomicNoResults = /*@__PURE__*/ createComponent({\n tagName: 'atomic-no-results',\n react: React,\n elementClass: LitAtomicNoResults,\n});\n\nexport const AtomicNotifications = /*@__PURE__*/ createComponent({\n tagName: 'atomic-notifications',\n react: React,\n elementClass: LitAtomicNotifications,\n});\n\nexport const AtomicNumericFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-numeric-facet',\n react: React,\n elementClass: LitAtomicNumericFacet,\n});\n\nexport const AtomicNumericRange = /*@__PURE__*/ createComponent({\n tagName: 'atomic-numeric-range',\n react: React,\n elementClass: LitAtomicNumericRange,\n});\n\nexport const AtomicPager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-pager',\n react: React,\n elementClass: LitAtomicPager,\n});\n\nexport const AtomicPopover = /*@__PURE__*/ createComponent({\n tagName: 'atomic-popover',\n react: React,\n elementClass: LitAtomicPopover,\n});\n\nexport const AtomicQueryError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-query-error',\n react: React,\n elementClass: LitAtomicQueryError,\n});\n\nexport const AtomicQuerySummary = /*@__PURE__*/ createComponent({\n tagName: 'atomic-query-summary',\n react: React,\n elementClass: LitAtomicQuerySummary,\n});\n\nexport const AtomicQuickview = /*@__PURE__*/ createComponent({\n tagName: 'atomic-quickview',\n react: React,\n elementClass: LitAtomicQuickview,\n});\n\nexport const AtomicQuickviewModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-quickview-modal',\n react: React,\n elementClass: LitAtomicQuickviewModal,\n});\n\nexport const AtomicRatingFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-rating-facet',\n react: React,\n elementClass: LitAtomicRatingFacet,\n});\n\nexport const AtomicRatingRangeFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-rating-range-facet',\n react: React,\n elementClass: LitAtomicRatingRangeFacet,\n});\n\nexport const AtomicRecsError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-error',\n react: React,\n elementClass: LitAtomicRecsError,\n});\n\nexport const AtomicRecsInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-interface',\n react: React,\n elementClass: LitAtomicRecsInterface,\n});\n\nexport const AtomicRecsList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-list',\n react: React,\n elementClass: LitAtomicRecsList,\n});\n\nexport const AtomicRecsResult = /*@__PURE__*/ createComponent({\n tagName: 'atomic-recs-result',\n react: React,\n elementClass: LitAtomicRecsResult,\n});\n\nexport const AtomicRefineModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-refine-modal',\n react: React,\n elementClass: LitAtomicRefineModal,\n});\n\nexport const AtomicRefineToggle = /*@__PURE__*/ createComponent({\n tagName: 'atomic-refine-toggle',\n react: React,\n elementClass: LitAtomicRefineToggle,\n});\n\nexport const AtomicResult = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result',\n react: React,\n elementClass: LitAtomicResult,\n});\n\nexport const AtomicResultBadge = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-badge',\n react: React,\n elementClass: LitAtomicResultBadge,\n});\n\nexport const AtomicResultChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-children',\n react: React,\n elementClass: LitAtomicResultChildren,\n});\n\nexport const AtomicResultChildrenTemplate = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-children-template',\n react: React,\n elementClass: LitAtomicResultChildrenTemplate,\n});\n\nexport const AtomicResultDate = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-date',\n react: React,\n elementClass: LitAtomicResultDate,\n});\n\nexport const AtomicResultFieldsList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-fields-list',\n react: React,\n elementClass: LitAtomicResultFieldsList,\n});\n\nexport const AtomicResultHtml = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-html',\n react: React,\n elementClass: LitAtomicResultHtml,\n});\n\nexport const AtomicResultIcon = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-icon',\n react: React,\n elementClass: LitAtomicResultIcon,\n});\n\nexport const AtomicResultImage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-image',\n react: React,\n elementClass: LitAtomicResultImage,\n});\n\nexport const AtomicResultLink = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-link',\n react: React,\n elementClass: LitAtomicResultLink,\n});\n\nexport const AtomicResultList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-list',\n react: React,\n elementClass: LitAtomicResultList,\n});\n\nexport const AtomicResultLocalizedText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-localized-text',\n react: React,\n elementClass: LitAtomicResultLocalizedText,\n});\n\nexport const AtomicResultMultiValueText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-multi-value-text',\n react: React,\n elementClass: LitAtomicResultMultiValueText,\n});\n\nexport const AtomicResultNumber = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-number',\n react: React,\n elementClass: LitAtomicResultNumber,\n});\n\nexport const AtomicResultPrintableUri = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-printable-uri',\n react: React,\n elementClass: LitAtomicResultPrintableUri,\n});\n\nexport const AtomicResultRating = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-rating',\n react: React,\n elementClass: LitAtomicResultRating,\n});\n\nexport const AtomicResultSectionActions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-actions',\n react: React,\n elementClass: LitAtomicResultSectionActions,\n});\n\nexport const AtomicResultSectionBadges = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-badges',\n react: React,\n elementClass: LitAtomicResultSectionBadges,\n});\n\nexport const AtomicResultSectionBottomMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-bottom-metadata',\n react: React,\n elementClass: LitAtomicResultSectionBottomMetadata,\n});\n\nexport const AtomicResultSectionChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-children',\n react: React,\n elementClass: LitAtomicResultSectionChildren,\n});\n\nexport const AtomicResultSectionEmphasized = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-emphasized',\n react: React,\n elementClass: LitAtomicResultSectionEmphasized,\n});\n\nexport const AtomicResultSectionExcerpt = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-excerpt',\n react: React,\n elementClass: LitAtomicResultSectionExcerpt,\n});\n\nexport const AtomicResultSectionTitle = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-title',\n react: React,\n elementClass: LitAtomicResultSectionTitle,\n});\n\nexport const AtomicResultSectionTitleMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-title-metadata',\n react: React,\n elementClass: LitAtomicResultSectionTitleMetadata,\n});\n\nexport const AtomicResultSectionVisual = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-section-visual',\n react: React,\n elementClass: LitAtomicResultSectionVisual,\n});\n\nexport const AtomicResultsPerPage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-results-per-page',\n react: React,\n elementClass: LitAtomicResultsPerPage,\n});\n\nexport const AtomicResultText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-text',\n react: React,\n elementClass: LitAtomicResultText,\n});\n\nexport const AtomicResultTimespan = /*@__PURE__*/ createComponent({\n tagName: 'atomic-result-timespan',\n react: React,\n elementClass: LitAtomicResultTimespan,\n});\n\nexport const AtomicSearchBox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box',\n react: React,\n elementClass: LitAtomicSearchBox,\n});\n\nexport const AtomicSearchBoxInstantResults = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box-instant-results',\n react: React,\n elementClass: LitAtomicSearchBoxInstantResults,\n});\n\nexport const AtomicSearchBoxQuerySuggestions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box-query-suggestions',\n react: React,\n elementClass: LitAtomicSearchBoxQuerySuggestions,\n});\n\nexport const AtomicSearchBoxRecentQueries = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-box-recent-queries',\n react: React,\n elementClass: LitAtomicSearchBoxRecentQueries,\n});\n\nexport const AtomicSearchInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-interface',\n react: React,\n elementClass: LitAtomicSearchInterface,\n});\n\nexport const AtomicSearchLayout = /*@__PURE__*/ createComponent({\n tagName: 'atomic-search-layout',\n react: React,\n elementClass: LitAtomicSearchLayout,\n});\n\nexport const AtomicSegmentedFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-segmented-facet',\n react: React,\n elementClass: LitAtomicSegmentedFacet,\n});\n\nexport const AtomicSegmentedFacetScrollable = /*@__PURE__*/ createComponent({\n tagName: 'atomic-segmented-facet-scrollable',\n react: React,\n elementClass: LitAtomicSegmentedFacetScrollable,\n});\n\nexport const AtomicSmartSnippet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-smart-snippet',\n react: React,\n elementClass: LitAtomicSmartSnippet,\n});\n\nexport const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-smart-snippet-feedback-modal',\n react: React,\n elementClass: LitAtomicSmartSnippetFeedbackModal,\n});\n\nexport const AtomicSmartSnippetSuggestions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-smart-snippet-suggestions',\n react: React,\n elementClass: LitAtomicSmartSnippetSuggestions,\n});\n\nexport const AtomicSortDropdown = /*@__PURE__*/ createComponent({\n tagName: 'atomic-sort-dropdown',\n react: React,\n elementClass: LitAtomicSortDropdown,\n});\n\nexport const AtomicSortExpression = /*@__PURE__*/ createComponent({\n tagName: 'atomic-sort-expression',\n react: React,\n elementClass: LitAtomicSortExpression,\n});\n\nexport const AtomicTab = /*@__PURE__*/ createComponent({\n tagName: 'atomic-tab',\n react: React,\n elementClass: LitAtomicTab,\n});\n\nexport const AtomicTableElement = /*@__PURE__*/ createComponent({\n tagName: 'atomic-table-element',\n react: React,\n elementClass: LitAtomicTableElement,\n});\n\nexport const AtomicTabManager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-tab-manager',\n react: React,\n elementClass: LitAtomicTabManager,\n});\n\nexport const AtomicText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-text',\n react: React,\n elementClass: LitAtomicText,\n});\n\nexport const AtomicTimeframe = /*@__PURE__*/ createComponent({\n tagName: 'atomic-timeframe',\n react: React,\n elementClass: LitAtomicTimeframe,\n});\n\nexport const AtomicTimeframeFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-timeframe-facet',\n react: React,\n elementClass: LitAtomicTimeframeFacet,\n});\n","import type {AtomicFoldedResultList} from '@coveo/atomic/components';\nimport type {FoldedResult} from '@coveo/headless';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {AtomicFoldedResultList as LitAtomicFoldedResultList} from './components.js';\n\n/**\n * The properties of the AtomicFoldedResultList component\n */\ninterface WrapperProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (foldedResult: FoldedResult) => JSX.Element;\n}\n\n/**\n * This component serves as a wrapper for the core AtomicResultList.\n *\n * @param props\n * @returns\n */\nexport const FoldedResultListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const foldedResultListRef = useRef<AtomicFoldedResultList>(null);\n useEffect(() => {\n foldedResultListRef.current?.setRenderFunction((foldedResult, root) => {\n flushSync(() => {\n createRoot(root).render(template(foldedResult as FoldedResult));\n });\n return root.innerHTML;\n });\n }, [template]);\n return (\n <LitAtomicFoldedResultList ref={foldedResultListRef} {...otherProps} />\n );\n};\n","import type {AtomicResultList} from '@coveo/atomic/components';\nimport type {Result} from '@coveo/headless';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {\n AtomicResultLink,\n AtomicResultList as LitAtomicResultList,\n} from './components.js';\n\ninterface Template {\n contentTemplate: JSX.Element;\n linkTemplate: JSX.Element;\n}\n\ninterface AtomicResultListProps {\n /**\n * The spacing of various elements in the result list, including the gap between results, the gap between parts of a result, and the font sizes of different parts in a result.\n */\n density?: AtomicResultList['density'];\n /**\n * The desired layout to use when displaying results. Layouts affect how many results to display per row and how visually distinct they are from each other.\n */\n display?: AtomicResultList['display'];\n /**\n * The expected size of the image displayed for results.\n */\n imageSize?: AtomicResultList['imageSize'];\n /**\n * The desired number of placeholders to display while the result list is loading.\n */\n numberOfPlaceholders?: number;\n}\n\ninterface HTMLAtomicResultListElement extends AtomicResultList, HTMLElement {}\n\n// biome-ignore lint/correctness/noUnusedVariables: <>\nvar HTMLAtomicResultListElement: {\n prototype: HTMLAtomicResultListElement;\n new (): HTMLAtomicResultListElement;\n};\n\n/**\n * The properties of the AtomicResultList component\n */\ninterface WrapperProps extends AtomicResultListProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (result: Result) => JSX.Element | Template;\n}\n\n/**\n * This component serves as a wrapper for the core AtomicResultList.\n *\n * @param props\n * @returns\n */\nexport const ResultListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const resultListRef = useRef<HTMLAtomicResultListElement>(null);\n useEffect(() => {\n resultListRef.current?.setRenderFunction((result, root, linkContainer) => {\n const templateResult = template(result as Result);\n if (isTemplate(templateResult)) {\n return renderTemplate(linkContainer, templateResult, root);\n } else {\n return renderJSXTemplate(\n linkContainer,\n root,\n templateResult,\n otherProps.display\n );\n }\n });\n }, [otherProps.display, template]);\n return <LitAtomicResultList ref={resultListRef} {...otherProps} />;\n};\n\nconst isTemplate = (template: JSX.Element | Template): template is Template => {\n return (template as Template).linkTemplate !== undefined;\n};\n\nfunction renderJSXTemplate(\n linkContainer: HTMLElement | undefined,\n root: HTMLElement,\n templateResult: JSX.Element,\n display: WrapperProps['display']\n) {\n const contentRoot = createRoot(root);\n const linkRoot = linkContainer ? createRoot(linkContainer!) : null;\n flushSync(() => {\n contentRoot.render(templateResult);\n if (!linkRoot) {\n return;\n }\n display === 'grid'\n ? linkRoot.render(<AtomicResultLink></AtomicResultLink>)\n : // biome-ignore lint/complexity/noUselessFragments: <>\n linkRoot.render(<></>);\n });\n return root.innerHTML;\n}\n\nfunction renderTemplate(\n linkContainer: HTMLElement | undefined,\n templateResult: Template,\n root: HTMLElement\n) {\n const linkRoot = createRoot(linkContainer!);\n const contentRoot = createRoot(root);\n flushSync(() => {\n linkRoot.render(templateResult.linkTemplate);\n contentRoot.render(templateResult.contentTemplate);\n });\n return root.innerHTML;\n}\n","import type {Bindings} from '@coveo/atomic';\nimport type {Result} from '@coveo/headless';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {AtomicSearchBoxInstantResults} from './components.js';\n\ninterface WrapperProps {\n maxResultsPerQuery?: number;\n density?: 'comfortable' | 'normal' | 'compact';\n imageSize?: 'icon' | 'small' | 'large' | 'none';\n template: (result: Result) => JSX.Element;\n ariaLabelGenerator?: (\n bindings: Bindings,\n result: Result\n ) => string | undefined;\n}\n\nexport const SearchBoxInstantResultsWrapper: React.FC<WrapperProps> = ({\n maxResultsPerQuery,\n density,\n imageSize,\n template,\n ariaLabelGenerator,\n}) => {\n const ref = useRef<\n HTMLElement & {\n setRenderFunction?: (\n fn: (result: Result, root: HTMLElement) => string\n ) => void;\n ariaLabelGenerator?: (\n bindings: Bindings,\n result: Result\n ) => string | undefined;\n }\n >(null);\n\n useEffect(() => {\n if (ref.current?.setRenderFunction) {\n ref.current.setRenderFunction((result: Result, root: HTMLElement) => {\n const templateResult = template(result);\n const contentRoot = createRoot(root);\n flushSync(() => {\n contentRoot.render(templateResult);\n });\n return root.innerHTML;\n });\n }\n }, [template]);\n\n useEffect(() => {\n if (ref.current && ariaLabelGenerator) {\n ref.current.ariaLabelGenerator = ariaLabelGenerator;\n }\n }, [ariaLabelGenerator]);\n\n return (\n <AtomicSearchBoxInstantResults\n // biome-ignore lint/suspicious/noExplicitAny: Ref typing for web component\n ref={ref as any}\n maxResultsPerQuery={maxResultsPerQuery}\n imageSize={imageSize}\n density={density}\n />\n );\n};\n","import type {i18n} from '@coveo/atomic';\nimport {\n buildSearchEngine,\n getSampleSearchEngineConfiguration,\n} from '@coveo/headless';\n// biome-ignore lint/style/useImportType: <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicSearchInterface} from './components';\n\ntype AtomicSearchInterfaceProps = React.ComponentProps<\n typeof AtomicSearchInterface\n>;\n\ntype ExecuteSearch = AtomicSearchInterfaceProps['executeFirstSearch'];\n/**\n * The properties of the AtomicSearchInterface component\n */\ninterface WrapperProps\n extends Omit<\n AtomicSearchInterfaceProps,\n 'i18n' | 'pipeline' | 'searchHub' | 'analytics'\n > {\n /**\n * An optional callback function that can be used to control the execution of the first query.\n *\n * If not provided, a default function will be used, which execute the first query immediately after initialization.\n */\n onReady?: (executeFirstSearch: ExecuteSearch) => Promise<void>;\n /**\n * An optional callback that lets you control the interface localization.\n *\n * The function receives the search interface 18n instance, which you can then modify (see [Localization](https://docs.coveo.com/en/atomic/latest/usage/atomic-localization/)).\n *\n */\n localization?: (i18n: i18n) => void;\n}\n\nconst DefaultProps: Required<Pick<WrapperProps, 'onReady' | 'localization'>> = {\n onReady: (executeFirstRequest) => {\n return executeFirstRequest ? executeFirstRequest() : Promise.resolve();\n },\n localization: () => {},\n};\n\n/**\n * This component serves as a wrapper for the core AtomicSearchInterface.\n * @param props\n * @returns\n */\nexport const SearchInterfaceWrapper = (\n props: React.PropsWithChildren<WrapperProps>\n) => {\n const mergedProps = {...DefaultProps, ...props};\n if (!mergedProps.engine) {\n mergedProps.engine = buildSearchEngine({\n configuration: getSampleSearchEngineConfiguration(),\n });\n }\n const {engine, localization, onReady, ...allOtherProps} = mergedProps;\n const searchInterfaceRef =\n useRef<React.ElementRef<typeof AtomicSearchInterface>>(null);\n let initialization: Promise<void> | null = null;\n\n useEffect(() => {\n const searchInterfaceAtomic = searchInterfaceRef.current!;\n if (!initialization) {\n initialization = searchInterfaceAtomic.initializeWithSearchEngine(engine);\n initialization.then(() => {\n localization(searchInterfaceAtomic.i18n);\n onReady(\n searchInterfaceAtomic.executeFirstSearch.bind(searchInterfaceAtomic)\n );\n });\n }\n }, [engine, initialization, localization, onReady]);\n\n return (\n <AtomicSearchInterface ref={searchInterfaceRef} {...allOtherProps}>\n {props.children}\n </AtomicSearchInterface>\n );\n};\n"],"names":["LitAtomicAriaLive","LitAtomicAutomaticFacet","LitAtomicAutomaticFacetGenerator","LitAtomicBreadbox","LitAtomicCategoryFacet","LitAtomicColorFacet","LitAtomicComponentError","LitAtomicDidYouMean","LitAtomicExternal","LitAtomicFacet","LitAtomicFacetManager","LitAtomicFocusTrap","LitAtomicFoldedResultList","LitAtomicFormatCurrency","LitAtomicFormatNumber","LitAtomicFormatUnit","LitAtomicGeneratedAnswer","LitAtomicGeneratedAnswerFeedbackModal","LitAtomicHtml","LitAtomicIcon","LitAtomicLayoutSection","LitAtomicLoadMoreResults","LitAtomicNoResults","LitAtomicNotifications","LitAtomicNumericFacet","LitAtomicNumericRange","LitAtomicPager","LitAtomicPopover","LitAtomicQueryError","LitAtomicQuerySummary","LitAtomicQuickview","LitAtomicQuickviewModal","LitAtomicRatingFacet","LitAtomicRatingRangeFacet","LitAtomicRecsError","LitAtomicRecsInterface","LitAtomicRecsList","LitAtomicRecsResult","LitAtomicRefineModal","LitAtomicRefineToggle","LitAtomicResult","LitAtomicResultBadge","LitAtomicResultChildren","LitAtomicResultChildrenTemplate","LitAtomicResultDate","LitAtomicResultFieldsList","LitAtomicResultHtml","LitAtomicResultIcon","LitAtomicResultImage","LitAtomicResultLink","LitAtomicResultList","LitAtomicResultLocalizedText","LitAtomicResultMultiValueText","LitAtomicResultNumber","LitAtomicResultPrintableUri","LitAtomicResultRating","LitAtomicResultSectionActions","LitAtomicResultSectionBadges","LitAtomicResultSectionBottomMetadata","LitAtomicResultSectionChildren","LitAtomicResultSectionEmphasized","LitAtomicResultSectionExcerpt","LitAtomicResultSectionTitle","LitAtomicResultSectionTitleMetadata","LitAtomicResultSectionVisual","LitAtomicResultsPerPage","LitAtomicResultText","LitAtomicResultTimespan","LitAtomicSearchBox","LitAtomicSearchBoxInstantResults","LitAtomicSearchBoxQuerySuggestions","LitAtomicSearchBoxRecentQueries","LitAtomicSearchInterface","LitAtomicSearchLayout","LitAtomicSegmentedFacet","LitAtomicSegmentedFacetScrollable","LitAtomicSmartSnippet","LitAtomicSmartSnippetFeedbackModal","LitAtomicSmartSnippetSuggestions","LitAtomicSortDropdown","LitAtomicSortExpression","LitAtomicTab","LitAtomicTableElement","LitAtomicTabManager","LitAtomicText","LitAtomicTimeframe","LitAtomicTimeframeFacet"],"mappings":";;;;;;;AAIO,MAAM,cAAc,iBAAiB,eAAe,CAAC;AAC1D,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEA,gBAAiB;AAChC,CAAA;AAEM,MAAM,oBAAoB,iBAAiB,eAAe,CAAC;AAChE,I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qB,CAAC,IAAI,CAAC;gBACxC,OAAO,CACL,qBAAqB,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CACrE;AACH,YAAA,CAAC,CAAC;QACJ;IACF,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;AAEnD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,qBAAqB,EAAA,EAAC,GAAG,EAAE,kBAAkB,EAAA,GAAM,aAAa,IAC9D,KAAK,CAAC,QAAQ,CACO;AAE5B;;;;"}
@@ -1,6 +1,6 @@
1
1
  import React, { useRef, useEffect } from 'react';
2
- import { AtomicAriaLive as AtomicAriaLive$1, AtomicCommerceBreadbox as AtomicCommerceBreadbox$1, AtomicCommerceCategoryFacet as AtomicCommerceCategoryFacet$1, AtomicCommerceDidYouMean as AtomicCommerceDidYouMean$1, AtomicCommerceFacet as AtomicCommerceFacet$1, AtomicCommerceFacets as AtomicCommerceFacets$1, AtomicCommerceLayout as AtomicCommerceLayout$1, AtomicCommerceLoadMoreProducts as AtomicCommerceLoadMoreProducts$1, AtomicCommerceNoProducts as AtomicCommerceNoProducts$1, AtomicCommerceNumericFacet as AtomicCommerceNumericFacet$1, AtomicCommercePager as AtomicCommercePager$1, AtomicCommerceProductsPerPage as AtomicCommerceProductsPerPage$1, AtomicCommerceQueryError as AtomicCommerceQueryError$1, AtomicCommerceQuerySummary as AtomicCommerceQuerySummary$1, AtomicCommerceRefineModal as AtomicCommerceRefineModal$1, AtomicCommerceRefineToggle as AtomicCommerceRefineToggle$1, AtomicCommerceSearchBox as AtomicCommerceSearchBox$1, AtomicCommerceSearchBoxInstantProducts as AtomicCommerceSearchBoxInstantProducts$1, AtomicCommerceSearchBoxQuerySuggestions as AtomicCommerceSearchBoxQuerySuggestions$1, AtomicCommerceSearchBoxRecentQueries as AtomicCommerceSearchBoxRecentQueries$1, AtomicCommerceSortDropdown as AtomicCommerceSortDropdown$1, AtomicCommerceText as AtomicCommerceText$1, AtomicCommerceTimeframeFacet as AtomicCommerceTimeframeFacet$1, AtomicComponentError as AtomicComponentError$1, AtomicFocusTrap as AtomicFocusTrap$1, AtomicGeneratedAnswerFeedbackModal as AtomicGeneratedAnswerFeedbackModal$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicNumericRange as AtomicNumericRange$1, AtomicProduct as AtomicProduct$1, AtomicProductChildren as AtomicProductChildren$1, AtomicProductDescription as AtomicProductDescription$1, AtomicProductExcerpt as AtomicProductExcerpt$1, AtomicProductFieldCondition as AtomicProductFieldCondition$1, AtomicProductImage as AtomicProductImage$1, AtomicProductLink as AtomicProductLink$1, AtomicProductMultiValueText as AtomicProductMultiValueText$1, AtomicProductNumericFieldValue as AtomicProductNumericFieldValue$1, AtomicProductPrice as AtomicProductPrice$1, AtomicProductRating as AtomicProductRating$1, AtomicProductSectionActions as AtomicProductSectionActions$1, AtomicProductSectionBadges as AtomicProductSectionBadges$1, AtomicProductSectionBottomMetadata as AtomicProductSectionBottomMetadata$1, AtomicProductSectionChildren as AtomicProductSectionChildren$1, AtomicProductSectionDescription as AtomicProductSectionDescription$1, AtomicProductSectionEmphasized as AtomicProductSectionEmphasized$1, AtomicProductSectionMetadata as AtomicProductSectionMetadata$1, AtomicProductSectionName as AtomicProductSectionName$1, AtomicProductSectionVisual as AtomicProductSectionVisual$1, AtomicProductText as AtomicProductText$1, AtomicTimeframe as AtomicTimeframe$1, AtomicCommerceInterface as AtomicCommerceInterface$1, AtomicCommerceProductList as AtomicCommerceProductList$1, AtomicCommerceRecommendationInterface as AtomicCommerceRecommendationInterface$1, AtomicCommerceRecommendationList as AtomicCommerceRecommendationList$1 } from '@coveo/atomic/components';
3
2
  import { createComponent } from '@lit/react';
3
+ import { AtomicAriaLive as AtomicAriaLive$1, AtomicCommerceBreadbox as AtomicCommerceBreadbox$1, AtomicCommerceCategoryFacet as AtomicCommerceCategoryFacet$1, AtomicCommerceDidYouMean as AtomicCommerceDidYouMean$1, AtomicCommerceFacet as AtomicCommerceFacet$1, AtomicCommerceFacets as AtomicCommerceFacets$1, AtomicCommerceLayout as AtomicCommerceLayout$1, AtomicCommerceLoadMoreProducts as AtomicCommerceLoadMoreProducts$1, AtomicCommerceNoProducts as AtomicCommerceNoProducts$1, AtomicCommerceNumericFacet as AtomicCommerceNumericFacet$1, AtomicCommercePager as AtomicCommercePager$1, AtomicCommerceProductsPerPage as AtomicCommerceProductsPerPage$1, AtomicCommerceQueryError as AtomicCommerceQueryError$1, AtomicCommerceQuerySummary as AtomicCommerceQuerySummary$1, AtomicCommerceRefineModal as AtomicCommerceRefineModal$1, AtomicCommerceRefineToggle as AtomicCommerceRefineToggle$1, AtomicCommerceSearchBox as AtomicCommerceSearchBox$1, AtomicCommerceSearchBoxInstantProducts as AtomicCommerceSearchBoxInstantProducts$1, AtomicCommerceSearchBoxQuerySuggestions as AtomicCommerceSearchBoxQuerySuggestions$1, AtomicCommerceSearchBoxRecentQueries as AtomicCommerceSearchBoxRecentQueries$1, AtomicCommerceSortDropdown as AtomicCommerceSortDropdown$1, AtomicCommerceText as AtomicCommerceText$1, AtomicCommerceTimeframeFacet as AtomicCommerceTimeframeFacet$1, AtomicComponentError as AtomicComponentError$1, AtomicFocusTrap as AtomicFocusTrap$1, AtomicGeneratedAnswerFeedbackModal as AtomicGeneratedAnswerFeedbackModal$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicNumericRange as AtomicNumericRange$1, AtomicProduct as AtomicProduct$1, AtomicProductChildren as AtomicProductChildren$1, AtomicProductDescription as AtomicProductDescription$1, AtomicProductExcerpt as AtomicProductExcerpt$1, AtomicProductFieldCondition as AtomicProductFieldCondition$1, AtomicProductImage as AtomicProductImage$1, AtomicProductLink as AtomicProductLink$1, AtomicProductMultiValueText as AtomicProductMultiValueText$1, AtomicProductNumericFieldValue as AtomicProductNumericFieldValue$1, AtomicProductPrice as AtomicProductPrice$1, AtomicProductRating as AtomicProductRating$1, AtomicProductSectionActions as AtomicProductSectionActions$1, AtomicProductSectionBadges as AtomicProductSectionBadges$1, AtomicProductSectionBottomMetadata as AtomicProductSectionBottomMetadata$1, AtomicProductSectionChildren as AtomicProductSectionChildren$1, AtomicProductSectionDescription as AtomicProductSectionDescription$1, AtomicProductSectionEmphasized as AtomicProductSectionEmphasized$1, AtomicProductSectionMetadata as AtomicProductSectionMetadata$1, AtomicProductSectionName as AtomicProductSectionName$1, AtomicProductSectionVisual as AtomicProductSectionVisual$1, AtomicProductText as AtomicProductText$1, AtomicTimeframe as AtomicTimeframe$1, AtomicCommerceInterface as AtomicCommerceInterface$1, AtomicCommerceProductList as AtomicCommerceProductList$1, AtomicCommerceRecommendationInterface as AtomicCommerceRecommendationInterface$1, AtomicCommerceRecommendationList as AtomicCommerceRecommendationList$1 } from '@coveo/atomic/components';
4
4
  import { flushSync } from 'react-dom';
5
5
  import { createRoot } from 'react-dom/client';
6
6
 
@@ -84,8 +84,7 @@ const AtomicCommerceQuerySummary = /*@__PURE__*/ createComponent({
84
84
  react: React,
85
85
  elementClass: AtomicCommerceQuerySummary$1,
86
86
  });
87
- const AtomicCommerceRecommendationInterface =
88
- /*@__PURE__*/ createComponent({
87
+ const AtomicCommerceRecommendationInterface = /*@__PURE__*/ createComponent({
89
88
  tagName: 'atomic-commerce-recommendation-interface',
90
89
  react: React,
91
90
  elementClass: AtomicCommerceRecommendationInterface$1,
@@ -110,20 +109,17 @@ const AtomicCommerceSearchBox = /*@__PURE__*/ createComponent({
110
109
  react: React,
111
110
  elementClass: AtomicCommerceSearchBox$1,
112
111
  });
113
- const AtomicCommerceSearchBoxInstantProducts =
114
- /*@__PURE__*/ createComponent({
112
+ const AtomicCommerceSearchBoxInstantProducts = /*@__PURE__*/ createComponent({
115
113
  tagName: 'atomic-commerce-search-box-instant-products',
116
114
  react: React,
117
115
  elementClass: AtomicCommerceSearchBoxInstantProducts$1,
118
116
  });
119
- const AtomicCommerceSearchBoxQuerySuggestions =
120
- /*@__PURE__*/ createComponent({
117
+ const AtomicCommerceSearchBoxQuerySuggestions = /*@__PURE__*/ createComponent({
121
118
  tagName: 'atomic-commerce-search-box-query-suggestions',
122
119
  react: React,
123
120
  elementClass: AtomicCommerceSearchBoxQuerySuggestions$1,
124
121
  });
125
- const AtomicCommerceSearchBoxRecentQueries =
126
- /*@__PURE__*/ createComponent({
122
+ const AtomicCommerceSearchBoxRecentQueries = /*@__PURE__*/ createComponent({
127
123
  tagName: 'atomic-commerce-search-box-recent-queries',
128
124
  react: React,
129
125
  elementClass: AtomicCommerceSearchBoxRecentQueries$1,
@@ -1 +1 @@
1
- {"version":3,"file":"atomic-react.mjs","sources":["../../../src/components/commerce/components.ts","../../../src/components/commerce/CommerceInterfaceWrapper.tsx","../../../src/components/commerce/CommerceProductListWrapper.tsx","../../../src/components/commerce/CommerceRecommendationInterfaceWrapper.tsx","../../../src/components/commerce/CommerceRecommendationListWrapper.tsx"],"sourcesContent":["import {\n AtomicAriaLive as LitAtomicAriaLive,\n AtomicCommerceBreadbox as LitAtomicCommerceBreadbox,\n AtomicCommerceCategoryFacet as LitAtomicCommerceCategoryFacet,\n AtomicCommerceDidYouMean as LitAtomicCommerceDidYouMean,\n AtomicCommerceFacet as LitAtomicCommerceFacet,\n AtomicCommerceFacets as LitAtomicCommerceFacets,\n AtomicCommerceInterface as LitAtomicCommerceInterface,\n AtomicCommerceLayout as LitAtomicCommerceLayout,\n AtomicCommerceLoadMoreProducts as LitAtomicCommerceLoadMoreProducts,\n AtomicCommerceNoProducts as LitAtomicCommerceNoProducts,\n AtomicCommerceNumericFacet as LitAtomicCommerceNumericFacet,\n AtomicCommercePager as LitAtomicCommercePager,\n AtomicCommerceProductList as LitAtomicCommerceProductList,\n AtomicCommerceProductsPerPage as LitAtomicCommerceProductsPerPage,\n AtomicCommerceQueryError as LitAtomicCommerceQueryError,\n AtomicCommerceQuerySummary as LitAtomicCommerceQuerySummary,\n AtomicCommerceRecommendationInterface as LitAtomicCommerceRecommendationInterface,\n AtomicCommerceRecommendationList as LitAtomicCommerceRecommendationList,\n AtomicCommerceRefineModal as LitAtomicCommerceRefineModal,\n AtomicCommerceRefineToggle as LitAtomicCommerceRefineToggle,\n AtomicCommerceSearchBox as LitAtomicCommerceSearchBox,\n AtomicCommerceSearchBoxInstantProducts as LitAtomicCommerceSearchBoxInstantProducts,\n AtomicCommerceSearchBoxQuerySuggestions as LitAtomicCommerceSearchBoxQuerySuggestions,\n AtomicCommerceSearchBoxRecentQueries as LitAtomicCommerceSearchBoxRecentQueries,\n AtomicCommerceSortDropdown as LitAtomicCommerceSortDropdown,\n AtomicCommerceText as LitAtomicCommerceText,\n AtomicCommerceTimeframeFacet as LitAtomicCommerceTimeframeFacet,\n AtomicComponentError as LitAtomicComponentError,\n AtomicFocusTrap as LitAtomicFocusTrap,\n AtomicGeneratedAnswerFeedbackModal as LitAtomicGeneratedAnswerFeedbackModal,\n AtomicIcon as LitAtomicIcon,\n AtomicLayoutSection as LitAtomicLayoutSection,\n AtomicNumericRange as LitAtomicNumericRange,\n AtomicProduct as LitAtomicProduct,\n AtomicProductChildren as LitAtomicProductChildren,\n AtomicProductDescription as LitAtomicProductDescription,\n AtomicProductExcerpt as LitAtomicProductExcerpt,\n AtomicProductFieldCondition as LitAtomicProductFieldCondition,\n AtomicProductImage as LitAtomicProductImage,\n AtomicProductLink as LitAtomicProductLink,\n AtomicProductMultiValueText as LitAtomicProductMultiValueText,\n AtomicProductNumericFieldValue as LitAtomicProductNumericFieldValue,\n AtomicProductPrice as LitAtomicProductPrice,\n AtomicProductRating as LitAtomicProductRating,\n AtomicProductSectionActions as LitAtomicProductSectionActions,\n AtomicProductSectionBadges as LitAtomicProductSectionBadges,\n AtomicProductSectionBottomMetadata as LitAtomicProductSectionBottomMetadata,\n AtomicProductSectionChildren as LitAtomicProductSectionChildren,\n AtomicProductSectionDescription as LitAtomicProductSectionDescription,\n AtomicProductSectionEmphasized as LitAtomicProductSectionEmphasized,\n AtomicProductSectionMetadata as LitAtomicProductSectionMetadata,\n AtomicProductSectionName as LitAtomicProductSectionName,\n AtomicProductSectionVisual as LitAtomicProductSectionVisual,\n AtomicProductText as LitAtomicProductText,\n AtomicTimeframe as LitAtomicTimeframe,\n} from '@coveo/atomic/components';\nimport {createComponent} from '@lit/react';\nimport React from 'react';\n\nexport const AtomicAriaLive = /*@__PURE__*/ createComponent({\n tagName: 'atomic-aria-live',\n react: React,\n elementClass: LitAtomicAriaLive,\n});\n\nexport const AtomicCommerceBreadbox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-breadbox',\n react: React,\n elementClass: LitAtomicCommerceBreadbox,\n});\n\nexport const AtomicCommerceCategoryFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-category-facet',\n react: React,\n elementClass: LitAtomicCommerceCategoryFacet,\n});\n\nexport const AtomicCommerceDidYouMean = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-did-you-mean',\n react: React,\n elementClass: LitAtomicCommerceDidYouMean,\n});\n\nexport const AtomicCommerceFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-facet',\n react: React,\n elementClass: LitAtomicCommerceFacet,\n});\n\nexport const AtomicCommerceFacets = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-facets',\n react: React,\n elementClass: LitAtomicCommerceFacets,\n});\n\nexport const AtomicCommerceInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-interface',\n react: React,\n elementClass: LitAtomicCommerceInterface,\n});\n\nexport const AtomicCommerceLayout = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-layout',\n react: React,\n elementClass: LitAtomicCommerceLayout,\n});\n\nexport const AtomicCommerceLoadMoreProducts = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-load-more-products',\n react: React,\n elementClass: LitAtomicCommerceLoadMoreProducts,\n});\n\nexport const AtomicCommerceNoProducts = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-no-products',\n react: React,\n elementClass: LitAtomicCommerceNoProducts,\n});\n\nexport const AtomicCommerceNumericFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-numeric-facet',\n react: React,\n elementClass: LitAtomicCommerceNumericFacet,\n});\n\nexport const AtomicCommercePager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-pager',\n react: React,\n elementClass: LitAtomicCommercePager,\n});\n\nexport const AtomicCommerceProductList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-product-list',\n react: React,\n elementClass: LitAtomicCommerceProductList,\n});\n\nexport const AtomicCommerceProductsPerPage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-products-per-page',\n react: React,\n elementClass: LitAtomicCommerceProductsPerPage,\n});\n\nexport const AtomicCommerceQueryError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-query-error',\n react: React,\n elementClass: LitAtomicCommerceQueryError,\n});\n\nexport const AtomicCommerceQuerySummary = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-query-summary',\n react: React,\n elementClass: LitAtomicCommerceQuerySummary,\n});\n\nexport const AtomicCommerceRecommendationInterface =\n /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-recommendation-interface',\n react: React,\n elementClass: LitAtomicCommerceRecommendationInterface,\n });\n\nexport const AtomicCommerceRecommendationList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-recommendation-list',\n react: React,\n elementClass: LitAtomicCommerceRecommendationList,\n});\n\nexport const AtomicCommerceRefineModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-refine-modal',\n react: React,\n elementClass: LitAtomicCommerceRefineModal,\n});\n\nexport const AtomicCommerceRefineToggle = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-refine-toggle',\n react: React,\n elementClass: LitAtomicCommerceRefineToggle,\n});\n\nexport const AtomicCommerceSearchBox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box',\n react: React,\n elementClass: LitAtomicCommerceSearchBox,\n});\n\nexport const AtomicCommerceSearchBoxInstantProducts =\n /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box-instant-products',\n react: React,\n elementClass: LitAtomicCommerceSearchBoxInstantProducts,\n });\n\nexport const AtomicCommerceSearchBoxQuerySuggestions =\n /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box-query-suggestions',\n react: React,\n elementClass: LitAtomicCommerceSearchBoxQuerySuggestions,\n });\n\nexport const AtomicCommerceSearchBoxRecentQueries =\n /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box-recent-queries',\n react: React,\n elementClass: LitAtomicCommerceSearchBoxRecentQueries,\n });\n\nexport const AtomicCommerceSortDropdown = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-sort-dropdown',\n react: React,\n elementClass: LitAtomicCommerceSortDropdown,\n});\n\nexport const AtomicCommerceText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-text',\n react: React,\n elementClass: LitAtomicCommerceText,\n});\n\nexport const AtomicCommerceTimeframeFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-timeframe-facet',\n react: React,\n elementClass: LitAtomicCommerceTimeframeFacet,\n});\n\nexport const AtomicComponentError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-component-error',\n react: React,\n elementClass: LitAtomicComponentError,\n});\n\nexport const AtomicFocusTrap = /*@__PURE__*/ createComponent({\n tagName: 'atomic-focus-trap',\n react: React,\n elementClass: LitAtomicFocusTrap,\n});\n\nexport const AtomicGeneratedAnswerFeedbackModal = /*@__PURE__*/ createComponent(\n {\n tagName: 'atomic-generated-answer-feedback-modal',\n react: React,\n elementClass: LitAtomicGeneratedAnswerFeedbackModal,\n }\n);\n\nexport const AtomicIcon = /*@__PURE__*/ createComponent({\n tagName: 'atomic-icon',\n react: React,\n elementClass: LitAtomicIcon,\n});\n\nexport const AtomicLayoutSection = /*@__PURE__*/ createComponent({\n tagName: 'atomic-layout-section',\n react: React,\n elementClass: LitAtomicLayoutSection,\n});\n\nexport const AtomicNumericRange = /*@__PURE__*/ createComponent({\n tagName: 'atomic-numeric-range',\n react: React,\n elementClass: LitAtomicNumericRange,\n});\n\nexport const AtomicProduct = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product',\n react: React,\n elementClass: LitAtomicProduct,\n});\n\nexport const AtomicProductChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-children',\n react: React,\n elementClass: LitAtomicProductChildren,\n});\n\nexport const AtomicProductDescription = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-description',\n react: React,\n elementClass: LitAtomicProductDescription,\n});\n\nexport const AtomicProductExcerpt = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-excerpt',\n react: React,\n elementClass: LitAtomicProductExcerpt,\n});\n\nexport const AtomicProductFieldCondition = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-field-condition',\n react: React,\n elementClass: LitAtomicProductFieldCondition,\n});\n\nexport const AtomicProductImage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-image',\n react: React,\n elementClass: LitAtomicProductImage,\n});\n\nexport const AtomicProductLink = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-link',\n react: React,\n elementClass: LitAtomicProductLink,\n});\n\nexport const AtomicProductMultiValueText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-multi-value-text',\n react: React,\n elementClass: LitAtomicProductMultiValueText,\n});\n\nexport const AtomicProductNumericFieldValue = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-numeric-field-value',\n react: React,\n elementClass: LitAtomicProductNumericFieldValue,\n});\n\nexport const AtomicProductPrice = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-price',\n react: React,\n elementClass: LitAtomicProductPrice,\n});\n\nexport const AtomicProductRating = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-rating',\n react: React,\n elementClass: LitAtomicProductRating,\n});\n\nexport const AtomicProductSectionActions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-actions',\n react: React,\n elementClass: LitAtomicProductSectionActions,\n});\n\nexport const AtomicProductSectionBadges = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-badges',\n react: React,\n elementClass: LitAtomicProductSectionBadges,\n});\n\nexport const AtomicProductSectionBottomMetadata = /*@__PURE__*/ createComponent(\n {\n tagName: 'atomic-product-section-bottom-metadata',\n react: React,\n elementClass: LitAtomicProductSectionBottomMetadata,\n }\n);\n\nexport const AtomicProductSectionChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-children',\n react: React,\n elementClass: LitAtomicProductSectionChildren,\n});\n\nexport const AtomicProductSectionDescription = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-description',\n react: React,\n elementClass: LitAtomicProductSectionDescription,\n});\n\nexport const AtomicProductSectionEmphasized = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-emphasized',\n react: React,\n elementClass: LitAtomicProductSectionEmphasized,\n});\n\nexport const AtomicProductSectionMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-metadata',\n react: React,\n elementClass: LitAtomicProductSectionMetadata,\n});\n\nexport const AtomicProductSectionName = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-name',\n react: React,\n elementClass: LitAtomicProductSectionName,\n});\n\nexport const AtomicProductSectionVisual = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-visual',\n react: React,\n elementClass: LitAtomicProductSectionVisual,\n});\n\nexport const AtomicProductText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-text',\n react: React,\n elementClass: LitAtomicProductText,\n});\n\nexport const AtomicTimeframe = /*@__PURE__*/ createComponent({\n tagName: 'atomic-timeframe',\n react: React,\n elementClass: LitAtomicTimeframe,\n});\n","import type {i18n} from '@coveo/atomic';\n// biome-ignore lint/style/useImportType: <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicCommerceInterface} from './components';\n\ntype AtomicCommerceInterfaceProps = React.ComponentProps<\n typeof AtomicCommerceInterface\n>;\n\ntype ExecuteRequest = AtomicCommerceInterfaceProps['executeFirstRequest'];\n\ninterface WrapperProps\n extends Omit<\n AtomicCommerceInterfaceProps,\n 'i18n' | 'pipeline' | 'searchHub'\n > {\n /**\n * An optional callback function that can be used to control the execution of the first request.\n *\n * If not provided, a default function will be used, which executes the first request immediately after initialization.\n */\n onReady?: (executeFirstRequest: ExecuteRequest) => Promise<void>;\n /**\n * An optional callback that lets you control the interface localization.\n *\n * The function receives the search interface 18n instance, which you can then modify (see [Localization](https://docs.coveo.com/en/atomic/latest/usage/atomic-localization/)).\n *\n */\n localization?: (i18n: i18n) => void;\n}\n\nconst DefaultProps: Required<Pick<WrapperProps, 'onReady' | 'localization'>> = {\n onReady: (executeFirstRequest) => {\n return executeFirstRequest ? executeFirstRequest() : Promise.resolve();\n },\n localization: () => {},\n};\n\n/**\n * This component serves as a wrapper for the core AtomicCommerceInterface.\n * @param props\n * @returns\n */\nexport const InterfaceWrapper = (\n props: React.PropsWithChildren<WrapperProps>\n) => {\n const mergedProps = {...DefaultProps, ...props};\n if (!mergedProps.engine) {\n throw new Error('The \"engine\" prop is required.');\n //TODO, maybe: provide a default engine\n }\n const {engine, localization, onReady, ...allOtherProps} = mergedProps;\n const interfaceRef =\n useRef<React.ElementRef<typeof AtomicCommerceInterface>>(null);\n let initialization: Promise<void> | null = null;\n\n useEffect(() => {\n const commerceInterfaceAtomic = interfaceRef.current!;\n if (!initialization) {\n initialization = commerceInterfaceAtomic.initializeWithEngine(engine);\n initialization.then(() => {\n localization(commerceInterfaceAtomic.i18n);\n onReady(\n commerceInterfaceAtomic.executeFirstRequest.bind(\n commerceInterfaceAtomic\n )\n );\n });\n }\n }, [engine, initialization, localization, onReady]);\n\n return (\n <AtomicCommerceInterface ref={interfaceRef} {...allOtherProps}>\n {props.children}\n </AtomicCommerceInterface>\n );\n};\n","import type {AtomicCommerceProductList} from '@coveo/atomic/components';\nimport type {Product} from '@coveo/headless/commerce';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {\n AtomicProductLink,\n AtomicCommerceProductList as LitAtomicCommerceProductList,\n} from './components.js';\n\ninterface Template {\n contentTemplate: JSX.Element;\n linkTemplate: JSX.Element;\n}\n\ninterface AtomicCommerceProductListProps {\n /**\n * The spacing of various elements in the product list, including the gap between products, the gap between parts of a product, and the font sizes of different parts in a product.\n */\n density?: AtomicCommerceProductList['density'];\n /**\n * The desired layout to use when displaying products. Layouts affect how many products to display per row and how visually distinct they are from each other.\n */\n display?: AtomicCommerceProductList['display'];\n /**\n * The expected size of the image displayed for products.\n */\n imageSize?: AtomicCommerceProductList['imageSize'];\n /**\n * The desired number of placeholders to display while the product list is loading.\n */\n numberOfPlaceholders?: number;\n}\n\ninterface HTMLAtomicCommerceProductListElement\n extends AtomicCommerceProductList,\n HTMLElement {}\n\n// biome-ignore lint/correctness/noUnusedVariables: <>\nvar HTMLAtomicCommerceProductListElement: {\n prototype: HTMLAtomicCommerceProductListElement;\n new (): HTMLAtomicCommerceProductListElement;\n};\n\n/**\n * The properties of the AtomicCommerceProductList component\n */\ninterface WrapperProps extends AtomicCommerceProductListProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (result: Product) => JSX.Element | Template;\n}\n/**\n * This component serves as a wrapper for the core AtomicCommerceProductList.\n *\n * @param props\n * @returns\n */\nexport const ListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const commerceProductListRef =\n useRef<HTMLAtomicCommerceProductListElement>(null);\n useEffect(() => {\n commerceProductListRef.current?.setRenderFunction(\n (result, root, linkContainer) => {\n const templateResult = template(result as Product);\n if (isTemplate(templateResult)) {\n return renderTemplate(linkContainer, templateResult, root);\n } else {\n return renderJSXTemplate(\n linkContainer,\n root,\n templateResult,\n otherProps.display\n );\n }\n }\n );\n }, [otherProps.display, template]);\n return (\n <LitAtomicCommerceProductList\n ref={commerceProductListRef}\n {...otherProps}\n />\n );\n};\n\nconst isTemplate = (template: JSX.Element | Template): template is Template => {\n return (template as Template).linkTemplate !== undefined;\n};\n\nfunction renderJSXTemplate(\n linkContainer: HTMLElement | undefined,\n root: HTMLElement,\n templateResult: JSX.Element,\n display: WrapperProps['display']\n) {\n const contentRoot = createRoot(root);\n const linkRoot = linkContainer ? createRoot(linkContainer!) : null;\n flushSync(() => {\n contentRoot.render(templateResult);\n if (!linkRoot) {\n return;\n }\n display === 'grid'\n ? linkRoot.render(<AtomicProductLink></AtomicProductLink>)\n : // biome-ignore lint/complexity/noUselessFragments: <>\n linkRoot.render(<></>);\n });\n return root.innerHTML;\n}\n\nfunction renderTemplate(\n linkContainer: HTMLElement | undefined,\n templateResult: Template,\n root: HTMLElement\n) {\n const linkRoot = createRoot(linkContainer!);\n const contentRoot = createRoot(root);\n flushSync(() => {\n linkRoot.render(templateResult.linkTemplate);\n contentRoot.render(templateResult.contentTemplate);\n });\n return root.innerHTML;\n}\n","import type {i18n} from '@coveo/atomic';\n// biome-ignore lint/style/useImportType: <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicCommerceRecommendationInterface} from './components.js';\n\ntype AtomicCommerceRecommendationInterfaceProps = React.ComponentProps<\n typeof AtomicCommerceRecommendationInterface\n>;\n\ninterface WrapperProps\n extends Omit<\n AtomicCommerceRecommendationInterfaceProps,\n 'i18n' | 'pipeline' | 'searchHub'\n > {\n /**\n * An optional callback that lets you control the interface localization.\n *\n * The function receives the search interface 18n instance, which you can then modify (see [Localization](https://docs.coveo.com/en/atomic/latest/usage/atomic-localization/)).\n *\n */\n localization?: (i18n: i18n) => void;\n}\nconst DefaultProps: Required<Pick<WrapperProps, 'localization'>> = {\n localization: () => {},\n};\n\n/**\n * This component serves as a wrapper for the core AtomicCommerceRecommendationInterface.\n * @param props\n * @returns\n */\nexport const InterfaceWrapper = (\n props: React.PropsWithChildren<WrapperProps>\n) => {\n const mergedProps = {...DefaultProps, ...props};\n if (!mergedProps.engine) {\n throw new Error('The \"engine\" prop is required.');\n }\n const {engine, localization, ...allOtherProps} = mergedProps;\n const interfaceRef =\n useRef<React.ElementRef<typeof AtomicCommerceRecommendationInterface>>(\n null\n );\n let initialization: Promise<void> | null = null;\n\n useEffect(() => {\n const CommerceRecommendationInterfaceAtomic = interfaceRef.current!;\n if (!initialization) {\n initialization =\n CommerceRecommendationInterfaceAtomic.initializeWithEngine(engine);\n initialization.then(() => {\n localization(CommerceRecommendationInterfaceAtomic.i18n);\n });\n }\n }, [localization, engine, initialization]);\n\n return (\n <AtomicCommerceRecommendationInterface\n engine={engine}\n ref={interfaceRef}\n {...allOtherProps}\n >\n {props.children}\n </AtomicCommerceRecommendationInterface>\n );\n};\n","import type {AtomicCommerceRecommendationList} from '@coveo/atomic/components';\nimport type {Product} from '@coveo/headless/commerce';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {\n AtomicProductLink,\n AtomicCommerceRecommendationList as LitAtomicCommerceRecommendationList,\n} from './components.js';\n\ninterface Template {\n contentTemplate: JSX.Element;\n linkTemplate: JSX.Element;\n}\n\ninterface AtomicCommerceRecommendationListProps {\n /**\n * The spacing of various elements in the recommendation list, including the gap between products, the gap between parts of a product, and the font sizes of different parts in a product.\n */\n density?: AtomicCommerceRecommendationList['density'];\n /**\n * The desired layout to use when displaying recommendations. Layouts affect how many products to display per row and how visually distinct they are from each other.\n */\n display?: AtomicCommerceRecommendationList['display'];\n /**\n * The expected size of the image displayed for recommendations.\n */\n imageSize?: AtomicCommerceRecommendationList['imageSize'];\n /**\n * The desired number of placeholders to display while the recommendation list is loading.\n */\n numberOfPlaceholders?: number;\n\n slotId?: string;\n\n productsPerPage?: number;\n}\n\ninterface HTMLAtomicCommerceRecommendationListElement\n extends AtomicCommerceRecommendationList,\n HTMLElement {}\n\n// biome-ignore lint/correctness/noUnusedVariables: <>\nvar HTMLAtomicCommerceRecommendationListElement: {\n prototype: HTMLAtomicCommerceRecommendationListElement;\n new (): HTMLAtomicCommerceRecommendationListElement;\n};\n\n/**\n * The properties of the AtomicCommerceRecommendationList component\n */\ninterface WrapperProps extends AtomicCommerceRecommendationListProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (result: Product) => JSX.Element | Template;\n}\n\n/**\n * This component serves as a wrapper for the core AtomicCommerceRecommendationList.\n *\n * @param props\n * @returns\n */\nexport const ListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const commerceRecommendationListRef =\n useRef<HTMLAtomicCommerceRecommendationListElement>(null);\n useEffect(() => {\n commerceRecommendationListRef.current?.setRenderFunction(\n (product, root, linkContainer) => {\n const templateResult = template(product as Product);\n if (hasLinkTemplate(templateResult)) {\n const linkRoot = createRoot(linkContainer!);\n linkRoot.render(templateResult.linkTemplate);\n const contentRoot = createRoot(root);\n flushSync(() => {\n contentRoot.render(templateResult.contentTemplate);\n });\n return root.innerHTML;\n } else {\n const contentRoot = createRoot(root);\n const linkRoot = createRoot(linkContainer!);\n flushSync(() => {\n contentRoot.render(templateResult);\n otherProps.display === 'grid'\n ? linkRoot.render(<AtomicProductLink></AtomicProductLink>)\n : // biome-ignore lint/complexity/noUselessFragments: <>\n linkRoot.render(<></>);\n });\n return root.innerHTML;\n }\n }\n );\n }, [otherProps.display, template]);\n return (\n <LitAtomicCommerceRecommendationList\n ref={commerceRecommendationListRef}\n {...otherProps}\n />\n );\n};\n\nconst hasLinkTemplate = (\n template: JSX.Element | Template\n): template is Template => {\n return (template as Template).linkTemplate !== undefined;\n};\n"],"names":["LitAtomicAriaLive","LitAtomicCommerceBreadbox","LitAtomicCommerceCategoryFacet","LitAtomicCommerceDidYouMean","LitAtomicCommerceFacet","LitAtomicCommerceFacets","LitAtomicCommerceInterface","LitAtomicCommerceLayout","LitAtomicCommerceLoadMoreProducts","LitAtomicCommerceNoProducts","LitAtomicCommerceNumericFacet","LitAtomicCommercePager","LitAtomicCommerceProductList","LitAtomicCommerceProductsPerPage","LitAtomicCommerceQueryError","LitAtomicCommerceQuerySummary","LitAtomicCommerceRecommendationInterface","LitAtomicCommerceRecommendationList","LitAtomicCommerceRefineModal","LitAtomicCommerceRefineToggle","LitAtomicCommerceSearchBox","LitAtomicCommerceSearchBoxInstantProducts","LitAtomicCommerceSearchBoxQuerySuggestions","LitAtomicCommerceSearchBoxRecentQueries","LitAtomicCommerceSortDropdown","LitAtomicCommerceText","LitAtomicCommerceTimeframeFacet","LitAtomicComponentError","LitAtomicFocusTrap","LitAtomicGeneratedAnswerFeedbackModal","LitAtomicIcon","LitAtomicLayoutSection","LitAtomicNumericRange","LitAtomicProduct","LitAtomicProductChildren","LitAtomicProductDescription","LitAtomicProductExcerpt","LitAtomicProductFieldCondition","LitAtomicProductImage","LitAtomicProductLink","LitAtomicProductMultiValueText","LitAtomicProductNumericFieldValue","LitAtomicProductPrice","LitAtomicProductRating","LitAtomicProductSectionActions","LitAtomicProductSectionBadges","LitAtomicProductSectionBottomMetadata","LitAtomicProductSectionChildren","LitAtomicProductSectionDescription","LitAtomicProductSectionEmphasized","LitAtomicProductSectionMetadata","LitAtomicProductSectionName","LitAtomicProductSectionVisual","LitAtomicProductText","LitAtomicTimeframe","DefaultProps","InterfaceWrapper","ListWrapper"],"mappings":";;;;;;AA4DO,MAAM,cAAc,iBAAiB,eAAe,CAAC;AAC1D,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEA,gBAAiB;AAChC,CAAA;AAEM,MAAM,sBAAsB,iBAAiB,eAAe,CAAC;AAClE,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEC,wBAAyB;AACxC,CAAA;AAEM,MAAM,2BAA2B,iBAAiB,eAAe,CAAC;AACvE,IAAA,OAAO,EAAE,gCA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ts","../../../src/components/commerce/CommerceInterfaceWrapper.tsx","../../../src/components/commerce/CommerceProductListWrapper.tsx","../../../src/components/commerce/CommerceRecommendationInterfaceWrapper.tsx","../../../src/components/commerce/CommerceRecommendationListWrapper.tsx"],"sourcesContent":["import {createComponent} from '@lit/react';\nimport React from 'react';\nimport {AtomicAriaLive as LitAtomicAriaLive,AtomicCommerceBreadbox as LitAtomicCommerceBreadbox,AtomicCommerceCategoryFacet as LitAtomicCommerceCategoryFacet,AtomicCommerceDidYouMean as LitAtomicCommerceDidYouMean,AtomicCommerceFacet as LitAtomicCommerceFacet,AtomicCommerceFacets as LitAtomicCommerceFacets,AtomicCommerceInterface as LitAtomicCommerceInterface,AtomicCommerceLayout as LitAtomicCommerceLayout,AtomicCommerceLoadMoreProducts as LitAtomicCommerceLoadMoreProducts,AtomicCommerceNoProducts as LitAtomicCommerceNoProducts,AtomicCommerceNumericFacet as LitAtomicCommerceNumericFacet,AtomicCommercePager as LitAtomicCommercePager,AtomicCommerceProductList as LitAtomicCommerceProductList,AtomicCommerceProductsPerPage as LitAtomicCommerceProductsPerPage,AtomicCommerceQueryError as LitAtomicCommerceQueryError,AtomicCommerceQuerySummary as LitAtomicCommerceQuerySummary,AtomicCommerceRecommendationInterface as LitAtomicCommerceRecommendationInterface,AtomicCommerceRecommendationList as LitAtomicCommerceRecommendationList,AtomicCommerceRefineModal as LitAtomicCommerceRefineModal,AtomicCommerceRefineToggle as LitAtomicCommerceRefineToggle,AtomicCommerceSearchBox as LitAtomicCommerceSearchBox,AtomicCommerceSearchBoxInstantProducts as LitAtomicCommerceSearchBoxInstantProducts,AtomicCommerceSearchBoxQuerySuggestions as LitAtomicCommerceSearchBoxQuerySuggestions,AtomicCommerceSearchBoxRecentQueries as LitAtomicCommerceSearchBoxRecentQueries,AtomicCommerceSortDropdown as LitAtomicCommerceSortDropdown,AtomicCommerceText as LitAtomicCommerceText,AtomicCommerceTimeframeFacet as LitAtomicCommerceTimeframeFacet,AtomicComponentError as LitAtomicComponentError,AtomicFocusTrap as LitAtomicFocusTrap,AtomicGeneratedAnswerFeedbackModal as LitAtomicGeneratedAnswerFeedbackModal,AtomicIcon as LitAtomicIcon,AtomicLayoutSection as LitAtomicLayoutSection,AtomicNumericRange as LitAtomicNumericRange,AtomicProduct as LitAtomicProduct,AtomicProductChildren as LitAtomicProductChildren,AtomicProductDescription as LitAtomicProductDescription,AtomicProductExcerpt as LitAtomicProductExcerpt,AtomicProductFieldCondition as LitAtomicProductFieldCondition,AtomicProductImage as LitAtomicProductImage,AtomicProductLink as LitAtomicProductLink,AtomicProductMultiValueText as LitAtomicProductMultiValueText,AtomicProductNumericFieldValue as LitAtomicProductNumericFieldValue,AtomicProductPrice as LitAtomicProductPrice,AtomicProductRating as LitAtomicProductRating,AtomicProductSectionActions as LitAtomicProductSectionActions,AtomicProductSectionBadges as LitAtomicProductSectionBadges,AtomicProductSectionBottomMetadata as LitAtomicProductSectionBottomMetadata,AtomicProductSectionChildren as LitAtomicProductSectionChildren,AtomicProductSectionDescription as LitAtomicProductSectionDescription,AtomicProductSectionEmphasized as LitAtomicProductSectionEmphasized,AtomicProductSectionMetadata as LitAtomicProductSectionMetadata,AtomicProductSectionName as LitAtomicProductSectionName,AtomicProductSectionVisual as LitAtomicProductSectionVisual,AtomicProductText as LitAtomicProductText,AtomicTimeframe as LitAtomicTimeframe} from '@coveo/atomic/components';\n\nexport const AtomicAriaLive = /*@__PURE__*/ createComponent({\n tagName: 'atomic-aria-live',\n react: React,\n elementClass: LitAtomicAriaLive,\n});\n\nexport const AtomicCommerceBreadbox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-breadbox',\n react: React,\n elementClass: LitAtomicCommerceBreadbox,\n});\n\nexport const AtomicCommerceCategoryFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-category-facet',\n react: React,\n elementClass: LitAtomicCommerceCategoryFacet,\n});\n\nexport const AtomicCommerceDidYouMean = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-did-you-mean',\n react: React,\n elementClass: LitAtomicCommerceDidYouMean,\n});\n\nexport const AtomicCommerceFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-facet',\n react: React,\n elementClass: LitAtomicCommerceFacet,\n});\n\nexport const AtomicCommerceFacets = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-facets',\n react: React,\n elementClass: LitAtomicCommerceFacets,\n});\n\nexport const AtomicCommerceInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-interface',\n react: React,\n elementClass: LitAtomicCommerceInterface,\n});\n\nexport const AtomicCommerceLayout = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-layout',\n react: React,\n elementClass: LitAtomicCommerceLayout,\n});\n\nexport const AtomicCommerceLoadMoreProducts = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-load-more-products',\n react: React,\n elementClass: LitAtomicCommerceLoadMoreProducts,\n});\n\nexport const AtomicCommerceNoProducts = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-no-products',\n react: React,\n elementClass: LitAtomicCommerceNoProducts,\n});\n\nexport const AtomicCommerceNumericFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-numeric-facet',\n react: React,\n elementClass: LitAtomicCommerceNumericFacet,\n});\n\nexport const AtomicCommercePager = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-pager',\n react: React,\n elementClass: LitAtomicCommercePager,\n});\n\nexport const AtomicCommerceProductList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-product-list',\n react: React,\n elementClass: LitAtomicCommerceProductList,\n});\n\nexport const AtomicCommerceProductsPerPage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-products-per-page',\n react: React,\n elementClass: LitAtomicCommerceProductsPerPage,\n});\n\nexport const AtomicCommerceQueryError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-query-error',\n react: React,\n elementClass: LitAtomicCommerceQueryError,\n});\n\nexport const AtomicCommerceQuerySummary = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-query-summary',\n react: React,\n elementClass: LitAtomicCommerceQuerySummary,\n});\n\nexport const AtomicCommerceRecommendationInterface = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-recommendation-interface',\n react: React,\n elementClass: LitAtomicCommerceRecommendationInterface,\n});\n\nexport const AtomicCommerceRecommendationList = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-recommendation-list',\n react: React,\n elementClass: LitAtomicCommerceRecommendationList,\n});\n\nexport const AtomicCommerceRefineModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-refine-modal',\n react: React,\n elementClass: LitAtomicCommerceRefineModal,\n});\n\nexport const AtomicCommerceRefineToggle = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-refine-toggle',\n react: React,\n elementClass: LitAtomicCommerceRefineToggle,\n});\n\nexport const AtomicCommerceSearchBox = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box',\n react: React,\n elementClass: LitAtomicCommerceSearchBox,\n});\n\nexport const AtomicCommerceSearchBoxInstantProducts = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box-instant-products',\n react: React,\n elementClass: LitAtomicCommerceSearchBoxInstantProducts,\n});\n\nexport const AtomicCommerceSearchBoxQuerySuggestions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box-query-suggestions',\n react: React,\n elementClass: LitAtomicCommerceSearchBoxQuerySuggestions,\n});\n\nexport const AtomicCommerceSearchBoxRecentQueries = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-search-box-recent-queries',\n react: React,\n elementClass: LitAtomicCommerceSearchBoxRecentQueries,\n});\n\nexport const AtomicCommerceSortDropdown = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-sort-dropdown',\n react: React,\n elementClass: LitAtomicCommerceSortDropdown,\n});\n\nexport const AtomicCommerceText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-text',\n react: React,\n elementClass: LitAtomicCommerceText,\n});\n\nexport const AtomicCommerceTimeframeFacet = /*@__PURE__*/ createComponent({\n tagName: 'atomic-commerce-timeframe-facet',\n react: React,\n elementClass: LitAtomicCommerceTimeframeFacet,\n});\n\nexport const AtomicComponentError = /*@__PURE__*/ createComponent({\n tagName: 'atomic-component-error',\n react: React,\n elementClass: LitAtomicComponentError,\n});\n\nexport const AtomicFocusTrap = /*@__PURE__*/ createComponent({\n tagName: 'atomic-focus-trap',\n react: React,\n elementClass: LitAtomicFocusTrap,\n});\n\nexport const AtomicGeneratedAnswerFeedbackModal = /*@__PURE__*/ createComponent({\n tagName: 'atomic-generated-answer-feedback-modal',\n react: React,\n elementClass: LitAtomicGeneratedAnswerFeedbackModal,\n});\n\nexport const AtomicIcon = /*@__PURE__*/ createComponent({\n tagName: 'atomic-icon',\n react: React,\n elementClass: LitAtomicIcon,\n});\n\nexport const AtomicLayoutSection = /*@__PURE__*/ createComponent({\n tagName: 'atomic-layout-section',\n react: React,\n elementClass: LitAtomicLayoutSection,\n});\n\nexport const AtomicNumericRange = /*@__PURE__*/ createComponent({\n tagName: 'atomic-numeric-range',\n react: React,\n elementClass: LitAtomicNumericRange,\n});\n\nexport const AtomicProduct = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product',\n react: React,\n elementClass: LitAtomicProduct,\n});\n\nexport const AtomicProductChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-children',\n react: React,\n elementClass: LitAtomicProductChildren,\n});\n\nexport const AtomicProductDescription = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-description',\n react: React,\n elementClass: LitAtomicProductDescription,\n});\n\nexport const AtomicProductExcerpt = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-excerpt',\n react: React,\n elementClass: LitAtomicProductExcerpt,\n});\n\nexport const AtomicProductFieldCondition = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-field-condition',\n react: React,\n elementClass: LitAtomicProductFieldCondition,\n});\n\nexport const AtomicProductImage = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-image',\n react: React,\n elementClass: LitAtomicProductImage,\n});\n\nexport const AtomicProductLink = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-link',\n react: React,\n elementClass: LitAtomicProductLink,\n});\n\nexport const AtomicProductMultiValueText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-multi-value-text',\n react: React,\n elementClass: LitAtomicProductMultiValueText,\n});\n\nexport const AtomicProductNumericFieldValue = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-numeric-field-value',\n react: React,\n elementClass: LitAtomicProductNumericFieldValue,\n});\n\nexport const AtomicProductPrice = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-price',\n react: React,\n elementClass: LitAtomicProductPrice,\n});\n\nexport const AtomicProductRating = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-rating',\n react: React,\n elementClass: LitAtomicProductRating,\n});\n\nexport const AtomicProductSectionActions = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-actions',\n react: React,\n elementClass: LitAtomicProductSectionActions,\n});\n\nexport const AtomicProductSectionBadges = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-badges',\n react: React,\n elementClass: LitAtomicProductSectionBadges,\n});\n\nexport const AtomicProductSectionBottomMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-bottom-metadata',\n react: React,\n elementClass: LitAtomicProductSectionBottomMetadata,\n});\n\nexport const AtomicProductSectionChildren = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-children',\n react: React,\n elementClass: LitAtomicProductSectionChildren,\n});\n\nexport const AtomicProductSectionDescription = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-description',\n react: React,\n elementClass: LitAtomicProductSectionDescription,\n});\n\nexport const AtomicProductSectionEmphasized = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-emphasized',\n react: React,\n elementClass: LitAtomicProductSectionEmphasized,\n});\n\nexport const AtomicProductSectionMetadata = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-metadata',\n react: React,\n elementClass: LitAtomicProductSectionMetadata,\n});\n\nexport const AtomicProductSectionName = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-name',\n react: React,\n elementClass: LitAtomicProductSectionName,\n});\n\nexport const AtomicProductSectionVisual = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-section-visual',\n react: React,\n elementClass: LitAtomicProductSectionVisual,\n});\n\nexport const AtomicProductText = /*@__PURE__*/ createComponent({\n tagName: 'atomic-product-text',\n react: React,\n elementClass: LitAtomicProductText,\n});\n\nexport const AtomicTimeframe = /*@__PURE__*/ createComponent({\n tagName: 'atomic-timeframe',\n react: React,\n elementClass: LitAtomicTimeframe,\n});\n","import type {i18n} from '@coveo/atomic';\n// biome-ignore lint/style/useImportType: <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicCommerceInterface} from './components';\n\ntype AtomicCommerceInterfaceProps = React.ComponentProps<\n typeof AtomicCommerceInterface\n>;\n\ntype ExecuteRequest = AtomicCommerceInterfaceProps['executeFirstRequest'];\n\ninterface WrapperProps\n extends Omit<\n AtomicCommerceInterfaceProps,\n 'i18n' | 'pipeline' | 'searchHub'\n > {\n /**\n * An optional callback function that can be used to control the execution of the first request.\n *\n * If not provided, a default function will be used, which executes the first request immediately after initialization.\n */\n onReady?: (executeFirstRequest: ExecuteRequest) => Promise<void>;\n /**\n * An optional callback that lets you control the interface localization.\n *\n * The function receives the search interface 18n instance, which you can then modify (see [Localization](https://docs.coveo.com/en/atomic/latest/usage/atomic-localization/)).\n *\n */\n localization?: (i18n: i18n) => void;\n}\n\nconst DefaultProps: Required<Pick<WrapperProps, 'onReady' | 'localization'>> = {\n onReady: (executeFirstRequest) => {\n return executeFirstRequest ? executeFirstRequest() : Promise.resolve();\n },\n localization: () => {},\n};\n\n/**\n * This component serves as a wrapper for the core AtomicCommerceInterface.\n * @param props\n * @returns\n */\nexport const InterfaceWrapper = (\n props: React.PropsWithChildren<WrapperProps>\n) => {\n const mergedProps = {...DefaultProps, ...props};\n if (!mergedProps.engine) {\n throw new Error('The \"engine\" prop is required.');\n //TODO, maybe: provide a default engine\n }\n const {engine, localization, onReady, ...allOtherProps} = mergedProps;\n const interfaceRef =\n useRef<React.ElementRef<typeof AtomicCommerceInterface>>(null);\n let initialization: Promise<void> | null = null;\n\n useEffect(() => {\n const commerceInterfaceAtomic = interfaceRef.current!;\n if (!initialization) {\n initialization = commerceInterfaceAtomic.initializeWithEngine(engine);\n initialization.then(() => {\n localization(commerceInterfaceAtomic.i18n);\n onReady(\n commerceInterfaceAtomic.executeFirstRequest.bind(\n commerceInterfaceAtomic\n )\n );\n });\n }\n }, [engine, initialization, localization, onReady]);\n\n return (\n <AtomicCommerceInterface ref={interfaceRef} {...allOtherProps}>\n {props.children}\n </AtomicCommerceInterface>\n );\n};\n","import type {AtomicCommerceProductList} from '@coveo/atomic/components';\nimport type {Product} from '@coveo/headless/commerce';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {\n AtomicProductLink,\n AtomicCommerceProductList as LitAtomicCommerceProductList,\n} from './components.js';\n\ninterface Template {\n contentTemplate: JSX.Element;\n linkTemplate: JSX.Element;\n}\n\ninterface AtomicCommerceProductListProps {\n /**\n * The spacing of various elements in the product list, including the gap between products, the gap between parts of a product, and the font sizes of different parts in a product.\n */\n density?: AtomicCommerceProductList['density'];\n /**\n * The desired layout to use when displaying products. Layouts affect how many products to display per row and how visually distinct they are from each other.\n */\n display?: AtomicCommerceProductList['display'];\n /**\n * The expected size of the image displayed for products.\n */\n imageSize?: AtomicCommerceProductList['imageSize'];\n /**\n * The desired number of placeholders to display while the product list is loading.\n */\n numberOfPlaceholders?: number;\n}\n\ninterface HTMLAtomicCommerceProductListElement\n extends AtomicCommerceProductList,\n HTMLElement {}\n\n// biome-ignore lint/correctness/noUnusedVariables: <>\nvar HTMLAtomicCommerceProductListElement: {\n prototype: HTMLAtomicCommerceProductListElement;\n new (): HTMLAtomicCommerceProductListElement;\n};\n\n/**\n * The properties of the AtomicCommerceProductList component\n */\ninterface WrapperProps extends AtomicCommerceProductListProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (result: Product) => JSX.Element | Template;\n}\n/**\n * This component serves as a wrapper for the core AtomicCommerceProductList.\n *\n * @param props\n * @returns\n */\nexport const ListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const commerceProductListRef =\n useRef<HTMLAtomicCommerceProductListElement>(null);\n useEffect(() => {\n commerceProductListRef.current?.setRenderFunction(\n (result, root, linkContainer) => {\n const templateResult = template(result as Product);\n if (isTemplate(templateResult)) {\n return renderTemplate(linkContainer, templateResult, root);\n } else {\n return renderJSXTemplate(\n linkContainer,\n root,\n templateResult,\n otherProps.display\n );\n }\n }\n );\n }, [otherProps.display, template]);\n return (\n <LitAtomicCommerceProductList\n ref={commerceProductListRef}\n {...otherProps}\n />\n );\n};\n\nconst isTemplate = (template: JSX.Element | Template): template is Template => {\n return (template as Template).linkTemplate !== undefined;\n};\n\nfunction renderJSXTemplate(\n linkContainer: HTMLElement | undefined,\n root: HTMLElement,\n templateResult: JSX.Element,\n display: WrapperProps['display']\n) {\n const contentRoot = createRoot(root);\n const linkRoot = linkContainer ? createRoot(linkContainer!) : null;\n flushSync(() => {\n contentRoot.render(templateResult);\n if (!linkRoot) {\n return;\n }\n display === 'grid'\n ? linkRoot.render(<AtomicProductLink></AtomicProductLink>)\n : // biome-ignore lint/complexity/noUselessFragments: <>\n linkRoot.render(<></>);\n });\n return root.innerHTML;\n}\n\nfunction renderTemplate(\n linkContainer: HTMLElement | undefined,\n templateResult: Template,\n root: HTMLElement\n) {\n const linkRoot = createRoot(linkContainer!);\n const contentRoot = createRoot(root);\n flushSync(() => {\n linkRoot.render(templateResult.linkTemplate);\n contentRoot.render(templateResult.contentTemplate);\n });\n return root.innerHTML;\n}\n","import type {i18n} from '@coveo/atomic';\n// biome-ignore lint/style/useImportType: <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicCommerceRecommendationInterface} from './components.js';\n\ntype AtomicCommerceRecommendationInterfaceProps = React.ComponentProps<\n typeof AtomicCommerceRecommendationInterface\n>;\n\ninterface WrapperProps\n extends Omit<\n AtomicCommerceRecommendationInterfaceProps,\n 'i18n' | 'pipeline' | 'searchHub'\n > {\n /**\n * An optional callback that lets you control the interface localization.\n *\n * The function receives the search interface 18n instance, which you can then modify (see [Localization](https://docs.coveo.com/en/atomic/latest/usage/atomic-localization/)).\n *\n */\n localization?: (i18n: i18n) => void;\n}\nconst DefaultProps: Required<Pick<WrapperProps, 'localization'>> = {\n localization: () => {},\n};\n\n/**\n * This component serves as a wrapper for the core AtomicCommerceRecommendationInterface.\n * @param props\n * @returns\n */\nexport const InterfaceWrapper = (\n props: React.PropsWithChildren<WrapperProps>\n) => {\n const mergedProps = {...DefaultProps, ...props};\n if (!mergedProps.engine) {\n throw new Error('The \"engine\" prop is required.');\n }\n const {engine, localization, ...allOtherProps} = mergedProps;\n const interfaceRef =\n useRef<React.ElementRef<typeof AtomicCommerceRecommendationInterface>>(\n null\n );\n let initialization: Promise<void> | null = null;\n\n useEffect(() => {\n const CommerceRecommendationInterfaceAtomic = interfaceRef.current!;\n if (!initialization) {\n initialization =\n CommerceRecommendationInterfaceAtomic.initializeWithEngine(engine);\n initialization.then(() => {\n localization(CommerceRecommendationInterfaceAtomic.i18n);\n });\n }\n }, [localization, engine, initialization]);\n\n return (\n <AtomicCommerceRecommendationInterface\n engine={engine}\n ref={interfaceRef}\n {...allOtherProps}\n >\n {props.children}\n </AtomicCommerceRecommendationInterface>\n );\n};\n","import type {AtomicCommerceRecommendationList} from '@coveo/atomic/components';\nimport type {Product} from '@coveo/headless/commerce';\nimport React, {type JSX, useEffect, useRef} from 'react';\nimport {flushSync} from 'react-dom';\nimport {createRoot} from 'react-dom/client';\nimport {\n AtomicProductLink,\n AtomicCommerceRecommendationList as LitAtomicCommerceRecommendationList,\n} from './components.js';\n\ninterface Template {\n contentTemplate: JSX.Element;\n linkTemplate: JSX.Element;\n}\n\ninterface AtomicCommerceRecommendationListProps {\n /**\n * The spacing of various elements in the recommendation list, including the gap between products, the gap between parts of a product, and the font sizes of different parts in a product.\n */\n density?: AtomicCommerceRecommendationList['density'];\n /**\n * The desired layout to use when displaying recommendations. Layouts affect how many products to display per row and how visually distinct they are from each other.\n */\n display?: AtomicCommerceRecommendationList['display'];\n /**\n * The expected size of the image displayed for recommendations.\n */\n imageSize?: AtomicCommerceRecommendationList['imageSize'];\n /**\n * The desired number of placeholders to display while the recommendation list is loading.\n */\n numberOfPlaceholders?: number;\n\n slotId?: string;\n\n productsPerPage?: number;\n}\n\ninterface HTMLAtomicCommerceRecommendationListElement\n extends AtomicCommerceRecommendationList,\n HTMLElement {}\n\n// biome-ignore lint/correctness/noUnusedVariables: <>\nvar HTMLAtomicCommerceRecommendationListElement: {\n prototype: HTMLAtomicCommerceRecommendationListElement;\n new (): HTMLAtomicCommerceRecommendationListElement;\n};\n\n/**\n * The properties of the AtomicCommerceRecommendationList component\n */\ninterface WrapperProps extends AtomicCommerceRecommendationListProps {\n /**\n * A template function that takes a result item and outputs its target rendering as a JSX element.\n * It can be used to conditionally render different type of result templates based on the properties of each result.\n */\n template: (result: Product) => JSX.Element | Template;\n}\n\n/**\n * This component serves as a wrapper for the core AtomicCommerceRecommendationList.\n *\n * @param props\n * @returns\n */\nexport const ListWrapper: React.FC<WrapperProps> = (props) => {\n const {template, ...otherProps} = props;\n const commerceRecommendationListRef =\n useRef<HTMLAtomicCommerceRecommendationListElement>(null);\n useEffect(() => {\n commerceRecommendationListRef.current?.setRenderFunction(\n (product, root, linkContainer) => {\n const templateResult = template(product as Product);\n if (hasLinkTemplate(templateResult)) {\n const linkRoot = createRoot(linkContainer!);\n linkRoot.render(templateResult.linkTemplate);\n const contentRoot = createRoot(root);\n flushSync(() => {\n contentRoot.render(templateResult.contentTemplate);\n });\n return root.innerHTML;\n } else {\n const contentRoot = createRoot(root);\n const linkRoot = createRoot(linkContainer!);\n flushSync(() => {\n contentRoot.render(templateResult);\n otherProps.display === 'grid'\n ? linkRoot.render(<AtomicProductLink></AtomicProductLink>)\n : // biome-ignore lint/complexity/noUselessFragments: <>\n linkRoot.render(<></>);\n });\n return root.innerHTML;\n }\n }\n );\n }, [otherProps.display, template]);\n return (\n <LitAtomicCommerceRecommendationList\n ref={commerceRecommendationListRef}\n {...otherProps}\n />\n );\n};\n\nconst hasLinkTemplate = (\n template: JSX.Element | Template\n): template is Template => {\n return (template as Template).linkTemplate !== undefined;\n};\n"],"names":["LitAtomicAriaLive","LitAtomicCommerceBreadbox","LitAtomicCommerceCategoryFacet","LitAtomicCommerceDidYouMean","LitAtomicCommerceFacet","LitAtomicCommerceFacets","LitAtomicCommerceInterface","LitAtomicCommerceLayout","LitAtomicCommerceLoadMoreProducts","LitAtomicCommerceNoProducts","LitAtomicCommerceNumericFacet","LitAtomicCommercePager","LitAtomicCommerceProductList","LitAtomicCommerceProductsPerPage","LitAtomicCommerceQueryError","LitAtomicCommerceQuerySummary","LitAtomicCommerceRecommendationInterface","LitAtomicCommerceRecommendationList","LitAtomicCommerceRefineModal","LitAtomicCommerceRefineToggle","LitAtomicCommerceSearchBox","LitAtomicCommerceSearchBoxInstantProducts","LitAtomicCommerceSearchBoxQuerySuggestions","LitAtomicCommerceSearchBoxRecentQueries","LitAtomicCommerceSortDropdown","LitAtomicCommerceText","LitAtomicCommerceTimeframeFacet","LitAtomicComponentError","LitAtomicFocusTrap","LitAtomicGeneratedAnswerFeedbackModal","LitAtomicIcon","LitAtomicLayoutSection","LitAtomicNumericRange","LitAtomicProduct","LitAtomicProductChildren","LitAtomicProductDescription","LitAtomicProductExcerpt","LitAtomicProductFieldCondition","LitAtomicProductImage","LitAtomicProductLink","LitAtomicProductMultiValueText","LitAtomicProductNumericFieldValue","LitAtomicProductPrice","LitAtomicProductRating","LitAtomicProductSectionActions","LitAtomicProductSectionBadges","LitAtomicProductSectionBottomMetadata","LitAtomicProductSectionChildren","LitAtomicProductSectionDescription","LitAtomicProductSectionEmphasized","LitAtomicProductSectionMetadata","LitAtomicProductSectionName","LitAtomicProductSectionVisual","LitAtomicProductText","LitAtomicTimeframe","DefaultProps","InterfaceWrapper","ListWrapper"],"mappings":";;;;;;AAIO,MAAM,cAAc,iBAAiB,eAAe,CAAC;AAC1D,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEA,gBAAiB;AAChC,CAAA;AAEM,MAAM,sBAAsB,iBAAiB,eAAe,CAAC;AAClE,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEC,wBAAyB;AACxC,CAAA;AAEM,MAAM,2BAA2B,iBAAiB,eAAe,CAAC;AACvE,IAAA,OAAO,EAAE,gCAAgC;AACzC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEC,6BAA8B;AAC7C,CAAA;AAEM,MAAM,wBAAwB,iBAAiB,eAAe,CAAC;AACpE,IAAA,OAAO,EAAE,8BAA8B;AACvC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEC,0BAA2B;AAC1C,CAAA;AAEM,MAAM,mBAAmB,iBAAiB,eAAe,CAAC;AAC/D,IAAA,OAAO,EAAE,uBAAuB;AAChC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEC,qBAAsB;AACrC,CAAA;AAEM,MAAM,oBAAoB,iBAAiB,eAAe,CAAC;AAChE,IAAA,OAAO,EAAE,wBAAwB;AACjC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,YAAY,EAAEC,sBAAuB;AACtC,CAAA;AAEM,MAAM,uBAAuB,iBAAiB,eAAe,CAAC;AACnE,IAAA,OAAO,EAAE,2BAA2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AU,CAAC,OAAO,KAAK;0BACnB,QAAQ,CAAC,MAAM,CAAC,KAAA,CAAA,aAAA,CAAC,iBAAiB,OAAqB;AACzD;AACE,4BAAA,QAAQ,CAAC,MAAM,CAAC,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,CAAK,CAAC;AAC5B,gBAAA,CAAC,CAAC;gBACF,OAAO,IAAI,CAAC,SAAS;YACvB;AACF,QAAA,CAAC,CACF;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClC,QACE,KAAA,CAAA,aAAA,CAACK,gCAAmC,EAAA,EAClC,GAAG,EAAE,6BAA6B,EAAA,GAC9B,UAAU,EAAA,CACd;AAEN;AAEA,MAAM,eAAe,GAAG,CACtB,QAAgC,KACR;AACxB,IAAA,OAAQ,QAAqB,CAAC,YAAY,KAAK,SAAS;AAC1D,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
- import { AtomicAriaLive as AtomicAriaLive$1, AtomicAutomaticFacet as AtomicAutomaticFacet$1, AtomicAutomaticFacetGenerator as AtomicAutomaticFacetGenerator$1, AtomicBreadbox as AtomicBreadbox$1, AtomicCategoryFacet as AtomicCategoryFacet$1, AtomicColorFacet as AtomicColorFacet$1, AtomicComponentError as AtomicComponentError$1, AtomicDidYouMean as AtomicDidYouMean$1, AtomicExternal as AtomicExternal$1, AtomicFacet as AtomicFacet$1, AtomicFacetManager as AtomicFacetManager$1, AtomicFocusTrap as AtomicFocusTrap$1, AtomicFoldedResultList as AtomicFoldedResultList$1, AtomicFormatCurrency as AtomicFormatCurrency$1, AtomicFormatNumber as AtomicFormatNumber$1, AtomicFormatUnit as AtomicFormatUnit$1, AtomicGeneratedAnswer as AtomicGeneratedAnswer$1, AtomicGeneratedAnswerFeedbackModal as AtomicGeneratedAnswerFeedbackModal$1, AtomicHtml as AtomicHtml$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicLoadMoreResults as AtomicLoadMoreResults$1, AtomicNoResults as AtomicNoResults$1, AtomicNotifications as AtomicNotifications$1, AtomicNumericFacet as AtomicNumericFacet$1, AtomicNumericRange as AtomicNumericRange$1, AtomicPager as AtomicPager$1, AtomicPopover as AtomicPopover$1, AtomicQueryError as AtomicQueryError$1, AtomicQuerySummary as AtomicQuerySummary$1, AtomicQuickview as AtomicQuickview$1, AtomicQuickviewModal as AtomicQuickviewModal$1, AtomicRatingFacet as AtomicRatingFacet$1, AtomicRatingRangeFacet as AtomicRatingRangeFacet$1, AtomicRecsError as AtomicRecsError$1, AtomicRecsResult as AtomicRecsResult$1, AtomicRefineModal as AtomicRefineModal$1, AtomicRefineToggle as AtomicRefineToggle$1, AtomicResult as AtomicResult$1, AtomicResultBadge as AtomicResultBadge$1, AtomicResultChildren as AtomicResultChildren$1, AtomicResultChildrenTemplate as AtomicResultChildrenTemplate$1, AtomicResultDate as AtomicResultDate$1, AtomicResultFieldsList as AtomicResultFieldsList$1, AtomicResultHtml as AtomicResultHtml$1, AtomicResultIcon as AtomicResultIcon$1, AtomicResultImage as AtomicResultImage$1, AtomicResultLink as AtomicResultLink$1, AtomicResultList as AtomicResultList$1, AtomicResultLocalizedText as AtomicResultLocalizedText$1, AtomicResultMultiValueText as AtomicResultMultiValueText$1, AtomicResultNumber as AtomicResultNumber$1, AtomicResultPrintableUri as AtomicResultPrintableUri$1, AtomicResultRating as AtomicResultRating$1, AtomicResultSectionActions as AtomicResultSectionActions$1, AtomicResultSectionBadges as AtomicResultSectionBadges$1, AtomicResultSectionBottomMetadata as AtomicResultSectionBottomMetadata$1, AtomicResultSectionChildren as AtomicResultSectionChildren$1, AtomicResultSectionEmphasized as AtomicResultSectionEmphasized$1, AtomicResultSectionExcerpt as AtomicResultSectionExcerpt$1, AtomicResultSectionTitle as AtomicResultSectionTitle$1, AtomicResultSectionTitleMetadata as AtomicResultSectionTitleMetadata$1, AtomicResultSectionVisual as AtomicResultSectionVisual$1, AtomicResultsPerPage as AtomicResultsPerPage$1, AtomicResultText as AtomicResultText$1, AtomicResultTimespan as AtomicResultTimespan$1, AtomicSearchBox as AtomicSearchBox$1, AtomicSearchBoxInstantResults as AtomicSearchBoxInstantResults$1, AtomicSearchBoxQuerySuggestions as AtomicSearchBoxQuerySuggestions$1, AtomicSearchBoxRecentQueries as AtomicSearchBoxRecentQueries$1, AtomicSearchInterface as AtomicSearchInterface$1, AtomicSearchLayout as AtomicSearchLayout$1, AtomicSegmentedFacet as AtomicSegmentedFacet$1, AtomicSegmentedFacetScrollable as AtomicSegmentedFacetScrollable$1, AtomicSmartSnippet as AtomicSmartSnippet$1, AtomicSmartSnippetFeedbackModal as AtomicSmartSnippetFeedbackModal$1, AtomicSmartSnippetSuggestions as AtomicSmartSnippetSuggestions$1, AtomicSortDropdown as AtomicSortDropdown$1, AtomicSortExpression as AtomicSortExpression$1, AtomicTab as AtomicTab$1, AtomicTableElement as AtomicTableElement$1, AtomicTabManager as AtomicTabManager$1, AtomicText as AtomicText$1, AtomicTimeframe as AtomicTimeframe$1, AtomicTimeframeFacet as AtomicTimeframeFacet$1, AtomicRecsInterface as AtomicRecsInterface$1, AtomicRecsList as AtomicRecsList$1 } from '@coveo/atomic/components';
2
1
  import { createComponent } from '@lit/react';
3
2
  import React, { useRef, useEffect } from 'react';
3
+ import { AtomicAriaLive as AtomicAriaLive$1, AtomicAutomaticFacet as AtomicAutomaticFacet$1, AtomicAutomaticFacetGenerator as AtomicAutomaticFacetGenerator$1, AtomicBreadbox as AtomicBreadbox$1, AtomicCategoryFacet as AtomicCategoryFacet$1, AtomicColorFacet as AtomicColorFacet$1, AtomicComponentError as AtomicComponentError$1, AtomicDidYouMean as AtomicDidYouMean$1, AtomicExternal as AtomicExternal$1, AtomicFacet as AtomicFacet$1, AtomicFacetManager as AtomicFacetManager$1, AtomicFocusTrap as AtomicFocusTrap$1, AtomicFoldedResultList as AtomicFoldedResultList$1, AtomicFormatCurrency as AtomicFormatCurrency$1, AtomicFormatNumber as AtomicFormatNumber$1, AtomicFormatUnit as AtomicFormatUnit$1, AtomicGeneratedAnswer as AtomicGeneratedAnswer$1, AtomicGeneratedAnswerFeedbackModal as AtomicGeneratedAnswerFeedbackModal$1, AtomicHtml as AtomicHtml$1, AtomicIcon as AtomicIcon$1, AtomicLayoutSection as AtomicLayoutSection$1, AtomicLoadMoreResults as AtomicLoadMoreResults$1, AtomicNoResults as AtomicNoResults$1, AtomicNotifications as AtomicNotifications$1, AtomicNumericFacet as AtomicNumericFacet$1, AtomicNumericRange as AtomicNumericRange$1, AtomicPager as AtomicPager$1, AtomicPopover as AtomicPopover$1, AtomicQueryError as AtomicQueryError$1, AtomicQuerySummary as AtomicQuerySummary$1, AtomicQuickview as AtomicQuickview$1, AtomicQuickviewModal as AtomicQuickviewModal$1, AtomicRatingFacet as AtomicRatingFacet$1, AtomicRatingRangeFacet as AtomicRatingRangeFacet$1, AtomicRecsError as AtomicRecsError$1, AtomicRecsResult as AtomicRecsResult$1, AtomicRefineModal as AtomicRefineModal$1, AtomicRefineToggle as AtomicRefineToggle$1, AtomicResult as AtomicResult$1, AtomicResultBadge as AtomicResultBadge$1, AtomicResultChildren as AtomicResultChildren$1, AtomicResultChildrenTemplate as AtomicResultChildrenTemplate$1, AtomicResultDate as AtomicResultDate$1, AtomicResultFieldsList as AtomicResultFieldsList$1, AtomicResultHtml as AtomicResultHtml$1, AtomicResultIcon as AtomicResultIcon$1, AtomicResultImage as AtomicResultImage$1, AtomicResultLink as AtomicResultLink$1, AtomicResultList as AtomicResultList$1, AtomicResultLocalizedText as AtomicResultLocalizedText$1, AtomicResultMultiValueText as AtomicResultMultiValueText$1, AtomicResultNumber as AtomicResultNumber$1, AtomicResultPrintableUri as AtomicResultPrintableUri$1, AtomicResultRating as AtomicResultRating$1, AtomicResultSectionActions as AtomicResultSectionActions$1, AtomicResultSectionBadges as AtomicResultSectionBadges$1, AtomicResultSectionBottomMetadata as AtomicResultSectionBottomMetadata$1, AtomicResultSectionChildren as AtomicResultSectionChildren$1, AtomicResultSectionEmphasized as AtomicResultSectionEmphasized$1, AtomicResultSectionExcerpt as AtomicResultSectionExcerpt$1, AtomicResultSectionTitle as AtomicResultSectionTitle$1, AtomicResultSectionTitleMetadata as AtomicResultSectionTitleMetadata$1, AtomicResultSectionVisual as AtomicResultSectionVisual$1, AtomicResultsPerPage as AtomicResultsPerPage$1, AtomicResultText as AtomicResultText$1, AtomicResultTimespan as AtomicResultTimespan$1, AtomicSearchBox as AtomicSearchBox$1, AtomicSearchBoxInstantResults as AtomicSearchBoxInstantResults$1, AtomicSearchBoxQuerySuggestions as AtomicSearchBoxQuerySuggestions$1, AtomicSearchBoxRecentQueries as AtomicSearchBoxRecentQueries$1, AtomicSearchInterface as AtomicSearchInterface$1, AtomicSearchLayout as AtomicSearchLayout$1, AtomicSegmentedFacet as AtomicSegmentedFacet$1, AtomicSegmentedFacetScrollable as AtomicSegmentedFacetScrollable$1, AtomicSmartSnippet as AtomicSmartSnippet$1, AtomicSmartSnippetFeedbackModal as AtomicSmartSnippetFeedbackModal$1, AtomicSmartSnippetSuggestions as AtomicSmartSnippetSuggestions$1, AtomicSortDropdown as AtomicSortDropdown$1, AtomicSortExpression as AtomicSortExpression$1, AtomicTab as AtomicTab$1, AtomicTableElement as AtomicTableElement$1, AtomicTabManager as AtomicTabManager$1, AtomicText as AtomicText$1, AtomicTimeframe as AtomicTimeframe$1, AtomicTimeframeFacet as AtomicTimeframeFacet$1, AtomicRecsInterface as AtomicRecsInterface$1, AtomicRecsList as AtomicRecsList$1 } from '@coveo/atomic/components';
4
4
  import { buildRecommendationEngine, getSampleRecommendationEngineConfiguration } from '@coveo/headless/recommendation';
5
5
  import { flushSync } from 'react-dom';
6
6
  import { createRoot } from 'react-dom/client';