@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,510 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FederatedDropdown Component
|
|
3
|
+
*
|
|
4
|
+
* Full-featured federated search dropdown with:
|
|
5
|
+
* - Multi-column layout (suggestions + products)
|
|
6
|
+
* - Filtered tabs with product results
|
|
7
|
+
* - Popular brands
|
|
8
|
+
* - Trending products
|
|
9
|
+
* - Category navigation
|
|
10
|
+
* - Responsive design
|
|
11
|
+
* - Rich product cards
|
|
12
|
+
*/
|
|
13
|
+
import React, { useState, useRef, useCallback, useMemo, forwardRef, useImperativeHandle, } from 'react';
|
|
14
|
+
import { useSearchContext } from './SearchProvider';
|
|
15
|
+
import { useQuerySuggestionsEnhanced } from '../hooks/useQuerySuggestionsEnhanced';
|
|
16
|
+
import { clsx } from 'clsx';
|
|
17
|
+
// ============================================================================
|
|
18
|
+
// Styles
|
|
19
|
+
// ============================================================================
|
|
20
|
+
const styles = {
|
|
21
|
+
container: {
|
|
22
|
+
backgroundColor: 'var(--seekora-bg-surface, #ffffff)',
|
|
23
|
+
border: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
24
|
+
borderRadius: 'var(--seekora-border-radius-lg, 12px)',
|
|
25
|
+
boxShadow: '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
},
|
|
28
|
+
header: {
|
|
29
|
+
padding: '12px 20px',
|
|
30
|
+
borderBottom: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
31
|
+
backgroundColor: 'var(--seekora-bg-secondary, #f9fafb)',
|
|
32
|
+
},
|
|
33
|
+
content: {
|
|
34
|
+
display: 'flex',
|
|
35
|
+
overflowY: 'auto',
|
|
36
|
+
},
|
|
37
|
+
contentStacked: {
|
|
38
|
+
flexDirection: 'column',
|
|
39
|
+
},
|
|
40
|
+
suggestionsColumn: {
|
|
41
|
+
borderRight: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
42
|
+
overflowY: 'auto',
|
|
43
|
+
},
|
|
44
|
+
productsColumn: {
|
|
45
|
+
flex: 1,
|
|
46
|
+
overflowY: 'auto',
|
|
47
|
+
backgroundColor: 'var(--seekora-bg-secondary, #fafafa)',
|
|
48
|
+
},
|
|
49
|
+
section: {
|
|
50
|
+
padding: '12px 0',
|
|
51
|
+
},
|
|
52
|
+
sectionHeader: {
|
|
53
|
+
display: 'flex',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
justifyContent: 'space-between',
|
|
56
|
+
padding: '0 20px 8px',
|
|
57
|
+
},
|
|
58
|
+
sectionTitle: {
|
|
59
|
+
fontSize: '11px',
|
|
60
|
+
fontWeight: 700,
|
|
61
|
+
color: 'var(--seekora-text-tertiary, #9ca3af)',
|
|
62
|
+
textTransform: 'uppercase',
|
|
63
|
+
letterSpacing: '0.08em',
|
|
64
|
+
margin: 0,
|
|
65
|
+
},
|
|
66
|
+
viewAllLink: {
|
|
67
|
+
fontSize: '12px',
|
|
68
|
+
color: 'var(--seekora-primary, #3b82f6)',
|
|
69
|
+
textDecoration: 'none',
|
|
70
|
+
fontWeight: 600,
|
|
71
|
+
cursor: 'pointer',
|
|
72
|
+
},
|
|
73
|
+
suggestionItem: {
|
|
74
|
+
display: 'flex',
|
|
75
|
+
alignItems: 'center',
|
|
76
|
+
padding: '10px 20px',
|
|
77
|
+
cursor: 'pointer',
|
|
78
|
+
transition: 'background-color 100ms ease',
|
|
79
|
+
gap: '12px',
|
|
80
|
+
},
|
|
81
|
+
suggestionItemActive: {
|
|
82
|
+
backgroundColor: 'var(--seekora-bg-hover, #f3f4f6)',
|
|
83
|
+
},
|
|
84
|
+
suggestionIcon: {
|
|
85
|
+
width: '16px',
|
|
86
|
+
height: '16px',
|
|
87
|
+
color: 'var(--seekora-text-secondary, #6b7280)',
|
|
88
|
+
flexShrink: 0,
|
|
89
|
+
},
|
|
90
|
+
suggestionText: {
|
|
91
|
+
flex: 1,
|
|
92
|
+
fontSize: '14px',
|
|
93
|
+
color: 'var(--seekora-text-primary, #111827)',
|
|
94
|
+
fontWeight: 500,
|
|
95
|
+
overflow: 'hidden',
|
|
96
|
+
textOverflow: 'ellipsis',
|
|
97
|
+
whiteSpace: 'nowrap',
|
|
98
|
+
},
|
|
99
|
+
suggestionArrow: {
|
|
100
|
+
width: '16px',
|
|
101
|
+
height: '16px',
|
|
102
|
+
color: 'var(--seekora-text-tertiary, #d1d5db)',
|
|
103
|
+
opacity: 0,
|
|
104
|
+
transition: 'opacity 100ms ease',
|
|
105
|
+
},
|
|
106
|
+
suggestionArrowVisible: {
|
|
107
|
+
opacity: 1,
|
|
108
|
+
},
|
|
109
|
+
suggestionCount: {
|
|
110
|
+
fontSize: '12px',
|
|
111
|
+
color: 'var(--seekora-text-tertiary, #9ca3af)',
|
|
112
|
+
},
|
|
113
|
+
tabsContainer: {
|
|
114
|
+
display: 'flex',
|
|
115
|
+
gap: '4px',
|
|
116
|
+
padding: '12px 20px',
|
|
117
|
+
borderBottom: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
118
|
+
overflowX: 'auto',
|
|
119
|
+
},
|
|
120
|
+
tab: {
|
|
121
|
+
display: 'flex',
|
|
122
|
+
alignItems: 'center',
|
|
123
|
+
gap: '6px',
|
|
124
|
+
padding: '8px 16px',
|
|
125
|
+
fontSize: '13px',
|
|
126
|
+
fontWeight: 500,
|
|
127
|
+
color: 'var(--seekora-text-secondary, #6b7280)',
|
|
128
|
+
backgroundColor: 'transparent',
|
|
129
|
+
border: '1px solid transparent',
|
|
130
|
+
borderRadius: '20px',
|
|
131
|
+
cursor: 'pointer',
|
|
132
|
+
whiteSpace: 'nowrap',
|
|
133
|
+
transition: 'all 150ms ease',
|
|
134
|
+
},
|
|
135
|
+
tabActive: {
|
|
136
|
+
color: 'var(--seekora-primary, #3b82f6)',
|
|
137
|
+
backgroundColor: 'var(--seekora-primary-light, #eff6ff)',
|
|
138
|
+
borderColor: 'var(--seekora-primary, #3b82f6)',
|
|
139
|
+
},
|
|
140
|
+
tabCount: {
|
|
141
|
+
fontSize: '11px',
|
|
142
|
+
fontWeight: 600,
|
|
143
|
+
padding: '2px 6px',
|
|
144
|
+
borderRadius: '10px',
|
|
145
|
+
backgroundColor: 'var(--seekora-bg-tertiary, #e5e7eb)',
|
|
146
|
+
},
|
|
147
|
+
tabCountActive: {
|
|
148
|
+
backgroundColor: 'var(--seekora-primary, #3b82f6)',
|
|
149
|
+
color: 'white',
|
|
150
|
+
},
|
|
151
|
+
productsGrid: {
|
|
152
|
+
display: 'grid',
|
|
153
|
+
gridTemplateColumns: 'repeat(auto-fill, minmax(140px, 1fr))',
|
|
154
|
+
gap: '16px',
|
|
155
|
+
padding: '16px 20px',
|
|
156
|
+
},
|
|
157
|
+
productCard: {
|
|
158
|
+
display: 'flex',
|
|
159
|
+
flexDirection: 'column',
|
|
160
|
+
backgroundColor: 'var(--seekora-bg-surface, #ffffff)',
|
|
161
|
+
borderRadius: '8px',
|
|
162
|
+
overflow: 'hidden',
|
|
163
|
+
cursor: 'pointer',
|
|
164
|
+
transition: 'transform 150ms ease, box-shadow 150ms ease',
|
|
165
|
+
border: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
166
|
+
},
|
|
167
|
+
productCardHover: {
|
|
168
|
+
transform: 'translateY(-2px)',
|
|
169
|
+
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
|
|
170
|
+
},
|
|
171
|
+
productImage: {
|
|
172
|
+
width: '100%',
|
|
173
|
+
aspectRatio: '1',
|
|
174
|
+
objectFit: 'cover',
|
|
175
|
+
backgroundColor: 'var(--seekora-bg-secondary, #f3f4f6)',
|
|
176
|
+
},
|
|
177
|
+
productInfo: {
|
|
178
|
+
padding: '10px',
|
|
179
|
+
},
|
|
180
|
+
productTitle: {
|
|
181
|
+
fontSize: '13px',
|
|
182
|
+
fontWeight: 500,
|
|
183
|
+
color: 'var(--seekora-text-primary, #111827)',
|
|
184
|
+
margin: 0,
|
|
185
|
+
overflow: 'hidden',
|
|
186
|
+
textOverflow: 'ellipsis',
|
|
187
|
+
display: '-webkit-box',
|
|
188
|
+
WebkitLineClamp: 2,
|
|
189
|
+
WebkitBoxOrient: 'vertical',
|
|
190
|
+
lineHeight: 1.3,
|
|
191
|
+
},
|
|
192
|
+
productPrice: {
|
|
193
|
+
fontSize: '14px',
|
|
194
|
+
fontWeight: 700,
|
|
195
|
+
color: 'var(--seekora-primary, #3b82f6)',
|
|
196
|
+
marginTop: '4px',
|
|
197
|
+
},
|
|
198
|
+
brandsGrid: {
|
|
199
|
+
display: 'flex',
|
|
200
|
+
flexWrap: 'wrap',
|
|
201
|
+
gap: '8px',
|
|
202
|
+
padding: '8px 20px 16px',
|
|
203
|
+
},
|
|
204
|
+
brandChip: {
|
|
205
|
+
display: 'inline-flex',
|
|
206
|
+
alignItems: 'center',
|
|
207
|
+
gap: '8px',
|
|
208
|
+
padding: '8px 14px',
|
|
209
|
+
fontSize: '13px',
|
|
210
|
+
fontWeight: 500,
|
|
211
|
+
color: 'var(--seekora-text-primary, #374151)',
|
|
212
|
+
backgroundColor: 'var(--seekora-bg-surface, #ffffff)',
|
|
213
|
+
border: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
214
|
+
borderRadius: '8px',
|
|
215
|
+
cursor: 'pointer',
|
|
216
|
+
transition: 'all 150ms ease',
|
|
217
|
+
},
|
|
218
|
+
brandChipHover: {
|
|
219
|
+
borderColor: 'var(--seekora-primary, #3b82f6)',
|
|
220
|
+
backgroundColor: 'var(--seekora-primary-light, #eff6ff)',
|
|
221
|
+
},
|
|
222
|
+
brandLogo: {
|
|
223
|
+
width: '20px',
|
|
224
|
+
height: '20px',
|
|
225
|
+
borderRadius: '4px',
|
|
226
|
+
objectFit: 'contain',
|
|
227
|
+
backgroundColor: 'var(--seekora-bg-secondary, #f3f4f6)',
|
|
228
|
+
},
|
|
229
|
+
footer: {
|
|
230
|
+
padding: '12px 20px',
|
|
231
|
+
borderTop: '1px solid var(--seekora-border-color, #e5e7eb)',
|
|
232
|
+
backgroundColor: 'var(--seekora-bg-secondary, #f9fafb)',
|
|
233
|
+
display: 'flex',
|
|
234
|
+
alignItems: 'center',
|
|
235
|
+
justifyContent: 'space-between',
|
|
236
|
+
fontSize: '12px',
|
|
237
|
+
color: 'var(--seekora-text-secondary, #6b7280)',
|
|
238
|
+
},
|
|
239
|
+
emptyState: {
|
|
240
|
+
padding: '48px 20px',
|
|
241
|
+
textAlign: 'center',
|
|
242
|
+
color: 'var(--seekora-text-secondary, #6b7280)',
|
|
243
|
+
},
|
|
244
|
+
highlight: {
|
|
245
|
+
backgroundColor: 'var(--seekora-highlight-bg, #fef9c3)',
|
|
246
|
+
fontWeight: 600,
|
|
247
|
+
padding: '0 2px',
|
|
248
|
+
borderRadius: '2px',
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
// ============================================================================
|
|
252
|
+
// Icons
|
|
253
|
+
// ============================================================================
|
|
254
|
+
const SearchIcon = ({ style }) => (React.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor", style: { ...styles.suggestionIcon, ...style } },
|
|
255
|
+
React.createElement("path", { fillRule: "evenodd", d: "M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z", clipRule: "evenodd" })));
|
|
256
|
+
const ClockIcon = ({ style }) => (React.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor", style: { ...styles.suggestionIcon, ...style } },
|
|
257
|
+
React.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", clipRule: "evenodd" })));
|
|
258
|
+
const ArrowRightIcon = ({ style }) => (React.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor", style: { ...styles.suggestionArrow, ...style } },
|
|
259
|
+
React.createElement("path", { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" })));
|
|
260
|
+
const TrendingIcon = ({ style }) => (React.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor", style: { width: 14, height: 14, color: '#10b981', ...style } },
|
|
261
|
+
React.createElement("path", { fillRule: "evenodd", d: "M12 7a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0V8.414l-4.293 4.293a1 1 0 01-1.414 0L8 10.414l-4.293 4.293a1 1 0 01-1.414-1.414l5-5a1 1 0 011.414 0L11 10.586 14.586 7H12z", clipRule: "evenodd" })));
|
|
262
|
+
const ImagePlaceholder = () => (React.createElement("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", style: { width: '40%', height: '40%', color: '#d1d5db' } },
|
|
263
|
+
React.createElement("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2", strokeWidth: "2" }),
|
|
264
|
+
React.createElement("circle", { cx: "8.5", cy: "8.5", r: "1.5", strokeWidth: "2" }),
|
|
265
|
+
React.createElement("polyline", { points: "21 15 16 10 5 21", strokeWidth: "2" })));
|
|
266
|
+
// ============================================================================
|
|
267
|
+
// Component
|
|
268
|
+
// ============================================================================
|
|
269
|
+
export const FederatedDropdown = forwardRef(function FederatedDropdown(props, ref) {
|
|
270
|
+
const { query, isOpen = true, maxSuggestions = 8, maxProducts = 8, maxBrands = 8, minQueryLength = 0, debounceMs = 200, filteredTabs: tabsConfig, showProducts = true, showBrands = true, showFilteredTabs = true, showRecentSearches = true, layout = 'side-by-side', productsColumnWidth = '60%', suggestionsColumnWidth = '40%', showPrices = true, currencySymbol = '$', classNames = {}, style, renderProduct, renderSuggestion, renderBrand, renderTab, header, footer, viewAllProductsLink, width = '800px', maxHeight = '600px', zIndex = 1000, analyticsTags, onSuggestionSelect, onProductClick, onBrandClick, onTabSelect, onRecentSearchClick, onRecentSearchRemove, onViewAllClick, onOpen, onClose, } = props;
|
|
271
|
+
const { client } = useSearchContext();
|
|
272
|
+
const containerRef = useRef(null);
|
|
273
|
+
const [activeIndex, setActiveIndex] = useState(-1);
|
|
274
|
+
const [activeTab, setActiveTab] = useState('all');
|
|
275
|
+
const [hoveredProduct, setHoveredProduct] = useState(null);
|
|
276
|
+
const [hoveredBrand, setHoveredBrand] = useState(null);
|
|
277
|
+
// Use enhanced hook
|
|
278
|
+
const { suggestions, loading, filteredTabs, trendingProducts, popularBrands, recentSearches, addRecentSearch, removeRecentSearch, hasContent, } = useQuerySuggestionsEnhanced({
|
|
279
|
+
client,
|
|
280
|
+
query,
|
|
281
|
+
enabled: isOpen,
|
|
282
|
+
debounceMs,
|
|
283
|
+
maxSuggestions,
|
|
284
|
+
minQueryLength,
|
|
285
|
+
includeDropdownRecommendations: true,
|
|
286
|
+
filteredTabs: tabsConfig,
|
|
287
|
+
analyticsTags,
|
|
288
|
+
enableRecentSearches: showRecentSearches,
|
|
289
|
+
});
|
|
290
|
+
// Get products for current tab
|
|
291
|
+
const currentTabProducts = useMemo(() => {
|
|
292
|
+
if (activeTab === 'all') {
|
|
293
|
+
// Combine trending products with first tab products
|
|
294
|
+
const allProducts = [...trendingProducts];
|
|
295
|
+
filteredTabs.forEach(tab => {
|
|
296
|
+
if (tab.products) {
|
|
297
|
+
tab.products.forEach(product => {
|
|
298
|
+
if (!allProducts.find(p => p.id === product.id)) {
|
|
299
|
+
allProducts.push(product);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
return allProducts.slice(0, maxProducts);
|
|
305
|
+
}
|
|
306
|
+
const tab = filteredTabs.find(t => t.id === activeTab);
|
|
307
|
+
return tab?.products?.slice(0, maxProducts) || [];
|
|
308
|
+
}, [activeTab, filteredTabs, trendingProducts, maxProducts]);
|
|
309
|
+
// All navigable items
|
|
310
|
+
const allItems = useMemo(() => {
|
|
311
|
+
const items = [];
|
|
312
|
+
// Recent searches (when no query)
|
|
313
|
+
if (query.length === 0 && showRecentSearches) {
|
|
314
|
+
recentSearches.slice(0, 5).forEach(search => {
|
|
315
|
+
items.push({ type: 'recent', data: search });
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
// Suggestions
|
|
319
|
+
suggestions.forEach(suggestion => {
|
|
320
|
+
items.push({ type: 'suggestion', data: suggestion });
|
|
321
|
+
});
|
|
322
|
+
return items;
|
|
323
|
+
}, [query, showRecentSearches, recentSearches, suggestions]);
|
|
324
|
+
// Navigation
|
|
325
|
+
const navigateNext = useCallback(() => {
|
|
326
|
+
setActiveIndex(prev => (prev < allItems.length - 1 ? prev + 1 : 0));
|
|
327
|
+
}, [allItems.length]);
|
|
328
|
+
const navigatePrevious = useCallback(() => {
|
|
329
|
+
setActiveIndex(prev => (prev > 0 ? prev - 1 : allItems.length - 1));
|
|
330
|
+
}, [allItems.length]);
|
|
331
|
+
const selectActive = useCallback(() => {
|
|
332
|
+
if (activeIndex < 0 || activeIndex >= allItems.length)
|
|
333
|
+
return;
|
|
334
|
+
const item = allItems[activeIndex];
|
|
335
|
+
if (item.type === 'recent') {
|
|
336
|
+
onRecentSearchClick?.(item.data);
|
|
337
|
+
}
|
|
338
|
+
else if (item.type === 'suggestion') {
|
|
339
|
+
onSuggestionSelect?.(item.data);
|
|
340
|
+
addRecentSearch(item.data.query);
|
|
341
|
+
}
|
|
342
|
+
}, [activeIndex, allItems, onRecentSearchClick, onSuggestionSelect, addRecentSearch]);
|
|
343
|
+
// Expose ref
|
|
344
|
+
useImperativeHandle(ref, () => ({
|
|
345
|
+
getActiveIndex: () => activeIndex,
|
|
346
|
+
setActiveIndex,
|
|
347
|
+
selectActive,
|
|
348
|
+
navigateNext,
|
|
349
|
+
navigatePrevious,
|
|
350
|
+
getActiveTab: () => activeTab,
|
|
351
|
+
setActiveTab,
|
|
352
|
+
}), [activeIndex, selectActive, navigateNext, navigatePrevious, activeTab]);
|
|
353
|
+
// Highlight query in text
|
|
354
|
+
const highlightQuery = (text) => {
|
|
355
|
+
if (!query)
|
|
356
|
+
return text;
|
|
357
|
+
const parts = text.split(new RegExp(`(${query})`, 'gi'));
|
|
358
|
+
return parts.map((part, i) => part.toLowerCase() === query.toLowerCase() ? (React.createElement("span", { key: i, style: styles.highlight }, part)) : part);
|
|
359
|
+
};
|
|
360
|
+
// Format price
|
|
361
|
+
const formatPrice = (price, currency) => {
|
|
362
|
+
if (price === undefined)
|
|
363
|
+
return '';
|
|
364
|
+
const symbol = currency || currencySymbol;
|
|
365
|
+
return `${symbol}${price.toLocaleString()}`;
|
|
366
|
+
};
|
|
367
|
+
// Handle tab change
|
|
368
|
+
const handleTabChange = (tabId) => {
|
|
369
|
+
setActiveTab(tabId);
|
|
370
|
+
const tab = filteredTabs.find(t => t.id === tabId);
|
|
371
|
+
if (tab) {
|
|
372
|
+
onTabSelect?.(tab);
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
if (!isOpen)
|
|
376
|
+
return null;
|
|
377
|
+
const showTabs = showFilteredTabs && (filteredTabs.length > 0 || trendingProducts.length > 0);
|
|
378
|
+
const showProductsSection = showProducts && currentTabProducts.length > 0;
|
|
379
|
+
const showBrandsSection = showBrands && popularBrands.length > 0;
|
|
380
|
+
const showRecent = showRecentSearches && query.length === 0 && recentSearches.length > 0;
|
|
381
|
+
const showSuggestions = suggestions.length > 0;
|
|
382
|
+
const isStackedLayout = layout === 'stacked' || layout === 'full-width';
|
|
383
|
+
return (React.createElement("div", { ref: containerRef, role: "listbox", "aria-label": "Search suggestions and products", className: clsx('seekora-federated-dropdown', classNames.root, classNames.container), style: {
|
|
384
|
+
position: 'absolute',
|
|
385
|
+
width,
|
|
386
|
+
zIndex,
|
|
387
|
+
...styles.container,
|
|
388
|
+
...style,
|
|
389
|
+
} },
|
|
390
|
+
header && React.createElement("div", { style: styles.header }, header),
|
|
391
|
+
showTabs && (React.createElement("div", { style: styles.tabsContainer, className: classNames.tabsList },
|
|
392
|
+
React.createElement("button", { style: {
|
|
393
|
+
...styles.tab,
|
|
394
|
+
...(activeTab === 'all' ? styles.tabActive : {}),
|
|
395
|
+
}, onClick: () => handleTabChange('all'), className: clsx(classNames.tabItem, activeTab === 'all' && classNames.tabActive) },
|
|
396
|
+
"All Results",
|
|
397
|
+
trendingProducts.length > 0 && (React.createElement("span", { style: {
|
|
398
|
+
...styles.tabCount,
|
|
399
|
+
...(activeTab === 'all' ? styles.tabCountActive : {}),
|
|
400
|
+
} },
|
|
401
|
+
trendingProducts.length,
|
|
402
|
+
"+"))),
|
|
403
|
+
filteredTabs.map((tab) => (renderTab ? renderTab(tab, activeTab === tab.id) : (React.createElement("button", { key: tab.id, style: {
|
|
404
|
+
...styles.tab,
|
|
405
|
+
...(activeTab === tab.id ? styles.tabActive : {}),
|
|
406
|
+
}, onClick: () => handleTabChange(tab.id), className: clsx(classNames.tabItem, activeTab === tab.id && classNames.tabActive) },
|
|
407
|
+
tab.label,
|
|
408
|
+
tab.nb_hits !== undefined && (React.createElement("span", { style: {
|
|
409
|
+
...styles.tabCount,
|
|
410
|
+
...(activeTab === tab.id ? styles.tabCountActive : {}),
|
|
411
|
+
} }, tab.nb_hits)))))))),
|
|
412
|
+
React.createElement("div", { style: {
|
|
413
|
+
...styles.content,
|
|
414
|
+
...(isStackedLayout ? styles.contentStacked : {}),
|
|
415
|
+
maxHeight,
|
|
416
|
+
} },
|
|
417
|
+
React.createElement("div", { style: {
|
|
418
|
+
...styles.suggestionsColumn,
|
|
419
|
+
width: isStackedLayout ? '100%' : suggestionsColumnWidth,
|
|
420
|
+
minWidth: isStackedLayout ? undefined : '280px',
|
|
421
|
+
borderRight: isStackedLayout ? 'none' : styles.suggestionsColumn.borderRight,
|
|
422
|
+
} },
|
|
423
|
+
showRecent && (React.createElement("div", { style: styles.section, className: classNames.recentSearches },
|
|
424
|
+
React.createElement("div", { style: styles.sectionHeader },
|
|
425
|
+
React.createElement("h3", { style: styles.sectionTitle }, "Recent Searches")),
|
|
426
|
+
recentSearches.slice(0, 5).map((search, index) => {
|
|
427
|
+
const isActive = activeIndex === index;
|
|
428
|
+
return (React.createElement("div", { key: `recent-${search.query}`, role: "option", "aria-selected": isActive, style: {
|
|
429
|
+
...styles.suggestionItem,
|
|
430
|
+
...(isActive ? styles.suggestionItemActive : {}),
|
|
431
|
+
}, onClick: () => onRecentSearchClick?.(search), onMouseEnter: () => setActiveIndex(index), className: clsx(classNames.recentItem, isActive && classNames.suggestionItemActive) },
|
|
432
|
+
React.createElement(ClockIcon, null),
|
|
433
|
+
React.createElement("span", { style: styles.suggestionText }, search.query),
|
|
434
|
+
React.createElement(ArrowRightIcon, { style: isActive ? styles.suggestionArrowVisible : {} })));
|
|
435
|
+
}))),
|
|
436
|
+
showSuggestions && (React.createElement("div", { style: styles.section, className: classNames.suggestionsList },
|
|
437
|
+
React.createElement("div", { style: styles.sectionHeader },
|
|
438
|
+
React.createElement("h3", { style: styles.sectionTitle }, query ? 'Suggestions' : 'Popular Searches')),
|
|
439
|
+
suggestions.slice(0, maxSuggestions).map((suggestion, index) => {
|
|
440
|
+
const itemIndex = showRecent ? recentSearches.length + index : index;
|
|
441
|
+
const isActive = activeIndex === itemIndex;
|
|
442
|
+
return renderSuggestion ? renderSuggestion(suggestion, index, isActive) : (React.createElement("div", { key: suggestion.objectID || `suggestion-${index}`, role: "option", "aria-selected": isActive, style: {
|
|
443
|
+
...styles.suggestionItem,
|
|
444
|
+
...(isActive ? styles.suggestionItemActive : {}),
|
|
445
|
+
}, onClick: () => {
|
|
446
|
+
onSuggestionSelect?.(suggestion);
|
|
447
|
+
addRecentSearch(suggestion.query);
|
|
448
|
+
}, onMouseEnter: () => setActiveIndex(itemIndex), className: clsx(classNames.suggestionItem, isActive && classNames.suggestionItemActive) },
|
|
449
|
+
React.createElement(SearchIcon, null),
|
|
450
|
+
React.createElement("span", { style: styles.suggestionText }, highlightQuery(suggestion.query)),
|
|
451
|
+
suggestion.count !== undefined && (React.createElement("span", { style: styles.suggestionCount }, suggestion.count.toLocaleString())),
|
|
452
|
+
React.createElement(ArrowRightIcon, { style: isActive ? styles.suggestionArrowVisible : {} })));
|
|
453
|
+
}))),
|
|
454
|
+
showBrandsSection && (React.createElement("div", { style: styles.section, className: classNames.brandsList },
|
|
455
|
+
React.createElement("div", { style: styles.sectionHeader },
|
|
456
|
+
React.createElement("h3", { style: styles.sectionTitle }, "Popular Brands")),
|
|
457
|
+
React.createElement("div", { style: styles.brandsGrid }, popularBrands.slice(0, maxBrands).map((brand, index) => (renderBrand ? renderBrand(brand, index) : (React.createElement("button", { key: `brand-${brand.name}`, style: {
|
|
458
|
+
...styles.brandChip,
|
|
459
|
+
...(hoveredBrand === brand.name ? styles.brandChipHover : {}),
|
|
460
|
+
}, onClick: () => onBrandClick?.(brand), onMouseEnter: () => setHoveredBrand(brand.name), onMouseLeave: () => setHoveredBrand(null), className: classNames.brandItem },
|
|
461
|
+
brand.logo && (React.createElement("img", { src: brand.logo, alt: brand.name, style: styles.brandLogo, onError: (e) => {
|
|
462
|
+
e.target.style.display = 'none';
|
|
463
|
+
} })),
|
|
464
|
+
React.createElement("span", null, brand.name))))))))),
|
|
465
|
+
showProductsSection && !isStackedLayout && (React.createElement("div", { style: {
|
|
466
|
+
...styles.productsColumn,
|
|
467
|
+
width: productsColumnWidth,
|
|
468
|
+
} },
|
|
469
|
+
React.createElement("div", { style: styles.section },
|
|
470
|
+
React.createElement("div", { style: styles.sectionHeader },
|
|
471
|
+
React.createElement("h3", { style: styles.sectionTitle }, activeTab === 'all' ? 'Trending Products' : `Products in ${filteredTabs.find(t => t.id === activeTab)?.label || activeTab}`),
|
|
472
|
+
viewAllProductsLink && (React.createElement("a", { href: viewAllProductsLink, style: styles.viewAllLink, onClick: (e) => {
|
|
473
|
+
e.preventDefault();
|
|
474
|
+
onViewAllClick?.('products');
|
|
475
|
+
} }, "View all"))),
|
|
476
|
+
React.createElement("div", { style: styles.productsGrid, className: classNames.productsList }, currentTabProducts.map((product, index) => (renderProduct ? renderProduct(product, index) : (React.createElement("div", { key: product.id || product.objectID, style: {
|
|
477
|
+
...styles.productCard,
|
|
478
|
+
...(hoveredProduct === product.id ? styles.productCardHover : {}),
|
|
479
|
+
}, onClick: () => onProductClick?.(product), onMouseEnter: () => setHoveredProduct(product.id), onMouseLeave: () => setHoveredProduct(null), className: classNames.productItem },
|
|
480
|
+
product.image ? (React.createElement("img", { src: product.image, alt: product.title || product.name || '', style: styles.productImage, onError: (e) => {
|
|
481
|
+
e.target.style.display = 'none';
|
|
482
|
+
} })) : (React.createElement("div", { style: {
|
|
483
|
+
...styles.productImage,
|
|
484
|
+
display: 'flex',
|
|
485
|
+
alignItems: 'center',
|
|
486
|
+
justifyContent: 'center',
|
|
487
|
+
} },
|
|
488
|
+
React.createElement(ImagePlaceholder, null))),
|
|
489
|
+
React.createElement("div", { style: styles.productInfo },
|
|
490
|
+
React.createElement("h4", { style: styles.productTitle }, product.title || product.name),
|
|
491
|
+
showPrices && product.price !== undefined && (React.createElement("p", { style: styles.productPrice }, formatPrice(product.price, product.currency))))))))))))),
|
|
492
|
+
footer ? (React.createElement("div", { style: styles.footer }, footer)) : (React.createElement("div", { style: styles.footer },
|
|
493
|
+
React.createElement("span", null, "Press \u21B5 to search, \u2191\u2193 to navigate"),
|
|
494
|
+
query && (React.createElement("button", { style: { ...styles.viewAllLink, background: 'none', border: 'none' }, onClick: () => onViewAllClick?.('suggestions') },
|
|
495
|
+
"See all results for \"",
|
|
496
|
+
query,
|
|
497
|
+
"\"")))),
|
|
498
|
+
React.createElement("style", null, `
|
|
499
|
+
.seekora-federated-dropdown mark {
|
|
500
|
+
background-color: var(--seekora-highlight-bg, #fef9c3);
|
|
501
|
+
font-weight: 600;
|
|
502
|
+
border-radius: 2px;
|
|
503
|
+
padding: 0 2px;
|
|
504
|
+
}
|
|
505
|
+
.seekora-federated-dropdown [role="option"]:hover svg:last-child {
|
|
506
|
+
opacity: 1;
|
|
507
|
+
}
|
|
508
|
+
`)));
|
|
509
|
+
});
|
|
510
|
+
export default FederatedDropdown;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HierarchicalMenu Component
|
|
3
|
+
*
|
|
4
|
+
* Displays a hierarchical menu for nested category navigation
|
|
5
|
+
* Example: Electronics > Phones > iPhone
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export interface HierarchicalMenuItem {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
count?: number;
|
|
12
|
+
isRefined?: boolean;
|
|
13
|
+
data?: HierarchicalMenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export interface HierarchicalMenuTheme {
|
|
16
|
+
root?: string;
|
|
17
|
+
list?: string;
|
|
18
|
+
item?: string;
|
|
19
|
+
itemSelected?: string;
|
|
20
|
+
itemParent?: string;
|
|
21
|
+
link?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
count?: string;
|
|
24
|
+
showMore?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface HierarchicalMenuProps {
|
|
27
|
+
/** Attributes for each level of hierarchy (e.g., ['category.lvl0', 'category.lvl1', 'category.lvl2']) */
|
|
28
|
+
attributes: string[];
|
|
29
|
+
/** Separator used in the hierarchical values (default: ' > ') */
|
|
30
|
+
separator?: string;
|
|
31
|
+
/** Maximum number of items to show per level (default: 10) */
|
|
32
|
+
limit?: number;
|
|
33
|
+
/** Show "Show more" button (default: true) */
|
|
34
|
+
showMore?: boolean;
|
|
35
|
+
/** Maximum items when "Show more" is clicked (default: 20) */
|
|
36
|
+
showMoreLimit?: number;
|
|
37
|
+
/** Custom render function for items */
|
|
38
|
+
renderItem?: (item: HierarchicalMenuItem, level: number) => React.ReactNode;
|
|
39
|
+
/** Callback when an item is selected */
|
|
40
|
+
onSelect?: (value: string, level: number) => void;
|
|
41
|
+
/** Custom className */
|
|
42
|
+
className?: string;
|
|
43
|
+
/** Custom styles */
|
|
44
|
+
style?: React.CSSProperties;
|
|
45
|
+
/** Custom theme */
|
|
46
|
+
theme?: HierarchicalMenuTheme;
|
|
47
|
+
/** Root path (for pre-selecting a category) */
|
|
48
|
+
rootPath?: string | null;
|
|
49
|
+
/** Sort by (default: 'name') */
|
|
50
|
+
sortBy?: 'name' | 'count' | 'isRefined';
|
|
51
|
+
/** Custom facet data (if not using StateManager) */
|
|
52
|
+
items?: HierarchicalMenuItem[];
|
|
53
|
+
}
|
|
54
|
+
export declare const HierarchicalMenu: React.FC<HierarchicalMenuProps>;
|
|
55
|
+
//# sourceMappingURL=HierarchicalMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HierarchicalMenu.d.ts","sourceRoot":"","sources":["../../src/components/HierarchicalMenu.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAK9D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,yGAAyG;IACzG,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5E,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,mBAAmB;IACnB,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IACxC,oDAAoD;IACpD,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2P5D,CAAC"}
|