@coveo/atomic-react 3.11.9 → 3.11.12

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.
@@ -496,7 +496,7 @@ function renderJSXTemplate(linkContainer, root, templateResult, display) {
496
496
  }
497
497
  display === 'grid'
498
498
  ? linkRoot.render(React.createElement(AtomicResultLink, null))
499
- : // biome-ignore lint/complexity/noUselessFragments: <>
499
+ : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>
500
500
  linkRoot.render(React.createElement(React.Fragment, null));
501
501
  });
502
502
  return root.innerHTML;
@@ -531,9 +531,9 @@ const SearchBoxInstantResultsWrapper = ({ maxResultsPerQuery, density, imageSize
531
531
  }
532
532
  }, [ariaLabelGenerator]);
533
533
  return (React.createElement(AtomicSearchBoxInstantResults
534
- // biome-ignore lint/suspicious/noExplicitAny: Ref typing for web component
534
+ // oxlint-disable-next-line @typescript-eslint/no-explicit-any -- Ref typing for web component
535
535
  , {
536
- // biome-ignore lint/suspicious/noExplicitAny: Ref typing for web component
536
+ // oxlint-disable-next-line @typescript-eslint/no-explicit-any -- Ref typing for web component
537
537
  ref: ref, maxResultsPerQuery: maxResultsPerQuery, imageSize: imageSize, density: density }));
538
538
  };
539
539
 
@@ -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 {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.js';\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","LitA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/C,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,qBAAqB,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// oxlint-disable-next-line @typescript-eslint/no-unused-vars -- <>\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 : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>\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 // oxlint-disable-next-line @typescript-eslint/no-explicit-any -- 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// oxlint-disable-next-line @typescript-eslint/consistent-type-imports -- <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicSearchInterface} from './components.js';\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 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,I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C,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;;;;"}
@@ -280,7 +280,7 @@ const AtomicTimeframe = /*@__PURE__*/ createComponent({
280
280
  elementClass: AtomicTimeframe$1,
281
281
  });
282
282
 
283
- // biome-ignore lint/style/useImportType: <React is needed>
283
+ // oxlint-disable-next-line @typescript-eslint/consistent-type-imports -- <React is needed>
284
284
  const DefaultProps$1 = {
285
285
  onReady: (executeFirstRequest) => {
286
286
  return executeFirstRequest ? executeFirstRequest() : Promise.resolve();
@@ -349,7 +349,7 @@ function renderJSXTemplate(linkContainer, root, templateResult, display) {
349
349
  }
350
350
  display === 'grid'
351
351
  ? linkRoot.render(React.createElement(AtomicProductLink, null))
352
- : // biome-ignore lint/complexity/noUselessFragments: <>
352
+ : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>
353
353
  linkRoot.render(React.createElement(React.Fragment, null));
354
354
  });
355
355
  return root.innerHTML;
@@ -364,7 +364,7 @@ function renderTemplate(linkContainer, templateResult, root) {
364
364
  return root.innerHTML;
365
365
  }
366
366
 
367
- // biome-ignore lint/style/useImportType: <React is needed>
367
+ // oxlint-disable-next-line @typescript-eslint/consistent-type-imports -- <React is needed>
368
368
  const DefaultProps = {
369
369
  localization: () => { },
370
370
  };
@@ -422,7 +422,7 @@ const ListWrapper = (props) => {
422
422
  contentRoot.render(templateResult);
423
423
  otherProps.display === 'grid'
424
424
  ? linkRoot.render(React.createElement(AtomicProductLink, null))
425
- : // biome-ignore lint/complexity/noUselessFragments: <>
425
+ : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>
426
426
  linkRoot.render(React.createElement(React.Fragment, null));
427
427
  });
428
428
  return root.innerHTML;
@@ -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 {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.js';\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;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C;AACpD,gBAAA,CAAC,CAAC;gBACF,OAAO,IAAI,CAAC,SAAS;YACvB;iBAAO;AACL,gBAAA,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC;AACpC,gBAAA,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAc,CAAC;gBAC3C,SAAS,CAAC,MAAK;AACb,oBAAA,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;oBAClC,UAAU,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
+ {"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 {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// oxlint-disable-next-line @typescript-eslint/consistent-type-imports -- <React is needed>\nimport React, {useEffect, useRef} from 'react';\nimport {AtomicCommerceInterface} from './components.js';\n\ntype AtomicCommerceInterfaceProps = React.ComponentProps<\n typeof AtomicCommerceInterface\n>;\n\ntype ExecuteRequest = AtomicCommerceInterfaceProps['executeFirstRequest'];\n\ninterface WrapperProps 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, HTMLElement {}\n\n// oxlint-disable-next-line @typescript-eslint/no-unused-vars -- <>\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 : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>\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// oxlint-disable-next-line @typescript-eslint/consistent-type-imports -- <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 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, HTMLElement {}\n\n// oxlint-disable-next-line @typescript-eslint/no-unused-vars -- <>\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 : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>\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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AC,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;;;;"}
@@ -504,7 +504,7 @@ const RecsListWrapper = (props) => {
504
504
  contentRoot.render(templateResult);
505
505
  otherProps.display === 'grid'
506
506
  ? linkRoot.render(React.createElement(AtomicResultLink, null))
507
- : // biome-ignore lint/complexity/noUselessFragments: <>
507
+ : // oxlint-disable-next-line react/jsx-no-useless-fragment -- <>
508
508
  linkRoot.render(React.createElement(React.Fragment, null));
509
509
  });
510
510
  return root.innerHTML;