@seekora-ai/ui-sdk-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Breadcrumb.d.ts +43 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb.js +119 -0
- package/dist/components/ClearRefinements.d.ts +42 -0
- package/dist/components/ClearRefinements.d.ts.map +1 -0
- package/dist/components/ClearRefinements.js +80 -0
- package/dist/components/CurrentRefinements.d.ts +41 -0
- package/dist/components/CurrentRefinements.d.ts.map +1 -0
- package/dist/components/CurrentRefinements.js +83 -0
- package/dist/components/Facets.d.ts +53 -0
- package/dist/components/Facets.d.ts.map +1 -0
- package/dist/components/Facets.js +195 -0
- package/dist/components/FederatedDropdown.d.ts +92 -0
- package/dist/components/FederatedDropdown.d.ts.map +1 -0
- package/dist/components/FederatedDropdown.js +510 -0
- package/dist/components/HierarchicalMenu.d.ts +55 -0
- package/dist/components/HierarchicalMenu.d.ts.map +1 -0
- package/dist/components/HierarchicalMenu.js +168 -0
- package/dist/components/Highlight.d.ts +51 -0
- package/dist/components/Highlight.d.ts.map +1 -0
- package/dist/components/Highlight.js +155 -0
- package/dist/components/HitsPerPage.d.ts +41 -0
- package/dist/components/HitsPerPage.d.ts.map +1 -0
- package/dist/components/HitsPerPage.js +72 -0
- package/dist/components/InfiniteHits.d.ts +56 -0
- package/dist/components/InfiniteHits.d.ts.map +1 -0
- package/dist/components/InfiniteHits.js +181 -0
- package/dist/components/MobileFilters.d.ts +71 -0
- package/dist/components/MobileFilters.d.ts.map +1 -0
- package/dist/components/MobileFilters.js +242 -0
- package/dist/components/Pagination.d.ts +44 -0
- package/dist/components/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination.js +142 -0
- package/dist/components/QuerySuggestions.d.ts +38 -0
- package/dist/components/QuerySuggestions.d.ts.map +1 -0
- package/dist/components/QuerySuggestions.js +86 -0
- package/dist/components/QuerySuggestionsDropdown.d.ts +86 -0
- package/dist/components/QuerySuggestionsDropdown.d.ts.map +1 -0
- package/dist/components/QuerySuggestionsDropdown.js +395 -0
- package/dist/components/RangeInput.d.ts +58 -0
- package/dist/components/RangeInput.d.ts.map +1 -0
- package/dist/components/RangeInput.js +203 -0
- package/dist/components/RangeSlider.d.ts +51 -0
- package/dist/components/RangeSlider.d.ts.map +1 -0
- package/dist/components/RangeSlider.js +193 -0
- package/dist/components/Recommendations.d.ts +90 -0
- package/dist/components/Recommendations.d.ts.map +1 -0
- package/dist/components/Recommendations.js +270 -0
- package/dist/components/RichQuerySuggestions.d.ts +77 -0
- package/dist/components/RichQuerySuggestions.d.ts.map +1 -0
- package/dist/components/RichQuerySuggestions.js +492 -0
- package/dist/components/SearchBar.d.ts +40 -0
- package/dist/components/SearchBar.d.ts.map +1 -0
- package/dist/components/SearchBar.js +217 -0
- package/dist/components/SearchBarWithSuggestions.d.ts +99 -0
- package/dist/components/SearchBarWithSuggestions.d.ts.map +1 -0
- package/dist/components/SearchBarWithSuggestions.js +275 -0
- package/dist/components/SearchLayout.d.ts +35 -0
- package/dist/components/SearchLayout.d.ts.map +1 -0
- package/dist/components/SearchLayout.js +56 -0
- package/dist/components/SearchProvider.d.ts +28 -0
- package/dist/components/SearchProvider.d.ts.map +1 -0
- package/dist/components/SearchProvider.js +43 -0
- package/dist/components/SearchResults.d.ts +51 -0
- package/dist/components/SearchResults.d.ts.map +1 -0
- package/dist/components/SearchResults.js +485 -0
- package/dist/components/SortBy.d.ts +44 -0
- package/dist/components/SortBy.d.ts.map +1 -0
- package/dist/components/SortBy.js +61 -0
- package/dist/components/Stats.d.ts +37 -0
- package/dist/components/Stats.d.ts.map +1 -0
- package/dist/components/Stats.js +52 -0
- package/dist/components/suggestions/AmazonDropdown.d.ts +30 -0
- package/dist/components/suggestions/AmazonDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/AmazonDropdown.js +529 -0
- package/dist/components/suggestions/GoogleDropdown.d.ts +31 -0
- package/dist/components/suggestions/GoogleDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/GoogleDropdown.js +370 -0
- package/dist/components/suggestions/MinimalDropdown.d.ts +24 -0
- package/dist/components/suggestions/MinimalDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/MinimalDropdown.js +314 -0
- package/dist/components/suggestions/MobileSheetDropdown.d.ts +31 -0
- package/dist/components/suggestions/MobileSheetDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/MobileSheetDropdown.js +485 -0
- package/dist/components/suggestions/PinterestDropdown.d.ts +29 -0
- package/dist/components/suggestions/PinterestDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/PinterestDropdown.js +450 -0
- package/dist/components/suggestions/ShopifyDropdown.d.ts +27 -0
- package/dist/components/suggestions/ShopifyDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/ShopifyDropdown.js +451 -0
- package/dist/components/suggestions/SpotlightDropdown.d.ts +33 -0
- package/dist/components/suggestions/SpotlightDropdown.d.ts.map +1 -0
- package/dist/components/suggestions/SpotlightDropdown.js +547 -0
- package/dist/components/suggestions/SuggestionSearchBar.d.ts +123 -0
- package/dist/components/suggestions/SuggestionSearchBar.d.ts.map +1 -0
- package/dist/components/suggestions/SuggestionSearchBar.js +652 -0
- package/dist/components/suggestions/index.d.ts +37 -0
- package/dist/components/suggestions/index.d.ts.map +1 -0
- package/dist/components/suggestions/index.js +59 -0
- package/dist/components/suggestions/styles/index.d.ts +11 -0
- package/dist/components/suggestions/styles/index.d.ts.map +1 -0
- package/dist/components/suggestions/styles/index.js +289 -0
- package/dist/components/suggestions/styles/responsive.d.ts +107 -0
- package/dist/components/suggestions/styles/responsive.d.ts.map +1 -0
- package/dist/components/suggestions/styles/responsive.js +237 -0
- package/dist/components/suggestions/types.d.ts +489 -0
- package/dist/components/suggestions/types.d.ts.map +1 -0
- package/dist/components/suggestions/types.js +6 -0
- package/dist/components/suggestions/utils.d.ts +213 -0
- package/dist/components/suggestions/utils.d.ts.map +1 -0
- package/dist/components/suggestions/utils.js +514 -0
- package/dist/hooks/useAnalytics.d.ts +20 -0
- package/dist/hooks/useAnalytics.d.ts.map +1 -0
- package/dist/hooks/useAnalytics.js +62 -0
- package/dist/hooks/useNaturalLanguageFilters.d.ts +48 -0
- package/dist/hooks/useNaturalLanguageFilters.d.ts.map +1 -0
- package/dist/hooks/useNaturalLanguageFilters.js +221 -0
- package/dist/hooks/useQuerySuggestions.d.ts +21 -0
- package/dist/hooks/useQuerySuggestions.d.ts.map +1 -0
- package/dist/hooks/useQuerySuggestions.js +68 -0
- package/dist/hooks/useQuerySuggestionsEnhanced.d.ts +114 -0
- package/dist/hooks/useQuerySuggestionsEnhanced.d.ts.map +1 -0
- package/dist/hooks/useQuerySuggestionsEnhanced.js +376 -0
- package/dist/hooks/useSearchState.d.ts +35 -0
- package/dist/hooks/useSearchState.d.ts.map +1 -0
- package/dist/hooks/useSearchState.js +68 -0
- package/dist/hooks/useSeekoraSearch.d.ts +20 -0
- package/dist/hooks/useSeekoraSearch.d.ts.map +1 -0
- package/dist/hooks/useSeekoraSearch.js +63 -0
- package/dist/hooks/useSmartSuggestions.d.ts +55 -0
- package/dist/hooks/useSmartSuggestions.d.ts.map +1 -0
- package/dist/hooks/useSmartSuggestions.js +236 -0
- package/dist/hooks/useSuggestionsAnalytics.d.ts +91 -0
- package/dist/hooks/useSuggestionsAnalytics.d.ts.map +1 -0
- package/dist/hooks/useSuggestionsAnalytics.js +226 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.umd.js +1 -0
- package/dist/src/index.d.ts +2849 -0
- package/dist/src/index.esm.js +11679 -0
- package/dist/src/index.esm.js.map +1 -0
- package/dist/src/index.js +11761 -0
- package/dist/src/index.js.map +1 -0
- package/dist/themes/createTheme.d.ts +8 -0
- package/dist/themes/createTheme.d.ts.map +1 -0
- package/dist/themes/createTheme.js +10 -0
- package/dist/themes/dark.d.ts +6 -0
- package/dist/themes/dark.d.ts.map +1 -0
- package/dist/themes/dark.js +34 -0
- package/dist/themes/default.d.ts +6 -0
- package/dist/themes/default.d.ts.map +1 -0
- package/dist/themes/default.js +71 -0
- package/dist/themes/mergeThemes.d.ts +7 -0
- package/dist/themes/mergeThemes.d.ts.map +1 -0
- package/dist/themes/mergeThemes.js +6 -0
- package/dist/themes/minimal.d.ts +6 -0
- package/dist/themes/minimal.d.ts.map +1 -0
- package/dist/themes/minimal.js +34 -0
- package/dist/themes/suggestions.d.ts +216 -0
- package/dist/themes/suggestions.d.ts.map +1 -0
- package/dist/themes/suggestions.js +546 -0
- package/dist/themes/types.d.ts +7 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/themes/types.js +6 -0
- package/dist/types/index.d.ts +33 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/package.json +65 -0
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AmazonDropdown - Amazon-style Search Suggestions
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Department/category scoping in search
|
|
6
|
+
* - Suggestions with category context
|
|
7
|
+
* - Product grid with images
|
|
8
|
+
* - "in Department" suffix for scoped searches
|
|
9
|
+
* - Clean, functional design
|
|
10
|
+
*/
|
|
11
|
+
import React, { useState, useRef, useEffect, useCallback, forwardRef, useImperativeHandle, useMemo, } from 'react';
|
|
12
|
+
import { extractSuggestion, extractProduct, extractCategory, formatPrice, highlightText, cx, mergeStyles, generateCSSVariables, scrollIntoViewIfNeeded, } from './utils';
|
|
13
|
+
import { useResponsive, touchTargets } from './styles/responsive';
|
|
14
|
+
import { useInjectResponsiveStyles } from './styles';
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// Styles
|
|
17
|
+
// ============================================================================
|
|
18
|
+
const createStyles = (theme = {}, isMobile = false) => ({
|
|
19
|
+
root: {
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
top: '100%',
|
|
22
|
+
left: 0,
|
|
23
|
+
right: 0,
|
|
24
|
+
marginTop: '8px',
|
|
25
|
+
backgroundColor: 'var(--seekora-bg-surface, #ffffff)',
|
|
26
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
27
|
+
borderRadius: isMobile ? '12px' : '16px',
|
|
28
|
+
boxShadow: '0 4px 6px -1px rgba(0,0,0,0.1), 0 10px 40px -5px rgba(0,0,0,0.15)',
|
|
29
|
+
overflow: 'hidden',
|
|
30
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
31
|
+
fontSize: '14px',
|
|
32
|
+
zIndex: 1000,
|
|
33
|
+
// Mobile: full width overlay
|
|
34
|
+
...(isMobile && {
|
|
35
|
+
position: 'fixed',
|
|
36
|
+
top: '60px',
|
|
37
|
+
bottom: 0,
|
|
38
|
+
left: '8px',
|
|
39
|
+
right: '8px',
|
|
40
|
+
margin: 0,
|
|
41
|
+
borderRadius: '16px 16px 0 0',
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
content: {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
flexDirection: isMobile ? 'column' : 'row',
|
|
47
|
+
maxHeight: isMobile ? 'calc(100vh - 140px)' : '480px',
|
|
48
|
+
overflowY: 'auto',
|
|
49
|
+
},
|
|
50
|
+
leftColumn: {
|
|
51
|
+
flex: isMobile ? 'none' : '0 0 55%',
|
|
52
|
+
borderRight: isMobile ? 'none' : '1px solid var(--seekora-border-color, #e8e8e8)',
|
|
53
|
+
borderBottom: isMobile ? '1px solid var(--seekora-border-color, #e8e8e8)' : 'none',
|
|
54
|
+
overflowY: 'auto',
|
|
55
|
+
padding: '8px 0',
|
|
56
|
+
},
|
|
57
|
+
rightColumn: {
|
|
58
|
+
flex: isMobile ? 'none' : '0 0 45%',
|
|
59
|
+
backgroundColor: 'var(--seekora-bg-secondary, #fafafa)',
|
|
60
|
+
overflowY: 'auto',
|
|
61
|
+
padding: '8px 0',
|
|
62
|
+
},
|
|
63
|
+
section: {
|
|
64
|
+
padding: '4px 0',
|
|
65
|
+
},
|
|
66
|
+
sectionHeader: {
|
|
67
|
+
padding: '8px 16px 6px',
|
|
68
|
+
fontSize: '11px',
|
|
69
|
+
fontWeight: 600,
|
|
70
|
+
color: 'var(--seekora-text-secondary, #6b6b6b)',
|
|
71
|
+
textTransform: 'uppercase',
|
|
72
|
+
letterSpacing: '0.05em',
|
|
73
|
+
},
|
|
74
|
+
suggestionItem: {
|
|
75
|
+
display: 'flex',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
padding: isMobile ? '12px 16px' : '10px 16px',
|
|
78
|
+
cursor: 'pointer',
|
|
79
|
+
transition: 'all 150ms ease',
|
|
80
|
+
gap: isMobile ? '12px' : '10px',
|
|
81
|
+
minHeight: isMobile ? `${touchTargets.minimum}px` : '40px',
|
|
82
|
+
borderRadius: '8px',
|
|
83
|
+
margin: '2px 8px',
|
|
84
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
85
|
+
},
|
|
86
|
+
suggestionItemActive: {
|
|
87
|
+
backgroundColor: 'var(--seekora-bg-hover, #f5f5f5)',
|
|
88
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
89
|
+
},
|
|
90
|
+
suggestionIcon: {
|
|
91
|
+
display: 'flex',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
justifyContent: 'center',
|
|
94
|
+
color: 'var(--seekora-text-tertiary, #6b6b6b)',
|
|
95
|
+
flexShrink: 0,
|
|
96
|
+
},
|
|
97
|
+
suggestionContent: {
|
|
98
|
+
flex: 1,
|
|
99
|
+
minWidth: 0,
|
|
100
|
+
},
|
|
101
|
+
suggestionQuery: {
|
|
102
|
+
fontSize: '14px',
|
|
103
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
104
|
+
fontWeight: 400,
|
|
105
|
+
whiteSpace: 'nowrap',
|
|
106
|
+
overflow: 'hidden',
|
|
107
|
+
textOverflow: 'ellipsis',
|
|
108
|
+
},
|
|
109
|
+
suggestionContext: {
|
|
110
|
+
fontSize: '12px',
|
|
111
|
+
color: 'var(--seekora-text-secondary, #565959)',
|
|
112
|
+
marginTop: '2px',
|
|
113
|
+
},
|
|
114
|
+
suggestionDepartment: {
|
|
115
|
+
color: 'var(--seekora-primary-dark, #c45500)',
|
|
116
|
+
fontStyle: 'italic',
|
|
117
|
+
},
|
|
118
|
+
categoryScoped: {
|
|
119
|
+
backgroundColor: 'var(--seekora-primary-light, #fef8f0)',
|
|
120
|
+
borderRadius: '3px',
|
|
121
|
+
padding: '0 4px',
|
|
122
|
+
marginLeft: '4px',
|
|
123
|
+
fontSize: '11px',
|
|
124
|
+
color: 'var(--seekora-primary-dark, #c45500)',
|
|
125
|
+
},
|
|
126
|
+
productsHeader: {
|
|
127
|
+
padding: '12px 16px 8px',
|
|
128
|
+
display: 'flex',
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
justifyContent: 'space-between',
|
|
131
|
+
},
|
|
132
|
+
productsTitle: {
|
|
133
|
+
fontSize: '13px',
|
|
134
|
+
fontWeight: 700,
|
|
135
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
136
|
+
},
|
|
137
|
+
viewAll: {
|
|
138
|
+
fontSize: '12px',
|
|
139
|
+
color: 'var(--seekora-link, #007185)',
|
|
140
|
+
textDecoration: 'none',
|
|
141
|
+
cursor: 'pointer',
|
|
142
|
+
'&:hover': {
|
|
143
|
+
color: 'var(--seekora-link-hover, #c45500)',
|
|
144
|
+
textDecoration: 'underline',
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
productsGrid: {
|
|
148
|
+
display: 'grid',
|
|
149
|
+
gridTemplateColumns: isMobile ? 'repeat(2, 1fr)' : 'repeat(2, 1fr)',
|
|
150
|
+
gap: '12px',
|
|
151
|
+
padding: '12px 16px 16px',
|
|
152
|
+
},
|
|
153
|
+
productCard: {
|
|
154
|
+
backgroundColor: 'var(--seekora-bg-surface, #ffffff)',
|
|
155
|
+
borderRadius: '12px',
|
|
156
|
+
padding: '10px',
|
|
157
|
+
cursor: 'pointer',
|
|
158
|
+
transition: 'all 200ms ease',
|
|
159
|
+
boxShadow: '0 1px 3px rgba(0,0,0,0.06)',
|
|
160
|
+
},
|
|
161
|
+
productCardHover: {
|
|
162
|
+
boxShadow: '0 4px 12px rgba(0,0,0,0.12)',
|
|
163
|
+
transform: 'translateY(-2px)',
|
|
164
|
+
},
|
|
165
|
+
productImage: {
|
|
166
|
+
width: '100%',
|
|
167
|
+
aspectRatio: '1',
|
|
168
|
+
objectFit: 'contain',
|
|
169
|
+
backgroundColor: 'var(--seekora-bg-tertiary, #f8f8f8)',
|
|
170
|
+
borderRadius: '8px',
|
|
171
|
+
marginBottom: '10px',
|
|
172
|
+
},
|
|
173
|
+
productTitle: {
|
|
174
|
+
fontSize: '12px',
|
|
175
|
+
color: 'var(--seekora-link, #007185)',
|
|
176
|
+
lineHeight: 1.3,
|
|
177
|
+
display: '-webkit-box',
|
|
178
|
+
WebkitLineClamp: 2,
|
|
179
|
+
WebkitBoxOrient: 'vertical',
|
|
180
|
+
overflow: 'hidden',
|
|
181
|
+
marginBottom: '4px',
|
|
182
|
+
},
|
|
183
|
+
productPrice: {
|
|
184
|
+
fontSize: '14px',
|
|
185
|
+
fontWeight: 500,
|
|
186
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
187
|
+
},
|
|
188
|
+
productPriceSymbol: {
|
|
189
|
+
fontSize: '11px',
|
|
190
|
+
verticalAlign: 'top',
|
|
191
|
+
},
|
|
192
|
+
productRating: {
|
|
193
|
+
display: 'flex',
|
|
194
|
+
alignItems: 'center',
|
|
195
|
+
gap: '4px',
|
|
196
|
+
marginTop: '4px',
|
|
197
|
+
},
|
|
198
|
+
stars: {
|
|
199
|
+
color: 'var(--seekora-rating, #de7921)',
|
|
200
|
+
fontSize: '12px',
|
|
201
|
+
},
|
|
202
|
+
reviewCount: {
|
|
203
|
+
fontSize: '11px',
|
|
204
|
+
color: 'var(--seekora-link, #007185)',
|
|
205
|
+
},
|
|
206
|
+
prime: {
|
|
207
|
+
height: '16px',
|
|
208
|
+
marginTop: '4px',
|
|
209
|
+
},
|
|
210
|
+
recentHeader: {
|
|
211
|
+
display: 'flex',
|
|
212
|
+
alignItems: 'center',
|
|
213
|
+
justifyContent: 'space-between',
|
|
214
|
+
padding: '8px 16px',
|
|
215
|
+
},
|
|
216
|
+
clearRecent: {
|
|
217
|
+
fontSize: '12px',
|
|
218
|
+
color: 'var(--seekora-link, #007185)',
|
|
219
|
+
cursor: 'pointer',
|
|
220
|
+
background: 'none',
|
|
221
|
+
border: 'none',
|
|
222
|
+
padding: 0,
|
|
223
|
+
},
|
|
224
|
+
highlight: {
|
|
225
|
+
fontWeight: 700,
|
|
226
|
+
color: 'var(--seekora-text-primary, #0f1111)',
|
|
227
|
+
},
|
|
228
|
+
loading: {
|
|
229
|
+
display: 'flex',
|
|
230
|
+
alignItems: 'center',
|
|
231
|
+
justifyContent: 'center',
|
|
232
|
+
padding: '40px',
|
|
233
|
+
color: 'var(--seekora-text-secondary, #565959)',
|
|
234
|
+
gap: '10px',
|
|
235
|
+
},
|
|
236
|
+
spinner: {
|
|
237
|
+
width: '20px',
|
|
238
|
+
height: '20px',
|
|
239
|
+
border: '2px solid var(--seekora-border-color, #ddd)',
|
|
240
|
+
borderTopColor: 'var(--seekora-primary, #f90)',
|
|
241
|
+
borderRadius: '50%',
|
|
242
|
+
animation: 'seekora-spin 0.8s linear infinite',
|
|
243
|
+
},
|
|
244
|
+
empty: {
|
|
245
|
+
padding: '40px 20px',
|
|
246
|
+
textAlign: 'center',
|
|
247
|
+
color: 'var(--seekora-text-secondary, #565959)',
|
|
248
|
+
},
|
|
249
|
+
footer: {
|
|
250
|
+
padding: '10px 16px',
|
|
251
|
+
borderTop: '1px solid var(--seekora-border-color, #e7e7e7)',
|
|
252
|
+
backgroundColor: 'var(--seekora-bg-secondary, #f7f7f7)',
|
|
253
|
+
display: 'flex',
|
|
254
|
+
alignItems: 'center',
|
|
255
|
+
justifyContent: 'space-between',
|
|
256
|
+
fontSize: '12px',
|
|
257
|
+
color: 'var(--seekora-text-tertiary, #767676)',
|
|
258
|
+
},
|
|
259
|
+
keyboard: {
|
|
260
|
+
display: 'flex',
|
|
261
|
+
alignItems: 'center',
|
|
262
|
+
gap: '8px',
|
|
263
|
+
},
|
|
264
|
+
key: {
|
|
265
|
+
display: 'inline-flex',
|
|
266
|
+
alignItems: 'center',
|
|
267
|
+
justifyContent: 'center',
|
|
268
|
+
minWidth: '20px',
|
|
269
|
+
height: '18px',
|
|
270
|
+
padding: '0 4px',
|
|
271
|
+
backgroundColor: 'var(--seekora-bg-surface, #fff)',
|
|
272
|
+
border: '1px solid var(--seekora-border-color, #ccc)',
|
|
273
|
+
borderRadius: '3px',
|
|
274
|
+
fontSize: '10px',
|
|
275
|
+
fontFamily: 'monospace',
|
|
276
|
+
},
|
|
277
|
+
});
|
|
278
|
+
// ============================================================================
|
|
279
|
+
// Icons
|
|
280
|
+
// ============================================================================
|
|
281
|
+
const SearchIcon = () => (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
|
|
282
|
+
React.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
283
|
+
React.createElement("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })));
|
|
284
|
+
const ClockIcon = () => (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
|
|
285
|
+
React.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
286
|
+
React.createElement("polyline", { points: "12 6 12 12 16 14" })));
|
|
287
|
+
const TrendingIcon = () => (React.createElement("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
|
|
288
|
+
React.createElement("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
289
|
+
React.createElement("polyline", { points: "17 6 23 6 23 12" })));
|
|
290
|
+
const StarIcon = ({ filled = false }) => (React.createElement("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: filled ? 'currentColor' : 'none', stroke: "currentColor", strokeWidth: "2" },
|
|
291
|
+
React.createElement("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })));
|
|
292
|
+
// ============================================================================
|
|
293
|
+
// Sub-components
|
|
294
|
+
// ============================================================================
|
|
295
|
+
const RatingStars = ({ rating, count }) => {
|
|
296
|
+
const fullStars = Math.floor(rating);
|
|
297
|
+
const hasHalf = rating % 1 >= 0.5;
|
|
298
|
+
return (React.createElement("div", { style: createStyles().productRating },
|
|
299
|
+
React.createElement("div", { style: createStyles().stars },
|
|
300
|
+
'★'.repeat(fullStars),
|
|
301
|
+
hasHalf && '½',
|
|
302
|
+
'☆'.repeat(5 - fullStars - (hasHalf ? 1 : 0))),
|
|
303
|
+
count !== undefined && (React.createElement("span", { style: createStyles().reviewCount },
|
|
304
|
+
"(",
|
|
305
|
+
count.toLocaleString(),
|
|
306
|
+
")"))));
|
|
307
|
+
};
|
|
308
|
+
export const AmazonDropdown = forwardRef(function AmazonDropdown(props, ref) {
|
|
309
|
+
const { query, isOpen = true, loading = false, suggestions = [], products = [], categories = [], recentSearches = [], trendingSearches = [], filteredTabs = [], activeTab = 'all', suggestionFields = { query: 'query' }, productFields = { id: 'id', title: 'title' }, categoryFields = { id: 'id', label: 'label' }, productDisplay = {}, theme = {}, showDepartments = true, currentDepartment, departments = [], showPrime = false, width = '700px', maxHeight = '500px', zIndex = 1000, className, style, classNames = {}, onSuggestionSelect, onProductClick, onCategoryClick, onTabChange, onRecentClick, onRecentRemove, onRecentClearAll, onViewAll, onClose, header, footer, renderLoading, renderEmpty, } = props;
|
|
310
|
+
// Inject global responsive styles
|
|
311
|
+
useInjectResponsiveStyles();
|
|
312
|
+
// Responsive state
|
|
313
|
+
const responsive = useResponsive();
|
|
314
|
+
const { isMobile, isTablet } = responsive;
|
|
315
|
+
const styles = useMemo(() => createStyles(theme, isMobile), [theme, isMobile]);
|
|
316
|
+
const containerRef = useRef(null);
|
|
317
|
+
const [activeIndex, setActiveIndex] = useState(-1);
|
|
318
|
+
const [hoveredProduct, setHoveredProduct] = useState(null);
|
|
319
|
+
// Process data through field mappings
|
|
320
|
+
const processedSuggestions = useMemo(() => suggestions.map(s => extractSuggestion(s, suggestionFields)), [suggestions, suggestionFields]);
|
|
321
|
+
// Get products from active tab or default products
|
|
322
|
+
const currentProducts = useMemo(() => {
|
|
323
|
+
if (activeTab === 'all' || filteredTabs.length === 0) {
|
|
324
|
+
return products;
|
|
325
|
+
}
|
|
326
|
+
const tab = filteredTabs.find(t => t.id === activeTab);
|
|
327
|
+
return tab?.products || products;
|
|
328
|
+
}, [activeTab, filteredTabs, products]);
|
|
329
|
+
const processedProducts = useMemo(() => currentProducts.map(p => extractProduct(p, productFields)), [currentProducts, productFields]);
|
|
330
|
+
const processedCategories = useMemo(() => categories.map(c => extractCategory(c, categoryFields)), [categories, categoryFields]);
|
|
331
|
+
// Recent searches as strings
|
|
332
|
+
const recentQueries = useMemo(() => recentSearches.map(r => typeof r === 'string' ? r : r.query), [recentSearches]);
|
|
333
|
+
// All navigable items
|
|
334
|
+
const allItems = useMemo(() => {
|
|
335
|
+
const items = [];
|
|
336
|
+
let idx = 0;
|
|
337
|
+
if (query.length === 0) {
|
|
338
|
+
recentQueries.slice(0, 5).forEach(q => {
|
|
339
|
+
items.push({ type: 'recent', data: q, index: idx++ });
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
processedSuggestions.forEach(s => {
|
|
343
|
+
items.push({ type: 'suggestion', data: s, index: idx++ });
|
|
344
|
+
});
|
|
345
|
+
return items;
|
|
346
|
+
}, [query, recentQueries, processedSuggestions]);
|
|
347
|
+
// Navigation
|
|
348
|
+
const navigateNext = useCallback(() => {
|
|
349
|
+
setActiveIndex(prev => Math.min(prev + 1, allItems.length - 1));
|
|
350
|
+
}, [allItems.length]);
|
|
351
|
+
const navigatePrevious = useCallback(() => {
|
|
352
|
+
setActiveIndex(prev => Math.max(prev - 1, -1));
|
|
353
|
+
}, []);
|
|
354
|
+
const selectActive = useCallback(() => {
|
|
355
|
+
if (activeIndex < 0 || activeIndex >= allItems.length)
|
|
356
|
+
return;
|
|
357
|
+
const item = allItems[activeIndex];
|
|
358
|
+
if (item.type === 'recent') {
|
|
359
|
+
onRecentClick?.(item.data);
|
|
360
|
+
}
|
|
361
|
+
else if (item.type === 'suggestion') {
|
|
362
|
+
onSuggestionSelect?.(item.data._raw, item.index);
|
|
363
|
+
}
|
|
364
|
+
}, [activeIndex, allItems, onRecentClick, onSuggestionSelect]);
|
|
365
|
+
// Expose ref
|
|
366
|
+
useImperativeHandle(ref, () => ({
|
|
367
|
+
getActiveIndex: () => activeIndex,
|
|
368
|
+
setActiveIndex,
|
|
369
|
+
selectActive,
|
|
370
|
+
navigateNext,
|
|
371
|
+
navigatePrevious,
|
|
372
|
+
focus: () => containerRef.current?.focus(),
|
|
373
|
+
close: () => onClose?.(),
|
|
374
|
+
}), [activeIndex, selectActive, navigateNext, navigatePrevious, onClose]);
|
|
375
|
+
// Scroll active item into view
|
|
376
|
+
useEffect(() => {
|
|
377
|
+
if (activeIndex >= 0 && containerRef.current) {
|
|
378
|
+
const activeEl = containerRef.current.querySelector(`[data-index="${activeIndex}"]`);
|
|
379
|
+
if (activeEl) {
|
|
380
|
+
scrollIntoViewIfNeeded(activeEl, containerRef.current);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}, [activeIndex]);
|
|
384
|
+
if (!isOpen)
|
|
385
|
+
return null;
|
|
386
|
+
const cssVariables = generateCSSVariables(theme);
|
|
387
|
+
const showRecent = query.length === 0 && recentQueries.length > 0;
|
|
388
|
+
const showTrending = query.length === 0 && trendingSearches.length > 0;
|
|
389
|
+
const showProducts = processedProducts.length > 0;
|
|
390
|
+
return (React.createElement("div", { ref: containerRef, role: "listbox", "aria-label": "Search suggestions", className: cx('seekora-amazon-dropdown', className, classNames.root), style: mergeStyles(styles.root, {
|
|
391
|
+
width: isMobile ? '100%' : width,
|
|
392
|
+
maxHeight: isMobile ? '100vh' : maxHeight,
|
|
393
|
+
zIndex
|
|
394
|
+
}, cssVariables, style), tabIndex: -1 },
|
|
395
|
+
React.createElement("style", null, `
|
|
396
|
+
@keyframes seekora-spin {
|
|
397
|
+
to { transform: rotate(360deg); }
|
|
398
|
+
}
|
|
399
|
+
.seekora-amazon-dropdown mark {
|
|
400
|
+
background: transparent;
|
|
401
|
+
font-weight: 700;
|
|
402
|
+
color: inherit;
|
|
403
|
+
}
|
|
404
|
+
`),
|
|
405
|
+
header,
|
|
406
|
+
loading ? (renderLoading ? renderLoading() : (React.createElement("div", { style: styles.loading },
|
|
407
|
+
React.createElement("div", { style: styles.spinner }),
|
|
408
|
+
React.createElement("span", null, "Searching...")))) : (React.createElement(React.Fragment, null,
|
|
409
|
+
filteredTabs.length > 0 && (React.createElement("div", { style: {
|
|
410
|
+
display: 'flex',
|
|
411
|
+
gap: '8px',
|
|
412
|
+
padding: isMobile ? '12px' : '12px 16px',
|
|
413
|
+
overflowX: 'auto',
|
|
414
|
+
borderBottomWidth: '1px',
|
|
415
|
+
borderBottomStyle: 'solid',
|
|
416
|
+
borderBottomColor: 'var(--seekora-border-color, #e7e7e7)',
|
|
417
|
+
background: 'var(--seekora-bg-secondary, #f5f5f5)',
|
|
418
|
+
WebkitOverflowScrolling: 'touch',
|
|
419
|
+
} },
|
|
420
|
+
React.createElement("button", { onClick: () => onTabChange?.('all'), style: {
|
|
421
|
+
padding: '8px 16px',
|
|
422
|
+
borderWidth: 0,
|
|
423
|
+
borderStyle: 'none',
|
|
424
|
+
background: activeTab === 'all' ? 'var(--seekora-text-primary, #232f3e)' : 'var(--seekora-bg-surface, #ffffff)',
|
|
425
|
+
color: activeTab === 'all' ? 'var(--seekora-bg-surface, #ffffff)' : 'var(--seekora-text-primary, #0f1111)',
|
|
426
|
+
borderRadius: '20px',
|
|
427
|
+
fontSize: '13px',
|
|
428
|
+
fontWeight: 600,
|
|
429
|
+
cursor: 'pointer',
|
|
430
|
+
whiteSpace: 'nowrap',
|
|
431
|
+
minHeight: '36px',
|
|
432
|
+
boxShadow: activeTab === 'all' ? 'none' : '0 1px 3px rgba(0,0,0,0.1)',
|
|
433
|
+
transition: 'all 150ms ease',
|
|
434
|
+
} }, "All"),
|
|
435
|
+
filteredTabs.slice(0, 6).map(tab => (React.createElement("button", { key: tab.id, onClick: () => onTabChange?.(tab.id), style: {
|
|
436
|
+
padding: '8px 16px',
|
|
437
|
+
borderWidth: 0,
|
|
438
|
+
borderStyle: 'none',
|
|
439
|
+
background: activeTab === tab.id ? 'var(--seekora-primary, #ff9900)' : 'var(--seekora-bg-surface, #ffffff)',
|
|
440
|
+
color: activeTab === tab.id ? 'var(--seekora-text-on-primary, #0f1111)' : 'var(--seekora-text-primary, #0f1111)',
|
|
441
|
+
borderRadius: '20px',
|
|
442
|
+
fontSize: '13px',
|
|
443
|
+
fontWeight: activeTab === tab.id ? 700 : 500,
|
|
444
|
+
cursor: 'pointer',
|
|
445
|
+
whiteSpace: 'nowrap',
|
|
446
|
+
minHeight: '36px',
|
|
447
|
+
boxShadow: activeTab === tab.id ? '0 2px 4px rgba(255,153,0,0.3)' : '0 1px 3px rgba(0,0,0,0.1)',
|
|
448
|
+
transition: 'all 150ms ease',
|
|
449
|
+
} },
|
|
450
|
+
tab.label,
|
|
451
|
+
" ",
|
|
452
|
+
tab.nb_hits ? `(${tab.nb_hits})` : ''))))),
|
|
453
|
+
React.createElement("div", { style: styles.content },
|
|
454
|
+
React.createElement("div", { style: styles.leftColumn },
|
|
455
|
+
showRecent && (React.createElement("div", { style: styles.section },
|
|
456
|
+
React.createElement("div", { style: styles.recentHeader },
|
|
457
|
+
React.createElement("span", { style: styles.sectionHeader }, "Recent Searches"),
|
|
458
|
+
React.createElement("button", { style: styles.clearRecent, onClick: onRecentClearAll }, "Clear all")),
|
|
459
|
+
recentQueries.slice(0, 5).map((q, idx) => {
|
|
460
|
+
const isActive = activeIndex === idx;
|
|
461
|
+
return (React.createElement("div", { key: `recent-${q}`, "data-index": idx, role: "option", "aria-selected": isActive, style: mergeStyles(styles.suggestionItem, isActive ? styles.suggestionItemActive : undefined), onClick: () => onRecentClick?.(q), onMouseEnter: () => setActiveIndex(idx) },
|
|
462
|
+
React.createElement(ClockIcon, null),
|
|
463
|
+
React.createElement("div", { style: styles.suggestionContent },
|
|
464
|
+
React.createElement("div", { style: styles.suggestionQuery }, q))));
|
|
465
|
+
}))),
|
|
466
|
+
showTrending && (React.createElement("div", { style: styles.section },
|
|
467
|
+
React.createElement("div", { style: styles.sectionHeader }, "Trending Searches"),
|
|
468
|
+
trendingSearches.slice(0, 5).map((t, idx) => {
|
|
469
|
+
const trendQuery = typeof t === 'string' ? t : t.query;
|
|
470
|
+
const itemIdx = recentQueries.length + idx;
|
|
471
|
+
const isActive = activeIndex === itemIdx;
|
|
472
|
+
return (React.createElement("div", { key: `trending-${trendQuery}`, "data-index": itemIdx, role: "option", "aria-selected": isActive, style: mergeStyles(styles.suggestionItem, isActive ? styles.suggestionItemActive : undefined), onClick: () => onSuggestionSelect?.({ query: trendQuery }, idx), onMouseEnter: () => setActiveIndex(itemIdx) },
|
|
473
|
+
React.createElement(TrendingIcon, null),
|
|
474
|
+
React.createElement("div", { style: styles.suggestionContent },
|
|
475
|
+
React.createElement("div", { style: styles.suggestionQuery }, trendQuery))));
|
|
476
|
+
}))),
|
|
477
|
+
processedSuggestions.length > 0 && (React.createElement("div", { style: styles.section },
|
|
478
|
+
query && React.createElement("div", { style: styles.sectionHeader }, "Suggestions"),
|
|
479
|
+
processedSuggestions.map((suggestion, idx) => {
|
|
480
|
+
const itemIdx = showRecent ? recentQueries.length + idx : idx;
|
|
481
|
+
const isActive = activeIndex === itemIdx;
|
|
482
|
+
const categories = suggestion.categories || [];
|
|
483
|
+
const firstCategory = categories[0];
|
|
484
|
+
return (React.createElement("div", { key: suggestion.id || `suggestion-${idx}`, "data-index": itemIdx, role: "option", "aria-selected": isActive, style: mergeStyles(styles.suggestionItem, isActive ? styles.suggestionItemActive : undefined), onClick: () => onSuggestionSelect?.(suggestion._raw, idx), onMouseEnter: () => setActiveIndex(itemIdx) },
|
|
485
|
+
React.createElement("div", { style: styles.suggestionIcon },
|
|
486
|
+
React.createElement(SearchIcon, null)),
|
|
487
|
+
React.createElement("div", { style: styles.suggestionContent },
|
|
488
|
+
React.createElement("div", { style: styles.suggestionQuery, dangerouslySetInnerHTML: {
|
|
489
|
+
__html: highlightText(suggestion.query, query, { className: 'highlight' })
|
|
490
|
+
} }),
|
|
491
|
+
showDepartments && firstCategory && (React.createElement("div", { style: styles.suggestionContext },
|
|
492
|
+
React.createElement("span", { style: styles.suggestionDepartment },
|
|
493
|
+
"in ",
|
|
494
|
+
typeof firstCategory === 'string' ? firstCategory : firstCategory.value || firstCategory.label)))),
|
|
495
|
+
suggestion.count && (React.createElement("span", { style: styles.categoryScoped }, suggestion.count.toLocaleString()))));
|
|
496
|
+
}))),
|
|
497
|
+
query && processedSuggestions.length === 0 && !loading && (renderEmpty ? renderEmpty(query) : (React.createElement("div", { style: styles.empty },
|
|
498
|
+
"No suggestions found for \"",
|
|
499
|
+
query,
|
|
500
|
+
"\"")))),
|
|
501
|
+
showProducts && (React.createElement("div", { style: styles.rightColumn },
|
|
502
|
+
React.createElement("div", { style: styles.productsHeader },
|
|
503
|
+
React.createElement("span", { style: styles.productsTitle }, "Suggested Products"),
|
|
504
|
+
React.createElement("a", { style: styles.viewAll, onClick: () => onViewAll?.('products') }, "View all")),
|
|
505
|
+
React.createElement("div", { style: styles.productsGrid }, processedProducts.slice(0, 4).map((product, idx) => (React.createElement("div", { key: product.id, style: mergeStyles(styles.productCard, hoveredProduct === product.id ? styles.productCardHover : undefined), onClick: () => onProductClick?.(product._raw, idx), onMouseEnter: () => setHoveredProduct(product.id), onMouseLeave: () => setHoveredProduct(null) },
|
|
506
|
+
product.image ? (React.createElement("img", { src: product.image, alt: product.title, style: styles.productImage, loading: "lazy" })) : (React.createElement("div", { style: { ...styles.productImage, display: 'flex', alignItems: 'center', justifyContent: 'center' } },
|
|
507
|
+
React.createElement("span", { style: { color: 'var(--seekora-text-tertiary, #999)', fontSize: '32px' } }, "\uD83D\uDCF7"))),
|
|
508
|
+
React.createElement("div", { style: styles.productTitle }, product.title),
|
|
509
|
+
product.price !== undefined && (React.createElement("div", { style: styles.productPrice },
|
|
510
|
+
React.createElement("span", { style: styles.productPriceSymbol }, productDisplay.currency || '$'),
|
|
511
|
+
formatPrice(product.price, {
|
|
512
|
+
currency: '',
|
|
513
|
+
priceDecimals: productDisplay.priceDecimals
|
|
514
|
+
}))),
|
|
515
|
+
product.rating && (React.createElement(RatingStars, { rating: parseFloat(String(product.rating)), count: product.reviewCount ? parseInt(String(product.reviewCount)) : undefined }))))))))))),
|
|
516
|
+
footer !== undefined ? footer : (React.createElement("div", { style: styles.footer },
|
|
517
|
+
React.createElement("div", { style: styles.keyboard },
|
|
518
|
+
React.createElement("span", { style: styles.key }, "\u2191"),
|
|
519
|
+
React.createElement("span", { style: styles.key }, "\u2193"),
|
|
520
|
+
React.createElement("span", null, "to navigate"),
|
|
521
|
+
React.createElement("span", { style: styles.key }, "\u21B5"),
|
|
522
|
+
React.createElement("span", null, "to select"),
|
|
523
|
+
React.createElement("span", { style: styles.key }, "esc"),
|
|
524
|
+
React.createElement("span", null, "to close")),
|
|
525
|
+
processedSuggestions.length > 0 && (React.createElement("span", null,
|
|
526
|
+
processedSuggestions.length,
|
|
527
|
+
" suggestions"))))));
|
|
528
|
+
});
|
|
529
|
+
export default AmazonDropdown;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GoogleDropdown - Google-style Clean Search Suggestions
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Ultra-clean, minimal design
|
|
6
|
+
* - Instant suggestions with smooth animations
|
|
7
|
+
* - Trending searches when empty
|
|
8
|
+
* - "I'm Feeling Lucky" style quick actions
|
|
9
|
+
* - Voice search integration ready
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { BaseDropdownProps, DropdownRef } from './types';
|
|
13
|
+
export interface GoogleDropdownProps extends BaseDropdownProps {
|
|
14
|
+
/** Show "I'm Feeling Lucky" button */
|
|
15
|
+
showFeelingLucky?: boolean;
|
|
16
|
+
/** Feeling lucky button text */
|
|
17
|
+
feelingLuckyText?: string;
|
|
18
|
+
/** Show remove button on recent searches */
|
|
19
|
+
showRemoveRecent?: boolean;
|
|
20
|
+
/** Show voice search button */
|
|
21
|
+
showVoiceSearch?: boolean;
|
|
22
|
+
/** Voice search handler */
|
|
23
|
+
onVoiceSearch?: () => void;
|
|
24
|
+
/** Feeling lucky handler */
|
|
25
|
+
onFeelingLucky?: (query: string) => void;
|
|
26
|
+
/** Show trending indicator */
|
|
27
|
+
showTrendingIndicator?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const GoogleDropdown: React.ForwardRefExoticComponent<GoogleDropdownProps & React.RefAttributes<DropdownRef>>;
|
|
30
|
+
export default GoogleDropdown;
|
|
31
|
+
//# sourceMappingURL=GoogleDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/GoogleDropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAQN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgP9D,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gCAAgC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+BAA+B;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2BAA2B;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,4BAA4B;IAC5B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,8BAA8B;IAC9B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,cAAc,yFA2U1B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|