@caseparts-org/caseblocks 0.0.278 → 0.0.280
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/CardLink.css +1 -1
- package/dist/assets/MainNav.css +1 -1
- package/dist/assets/Product.css +1 -1
- package/dist/assets/SuggestionDropdown.css +1 -1
- package/dist/molecules/CardLink/CardLink.d.ts +1 -1
- package/dist/molecules/CardLink/CardLink.js +62 -59
- package/dist/molecules/Markdown/Markdown.js +207 -206
- package/dist/organisms/MainNav/MainNav.js +293 -284
- package/dist/organisms/Product/Product.js +45 -45
- package/dist/organisms/SuggestionDropdown/SuggestionDropdown.js +76 -76
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import O from "react";
|
|
3
3
|
import { Image as R } from "../../atoms/Image/Image.js";
|
|
4
4
|
import { Link as V } from "../../atoms/Link/Link.js";
|
|
5
|
-
import { Text as
|
|
5
|
+
import { Text as n } from "../../atoms/Text/Text.js";
|
|
6
6
|
import { Availability as q } from "../../molecules/Availability/Availability.js";
|
|
7
7
|
import { Pricing as E } from "../../molecules/Pricing/Pricing.js";
|
|
8
8
|
import { AddToCart as F } from "../../molecules/AddToCart/AddToCart.js";
|
|
9
9
|
import { CustomWizardBadge as G } from "../../molecules/CustomWizardBadge/CustomWizardBadge.js";
|
|
10
10
|
import { c as J } from "../../clsx-OuTLNxxd.js";
|
|
11
|
-
import '../../assets/Product.css';const Q = "
|
|
11
|
+
import '../../assets/Product.css';const Q = "_productCard_y50sy_3", X = "_sm_y50sy_16", Y = "_productInformation_y50sy_26", Z = "_purchaseInformation_y50sy_33", H = "_purchaseControls_y50sy_39", K = "_addToCart_y50sy_46", L = "_addToCartButton_y50sy_49", S = "_pricing_y50sy_53", U = "_partNumber_y50sy_64", W = "_partNumberLabel_y50sy_71", z = "_productTile_y50sy_75", k = "_productData_y50sy_102", tt = "_purchase_y50sy_33", at = "_attributeContainer_y50sy_148", rt = "_elevated_y50sy_196", et = "_noImage_y50sy_202", t = {
|
|
12
12
|
productCard: Q,
|
|
13
13
|
sm: X,
|
|
14
14
|
productInformation: Y,
|
|
@@ -29,30 +29,30 @@ import '../../assets/Product.css';const Q = "_productCard_ntcb7_3", X = "_sm_ntc
|
|
|
29
29
|
function it({
|
|
30
30
|
productView: M,
|
|
31
31
|
itemKey: d,
|
|
32
|
-
partNumber:
|
|
33
|
-
productDescription:
|
|
32
|
+
partNumber: c,
|
|
33
|
+
productDescription: y,
|
|
34
34
|
availDescription: N,
|
|
35
35
|
availId: l,
|
|
36
36
|
inventory: f,
|
|
37
|
-
productHref:
|
|
37
|
+
productHref: b,
|
|
38
38
|
customWizardUrl: m,
|
|
39
|
-
customWizardText:
|
|
40
|
-
customWizardColorToken:
|
|
39
|
+
customWizardText: C = "Customize",
|
|
40
|
+
customWizardColorToken: T = "secondary",
|
|
41
41
|
price: u,
|
|
42
|
-
listPrice:
|
|
43
|
-
isSignedIn:
|
|
44
|
-
customerClass:
|
|
42
|
+
listPrice: g,
|
|
43
|
+
isSignedIn: v = !1,
|
|
44
|
+
customerClass: x,
|
|
45
45
|
imgSrc: o,
|
|
46
46
|
attributes: i,
|
|
47
|
-
className:
|
|
48
|
-
onAddToCart:
|
|
49
|
-
flat:
|
|
47
|
+
className: I,
|
|
48
|
+
onAddToCart: B,
|
|
49
|
+
flat: A,
|
|
50
50
|
size: r = "md",
|
|
51
51
|
showQuantity: _ = !0,
|
|
52
|
-
onLinkClicked:
|
|
53
|
-
requiresUnitDetails:
|
|
54
|
-
maxQuantity:
|
|
55
|
-
...
|
|
52
|
+
onLinkClicked: s,
|
|
53
|
+
requiresUnitDetails: w = !1,
|
|
54
|
+
maxQuantity: $,
|
|
55
|
+
...j
|
|
56
56
|
}) {
|
|
57
57
|
const [D, P] = O.useState(1), p = r === "sm" ? "xs" : "sm";
|
|
58
58
|
return M === "Card" ? /* @__PURE__ */ e(
|
|
@@ -61,27 +61,27 @@ function it({
|
|
|
61
61
|
className: J(
|
|
62
62
|
t.productCard,
|
|
63
63
|
r && t[r],
|
|
64
|
-
|
|
65
|
-
!
|
|
64
|
+
I,
|
|
65
|
+
!A && t.elevated,
|
|
66
66
|
!o && t.noImage
|
|
67
67
|
),
|
|
68
|
-
...
|
|
68
|
+
...j,
|
|
69
69
|
children: [
|
|
70
|
-
m && /* @__PURE__ */ a(G, { href: m, text:
|
|
70
|
+
m && /* @__PURE__ */ a(G, { href: m, text: C, colorToken: T }),
|
|
71
71
|
o && /* @__PURE__ */ a(
|
|
72
72
|
R,
|
|
73
73
|
{
|
|
74
74
|
src: o,
|
|
75
|
-
alt: `${
|
|
75
|
+
alt: `${c} product image`,
|
|
76
76
|
height: r === "sm" ? 78 : 96,
|
|
77
77
|
width: r === "sm" ? 78 : 96
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
80
|
/* @__PURE__ */ e("div", { className: t.productInformation, children: [
|
|
81
|
-
/* @__PURE__ */ a(V, { onClick: () =>
|
|
81
|
+
/* @__PURE__ */ a(V, { onClick: () => s == null ? void 0 : s(d), size: r, href: b || "#", children: y }),
|
|
82
82
|
/* @__PURE__ */ e("div", { className: t.partNumber, children: [
|
|
83
|
-
/* @__PURE__ */ a(
|
|
84
|
-
/* @__PURE__ */ a(
|
|
83
|
+
/* @__PURE__ */ a(n, { size: p, className: t.partNumberLabel, children: "Part #" }),
|
|
84
|
+
/* @__PURE__ */ a(n, { size: p, weight: "semibold", children: c })
|
|
85
85
|
] })
|
|
86
86
|
] }),
|
|
87
87
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: l && /* @__PURE__ */ a(
|
|
@@ -98,9 +98,9 @@ function it({
|
|
|
98
98
|
E,
|
|
99
99
|
{
|
|
100
100
|
price: u,
|
|
101
|
-
listPrice:
|
|
102
|
-
isSignedIn:
|
|
103
|
-
customerClass:
|
|
101
|
+
listPrice: g,
|
|
102
|
+
isSignedIn: v,
|
|
103
|
+
customerClass: x,
|
|
104
104
|
quantity: D,
|
|
105
105
|
className: t.pricing
|
|
106
106
|
}
|
|
@@ -109,8 +109,8 @@ function it({
|
|
|
109
109
|
F,
|
|
110
110
|
{
|
|
111
111
|
itemKey: d,
|
|
112
|
-
onAdd:
|
|
113
|
-
max:
|
|
112
|
+
onAdd: B,
|
|
113
|
+
max: $,
|
|
114
114
|
className: t.addToCart,
|
|
115
115
|
addButtonClassName: t.addToCartButton,
|
|
116
116
|
addButtonVariant: _ ? "cta-primary" : "secondary",
|
|
@@ -118,7 +118,7 @@ function it({
|
|
|
118
118
|
buttonDoneText: "",
|
|
119
119
|
buttonText: _ ? "Add" : "Add to Cart",
|
|
120
120
|
showQuantity: _,
|
|
121
|
-
requiresUnitDetails:
|
|
121
|
+
requiresUnitDetails: w,
|
|
122
122
|
onQuantityChange: P
|
|
123
123
|
}
|
|
124
124
|
)
|
|
@@ -127,27 +127,27 @@ function it({
|
|
|
127
127
|
}
|
|
128
128
|
) : /* @__PURE__ */ e("div", { className: J(
|
|
129
129
|
t.productTile,
|
|
130
|
-
|
|
130
|
+
I,
|
|
131
131
|
r && t[r],
|
|
132
|
-
!
|
|
132
|
+
!A && t.elevated,
|
|
133
133
|
!o && t.noImage
|
|
134
|
-
), ...
|
|
135
|
-
m && /* @__PURE__ */ a(G, { href: m, text:
|
|
134
|
+
), ...j, children: [
|
|
135
|
+
m && /* @__PURE__ */ a(G, { href: m, text: C, colorToken: T }),
|
|
136
136
|
o && /* @__PURE__ */ a(
|
|
137
137
|
R,
|
|
138
138
|
{
|
|
139
139
|
src: o,
|
|
140
|
-
alt: `${
|
|
140
|
+
alt: `${c} product image`,
|
|
141
141
|
height: r === "sm" ? 86 : 108,
|
|
142
142
|
width: r === "sm" ? 86 : 108
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
145
|
/* @__PURE__ */ e("div", { className: t.productData, children: [
|
|
146
146
|
/* @__PURE__ */ e("div", { className: t.productInformation, children: [
|
|
147
|
-
/* @__PURE__ */ a(V, { onClick: () =>
|
|
147
|
+
/* @__PURE__ */ a(V, { onClick: () => s == null ? void 0 : s(d), size: r, href: b || "#", children: y }),
|
|
148
148
|
/* @__PURE__ */ e("div", { className: t.partNumber, children: [
|
|
149
|
-
/* @__PURE__ */ a(
|
|
150
|
-
/* @__PURE__ */ a(
|
|
149
|
+
/* @__PURE__ */ a(n, { size: p, className: t.partNumberLabel, children: "Part #" }),
|
|
150
|
+
/* @__PURE__ */ a(n, { size: p, weight: "semibold", children: c })
|
|
151
151
|
] })
|
|
152
152
|
] }),
|
|
153
153
|
/* @__PURE__ */ e("div", { className: t.purchase, children: [
|
|
@@ -165,22 +165,22 @@ function it({
|
|
|
165
165
|
E,
|
|
166
166
|
{
|
|
167
167
|
price: u,
|
|
168
|
-
listPrice:
|
|
169
|
-
isSignedIn:
|
|
170
|
-
customerClass:
|
|
168
|
+
listPrice: g,
|
|
169
|
+
isSignedIn: v,
|
|
170
|
+
customerClass: x,
|
|
171
171
|
quantity: D,
|
|
172
172
|
className: t.pricing
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
|
-
/* @__PURE__ */ a(F, { size: r, itemKey: d, onAdd:
|
|
175
|
+
/* @__PURE__ */ a(F, { size: r, itemKey: d, onAdd: B, max: $, className: t.addToCart, addButtonClassName: t.addToCartButton, requiresUnitDetails: w, onQuantityChange: P })
|
|
176
176
|
] })
|
|
177
177
|
] }),
|
|
178
178
|
i && i.length > 0 && /* @__PURE__ */ a("ul", { className: t.attributeContainer, children: i.map((h) => /* @__PURE__ */ e("li", { children: [
|
|
179
|
-
/* @__PURE__ */ e(
|
|
179
|
+
/* @__PURE__ */ e(n, { size: "xs", weight: "light", children: [
|
|
180
180
|
h.label,
|
|
181
181
|
":"
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ a(
|
|
183
|
+
/* @__PURE__ */ a(n, { size: "xs", weight: "semibold", children: h.value })
|
|
184
184
|
] }, `${h.label}.${h.value}`)) })
|
|
185
185
|
] })
|
|
186
186
|
] });
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
4
|
-
import { Icon as
|
|
3
|
+
import { Link as g } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Icon as N } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
import { Image as y } from "../../atoms/Image/Image.js";
|
|
5
6
|
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
categories: T,
|
|
7
|
+
import '../../assets/SuggestionDropdown.css';const F = "_suggestionDropdown_zn0un_1", H = "_leftColumn_zn0un_31", $ = "_leftColumnFullWidth_zn0un_59", D = "_suggestionSectionFullHeight_zn0un_69", w = "_rightColumn_zn0un_79", b = "_categorySection_zn0un_99", T = "_suggestions_zn0un_105", k = "_categories_zn0un_107", q = "_suggestionsFullHeight_zn0un_121", W = "_customPartLink_zn0un_129", j = "_suggestionLink_zn0un_173", K = "_categoryLink_zn0un_175", M = "_activeOption_zn0un_211", O = "_itemList_zn0un_219", R = "_item_zn0un_219", x = "_recentSearch_zn0un_257", A = "_activeItem_zn0un_275", B = "_itemInfo_zn0un_311", E = "_recentSearches_zn0un_321", G = "_recentSearchesHeader_zn0un_335", J = "_recentSearchesList_zn0un_343", Q = "_recentSearchLink_zn0un_375", U = "_clearRecentSearch_zn0un_399", n = {
|
|
8
|
+
suggestionDropdown: F,
|
|
9
|
+
leftColumn: H,
|
|
10
|
+
leftColumnFullWidth: $,
|
|
11
|
+
suggestionSectionFullHeight: D,
|
|
12
|
+
rightColumn: w,
|
|
13
|
+
categorySection: b,
|
|
14
|
+
suggestions: T,
|
|
15
|
+
categories: k,
|
|
16
16
|
suggestionsFullHeight: q,
|
|
17
17
|
customPartLink: W,
|
|
18
18
|
suggestionLink: j,
|
|
@@ -31,106 +31,106 @@ import '../../assets/SuggestionDropdown.css';const z = "_suggestionDropdown_ukyk
|
|
|
31
31
|
};
|
|
32
32
|
function I({
|
|
33
33
|
terms: i,
|
|
34
|
-
categories:
|
|
35
|
-
items:
|
|
34
|
+
categories: r,
|
|
35
|
+
items: m,
|
|
36
36
|
customParts: _ = [],
|
|
37
|
-
view:
|
|
38
|
-
recentSearches:
|
|
39
|
-
onClearRecentSearch:
|
|
40
|
-
onSuggestionClick:
|
|
41
|
-
activeOptionIndex:
|
|
37
|
+
view: v = "suggestions",
|
|
38
|
+
recentSearches: d = [],
|
|
39
|
+
onClearRecentSearch: z,
|
|
40
|
+
onSuggestionClick: t,
|
|
41
|
+
activeOptionIndex: c = -1,
|
|
42
42
|
optionIdPrefix: u,
|
|
43
|
-
onKeyDown:
|
|
44
|
-
className:
|
|
43
|
+
onKeyDown: L,
|
|
44
|
+
className: p
|
|
45
45
|
}) {
|
|
46
|
-
return i.length === 0 &&
|
|
46
|
+
return i.length === 0 && r.length === 0 && m.length === 0 && _.length === 0 && d.length === 0 ? null : v === "recent-searches" ? /* @__PURE__ */ a(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
49
|
id: u,
|
|
50
50
|
role: "listbox",
|
|
51
|
-
className: o(
|
|
52
|
-
onKeyDown:
|
|
51
|
+
className: o(n.suggestionDropdown, n.recentSearches, p),
|
|
52
|
+
onKeyDown: L,
|
|
53
53
|
onMouseDown: (e) => e.preventDefault(),
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
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: d.map((e) => /* @__PURE__ */ a("li", { className: n.recentSearch, children: [
|
|
57
|
+
/* @__PURE__ */ l(
|
|
58
|
+
g,
|
|
59
59
|
{
|
|
60
60
|
href: e.url,
|
|
61
|
-
id: `${u}-${
|
|
61
|
+
id: `${u}-${d.indexOf(e)}`,
|
|
62
62
|
role: "option",
|
|
63
|
-
"aria-selected":
|
|
64
|
-
className: o(
|
|
65
|
-
onClick: () =>
|
|
66
|
-
children: /* @__PURE__ */
|
|
63
|
+
"aria-selected": c === d.indexOf(e),
|
|
64
|
+
className: o(n.recentSearchLink, { [n.activeOption]: c === d.indexOf(e) }),
|
|
65
|
+
onClick: () => t == null ? void 0 : t(e),
|
|
66
|
+
children: /* @__PURE__ */ l(h, { size: "sm", children: e.term })
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ l(
|
|
70
70
|
"button",
|
|
71
71
|
{
|
|
72
72
|
type: "button",
|
|
73
|
-
className:
|
|
73
|
+
className: n.clearRecentSearch,
|
|
74
74
|
"aria-label": `Clear recent search: ${e.term}`,
|
|
75
|
-
onClick: () =>
|
|
76
|
-
children: /* @__PURE__ */
|
|
75
|
+
onClick: () => z == null ? void 0 : z(e),
|
|
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__ */
|
|
83
|
-
(i.length > 0 ||
|
|
84
|
-
i.length > 0 && /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
82
|
+
) : /* @__PURE__ */ a("div", { id: u, role: "listbox", className: o(n.suggestionDropdown, p), onKeyDown: L, onMouseDown: (e) => e.preventDefault(), children: [
|
|
83
|
+
(i.length > 0 || r.length > 0 || _.length > 0) && /* @__PURE__ */ a("div", { className: o(n.leftColumn, { [n.leftColumnFullWidth]: m.length === 0 }), children: [
|
|
84
|
+
i.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
|
+
/* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
|
|
86
86
|
i.map(
|
|
87
|
-
(e, s) => /* @__PURE__ */
|
|
88
|
-
|
|
87
|
+
(e, s) => /* @__PURE__ */ l(h, { size: "sm", children: /* @__PURE__ */ l(
|
|
88
|
+
g,
|
|
89
89
|
{
|
|
90
90
|
href: e.url,
|
|
91
91
|
id: `${u}-${s}`,
|
|
92
92
|
role: "option",
|
|
93
|
-
"aria-selected":
|
|
94
|
-
className: o(
|
|
95
|
-
onClick: () =>
|
|
93
|
+
"aria-selected": c === s,
|
|
94
|
+
className: o(n.suggestionLink, { [n.activeOption]: c === s }),
|
|
95
|
+
onClick: () => t == null ? void 0 : t(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
|
+
r.length > 0 && /* @__PURE__ */ l("div", { className: n.categorySection, children: /* @__PURE__ */ a("div", { className: n.categories, children: [
|
|
102
|
+
/* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
|
|
103
|
+
r.map(
|
|
104
|
+
(e, s) => /* @__PURE__ */ l(h, { size: "sm", children: /* @__PURE__ */ l(
|
|
105
|
+
g,
|
|
106
106
|
{
|
|
107
107
|
href: e.url,
|
|
108
108
|
id: `${u}-${i.length + s}`,
|
|
109
109
|
role: "option",
|
|
110
|
-
"aria-selected":
|
|
111
|
-
className: o(
|
|
112
|
-
onClick: () =>
|
|
110
|
+
"aria-selected": c === i.length + s,
|
|
111
|
+
className: o(n.categoryLink, { [n.activeOption]: c === i.length + s }),
|
|
112
|
+
onClick: () => t == null ? void 0 : t(e),
|
|
113
113
|
children: e.name
|
|
114
114
|
}
|
|
115
115
|
) }, e.categoryKey)
|
|
116
116
|
)
|
|
117
117
|
] }) }),
|
|
118
|
-
_.length > 0 && /* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
118
|
+
_.length > 0 && /* @__PURE__ */ l("div", { className: n.categorySection, children: /* @__PURE__ */ a("div", { className: n.categories, children: [
|
|
119
|
+
/* @__PURE__ */ l(h, { size: "xxs", colorToken: "quaternary", children: "Custom Parts" }),
|
|
120
120
|
_.map((e, s) => {
|
|
121
|
-
const
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
|
|
121
|
+
const f = i.length + r.length + s;
|
|
122
|
+
return /* @__PURE__ */ a(
|
|
123
|
+
g,
|
|
124
124
|
{
|
|
125
125
|
href: e.url,
|
|
126
|
-
id: `${u}-${
|
|
126
|
+
id: `${u}-${f}`,
|
|
127
127
|
role: "option",
|
|
128
|
-
"aria-selected":
|
|
129
|
-
className: o(
|
|
130
|
-
onClick: () =>
|
|
128
|
+
"aria-selected": c === f,
|
|
129
|
+
className: o(n.customPartLink, { [n.activeOption]: c === f }),
|
|
130
|
+
onClick: () => t == null ? void 0 : t(e),
|
|
131
131
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ l(N, { iconKey: e.icon, size: "sm" }),
|
|
133
|
+
/* @__PURE__ */ l(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__ */ l("div", { className: n.rightColumn, children: /* @__PURE__ */ l("ol", { className: n.itemList, children: m.map(
|
|
142
|
+
(e, s) => /* @__PURE__ */ l("li", { className: o(n.item, { [n.activeItem]: c === i.length + r.length + _.length + s }), children: /* @__PURE__ */ a(
|
|
143
|
+
g,
|
|
144
144
|
{
|
|
145
145
|
href: e.url,
|
|
146
|
-
id: `${u}-${i.length +
|
|
146
|
+
id: `${u}-${i.length + r.length + _.length + s}`,
|
|
147
147
|
role: "option",
|
|
148
|
-
"aria-selected":
|
|
149
|
-
onClick: () =>
|
|
148
|
+
"aria-selected": c === i.length + r.length + _.length + s,
|
|
149
|
+
onClick: () => t == null ? void 0 : t(e),
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ l(y, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
|
|
152
|
+
/* @__PURE__ */ a("div", { className: n.itemInfo, children: [
|
|
153
|
+
/* @__PURE__ */ l(h, { size: "sm", children: e.description }),
|
|
154
|
+
/* @__PURE__ */ l(h, { size: "xs", colorToken: "quaternary", children: e.itemId })
|
|
155
155
|
] })
|
|
156
156
|
]
|
|
157
157
|
}
|