@caseparts-org/caseblocks 0.0.245 → 0.0.246
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._suggestionDropdown_ukyka_1{display:flex;flex-direction:row;width:100%;border:1px solid;border-color:var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 8px 24px #0f172a14;overflow:hidden;background-color:#fff}@media (max-width: 767px){._suggestionDropdown_ukyka_1{flex-direction:column}}._leftColumn_ukyka_31{display:flex;flex-direction:column;border-right:1px solid var(--border-border-primary);background-color:#fff;min-width:190px;max-width:220px}@media (max-width: 767px){._leftColumn_ukyka_31{max-width:none;border-right:0;border-bottom:1px solid var(--border-border-primary)}}._leftColumnFullWidth_ukyka_59{flex:1;max-width:none}._suggestionSectionFullHeight_ukyka_69{display:flex;flex:1}._rightColumn_ukyka_79{display:flex;flex:1;flex-direction:column;gap:var(--spacing-spacing-1xs);padding:var(--spacing-spacing-default);background:var(--color-brand-primary-primary-pale-gray);min-width:250px}._categorySection_ukyka_99{border-top:1px solid var(--border-border-primary)}._suggestions_ukyka_105,._categories_ukyka_107{display:flex;flex-direction:column;gap:0;padding:0}._suggestionsFullHeight_ukyka_121{flex:1}._customPartLink_ukyka_129{display:flex;align-items:center;gap:var(--spacing-spacing-4xs);box-sizing:border-box;width:100%;padding:var(--spacing-spacing-4xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestions_ukyka_105>:first-child,._categories_ukyka_107>:first-child{padding-top:var(--spacing-spacing-default);padding-right:var(--spacing-spacing-default);padding-left:var(--spacing-spacing-default);padding-bottom:var(--spacing-spacing-2xs)}._suggestions_ukyka_105>:last-child,._categories_ukyka_107>:last-child{margin-bottom:var(--spacing-spacing-2xs)}._suggestionLink_ukyka_173,._categoryLink_ukyka_175{display:block;box-sizing:border-box;width:100%;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestionLink_ukyka_173:hover,._categoryLink_ukyka_175:hover,._customPartLink_ukyka_129:hover{text-decoration:none;background-color:var(--color-alerts-light-teal-blue)}._activeOption_ukyka_211{background:var(--color-alerts-light-teal-blue)}._itemList_ukyka_219{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs);width:100%}._item_ukyka_219{display:flex;flex-direction:column;border:1px solid var(--border-border-primary);padding:var(--spacing-spacing-2xs);width:100%;background-color:#fff;transition:background-color .3s ease-in}._recentSearch_ukyka_257:hover,._item_ukyka_219:hover{background-color:var(--color-alerts-light-teal-blue)}._item_ukyka_219>a:hover{text-decoration:none}._activeItem_ukyka_275{border-color:var(--text-text-links);box-shadow:inset 0 0 0 1px var(--text-text-links)}._item_ukyka_219 img{height:60px;width:60px;object-fit:contain}._item_ukyka_219 a{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._itemInfo_ukyka_311{display:grid;gap:var(--spacing-spacing-4xs)}._recentSearches_ukyka_321{display:flex;flex-direction:column;background:var(--color-brand-primary-white);min-width:250px}._recentSearchesHeader_ukyka_335{padding:var(--spacing-spacing-default) var(--spacing-spacing-default) var(--spacing-spacing-2xs)}._recentSearchesList_ukyka_343{display:flex;flex-direction:column;gap:0;margin:0;padding:0}._recentSearch_ukyka_257{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-spacing-2xs);transition:background-color .3s ease-in}._recentSearchLink_ukyka_375{display:flex;flex:1;min-width:0;align-items:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._recentSearchLink_ukyka_375:hover{text-decoration:none}._clearRecentSearch_ukyka_399{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);border:0;background:transparent;color:var(--text-text-primary);cursor:pointer}
|
|
@@ -1,127 +1,130 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Text as
|
|
4
|
-
import { Link as
|
|
1
|
+
import { jsx as o, jsxs as e, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import D from "react";
|
|
3
|
+
import { Text as O } from "../../atoms/Text/Text.js";
|
|
4
|
+
import { Link as U } from "../../atoms/Link/Link.js";
|
|
5
5
|
import { Icon as y } from "../../atoms/Icon/Icon.js";
|
|
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
|
|
13
|
-
import { Account as
|
|
14
|
-
import { CategoryNav as
|
|
15
|
-
import { SuggestionDropdown as
|
|
16
|
-
import { getHideAtStyles as
|
|
6
|
+
import { Flex as z } from "../../atoms/Flex/Flex.js";
|
|
7
|
+
import { Grid as fi, Column as si } from "../../atoms/Grid/Grid.js";
|
|
8
|
+
import { Input as Z } from "../../atoms/Input/Input.js";
|
|
9
|
+
import { InputEndAdornmentButton as B } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
|
|
10
|
+
import { Logo as ci } from "../../molecules/Logo/Logo.js";
|
|
11
|
+
import { HamburgerMenu as ri } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
12
|
+
import { ShoppingCart as ai } from "../../molecules/Cart/Cart.js";
|
|
13
|
+
import { Account as _i } from "../../molecules/Account/Account.js";
|
|
14
|
+
import { CategoryNav as Ni } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
15
|
+
import { SuggestionDropdown as $ } from "../SuggestionDropdown/SuggestionDropdown.js";
|
|
16
|
+
import { getHideAtStyles as P } from "../../atoms/HideAt.js";
|
|
17
17
|
import { c as k } from "../../clsx-OuTLNxxd.js";
|
|
18
|
-
import '../../assets/MainNav.css';const
|
|
19
|
-
main:
|
|
20
|
-
column:
|
|
21
|
-
topNav:
|
|
22
|
-
logo:
|
|
23
|
-
operations:
|
|
18
|
+
import '../../assets/MainNav.css';const yi = "_main_12974_1", ki = "_column_12974_8", wi = "_topNav_12974_13", Di = "_logo_12974_21", bi = "_operations_12974_24", Ai = "_search_12974_31", vi = "_mobileSearch_12974_36", xi = "_suggestionDropdown_12974_39", Li = "_siteLink_12974_45", Ki = "_accountArea_12974_72", ui = "_category_12974_84", pi = "_categoryLink_12974_92", zi = "_menuList_12974_108", Bi = "_menuItemAction_12974_131", $i = "_shortcutIcon_12974_140", t = {
|
|
19
|
+
main: yi,
|
|
20
|
+
column: ki,
|
|
21
|
+
topNav: wi,
|
|
22
|
+
logo: Di,
|
|
23
|
+
operations: bi,
|
|
24
24
|
search: Ai,
|
|
25
|
-
mobileSearch:
|
|
26
|
-
suggestionDropdown:
|
|
27
|
-
siteLink:
|
|
28
|
-
accountArea:
|
|
29
|
-
category:
|
|
30
|
-
categoryLink:
|
|
25
|
+
mobileSearch: vi,
|
|
26
|
+
suggestionDropdown: xi,
|
|
27
|
+
siteLink: Li,
|
|
28
|
+
accountArea: Ki,
|
|
29
|
+
category: ui,
|
|
30
|
+
categoryLink: pi,
|
|
31
31
|
menuList: zi,
|
|
32
|
-
menuItemAction:
|
|
33
|
-
shortcutIcon:
|
|
34
|
-
},
|
|
32
|
+
menuItemAction: Bi,
|
|
33
|
+
shortcutIcon: $i
|
|
34
|
+
}, Zi = D.forwardRef(function({
|
|
35
35
|
account: F,
|
|
36
|
-
categories:
|
|
37
|
-
homeRoute:
|
|
38
|
-
faqRoute:
|
|
39
|
-
customPartsRoute:
|
|
40
|
-
aboutUsRoute:
|
|
41
|
-
contactRoute:
|
|
42
|
-
cart:
|
|
43
|
-
open:
|
|
36
|
+
categories: A,
|
|
37
|
+
homeRoute: C,
|
|
38
|
+
faqRoute: g,
|
|
39
|
+
customPartsRoute: E,
|
|
40
|
+
aboutUsRoute: V,
|
|
41
|
+
contactRoute: R,
|
|
42
|
+
cart: h,
|
|
43
|
+
open: S,
|
|
44
44
|
// consume external panel control props from CartPropsBase
|
|
45
|
-
className:
|
|
46
|
-
onLoginClick:
|
|
45
|
+
className: ii,
|
|
46
|
+
onLoginClick: ti,
|
|
47
47
|
searchInputProps: l,
|
|
48
48
|
searchValue: s,
|
|
49
49
|
onSearchValueChange: n,
|
|
50
50
|
onClearSearch: w,
|
|
51
51
|
onSearch: c,
|
|
52
|
-
searchSuggestions:
|
|
53
|
-
recentSearches:
|
|
52
|
+
searchSuggestions: m,
|
|
53
|
+
recentSearches: a,
|
|
54
54
|
onClearRecentSearch: H,
|
|
55
55
|
onCategoryClick: K,
|
|
56
|
-
onClickModelSerial:
|
|
57
|
-
onCartClick:
|
|
58
|
-
accountPopoverContent:
|
|
59
|
-
isAccountLoading:
|
|
60
|
-
isCategoriesLoading:
|
|
61
|
-
...
|
|
62
|
-
},
|
|
63
|
-
var
|
|
64
|
-
const [
|
|
56
|
+
onClickModelSerial: T,
|
|
57
|
+
onCartClick: oi,
|
|
58
|
+
accountPopoverContent: mi,
|
|
59
|
+
isAccountLoading: li,
|
|
60
|
+
isCategoriesLoading: ni,
|
|
61
|
+
...ei
|
|
62
|
+
}, di) {
|
|
63
|
+
var W;
|
|
64
|
+
const [q, _] = D.useState(!1), [d, N] = D.useState(-1), u = D.useRef(null), I = D.useRef(null), r = D.useId(), G = () => {
|
|
65
|
+
var i;
|
|
66
|
+
return (i = u.current) != null && i.offsetParent ? u.current : I.current;
|
|
67
|
+
}, v = q && !!s && !!m, M = q && !v && !!(a != null && a.length), x = v ? ((m == null ? void 0 : m.terms.length) ?? 0) + ((m == null ? void 0 : m.categories.length) ?? 0) + (((W = m == null ? void 0 : m.customParts) == null ? void 0 : W.length) ?? 0) + ((m == null ? void 0 : m.items.length) ?? 0) : M ? (a == null ? void 0 : a.length) ?? 0 : 0, Q = {
|
|
65
68
|
...l,
|
|
66
69
|
onChange: (i) => {
|
|
67
|
-
var
|
|
68
|
-
|
|
70
|
+
var f;
|
|
71
|
+
N(-1), (f = l == null ? void 0 : l.onChange) == null || f.call(l, i);
|
|
69
72
|
},
|
|
70
73
|
onFocus: (i) => {
|
|
71
|
-
var
|
|
72
|
-
(
|
|
74
|
+
var f;
|
|
75
|
+
(f = l == null ? void 0 : l.onFocus) == null || f.call(l, i), _(!0);
|
|
73
76
|
},
|
|
74
77
|
onBlur: (i) => {
|
|
75
|
-
var
|
|
76
|
-
(
|
|
78
|
+
var f;
|
|
79
|
+
(f = l == null ? void 0 : l.onBlur) == null || f.call(l, i), _(!1);
|
|
77
80
|
},
|
|
78
81
|
onKeyDown: (i) => {
|
|
79
|
-
var
|
|
80
|
-
if ((
|
|
81
|
-
if (i.key === "ArrowDown" &&
|
|
82
|
-
i.preventDefault(),
|
|
82
|
+
var f, J, X;
|
|
83
|
+
if ((f = l == null ? void 0 : l.onKeyDown) == null || f.call(l, i), !i.defaultPrevented) {
|
|
84
|
+
if (i.key === "ArrowDown" && x > 0) {
|
|
85
|
+
i.preventDefault(), N((L) => L >= x - 1 ? 0 : L + 1);
|
|
83
86
|
return;
|
|
84
87
|
}
|
|
85
|
-
if (i.key === "ArrowUp" &&
|
|
86
|
-
i.preventDefault(),
|
|
88
|
+
if (i.key === "ArrowUp" && x > 0) {
|
|
89
|
+
i.preventDefault(), N((L) => L <= 0 ? x - 1 : L - 1);
|
|
87
90
|
return;
|
|
88
91
|
}
|
|
89
|
-
if (i.key === "Tab" &&
|
|
90
|
-
i.preventDefault(), n == null || n((
|
|
92
|
+
if (i.key === "Tab" && v && d >= 0 && d < ((m == null ? void 0 : m.terms.length) ?? 0)) {
|
|
93
|
+
i.preventDefault(), n == null || n((m == null ? void 0 : m.terms[d].name) ?? ""), N(-1);
|
|
91
94
|
return;
|
|
92
95
|
}
|
|
93
|
-
if (i.key === "Enter" &&
|
|
94
|
-
i.preventDefault(), (
|
|
96
|
+
if (i.key === "Enter" && d >= 0 && d < x) {
|
|
97
|
+
i.preventDefault(), (J = document.getElementById(`${r}-${d}`)) == null || J.click();
|
|
95
98
|
return;
|
|
96
99
|
}
|
|
97
|
-
i.key === "Enter" && (i.preventDefault(),
|
|
100
|
+
i.key === "Enter" && (i.preventDefault(), _(!1), (X = G()) == null || X.blur(), c == null || c(s ?? ""));
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
}, p = (i) => {
|
|
101
|
-
var
|
|
102
|
-
i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(),
|
|
104
|
+
var f;
|
|
105
|
+
i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(), N(-1), n == null || n(`${s ?? ""}${i.key}`), (f = G()) == null || f.focus());
|
|
103
106
|
};
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
107
|
+
return /* @__PURE__ */ o(fi, { ...ei, gridWrapperClassName: k(t.main, ii), children: /* @__PURE__ */ e(si, { span: 12, className: t.column, children: [
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
z,
|
|
107
110
|
{
|
|
108
111
|
flexDirection: "row",
|
|
109
112
|
alignItems: "center",
|
|
110
113
|
justifyContent: "space-between",
|
|
111
114
|
className: t.topNav,
|
|
112
115
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
116
|
+
/* @__PURE__ */ o("div", { className: t.logo, children: /* @__PURE__ */ o(U, { href: C, children: /* @__PURE__ */ o(ci, {}) }) }),
|
|
117
|
+
/* @__PURE__ */ e(
|
|
118
|
+
z,
|
|
116
119
|
{
|
|
117
120
|
flexDirection: "row",
|
|
118
121
|
alignItems: "center",
|
|
119
122
|
justifyContent: "flex-end",
|
|
120
123
|
className: t.operations,
|
|
121
124
|
children: [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
125
|
+
/* @__PURE__ */ e(z, { flexDirection: "row", hideAt: ["sm"], className: t.search, children: [
|
|
126
|
+
/* @__PURE__ */ o(
|
|
127
|
+
Z,
|
|
125
128
|
{
|
|
126
129
|
variant: "search",
|
|
127
130
|
label: "Search",
|
|
@@ -130,23 +133,25 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
130
133
|
autoComplete: "off",
|
|
131
134
|
"aria-autocomplete": "list",
|
|
132
135
|
"aria-controls": r,
|
|
133
|
-
"aria-activedescendant":
|
|
134
|
-
...
|
|
135
|
-
ref:
|
|
136
|
+
"aria-activedescendant": d >= 0 ? `${r}-${d}` : void 0,
|
|
137
|
+
...Q,
|
|
138
|
+
ref: u,
|
|
136
139
|
value: s,
|
|
137
|
-
endAdornment: /* @__PURE__ */
|
|
138
|
-
!!s && /* @__PURE__ */
|
|
139
|
-
|
|
140
|
+
endAdornment: /* @__PURE__ */ e(Y, { children: [
|
|
141
|
+
!!s && /* @__PURE__ */ o(
|
|
142
|
+
B,
|
|
140
143
|
{
|
|
141
144
|
"aria-label": "Clear search",
|
|
145
|
+
onMouseDown: (i) => i.preventDefault(),
|
|
142
146
|
onClick: () => {
|
|
143
|
-
|
|
147
|
+
var i;
|
|
148
|
+
N(-1), w == null || w(), (i = u.current) == null || i.focus();
|
|
144
149
|
},
|
|
145
150
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
146
151
|
}
|
|
147
152
|
),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
|
|
153
|
+
/* @__PURE__ */ o(
|
|
154
|
+
B,
|
|
150
155
|
{
|
|
151
156
|
"aria-label": "Submit search",
|
|
152
157
|
onClick: () => c == null ? void 0 : c(s ?? ""),
|
|
@@ -156,108 +161,108 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
156
161
|
] })
|
|
157
162
|
}
|
|
158
163
|
),
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
v && m && /* @__PURE__ */ o(
|
|
165
|
+
$,
|
|
161
166
|
{
|
|
162
|
-
...
|
|
163
|
-
activeOptionIndex:
|
|
167
|
+
...m,
|
|
168
|
+
activeOptionIndex: d,
|
|
164
169
|
optionIdPrefix: r,
|
|
165
170
|
onKeyDown: p,
|
|
166
171
|
onSuggestionClick: (i) => {
|
|
167
|
-
n == null || n((i == null ? void 0 : i.name) ?? s ?? ""),
|
|
172
|
+
n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), _(!1);
|
|
168
173
|
},
|
|
169
174
|
className: t.suggestionDropdown
|
|
170
175
|
}
|
|
171
176
|
),
|
|
172
|
-
|
|
173
|
-
|
|
177
|
+
M && /* @__PURE__ */ o(
|
|
178
|
+
$,
|
|
174
179
|
{
|
|
175
180
|
terms: [],
|
|
176
181
|
categories: [],
|
|
177
182
|
items: [],
|
|
178
183
|
view: "recent-searches",
|
|
179
|
-
recentSearches:
|
|
184
|
+
recentSearches: a,
|
|
180
185
|
onClearRecentSearch: H,
|
|
181
|
-
activeOptionIndex:
|
|
186
|
+
activeOptionIndex: d,
|
|
182
187
|
optionIdPrefix: r,
|
|
183
188
|
onKeyDown: p,
|
|
184
189
|
onSuggestionClick: (i) => {
|
|
185
|
-
n == null || n((i == null ? void 0 : i.term) ?? s ?? ""),
|
|
190
|
+
n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), _(!1);
|
|
186
191
|
},
|
|
187
192
|
className: t.suggestionDropdown
|
|
188
193
|
}
|
|
189
194
|
)
|
|
190
195
|
] }),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ e("button", { onClick: T, className: k(t.siteLink, P(["sm", "md"])), children: [
|
|
197
|
+
/* @__PURE__ */ o(y, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
|
|
193
198
|
"Model/Serial"
|
|
194
199
|
] }),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
|
|
200
|
+
/* @__PURE__ */ o(b, { href: E, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
201
|
+
/* @__PURE__ */ o(b, { href: R, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
202
|
+
/* @__PURE__ */ o("div", { className: t.accountArea, children: /* @__PURE__ */ o(
|
|
203
|
+
_i,
|
|
199
204
|
{
|
|
200
205
|
account: F,
|
|
201
|
-
onLoginClick:
|
|
206
|
+
onLoginClick: ti,
|
|
202
207
|
className: t.avatar,
|
|
203
|
-
popoverContent:
|
|
204
|
-
isAccountLoading:
|
|
208
|
+
popoverContent: mi,
|
|
209
|
+
isAccountLoading: li
|
|
205
210
|
}
|
|
206
211
|
) }),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
|
|
212
|
+
/* @__PURE__ */ o(
|
|
213
|
+
ai,
|
|
209
214
|
{
|
|
210
|
-
ref:
|
|
211
|
-
cart:
|
|
212
|
-
open:
|
|
213
|
-
onCartClick:
|
|
215
|
+
ref: di,
|
|
216
|
+
cart: h,
|
|
217
|
+
open: S,
|
|
218
|
+
onCartClick: oi
|
|
214
219
|
}
|
|
215
220
|
),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ e(ri, { hideAt: ["lg"], children: [
|
|
222
|
+
/* @__PURE__ */ e("section", { children: [
|
|
223
|
+
/* @__PURE__ */ o(O, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
|
|
224
|
+
/* @__PURE__ */ e("ul", { className: t.menuList, children: [
|
|
225
|
+
/* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(
|
|
221
226
|
"button",
|
|
222
227
|
{
|
|
223
|
-
onClick:
|
|
228
|
+
onClick: T,
|
|
224
229
|
"data-hamburger-close": "true",
|
|
225
|
-
className: k(t.siteLink, t.menuItemAction,
|
|
230
|
+
className: k(t.siteLink, t.menuItemAction, P(["lg"])),
|
|
226
231
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ o(y, { iconKey: "fa-regular fa-sparkles", size: "sm", className: t.shortcutIcon }),
|
|
228
233
|
"Model/Serial"
|
|
229
234
|
]
|
|
230
235
|
}
|
|
231
236
|
) }),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: E, className: k(t.siteLink, t.menuItemAction), children: [
|
|
238
|
+
/* @__PURE__ */ o(y, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: t.shortcutIcon }),
|
|
234
239
|
"Custom Parts"
|
|
235
240
|
] }) }),
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: R, className: k(t.siteLink, t.menuItemAction), children: [
|
|
242
|
+
/* @__PURE__ */ o(y, { iconKey: "fa-regular fa-envelope", size: "sm", className: t.shortcutIcon }),
|
|
238
243
|
"Contact Us"
|
|
239
244
|
] }) }),
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: g, className: k(t.siteLink, t.menuItemAction), children: [
|
|
246
|
+
/* @__PURE__ */ o(y, { iconKey: "fa-solid fa-question", size: "sm", className: t.shortcutIcon }),
|
|
242
247
|
"FAQ"
|
|
243
248
|
] }) }),
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: V, className: k(t.siteLink, t.menuItemAction), children: [
|
|
250
|
+
/* @__PURE__ */ o(y, { iconKey: "fa-regular fa-people-group", size: "sm", className: t.shortcutIcon }),
|
|
246
251
|
"About Us"
|
|
247
252
|
] }) })
|
|
248
253
|
] })
|
|
249
254
|
] }),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
|
|
255
|
+
/* @__PURE__ */ e("section", { children: [
|
|
256
|
+
/* @__PURE__ */ o(O, { size: "md", weight: "semibold", children: "Shop by category" }),
|
|
257
|
+
/* @__PURE__ */ o("ul", { className: t.menuList, children: A && A.map((i) => /* @__PURE__ */ o("li", { className: t.category, children: /* @__PURE__ */ e(
|
|
258
|
+
U,
|
|
254
259
|
{
|
|
255
260
|
href: i.route,
|
|
256
261
|
className: t.categoryLink,
|
|
257
262
|
onClick: () => K == null ? void 0 : K(i),
|
|
258
263
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ o(O, { size: "sm", children: i.label }),
|
|
265
|
+
/* @__PURE__ */ o(
|
|
261
266
|
y,
|
|
262
267
|
{
|
|
263
268
|
iconKey: "fa-solid fa-chevron-right",
|
|
@@ -276,9 +281,9 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
276
281
|
]
|
|
277
282
|
}
|
|
278
283
|
),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
|
|
284
|
+
/* @__PURE__ */ o(z, { flexDirection: "row", hideAt: ["md", "lg"], className: t.mobileSearch, children: /* @__PURE__ */ e("div", { className: t.search, children: [
|
|
285
|
+
/* @__PURE__ */ o(
|
|
286
|
+
Z,
|
|
282
287
|
{
|
|
283
288
|
variant: "search",
|
|
284
289
|
label: "Search",
|
|
@@ -287,23 +292,25 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
287
292
|
autoComplete: "off",
|
|
288
293
|
"aria-autocomplete": "list",
|
|
289
294
|
"aria-controls": r,
|
|
290
|
-
"aria-activedescendant":
|
|
291
|
-
...
|
|
292
|
-
ref:
|
|
295
|
+
"aria-activedescendant": d >= 0 ? `${r}-${d}` : void 0,
|
|
296
|
+
...Q,
|
|
297
|
+
ref: I,
|
|
293
298
|
value: s,
|
|
294
|
-
endAdornment: /* @__PURE__ */
|
|
295
|
-
!!s && /* @__PURE__ */
|
|
296
|
-
|
|
299
|
+
endAdornment: /* @__PURE__ */ e(Y, { children: [
|
|
300
|
+
!!s && /* @__PURE__ */ o(
|
|
301
|
+
B,
|
|
297
302
|
{
|
|
298
303
|
"aria-label": "Clear search",
|
|
304
|
+
onMouseDown: (i) => i.preventDefault(),
|
|
299
305
|
onClick: () => {
|
|
300
|
-
|
|
306
|
+
var i;
|
|
307
|
+
N(-1), w == null || w(), (i = I.current) == null || i.focus();
|
|
301
308
|
},
|
|
302
309
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
303
310
|
}
|
|
304
311
|
),
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
|
|
312
|
+
/* @__PURE__ */ o(
|
|
313
|
+
B,
|
|
307
314
|
{
|
|
308
315
|
"aria-label": "Submit search",
|
|
309
316
|
onClick: () => c == null ? void 0 : c(s ?? ""),
|
|
@@ -313,45 +320,45 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
313
320
|
] })
|
|
314
321
|
}
|
|
315
322
|
),
|
|
316
|
-
|
|
317
|
-
n == null || n((i == null ? void 0 : i.name) ?? s ?? ""),
|
|
323
|
+
v && m && /* @__PURE__ */ o($, { ...m, activeOptionIndex: d, optionIdPrefix: r, onKeyDown: p, onSuggestionClick: (i) => {
|
|
324
|
+
n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), _(!1);
|
|
318
325
|
}, className: t.suggestionDropdown }),
|
|
319
|
-
|
|
320
|
-
|
|
326
|
+
M && /* @__PURE__ */ o(
|
|
327
|
+
$,
|
|
321
328
|
{
|
|
322
329
|
terms: [],
|
|
323
330
|
categories: [],
|
|
324
331
|
items: [],
|
|
325
332
|
view: "recent-searches",
|
|
326
|
-
recentSearches:
|
|
333
|
+
recentSearches: a,
|
|
327
334
|
onClearRecentSearch: H,
|
|
328
|
-
activeOptionIndex:
|
|
335
|
+
activeOptionIndex: d,
|
|
329
336
|
optionIdPrefix: r,
|
|
330
337
|
onKeyDown: p,
|
|
331
338
|
onSuggestionClick: (i) => {
|
|
332
|
-
n == null || n((i == null ? void 0 : i.term) ?? s ?? ""),
|
|
339
|
+
n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), _(!1);
|
|
333
340
|
},
|
|
334
341
|
className: t.suggestionDropdown
|
|
335
342
|
}
|
|
336
343
|
)
|
|
337
344
|
] }) }),
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
-
|
|
345
|
+
/* @__PURE__ */ o(
|
|
346
|
+
Ni,
|
|
340
347
|
{
|
|
341
|
-
categories:
|
|
342
|
-
isCategoriesLoading:
|
|
348
|
+
categories: A,
|
|
349
|
+
isCategoriesLoading: ni,
|
|
343
350
|
onCategoryClick: K
|
|
344
351
|
}
|
|
345
352
|
)
|
|
346
353
|
] }) });
|
|
347
354
|
});
|
|
348
|
-
function
|
|
349
|
-
href:
|
|
355
|
+
function b({
|
|
356
|
+
href: j,
|
|
350
357
|
children: F,
|
|
351
|
-
...
|
|
358
|
+
...A
|
|
352
359
|
}) {
|
|
353
|
-
return /* @__PURE__ */
|
|
360
|
+
return /* @__PURE__ */ o(U, { href: j, className: t.siteLink, ...A, children: F });
|
|
354
361
|
}
|
|
355
362
|
export {
|
|
356
|
-
|
|
363
|
+
Zi as MainNav
|
|
357
364
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { Text as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { c as
|
|
6
|
-
import { Image as
|
|
7
|
-
import '../../assets/SuggestionDropdown.css';const F = "
|
|
8
|
-
suggestionDropdown:
|
|
9
|
-
leftColumn:
|
|
10
|
-
leftColumnFullWidth:
|
|
11
|
-
suggestionSectionFullHeight:
|
|
12
|
-
rightColumn:
|
|
13
|
-
categorySection:
|
|
14
|
-
suggestions:
|
|
15
|
-
categories:
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Text as h } from "../../atoms/Text/Text.js";
|
|
3
|
+
import { Link as d } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Icon as p } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
6
|
+
import { Image as v } from "../../atoms/Image/Image.js";
|
|
7
|
+
import '../../assets/SuggestionDropdown.css';const z = "_suggestionDropdown_ukyka_1", F = "_leftColumn_ukyka_31", H = "_leftColumnFullWidth_ukyka_59", $ = "_suggestionSectionFullHeight_ukyka_69", D = "_rightColumn_ukyka_79", w = "_categorySection_ukyka_99", b = "_suggestions_ukyka_105", T = "_categories_ukyka_107", q = "_suggestionsFullHeight_ukyka_121", W = "_customPartLink_ukyka_129", j = "_suggestionLink_ukyka_173", K = "_categoryLink_ukyka_175", M = "_activeOption_ukyka_211", O = "_itemList_ukyka_219", R = "_item_ukyka_219", x = "_recentSearch_ukyka_257", A = "_activeItem_ukyka_275", B = "_itemInfo_ukyka_311", E = "_recentSearches_ukyka_321", G = "_recentSearchesHeader_ukyka_335", J = "_recentSearchesList_ukyka_343", Q = "_recentSearchLink_ukyka_375", U = "_clearRecentSearch_ukyka_399", l = {
|
|
8
|
+
suggestionDropdown: z,
|
|
9
|
+
leftColumn: F,
|
|
10
|
+
leftColumnFullWidth: H,
|
|
11
|
+
suggestionSectionFullHeight: $,
|
|
12
|
+
rightColumn: D,
|
|
13
|
+
categorySection: w,
|
|
14
|
+
suggestions: b,
|
|
15
|
+
categories: T,
|
|
16
16
|
suggestionsFullHeight: q,
|
|
17
17
|
customPartLink: W,
|
|
18
18
|
suggestionLink: j,
|
|
@@ -20,117 +20,117 @@ import '../../assets/SuggestionDropdown.css';const F = "_suggestionDropdown_otg7
|
|
|
20
20
|
activeOption: M,
|
|
21
21
|
itemList: O,
|
|
22
22
|
item: R,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
recentSearch: x,
|
|
24
|
+
activeItem: A,
|
|
25
|
+
itemInfo: B,
|
|
26
|
+
recentSearches: E,
|
|
27
|
+
recentSearchesHeader: G,
|
|
28
|
+
recentSearchesList: J,
|
|
29
29
|
recentSearchLink: Q,
|
|
30
30
|
clearRecentSearch: U
|
|
31
31
|
};
|
|
32
32
|
function I({
|
|
33
|
-
terms:
|
|
34
|
-
categories:
|
|
35
|
-
items:
|
|
36
|
-
customParts:
|
|
37
|
-
view:
|
|
38
|
-
recentSearches:
|
|
39
|
-
onClearRecentSearch:
|
|
33
|
+
terms: a,
|
|
34
|
+
categories: i,
|
|
35
|
+
items: m,
|
|
36
|
+
customParts: _ = [],
|
|
37
|
+
view: N = "suggestions",
|
|
38
|
+
recentSearches: k = [],
|
|
39
|
+
onClearRecentSearch: g,
|
|
40
40
|
onSuggestionClick: n,
|
|
41
|
-
activeOptionIndex:
|
|
42
|
-
optionIdPrefix:
|
|
43
|
-
onKeyDown:
|
|
44
|
-
className:
|
|
41
|
+
activeOptionIndex: r = -1,
|
|
42
|
+
optionIdPrefix: u,
|
|
43
|
+
onKeyDown: f,
|
|
44
|
+
className: L
|
|
45
45
|
}) {
|
|
46
|
-
return
|
|
46
|
+
return a.length === 0 && i.length === 0 && m.length === 0 && _.length === 0 && k.length === 0 ? null : N === "recent-searches" ? /* @__PURE__ */ c(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
-
id:
|
|
49
|
+
id: u,
|
|
50
50
|
role: "listbox",
|
|
51
|
-
className:
|
|
52
|
-
onKeyDown:
|
|
51
|
+
className: o(l.suggestionDropdown, l.recentSearches, L),
|
|
52
|
+
onKeyDown: f,
|
|
53
53
|
onMouseDown: (e) => e.preventDefault(),
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
55
|
+
/* @__PURE__ */ t("div", { className: l.recentSearchesHeader, children: /* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Recent Searches" }) }),
|
|
56
|
+
/* @__PURE__ */ t("ol", { className: l.recentSearchesList, children: k.map((e) => /* @__PURE__ */ c("li", { className: l.recentSearch, children: [
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
d,
|
|
59
59
|
{
|
|
60
60
|
href: e.url,
|
|
61
|
-
id: `${
|
|
61
|
+
id: `${u}-${k.indexOf(e)}`,
|
|
62
62
|
role: "option",
|
|
63
|
-
"aria-selected":
|
|
64
|
-
className:
|
|
63
|
+
"aria-selected": r === k.indexOf(e),
|
|
64
|
+
className: o(l.recentSearchLink, { [l.activeOption]: r === k.indexOf(e) }),
|
|
65
65
|
onClick: () => n == null ? void 0 : n(e),
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ t(h, { size: "sm", children: e.term })
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ t(
|
|
70
70
|
"button",
|
|
71
71
|
{
|
|
72
72
|
type: "button",
|
|
73
|
-
className:
|
|
73
|
+
className: l.clearRecentSearch,
|
|
74
74
|
"aria-label": `Clear recent search: ${e.term}`,
|
|
75
|
-
onClick: () =>
|
|
76
|
-
children: /* @__PURE__ */
|
|
75
|
+
onClick: () => g == null ? void 0 : g(e),
|
|
76
|
+
children: /* @__PURE__ */ t(p, { iconKey: "fa-regular fa-xmark", size: "sm" })
|
|
77
77
|
}
|
|
78
78
|
)
|
|
79
79
|
] }, e.url)) })
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
-
) : /* @__PURE__ */ c("div", { id:
|
|
83
|
-
(
|
|
84
|
-
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
(e, s) => /* @__PURE__ */
|
|
88
|
-
|
|
82
|
+
) : /* @__PURE__ */ c("div", { id: u, role: "listbox", className: o(l.suggestionDropdown, L), onKeyDown: f, onMouseDown: (e) => e.preventDefault(), children: [
|
|
83
|
+
(a.length > 0 || i.length > 0 || _.length > 0) && /* @__PURE__ */ c("div", { className: o(l.leftColumn, { [l.leftColumnFullWidth]: m.length === 0 }), children: [
|
|
84
|
+
a.length > 0 && /* @__PURE__ */ t("div", { className: o(l.suggestionSection, { [l.suggestionSectionFullHeight]: i.length === 0 }), children: /* @__PURE__ */ c("div", { className: o(l.suggestions, { [l.suggestionsFullHeight]: i.length === 0 }), children: [
|
|
85
|
+
/* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
|
|
86
|
+
a.map(
|
|
87
|
+
(e, s) => /* @__PURE__ */ t(h, { size: "sm", children: /* @__PURE__ */ t(
|
|
88
|
+
d,
|
|
89
89
|
{
|
|
90
90
|
href: e.url,
|
|
91
|
-
id: `${
|
|
91
|
+
id: `${u}-${s}`,
|
|
92
92
|
role: "option",
|
|
93
|
-
"aria-selected":
|
|
94
|
-
className:
|
|
93
|
+
"aria-selected": r === s,
|
|
94
|
+
className: o(l.suggestionLink, { [l.activeOption]: r === s }),
|
|
95
95
|
onClick: () => n == null ? void 0 : n(e),
|
|
96
96
|
children: e.name
|
|
97
97
|
}
|
|
98
98
|
) }, e.url)
|
|
99
99
|
)
|
|
100
100
|
] }) }),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
104
|
-
(e, s) => /* @__PURE__ */
|
|
105
|
-
|
|
101
|
+
i.length > 0 && /* @__PURE__ */ t("div", { className: l.categorySection, children: /* @__PURE__ */ c("div", { className: l.categories, children: [
|
|
102
|
+
/* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
|
|
103
|
+
i.map(
|
|
104
|
+
(e, s) => /* @__PURE__ */ t(h, { size: "sm", children: /* @__PURE__ */ t(
|
|
105
|
+
d,
|
|
106
106
|
{
|
|
107
107
|
href: e.url,
|
|
108
|
-
id: `${
|
|
108
|
+
id: `${u}-${a.length + s}`,
|
|
109
109
|
role: "option",
|
|
110
|
-
"aria-selected":
|
|
111
|
-
className:
|
|
110
|
+
"aria-selected": r === a.length + s,
|
|
111
|
+
className: o(l.categoryLink, { [l.activeOption]: r === a.length + s }),
|
|
112
112
|
onClick: () => n == null ? void 0 : n(),
|
|
113
113
|
children: e.name
|
|
114
114
|
}
|
|
115
115
|
) }, e.categoryKey)
|
|
116
116
|
)
|
|
117
117
|
] }) }),
|
|
118
|
-
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
const
|
|
118
|
+
_.length > 0 && /* @__PURE__ */ t("div", { className: l.categorySection, children: /* @__PURE__ */ c("div", { className: l.categories, children: [
|
|
119
|
+
/* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Custom Parts" }),
|
|
120
|
+
_.map((e, s) => {
|
|
121
|
+
const y = a.length + i.length + s;
|
|
122
122
|
return /* @__PURE__ */ c(
|
|
123
|
-
|
|
123
|
+
d,
|
|
124
124
|
{
|
|
125
125
|
href: e.url,
|
|
126
|
-
id: `${
|
|
126
|
+
id: `${u}-${y}`,
|
|
127
127
|
role: "option",
|
|
128
|
-
"aria-selected":
|
|
129
|
-
className:
|
|
128
|
+
"aria-selected": r === y,
|
|
129
|
+
className: o(l.customPartLink, { [l.activeOption]: r === y }),
|
|
130
130
|
onClick: () => n == null ? void 0 : n(),
|
|
131
131
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ t(p, { iconKey: e.icon, size: "sm" }),
|
|
133
|
+
/* @__PURE__ */ t(h, { size: "sm", children: e.label })
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
136
|
e.id
|
|
@@ -138,20 +138,20 @@ function I({
|
|
|
138
138
|
})
|
|
139
139
|
] }) })
|
|
140
140
|
] }),
|
|
141
|
-
|
|
142
|
-
(e, s) => /* @__PURE__ */
|
|
143
|
-
|
|
141
|
+
m.length > 0 && /* @__PURE__ */ t("div", { className: l.rightColumn, children: /* @__PURE__ */ t("ol", { className: l.itemList, children: m.map(
|
|
142
|
+
(e, s) => /* @__PURE__ */ t("li", { className: o(l.item, { [l.activeItem]: r === a.length + i.length + _.length + s }), children: /* @__PURE__ */ c(
|
|
143
|
+
d,
|
|
144
144
|
{
|
|
145
145
|
href: e.url,
|
|
146
|
-
id: `${
|
|
146
|
+
id: `${u}-${a.length + i.length + _.length + s}`,
|
|
147
147
|
role: "option",
|
|
148
|
-
"aria-selected":
|
|
148
|
+
"aria-selected": r === a.length + i.length + _.length + s,
|
|
149
149
|
onClick: () => n == null ? void 0 : n(),
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */ c("div", { className:
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ t(v, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
|
|
152
|
+
/* @__PURE__ */ c("div", { className: l.itemInfo, children: [
|
|
153
|
+
/* @__PURE__ */ t(h, { size: "sm", children: e.description }),
|
|
154
|
+
/* @__PURE__ */ t(h, { size: "xs", colorToken: "quaternary", children: e.itemId })
|
|
155
155
|
] })
|
|
156
156
|
]
|
|
157
157
|
}
|