@caseparts-org/caseblocks 0.0.245 → 0.0.247
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 m, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Text as
|
|
4
|
-
import { Link as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Flex as
|
|
7
|
-
import { Grid as
|
|
8
|
-
import { Input as
|
|
9
|
-
import { InputEndAdornmentButton as
|
|
10
|
-
import { Logo as
|
|
1
|
+
import { jsx as m, jsxs as f, 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
|
+
import { Icon as k } from "../../atoms/Icon/Icon.js";
|
|
6
|
+
import { Flex as u } from "../../atoms/Flex/Flex.js";
|
|
7
|
+
import { Grid as ei, Column as ci } 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 ri } from "../../molecules/Logo/Logo.js";
|
|
11
11
|
import { HamburgerMenu as si } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
12
|
-
import { ShoppingCart as
|
|
13
|
-
import { Account as
|
|
14
|
-
import { CategoryNav as
|
|
15
|
-
import { SuggestionDropdown as
|
|
16
|
-
import { getHideAtStyles as
|
|
17
|
-
import { c as
|
|
18
|
-
import '../../assets/MainNav.css';const
|
|
19
|
-
main:
|
|
12
|
+
import { ShoppingCart as _i } from "../../molecules/Cart/Cart.js";
|
|
13
|
+
import { Account as Ni } from "../../molecules/Account/Account.js";
|
|
14
|
+
import { CategoryNav as yi } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
15
|
+
import { SuggestionDropdown as $ } from "../SuggestionDropdown/SuggestionDropdown.js";
|
|
16
|
+
import { getHideAtStyles as C } from "../../atoms/HideAt.js";
|
|
17
|
+
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
18
|
+
import '../../assets/MainNav.css';const ki = "_main_12974_1", ai = "_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", pi = "_category_12974_84", zi = "_categoryLink_12974_92", ui = "_menuList_12974_108", Bi = "_menuItemAction_12974_131", $i = "_shortcutIcon_12974_140", t = {
|
|
19
|
+
main: ki,
|
|
20
20
|
column: ai,
|
|
21
|
-
topNav:
|
|
22
|
-
logo:
|
|
23
|
-
operations:
|
|
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:
|
|
31
|
-
menuList:
|
|
32
|
-
menuItemAction:
|
|
33
|
-
shortcutIcon:
|
|
34
|
-
},
|
|
25
|
+
mobileSearch: vi,
|
|
26
|
+
suggestionDropdown: xi,
|
|
27
|
+
siteLink: Li,
|
|
28
|
+
accountArea: Ki,
|
|
29
|
+
category: pi,
|
|
30
|
+
categoryLink: zi,
|
|
31
|
+
menuList: ui,
|
|
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: P,
|
|
38
|
+
faqRoute: V,
|
|
39
|
+
customPartsRoute: E,
|
|
40
|
+
aboutUsRoute: g,
|
|
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
|
-
searchValue:
|
|
49
|
-
onSearchValueChange:
|
|
48
|
+
searchValue: c,
|
|
49
|
+
onSearchValueChange: d,
|
|
50
50
|
onClearSearch: w,
|
|
51
|
-
onSearch:
|
|
51
|
+
onSearch: r,
|
|
52
52
|
searchSuggestions: o,
|
|
53
53
|
recentSearches: _,
|
|
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: mi,
|
|
58
|
+
accountPopoverContent: oi,
|
|
59
|
+
isAccountLoading: li,
|
|
60
|
+
isCategoriesLoading: ni,
|
|
61
|
+
...di
|
|
62
|
+
}, fi) {
|
|
63
|
+
var W;
|
|
64
|
+
const [q, N] = D.useState(!1), [e, y] = D.useState(-1), p = D.useRef(null), I = D.useRef(null), s = D.useId(), G = () => {
|
|
65
|
+
var i;
|
|
66
|
+
return (i = p.current) != null && i.offsetParent ? p.current : I.current;
|
|
67
|
+
}, v = q && !!c && !!o, M = q && !v && !!(_ != null && _.length), x = v ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((W = o == null ? void 0 : o.customParts) == null ? void 0 : W.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : M ? (_ == null ? void 0 : _.length) ?? 0 : 0, Q = {
|
|
65
68
|
...l,
|
|
66
69
|
onChange: (i) => {
|
|
67
|
-
var
|
|
68
|
-
|
|
70
|
+
var n;
|
|
71
|
+
y(-1), (n = l == null ? void 0 : l.onChange) == null || n.call(l, i);
|
|
69
72
|
},
|
|
70
73
|
onFocus: (i) => {
|
|
71
|
-
var
|
|
72
|
-
(
|
|
74
|
+
var n;
|
|
75
|
+
(n = l == null ? void 0 : l.onFocus) == null || n.call(l, i), N(!0);
|
|
73
76
|
},
|
|
74
77
|
onBlur: (i) => {
|
|
75
|
-
var
|
|
76
|
-
(
|
|
78
|
+
var n;
|
|
79
|
+
(n = l == null ? void 0 : l.onBlur) == null || n.call(l, i), N(!1);
|
|
77
80
|
},
|
|
78
81
|
onKeyDown: (i) => {
|
|
79
|
-
var
|
|
80
|
-
if ((
|
|
81
|
-
if (i.key === "ArrowDown" &&
|
|
82
|
-
i.preventDefault(),
|
|
82
|
+
var n, J, X;
|
|
83
|
+
if ((n = l == null ? void 0 : l.onKeyDown) == null || n.call(l, i), !i.defaultPrevented) {
|
|
84
|
+
if (i.key === "ArrowDown" && x > 0) {
|
|
85
|
+
i.preventDefault(), y((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(), y((L) => L <= 0 ? x - 1 : L - 1);
|
|
87
90
|
return;
|
|
88
91
|
}
|
|
89
|
-
if (i.key === "Tab" &&
|
|
90
|
-
i.preventDefault(),
|
|
92
|
+
if (i.key === "Tab" && v && e >= 0 && e < ((o == null ? void 0 : o.terms.length) ?? 0)) {
|
|
93
|
+
i.preventDefault(), d == null || d((o == null ? void 0 : o.terms[e].name) ?? ""), y(-1);
|
|
91
94
|
return;
|
|
92
95
|
}
|
|
93
|
-
if (i.key === "Enter" &&
|
|
94
|
-
i.preventDefault(), (
|
|
96
|
+
if (i.key === "Enter" && e >= 0 && e < x) {
|
|
97
|
+
i.preventDefault(), (J = document.getElementById(`${s}-${e}`)) == null || J.click();
|
|
95
98
|
return;
|
|
96
99
|
}
|
|
97
|
-
i.key === "Enter" && (i.preventDefault(), N(!1), (
|
|
100
|
+
i.key === "Enter" && (i.preventDefault(), N(!1), (X = G()) == null || X.blur(), r == null || r(c ?? ""));
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
|
-
},
|
|
101
|
-
var
|
|
102
|
-
i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(),
|
|
103
|
+
}, z = (i) => {
|
|
104
|
+
var n;
|
|
105
|
+
i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(), y(-1), d == null || d(`${c ?? ""}${i.key}`), (n = G()) == null || n.focus());
|
|
103
106
|
};
|
|
104
|
-
return /* @__PURE__ */ m(
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
107
|
+
return /* @__PURE__ */ m(ei, { ...di, gridWrapperClassName: a(t.main, ii), children: /* @__PURE__ */ f(ci, { span: 12, className: t.column, children: [
|
|
108
|
+
/* @__PURE__ */ f(
|
|
109
|
+
u,
|
|
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__ */ m("div", { className: t.logo, children: /* @__PURE__ */ m(
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
116
|
+
/* @__PURE__ */ m("div", { className: t.logo, children: /* @__PURE__ */ m(U, { href: P, children: /* @__PURE__ */ m(ri, {}) }) }),
|
|
117
|
+
/* @__PURE__ */ f(
|
|
118
|
+
u,
|
|
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__ */
|
|
125
|
+
/* @__PURE__ */ f(u, { flexDirection: "row", hideAt: ["sm"], className: t.search, children: [
|
|
123
126
|
/* @__PURE__ */ m(
|
|
124
|
-
|
|
127
|
+
Z,
|
|
125
128
|
{
|
|
126
129
|
variant: "search",
|
|
127
130
|
label: "Search",
|
|
@@ -129,48 +132,51 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
129
132
|
name: "cpc-search",
|
|
130
133
|
autoComplete: "off",
|
|
131
134
|
"aria-autocomplete": "list",
|
|
132
|
-
"aria-controls":
|
|
133
|
-
"aria-activedescendant":
|
|
134
|
-
...
|
|
135
|
-
ref:
|
|
136
|
-
value:
|
|
137
|
-
endAdornment: /* @__PURE__ */
|
|
138
|
-
!!
|
|
139
|
-
|
|
135
|
+
"aria-controls": s,
|
|
136
|
+
"aria-activedescendant": e >= 0 ? `${s}-${e}` : void 0,
|
|
137
|
+
...Q,
|
|
138
|
+
ref: p,
|
|
139
|
+
value: c,
|
|
140
|
+
endAdornment: /* @__PURE__ */ f(Y, { children: [
|
|
141
|
+
!!c && /* @__PURE__ */ m(
|
|
142
|
+
B,
|
|
140
143
|
{
|
|
141
144
|
"aria-label": "Clear search",
|
|
145
|
+
onMouseDown: (i) => i.preventDefault(),
|
|
142
146
|
onClick: () => {
|
|
143
|
-
|
|
147
|
+
var i;
|
|
148
|
+
y(-1), w == null || w(), (i = p.current) == null || i.focus();
|
|
144
149
|
},
|
|
145
150
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
146
151
|
}
|
|
147
152
|
),
|
|
148
153
|
/* @__PURE__ */ m(
|
|
149
|
-
|
|
154
|
+
B,
|
|
150
155
|
{
|
|
151
156
|
"aria-label": "Submit search",
|
|
152
|
-
onClick: () =>
|
|
157
|
+
onClick: () => r == null ? void 0 : r(c ?? ""),
|
|
153
158
|
iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
|
|
154
159
|
}
|
|
155
160
|
)
|
|
156
161
|
] })
|
|
157
162
|
}
|
|
158
163
|
),
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
v && o && /* @__PURE__ */ m(
|
|
165
|
+
$,
|
|
161
166
|
{
|
|
162
167
|
...o,
|
|
163
|
-
activeOptionIndex:
|
|
164
|
-
optionIdPrefix:
|
|
165
|
-
onKeyDown:
|
|
168
|
+
activeOptionIndex: e,
|
|
169
|
+
optionIdPrefix: s,
|
|
170
|
+
onKeyDown: z,
|
|
166
171
|
onSuggestionClick: (i) => {
|
|
167
|
-
|
|
172
|
+
var n;
|
|
173
|
+
(n = o.onSuggestionClick) == null || n.call(o, i), d == null || d((i == null ? void 0 : i.name) ?? c ?? ""), N(!1);
|
|
168
174
|
},
|
|
169
175
|
className: t.suggestionDropdown
|
|
170
176
|
}
|
|
171
177
|
),
|
|
172
|
-
|
|
173
|
-
|
|
178
|
+
M && /* @__PURE__ */ m(
|
|
179
|
+
$,
|
|
174
180
|
{
|
|
175
181
|
terms: [],
|
|
176
182
|
categories: [],
|
|
@@ -178,87 +184,87 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
178
184
|
view: "recent-searches",
|
|
179
185
|
recentSearches: _,
|
|
180
186
|
onClearRecentSearch: H,
|
|
181
|
-
activeOptionIndex:
|
|
182
|
-
optionIdPrefix:
|
|
183
|
-
onKeyDown:
|
|
187
|
+
activeOptionIndex: e,
|
|
188
|
+
optionIdPrefix: s,
|
|
189
|
+
onKeyDown: z,
|
|
184
190
|
onSuggestionClick: (i) => {
|
|
185
|
-
|
|
191
|
+
d == null || d((i == null ? void 0 : i.term) ?? c ?? ""), N(!1);
|
|
186
192
|
},
|
|
187
193
|
className: t.suggestionDropdown
|
|
188
194
|
}
|
|
189
195
|
)
|
|
190
196
|
] }),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */ m(
|
|
197
|
+
/* @__PURE__ */ f("button", { onClick: T, className: a(t.siteLink, C(["sm", "md"])), children: [
|
|
198
|
+
/* @__PURE__ */ m(k, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
|
|
193
199
|
"Model/Serial"
|
|
194
200
|
] }),
|
|
195
|
-
/* @__PURE__ */ m(
|
|
196
|
-
/* @__PURE__ */ m(
|
|
201
|
+
/* @__PURE__ */ m(b, { href: E, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
202
|
+
/* @__PURE__ */ m(b, { href: R, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
197
203
|
/* @__PURE__ */ m("div", { className: t.accountArea, children: /* @__PURE__ */ m(
|
|
198
|
-
|
|
204
|
+
Ni,
|
|
199
205
|
{
|
|
200
206
|
account: F,
|
|
201
|
-
onLoginClick:
|
|
207
|
+
onLoginClick: ti,
|
|
202
208
|
className: t.avatar,
|
|
203
|
-
popoverContent:
|
|
204
|
-
isAccountLoading:
|
|
209
|
+
popoverContent: oi,
|
|
210
|
+
isAccountLoading: li
|
|
205
211
|
}
|
|
206
212
|
) }),
|
|
207
213
|
/* @__PURE__ */ m(
|
|
208
|
-
|
|
214
|
+
_i,
|
|
209
215
|
{
|
|
210
|
-
ref:
|
|
211
|
-
cart:
|
|
212
|
-
open:
|
|
213
|
-
onCartClick:
|
|
216
|
+
ref: fi,
|
|
217
|
+
cart: h,
|
|
218
|
+
open: S,
|
|
219
|
+
onCartClick: mi
|
|
214
220
|
}
|
|
215
221
|
),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
/* @__PURE__ */ m(
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ f(si, { hideAt: ["lg"], children: [
|
|
223
|
+
/* @__PURE__ */ f("section", { children: [
|
|
224
|
+
/* @__PURE__ */ m(O, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
|
|
225
|
+
/* @__PURE__ */ f("ul", { className: t.menuList, children: [
|
|
226
|
+
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(
|
|
221
227
|
"button",
|
|
222
228
|
{
|
|
223
|
-
onClick:
|
|
229
|
+
onClick: T,
|
|
224
230
|
"data-hamburger-close": "true",
|
|
225
|
-
className:
|
|
231
|
+
className: a(t.siteLink, t.menuItemAction, C(["lg"])),
|
|
226
232
|
children: [
|
|
227
|
-
/* @__PURE__ */ m(
|
|
233
|
+
/* @__PURE__ */ m(k, { iconKey: "fa-regular fa-sparkles", size: "sm", className: t.shortcutIcon }),
|
|
228
234
|
"Model/Serial"
|
|
229
235
|
]
|
|
230
236
|
}
|
|
231
237
|
) }),
|
|
232
|
-
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */ m(
|
|
238
|
+
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: E, className: a(t.siteLink, t.menuItemAction), children: [
|
|
239
|
+
/* @__PURE__ */ m(k, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: t.shortcutIcon }),
|
|
234
240
|
"Custom Parts"
|
|
235
241
|
] }) }),
|
|
236
|
-
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */ m(
|
|
242
|
+
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: R, className: a(t.siteLink, t.menuItemAction), children: [
|
|
243
|
+
/* @__PURE__ */ m(k, { iconKey: "fa-regular fa-envelope", size: "sm", className: t.shortcutIcon }),
|
|
238
244
|
"Contact Us"
|
|
239
245
|
] }) }),
|
|
240
|
-
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */ m(
|
|
246
|
+
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: V, className: a(t.siteLink, t.menuItemAction), children: [
|
|
247
|
+
/* @__PURE__ */ m(k, { iconKey: "fa-solid fa-question", size: "sm", className: t.shortcutIcon }),
|
|
242
248
|
"FAQ"
|
|
243
249
|
] }) }),
|
|
244
|
-
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */ m(
|
|
250
|
+
/* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: g, className: a(t.siteLink, t.menuItemAction), children: [
|
|
251
|
+
/* @__PURE__ */ m(k, { iconKey: "fa-regular fa-people-group", size: "sm", className: t.shortcutIcon }),
|
|
246
252
|
"About Us"
|
|
247
253
|
] }) })
|
|
248
254
|
] })
|
|
249
255
|
] }),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */ m(
|
|
252
|
-
/* @__PURE__ */ m("ul", { className: t.menuList, children:
|
|
253
|
-
|
|
256
|
+
/* @__PURE__ */ f("section", { children: [
|
|
257
|
+
/* @__PURE__ */ m(O, { size: "md", weight: "semibold", children: "Shop by category" }),
|
|
258
|
+
/* @__PURE__ */ m("ul", { className: t.menuList, children: A && A.map((i) => /* @__PURE__ */ m("li", { className: t.category, children: /* @__PURE__ */ f(
|
|
259
|
+
U,
|
|
254
260
|
{
|
|
255
261
|
href: i.route,
|
|
256
262
|
className: t.categoryLink,
|
|
257
263
|
onClick: () => K == null ? void 0 : K(i),
|
|
258
264
|
children: [
|
|
259
|
-
/* @__PURE__ */ m(
|
|
265
|
+
/* @__PURE__ */ m(O, { size: "sm", children: i.label }),
|
|
260
266
|
/* @__PURE__ */ m(
|
|
261
|
-
|
|
267
|
+
k,
|
|
262
268
|
{
|
|
263
269
|
iconKey: "fa-solid fa-chevron-right",
|
|
264
270
|
title: "Navigate",
|
|
@@ -276,9 +282,9 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
276
282
|
]
|
|
277
283
|
}
|
|
278
284
|
),
|
|
279
|
-
/* @__PURE__ */ m(
|
|
285
|
+
/* @__PURE__ */ m(u, { flexDirection: "row", hideAt: ["md", "lg"], className: t.mobileSearch, children: /* @__PURE__ */ f("div", { className: t.search, children: [
|
|
280
286
|
/* @__PURE__ */ m(
|
|
281
|
-
|
|
287
|
+
Z,
|
|
282
288
|
{
|
|
283
289
|
variant: "search",
|
|
284
290
|
label: "Search",
|
|
@@ -286,38 +292,41 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
286
292
|
name: "cpc-search",
|
|
287
293
|
autoComplete: "off",
|
|
288
294
|
"aria-autocomplete": "list",
|
|
289
|
-
"aria-controls":
|
|
290
|
-
"aria-activedescendant":
|
|
291
|
-
...
|
|
292
|
-
ref:
|
|
293
|
-
value:
|
|
294
|
-
endAdornment: /* @__PURE__ */
|
|
295
|
-
!!
|
|
296
|
-
|
|
295
|
+
"aria-controls": s,
|
|
296
|
+
"aria-activedescendant": e >= 0 ? `${s}-${e}` : void 0,
|
|
297
|
+
...Q,
|
|
298
|
+
ref: I,
|
|
299
|
+
value: c,
|
|
300
|
+
endAdornment: /* @__PURE__ */ f(Y, { children: [
|
|
301
|
+
!!c && /* @__PURE__ */ m(
|
|
302
|
+
B,
|
|
297
303
|
{
|
|
298
304
|
"aria-label": "Clear search",
|
|
305
|
+
onMouseDown: (i) => i.preventDefault(),
|
|
299
306
|
onClick: () => {
|
|
300
|
-
|
|
307
|
+
var i;
|
|
308
|
+
y(-1), w == null || w(), (i = I.current) == null || i.focus();
|
|
301
309
|
},
|
|
302
310
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
303
311
|
}
|
|
304
312
|
),
|
|
305
313
|
/* @__PURE__ */ m(
|
|
306
|
-
|
|
314
|
+
B,
|
|
307
315
|
{
|
|
308
316
|
"aria-label": "Submit search",
|
|
309
|
-
onClick: () =>
|
|
317
|
+
onClick: () => r == null ? void 0 : r(c ?? ""),
|
|
310
318
|
iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
|
|
311
319
|
}
|
|
312
320
|
)
|
|
313
321
|
] })
|
|
314
322
|
}
|
|
315
323
|
),
|
|
316
|
-
|
|
317
|
-
|
|
324
|
+
v && o && /* @__PURE__ */ m($, { ...o, activeOptionIndex: e, optionIdPrefix: s, onKeyDown: z, onSuggestionClick: (i) => {
|
|
325
|
+
var n;
|
|
326
|
+
(n = o.onSuggestionClick) == null || n.call(o, i), d == null || d((i == null ? void 0 : i.name) ?? c ?? ""), N(!1);
|
|
318
327
|
}, className: t.suggestionDropdown }),
|
|
319
|
-
|
|
320
|
-
|
|
328
|
+
M && /* @__PURE__ */ m(
|
|
329
|
+
$,
|
|
321
330
|
{
|
|
322
331
|
terms: [],
|
|
323
332
|
categories: [],
|
|
@@ -325,33 +334,33 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
|
|
|
325
334
|
view: "recent-searches",
|
|
326
335
|
recentSearches: _,
|
|
327
336
|
onClearRecentSearch: H,
|
|
328
|
-
activeOptionIndex:
|
|
329
|
-
optionIdPrefix:
|
|
330
|
-
onKeyDown:
|
|
337
|
+
activeOptionIndex: e,
|
|
338
|
+
optionIdPrefix: s,
|
|
339
|
+
onKeyDown: z,
|
|
331
340
|
onSuggestionClick: (i) => {
|
|
332
|
-
|
|
341
|
+
d == null || d((i == null ? void 0 : i.term) ?? c ?? ""), N(!1);
|
|
333
342
|
},
|
|
334
343
|
className: t.suggestionDropdown
|
|
335
344
|
}
|
|
336
345
|
)
|
|
337
346
|
] }) }),
|
|
338
347
|
/* @__PURE__ */ m(
|
|
339
|
-
|
|
348
|
+
yi,
|
|
340
349
|
{
|
|
341
|
-
categories:
|
|
342
|
-
isCategoriesLoading:
|
|
350
|
+
categories: A,
|
|
351
|
+
isCategoriesLoading: ni,
|
|
343
352
|
onCategoryClick: K
|
|
344
353
|
}
|
|
345
354
|
)
|
|
346
355
|
] }) });
|
|
347
356
|
});
|
|
348
|
-
function
|
|
349
|
-
href:
|
|
357
|
+
function b({
|
|
358
|
+
href: j,
|
|
350
359
|
children: F,
|
|
351
|
-
...
|
|
360
|
+
...A
|
|
352
361
|
}) {
|
|
353
|
-
return /* @__PURE__ */ m(
|
|
362
|
+
return /* @__PURE__ */ m(U, { href: j, className: t.siteLink, ...A, children: F });
|
|
354
363
|
}
|
|
355
364
|
export {
|
|
356
|
-
|
|
365
|
+
Zi as MainNav
|
|
357
366
|
};
|
|
@@ -3,6 +3,7 @@ export type SuggestedCategory = {
|
|
|
3
3
|
categoryKey: number;
|
|
4
4
|
name: string;
|
|
5
5
|
url: string;
|
|
6
|
+
isBrandCategory?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export type SuggestedTerm = {
|
|
8
9
|
name: string;
|
|
@@ -25,10 +26,10 @@ export type RecentSearch = {
|
|
|
25
26
|
term: string;
|
|
26
27
|
url: string;
|
|
27
28
|
};
|
|
28
|
-
type SearchSelection = {
|
|
29
|
+
export type SearchSelection = {
|
|
29
30
|
name?: string;
|
|
30
31
|
term?: string;
|
|
31
|
-
};
|
|
32
|
+
} & (SuggestedTerm | SuggestedCategory | SuggestedItem | SuggestedCustomPart | RecentSearch);
|
|
32
33
|
export interface SuggestionDropdownProps {
|
|
33
34
|
view?: "suggestions" | "recent-searches";
|
|
34
35
|
terms: SuggestedTerm[];
|
|
@@ -44,4 +45,3 @@ export interface SuggestionDropdownProps {
|
|
|
44
45
|
className?: string;
|
|
45
46
|
}
|
|
46
47
|
export declare function SuggestionDropdown({ terms, categories, items, customParts, view, recentSearches, onClearRecentSearch, onSuggestionClick, activeOptionIndex, optionIdPrefix, onKeyDown, className }: SuggestionDropdownProps): import("react/jsx-runtime").JSX.Element | null;
|
|
47
|
-
export {};
|
|
@@ -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
33
|
terms: i,
|
|
34
|
-
categories:
|
|
35
|
-
items:
|
|
36
|
-
customParts:
|
|
37
|
-
view:
|
|
38
|
-
recentSearches:
|
|
39
|
-
onClearRecentSearch:
|
|
34
|
+
categories: a,
|
|
35
|
+
items: g,
|
|
36
|
+
customParts: _ = [],
|
|
37
|
+
view: N = "suggestions",
|
|
38
|
+
recentSearches: k = [],
|
|
39
|
+
onClearRecentSearch: m,
|
|
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 i.length === 0 &&
|
|
46
|
+
return i.length === 0 && a.length === 0 && g.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: () => m == null ? void 0 : m(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
|
-
(i.length > 0 ||
|
|
84
|
-
i.length > 0 && /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
82
|
+
) : /* @__PURE__ */ c("div", { id: u, role: "listbox", className: o(l.suggestionDropdown, L), onKeyDown: f, onMouseDown: (e) => e.preventDefault(), children: [
|
|
83
|
+
(i.length > 0 || a.length > 0 || _.length > 0) && /* @__PURE__ */ c("div", { className: o(l.leftColumn, { [l.leftColumnFullWidth]: g.length === 0 }), children: [
|
|
84
|
+
i.length > 0 && /* @__PURE__ */ t("div", { className: o(l.suggestionSection, { [l.suggestionSectionFullHeight]: a.length === 0 }), children: /* @__PURE__ */ c("div", { className: o(l.suggestions, { [l.suggestionsFullHeight]: a.length === 0 }), children: [
|
|
85
|
+
/* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
|
|
86
86
|
i.map(
|
|
87
|
-
(e, s) => /* @__PURE__ */
|
|
88
|
-
|
|
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
|
+
a.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
|
+
a.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}-${i.length + s}`,
|
|
109
109
|
role: "option",
|
|
110
|
-
"aria-selected":
|
|
111
|
-
className:
|
|
112
|
-
onClick: () => n == null ? void 0 : n(),
|
|
110
|
+
"aria-selected": r === i.length + s,
|
|
111
|
+
className: o(l.categoryLink, { [l.activeOption]: r === i.length + s }),
|
|
112
|
+
onClick: () => n == null ? void 0 : n(e),
|
|
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 = i.length + a.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:
|
|
130
|
-
onClick: () => n == null ? void 0 : n(),
|
|
128
|
+
"aria-selected": r === y,
|
|
129
|
+
className: o(l.customPartLink, { [l.activeOption]: r === y }),
|
|
130
|
+
onClick: () => n == null ? void 0 : n(e),
|
|
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
|
+
g.length > 0 && /* @__PURE__ */ t("div", { className: l.rightColumn, children: /* @__PURE__ */ t("ol", { className: l.itemList, children: g.map(
|
|
142
|
+
(e, s) => /* @__PURE__ */ t("li", { className: o(l.item, { [l.activeItem]: r === i.length + a.length + _.length + s }), children: /* @__PURE__ */ c(
|
|
143
|
+
d,
|
|
144
144
|
{
|
|
145
145
|
href: e.url,
|
|
146
|
-
id: `${
|
|
146
|
+
id: `${u}-${i.length + a.length + _.length + s}`,
|
|
147
147
|
role: "option",
|
|
148
|
-
"aria-selected":
|
|
149
|
-
onClick: () => n == null ? void 0 : n(),
|
|
148
|
+
"aria-selected": r === i.length + a.length + _.length + s,
|
|
149
|
+
onClick: () => n == null ? void 0 : n(e),
|
|
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
|
}
|