@caseparts-org/caseblocks 0.0.91 → 0.0.92
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/atoms/Tooltip/Tooltip.js +94 -83
- package/dist/main-client.d.ts +2 -0
- package/dist/main-client.js +29 -27
- package/dist/molecules/Cart/Cart.d.ts +1 -6
- package/dist/molecules/Cart/Cart.stories.js +42 -57
- package/dist/organisms/MainNav/MainNav.d.ts +0 -4
- package/dist/organisms/MainNav/MainNav.js +56 -66
- package/dist/organisms/MainNav/MainNav.stories.js +54 -64
- package/package.json +1 -1
|
@@ -1,120 +1,131 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import { r as
|
|
5
|
-
import '../../assets/Tooltip.css';const
|
|
6
|
-
tooltip:
|
|
7
|
-
content:
|
|
1
|
+
import { jsxs as N, Fragment as O, jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { c as S } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { r as W } from "../../index-B4KbmMH3.js";
|
|
5
|
+
import '../../assets/Tooltip.css';const A = "_tooltip_17o7a_1", D = "_content_17o7a_11", j = {
|
|
6
|
+
tooltip: A,
|
|
7
|
+
content: D
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function I(l) {
|
|
10
10
|
return l ? l.includes(" ") ? l : `${l} center` : "top center";
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
return { side: ["top", "right", "bottom", "left"].includes(
|
|
12
|
+
function $(l) {
|
|
13
|
+
const v = I(l).toLowerCase(), [s, t] = v.split(" ");
|
|
14
|
+
return { side: ["top", "right", "bottom", "left"].includes(s) ? s : "top", align: t === "left" || t === "top" ? "start" : t === "right" || t === "bottom" ? "end" : "center" };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
let f = 0,
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
return f = Math.max(4, Math.min(
|
|
16
|
+
function q(l, v, s, t, d = 8) {
|
|
17
|
+
const n = l.getBoundingClientRect(), u = v.getBoundingClientRect();
|
|
18
|
+
let f = 0, c = 0;
|
|
19
|
+
s === "top" ? f = n.top - u.height - d : s === "bottom" ? f = n.bottom + d : s === "left" ? c = n.left - u.width - d : s === "right" && (c = n.right + d), s === "top" || s === "bottom" ? t === "start" ? c = n.left : t === "end" ? c = n.right - u.width : c = n.left + n.width / 2 - u.width / 2 : t === "start" ? f = n.top : t === "end" ? f = n.bottom - u.height : f = n.top + n.height / 2 - u.height / 2;
|
|
20
|
+
const E = window.innerWidth, R = window.innerHeight;
|
|
21
|
+
return f = Math.max(4, Math.min(R - u.height - 4, f)), c = Math.max(4, Math.min(E - u.width - 4, c)), { top: f, left: c };
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Q = ({
|
|
24
24
|
tooltipClassName: l,
|
|
25
|
-
contentClassName:
|
|
26
|
-
children:
|
|
25
|
+
contentClassName: v,
|
|
26
|
+
children: s,
|
|
27
27
|
trigger: t,
|
|
28
|
-
position:
|
|
29
|
-
disabled:
|
|
28
|
+
position: d,
|
|
29
|
+
disabled: n,
|
|
30
30
|
openDelay: u = 150,
|
|
31
31
|
closeDelay: f = 100,
|
|
32
|
-
leaveGraceMs:
|
|
32
|
+
leaveGraceMs: c = 0
|
|
33
33
|
}) => {
|
|
34
|
-
const { side:
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
34
|
+
const { side: E, align: R } = $(d), [o, y] = i.useState(!1), [m, C] = i.useState(null), T = i.useRef(null), g = i.useRef(null), x = i.useRef(null), L = i.useRef(null), P = i.useRef(null), w = i.useRef(!1), a = (e) => {
|
|
35
|
+
e.current && (window.clearTimeout(e.current), e.current = null);
|
|
36
|
+
}, B = () => {
|
|
37
|
+
a(x), a(L), a(P);
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
i.useEffect(() => () => B(), []);
|
|
40
|
+
const k = () => {
|
|
41
|
+
n || o || (a(x), x.current = window.setTimeout(() => y(!0), u));
|
|
42
|
+
}, _ = () => {
|
|
43
|
+
o && (a(L), L.current = window.setTimeout(() => {
|
|
44
|
+
w.current || y(!1);
|
|
45
45
|
}, f));
|
|
46
|
-
},
|
|
47
|
-
if (
|
|
48
|
-
if (
|
|
49
|
-
|
|
46
|
+
}, z = () => {
|
|
47
|
+
if (o) {
|
|
48
|
+
if (a(P), c <= 0) {
|
|
49
|
+
_();
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
52
|
+
P.current = window.setTimeout(() => {
|
|
53
|
+
w.current || _();
|
|
54
|
+
}, c);
|
|
55
55
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
ref: (
|
|
60
|
-
const { ref:
|
|
61
|
-
typeof
|
|
56
|
+
}, b = (e, r) => (h) => {
|
|
57
|
+
e == null || e(h), r == null || r(h);
|
|
58
|
+
}, H = i.cloneElement(t, {
|
|
59
|
+
ref: (e) => {
|
|
60
|
+
const { ref: r } = t;
|
|
61
|
+
typeof r == "function" ? r(e) : r && (r.current = e), T.current = e;
|
|
62
62
|
},
|
|
63
|
-
onPointerEnter:
|
|
64
|
-
onPointerLeave:
|
|
65
|
-
onFocus:
|
|
66
|
-
onBlur:
|
|
67
|
-
"aria-describedby":
|
|
63
|
+
onPointerEnter: b(t.props.onPointerEnter, k),
|
|
64
|
+
onPointerLeave: b(t.props.onPointerLeave, z),
|
|
65
|
+
onFocus: b(t.props.onFocus, k),
|
|
66
|
+
onBlur: b(t.props.onBlur, _),
|
|
67
|
+
"aria-describedby": o ? "tooltip-popup" : void 0,
|
|
68
68
|
style: { ...t.props.style || {}, outline: "none" }
|
|
69
69
|
});
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
}, [
|
|
73
|
-
if (!
|
|
74
|
-
const
|
|
75
|
-
|
|
70
|
+
return i.useEffect(() => {
|
|
71
|
+
n && o && (B(), y(!1));
|
|
72
|
+
}, [n]), i.useEffect(() => {
|
|
73
|
+
if (!o) return;
|
|
74
|
+
const e = (r) => {
|
|
75
|
+
r.key === "Escape" && y(!1);
|
|
76
76
|
};
|
|
77
|
-
return window.addEventListener("keydown",
|
|
78
|
-
}, [
|
|
79
|
-
if (!
|
|
80
|
-
|
|
77
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
78
|
+
}, [o]), i.useLayoutEffect(() => {
|
|
79
|
+
if (!o) {
|
|
80
|
+
C(null);
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
85
|
-
const
|
|
86
|
-
|
|
83
|
+
const e = T.current, r = g.current;
|
|
84
|
+
if (!e || !r) return;
|
|
85
|
+
const h = 8, p = () => {
|
|
86
|
+
C(q(e, r, E, R, h));
|
|
87
|
+
};
|
|
88
|
+
return p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
|
|
89
|
+
window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
|
|
87
90
|
};
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
}, [o, E, R, s]), i.useEffect(() => {
|
|
92
|
+
if (!o) return;
|
|
93
|
+
const e = (r) => {
|
|
94
|
+
const h = T.current, p = g.current;
|
|
95
|
+
if (!h || !p) return;
|
|
96
|
+
const F = r.target;
|
|
97
|
+
!h.contains(F) && !p.contains(F) && (w.current = !1, z());
|
|
90
98
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
|
|
100
|
+
}, [o]), i.useEffect(() => {
|
|
101
|
+
o || (w.current = !1);
|
|
102
|
+
}, [o]), /* @__PURE__ */ N(O, { children: [
|
|
103
|
+
H,
|
|
104
|
+
o && typeof document < "u" && W.createPortal(
|
|
105
|
+
/* @__PURE__ */ M(
|
|
95
106
|
"div",
|
|
96
107
|
{
|
|
97
108
|
id: "tooltip-popup",
|
|
98
|
-
ref:
|
|
109
|
+
ref: g,
|
|
99
110
|
role: "tooltip",
|
|
100
|
-
"aria-hidden": !
|
|
101
|
-
"data-side":
|
|
102
|
-
"data-align":
|
|
103
|
-
className:
|
|
111
|
+
"aria-hidden": !o,
|
|
112
|
+
"data-side": E,
|
|
113
|
+
"data-align": R,
|
|
114
|
+
className: S(j.tooltip, l),
|
|
104
115
|
style: {
|
|
105
116
|
position: "absolute",
|
|
106
|
-
top: (
|
|
107
|
-
left: (
|
|
108
|
-
visibility:
|
|
117
|
+
top: (m == null ? void 0 : m.top) ?? 0,
|
|
118
|
+
left: (m == null ? void 0 : m.left) ?? 0,
|
|
119
|
+
visibility: m ? "visible" : "hidden",
|
|
109
120
|
zIndex: 10
|
|
110
121
|
},
|
|
111
122
|
onPointerEnter: () => {
|
|
112
|
-
|
|
123
|
+
w.current = !0, a(L), a(P);
|
|
113
124
|
},
|
|
114
125
|
onPointerLeave: () => {
|
|
115
|
-
|
|
126
|
+
w.current = !1, z();
|
|
116
127
|
},
|
|
117
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ M("div", { className: S(j.content, v), children: s })
|
|
118
129
|
}
|
|
119
130
|
),
|
|
120
131
|
document.body
|
|
@@ -122,5 +133,5 @@ const K = ({
|
|
|
122
133
|
] });
|
|
123
134
|
};
|
|
124
135
|
export {
|
|
125
|
-
|
|
136
|
+
Q as Tooltip
|
|
126
137
|
};
|
package/dist/main-client.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export type { ChipProps } from './molecules/Chip/Chip';
|
|
|
11
11
|
export { ToggleView } from './molecules/ToggleView/ToggleView';
|
|
12
12
|
export type { ToggleViewProps, ToggleOptionProps, ToggleOptionBaseProps, } from './molecules/ToggleView/ToggleView';
|
|
13
13
|
export type { ShoppingCart, CartItem } from './molecules/Cart/Cart';
|
|
14
|
+
export { CartSlideInPanel } from './molecules/Cart/CartSlideInPanel';
|
|
15
|
+
export type { CartSlideInPanelProps } from './molecules/Cart/CartSlideInPanel';
|
|
14
16
|
export type { StatefulButtonProps } from './molecules/StatefulButton/StatefulButton';
|
|
15
17
|
export { StatefulButton } from './molecules/StatefulButton/StatefulButton';
|
|
16
18
|
export type { AnimatedCheckMarkProps } from './molecules/StatefulButton/AnimatedCheckmark';
|
package/dist/main-client.js
CHANGED
|
@@ -3,14 +3,14 @@ import { Flex as p } from "./atoms/Flex/Flex.js";
|
|
|
3
3
|
import { Column as f, Grid as x } from "./atoms/Grid/Grid.js";
|
|
4
4
|
import { Head as a } from "./atoms/Root/Head.js";
|
|
5
5
|
import { Icon as l } from "./atoms/Icon/Icon.js";
|
|
6
|
-
import { Root as
|
|
6
|
+
import { Root as d } from "./atoms/Root/Root.js";
|
|
7
7
|
import { Separator as C } from "./atoms/Separator/Separator.js";
|
|
8
8
|
import { Text as k } from "./atoms/Text/Text.js";
|
|
9
|
-
import { Input as
|
|
10
|
-
import { Link as
|
|
9
|
+
import { Input as I } from "./atoms/Input/Input.js";
|
|
10
|
+
import { Link as B } from "./atoms/Link/Link.js";
|
|
11
11
|
import { linkClassName as h } from "./atoms/Link/linkClassName.js";
|
|
12
|
-
import { configureLink as
|
|
13
|
-
import { LinkButton as
|
|
12
|
+
import { configureLink as P, routerOverride as T } from "./atoms/Link/configureLink.js";
|
|
13
|
+
import { LinkButton as F } from "./atoms/LinkButton/LinkButton.js";
|
|
14
14
|
import { configureImage as y } from "./atoms/Image/configureImage.js";
|
|
15
15
|
import { Logo as M } from "./molecules/Logo/Logo.js";
|
|
16
16
|
import { SearchBox as w } from "./molecules/SearchBox/SearchBox.js";
|
|
@@ -27,52 +27,54 @@ import { Tooltip as oo } from "./atoms/Tooltip/Tooltip.js";
|
|
|
27
27
|
import { Account as to } from "./molecules/Account/Account.js";
|
|
28
28
|
import { Chip as po } from "./molecules/Chip/Chip.js";
|
|
29
29
|
import { ToggleView as fo } from "./molecules/ToggleView/ToggleView.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
30
|
+
import { CartSlideInPanel as no } from "./molecules/Cart/CartSlideInPanel.js";
|
|
31
|
+
import { StatefulButton as io } from "./molecules/StatefulButton/StatefulButton.js";
|
|
32
|
+
import { AnimatedCheckMark as uo } from "./molecules/StatefulButton/AnimatedCheckmark.js";
|
|
33
|
+
import { AddToCart as Co } from "./molecules/AddToCart/AddToCart.js";
|
|
34
|
+
import { MainNav as ko } from "./organisms/MainNav/MainNav.js";
|
|
35
|
+
import { ChipSelector as Io } from "./organisms/ChipSelector/ChipSelector.js";
|
|
36
|
+
import { Product as Bo } from "./organisms/Product/Product.js";
|
|
37
|
+
import { Carousel as ho } from "./organisms/Carousel/Carousel.js";
|
|
38
|
+
import { Footer as Po } from "./organisms/Footer/Footer.js";
|
|
38
39
|
export {
|
|
39
40
|
to as Account,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
Co as AddToCart,
|
|
42
|
+
uo as AnimatedCheckMark,
|
|
42
43
|
V as Availability,
|
|
43
44
|
q as Avatar,
|
|
44
45
|
E as BannerCard,
|
|
45
46
|
t as Button,
|
|
46
47
|
K as CardLink,
|
|
47
|
-
|
|
48
|
+
ho as Carousel,
|
|
49
|
+
no as CartSlideInPanel,
|
|
48
50
|
po as Chip,
|
|
49
|
-
|
|
51
|
+
Io as ChipSelector,
|
|
50
52
|
f as Column,
|
|
51
53
|
p as Flex,
|
|
52
|
-
|
|
54
|
+
Po as Footer,
|
|
53
55
|
x as Grid,
|
|
54
56
|
a as Head,
|
|
55
57
|
Y as HorizontalScroll,
|
|
56
58
|
l as Icon,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
I as Input,
|
|
60
|
+
B as Link,
|
|
61
|
+
F as LinkButton,
|
|
60
62
|
M as Logo,
|
|
61
|
-
|
|
63
|
+
ko as MainNav,
|
|
62
64
|
W as NotFound,
|
|
63
65
|
Q as Pricing,
|
|
64
|
-
|
|
66
|
+
Bo as Product,
|
|
65
67
|
G as QuantityInput,
|
|
66
|
-
|
|
68
|
+
d as Root,
|
|
67
69
|
w as SearchBox,
|
|
68
70
|
C as Separator,
|
|
69
71
|
_ as SlideInPanel,
|
|
70
|
-
|
|
72
|
+
io as StatefulButton,
|
|
71
73
|
k as Text,
|
|
72
74
|
fo as ToggleView,
|
|
73
75
|
oo as Tooltip,
|
|
74
76
|
y as configureImage,
|
|
75
|
-
|
|
77
|
+
P as configureLink,
|
|
76
78
|
h as linkClassName,
|
|
77
|
-
|
|
79
|
+
T as routerOverride
|
|
78
80
|
};
|
|
@@ -14,15 +14,10 @@ export interface ShoppingCart {
|
|
|
14
14
|
items: CartItem[];
|
|
15
15
|
}
|
|
16
16
|
export interface CartPropsBase {
|
|
17
|
-
onItemQtyChange: (_item: CartItem, _newQuantity: number) => void;
|
|
18
|
-
onItemDelete: (_item: CartItem) => void;
|
|
19
|
-
onCheckout: () => void;
|
|
20
17
|
cart: ShoppingCart;
|
|
21
|
-
subtotal?: string;
|
|
22
|
-
itemPriceLabel?: string;
|
|
23
|
-
contactHref?: string;
|
|
24
18
|
open?: boolean;
|
|
25
19
|
onCartClick: () => void;
|
|
20
|
+
onCheckout: () => void;
|
|
26
21
|
}
|
|
27
22
|
export interface ShoppingCartHandle {
|
|
28
23
|
open: () => void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { ShoppingCart as
|
|
4
|
-
import { CartSlideInPanel as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as c, Fragment as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s } from "react";
|
|
3
|
+
import { ShoppingCart as n } from "./Cart.js";
|
|
4
|
+
import { CartSlideInPanel as m } from "./CartSlideInPanel.js";
|
|
5
|
+
const C = {
|
|
6
6
|
title: "Case Parts/Molecules/Cart",
|
|
7
|
-
component:
|
|
7
|
+
component: n,
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: "centered"
|
|
10
10
|
},
|
|
11
11
|
tags: ["autodocs"]
|
|
12
|
-
}, a = "https://m.media-amazon.com/images/I/216+JEttsYL._UF1000,1000_QL80_.jpg",
|
|
12
|
+
}, a = "https://m.media-amazon.com/images/I/216+JEttsYL._UF1000,1000_QL80_.jpg", p = {
|
|
13
13
|
items: [
|
|
14
14
|
{ id: 1, itemId: "1094-01", description: "Kason Door Closer - Flush", price: "$99.99", quantity: 1, imageUrl: a, availability: "In Stock", availabilityId: "available" },
|
|
15
15
|
{ id: 2, itemId: "810810", description: "True Door Gasket", price: "$99.99", quantity: 1, imageUrl: a, availability: "In Stock", availabilityId: "available" },
|
|
@@ -31,90 +31,75 @@ const u = {
|
|
|
31
31
|
{ id: 3, itemId: "MG064", description: '36" x 79" 3-Sided Dart-to-Dart Gasket', price: "$99.99", quantity: 1, imageUrl: a, availability: "In Stock", availabilityId: "available" },
|
|
32
32
|
{ id: 4, itemId: "MG064-B", description: '36" x 79" 3-Sided Dart-to-Dart Gasket', price: "$99.99", quantity: 1, imageUrl: a, availability: "In Stock", availabilityId: "available" }
|
|
33
33
|
]
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return
|
|
34
|
+
};
|
|
35
|
+
function b(i) {
|
|
36
|
+
return `$${i.items.reduce(
|
|
37
|
+
(t, e) => t + (parseFloat(e.price.replace(/[^0-9.]/g, "")) || 0) * e.quantity,
|
|
38
|
+
0
|
|
39
|
+
).toFixed(2)}`;
|
|
40
|
+
}
|
|
41
|
+
const r = (i) => {
|
|
42
|
+
const [l, t] = s(!1);
|
|
43
|
+
return /* @__PURE__ */ c(d, { children: [
|
|
37
44
|
/* @__PURE__ */ o(
|
|
38
|
-
|
|
45
|
+
n,
|
|
39
46
|
{
|
|
40
47
|
...i,
|
|
41
|
-
open:
|
|
42
|
-
onCartClick: () =>
|
|
48
|
+
open: l,
|
|
49
|
+
onCartClick: () => t((e) => !e)
|
|
43
50
|
}
|
|
44
51
|
),
|
|
45
52
|
/* @__PURE__ */ o(
|
|
46
|
-
|
|
53
|
+
m,
|
|
47
54
|
{
|
|
48
|
-
open:
|
|
49
|
-
onClose: () =>
|
|
55
|
+
open: l,
|
|
56
|
+
onClose: () => t(!1),
|
|
50
57
|
cart: i.cart,
|
|
51
|
-
subtotal: i.
|
|
52
|
-
itemPriceLabel:
|
|
53
|
-
contactHref:
|
|
54
|
-
|
|
55
|
-
onItemDelete:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
subtotal: b(i.cart),
|
|
59
|
+
itemPriceLabel: "List Price",
|
|
60
|
+
contactHref: "#",
|
|
61
|
+
contactLinkBehavior: "new-tab",
|
|
62
|
+
onItemDelete: () => alert("Delete"),
|
|
63
|
+
onItemQtyChange: () => alert("Qty Change"),
|
|
64
|
+
onCheckout: i.onCheckout
|
|
58
65
|
}
|
|
59
66
|
)
|
|
60
67
|
] });
|
|
61
|
-
},
|
|
68
|
+
}, g = {
|
|
62
69
|
args: {
|
|
63
70
|
cart: { items: [] },
|
|
64
71
|
onCheckout: () => {
|
|
65
72
|
alert("Checkout");
|
|
66
73
|
},
|
|
67
|
-
onItemDelete: () => {
|
|
68
|
-
alert("Delete");
|
|
69
|
-
},
|
|
70
|
-
onItemQtyChange: () => {
|
|
71
|
-
alert("Qty Change");
|
|
72
|
-
},
|
|
73
74
|
onCartClick: () => {
|
|
74
75
|
}
|
|
75
|
-
//
|
|
76
|
+
// placeholder
|
|
76
77
|
},
|
|
77
|
-
render:
|
|
78
|
-
},
|
|
78
|
+
render: r
|
|
79
|
+
}, S = {
|
|
79
80
|
args: {
|
|
80
|
-
cart:
|
|
81
|
+
cart: p,
|
|
81
82
|
onCheckout: () => {
|
|
82
83
|
alert("Checkout");
|
|
83
84
|
},
|
|
84
|
-
onItemDelete: () => {
|
|
85
|
-
alert("Delete");
|
|
86
|
-
},
|
|
87
|
-
onItemQtyChange: () => {
|
|
88
|
-
alert("Qty Change");
|
|
89
|
-
},
|
|
90
|
-
subtotal: "$748.98",
|
|
91
85
|
onCartClick: () => {
|
|
92
86
|
}
|
|
93
|
-
// required
|
|
94
87
|
},
|
|
95
|
-
render:
|
|
96
|
-
},
|
|
88
|
+
render: r
|
|
89
|
+
}, h = {
|
|
97
90
|
args: {
|
|
98
91
|
cart: y,
|
|
99
92
|
onCheckout: () => {
|
|
100
93
|
alert("Checkout");
|
|
101
94
|
},
|
|
102
|
-
onItemDelete: () => {
|
|
103
|
-
alert("Delete");
|
|
104
|
-
},
|
|
105
|
-
onItemQtyChange: () => {
|
|
106
|
-
alert("Qty Change");
|
|
107
|
-
},
|
|
108
|
-
subtotal: "$748.98",
|
|
109
95
|
onCartClick: () => {
|
|
110
96
|
}
|
|
111
|
-
// required
|
|
112
97
|
},
|
|
113
|
-
render:
|
|
98
|
+
render: r
|
|
114
99
|
};
|
|
115
100
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
101
|
+
g as EmptyCart,
|
|
102
|
+
S as LargeCart,
|
|
103
|
+
h as SmallCart,
|
|
104
|
+
C as default
|
|
120
105
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CartPropsBase, ShoppingCart, ShoppingCartHandle } from '../../molecules/Cart/Cart';
|
|
3
3
|
import { AccountProps } from '../../molecules/Account/Account';
|
|
4
|
-
import { ContactUsLinkBehavior } from 'lib/main-client';
|
|
5
4
|
export interface Category {
|
|
6
5
|
id: string | number;
|
|
7
6
|
label: string;
|
|
@@ -21,9 +20,6 @@ export interface MainNavProps extends CartPropsBase, React.HTMLAttributes<HTMLDi
|
|
|
21
20
|
accountRoute: string;
|
|
22
21
|
contactRoute: string;
|
|
23
22
|
cart: ShoppingCart;
|
|
24
|
-
cartSubtotal?: string;
|
|
25
|
-
cartItemPriceLabel?: string;
|
|
26
|
-
cartContactLinkBehavior?: ContactUsLinkBehavior;
|
|
27
23
|
onLoginClick: () => void;
|
|
28
24
|
onSearch: (_input: string) => void;
|
|
29
25
|
}
|
|
@@ -1,55 +1,50 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import j from "react";
|
|
3
3
|
import { Text as _ } from "../../atoms/Text/Text.js";
|
|
4
|
-
import { Link as
|
|
5
|
-
import { Icon as
|
|
4
|
+
import { Link as l } from "../../atoms/Link/Link.js";
|
|
5
|
+
import { Icon as D } from "../../atoms/Icon/Icon.js";
|
|
6
6
|
import { Flex as t } from "../../atoms/Flex/Flex.js";
|
|
7
|
-
import { Grid as
|
|
8
|
-
import { Logo as
|
|
7
|
+
import { Grid as M, Column as z } from "../../atoms/Grid/Grid.js";
|
|
8
|
+
import { Logo as I } from "../../molecules/Logo/Logo.js";
|
|
9
9
|
import { SearchBox as p } from "../../molecules/SearchBox/SearchBox.js";
|
|
10
|
-
import { HamburgerMenu as
|
|
11
|
-
import { ShoppingCart as
|
|
12
|
-
import { Account as
|
|
13
|
-
import { CategoryNav as
|
|
14
|
-
import { c as
|
|
15
|
-
import '../../assets/MainNav.css';const
|
|
16
|
-
main:
|
|
17
|
-
column:
|
|
18
|
-
topNav:
|
|
19
|
-
logo:
|
|
20
|
-
operations:
|
|
21
|
-
search:
|
|
22
|
-
siteLink:
|
|
23
|
-
accountArea:
|
|
24
|
-
category:
|
|
25
|
-
menuList:
|
|
26
|
-
},
|
|
10
|
+
import { HamburgerMenu as U } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
11
|
+
import { ShoppingCart as F } from "../../molecules/Cart/Cart.js";
|
|
12
|
+
import { Account as S } from "../../molecules/Account/Account.js";
|
|
13
|
+
import { CategoryNav as B } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
14
|
+
import { c as G } from "../../clsx-OuTLNxxd.js";
|
|
15
|
+
import '../../assets/MainNav.css';const H = "_main_1l043_1", K = "_column_1l043_8", P = "_topNav_1l043_13", Q = "_logo_1l043_21", T = "_operations_1l043_24", W = "_search_1l043_31", q = "_siteLink_1l043_34", E = "_accountArea_1l043_38", J = "_category_1l043_50", O = "_menuList_1l043_72", r = {
|
|
16
|
+
main: H,
|
|
17
|
+
column: K,
|
|
18
|
+
topNav: P,
|
|
19
|
+
logo: Q,
|
|
20
|
+
operations: T,
|
|
21
|
+
search: W,
|
|
22
|
+
siteLink: q,
|
|
23
|
+
accountArea: E,
|
|
24
|
+
category: J,
|
|
25
|
+
menuList: O
|
|
26
|
+
}, le = j.forwardRef(function({
|
|
27
27
|
account: c,
|
|
28
28
|
categories: n,
|
|
29
|
-
byModelSerialRoute:
|
|
29
|
+
byModelSerialRoute: m,
|
|
30
30
|
homeRoute: u,
|
|
31
31
|
faqRoute: N,
|
|
32
|
-
customPartsRoute:
|
|
32
|
+
customPartsRoute: h,
|
|
33
33
|
aboutUsRoute: g,
|
|
34
34
|
accountRoute: v,
|
|
35
|
-
contactRoute:
|
|
35
|
+
contactRoute: d,
|
|
36
36
|
cart: A,
|
|
37
|
-
|
|
38
|
-
cartItemPriceLabel: x,
|
|
39
|
-
cartContactLinkBehavior: $,
|
|
40
|
-
onLoginClick: C,
|
|
37
|
+
onLoginClick: x,
|
|
41
38
|
onSearch: f,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
onCheckout: y,
|
|
45
|
-
open: b,
|
|
39
|
+
onCheckout: L,
|
|
40
|
+
open: C,
|
|
46
41
|
// NEW: consume external panel control props from CartPropsBase
|
|
47
|
-
onCartClick:
|
|
42
|
+
onCartClick: k,
|
|
48
43
|
// NEW: callback from consumer
|
|
49
|
-
className:
|
|
50
|
-
...
|
|
51
|
-
},
|
|
52
|
-
return /* @__PURE__ */ e(
|
|
44
|
+
className: w,
|
|
45
|
+
...y
|
|
46
|
+
}, b) {
|
|
47
|
+
return /* @__PURE__ */ e(M, { ...y, gridWrapperClassName: G(r.main, w), children: /* @__PURE__ */ o(z, { span: 12, className: r.column, children: [
|
|
53
48
|
/* @__PURE__ */ o(
|
|
54
49
|
t,
|
|
55
50
|
{
|
|
@@ -58,7 +53,7 @@ import '../../assets/MainNav.css';const T = "_main_1l043_1", W = "_column_1l043_
|
|
|
58
53
|
justifyContent: "space-between",
|
|
59
54
|
className: r.topNav,
|
|
60
55
|
children: [
|
|
61
|
-
/* @__PURE__ */ e("div", { className: r.logo, children: /* @__PURE__ */ e(
|
|
56
|
+
/* @__PURE__ */ e("div", { className: r.logo, children: /* @__PURE__ */ e(l, { href: u, children: /* @__PURE__ */ e(I, {}) }) }),
|
|
62
57
|
/* @__PURE__ */ o(
|
|
63
58
|
t,
|
|
64
59
|
{
|
|
@@ -68,50 +63,45 @@ import '../../assets/MainNav.css';const T = "_main_1l043_1", W = "_column_1l043_
|
|
|
68
63
|
className: r.operations,
|
|
69
64
|
children: [
|
|
70
65
|
/* @__PURE__ */ e(t, { flexDirection: "row", hideAt: ["sm"], className: r.search, children: /* @__PURE__ */ e(p, { onSearch: f, inputName: "cpc-search" }) }),
|
|
71
|
-
/* @__PURE__ */ e(i, { href:
|
|
72
|
-
/* @__PURE__ */ e(i, { href:
|
|
73
|
-
/* @__PURE__ */ e(i, { href:
|
|
66
|
+
/* @__PURE__ */ e(i, { href: m, hideAt: ["sm", "md"], children: "Model/Serial" }),
|
|
67
|
+
/* @__PURE__ */ e(i, { href: h, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
68
|
+
/* @__PURE__ */ e(i, { href: d, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
74
69
|
/* @__PURE__ */ e("div", { className: r.accountArea, children: /* @__PURE__ */ e(
|
|
75
|
-
|
|
70
|
+
S,
|
|
76
71
|
{
|
|
77
72
|
account: c,
|
|
78
73
|
accountRoute: v,
|
|
79
|
-
onLoginClick:
|
|
74
|
+
onLoginClick: x,
|
|
80
75
|
className: r.avatar
|
|
81
76
|
}
|
|
82
77
|
) }),
|
|
83
78
|
/* @__PURE__ */ e(
|
|
84
|
-
|
|
79
|
+
F,
|
|
85
80
|
{
|
|
86
|
-
ref:
|
|
81
|
+
ref: b,
|
|
87
82
|
cart: A,
|
|
88
|
-
open:
|
|
89
|
-
onCartClick:
|
|
90
|
-
|
|
91
|
-
onItemQtyChange: k,
|
|
92
|
-
onCheckout: y,
|
|
93
|
-
subtotal: L,
|
|
94
|
-
contactHref: a,
|
|
95
|
-
itemPriceLabel: x
|
|
83
|
+
open: C,
|
|
84
|
+
onCartClick: k,
|
|
85
|
+
onCheckout: L
|
|
96
86
|
}
|
|
97
87
|
),
|
|
98
|
-
/* @__PURE__ */ e(
|
|
99
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href:
|
|
100
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href:
|
|
101
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href:
|
|
88
|
+
/* @__PURE__ */ e(U, { hideAt: ["lg"], children: /* @__PURE__ */ o("ul", { className: r.menuList, children: [
|
|
89
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: m, children: "Make/Serial" }) }),
|
|
90
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: h, children: "Custom Parts" }) }),
|
|
91
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: d, children: "Contact Us" }) }),
|
|
102
92
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: N, children: "FAQ" }) }),
|
|
103
93
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: g, children: "About Us" }) }),
|
|
104
|
-
n && n.map((
|
|
105
|
-
/* @__PURE__ */ e(_, { size: "sm", weight: "semibold", children:
|
|
94
|
+
n && n.map((a) => /* @__PURE__ */ e("li", { className: r.category, children: /* @__PURE__ */ o(l, { href: a.route, children: [
|
|
95
|
+
/* @__PURE__ */ e(_, { size: "sm", weight: "semibold", children: a.label }),
|
|
106
96
|
/* @__PURE__ */ e(
|
|
107
|
-
|
|
97
|
+
D,
|
|
108
98
|
{
|
|
109
99
|
iconKey: "fa-solid fa-chevron-right",
|
|
110
100
|
title: "Navigate",
|
|
111
101
|
size: "sm"
|
|
112
102
|
}
|
|
113
103
|
)
|
|
114
|
-
] }) },
|
|
104
|
+
] }) }, a.id))
|
|
115
105
|
] }) })
|
|
116
106
|
]
|
|
117
107
|
}
|
|
@@ -120,16 +110,16 @@ import '../../assets/MainNav.css';const T = "_main_1l043_1", W = "_column_1l043_
|
|
|
120
110
|
}
|
|
121
111
|
),
|
|
122
112
|
/* @__PURE__ */ e(t, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(p, { onSearch: f, inputName: "cpc-search", className: r.search }) }),
|
|
123
|
-
/* @__PURE__ */ e(
|
|
113
|
+
/* @__PURE__ */ e(B, { categories: n })
|
|
124
114
|
] }) });
|
|
125
115
|
});
|
|
126
116
|
function i({
|
|
127
|
-
href:
|
|
117
|
+
href: s,
|
|
128
118
|
children: c,
|
|
129
119
|
...n
|
|
130
120
|
}) {
|
|
131
|
-
return /* @__PURE__ */ e(
|
|
121
|
+
return /* @__PURE__ */ e(l, { href: s, className: r.siteLink, ...n, children: /* @__PURE__ */ e(_, { size: "md", variant: "display", children: c }) });
|
|
132
122
|
}
|
|
133
123
|
export {
|
|
134
|
-
|
|
124
|
+
le as MainNav
|
|
135
125
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as u, Fragment as s, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { MainNav as
|
|
4
|
-
import { CartSlideInPanel as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as u, Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { MainNav as d } from "./MainNav.js";
|
|
4
|
+
import { CartSlideInPanel as m } from "../../molecules/Cart/CartSlideInPanel.js";
|
|
5
|
+
const g = {
|
|
6
6
|
title: "Case Parts/Organisms/MainNav",
|
|
7
|
-
component:
|
|
7
|
+
component: d,
|
|
8
8
|
parameters: {
|
|
9
9
|
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
|
|
10
10
|
layout: "fullscreen"
|
|
11
11
|
}
|
|
12
12
|
// tags: ["autodocs"],
|
|
13
|
-
},
|
|
13
|
+
}, l = [
|
|
14
14
|
{
|
|
15
15
|
id: 0,
|
|
16
16
|
label: "Shop by Brands",
|
|
@@ -27,7 +27,12 @@ const C = {
|
|
|
27
27
|
id: 1,
|
|
28
28
|
label: "Gaskets",
|
|
29
29
|
route: "#",
|
|
30
|
-
children: [
|
|
30
|
+
children: [
|
|
31
|
+
{ id: 25, label: "Sponge", route: "/anthony" },
|
|
32
|
+
{ id: 26, label: "Magnetic", route: "/beverage" },
|
|
33
|
+
{ id: 27, label: "Compression", route: "/continental" },
|
|
34
|
+
{ id: 28, label: "Door Sweep", route: "/delfield" }
|
|
35
|
+
]
|
|
31
36
|
},
|
|
32
37
|
{
|
|
33
38
|
id: 2,
|
|
@@ -83,7 +88,7 @@ const C = {
|
|
|
83
88
|
route: "#",
|
|
84
89
|
children: []
|
|
85
90
|
}
|
|
86
|
-
], t = "https://m.media-amazon.com/images/I/216+JEttsYL._UF1000,1000_QL80_.jpg",
|
|
91
|
+
], t = "https://m.media-amazon.com/images/I/216+JEttsYL._UF1000,1000_QL80_.jpg", r = {
|
|
87
92
|
items: [
|
|
88
93
|
{ id: 1, itemId: "1094-01", description: "Kason Door Closer - Flush", price: "$99.99", quantity: 1, imageUrl: t, availability: "In Stock", availabilityId: "available" },
|
|
89
94
|
{ id: 2, itemId: "810810", description: "True Door Gasket", price: "$99.99", quantity: 1, imageUrl: t, availability: "In Stock", availabilityId: "available" },
|
|
@@ -98,37 +103,44 @@ const C = {
|
|
|
98
103
|
{ id: 11, itemId: "1092-01", description: "Kason Door Closer - Flush", price: "$99.99", quantity: 1, imageUrl: t, availability: "In Stock", availabilityId: "available" },
|
|
99
104
|
{ id: 12, itemId: "1092-02", description: "Kason Door Closer - Offset", price: "$99.99", quantity: 1, imageUrl: t, availability: "In Stock", availabilityId: "available" }
|
|
100
105
|
]
|
|
101
|
-
}
|
|
102
|
-
|
|
106
|
+
};
|
|
107
|
+
function h(e) {
|
|
108
|
+
return `$${e.items.reduce(
|
|
109
|
+
(a, i) => a + (parseFloat(i.price.replace(/[^0-9.]/g, "")) || 0) * i.quantity,
|
|
110
|
+
0
|
|
111
|
+
).toFixed(2)}`;
|
|
112
|
+
}
|
|
113
|
+
const n = (e) => {
|
|
114
|
+
const [o, a] = b(!1);
|
|
103
115
|
return /* @__PURE__ */ u(s, { children: [
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
116
|
+
/* @__PURE__ */ c(
|
|
117
|
+
d,
|
|
106
118
|
{
|
|
107
119
|
...e,
|
|
108
|
-
open:
|
|
109
|
-
onCartClick: () =>
|
|
120
|
+
open: o,
|
|
121
|
+
onCartClick: () => a((i) => !i)
|
|
110
122
|
}
|
|
111
123
|
),
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
|
|
124
|
+
/* @__PURE__ */ c(
|
|
125
|
+
m,
|
|
114
126
|
{
|
|
115
|
-
open:
|
|
116
|
-
onClose: () =>
|
|
127
|
+
open: o,
|
|
128
|
+
onClose: () => a(!1),
|
|
117
129
|
cart: e.cart,
|
|
118
|
-
subtotal: e.
|
|
119
|
-
itemPriceLabel:
|
|
130
|
+
subtotal: h(e.cart),
|
|
131
|
+
itemPriceLabel: "List Price",
|
|
120
132
|
contactHref: e.contactRoute,
|
|
121
|
-
contactLinkBehavior:
|
|
122
|
-
onItemQtyChange:
|
|
123
|
-
onItemDelete:
|
|
133
|
+
contactLinkBehavior: "new-tab",
|
|
134
|
+
onItemQtyChange: () => alert("Qty Change"),
|
|
135
|
+
onItemDelete: () => alert("Delete"),
|
|
124
136
|
onCheckout: e.onCheckout
|
|
125
137
|
}
|
|
126
138
|
)
|
|
127
139
|
] });
|
|
128
|
-
},
|
|
140
|
+
}, C = {
|
|
129
141
|
args: {
|
|
130
142
|
account: { name: "Ringo", initials: "RS", number: "123456789012" },
|
|
131
|
-
cart:
|
|
143
|
+
cart: r,
|
|
132
144
|
homeRoute: "/",
|
|
133
145
|
customPartsRoute: "/custom",
|
|
134
146
|
accountRoute: "/account",
|
|
@@ -136,32 +148,25 @@ const C = {
|
|
|
136
148
|
faqRoute: "/faq",
|
|
137
149
|
aboutUsRoute: "/about",
|
|
138
150
|
contactRoute: "/contact",
|
|
139
|
-
cartSubtotal: "$1200.34",
|
|
140
151
|
onLoginClick: () => {
|
|
141
|
-
alert("Login
|
|
152
|
+
alert("Login");
|
|
142
153
|
},
|
|
143
154
|
onCheckout: () => {
|
|
144
155
|
alert("Checkout");
|
|
145
156
|
},
|
|
146
|
-
onItemDelete: () => {
|
|
147
|
-
alert("Delete");
|
|
148
|
-
},
|
|
149
|
-
onItemQtyChange: () => {
|
|
150
|
-
alert("Qty Change");
|
|
151
|
-
},
|
|
152
157
|
onSearch: (e) => {
|
|
153
158
|
alert(`Search ${e}`);
|
|
154
159
|
},
|
|
155
160
|
onCartClick: () => {
|
|
156
161
|
},
|
|
157
|
-
//
|
|
158
|
-
categories:
|
|
162
|
+
// placeholder required by component
|
|
163
|
+
categories: l
|
|
159
164
|
},
|
|
160
|
-
render:
|
|
165
|
+
render: n
|
|
161
166
|
}, k = {
|
|
162
167
|
args: {
|
|
163
168
|
account: { name: "Ringo", initials: "RS", number: "123456789012" },
|
|
164
|
-
cart:
|
|
169
|
+
cart: r,
|
|
165
170
|
homeRoute: "/",
|
|
166
171
|
customPartsRoute: "/custom",
|
|
167
172
|
accountRoute: "/account",
|
|
@@ -169,31 +174,23 @@ const C = {
|
|
|
169
174
|
faqRoute: "/faq",
|
|
170
175
|
aboutUsRoute: "/about",
|
|
171
176
|
contactRoute: "/contact",
|
|
172
|
-
cartSubtotal: "$1200.34",
|
|
173
177
|
onLoginClick: () => {
|
|
174
|
-
alert("Login
|
|
178
|
+
alert("Login");
|
|
175
179
|
},
|
|
176
180
|
onCheckout: () => {
|
|
177
181
|
alert("Checkout");
|
|
178
182
|
},
|
|
179
|
-
onItemDelete: () => {
|
|
180
|
-
alert("Delete");
|
|
181
|
-
},
|
|
182
|
-
onItemQtyChange: () => {
|
|
183
|
-
alert("Qty Change");
|
|
184
|
-
},
|
|
185
183
|
onSearch: (e) => {
|
|
186
184
|
alert(`Search ${e}`);
|
|
187
185
|
},
|
|
188
186
|
onCartClick: () => {
|
|
189
187
|
},
|
|
190
|
-
|
|
191
|
-
categories: a
|
|
188
|
+
categories: l
|
|
192
189
|
},
|
|
193
|
-
render:
|
|
194
|
-
},
|
|
190
|
+
render: n
|
|
191
|
+
}, S = {
|
|
195
192
|
args: {
|
|
196
|
-
cart:
|
|
193
|
+
cart: r,
|
|
197
194
|
homeRoute: "/",
|
|
198
195
|
customPartsRoute: "/custom",
|
|
199
196
|
accountRoute: "/account",
|
|
@@ -202,30 +199,23 @@ const C = {
|
|
|
202
199
|
aboutUsRoute: "/about",
|
|
203
200
|
contactRoute: "/contact",
|
|
204
201
|
onLoginClick: () => {
|
|
205
|
-
alert("Login
|
|
202
|
+
alert("Login");
|
|
206
203
|
},
|
|
207
204
|
onCheckout: () => {
|
|
208
205
|
alert("Checkout");
|
|
209
206
|
},
|
|
210
|
-
onItemDelete: () => {
|
|
211
|
-
alert("Delete");
|
|
212
|
-
},
|
|
213
|
-
onItemQtyChange: () => {
|
|
214
|
-
alert("Qty Change");
|
|
215
|
-
},
|
|
216
207
|
onSearch: (e) => {
|
|
217
208
|
alert(`Search ${e}`);
|
|
218
209
|
},
|
|
219
210
|
onCartClick: () => {
|
|
220
211
|
},
|
|
221
|
-
|
|
222
|
-
categories: a
|
|
212
|
+
categories: l
|
|
223
213
|
},
|
|
224
|
-
render:
|
|
214
|
+
render: n
|
|
225
215
|
};
|
|
226
216
|
export {
|
|
227
|
-
|
|
228
|
-
|
|
217
|
+
C as Authenticated,
|
|
218
|
+
S as Unauthenticated,
|
|
229
219
|
k as WithCartItems,
|
|
230
|
-
|
|
220
|
+
g as default
|
|
231
221
|
};
|