@caseparts-org/caseblocks 0.0.289 → 0.0.290
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/assets/MainNav.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._main_1w2jy_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_1w2jy_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_1w2jy_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_1w2jy_13{gap:var(--spacing-1);padding-bottom:0}}._logo_1w2jy_21{cursor:pointer}._operations_1w2jy_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_1w2jy_24{gap:var(--spacing-1)}}._search_1w2jy_31{flex:1;min-width:0;position:relative;container-type:inline-size}._mobileSearch_1w2jy_37{width:100%}._typeAheadPortal_1w2jy_40{position:fixed;z-index:900;container-type:inline-size;overflow-x:hidden;overflow-y:auto}._siteLink_1w2jy_47{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md);cursor:pointer;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs)}._siteLink_1w2jy_47:hover{text-decoration:underline;color:var(--text-text-links)}@media (max-width:1280px){._siteLink_1w2jy_47{font-family:var(--font-family-body);font-size:var(--font-size-sm)}}._siteLink_1w2jy_47 path{fill:var(--color-brand-primary-primary-teal-blue)}._accountArea_1w2jy_74{width:145px}@media (max-width: 1281px){._accountArea_1w2jy_74{width:min-content}}._cart_1w2jy_80{border:none;padding:0;margin:0;background-color:transparent}._category_1w2jy_86{list-style:none;min-height:42px;display:flex;flex-direction:row;align-items:stretch;padding:0}._categoryLink_1w2jy_94{color:var(--text-text-primary);text-decoration:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%}._categoryLink_1w2jy_94:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._categoryLink_1w2jy_94 path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_1w2jy_110{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}._menuList_1w2jy_110>li{width:100%;min-height:42px;padding:var(--spacing-spacing-2xs);border:1px solid var(--border-border-primary, #dfdfdf);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);color:var(--text-text-links)}._menuItemAction_1w2jy_133{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);color:var(--color-brand-primary-primary-black)}._shortcutIcon_1w2jy_142{color:var(--text-text-links)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._suggestionDropdown_denik_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}@container (max-width: 480px){._suggestionDropdown_denik_1{flex-direction:column}}._leftColumn_denik_31{display:flex;flex-direction:column;border-right:1px solid var(--border-border-primary);background-color:#fff;min-width:190px;max-width:220px}@container (max-width: 480px){._leftColumn_denik_31{min-width:0;max-width:none;border-right:0;border-bottom:1px solid var(--border-border-primary)}}._leftColumnFullWidth_denik_61{flex:1;max-width:none}._suggestionSectionFullHeight_denik_71{display:flex;flex:1}._rightColumn_denik_81{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}@container (max-width: 480px){._rightColumn_denik_81{min-width:0}}._categorySection_denik_107{border-top:1px solid var(--border-border-primary)}._suggestions_denik_113,._categories_denik_115{display:flex;flex-direction:column;gap:0;padding:0}._suggestionsFullHeight_denik_129{flex:1}._customPartLink_denik_137{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_denik_113>:first-child,._categories_denik_115>: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_denik_113>:last-child,._categories_denik_115>:last-child{margin-bottom:var(--spacing-spacing-2xs)}._suggestionLink_denik_181,._categoryLink_denik_183{display:block;box-sizing:border-box;width:100%;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestionLink_denik_181:hover,._categoryLink_denik_183:hover,._customPartLink_denik_137:hover{text-decoration:none;background-color:var(--color-alerts-light-teal-blue)}._activeOption_denik_219{background:var(--color-alerts-light-teal-blue)}._itemList_denik_227{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs);width:100%}._item_denik_227{display:flex;flex-direction:column;border:1px solid var(--border-border-primary);padding:var(--spacing-spacing-2xs);box-sizing:border-box;width:100%;background-color:#fff;transition:background-color .3s ease-in}._recentSearch_denik_267:hover,._item_denik_227:hover{background-color:var(--color-alerts-light-teal-blue)}._item_denik_227>a:hover{text-decoration:none}._activeItem_denik_285{border-color:var(--text-text-links);box-shadow:inset 0 0 0 1px var(--text-text-links)}._item_denik_227 img{height:60px;width:60px;object-fit:contain}._item_denik_227 a{display:flex;flex-direction:row;min-width:0;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._itemInfo_denik_323{display:grid;min-width:0;gap:var(--spacing-spacing-4xs)}._recentSearches_denik_335{display:flex;flex-direction:column;background:var(--color-brand-primary-white);min-width:250px}@container (max-width: 480px){._recentSearches_denik_335{min-width:0}}._recentSearchesHeader_denik_355{padding:var(--spacing-spacing-default) var(--spacing-spacing-default) var(--spacing-spacing-2xs)}._recentSearchesList_denik_363{display:flex;flex-direction:column;gap:0;margin:0;padding:0}._recentSearch_denik_267{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-spacing-2xs);transition:background-color .3s ease-in}._recentSearchLink_denik_395{display:flex;flex:1;min-width:0;align-items:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._recentSearchLink_denik_395:hover{text-decoration:none}._clearRecentSearch_denik_419{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,151 +1,152 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
1
|
+
import { jsxs as n, Fragment as O, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { r as ct } from "../../index-BkF-BQ3Q.js";
|
|
4
|
-
import { Text as
|
|
5
|
-
import { Link as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { Flex as
|
|
4
|
+
import { Text as M } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Link as U } from "../../atoms/Link/Link.js";
|
|
6
|
+
import { Icon as _ } from "../../atoms/Icon/Icon.js";
|
|
7
|
+
import { Flex as B } from "../../atoms/Flex/Flex.js";
|
|
8
8
|
import { Grid as at, Column as st } from "../../atoms/Grid/Grid.js";
|
|
9
9
|
import { Input as Z } from "../../atoms/Input/Input.js";
|
|
10
|
-
import { InputEndAdornmentButton as
|
|
10
|
+
import { InputEndAdornmentButton as $ } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
|
|
11
11
|
import { Logo as yt } from "../../molecules/Logo/Logo.js";
|
|
12
|
-
import { HamburgerMenu as
|
|
13
|
-
import { ShoppingCart as
|
|
14
|
-
import { Account as
|
|
15
|
-
import { CategoryNav as
|
|
12
|
+
import { HamburgerMenu as wt } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
13
|
+
import { ShoppingCart as ut } from "../../molecules/Cart/Cart.js";
|
|
14
|
+
import { Account as _t } from "../../molecules/Account/Account.js";
|
|
15
|
+
import { CategoryNav as Nt } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
16
16
|
import { SuggestionDropdown as C } from "../SuggestionDropdown/SuggestionDropdown.js";
|
|
17
17
|
import { getHideAtStyles as P } from "../../atoms/HideAt.js";
|
|
18
|
-
import { c as
|
|
19
|
-
import '../../assets/MainNav.css';const
|
|
20
|
-
main:
|
|
21
|
-
column:
|
|
22
|
-
topNav:
|
|
23
|
-
logo:
|
|
24
|
-
operations:
|
|
25
|
-
search:
|
|
18
|
+
import { c as N } from "../../clsx-OuTLNxxd.js";
|
|
19
|
+
import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2jy_8", bt = "_topNav_1w2jy_13", vt = "_logo_1w2jy_21", Lt = "_operations_1w2jy_24", xt = "_search_1w2jy_31", pt = "_mobileSearch_1w2jy_37", Dt = "_typeAheadPortal_1w2jy_40", jt = "_siteLink_1w2jy_47", Kt = "_accountArea_1w2jy_74", zt = "_category_1w2jy_86", Et = "_categoryLink_1w2jy_94", Bt = "_menuList_1w2jy_110", $t = "_menuItemAction_1w2jy_133", Ft = "_shortcutIcon_1w2jy_142", e = {
|
|
20
|
+
main: kt,
|
|
21
|
+
column: At,
|
|
22
|
+
topNav: bt,
|
|
23
|
+
logo: vt,
|
|
24
|
+
operations: Lt,
|
|
25
|
+
search: xt,
|
|
26
26
|
mobileSearch: pt,
|
|
27
27
|
typeAheadPortal: Dt,
|
|
28
|
-
siteLink:
|
|
29
|
-
accountArea:
|
|
30
|
-
category:
|
|
31
|
-
categoryLink:
|
|
32
|
-
menuList:
|
|
33
|
-
menuItemAction:
|
|
34
|
-
shortcutIcon:
|
|
28
|
+
siteLink: jt,
|
|
29
|
+
accountArea: Kt,
|
|
30
|
+
category: zt,
|
|
31
|
+
categoryLink: Et,
|
|
32
|
+
menuList: Bt,
|
|
33
|
+
menuItemAction: $t,
|
|
34
|
+
shortcutIcon: Ft
|
|
35
35
|
}, gt = s.forwardRef(function({
|
|
36
|
-
account:
|
|
37
|
-
categories:
|
|
36
|
+
account: F,
|
|
37
|
+
categories: L,
|
|
38
38
|
homeRoute: V,
|
|
39
39
|
faqRoute: g,
|
|
40
|
-
customPartsRoute:
|
|
40
|
+
customPartsRoute: T,
|
|
41
41
|
aboutUsRoute: h,
|
|
42
42
|
contactRoute: I,
|
|
43
43
|
cart: S,
|
|
44
44
|
open: tt,
|
|
45
45
|
// consume external panel control props from CartPropsBase
|
|
46
46
|
className: it,
|
|
47
|
-
onLoginClick:
|
|
48
|
-
searchInputProps:
|
|
49
|
-
searchValue:
|
|
50
|
-
onSearchValueChange:
|
|
51
|
-
onClearSearch:
|
|
52
|
-
onSearch:
|
|
53
|
-
searchSuggestions:
|
|
47
|
+
onLoginClick: et,
|
|
48
|
+
searchInputProps: l,
|
|
49
|
+
searchValue: f,
|
|
50
|
+
onSearchValueChange: d,
|
|
51
|
+
onClearSearch: k,
|
|
52
|
+
onSearch: a,
|
|
53
|
+
searchSuggestions: o,
|
|
54
54
|
recentSearches: y,
|
|
55
|
-
onClearRecentSearch:
|
|
56
|
-
onCategoryClick:
|
|
55
|
+
onClearRecentSearch: ot,
|
|
56
|
+
onCategoryClick: j,
|
|
57
57
|
onClickModelSerial: q,
|
|
58
|
-
onCartClick:
|
|
59
|
-
accountPopoverContent:
|
|
58
|
+
onCartClick: mt,
|
|
59
|
+
accountPopoverContent: lt,
|
|
60
60
|
isAccountLoading: nt,
|
|
61
|
-
isCategoriesLoading:
|
|
62
|
-
...
|
|
63
|
-
},
|
|
61
|
+
isCategoriesLoading: dt,
|
|
62
|
+
...rt
|
|
63
|
+
}, ft) {
|
|
64
64
|
var Y;
|
|
65
|
-
const [G,
|
|
65
|
+
const [G, R] = s.useState(!1), [r, w] = s.useState(-1), [Q, W] = s.useState(), A = s.useRef(null), K = s.useRef(null), u = s.useId(), z = () => {
|
|
66
66
|
var t;
|
|
67
|
-
return (t =
|
|
68
|
-
},
|
|
67
|
+
return (t = A.current) != null && t.offsetParent ? A.current : K.current;
|
|
68
|
+
}, b = G && !!f && !!o, E = G && !b && !!(y != null && y.length), x = b ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((Y = o == null ? void 0 : o.customParts) == null ? void 0 : Y.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : E ? (y == null ? void 0 : y.length) ?? 0 : 0;
|
|
69
69
|
s.useLayoutEffect(() => {
|
|
70
|
-
if (!
|
|
70
|
+
if (!b && !E) {
|
|
71
71
|
W(void 0);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
function t() {
|
|
75
75
|
var p;
|
|
76
|
-
const
|
|
77
|
-
if (!
|
|
78
|
-
const
|
|
76
|
+
const m = (p = A.current) != null && p.offsetParent ? A.current : K.current;
|
|
77
|
+
if (!m) return;
|
|
78
|
+
const c = m.getBoundingClientRect();
|
|
79
79
|
W({
|
|
80
|
-
top:
|
|
81
|
-
left:
|
|
82
|
-
width:
|
|
80
|
+
top: c.bottom + 4,
|
|
81
|
+
left: c.left,
|
|
82
|
+
width: c.width,
|
|
83
|
+
maxHeight: Math.max(0, window.innerHeight - c.bottom - 12)
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
return t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0), () => {
|
|
86
87
|
window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0);
|
|
87
88
|
};
|
|
88
|
-
}, [
|
|
89
|
+
}, [b, E]);
|
|
89
90
|
const J = {
|
|
90
|
-
...
|
|
91
|
+
...l,
|
|
91
92
|
onChange: (t) => {
|
|
92
|
-
var
|
|
93
|
-
|
|
93
|
+
var m;
|
|
94
|
+
w(-1), (m = l == null ? void 0 : l.onChange) == null || m.call(l, t);
|
|
94
95
|
},
|
|
95
96
|
onFocus: (t) => {
|
|
96
|
-
var
|
|
97
|
-
(
|
|
97
|
+
var m;
|
|
98
|
+
(m = l == null ? void 0 : l.onFocus) == null || m.call(l, t), R(!0);
|
|
98
99
|
},
|
|
99
100
|
onBlur: (t) => {
|
|
100
|
-
var
|
|
101
|
-
(
|
|
101
|
+
var m;
|
|
102
|
+
(m = l == null ? void 0 : l.onBlur) == null || m.call(l, t), R(!1);
|
|
102
103
|
},
|
|
103
104
|
onKeyDown: (t) => {
|
|
104
|
-
var
|
|
105
|
-
if ((
|
|
106
|
-
if (t.key === "ArrowDown" &&
|
|
107
|
-
t.preventDefault(),
|
|
105
|
+
var m, c, p;
|
|
106
|
+
if ((m = l == null ? void 0 : l.onKeyDown) == null || m.call(l, t), !t.defaultPrevented) {
|
|
107
|
+
if (t.key === "ArrowDown" && x > 0) {
|
|
108
|
+
t.preventDefault(), w((D) => D >= x - 1 ? 0 : D + 1);
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
|
-
if (t.key === "ArrowUp" &&
|
|
111
|
-
t.preventDefault(),
|
|
111
|
+
if (t.key === "ArrowUp" && x > 0) {
|
|
112
|
+
t.preventDefault(), w((D) => D <= 0 ? x - 1 : D - 1);
|
|
112
113
|
return;
|
|
113
114
|
}
|
|
114
|
-
if (t.key === "Tab" &&
|
|
115
|
-
t.preventDefault(),
|
|
115
|
+
if (t.key === "Tab" && b && r >= 0 && r < ((o == null ? void 0 : o.terms.length) ?? 0)) {
|
|
116
|
+
t.preventDefault(), d == null || d((o == null ? void 0 : o.terms[r].name) ?? ""), w(-1);
|
|
116
117
|
return;
|
|
117
118
|
}
|
|
118
|
-
if (t.key === "Enter" &&
|
|
119
|
-
t.preventDefault(), (
|
|
119
|
+
if (t.key === "Enter" && r >= 0 && r < x) {
|
|
120
|
+
t.preventDefault(), (c = document.getElementById(`${u}-${r}`)) == null || c.click();
|
|
120
121
|
return;
|
|
121
122
|
}
|
|
122
|
-
t.key === "Enter" && (t.preventDefault(),
|
|
123
|
+
t.key === "Enter" && (t.preventDefault(), R(!1), (p = z()) == null || p.blur(), a == null || a(f ?? ""));
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}, X = (t) => {
|
|
126
|
-
var
|
|
127
|
-
t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(),
|
|
127
|
+
var m;
|
|
128
|
+
t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(), w(-1), d == null || d(`${f ?? ""}${t.key}`), (m = z()) == null || m.focus());
|
|
128
129
|
};
|
|
129
|
-
return /* @__PURE__ */ n(
|
|
130
|
-
/* @__PURE__ */ i(at, { ...
|
|
130
|
+
return /* @__PURE__ */ n(O, { children: [
|
|
131
|
+
/* @__PURE__ */ i(at, { ...rt, gridWrapperClassName: N(e.main, it), children: /* @__PURE__ */ n(st, { span: 12, className: e.column, children: [
|
|
131
132
|
/* @__PURE__ */ n(
|
|
132
|
-
|
|
133
|
+
B,
|
|
133
134
|
{
|
|
134
135
|
flexDirection: "row",
|
|
135
136
|
alignItems: "center",
|
|
136
137
|
justifyContent: "space-between",
|
|
137
|
-
className:
|
|
138
|
+
className: e.topNav,
|
|
138
139
|
children: [
|
|
139
|
-
/* @__PURE__ */ i("div", { className:
|
|
140
|
+
/* @__PURE__ */ i("div", { className: e.logo, children: /* @__PURE__ */ i(U, { href: V, children: /* @__PURE__ */ i(yt, {}) }) }),
|
|
140
141
|
/* @__PURE__ */ n(
|
|
141
|
-
|
|
142
|
+
B,
|
|
142
143
|
{
|
|
143
144
|
flexDirection: "row",
|
|
144
145
|
alignItems: "center",
|
|
145
146
|
justifyContent: "flex-end",
|
|
146
|
-
className:
|
|
147
|
+
className: e.operations,
|
|
147
148
|
children: [
|
|
148
|
-
/* @__PURE__ */ i(
|
|
149
|
+
/* @__PURE__ */ i(B, { flexDirection: "row", hideAt: ["sm"], className: e.search, children: /* @__PURE__ */ i(
|
|
149
150
|
Z,
|
|
150
151
|
{
|
|
151
152
|
variant: "search",
|
|
@@ -154,106 +155,106 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
154
155
|
name: "cpc-search",
|
|
155
156
|
autoComplete: "off",
|
|
156
157
|
"aria-autocomplete": "list",
|
|
157
|
-
"aria-controls":
|
|
158
|
-
"aria-activedescendant":
|
|
158
|
+
"aria-controls": u,
|
|
159
|
+
"aria-activedescendant": r >= 0 ? `${u}-${r}` : void 0,
|
|
159
160
|
...J,
|
|
160
|
-
ref:
|
|
161
|
-
value:
|
|
162
|
-
endAdornment: /* @__PURE__ */ n(
|
|
163
|
-
!!
|
|
164
|
-
|
|
161
|
+
ref: A,
|
|
162
|
+
value: f,
|
|
163
|
+
endAdornment: /* @__PURE__ */ n(O, { children: [
|
|
164
|
+
!!f && /* @__PURE__ */ i(
|
|
165
|
+
$,
|
|
165
166
|
{
|
|
166
167
|
"aria-label": "Clear search",
|
|
167
168
|
onMouseDown: (t) => t.preventDefault(),
|
|
168
169
|
onClick: () => {
|
|
169
170
|
var t;
|
|
170
|
-
|
|
171
|
+
w(-1), k == null || k(), (t = A.current) == null || t.focus();
|
|
171
172
|
},
|
|
172
173
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
173
174
|
}
|
|
174
175
|
),
|
|
175
176
|
/* @__PURE__ */ i(
|
|
176
|
-
|
|
177
|
+
$,
|
|
177
178
|
{
|
|
178
179
|
"aria-label": "Submit search",
|
|
179
|
-
onClick: () =>
|
|
180
|
+
onClick: () => a == null ? void 0 : a(f ?? ""),
|
|
180
181
|
iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
|
|
181
182
|
}
|
|
182
183
|
)
|
|
183
184
|
] })
|
|
184
185
|
}
|
|
185
186
|
) }),
|
|
186
|
-
/* @__PURE__ */ n("button", { onClick: q, className:
|
|
187
|
-
/* @__PURE__ */ i(
|
|
187
|
+
/* @__PURE__ */ n("button", { onClick: q, className: N(e.siteLink, P(["sm", "md"])), children: [
|
|
188
|
+
/* @__PURE__ */ i(_, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
|
|
188
189
|
"Ask Our Experts"
|
|
189
190
|
] }),
|
|
190
|
-
/* @__PURE__ */ i(
|
|
191
|
-
/* @__PURE__ */ i(
|
|
192
|
-
/* @__PURE__ */ i("div", { className:
|
|
193
|
-
|
|
191
|
+
/* @__PURE__ */ i(v, { href: T, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
192
|
+
/* @__PURE__ */ i(v, { href: I, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
193
|
+
/* @__PURE__ */ i("div", { className: e.accountArea, children: /* @__PURE__ */ i(
|
|
194
|
+
_t,
|
|
194
195
|
{
|
|
195
|
-
account:
|
|
196
|
-
onLoginClick:
|
|
197
|
-
className:
|
|
198
|
-
popoverContent:
|
|
196
|
+
account: F,
|
|
197
|
+
onLoginClick: et,
|
|
198
|
+
className: e.avatar,
|
|
199
|
+
popoverContent: lt,
|
|
199
200
|
isAccountLoading: nt
|
|
200
201
|
}
|
|
201
202
|
) }),
|
|
202
203
|
/* @__PURE__ */ i(
|
|
203
|
-
|
|
204
|
+
ut,
|
|
204
205
|
{
|
|
205
|
-
ref:
|
|
206
|
+
ref: ft,
|
|
206
207
|
cart: S,
|
|
207
208
|
open: tt,
|
|
208
|
-
onCartClick:
|
|
209
|
+
onCartClick: mt
|
|
209
210
|
}
|
|
210
211
|
),
|
|
211
|
-
/* @__PURE__ */ n(
|
|
212
|
+
/* @__PURE__ */ n(wt, { hideAt: ["lg"], children: [
|
|
212
213
|
/* @__PURE__ */ n("section", { children: [
|
|
213
|
-
/* @__PURE__ */ i(
|
|
214
|
-
/* @__PURE__ */ n("ul", { className:
|
|
215
|
-
/* @__PURE__ */ i("li", { className:
|
|
214
|
+
/* @__PURE__ */ i(M, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
|
|
215
|
+
/* @__PURE__ */ n("ul", { className: e.menuList, children: [
|
|
216
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ n(
|
|
216
217
|
"button",
|
|
217
218
|
{
|
|
218
219
|
onClick: q,
|
|
219
220
|
"data-hamburger-close": "true",
|
|
220
|
-
className:
|
|
221
|
+
className: N(e.siteLink, e.menuItemAction, P(["lg"])),
|
|
221
222
|
children: [
|
|
222
|
-
/* @__PURE__ */ i(
|
|
223
|
+
/* @__PURE__ */ i(_, { iconKey: "fa-regular fa-sparkles", size: "sm", className: e.shortcutIcon }),
|
|
223
224
|
"Ask Our Experts"
|
|
224
225
|
]
|
|
225
226
|
}
|
|
226
227
|
) }),
|
|
227
|
-
/* @__PURE__ */ i("li", { className:
|
|
228
|
-
/* @__PURE__ */ i(
|
|
228
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ n(v, { href: T, className: N(e.siteLink, e.menuItemAction), children: [
|
|
229
|
+
/* @__PURE__ */ i(_, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: e.shortcutIcon }),
|
|
229
230
|
"Custom Parts"
|
|
230
231
|
] }) }),
|
|
231
|
-
/* @__PURE__ */ i("li", { className:
|
|
232
|
-
/* @__PURE__ */ i(
|
|
232
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ n(v, { href: I, className: N(e.siteLink, e.menuItemAction), children: [
|
|
233
|
+
/* @__PURE__ */ i(_, { iconKey: "fa-regular fa-envelope", size: "sm", className: e.shortcutIcon }),
|
|
233
234
|
"Contact Us"
|
|
234
235
|
] }) }),
|
|
235
|
-
/* @__PURE__ */ i("li", { className:
|
|
236
|
-
/* @__PURE__ */ i(
|
|
236
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ n(v, { href: g, className: N(e.siteLink, e.menuItemAction), children: [
|
|
237
|
+
/* @__PURE__ */ i(_, { iconKey: "fa-solid fa-question", size: "sm", className: e.shortcutIcon }),
|
|
237
238
|
"FAQ"
|
|
238
239
|
] }) }),
|
|
239
|
-
/* @__PURE__ */ i("li", { className:
|
|
240
|
-
/* @__PURE__ */ i(
|
|
240
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ n(v, { href: h, className: N(e.siteLink, e.menuItemAction), children: [
|
|
241
|
+
/* @__PURE__ */ i(_, { iconKey: "fa-regular fa-people-group", size: "sm", className: e.shortcutIcon }),
|
|
241
242
|
"About Us"
|
|
242
243
|
] }) })
|
|
243
244
|
] })
|
|
244
245
|
] }),
|
|
245
246
|
/* @__PURE__ */ n("section", { children: [
|
|
246
|
-
/* @__PURE__ */ i(
|
|
247
|
-
/* @__PURE__ */ i("ul", { className:
|
|
248
|
-
|
|
247
|
+
/* @__PURE__ */ i(M, { size: "md", weight: "semibold", children: "Shop by category" }),
|
|
248
|
+
/* @__PURE__ */ i("ul", { className: e.menuList, children: L && L.map((t) => /* @__PURE__ */ i("li", { className: e.category, children: /* @__PURE__ */ n(
|
|
249
|
+
U,
|
|
249
250
|
{
|
|
250
251
|
href: t.route,
|
|
251
|
-
className:
|
|
252
|
-
onClick: () =>
|
|
252
|
+
className: e.categoryLink,
|
|
253
|
+
onClick: () => j == null ? void 0 : j(t),
|
|
253
254
|
children: [
|
|
254
|
-
/* @__PURE__ */ i(
|
|
255
|
+
/* @__PURE__ */ i(M, { size: "sm", children: t.label }),
|
|
255
256
|
/* @__PURE__ */ i(
|
|
256
|
-
|
|
257
|
+
_,
|
|
257
258
|
{
|
|
258
259
|
iconKey: "fa-solid fa-chevron-right",
|
|
259
260
|
title: "Navigate",
|
|
@@ -271,7 +272,7 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
271
272
|
]
|
|
272
273
|
}
|
|
273
274
|
),
|
|
274
|
-
/* @__PURE__ */ i(
|
|
275
|
+
/* @__PURE__ */ i(B, { flexDirection: "row", hideAt: ["md", "lg"], className: e.mobileSearch, children: /* @__PURE__ */ i("div", { className: e.search, children: /* @__PURE__ */ i(
|
|
275
276
|
Z,
|
|
276
277
|
{
|
|
277
278
|
variant: "search",
|
|
@@ -280,29 +281,29 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
280
281
|
name: "cpc-search",
|
|
281
282
|
autoComplete: "off",
|
|
282
283
|
"aria-autocomplete": "list",
|
|
283
|
-
"aria-controls":
|
|
284
|
-
"aria-activedescendant":
|
|
284
|
+
"aria-controls": u,
|
|
285
|
+
"aria-activedescendant": r >= 0 ? `${u}-${r}` : void 0,
|
|
285
286
|
...J,
|
|
286
|
-
ref:
|
|
287
|
-
value:
|
|
288
|
-
endAdornment: /* @__PURE__ */ n(
|
|
289
|
-
!!
|
|
290
|
-
|
|
287
|
+
ref: K,
|
|
288
|
+
value: f,
|
|
289
|
+
endAdornment: /* @__PURE__ */ n(O, { children: [
|
|
290
|
+
!!f && /* @__PURE__ */ i(
|
|
291
|
+
$,
|
|
291
292
|
{
|
|
292
293
|
"aria-label": "Clear search",
|
|
293
294
|
onMouseDown: (t) => t.preventDefault(),
|
|
294
295
|
onClick: () => {
|
|
295
296
|
var t;
|
|
296
|
-
|
|
297
|
+
w(-1), k == null || k(), (t = K.current) == null || t.focus();
|
|
297
298
|
},
|
|
298
299
|
iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
|
|
299
300
|
}
|
|
300
301
|
),
|
|
301
302
|
/* @__PURE__ */ i(
|
|
302
|
-
|
|
303
|
+
$,
|
|
303
304
|
{
|
|
304
305
|
"aria-label": "Submit search",
|
|
305
|
-
onClick: () =>
|
|
306
|
+
onClick: () => a == null ? void 0 : a(f ?? ""),
|
|
306
307
|
iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
|
|
307
308
|
}
|
|
308
309
|
)
|
|
@@ -310,11 +311,11 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
310
311
|
}
|
|
311
312
|
) }) }),
|
|
312
313
|
/* @__PURE__ */ i(
|
|
313
|
-
|
|
314
|
+
Nt,
|
|
314
315
|
{
|
|
315
|
-
categories:
|
|
316
|
-
isCategoriesLoading:
|
|
317
|
-
onCategoryClick:
|
|
316
|
+
categories: L,
|
|
317
|
+
isCategoriesLoading: dt,
|
|
318
|
+
onCategoryClick: j
|
|
318
319
|
}
|
|
319
320
|
)
|
|
320
321
|
] }) }),
|
|
@@ -322,23 +323,23 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
322
323
|
/* @__PURE__ */ n(
|
|
323
324
|
"div",
|
|
324
325
|
{
|
|
325
|
-
className:
|
|
326
|
+
className: e.typeAheadPortal,
|
|
326
327
|
style: Q,
|
|
327
328
|
children: [
|
|
328
|
-
|
|
329
|
+
b && o && /* @__PURE__ */ i(
|
|
329
330
|
C,
|
|
330
331
|
{
|
|
331
|
-
...
|
|
332
|
-
activeOptionIndex:
|
|
333
|
-
optionIdPrefix:
|
|
332
|
+
...o,
|
|
333
|
+
activeOptionIndex: r,
|
|
334
|
+
optionIdPrefix: u,
|
|
334
335
|
onKeyDown: X,
|
|
335
336
|
onSuggestionClick: (t) => {
|
|
336
|
-
var
|
|
337
|
-
(
|
|
337
|
+
var m, c;
|
|
338
|
+
(m = o.onSuggestionClick) == null || m.call(o, t), d == null || d((t == null ? void 0 : t.name) ?? f ?? ""), (c = z()) == null || c.blur();
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
341
|
),
|
|
341
|
-
|
|
342
|
+
E && /* @__PURE__ */ i(
|
|
342
343
|
C,
|
|
343
344
|
{
|
|
344
345
|
terms: [],
|
|
@@ -346,13 +347,13 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
346
347
|
items: [],
|
|
347
348
|
view: "recent-searches",
|
|
348
349
|
recentSearches: y,
|
|
349
|
-
onClearRecentSearch:
|
|
350
|
-
activeOptionIndex:
|
|
351
|
-
optionIdPrefix:
|
|
350
|
+
onClearRecentSearch: ot,
|
|
351
|
+
activeOptionIndex: r,
|
|
352
|
+
optionIdPrefix: u,
|
|
352
353
|
onKeyDown: X,
|
|
353
354
|
onSuggestionClick: (t) => {
|
|
354
|
-
var
|
|
355
|
-
|
|
355
|
+
var m;
|
|
356
|
+
d == null || d((t == null ? void 0 : t.term) ?? f ?? ""), (m = z()) == null || m.blur();
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
)
|
|
@@ -363,12 +364,12 @@ import '../../assets/MainNav.css';const wt = "_main_o3lxf_1", xt = "_column_o3lx
|
|
|
363
364
|
)
|
|
364
365
|
] });
|
|
365
366
|
});
|
|
366
|
-
function
|
|
367
|
-
href:
|
|
368
|
-
children:
|
|
369
|
-
...
|
|
367
|
+
function v({
|
|
368
|
+
href: H,
|
|
369
|
+
children: F,
|
|
370
|
+
...L
|
|
370
371
|
}) {
|
|
371
|
-
return /* @__PURE__ */ i(
|
|
372
|
+
return /* @__PURE__ */ i(U, { href: H, className: e.siteLink, ...L, children: F });
|
|
372
373
|
}
|
|
373
374
|
export {
|
|
374
375
|
gt as MainNav
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Text as h } from "../../atoms/Text/Text.js";
|
|
3
|
-
import { Link as
|
|
3
|
+
import { Link as m } from "../../atoms/Link/Link.js";
|
|
4
4
|
import { Icon as N } from "../../atoms/Icon/Icon.js";
|
|
5
5
|
import { Image as y } from "../../atoms/Image/Image.js";
|
|
6
6
|
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
7
|
-
import '../../assets/SuggestionDropdown.css';const F = "
|
|
8
|
-
suggestionDropdown:
|
|
9
|
-
leftColumn:
|
|
10
|
-
leftColumnFullWidth:
|
|
11
|
-
suggestionSectionFullHeight:
|
|
12
|
-
rightColumn:
|
|
13
|
-
categorySection:
|
|
14
|
-
suggestions:
|
|
15
|
-
categories:
|
|
7
|
+
import '../../assets/SuggestionDropdown.css';const z = "_suggestionDropdown_denik_1", F = "_leftColumn_denik_31", H = "_leftColumnFullWidth_denik_61", $ = "_suggestionSectionFullHeight_denik_71", D = "_rightColumn_denik_81", w = "_categorySection_denik_107", b = "_suggestions_denik_113", T = "_categories_denik_115", q = "_suggestionsFullHeight_denik_129", W = "_customPartLink_denik_137", j = "_suggestionLink_denik_181", K = "_categoryLink_denik_183", M = "_activeOption_denik_219", O = "_itemList_denik_227", R = "_item_denik_227", x = "_recentSearch_denik_267", A = "_activeItem_denik_285", B = "_itemInfo_denik_323", E = "_recentSearches_denik_335", G = "_recentSearchesHeader_denik_355", J = "_recentSearchesList_denik_363", Q = "_recentSearchLink_denik_395", U = "_clearRecentSearch_denik_419", n = {
|
|
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,
|
|
@@ -30,39 +30,39 @@ import '../../assets/SuggestionDropdown.css';const F = "_suggestionDropdown_zn0u
|
|
|
30
30
|
clearRecentSearch: U
|
|
31
31
|
};
|
|
32
32
|
function I({
|
|
33
|
-
terms:
|
|
33
|
+
terms: s,
|
|
34
34
|
categories: r,
|
|
35
|
-
items:
|
|
36
|
-
customParts:
|
|
35
|
+
items: u,
|
|
36
|
+
customParts: d = [],
|
|
37
37
|
view: v = "suggestions",
|
|
38
|
-
recentSearches:
|
|
39
|
-
onClearRecentSearch:
|
|
40
|
-
onSuggestionClick:
|
|
38
|
+
recentSearches: g = [],
|
|
39
|
+
onClearRecentSearch: k,
|
|
40
|
+
onSuggestionClick: i,
|
|
41
41
|
activeOptionIndex: c = -1,
|
|
42
|
-
optionIdPrefix:
|
|
42
|
+
optionIdPrefix: _,
|
|
43
43
|
onKeyDown: L,
|
|
44
44
|
className: p
|
|
45
45
|
}) {
|
|
46
|
-
return
|
|
46
|
+
return s.length === 0 && r.length === 0 && u.length === 0 && d.length === 0 && g.length === 0 ? null : v === "recent-searches" ? /* @__PURE__ */ a(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
-
id:
|
|
49
|
+
id: _,
|
|
50
50
|
role: "listbox",
|
|
51
51
|
className: o(n.suggestionDropdown, n.recentSearches, p),
|
|
52
52
|
onKeyDown: L,
|
|
53
53
|
onMouseDown: (e) => e.preventDefault(),
|
|
54
54
|
children: [
|
|
55
55
|
/* @__PURE__ */ l("div", { className: n.recentSearchesHeader, children: /* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Recent Searches" }) }),
|
|
56
|
-
/* @__PURE__ */ l("ol", { className: n.recentSearchesList, children:
|
|
56
|
+
/* @__PURE__ */ l("ol", { className: n.recentSearchesList, children: g.map((e) => /* @__PURE__ */ a("li", { className: n.recentSearch, children: [
|
|
57
57
|
/* @__PURE__ */ l(
|
|
58
|
-
|
|
58
|
+
m,
|
|
59
59
|
{
|
|
60
60
|
href: e.url,
|
|
61
|
-
id: `${
|
|
61
|
+
id: `${_}-${g.indexOf(e)}`,
|
|
62
62
|
role: "option",
|
|
63
|
-
"aria-selected": c ===
|
|
64
|
-
className: o(n.recentSearchLink, { [n.activeOption]: c ===
|
|
65
|
-
onClick: () =>
|
|
63
|
+
"aria-selected": c === g.indexOf(e),
|
|
64
|
+
className: o(n.recentSearchLink, { [n.activeOption]: c === g.indexOf(e) }),
|
|
65
|
+
onClick: () => i == null ? void 0 : i(e),
|
|
66
66
|
children: /* @__PURE__ */ l(h, { size: "sm", children: e.term })
|
|
67
67
|
}
|
|
68
68
|
),
|
|
@@ -72,27 +72,27 @@ function I({
|
|
|
72
72
|
type: "button",
|
|
73
73
|
className: n.clearRecentSearch,
|
|
74
74
|
"aria-label": `Clear recent search: ${e.term}`,
|
|
75
|
-
onClick: () =>
|
|
75
|
+
onClick: () => k == null ? void 0 : k(e),
|
|
76
76
|
children: /* @__PURE__ */ l(N, { iconKey: "fa-regular fa-xmark", size: "sm" })
|
|
77
77
|
}
|
|
78
78
|
)
|
|
79
79
|
] }, e.url)) })
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
-
) : /* @__PURE__ */ a("div", { id:
|
|
83
|
-
(
|
|
84
|
-
|
|
82
|
+
) : /* @__PURE__ */ a("div", { id: _, role: "listbox", className: o(n.suggestionDropdown, p), onKeyDown: L, onMouseDown: (e) => e.preventDefault(), children: [
|
|
83
|
+
(s.length > 0 || r.length > 0 || d.length > 0) && /* @__PURE__ */ a("div", { className: o(n.leftColumn, { [n.leftColumnFullWidth]: u.length === 0 }), children: [
|
|
84
|
+
s.length > 0 && /* @__PURE__ */ l("div", { className: o(n.suggestionSection, { [n.suggestionSectionFullHeight]: r.length === 0 }), children: /* @__PURE__ */ a("div", { className: o(n.suggestions, { [n.suggestionsFullHeight]: r.length === 0 }), children: [
|
|
85
85
|
/* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
|
|
86
|
-
|
|
87
|
-
(e,
|
|
88
|
-
|
|
86
|
+
s.map(
|
|
87
|
+
(e, t) => /* @__PURE__ */ l(h, { size: "sm", children: /* @__PURE__ */ l(
|
|
88
|
+
m,
|
|
89
89
|
{
|
|
90
90
|
href: e.url,
|
|
91
|
-
id: `${
|
|
91
|
+
id: `${_}-${t}`,
|
|
92
92
|
role: "option",
|
|
93
|
-
"aria-selected": c ===
|
|
94
|
-
className: o(n.suggestionLink, { [n.activeOption]: c ===
|
|
95
|
-
onClick: () =>
|
|
93
|
+
"aria-selected": c === t,
|
|
94
|
+
className: o(n.suggestionLink, { [n.activeOption]: c === t }),
|
|
95
|
+
onClick: () => i == null ? void 0 : i(e),
|
|
96
96
|
children: e.name
|
|
97
97
|
}
|
|
98
98
|
) }, e.url)
|
|
@@ -101,33 +101,33 @@ function I({
|
|
|
101
101
|
r.length > 0 && /* @__PURE__ */ l("div", { className: n.categorySection, children: /* @__PURE__ */ a("div", { className: n.categories, children: [
|
|
102
102
|
/* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
|
|
103
103
|
r.map(
|
|
104
|
-
(e,
|
|
105
|
-
|
|
104
|
+
(e, t) => /* @__PURE__ */ l(h, { size: "sm", children: /* @__PURE__ */ l(
|
|
105
|
+
m,
|
|
106
106
|
{
|
|
107
107
|
href: e.url,
|
|
108
|
-
id: `${
|
|
108
|
+
id: `${_}-${s.length + t}`,
|
|
109
109
|
role: "option",
|
|
110
|
-
"aria-selected": c ===
|
|
111
|
-
className: o(n.categoryLink, { [n.activeOption]: c ===
|
|
112
|
-
onClick: () =>
|
|
110
|
+
"aria-selected": c === s.length + t,
|
|
111
|
+
className: o(n.categoryLink, { [n.activeOption]: c === s.length + t }),
|
|
112
|
+
onClick: () => i == null ? void 0 : i(e),
|
|
113
113
|
children: e.name
|
|
114
114
|
}
|
|
115
115
|
) }, e.categoryKey)
|
|
116
116
|
)
|
|
117
117
|
] }) }),
|
|
118
|
-
|
|
118
|
+
d.length > 0 && /* @__PURE__ */ l("div", { className: n.categorySection, children: /* @__PURE__ */ a("div", { className: n.categories, children: [
|
|
119
119
|
/* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Custom Parts" }),
|
|
120
|
-
|
|
121
|
-
const f =
|
|
120
|
+
d.map((e, t) => {
|
|
121
|
+
const f = s.length + r.length + t;
|
|
122
122
|
return /* @__PURE__ */ a(
|
|
123
|
-
|
|
123
|
+
m,
|
|
124
124
|
{
|
|
125
125
|
href: e.url,
|
|
126
|
-
id: `${
|
|
126
|
+
id: `${_}-${f}`,
|
|
127
127
|
role: "option",
|
|
128
128
|
"aria-selected": c === f,
|
|
129
129
|
className: o(n.customPartLink, { [n.activeOption]: c === f }),
|
|
130
|
-
onClick: () =>
|
|
130
|
+
onClick: () => i == null ? void 0 : i(e),
|
|
131
131
|
children: [
|
|
132
132
|
/* @__PURE__ */ l(N, { iconKey: e.icon, size: "sm" }),
|
|
133
133
|
/* @__PURE__ */ l(h, { size: "sm", children: e.label })
|
|
@@ -138,15 +138,15 @@ function I({
|
|
|
138
138
|
})
|
|
139
139
|
] }) })
|
|
140
140
|
] }),
|
|
141
|
-
|
|
142
|
-
(e,
|
|
143
|
-
|
|
141
|
+
u.length > 0 && /* @__PURE__ */ l("div", { className: n.rightColumn, children: /* @__PURE__ */ l("ol", { className: n.itemList, children: u.map(
|
|
142
|
+
(e, t) => /* @__PURE__ */ l("li", { className: o(n.item, { [n.activeItem]: c === s.length + r.length + d.length + t }), children: /* @__PURE__ */ a(
|
|
143
|
+
m,
|
|
144
144
|
{
|
|
145
145
|
href: e.url,
|
|
146
|
-
id: `${
|
|
146
|
+
id: `${_}-${s.length + r.length + d.length + t}`,
|
|
147
147
|
role: "option",
|
|
148
|
-
"aria-selected": c ===
|
|
149
|
-
onClick: () =>
|
|
148
|
+
"aria-selected": c === s.length + r.length + d.length + t,
|
|
149
|
+
onClick: () => i == null ? void 0 : i(e),
|
|
150
150
|
children: [
|
|
151
151
|
/* @__PURE__ */ l(y, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
|
|
152
152
|
/* @__PURE__ */ a("div", { className: n.itemInfo, children: [
|