@caseparts-org/caseblocks 0.0.237 → 0.0.238
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/organisms/MainNav/MainNav.js +124 -124
- package/package.json +1 -1
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { jsx as o, jsxs as l, Fragment as
|
|
1
|
+
import { jsx as o, jsxs as l, Fragment as Q } from "react/jsx-runtime";
|
|
2
2
|
import x from "react";
|
|
3
3
|
import { Text as O } from "../../atoms/Text/Text.js";
|
|
4
4
|
import { Link as U } from "../../atoms/Link/Link.js";
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Flex as
|
|
7
|
-
import { Grid as
|
|
8
|
-
import { Input as
|
|
9
|
-
import { InputEndAdornmentButton as
|
|
10
|
-
import { Logo as
|
|
11
|
-
import { HamburgerMenu as
|
|
12
|
-
import { ShoppingCart as
|
|
5
|
+
import { Icon as N } from "../../atoms/Icon/Icon.js";
|
|
6
|
+
import { Flex as z } from "../../atoms/Flex/Flex.js";
|
|
7
|
+
import { Grid as li, Column as mi } from "../../atoms/Grid/Grid.js";
|
|
8
|
+
import { Input as W } from "../../atoms/Input/Input.js";
|
|
9
|
+
import { InputEndAdornmentButton as p } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
|
|
10
|
+
import { Logo as ai } from "../../molecules/Logo/Logo.js";
|
|
11
|
+
import { HamburgerMenu as ci } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
12
|
+
import { ShoppingCart as si } from "../../molecules/Cart/Cart.js";
|
|
13
13
|
import { Account as di } from "../../molecules/Account/Account.js";
|
|
14
|
-
import { CategoryNav as
|
|
15
|
-
import { SuggestionDropdown as
|
|
16
|
-
import { getHideAtStyles as
|
|
17
|
-
import { c as
|
|
18
|
-
import '../../assets/MainNav.css';const fi = "_main_12974_1",
|
|
14
|
+
import { CategoryNav as ri } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
15
|
+
import { SuggestionDropdown as B } from "../SuggestionDropdown/SuggestionDropdown.js";
|
|
16
|
+
import { getHideAtStyles as J } from "../../atoms/HideAt.js";
|
|
17
|
+
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
18
|
+
import '../../assets/MainNav.css';const fi = "_main_12974_1", _i = "_column_12974_8", Ni = "_topNav_12974_13", ui = "_logo_12974_21", yi = "_operations_12974_24", ki = "_search_12974_31", wi = "_mobileSearch_12974_36", Ai = "_suggestionDropdown_12974_39", bi = "_siteLink_12974_45", Di = "_accountArea_12974_72", vi = "_category_12974_84", xi = "_categoryLink_12974_92", Li = "_menuList_12974_108", Ki = "_menuItemAction_12974_131", gi = "_shortcutIcon_12974_140", i = {
|
|
19
19
|
main: fi,
|
|
20
|
-
column:
|
|
21
|
-
topNav:
|
|
22
|
-
logo:
|
|
20
|
+
column: _i,
|
|
21
|
+
topNav: Ni,
|
|
22
|
+
logo: ui,
|
|
23
23
|
operations: yi,
|
|
24
|
-
search:
|
|
25
|
-
mobileSearch:
|
|
26
|
-
suggestionDropdown:
|
|
27
|
-
siteLink:
|
|
24
|
+
search: ki,
|
|
25
|
+
mobileSearch: wi,
|
|
26
|
+
suggestionDropdown: Ai,
|
|
27
|
+
siteLink: bi,
|
|
28
28
|
accountArea: Di,
|
|
29
|
-
category:
|
|
30
|
-
categoryLink:
|
|
31
|
-
menuList:
|
|
32
|
-
menuItemAction:
|
|
33
|
-
shortcutIcon:
|
|
34
|
-
},
|
|
35
|
-
account:
|
|
29
|
+
category: vi,
|
|
30
|
+
categoryLink: xi,
|
|
31
|
+
menuList: Li,
|
|
32
|
+
menuItemAction: Ki,
|
|
33
|
+
shortcutIcon: gi
|
|
34
|
+
}, Wi = x.forwardRef(function({
|
|
35
|
+
account: $,
|
|
36
36
|
categories: A,
|
|
37
|
-
homeRoute:
|
|
38
|
-
faqRoute:
|
|
37
|
+
homeRoute: X,
|
|
38
|
+
faqRoute: Y,
|
|
39
39
|
customPartsRoute: E,
|
|
40
|
-
aboutUsRoute:
|
|
40
|
+
aboutUsRoute: Z,
|
|
41
41
|
contactRoute: I,
|
|
42
|
-
cart:
|
|
43
|
-
open:
|
|
42
|
+
cart: C,
|
|
43
|
+
open: V,
|
|
44
44
|
// consume external panel control props from CartPropsBase
|
|
45
|
-
className:
|
|
46
|
-
onLoginClick:
|
|
45
|
+
className: h,
|
|
46
|
+
onLoginClick: P,
|
|
47
47
|
searchInputProps: t,
|
|
48
48
|
searchValue: c,
|
|
49
49
|
onSearchValueChange: y,
|
|
50
|
-
onClearSearch:
|
|
51
|
-
onSearch:
|
|
50
|
+
onClearSearch: k,
|
|
51
|
+
onSearch: s,
|
|
52
52
|
searchSuggestions: n,
|
|
53
|
-
recentSearches:
|
|
53
|
+
recentSearches: r,
|
|
54
54
|
onClearRecentSearch: M,
|
|
55
55
|
onCategoryClick: L,
|
|
56
56
|
onClickModelSerial: H,
|
|
57
|
-
onCartClick:
|
|
58
|
-
accountPopoverContent:
|
|
59
|
-
isAccountLoading:
|
|
60
|
-
isCategoriesLoading:
|
|
61
|
-
...
|
|
62
|
-
},
|
|
63
|
-
const [R,
|
|
57
|
+
onCartClick: S,
|
|
58
|
+
accountPopoverContent: ii,
|
|
59
|
+
isAccountLoading: oi,
|
|
60
|
+
isCategoriesLoading: ei,
|
|
61
|
+
...ti
|
|
62
|
+
}, ni) {
|
|
63
|
+
const [R, f] = x.useState(!1), [m, _] = x.useState(-1), K = x.useRef(null), d = x.useId(), b = R && !!c && !!n, F = R && !b && !!(r != null && r.length), D = b ? ((n == null ? void 0 : n.terms.length) ?? 0) + ((n == null ? void 0 : n.categories.length) ?? 0) + ((n == null ? void 0 : n.items.length) ?? 0) : F ? (r == null ? void 0 : r.length) ?? 0 : 0, T = {
|
|
64
64
|
...t,
|
|
65
65
|
onChange: (e) => {
|
|
66
66
|
var a;
|
|
67
|
-
|
|
67
|
+
_(-1), (a = t == null ? void 0 : t.onChange) == null || a.call(t, e);
|
|
68
68
|
},
|
|
69
69
|
onFocus: (e) => {
|
|
70
70
|
var a;
|
|
71
|
-
(a = t == null ? void 0 : t.onFocus) == null || a.call(t, e),
|
|
71
|
+
(a = t == null ? void 0 : t.onFocus) == null || a.call(t, e), f(!0);
|
|
72
72
|
},
|
|
73
73
|
onBlur: (e) => {
|
|
74
74
|
var a;
|
|
75
|
-
(a = t == null ? void 0 : t.onBlur) == null || a.call(t, e),
|
|
75
|
+
(a = t == null ? void 0 : t.onBlur) == null || a.call(t, e), f(!1);
|
|
76
76
|
},
|
|
77
77
|
onKeyDown: (e) => {
|
|
78
|
-
var a, q;
|
|
78
|
+
var a, q, G;
|
|
79
79
|
if ((a = t == null ? void 0 : t.onKeyDown) == null || a.call(t, e), !e.defaultPrevented) {
|
|
80
|
-
if (e.key === "ArrowDown" &&
|
|
81
|
-
e.preventDefault(),
|
|
80
|
+
if (e.key === "ArrowDown" && D > 0) {
|
|
81
|
+
e.preventDefault(), _((v) => v >= D - 1 ? 0 : v + 1);
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
if (e.key === "ArrowUp" &&
|
|
85
|
-
e.preventDefault(),
|
|
84
|
+
if (e.key === "ArrowUp" && D > 0) {
|
|
85
|
+
e.preventDefault(), _((v) => v <= 0 ? D - 1 : v - 1);
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
|
-
if (e.key === "Tab" &&
|
|
89
|
-
e.preventDefault(), y == null || y((n == null ? void 0 : n.terms[m].name) ?? ""),
|
|
88
|
+
if (e.key === "Tab" && b && m >= 0 && m < ((n == null ? void 0 : n.terms.length) ?? 0)) {
|
|
89
|
+
e.preventDefault(), y == null || y((n == null ? void 0 : n.terms[m].name) ?? ""), _(-1);
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
if (e.key === "Enter" && m >= 0 && m <
|
|
93
|
-
e.preventDefault(), (q = document.getElementById(`${
|
|
92
|
+
if (e.key === "Enter" && m >= 0 && m < D) {
|
|
93
|
+
e.preventDefault(), (q = document.getElementById(`${d}-${m}`)) == null || q.click();
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
96
|
+
e.key === "Enter" && (e.preventDefault(), f(!1), (G = K.current) == null || G.blur(), s == null || s(c ?? ""));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, g = (e) => {
|
|
100
100
|
var a;
|
|
101
|
-
e.key.length !== 1 || e.altKey || e.ctrlKey || e.metaKey || (e.preventDefault(),
|
|
101
|
+
e.key.length !== 1 || e.altKey || e.ctrlKey || e.metaKey || (e.preventDefault(), _(-1), y == null || y(`${c ?? ""}${e.key}`), (a = K.current) == null || a.focus());
|
|
102
102
|
};
|
|
103
|
-
return /* @__PURE__ */ o(
|
|
103
|
+
return /* @__PURE__ */ o(li, { ...ti, gridWrapperClassName: u(i.main, h), children: /* @__PURE__ */ l(mi, { span: 12, className: i.column, children: [
|
|
104
104
|
/* @__PURE__ */ l(
|
|
105
|
-
|
|
105
|
+
z,
|
|
106
106
|
{
|
|
107
107
|
flexDirection: "row",
|
|
108
108
|
alignItems: "center",
|
|
109
109
|
justifyContent: "space-between",
|
|
110
110
|
className: i.topNav,
|
|
111
111
|
children: [
|
|
112
|
-
/* @__PURE__ */ o("div", { className: i.logo, children: /* @__PURE__ */ o(U, { href:
|
|
112
|
+
/* @__PURE__ */ o("div", { className: i.logo, children: /* @__PURE__ */ o(U, { href: X, children: /* @__PURE__ */ o(ai, {}) }) }),
|
|
113
113
|
/* @__PURE__ */ l(
|
|
114
|
-
|
|
114
|
+
z,
|
|
115
115
|
{
|
|
116
116
|
flexDirection: "row",
|
|
117
117
|
alignItems: "center",
|
|
118
118
|
justifyContent: "flex-end",
|
|
119
119
|
className: i.operations,
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */ l(
|
|
121
|
+
/* @__PURE__ */ l(z, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: [
|
|
122
122
|
/* @__PURE__ */ o(
|
|
123
|
-
|
|
123
|
+
W,
|
|
124
124
|
{
|
|
125
125
|
variant: "search",
|
|
126
126
|
label: "Search",
|
|
@@ -128,53 +128,53 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
128
128
|
name: "cpc-search",
|
|
129
129
|
autoComplete: "off",
|
|
130
130
|
"aria-autocomplete": "list",
|
|
131
|
-
"aria-controls":
|
|
132
|
-
"aria-activedescendant": m >= 0 ? `${
|
|
131
|
+
"aria-controls": d,
|
|
132
|
+
"aria-activedescendant": m >= 0 ? `${d}-${m}` : void 0,
|
|
133
133
|
...T,
|
|
134
|
-
ref:
|
|
134
|
+
ref: K,
|
|
135
135
|
value: c,
|
|
136
|
-
endAdornment: /* @__PURE__ */ l(
|
|
136
|
+
endAdornment: /* @__PURE__ */ l(Q, { children: [
|
|
137
137
|
!!c && /* @__PURE__ */ o(
|
|
138
|
-
|
|
138
|
+
p,
|
|
139
139
|
{
|
|
140
140
|
"aria-label": "Clear search",
|
|
141
141
|
onClick: () => {
|
|
142
|
-
|
|
142
|
+
_(-1), k == null || k();
|
|
143
143
|
},
|
|
144
144
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
147
|
/* @__PURE__ */ o(
|
|
148
|
-
|
|
148
|
+
p,
|
|
149
149
|
{
|
|
150
150
|
"aria-label": "Submit search",
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => s == null ? void 0 : s(c ?? ""),
|
|
152
152
|
iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
] })
|
|
156
156
|
}
|
|
157
157
|
),
|
|
158
|
-
|
|
158
|
+
b && n && /* @__PURE__ */ o(B, { ...n, activeOptionIndex: m, optionIdPrefix: d, onKeyDown: g, onSuggestionClick: () => f(!1), className: i.suggestionDropdown }),
|
|
159
159
|
F && /* @__PURE__ */ o(
|
|
160
|
-
|
|
160
|
+
B,
|
|
161
161
|
{
|
|
162
162
|
terms: [],
|
|
163
163
|
categories: [],
|
|
164
164
|
items: [],
|
|
165
165
|
view: "recent-searches",
|
|
166
|
-
recentSearches:
|
|
166
|
+
recentSearches: r,
|
|
167
167
|
onClearRecentSearch: M,
|
|
168
168
|
activeOptionIndex: m,
|
|
169
|
-
optionIdPrefix:
|
|
170
|
-
onKeyDown:
|
|
171
|
-
onSuggestionClick: () =>
|
|
169
|
+
optionIdPrefix: d,
|
|
170
|
+
onKeyDown: g,
|
|
171
|
+
onSuggestionClick: () => f(!1),
|
|
172
172
|
className: i.suggestionDropdown
|
|
173
173
|
}
|
|
174
174
|
)
|
|
175
175
|
] }),
|
|
176
|
-
/* @__PURE__ */ l("button", { onClick: H, className:
|
|
177
|
-
/* @__PURE__ */ o(
|
|
176
|
+
/* @__PURE__ */ l("button", { onClick: H, className: u(i.siteLink, J(["sm", "md"])), children: [
|
|
177
|
+
/* @__PURE__ */ o(N, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
|
|
178
178
|
"Model/Serial"
|
|
179
179
|
] }),
|
|
180
180
|
/* @__PURE__ */ o(w, { href: E, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
@@ -182,23 +182,23 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
182
182
|
/* @__PURE__ */ o("div", { className: i.accountArea, children: /* @__PURE__ */ o(
|
|
183
183
|
di,
|
|
184
184
|
{
|
|
185
|
-
account:
|
|
186
|
-
onLoginClick:
|
|
185
|
+
account: $,
|
|
186
|
+
onLoginClick: P,
|
|
187
187
|
className: i.avatar,
|
|
188
|
-
popoverContent:
|
|
189
|
-
isAccountLoading:
|
|
188
|
+
popoverContent: ii,
|
|
189
|
+
isAccountLoading: oi
|
|
190
190
|
}
|
|
191
191
|
) }),
|
|
192
192
|
/* @__PURE__ */ o(
|
|
193
|
-
|
|
193
|
+
si,
|
|
194
194
|
{
|
|
195
|
-
ref:
|
|
196
|
-
cart:
|
|
197
|
-
open:
|
|
198
|
-
onCartClick:
|
|
195
|
+
ref: ni,
|
|
196
|
+
cart: C,
|
|
197
|
+
open: V,
|
|
198
|
+
onCartClick: S
|
|
199
199
|
}
|
|
200
200
|
),
|
|
201
|
-
/* @__PURE__ */ l(
|
|
201
|
+
/* @__PURE__ */ l(ci, { hideAt: ["lg"], children: [
|
|
202
202
|
/* @__PURE__ */ l("section", { children: [
|
|
203
203
|
/* @__PURE__ */ o(O, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
|
|
204
204
|
/* @__PURE__ */ l("ul", { className: i.menuList, children: [
|
|
@@ -207,27 +207,27 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
207
207
|
{
|
|
208
208
|
onClick: H,
|
|
209
209
|
"data-hamburger-close": "true",
|
|
210
|
-
className:
|
|
210
|
+
className: u(i.siteLink, i.menuItemAction, J(["lg"])),
|
|
211
211
|
children: [
|
|
212
|
-
/* @__PURE__ */ o(
|
|
212
|
+
/* @__PURE__ */ o(N, { iconKey: "fa-regular fa-sparkles", size: "sm", className: i.shortcutIcon }),
|
|
213
213
|
"Model/Serial"
|
|
214
214
|
]
|
|
215
215
|
}
|
|
216
216
|
) }),
|
|
217
|
-
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href: E, className:
|
|
218
|
-
/* @__PURE__ */ o(
|
|
217
|
+
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href: E, className: u(i.siteLink, i.menuItemAction), children: [
|
|
218
|
+
/* @__PURE__ */ o(N, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: i.shortcutIcon }),
|
|
219
219
|
"Custom Parts"
|
|
220
220
|
] }) }),
|
|
221
|
-
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href: I, className:
|
|
222
|
-
/* @__PURE__ */ o(
|
|
221
|
+
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href: I, className: u(i.siteLink, i.menuItemAction), children: [
|
|
222
|
+
/* @__PURE__ */ o(N, { iconKey: "fa-regular fa-envelope", size: "sm", className: i.shortcutIcon }),
|
|
223
223
|
"Contact Us"
|
|
224
224
|
] }) }),
|
|
225
|
-
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href:
|
|
226
|
-
/* @__PURE__ */ o(
|
|
225
|
+
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href: Y, className: u(i.siteLink, i.menuItemAction), children: [
|
|
226
|
+
/* @__PURE__ */ o(N, { iconKey: "fa-solid fa-question", size: "sm", className: i.shortcutIcon }),
|
|
227
227
|
"FAQ"
|
|
228
228
|
] }) }),
|
|
229
|
-
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href:
|
|
230
|
-
/* @__PURE__ */ o(
|
|
229
|
+
/* @__PURE__ */ o("li", { className: i.menuItem, children: /* @__PURE__ */ l(w, { href: Z, className: u(i.siteLink, i.menuItemAction), children: [
|
|
230
|
+
/* @__PURE__ */ o(N, { iconKey: "fa-regular fa-people-group", size: "sm", className: i.shortcutIcon }),
|
|
231
231
|
"About Us"
|
|
232
232
|
] }) })
|
|
233
233
|
] })
|
|
@@ -243,7 +243,7 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
243
243
|
children: [
|
|
244
244
|
/* @__PURE__ */ o(O, { size: "sm", children: e.label }),
|
|
245
245
|
/* @__PURE__ */ o(
|
|
246
|
-
|
|
246
|
+
N,
|
|
247
247
|
{
|
|
248
248
|
iconKey: "fa-solid fa-chevron-right",
|
|
249
249
|
title: "Navigate",
|
|
@@ -261,9 +261,9 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
261
261
|
]
|
|
262
262
|
}
|
|
263
263
|
),
|
|
264
|
-
/* @__PURE__ */ o(
|
|
264
|
+
/* @__PURE__ */ o(z, { flexDirection: "row", hideAt: ["md", "lg"], className: i.mobileSearch, children: /* @__PURE__ */ l("div", { className: i.search, children: [
|
|
265
265
|
/* @__PURE__ */ o(
|
|
266
|
-
|
|
266
|
+
W,
|
|
267
267
|
{
|
|
268
268
|
variant: "search",
|
|
269
269
|
label: "Search",
|
|
@@ -271,56 +271,56 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
271
271
|
name: "cpc-search",
|
|
272
272
|
autoComplete: "off",
|
|
273
273
|
"aria-autocomplete": "list",
|
|
274
|
-
"aria-controls":
|
|
275
|
-
"aria-activedescendant": m >= 0 ? `${
|
|
274
|
+
"aria-controls": d,
|
|
275
|
+
"aria-activedescendant": m >= 0 ? `${d}-${m}` : void 0,
|
|
276
276
|
...T,
|
|
277
|
-
ref:
|
|
277
|
+
ref: K,
|
|
278
278
|
value: c,
|
|
279
|
-
endAdornment: /* @__PURE__ */ l(
|
|
279
|
+
endAdornment: /* @__PURE__ */ l(Q, { children: [
|
|
280
280
|
!!c && /* @__PURE__ */ o(
|
|
281
|
-
|
|
281
|
+
p,
|
|
282
282
|
{
|
|
283
283
|
"aria-label": "Clear search",
|
|
284
284
|
onClick: () => {
|
|
285
|
-
|
|
285
|
+
_(-1), k == null || k();
|
|
286
286
|
},
|
|
287
287
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
288
288
|
}
|
|
289
289
|
),
|
|
290
290
|
/* @__PURE__ */ o(
|
|
291
|
-
|
|
291
|
+
p,
|
|
292
292
|
{
|
|
293
293
|
"aria-label": "Submit search",
|
|
294
|
-
onClick: () =>
|
|
294
|
+
onClick: () => s == null ? void 0 : s(c ?? ""),
|
|
295
295
|
iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
|
|
296
296
|
}
|
|
297
297
|
)
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
301
|
-
|
|
301
|
+
b && n && /* @__PURE__ */ o(B, { ...n, activeOptionIndex: m, optionIdPrefix: d, onKeyDown: g, onSuggestionClick: () => f(!1), className: i.suggestionDropdown }),
|
|
302
302
|
F && /* @__PURE__ */ o(
|
|
303
|
-
|
|
303
|
+
B,
|
|
304
304
|
{
|
|
305
305
|
terms: [],
|
|
306
306
|
categories: [],
|
|
307
307
|
items: [],
|
|
308
308
|
view: "recent-searches",
|
|
309
|
-
recentSearches:
|
|
309
|
+
recentSearches: r,
|
|
310
310
|
onClearRecentSearch: M,
|
|
311
311
|
activeOptionIndex: m,
|
|
312
|
-
optionIdPrefix:
|
|
313
|
-
onKeyDown:
|
|
314
|
-
onSuggestionClick: () =>
|
|
312
|
+
optionIdPrefix: d,
|
|
313
|
+
onKeyDown: g,
|
|
314
|
+
onSuggestionClick: () => f(!1),
|
|
315
315
|
className: i.suggestionDropdown
|
|
316
316
|
}
|
|
317
317
|
)
|
|
318
318
|
] }) }),
|
|
319
319
|
/* @__PURE__ */ o(
|
|
320
|
-
|
|
320
|
+
ri,
|
|
321
321
|
{
|
|
322
322
|
categories: A,
|
|
323
|
-
isCategoriesLoading:
|
|
323
|
+
isCategoriesLoading: ei,
|
|
324
324
|
onCategoryClick: L
|
|
325
325
|
}
|
|
326
326
|
)
|
|
@@ -328,11 +328,11 @@ import '../../assets/MainNav.css';const fi = "_main_12974_1", ri = "_column_1297
|
|
|
328
328
|
});
|
|
329
329
|
function w({
|
|
330
330
|
href: j,
|
|
331
|
-
children:
|
|
331
|
+
children: $,
|
|
332
332
|
...A
|
|
333
333
|
}) {
|
|
334
|
-
return /* @__PURE__ */ o(U, { href: j, className: i.siteLink, ...A, children:
|
|
334
|
+
return /* @__PURE__ */ o(U, { href: j, className: i.siteLink, ...A, children: $ });
|
|
335
335
|
}
|
|
336
336
|
export {
|
|
337
|
-
|
|
337
|
+
Wi as MainNav
|
|
338
338
|
};
|