@caseparts-org/caseblocks 0.0.192 → 0.0.194
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/Markdown/PreprocessedMarkdown.d.ts +4 -3
- package/dist/atoms/Markdown/PreprocessedMarkdown.js +20 -13
- package/dist/atoms/Markdown/PreprocessedMarkdown.stories.d.ts +1 -0
- package/dist/atoms/Markdown/PreprocessedMarkdown.stories.js +34 -25
- package/dist/atoms/Markdown/usePreprocessedMarkdown.d.ts +2 -1
- package/dist/atoms/Markdown/usePreprocessedMarkdown.js +59 -37
- package/dist/organisms/Footer/Footer.d.ts +1 -5
- package/dist/organisms/Footer/Footer.js +46 -54
- package/dist/organisms/Footer/Footer.stories.js +4 -8
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { LinkTarget, ValidateToken } from './usePreprocessedMarkdown';
|
|
1
|
+
import { LinkTarget, ValidateToken, BatchValidateTokens } from './usePreprocessedMarkdown';
|
|
2
2
|
export type PreprocessedMarkdownProps = {
|
|
3
3
|
children?: string | null;
|
|
4
4
|
url: LinkTarget;
|
|
5
|
-
validate
|
|
5
|
+
validate?: ValidateToken;
|
|
6
|
+
batchValidate?: BatchValidateTokens;
|
|
6
7
|
className?: string;
|
|
7
8
|
debug?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function PreprocessedMarkdown({ url, validate, debug, className, children, }: PreprocessedMarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function PreprocessedMarkdown({ url, validate, batchValidate, debug, className, children, }: PreprocessedMarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Markdown as
|
|
3
|
-
import { usePreprocessedMarkdown as
|
|
4
|
-
function
|
|
2
|
+
import { Markdown as m } from "./Markdown.js";
|
|
3
|
+
import { usePreprocessedMarkdown as c } from "./usePreprocessedMarkdown.js";
|
|
4
|
+
function l({
|
|
5
5
|
url: o,
|
|
6
6
|
validate: e,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
batchValidate: n,
|
|
8
|
+
debug: t,
|
|
9
|
+
className: p,
|
|
10
|
+
children: s
|
|
10
11
|
}) {
|
|
11
|
-
const { output:
|
|
12
|
+
const { output: a } = c(
|
|
13
|
+
s ?? "",
|
|
14
|
+
o,
|
|
15
|
+
e,
|
|
16
|
+
t,
|
|
17
|
+
n
|
|
18
|
+
);
|
|
12
19
|
return /* @__PURE__ */ r(
|
|
13
|
-
|
|
20
|
+
m,
|
|
14
21
|
{
|
|
15
|
-
className:
|
|
22
|
+
className: p,
|
|
16
23
|
components: {
|
|
17
|
-
a: ({ node:
|
|
24
|
+
a: ({ node: f, ...d }) => /* @__PURE__ */ r(
|
|
18
25
|
"a",
|
|
19
26
|
{
|
|
20
|
-
...
|
|
27
|
+
...d,
|
|
21
28
|
target: "_blank",
|
|
22
29
|
rel: "noopener noreferrer"
|
|
23
30
|
}
|
|
24
31
|
)
|
|
25
32
|
},
|
|
26
|
-
children:
|
|
33
|
+
children: a
|
|
27
34
|
}
|
|
28
35
|
);
|
|
29
36
|
}
|
|
30
37
|
export {
|
|
31
|
-
|
|
38
|
+
l as PreprocessedMarkdown
|
|
32
39
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as m } from "react";
|
|
3
|
-
import { PreprocessedMarkdown as
|
|
4
|
-
const
|
|
3
|
+
import { PreprocessedMarkdown as s } from "./PreprocessedMarkdown.js";
|
|
4
|
+
const o = `Preprocessed Markdown
|
|
5
5
|
|
|
6
6
|
- Valid token [171] will link
|
|
7
7
|
- Invalid token [ABC] shows a warning when debug is on
|
|
8
8
|
|
|
9
|
-
You can also add more [123] tokens here.`,
|
|
9
|
+
You can also add more [123] tokens here.`, l = async (e) => {
|
|
10
10
|
if (await new Promise((t) => setTimeout(t, 150)), /^\d+$/.test(e)) return !0;
|
|
11
11
|
throw new Error("Invalid token");
|
|
12
|
-
},
|
|
12
|
+
}, u = async (e) => (await new Promise((t) => setTimeout(t, 150)), new Set(e.filter((t) => /^\d+$/.test(t)))), r = (e) => `https://example.com/items/${encodeURIComponent(e)}`, k = {
|
|
13
13
|
title: "Case Parts/Atoms/Markdown/PreprocessedMarkdown",
|
|
14
|
-
component:
|
|
14
|
+
component: s,
|
|
15
15
|
tags: ["autodocs"],
|
|
16
16
|
parameters: {
|
|
17
17
|
controls: { expanded: !0 }
|
|
@@ -22,43 +22,52 @@ You can also add more [123] tokens here.`, s = async (e) => {
|
|
|
22
22
|
className: { control: "text" }
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
26
|
-
const [t,
|
|
25
|
+
function h(e) {
|
|
26
|
+
const [t, a] = c(e.children ?? o);
|
|
27
27
|
return m(() => {
|
|
28
|
-
|
|
28
|
+
a(e.children ?? o);
|
|
29
29
|
}, [e.children]), /* @__PURE__ */ i("div", { style: { display: "grid", gap: 12 }, children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ n("label", { style: { fontWeight: 600 }, children: "Edit Markdown (live):" }),
|
|
31
|
+
/* @__PURE__ */ n(
|
|
32
32
|
"textarea",
|
|
33
33
|
{
|
|
34
34
|
value: t,
|
|
35
|
-
onChange: (d) =>
|
|
35
|
+
onChange: (d) => a(d.target.value),
|
|
36
36
|
rows: 8,
|
|
37
37
|
style: { width: "100%", fontFamily: "monospace" }
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ n(s, { ...e, children: t })
|
|
41
41
|
] });
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const f = {
|
|
44
44
|
args: {
|
|
45
|
-
children:
|
|
46
|
-
url:
|
|
47
|
-
validate:
|
|
45
|
+
children: o,
|
|
46
|
+
url: r,
|
|
47
|
+
validate: l,
|
|
48
48
|
debug: !0
|
|
49
49
|
},
|
|
50
|
-
render: (e) => /* @__PURE__ */
|
|
51
|
-
},
|
|
50
|
+
render: (e) => /* @__PURE__ */ n(h, { ...e })
|
|
51
|
+
}, x = {
|
|
52
52
|
name: "With Controls",
|
|
53
53
|
args: {
|
|
54
|
-
children:
|
|
55
|
-
url:
|
|
56
|
-
validate:
|
|
54
|
+
children: o,
|
|
55
|
+
url: r,
|
|
56
|
+
validate: l,
|
|
57
57
|
debug: !1
|
|
58
58
|
}
|
|
59
|
+
}, y = {
|
|
60
|
+
name: "Batch Validate",
|
|
61
|
+
args: {
|
|
62
|
+
children: o,
|
|
63
|
+
url: r,
|
|
64
|
+
batchValidate: u,
|
|
65
|
+
debug: !0
|
|
66
|
+
}
|
|
59
67
|
};
|
|
60
68
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
y as BatchValidate,
|
|
70
|
+
x as ControlsOnly,
|
|
71
|
+
f as Playground,
|
|
72
|
+
k as default
|
|
64
73
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type ValidateToken = (_token: string) => Promise<unknown>;
|
|
2
|
+
export type BatchValidateTokens = (_tokens: readonly string[]) => Promise<ReadonlySet<string> | readonly string[]>;
|
|
2
3
|
export type LinkTarget = string | ((_token: string) => string);
|
|
3
4
|
export type PreprocessedMarkdownResult = {
|
|
4
5
|
output: string;
|
|
@@ -9,4 +10,4 @@ export type PreprocessedMarkdownResult = {
|
|
|
9
10
|
* Extracts bracketed tokens not already followed by parentheses, validates them, and
|
|
10
11
|
* returns the input with validated tokens converted to markdown links.
|
|
11
12
|
*/
|
|
12
|
-
export declare function usePreprocessedMarkdown(input: string | null | undefined, url: LinkTarget, validate
|
|
13
|
+
export declare function usePreprocessedMarkdown(input: string | null | undefined, url: LinkTarget, validate?: ValidateToken, debug?: boolean, batchValidate?: BatchValidateTokens): PreprocessedMarkdownResult;
|
|
@@ -1,52 +1,74 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
function
|
|
3
|
-
const [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useState as q, useRef as p, useEffect as v, useMemo as x } from "react";
|
|
2
|
+
function k(n, i, w, y = !1, S) {
|
|
3
|
+
const [H, d] = q(n ?? ""), [P, h] = q(!1), r = p(/* @__PURE__ */ new Map()), E = p(w), R = p(
|
|
4
|
+
S
|
|
5
|
+
);
|
|
6
|
+
v(() => {
|
|
7
|
+
E.current = w, R.current = S;
|
|
8
|
+
}, [w, S]);
|
|
9
|
+
const u = x(() => /\[(.+?)\](?!\()/g, []), f = x(() => {
|
|
10
|
+
if (!n) return [];
|
|
11
|
+
const o = Array.from(n.matchAll(u)).map((l) => l[1]);
|
|
12
|
+
return Array.from(new Set(o));
|
|
13
|
+
}, [n, u]), $ = (o) => {
|
|
14
|
+
const e = o.split(/\r?\n/);
|
|
15
|
+
if (e.length === 0) return o;
|
|
16
|
+
const l = e[0];
|
|
17
|
+
return /^\s*#\s/.test(l) || (e[0] = `# ${l.trim()}`), e.join(`
|
|
12
18
|
`);
|
|
13
19
|
};
|
|
14
|
-
return
|
|
15
|
-
if (!
|
|
16
|
-
|
|
20
|
+
return v(() => {
|
|
21
|
+
if (!n) {
|
|
22
|
+
d(""), h(!1);
|
|
17
23
|
return;
|
|
18
24
|
}
|
|
19
|
-
if (!
|
|
20
|
-
|
|
25
|
+
if (!f.length) {
|
|
26
|
+
d($(n)), h(!1);
|
|
21
27
|
return;
|
|
22
28
|
}
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
const
|
|
29
|
+
let o = !1;
|
|
30
|
+
h(!0);
|
|
31
|
+
const e = f.filter((g) => !r.current.has(g));
|
|
26
32
|
return (async () => {
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
if (e.length) {
|
|
34
|
+
const t = R.current, s = E.current;
|
|
35
|
+
if (t)
|
|
29
36
|
try {
|
|
30
|
-
await
|
|
37
|
+
const c = await t(e), a = c instanceof Set ? c : new Set(c);
|
|
38
|
+
e.forEach((m) => {
|
|
39
|
+
r.current.set(m, a.has(m));
|
|
40
|
+
});
|
|
31
41
|
} catch {
|
|
32
|
-
|
|
42
|
+
e.forEach((c) => {
|
|
43
|
+
r.current.set(c, !1);
|
|
44
|
+
});
|
|
33
45
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
else s ? (await Promise.allSettled(
|
|
47
|
+
e.map(async (a) => {
|
|
48
|
+
try {
|
|
49
|
+
await s(a), r.current.set(a, !0);
|
|
50
|
+
} catch {
|
|
51
|
+
r.current.set(a, !1);
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
)).forEach((a, m) => {
|
|
55
|
+
const M = e[m];
|
|
56
|
+
r.current.has(M) || r.current.set(M, a.status === "fulfilled");
|
|
57
|
+
}) : e.forEach((c) => {
|
|
58
|
+
r.current.set(c, !0);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
const g = new Set(
|
|
62
|
+
f.filter((t) => r.current.get(t) === !0)
|
|
63
|
+
), j = new Set(
|
|
64
|
+
f.filter((t) => r.current.get(t) === !1)
|
|
65
|
+
), C = (t) => typeof i == "function" ? i(t) : i, A = n.replace(u, (t, s) => g.has(s) ? `**[${s}](${C(s)})**` : t), L = y ? A.replace(u, (t, s) => j.has(s) ? `[${s}]⚠️` : t) : A, O = $(L);
|
|
66
|
+
o || (d(O), h(!1));
|
|
45
67
|
})(), () => {
|
|
46
|
-
|
|
68
|
+
o = !0;
|
|
47
69
|
};
|
|
48
|
-
}, [
|
|
70
|
+
}, [n, f, y, i, u]), { output: H, loading: P, tokens: f };
|
|
49
71
|
}
|
|
50
72
|
export {
|
|
51
|
-
|
|
73
|
+
k as usePreprocessedMarkdown
|
|
52
74
|
};
|
|
@@ -18,16 +18,12 @@ export type FooterBranch = {
|
|
|
18
18
|
mapUrl: string;
|
|
19
19
|
};
|
|
20
20
|
export type FooterCustomerCareLinks = {
|
|
21
|
-
customerService?: FooterCustomerCareLink;
|
|
22
|
-
accounting?: FooterCustomerCareLink;
|
|
23
21
|
about?: FooterCustomerCareLink;
|
|
24
22
|
contact?: FooterCustomerCareLink;
|
|
25
23
|
faq?: FooterCustomerCareLink;
|
|
26
|
-
orderStatus?: FooterCustomerCareLink;
|
|
27
|
-
paymentMethods?: FooterCustomerCareLink;
|
|
28
24
|
returnsPolicy?: FooterCustomerCareLink;
|
|
29
|
-
shippingAndDelivery?: FooterCustomerCareLink;
|
|
30
25
|
salesTaxCertificates?: FooterCustomerCareLink;
|
|
26
|
+
myAccount?: FooterCustomerCareLink;
|
|
31
27
|
};
|
|
32
28
|
export type FooterCustomPartsLinks = {
|
|
33
29
|
title: FooterNavLink;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Grid as N, Column as h } from "../../atoms/Grid/Grid.js";
|
|
3
3
|
import { Flex as c } from "../../atoms/Flex/Flex.js";
|
|
4
|
-
import { Link as
|
|
4
|
+
import { Link as a } from "../../atoms/Link/Link.js";
|
|
5
5
|
import { Icon as _ } from "../../atoms/Icon/Icon.js";
|
|
6
6
|
import { Logo as $ } from "../../molecules/Logo/Logo.js";
|
|
7
7
|
import { Text as l } from "../../atoms/Text/Text.js";
|
|
@@ -23,16 +23,12 @@ import '../../assets/Footer.css';const B = "_footer_1uyfm_2", I = "_grid_1uyfm_1
|
|
|
23
23
|
"live-chat-interactive": "_live-chat-interactive_1uyfm_80",
|
|
24
24
|
"copyright-text": "_copyright-text_1uyfm_85"
|
|
25
25
|
}, Y = "CaseParts has been a leading distributor of commercial refrigeration parts since 1972. Our team of experts are dedicated to helping every customer source parts at great prices.", X = {
|
|
26
|
-
customerService: { label: "Customer Service", href: "mailto:customerservice@caseparts.com" },
|
|
27
|
-
accounting: { label: "Accounting Dept", href: "mailto:accounting@caseparts.com" },
|
|
28
|
-
about: { label: "About Us", href: "/about", unstyled: !0 },
|
|
29
26
|
contact: { label: "Contact Us", href: "/contact", unstyled: !0 },
|
|
27
|
+
about: { label: "About Us", href: "/about", unstyled: !0 },
|
|
30
28
|
faq: { label: "FAQs", href: "/faq", unstyled: !0 },
|
|
31
|
-
orderStatus: { label: "Order Status", href: "/account", unstyled: !0 },
|
|
32
|
-
paymentMethods: { label: "Payment Methods", href: "#", unstyled: !0 },
|
|
33
29
|
returnsPolicy: { label: "Returns Policy", href: "#", unstyled: !0 },
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
salesTaxCertificates: { label: "Sales Tax Certificates", href: "#", unstyled: !0 },
|
|
31
|
+
myAccount: { label: "My Account", href: "/account", unstyled: !0 }
|
|
36
32
|
}, J = {
|
|
37
33
|
title: { label: "Custom Parts", href: "/custom", unstyled: !0 },
|
|
38
34
|
cuttingBoards: { label: "Cutting Boards", href: "/custom", unstyled: !0 },
|
|
@@ -73,70 +69,66 @@ import '../../assets/Footer.css';const B = "_footer_1uyfm_2", I = "_grid_1uyfm_1
|
|
|
73
69
|
terms: { label: "Terms", href: "#", unstyled: !0 },
|
|
74
70
|
privacyPolicy: { label: "Privacy Policy", href: "#", unstyled: !0 }
|
|
75
71
|
};
|
|
76
|
-
function
|
|
72
|
+
function ie({
|
|
77
73
|
homeRoute: w = "/",
|
|
78
74
|
isOnline: y = !0,
|
|
79
75
|
className: g,
|
|
80
|
-
companyHistoryText:
|
|
81
|
-
customerCareTitle:
|
|
82
|
-
customerCareLinks:
|
|
83
|
-
customPartsLinks:
|
|
84
|
-
helpTitle:
|
|
85
|
-
branches:
|
|
76
|
+
companyHistoryText: A = Y,
|
|
77
|
+
customerCareTitle: C = "Customer Care",
|
|
78
|
+
customerCareLinks: n = X,
|
|
79
|
+
customPartsLinks: i = J,
|
|
80
|
+
helpTitle: S = "How May We Help?",
|
|
81
|
+
branches: z = V,
|
|
86
82
|
liveChatLabel: x = "Live Chat Support",
|
|
87
83
|
liveChatOnlineText: b = "Currently Online",
|
|
88
|
-
liveChatOfflineText:
|
|
84
|
+
liveChatOfflineText: T = "Currently Offline",
|
|
89
85
|
liveChatHref: p,
|
|
90
86
|
onLiveChatClick: f,
|
|
91
|
-
partResearchLabel:
|
|
92
|
-
partResearchDescription:
|
|
87
|
+
partResearchLabel: v = "Part Research Request",
|
|
88
|
+
partResearchDescription: D = "Ask Our Experts to Source a Part",
|
|
93
89
|
partResearchHref: u,
|
|
94
90
|
onPartResearchClick: d,
|
|
95
91
|
legalLinks: s = H,
|
|
96
92
|
copyrightText: P = "Copyright 1972-2025 Case Parts Company | All Rights Reserved.",
|
|
97
|
-
...
|
|
93
|
+
...W
|
|
98
94
|
}) {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
95
|
+
const M = m(r.footer, g), U = [
|
|
96
|
+
i.cuttingBoards,
|
|
97
|
+
i.gaskets,
|
|
98
|
+
i.heatersAndPans,
|
|
99
|
+
i.walkInDoors,
|
|
100
|
+
i.warmerWires,
|
|
101
|
+
i.wireShelving
|
|
106
102
|
], E = [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
i.paymentMethods,
|
|
114
|
-
i.returnsPolicy,
|
|
115
|
-
i.shippingAndDelivery,
|
|
116
|
-
i.salesTaxCertificates
|
|
103
|
+
n.contact,
|
|
104
|
+
n.about,
|
|
105
|
+
n.faq,
|
|
106
|
+
n.returnsPolicy,
|
|
107
|
+
n.salesTaxCertificates,
|
|
108
|
+
n.myAccount
|
|
117
109
|
].filter((t) => !!(t != null && t.href)), O = (t) => {
|
|
118
110
|
u || t.preventDefault(), d == null || d(t);
|
|
119
111
|
}, F = (t) => {
|
|
120
112
|
p || t.preventDefault(), f == null || f(t);
|
|
121
113
|
};
|
|
122
|
-
return /* @__PURE__ */ o("footer", { className:
|
|
114
|
+
return /* @__PURE__ */ o("footer", { className: M, ...W, children: [
|
|
123
115
|
/* @__PURE__ */ o(N, { gridWrapperClassName: m(g, r.grid), children: [
|
|
124
116
|
/* @__PURE__ */ o(h, { span: [4, 6, 3], className: r.gridColumn, children: [
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
/* @__PURE__ */ e("div", { className: r.history, children: /* @__PURE__ */ e(l, { size: "sm", weight: "extra-light", colorToken: "footer", className: r["history-text"], children:
|
|
117
|
+
/* @__PURE__ */ e(a, { href: w, children: /* @__PURE__ */ e($, { variant: "white", className: r.logo }) }),
|
|
118
|
+
/* @__PURE__ */ e("div", { className: r.history, children: /* @__PURE__ */ e(l, { size: "sm", weight: "extra-light", colorToken: "footer", className: r["history-text"], children: A }) })
|
|
127
119
|
] }),
|
|
128
120
|
/* @__PURE__ */ o(h, { span: [4, 6, 3], className: r.gridColumn, children: [
|
|
129
|
-
/* @__PURE__ */ e(l, { size: "sm", colorToken: "footer", weight: "semibold", as: "div", className: r.title, children:
|
|
130
|
-
/* @__PURE__ */ e(c, { flexDirection: "column", className: r.columnContent, children: E.map((t) => /* @__PURE__ */ e(
|
|
121
|
+
/* @__PURE__ */ e(l, { size: "sm", colorToken: "footer", weight: "semibold", as: "div", className: r.title, children: C }),
|
|
122
|
+
/* @__PURE__ */ e(c, { flexDirection: "column", className: r.columnContent, children: E.map((t) => /* @__PURE__ */ e(a, { href: t.href, unstyled: t.unstyled, target: t.target, rel: t.rel, children: t.label }, `${t.label}-${t.href}`)) })
|
|
131
123
|
] }),
|
|
132
124
|
/* @__PURE__ */ o(h, { span: [4, 6, 3], className: r.gridColumn, children: [
|
|
133
|
-
/* @__PURE__ */ e(
|
|
134
|
-
/* @__PURE__ */ e(c, { flexDirection: "column", className: r.columnContent, children: U.map((t) => /* @__PURE__ */ e(
|
|
125
|
+
/* @__PURE__ */ e(a, { href: i.title.href, unstyled: i.title.unstyled, children: /* @__PURE__ */ e(l, { size: "sm", colorToken: "footer", weight: "semibold", as: "div", className: r.title, children: i.title.label }) }),
|
|
126
|
+
/* @__PURE__ */ e(c, { flexDirection: "column", className: r.columnContent, children: U.map((t) => /* @__PURE__ */ e(a, { href: t.href, unstyled: t.unstyled, target: t.target, rel: t.rel, children: t.label }, `${t.label}-${t.href}`)) })
|
|
135
127
|
] }),
|
|
136
128
|
/* @__PURE__ */ o(h, { span: [4, 6, 3], className: r.gridColumn, children: [
|
|
137
|
-
/* @__PURE__ */ e(l, { size: "sm", weight: "semibold", colorToken: "footer", as: "div", className: `${r.title} ${r["title-help"]}`, children:
|
|
129
|
+
/* @__PURE__ */ e(l, { size: "sm", weight: "semibold", colorToken: "footer", as: "div", className: `${r.title} ${r["title-help"]}`, children: S }),
|
|
138
130
|
/* @__PURE__ */ o(c, { flexDirection: "column", className: r.columnContent, children: [
|
|
139
|
-
|
|
131
|
+
z.map((t) => /* @__PURE__ */ o(c, { flexDirection: "row", justifyContent: "flex-start", className: r["icon-gap"], children: [
|
|
140
132
|
/* @__PURE__ */ e(_, { iconKey: "fa-solid fa-location-dot", size: "sm", colorToken: "warning" }),
|
|
141
133
|
/* @__PURE__ */ e(
|
|
142
134
|
K,
|
|
@@ -163,7 +155,7 @@ function se({
|
|
|
163
155
|
t.addressLine2
|
|
164
156
|
] }),
|
|
165
157
|
/* @__PURE__ */ e("br", {}),
|
|
166
|
-
/* @__PURE__ */ e(l, { size: "xs", weight: "semibold", children: /* @__PURE__ */ e(
|
|
158
|
+
/* @__PURE__ */ e(l, { size: "xs", weight: "semibold", children: /* @__PURE__ */ e(a, { href: t.mapUrl, target: "_blank", rel: "noopener noreferrer", children: "Directions" }) })
|
|
167
159
|
] })
|
|
168
160
|
}
|
|
169
161
|
)
|
|
@@ -171,7 +163,7 @@ function se({
|
|
|
171
163
|
/* @__PURE__ */ o(c, { flexDirection: "row", justifyContent: "flex-start", className: r["icon-gap"], children: [
|
|
172
164
|
/* @__PURE__ */ e(_, { iconKey: "fa-kit fa-chat", size: "sm", colorToken: y ? "success" : "default-inverted" }),
|
|
173
165
|
p || f ? /* @__PURE__ */ o(
|
|
174
|
-
|
|
166
|
+
a,
|
|
175
167
|
{
|
|
176
168
|
href: p || "#",
|
|
177
169
|
unstyled: !0,
|
|
@@ -180,37 +172,37 @@ function se({
|
|
|
180
172
|
children: [
|
|
181
173
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: x }),
|
|
182
174
|
/* @__PURE__ */ e("br", {}),
|
|
183
|
-
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: y ? b :
|
|
175
|
+
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: y ? b : T })
|
|
184
176
|
]
|
|
185
177
|
}
|
|
186
178
|
) : /* @__PURE__ */ o("div", { children: [
|
|
187
179
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: x }),
|
|
188
180
|
/* @__PURE__ */ e("br", {}),
|
|
189
|
-
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: y ? b :
|
|
181
|
+
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: y ? b : T })
|
|
190
182
|
] })
|
|
191
183
|
] }),
|
|
192
184
|
/* @__PURE__ */ o(c, { flexDirection: "row", justifyContent: "flex-start", className: r["icon-gap"], children: [
|
|
193
185
|
/* @__PURE__ */ e(_, { iconKey: "fa-solid fa-megaphone", size: "sm", colorToken: "default-inverted" }),
|
|
194
186
|
/* @__PURE__ */ o("div", { className: m((u || d) && r["part-research-interactive"]), children: [
|
|
195
|
-
u || d ? /* @__PURE__ */ e(
|
|
187
|
+
u || d ? /* @__PURE__ */ e(a, { href: u || "#", unstyled: !0, onClick: O, children: v }) : /* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: v }),
|
|
196
188
|
/* @__PURE__ */ e("br", {}),
|
|
197
|
-
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children:
|
|
189
|
+
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: D })
|
|
198
190
|
] })
|
|
199
191
|
] })
|
|
200
192
|
] })
|
|
201
193
|
] })
|
|
202
194
|
] }),
|
|
203
195
|
/* @__PURE__ */ e(N, { gridWrapperClassName: m(g, r["bottom-grid"]), children: /* @__PURE__ */ e(h, { span: [4, 6, 12], className: r.gridColumn, children: /* @__PURE__ */ o("div", { className: r.columnContent, children: [
|
|
204
|
-
/* @__PURE__ */ e(
|
|
196
|
+
/* @__PURE__ */ e(a, { href: s.terms.href, unstyled: s.terms.unstyled, target: s.terms.target, rel: s.terms.rel, children: s.terms.label }),
|
|
205
197
|
" ",
|
|
206
198
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", variant: "body", colorToken: "footer", children: "|" }),
|
|
207
199
|
" ",
|
|
208
|
-
/* @__PURE__ */ e(
|
|
200
|
+
/* @__PURE__ */ e(a, { href: s.privacyPolicy.href, unstyled: s.privacyPolicy.unstyled, target: s.privacyPolicy.target, rel: s.privacyPolicy.rel, children: s.privacyPolicy.label }),
|
|
209
201
|
/* @__PURE__ */ e("br", {}),
|
|
210
202
|
/* @__PURE__ */ e(l, { size: "xxs", weight: "extra-light", variant: "body", colorToken: "footer", className: r["copyright-text"], children: `©${P}` })
|
|
211
203
|
] }) }) })
|
|
212
204
|
] });
|
|
213
205
|
}
|
|
214
206
|
export {
|
|
215
|
-
|
|
207
|
+
ie as Footer
|
|
216
208
|
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { Footer as a } from "./Footer.js";
|
|
2
2
|
const e = {
|
|
3
|
-
customerService: { label: "Customer Service", href: "mailto:customerservice@caseparts.com" },
|
|
4
|
-
accounting: { label: "Accounting Dept", href: "mailto:accounting@caseparts.com" },
|
|
5
|
-
about: { label: "About Us", href: "/about", unstyled: !0 },
|
|
6
3
|
contact: { label: "Contact Us", href: "/contact", unstyled: !0 },
|
|
4
|
+
about: { label: "About Us", href: "/about", unstyled: !0 },
|
|
7
5
|
faq: { label: "FAQs", href: "/faq", unstyled: !0 },
|
|
8
|
-
orderStatus: { label: "Order Status", href: "/account", unstyled: !0 },
|
|
9
|
-
paymentMethods: { label: "Payment Methods", href: "/payment-methods", unstyled: !0 },
|
|
10
6
|
returnsPolicy: { label: "Returns Policy", href: "/returns", unstyled: !0 },
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
salesTaxCertificates: { label: "Sales Tax Certificates", href: "/sales-tax-certificates", unstyled: !0 },
|
|
8
|
+
myAccount: { label: "My Account", href: "/account", unstyled: !0 }
|
|
13
9
|
}, t = {
|
|
14
10
|
title: { label: "Custom Parts", href: "/custom", unstyled: !0 },
|
|
15
11
|
cuttingBoards: { label: "Cutting Boards", href: "/custom", unstyled: !0 },
|
|
@@ -133,7 +129,7 @@ const e = {
|
|
|
133
129
|
isOnline: !0,
|
|
134
130
|
homeRoute: "/",
|
|
135
131
|
companyHistoryText: "CaseParts helps foodservice teams keep equipment running with fast support and dependable replacement parts.",
|
|
136
|
-
customerCareTitle: "
|
|
132
|
+
customerCareTitle: "Customer Care",
|
|
137
133
|
customPartsLinks: t,
|
|
138
134
|
customerCareLinks: e,
|
|
139
135
|
branches: s,
|