@everlywell/consumer-ui 1.44.1 → 1.46.0
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/index.js +10 -10
- package/index.mjs +750 -696
- package/lib/components/Footer/ComplianceLinks/ComplianceLinks.d.ts +1 -1
- package/lib/components/Footer/ComplianceLinks/ComplianceLinks.d.ts.map +1 -1
- package/lib/components/Footer/ComplianceLinks/ComplianceLinks.stories.d.ts +1 -0
- package/lib/components/Footer/ComplianceLinks/ComplianceLinks.stories.d.ts.map +1 -1
- package/lib/components/Footer/Footer/Footer.d.ts +3 -1
- package/lib/components/Footer/Footer/Footer.d.ts.map +1 -1
- package/lib/components/Footer/Footer/Footer.stories.d.ts.map +1 -1
- package/lib/components/Footer/NavigationLinks/NavigationLinks.d.ts +1 -0
- package/lib/components/Footer/NavigationLinks/NavigationLinks.d.ts.map +1 -1
- package/lib/components/Footer/NavigationLinks/NavigationLinks.stories.d.ts +1 -0
- package/lib/components/Footer/NavigationLinks/NavigationLinks.stories.d.ts.map +1 -1
- package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.d.ts +1 -0
- package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.d.ts.map +1 -1
- package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.stories.d.ts +1 -0
- package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.stories.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as Qt, Box as
|
|
2
|
-
import De, { useEffect as ee, forwardRef as Tt, useRef as
|
|
3
|
-
import { Text as En, useBreakpointValue as
|
|
1
|
+
import { useSteps as Qt, Box as R, Stepper as qt, Icon as me, Flex as D, Text as W, Link as oe, Button as Et, Image as en, IconButton as tn, theme as V, useMediaQuery as Qe, VStack as nn, Skeleton as Ze, HStack as ht, SkeletonCircle as Me, DrawerContent as St, DrawerOverlay as kt, Drawer as Rt, DrawerHeader as _t, DrawerBody as Dt, Grid as rn, GridItem as on, Accordion as an, AccordionItem as ln, AccordionButton as sn, AccordionPanel as cn, InputGroup as un, Input as dn, InputRightElement as fn, Container as pn, DrawerFooter as hn, DrawerCloseButton as gn, Modal as xn, ModalOverlay as vn, ModalContent as bn, ModalHeader as mn, ModalBody as wn, ModalFooter as jn, ModalCloseButton as yn } from "@everlywell/ui-kit";
|
|
2
|
+
import De, { useEffect as ee, forwardRef as Tt, useRef as Cn, useCallback as It, useState as U } from "react";
|
|
3
|
+
import { Text as En, useBreakpointValue as be, Box as Sn, InputGroup as kn, Input as Rn, InputRightElement as _n, Icon as Dn } from "@chakra-ui/react";
|
|
4
4
|
import { CaretRight as gt, Basket as Tn, CaretLeft as In, X as Ot, MagnifyingGlass as On, CaretDown as Ln, ArrowRight as Pn, InstagramLogo as An, LinkedinLogo as Mn, FacebookLogo as $n, TiktokLogo as Hn, XLogo as Fn } from "@phosphor-icons/react";
|
|
5
5
|
import { motion as ot, AnimatePresence as Bn } from "framer-motion";
|
|
6
|
-
var qe = { exports: {} },
|
|
6
|
+
var qe = { exports: {} }, Re = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,19 +15,19 @@ var qe = { exports: {} }, _e = {};
|
|
|
15
15
|
*/
|
|
16
16
|
var xt;
|
|
17
17
|
function Wn() {
|
|
18
|
-
if (xt) return
|
|
18
|
+
if (xt) return Re;
|
|
19
19
|
xt = 1;
|
|
20
|
-
var n = De, o = Symbol.for("react.element"),
|
|
21
|
-
function d(
|
|
22
|
-
var
|
|
23
|
-
f !== void 0 && (
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: o, type:
|
|
20
|
+
var n = De, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function d(p, h, f) {
|
|
22
|
+
var g, C = {}, E = null, v = null;
|
|
23
|
+
f !== void 0 && (E = "" + f), h.key !== void 0 && (E = "" + h.key), h.ref !== void 0 && (v = h.ref);
|
|
24
|
+
for (g in h) i.call(h, g) && !u.hasOwnProperty(g) && (C[g] = h[g]);
|
|
25
|
+
if (p && p.defaultProps) for (g in h = p.defaultProps, h) C[g] === void 0 && (C[g] = h[g]);
|
|
26
|
+
return { $$typeof: o, type: p, key: E, ref: v, props: C, _owner: c.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return Re.Fragment = s, Re.jsx = d, Re.jsxs = d, Re;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var _e = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -40,46 +40,46 @@ var ke = {};
|
|
|
40
40
|
var vt;
|
|
41
41
|
function zn() {
|
|
42
42
|
return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var n = De, o = Symbol.for("react.element"),
|
|
44
|
-
function
|
|
43
|
+
var n = De, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), w = Symbol.iterator, L = "@@iterator";
|
|
44
|
+
function b(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = w && e[w] || e[L];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var H = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function S(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0),
|
|
54
|
-
l[
|
|
55
|
-
|
|
53
|
+
for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0), x = 1; x < r; x++)
|
|
54
|
+
l[x - 1] = arguments[x];
|
|
55
|
+
j("error", e, l);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function j(e, r, l) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
60
|
+
var x = H.ReactDebugCurrentFrame, k = x.getStackAddendum();
|
|
61
|
+
k !== "" && (r += "%s", l = l.concat([k]));
|
|
62
|
+
var _ = l.map(function(y) {
|
|
63
|
+
return String(y);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var P = !1, F = !1,
|
|
68
|
+
var P = !1, F = !1, G = !1, Q = !1, se = !1, q;
|
|
69
69
|
q = Symbol.for("react.module.reference");
|
|
70
70
|
function ce(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || se || e === c || e === f || e === g || Q || e === v || P || F || G || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === C || e.$$typeof === d || e.$$typeof === p || e.$$typeof === h || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
75
|
e.$$typeof === q || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function ue(e, r, l) {
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
var x = e.displayName;
|
|
79
|
+
if (x)
|
|
80
|
+
return x;
|
|
81
|
+
var k = r.displayName || r.name || "";
|
|
82
|
+
return k !== "" ? l + "(" + k + ")" : l;
|
|
83
83
|
}
|
|
84
84
|
function te(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -87,41 +87,41 @@ function zn() {
|
|
|
87
87
|
function B(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case i:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case s:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case u:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case c:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case f:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case g:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case p:
|
|
111
111
|
var r = e;
|
|
112
112
|
return te(r) + ".Consumer";
|
|
113
113
|
case d:
|
|
114
114
|
var l = e;
|
|
115
115
|
return te(l._context) + ".Provider";
|
|
116
|
-
case
|
|
116
|
+
case h:
|
|
117
117
|
return ue(e, e.render, "ForwardRef");
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
118
|
+
case C:
|
|
119
|
+
var x = e.displayName || null;
|
|
120
|
+
return x !== null ? x : B(e.type) || "Memo";
|
|
121
|
+
case E: {
|
|
122
|
+
var k = e, _ = k._payload, y = k._init;
|
|
123
123
|
try {
|
|
124
|
-
return B(
|
|
124
|
+
return B(y(_));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -188,87 +188,87 @@ function zn() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
X < 0 &&
|
|
191
|
+
X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var K = H.ReactCurrentDispatcher,
|
|
194
|
+
var K = H.ReactCurrentDispatcher, ye;
|
|
195
195
|
function pe(e, r, l) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ye === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
|
|
200
|
+
} catch (k) {
|
|
201
|
+
var x = k.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ye = x && x[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ye + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Ce = !1, ne;
|
|
209
209
|
{
|
|
210
210
|
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
ne = new We();
|
|
212
212
|
}
|
|
213
213
|
function Pe(e, r) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || Ce)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
217
|
var l = ne.get(e);
|
|
218
218
|
if (l !== void 0)
|
|
219
219
|
return l;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
221
|
+
var x;
|
|
222
|
+
Ce = !0;
|
|
223
|
+
var k = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var _;
|
|
226
|
+
_ = K.current, K.current = null, Fe();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var y = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(y.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(y, []);
|
|
239
239
|
} catch (N) {
|
|
240
|
-
|
|
240
|
+
x = N;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], y);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
y.call();
|
|
246
246
|
} catch (N) {
|
|
247
|
-
|
|
247
|
+
x = N;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(y.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (N) {
|
|
255
|
-
|
|
255
|
+
x = N;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
259
|
} catch (N) {
|
|
260
|
-
if (N &&
|
|
261
|
-
for (var
|
|
262
|
-
`), z =
|
|
263
|
-
`), A =
|
|
260
|
+
if (N && x && typeof N.stack == "string") {
|
|
261
|
+
for (var m = N.stack.split(`
|
|
262
|
+
`), z = x.stack.split(`
|
|
263
|
+
`), A = m.length - 1, M = z.length - 1; A >= 1 && M >= 0 && m[A] !== z[M]; )
|
|
264
264
|
M--;
|
|
265
265
|
for (; A >= 1 && M >= 0; A--, M--)
|
|
266
|
-
if (
|
|
266
|
+
if (m[A] !== z[M]) {
|
|
267
267
|
if (A !== 1 || M !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (A--, M--, M < 0 ||
|
|
269
|
+
if (A--, M--, M < 0 || m[A] !== z[M]) {
|
|
270
270
|
var Y = `
|
|
271
|
-
` +
|
|
271
|
+
` + m[A].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, Y), Y;
|
|
273
273
|
}
|
|
274
274
|
while (A >= 1 && M >= 0);
|
|
@@ -276,7 +276,7 @@ function zn() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
Ce = !1, K.current = _, Be(), Error.prepareStackTrace = k;
|
|
280
280
|
}
|
|
281
281
|
var ve = e ? e.displayName || e.name : "", le = ve ? pe(ve) : "";
|
|
282
282
|
return typeof e == "function" && ne.set(e, le), le;
|
|
@@ -298,49 +298,49 @@ function zn() {
|
|
|
298
298
|
switch (e) {
|
|
299
299
|
case f:
|
|
300
300
|
return pe("Suspense");
|
|
301
|
-
case
|
|
301
|
+
case g:
|
|
302
302
|
return pe("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case h:
|
|
307
307
|
return ze(e.render);
|
|
308
|
-
case
|
|
308
|
+
case C:
|
|
309
309
|
return he(e.type, r, l);
|
|
310
|
-
case
|
|
311
|
-
var
|
|
310
|
+
case E: {
|
|
311
|
+
var x = e, k = x._payload, _ = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return he(k
|
|
313
|
+
return he(_(k), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var ie = Object.prototype.hasOwnProperty, Ee = {}, Se = H.ReactDebugCurrentFrame;
|
|
321
|
+
function ae(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var r = e._owner, l = he(e.type, e._source, r ? r.type : null);
|
|
324
324
|
Se.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
326
|
Se.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function a(e, r, l, x, k) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
330
|
+
var _ = Function.call.bind(ie);
|
|
331
|
+
for (var y in e)
|
|
332
|
+
if (_(e, y)) {
|
|
333
|
+
var m = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var z = Error((
|
|
335
|
+
if (typeof e[y] != "function") {
|
|
336
|
+
var z = Error((x || "React class") + ": " + l + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw z.name = "Invariant Violation", z;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
m = e[y](r, y, x, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (A) {
|
|
341
|
-
|
|
341
|
+
m = A;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
m && !(m instanceof Error) && (ae(k), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", l, y, typeof m), ae(null)), m instanceof Error && !(m.message in Ee) && (Ee[m.message] = !0, ae(k), S("Failed %s type: %s", l, m.message), ae(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,17 +366,17 @@ function zn() {
|
|
|
366
366
|
}
|
|
367
367
|
function Ae(e) {
|
|
368
368
|
if (ge(e))
|
|
369
|
-
return
|
|
369
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $(e)), re(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var ke = H.ReactCurrentOwner, Pt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, it, at, Ne;
|
|
377
377
|
Ne = {};
|
|
378
378
|
function At(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (ie.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function zn() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Mt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (ie.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -392,15 +392,15 @@ function zn() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function $t(e, r) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var l = B(
|
|
397
|
-
Ne[l] || (
|
|
395
|
+
if (typeof e.ref == "string" && ke.current && r && ke.current.stateNode !== r) {
|
|
396
|
+
var l = B(ke.current.type);
|
|
397
|
+
Ne[l] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(ke.current.type), e.ref), Ne[l] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function Ht(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var l = function() {
|
|
403
|
-
|
|
403
|
+
it || (it = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
405
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: l,
|
|
@@ -411,7 +411,7 @@ function zn() {
|
|
|
411
411
|
function Ft(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var l = function() {
|
|
414
|
-
|
|
414
|
+
at || (at = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
416
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: l,
|
|
@@ -419,51 +419,51 @@ function zn() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var Bt = function(e, r, l,
|
|
423
|
-
var
|
|
422
|
+
var Bt = function(e, r, l, x, k, _, y) {
|
|
423
|
+
var m = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: l,
|
|
430
|
-
props:
|
|
430
|
+
props: y,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: _
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(m, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: x
|
|
444
|
+
}), Object.defineProperty(m, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: k
|
|
449
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
450
450
|
};
|
|
451
|
-
function Wt(e, r, l,
|
|
451
|
+
function Wt(e, r, l, x, k) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
l !== void 0 && (Ae(l),
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var _, y = {}, m = null, z = null;
|
|
454
|
+
l !== void 0 && (Ae(l), m = "" + l), Mt(r) && (Ae(r.key), m = "" + r.key), At(r) && (z = r.ref, $t(r, k));
|
|
455
|
+
for (_ in r)
|
|
456
|
+
ie.call(r, _) && !Pt.hasOwnProperty(_) && (y[_] = r[_]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var A = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
|
|
459
|
+
for (_ in A)
|
|
460
|
+
y[_] === void 0 && (y[_] = A[_]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
462
|
+
if (m || z) {
|
|
463
463
|
var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
|
|
464
|
+
m && Ht(y, M), z && Ft(y, M);
|
|
465
465
|
}
|
|
466
|
-
return Bt(e,
|
|
466
|
+
return Bt(e, m, z, k, x, ke.current, y);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Ve = H.ReactCurrentOwner, lt = H.ReactDebugCurrentFrame;
|
|
@@ -474,9 +474,9 @@ function zn() {
|
|
|
474
474
|
} else
|
|
475
475
|
lt.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var Ge;
|
|
478
|
+
Ge = !1;
|
|
479
|
+
function Ye(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
482
|
function st() {
|
|
@@ -516,8 +516,8 @@ Check the top-level render call using <` + l + ">.");
|
|
|
516
516
|
if (ct[l])
|
|
517
517
|
return;
|
|
518
518
|
ct[l] = !0;
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !== Ve.current && (
|
|
519
|
+
var x = "";
|
|
520
|
+
e && e._owner && e._owner !== Ve.current && (x = " It was passed a child from " + B(e._owner.type) + "."), xe(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, x), xe(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
function dt(e, r) {
|
|
@@ -526,16 +526,16 @@ Check the top-level render call using <` + l + ">.");
|
|
|
526
526
|
return;
|
|
527
527
|
if (I(e))
|
|
528
528
|
for (var l = 0; l < e.length; l++) {
|
|
529
|
-
var
|
|
530
|
-
|
|
529
|
+
var x = e[l];
|
|
530
|
+
Ye(x) && ut(x, r);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (Ye(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var
|
|
538
|
-
|
|
535
|
+
var k = b(e);
|
|
536
|
+
if (typeof k == "function" && k !== e.entries)
|
|
537
|
+
for (var _ = k.call(e), y; !(y = _.next()).done; )
|
|
538
|
+
Ye(y.value) && ut(y.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -547,70 +547,70 @@ Check the top-level render call using <` + l + ">.");
|
|
|
547
547
|
var l;
|
|
548
548
|
if (typeof r == "function")
|
|
549
549
|
l = r.propTypes;
|
|
550
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
550
|
+
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
r.$$typeof ===
|
|
552
|
+
r.$$typeof === C))
|
|
553
553
|
l = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if (l) {
|
|
557
|
-
var
|
|
558
|
-
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
|
|
557
|
+
var x = B(r);
|
|
558
|
+
a(l, e.props, "prop", x, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !Ge) {
|
|
560
|
+
Ge = !0;
|
|
561
|
+
var k = B(r);
|
|
562
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Gt(e) {
|
|
568
568
|
{
|
|
569
569
|
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
xe(e),
|
|
570
|
+
var x = r[l];
|
|
571
|
+
if (x !== "children" && x !== "key") {
|
|
572
|
+
xe(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), xe(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (xe(e),
|
|
576
|
+
e.ref !== null && (xe(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ft = {};
|
|
580
|
-
function pt(e, r, l,
|
|
580
|
+
function pt(e, r, l, x, k, _) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
582
|
+
var y = ce(e);
|
|
583
|
+
if (!y) {
|
|
584
|
+
var m = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
586
|
var z = zt();
|
|
587
|
-
z ?
|
|
587
|
+
z ? m += z : m += st();
|
|
588
588
|
var A;
|
|
589
|
-
e === null ? A = "null" : I(e) ? A = "array" : e !== void 0 && e.$$typeof === o ? (A = "<" + (B(e.type) || "Unknown") + " />",
|
|
589
|
+
e === null ? A = "null" : I(e) ? A = "array" : e !== void 0 && e.$$typeof === o ? (A = "<" + (B(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : A = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, m);
|
|
590
590
|
}
|
|
591
|
-
var M = Wt(e, r, l,
|
|
591
|
+
var M = Wt(e, r, l, k, _);
|
|
592
592
|
if (M == null)
|
|
593
593
|
return M;
|
|
594
|
-
if (
|
|
594
|
+
if (y) {
|
|
595
595
|
var Y = r.children;
|
|
596
596
|
if (Y !== void 0)
|
|
597
|
-
if (
|
|
597
|
+
if (x)
|
|
598
598
|
if (I(Y)) {
|
|
599
599
|
for (var ve = 0; ve < Y.length; ve++)
|
|
600
600
|
dt(Y[ve], e);
|
|
601
601
|
Object.freeze && Object.freeze(Y);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
605
|
dt(Y, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
607
|
+
if (ie.call(r, "key")) {
|
|
608
608
|
var le = B(e), N = Object.keys(r).filter(function(Jt) {
|
|
609
609
|
return Jt !== "key";
|
|
610
610
|
}), Ue = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!ft[le + Ue]) {
|
|
612
612
|
var Xt = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
|
|
613
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -618,38 +618,38 @@ React keys must be passed directly to JSX without using spread:
|
|
|
618
618
|
<%s key={someKey} {...props} />`, Ue, le, Xt, le), ft[le + Ue] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === i ? Gt(M) : Vt(M), M;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Yt(e, r, l) {
|
|
625
625
|
return pt(e, r, l, !0);
|
|
626
626
|
}
|
|
627
627
|
function Ut(e, r, l) {
|
|
628
628
|
return pt(e, r, l, !1);
|
|
629
629
|
}
|
|
630
|
-
var Zt = Ut, Kt =
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var Zt = Ut, Kt = Yt;
|
|
631
|
+
_e.Fragment = i, _e.jsx = Zt, _e.jsxs = Kt;
|
|
632
|
+
}()), _e;
|
|
633
633
|
}
|
|
634
634
|
process.env.NODE_ENV === "production" ? qe.exports = Wn() : qe.exports = zn();
|
|
635
635
|
var t = qe.exports;
|
|
636
|
-
const Ke = 60,
|
|
636
|
+
const Ke = 60, bt = 6, Nn = (n) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: o,
|
|
639
|
-
hideIndicators:
|
|
640
|
-
steps:
|
|
641
|
-
stepperTheme:
|
|
639
|
+
hideIndicators: s = !1,
|
|
640
|
+
steps: i,
|
|
641
|
+
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
645
|
} = n, { activeStep: u, setActiveStep: d } = Qt({
|
|
646
646
|
index: o,
|
|
647
|
-
count:
|
|
647
|
+
count: i.length
|
|
648
648
|
});
|
|
649
649
|
return ee(() => {
|
|
650
650
|
d(o);
|
|
651
651
|
}, [o, d]), /* @__PURE__ */ t.jsx(
|
|
652
|
-
|
|
652
|
+
R,
|
|
653
653
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
654
|
qt,
|
|
655
655
|
{
|
|
@@ -658,32 +658,32 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children:
|
|
662
|
-
const f = u ===
|
|
663
|
-
let
|
|
664
|
-
const
|
|
665
|
-
return f ?
|
|
666
|
-
|
|
661
|
+
children: i.map((p, h) => {
|
|
662
|
+
const f = u === h, g = h === 0, C = h === i.length - 1, E = u > h;
|
|
663
|
+
let v = `${Ke}px`;
|
|
664
|
+
const w = `calc(100% - ((${Ke * (i.length - 1)}px) - (${i.length - 1} * ${bt * 2}px)))`;
|
|
665
|
+
return f ? v = w : (g || C) && (v = `${Ke - bt}px`), /* @__PURE__ */ t.jsx(
|
|
666
|
+
R,
|
|
667
667
|
{
|
|
668
|
-
width:
|
|
669
|
-
opacity:
|
|
670
|
-
paddingRight:
|
|
671
|
-
paddingLeft:
|
|
668
|
+
width: v,
|
|
669
|
+
opacity: E || f ? 1 : 0.2,
|
|
670
|
+
paddingRight: C ? "0" : "6px",
|
|
671
|
+
paddingLeft: g ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
674
|
-
|
|
674
|
+
R,
|
|
675
675
|
{
|
|
676
|
-
paddingTop:
|
|
676
|
+
paddingTop: s ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
680
|
-
|
|
680
|
+
R,
|
|
681
681
|
{
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
686
|
-
height:
|
|
685
|
+
backgroundColor: E ? c.light : c.base,
|
|
686
|
+
height: s ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
689
689
|
}
|
|
@@ -691,7 +691,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
691
691
|
}
|
|
692
692
|
)
|
|
693
693
|
},
|
|
694
|
-
`step-${
|
|
694
|
+
`step-${h}`
|
|
695
695
|
);
|
|
696
696
|
})
|
|
697
697
|
}
|
|
@@ -704,8 +704,8 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
704
704
|
En,
|
|
705
705
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
706
|
), we = (n, o) => {
|
|
707
|
-
const
|
|
708
|
-
return o && !
|
|
707
|
+
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
|
+
return o && !s ? {
|
|
709
709
|
to: n
|
|
710
710
|
} : {
|
|
711
711
|
href: n
|
|
@@ -713,37 +713,37 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
713
713
|
}, $e = Tt(
|
|
714
714
|
(n, o) => {
|
|
715
715
|
const {
|
|
716
|
-
label:
|
|
717
|
-
additionalContent:
|
|
718
|
-
mainTextFontSize:
|
|
716
|
+
label: s,
|
|
717
|
+
additionalContent: i,
|
|
718
|
+
mainTextFontSize: c,
|
|
719
719
|
linkComponent: u,
|
|
720
720
|
href: d,
|
|
721
|
-
forceMobileStyle:
|
|
722
|
-
...
|
|
723
|
-
} = n, f = u || oe,
|
|
721
|
+
forceMobileStyle: p = !1,
|
|
722
|
+
...h
|
|
723
|
+
} = n, f = u || oe, g = we(d, !!u), C = p ? c || "xl" : [c || "xl", null, null, "lg"], E = p ? "xl" : ["xl", null, null, "lg"], v = p ? void 0 : [null, null, null, 1], w = p ? void 0 : [null, null, null, "space-between"], L = p ? "3" : [3, null, null, 0], b = p ? "1px" : ["1px", null, null, "unset"], H = p ? "tints.cream" : ["tints.cream", null, null, "unset"], S = p ? "100%" : ["100%", null, null, "fit-content"], j = p ? "none" : ["none", null, null, "block"], P = p ? "100%" : ["100%", null, null, "auto"], F = p ? "block" : ["block", null, null, "none"];
|
|
724
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
|
-
|
|
725
|
+
R,
|
|
726
726
|
{
|
|
727
727
|
ref: o,
|
|
728
728
|
as: f,
|
|
729
729
|
display: "flex",
|
|
730
730
|
alignItems: "center",
|
|
731
|
-
gap:
|
|
732
|
-
justifyContent:
|
|
731
|
+
gap: v,
|
|
732
|
+
justifyContent: w,
|
|
733
733
|
paddingY: L,
|
|
734
734
|
color: "tints.black",
|
|
735
735
|
_hover: { color: "viridian.base", textDecoration: "none" },
|
|
736
|
-
borderBottom:
|
|
736
|
+
borderBottom: b,
|
|
737
737
|
borderColor: H,
|
|
738
|
-
width:
|
|
738
|
+
width: S,
|
|
739
739
|
cursor: "pointer",
|
|
740
|
-
...
|
|
741
|
-
...
|
|
740
|
+
...g,
|
|
741
|
+
...h,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ t.jsx(
|
|
744
|
-
|
|
744
|
+
me,
|
|
745
745
|
{
|
|
746
|
-
display:
|
|
746
|
+
display: j,
|
|
747
747
|
as: gt,
|
|
748
748
|
fontSize: "lg",
|
|
749
749
|
color: "viridian.light",
|
|
@@ -758,15 +758,15 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
758
758
|
/* @__PURE__ */ t.jsx(
|
|
759
759
|
W,
|
|
760
760
|
{
|
|
761
|
-
fontSize:
|
|
761
|
+
fontSize: C,
|
|
762
762
|
fontWeight: "medium",
|
|
763
|
-
children:
|
|
763
|
+
children: s
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
|
-
|
|
766
|
+
i && (typeof i == "string" ? /* @__PURE__ */ t.jsx(
|
|
767
767
|
W,
|
|
768
768
|
{
|
|
769
|
-
fontSize:
|
|
769
|
+
fontSize: E,
|
|
770
770
|
fontWeight: "medium",
|
|
771
771
|
color: "tints.uiGrey",
|
|
772
772
|
sx: {
|
|
@@ -774,11 +774,11 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
774
774
|
color: "viridian.base"
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
|
-
children:
|
|
777
|
+
children: i
|
|
778
778
|
}
|
|
779
|
-
) :
|
|
779
|
+
) : i),
|
|
780
780
|
/* @__PURE__ */ t.jsx(
|
|
781
|
-
|
|
781
|
+
me,
|
|
782
782
|
{
|
|
783
783
|
display: F,
|
|
784
784
|
as: gt,
|
|
@@ -797,7 +797,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
797
797
|
}
|
|
798
798
|
), Vn = Tt(
|
|
799
799
|
(n, o) => {
|
|
800
|
-
const { children:
|
|
800
|
+
const { children: s, isSelected: i, ...c } = n, u = n.backgroundColor || (i ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
802
|
Et,
|
|
803
803
|
{
|
|
@@ -825,24 +825,24 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
825
825
|
textDecoration: "none",
|
|
826
826
|
filter: "brightness(0.95)"
|
|
827
827
|
},
|
|
828
|
-
...
|
|
829
|
-
children:
|
|
828
|
+
...c,
|
|
829
|
+
children: s
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
|
-
),
|
|
833
|
+
), Gn = ({
|
|
834
834
|
title: n,
|
|
835
835
|
description: o,
|
|
836
|
-
imageSrc:
|
|
837
|
-
imageElement:
|
|
838
|
-
button:
|
|
836
|
+
imageSrc: s,
|
|
837
|
+
imageElement: i,
|
|
838
|
+
button: c,
|
|
839
839
|
backgroundColor: u = "viridian.wash",
|
|
840
840
|
onClick: d,
|
|
841
|
-
href:
|
|
842
|
-
linkComponent:
|
|
841
|
+
href: p,
|
|
842
|
+
linkComponent: h,
|
|
843
843
|
forceMobileStyle: f = !1
|
|
844
844
|
}) => {
|
|
845
|
-
const
|
|
845
|
+
const v = h || oe, w = we(p, !!h), L = be({
|
|
846
846
|
base: !1,
|
|
847
847
|
tablet: !1,
|
|
848
848
|
largeTablet: !1,
|
|
@@ -871,11 +871,11 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
871
871
|
border: "1px solid",
|
|
872
872
|
borderColor: "tints.white"
|
|
873
873
|
},
|
|
874
|
-
as: f ?
|
|
875
|
-
...f ?
|
|
874
|
+
as: f ? v : L ? D : v,
|
|
875
|
+
...f ? w : L ? {} : w,
|
|
876
876
|
children: [
|
|
877
877
|
/* @__PURE__ */ t.jsx(
|
|
878
|
-
|
|
878
|
+
R,
|
|
879
879
|
{
|
|
880
880
|
width: f ? "72px" : ["72px", null, null, "100%"],
|
|
881
881
|
height: f ? "100%" : ["100%", null, null, "188px"],
|
|
@@ -885,22 +885,22 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
885
885
|
objectFit: f ? "cover" : "contain"
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
|
-
children:
|
|
888
|
+
children: s ? /* @__PURE__ */ t.jsx(
|
|
889
889
|
en,
|
|
890
890
|
{
|
|
891
|
-
src:
|
|
891
|
+
src: s,
|
|
892
892
|
objectFit: "cover",
|
|
893
893
|
width: "100%",
|
|
894
894
|
alt: "",
|
|
895
895
|
"data-testid": "spotlight-card-image"
|
|
896
896
|
}
|
|
897
897
|
) : /* @__PURE__ */ t.jsx(
|
|
898
|
-
|
|
898
|
+
R,
|
|
899
899
|
{
|
|
900
900
|
height: f ? 80 : [80, null, null, 188],
|
|
901
901
|
overflow: "hidden",
|
|
902
902
|
...f ? { sx: { div: { height: "100%" } } } : {},
|
|
903
|
-
children:
|
|
903
|
+
children: i
|
|
904
904
|
}
|
|
905
905
|
)
|
|
906
906
|
}
|
|
@@ -938,7 +938,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
938
938
|
)
|
|
939
939
|
] }
|
|
940
940
|
),
|
|
941
|
-
f ? null : L ? /* @__PURE__ */ t.jsx(
|
|
941
|
+
f ? null : L ? /* @__PURE__ */ t.jsx(R, { children: c }) : null
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
944
|
)
|
|
@@ -967,7 +967,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
967
967
|
...n
|
|
968
968
|
}
|
|
969
969
|
), Lt = ({
|
|
970
|
-
color: n =
|
|
970
|
+
color: n = V.colors.viridian.base,
|
|
971
971
|
width: o
|
|
972
972
|
}) => /* @__PURE__ */ t.jsx(
|
|
973
973
|
Sn,
|
|
@@ -994,28 +994,28 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
994
994
|
) }
|
|
995
995
|
)
|
|
996
996
|
}
|
|
997
|
-
),
|
|
997
|
+
), Yn = ({
|
|
998
998
|
desktopTopButtons: n,
|
|
999
999
|
logoLink: o = "https://www.everlywell.com",
|
|
1000
|
-
setTopOffset:
|
|
1001
|
-
linkComponent:
|
|
1002
|
-
onLogoClick:
|
|
1000
|
+
setTopOffset: s,
|
|
1001
|
+
linkComponent: i,
|
|
1002
|
+
onLogoClick: c,
|
|
1003
1003
|
rightSideButtons: u
|
|
1004
1004
|
}) => {
|
|
1005
|
-
const d =
|
|
1005
|
+
const d = Cn(null), [p] = Qe(`(max-width: ${V.breakpoints.mediumTablet})`), [h] = Qe(`(max-width: ${V.breakpoints.mediumDesktop})`), f = It(() => {
|
|
1006
1006
|
if (d.current) {
|
|
1007
|
-
const
|
|
1008
|
-
|
|
1007
|
+
const g = d.current.getBoundingClientRect();
|
|
1008
|
+
s(g.bottom);
|
|
1009
1009
|
}
|
|
1010
1010
|
}, []);
|
|
1011
1011
|
return ee(() => {
|
|
1012
1012
|
f();
|
|
1013
1013
|
}, [f]), /* @__PURE__ */ t.jsx(
|
|
1014
|
-
|
|
1014
|
+
R,
|
|
1015
1015
|
{
|
|
1016
1016
|
ref: d,
|
|
1017
1017
|
paddingY: "4",
|
|
1018
|
-
paddingX:
|
|
1018
|
+
paddingX: p ? 4 : h ? 6 : 8,
|
|
1019
1019
|
borderBottom: "1px solid",
|
|
1020
1020
|
borderColor: "tints.lightCream",
|
|
1021
1021
|
backgroundColor: "tints.white",
|
|
@@ -1028,12 +1028,12 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1028
1028
|
D,
|
|
1029
1029
|
{ alignItems: "center", gap: "5", children: [
|
|
1030
1030
|
/* @__PURE__ */ t.jsx(
|
|
1031
|
-
|
|
1031
|
+
R,
|
|
1032
1032
|
{
|
|
1033
1033
|
"aria-label": "Go to homepage",
|
|
1034
|
-
onClick:
|
|
1035
|
-
as:
|
|
1036
|
-
...we(o, !!
|
|
1034
|
+
onClick: c,
|
|
1035
|
+
as: i || oe,
|
|
1036
|
+
...we(o, !!i),
|
|
1037
1037
|
children: /* @__PURE__ */ t.jsx(Lt, { width: "116px" })
|
|
1038
1038
|
}
|
|
1039
1039
|
),
|
|
@@ -1055,11 +1055,11 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1055
1055
|
count: n = 0,
|
|
1056
1056
|
...o
|
|
1057
1057
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1058
|
-
|
|
1058
|
+
R,
|
|
1059
1059
|
{ position: "relative", display: "inline-block", children: [
|
|
1060
1060
|
/* @__PURE__ */ t.jsx(et, { icon: /* @__PURE__ */ t.jsx(Tn, {}), ...o }),
|
|
1061
1061
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1062
|
-
|
|
1062
|
+
R,
|
|
1063
1063
|
{
|
|
1064
1064
|
display: "flex",
|
|
1065
1065
|
minWidth: "20px",
|
|
@@ -1086,7 +1086,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1086
1086
|
}) => /* @__PURE__ */ t.jsx(
|
|
1087
1087
|
nn,
|
|
1088
1088
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1089
|
-
|
|
1089
|
+
R,
|
|
1090
1090
|
{
|
|
1091
1091
|
paddingY: 4,
|
|
1092
1092
|
paddingX: 6,
|
|
@@ -1105,7 +1105,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1105
1105
|
"data-testid": "desktop-nav",
|
|
1106
1106
|
children: [
|
|
1107
1107
|
Array.from({ length: n }).map(
|
|
1108
|
-
(
|
|
1108
|
+
(s, i) => /* @__PURE__ */ t.jsx(Ze, { width: "90px", height: "48px" }, i)
|
|
1109
1109
|
),
|
|
1110
1110
|
o && /* @__PURE__ */ t.jsx(Ze, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1111
1111
|
]
|
|
@@ -1137,46 +1137,46 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
) }
|
|
1139
1139
|
), Un = (n, o) => {
|
|
1140
|
-
let
|
|
1141
|
-
return (...
|
|
1142
|
-
|
|
1143
|
-
n(...
|
|
1140
|
+
let s;
|
|
1141
|
+
return (...i) => {
|
|
1142
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
1143
|
+
n(...i);
|
|
1144
1144
|
}, o);
|
|
1145
1145
|
};
|
|
1146
1146
|
}, Xe = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Zn = (n, o) => {
|
|
1147
1147
|
n.length < o.length && ([n, o] = [o, n]);
|
|
1148
|
-
let
|
|
1149
|
-
for (let
|
|
1150
|
-
c
|
|
1151
|
-
for (let
|
|
1152
|
-
|
|
1148
|
+
let s = Array(o.length + 1).fill(0), i = Array(o.length + 1).fill(0);
|
|
1149
|
+
for (let c = 0; c <= o.length; c++)
|
|
1150
|
+
s[c] = c;
|
|
1151
|
+
for (let c = 1; c <= n.length; c++) {
|
|
1152
|
+
i[0] = c;
|
|
1153
1153
|
for (let u = 1; u <= o.length; u++) {
|
|
1154
|
-
const d = n[
|
|
1155
|
-
|
|
1156
|
-
|
|
1154
|
+
const d = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1155
|
+
i[u] = Math.min(
|
|
1156
|
+
i[u - 1] + 1,
|
|
1157
1157
|
// Insertion
|
|
1158
|
-
|
|
1158
|
+
s[u] + 1,
|
|
1159
1159
|
// Deletion
|
|
1160
|
-
|
|
1160
|
+
s[u - 1] + d
|
|
1161
1161
|
// Substitution
|
|
1162
1162
|
);
|
|
1163
1163
|
}
|
|
1164
|
-
[
|
|
1164
|
+
[s, i] = [i, s];
|
|
1165
1165
|
}
|
|
1166
|
-
return
|
|
1167
|
-
}, He = (n, o,
|
|
1166
|
+
return s[o.length];
|
|
1167
|
+
}, He = (n, o, s = 0.6) => {
|
|
1168
1168
|
if (n.length <= 3 || o.length <= 3)
|
|
1169
1169
|
return n.includes(o) || o.includes(n);
|
|
1170
|
-
const
|
|
1171
|
-
return 1 -
|
|
1172
|
-
},
|
|
1173
|
-
const
|
|
1174
|
-
return o.length <= 4 ?
|
|
1175
|
-
if (He(
|
|
1170
|
+
const i = Zn(n, o), c = Math.max(n.length, o.length);
|
|
1171
|
+
return 1 - i / c >= s;
|
|
1172
|
+
}, mt = (n, o) => {
|
|
1173
|
+
const s = n.split(/\s+/);
|
|
1174
|
+
return o.length <= 4 ? s.some((i) => i.includes(o)) : s.some((i) => {
|
|
1175
|
+
if (He(i, o))
|
|
1176
1176
|
return !0;
|
|
1177
|
-
if (
|
|
1178
|
-
for (let
|
|
1179
|
-
const u =
|
|
1177
|
+
if (i.length >= o.length)
|
|
1178
|
+
for (let c = 0; c <= i.length - o.length; c++) {
|
|
1179
|
+
const u = i.slice(c, c + o.length + 1);
|
|
1180
1180
|
if (He(o, u))
|
|
1181
1181
|
return !0;
|
|
1182
1182
|
}
|
|
@@ -1197,35 +1197,35 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1197
1197
|
cancelable: !0
|
|
1198
1198
|
})
|
|
1199
1199
|
);
|
|
1200
|
-
}, Kn = (n = !1, o = !1,
|
|
1200
|
+
}, Kn = (n = !1, o = !1, s = !1) => n || !o ? "column" : s ? "row" : "row-reverse", Xn = ot(St), Jn = ot(kt), Je = ({
|
|
1201
1201
|
isOpen: n = !1,
|
|
1202
1202
|
onClose: o,
|
|
1203
|
-
title:
|
|
1204
|
-
navDrawerLinks:
|
|
1205
|
-
bottomNavButtons:
|
|
1203
|
+
title: s,
|
|
1204
|
+
navDrawerLinks: i,
|
|
1205
|
+
bottomNavButtons: c,
|
|
1206
1206
|
spotlightCards: u,
|
|
1207
1207
|
bottomButton: d,
|
|
1208
|
-
hasBackButton:
|
|
1209
|
-
onBackClick:
|
|
1208
|
+
hasBackButton: p = !0,
|
|
1209
|
+
onBackClick: h,
|
|
1210
1210
|
hasOnlySpotlightCards: f = !1,
|
|
1211
|
-
hasSearch:
|
|
1212
|
-
onSearch:
|
|
1213
|
-
topOffset:
|
|
1214
|
-
forceMobilePlacement:
|
|
1211
|
+
hasSearch: g = !1,
|
|
1212
|
+
onSearch: C = () => ({}),
|
|
1213
|
+
topOffset: E,
|
|
1214
|
+
forceMobilePlacement: v = !1
|
|
1215
1215
|
}) => {
|
|
1216
1216
|
var se, q, ce, ue, te, B;
|
|
1217
|
-
const
|
|
1217
|
+
const w = be({
|
|
1218
1218
|
base: !1,
|
|
1219
1219
|
tablet: !1,
|
|
1220
1220
|
largeTablet: !1,
|
|
1221
1221
|
mediumDesktop: !0,
|
|
1222
1222
|
desktop: !0,
|
|
1223
1223
|
fullDesktop: !0
|
|
1224
|
-
}) ?? !1, L =
|
|
1225
|
-
|
|
1226
|
-
},
|
|
1224
|
+
}) ?? !1, L = v ? "right" : w ? "top" : "right", b = L === "right", [H, S] = U(0), [j, P] = U(!1), F = () => {
|
|
1225
|
+
S((T) => T + 1);
|
|
1226
|
+
}, G = It(
|
|
1227
1227
|
Un((T) => {
|
|
1228
|
-
|
|
1228
|
+
C(T), F();
|
|
1229
1229
|
}, 100),
|
|
1230
1230
|
[]
|
|
1231
1231
|
);
|
|
@@ -1236,27 +1236,27 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1236
1236
|
n || (P(!1), o()), jt(rt);
|
|
1237
1237
|
};
|
|
1238
1238
|
return /* @__PURE__ */ t.jsx(
|
|
1239
|
-
|
|
1239
|
+
Rt,
|
|
1240
1240
|
{
|
|
1241
|
-
isOpen:
|
|
1241
|
+
isOpen: j || n,
|
|
1242
1242
|
closeOnOverlayClick: !0,
|
|
1243
1243
|
onClose: () => {
|
|
1244
|
-
|
|
1244
|
+
j && !b || o();
|
|
1245
1245
|
},
|
|
1246
1246
|
placement: L,
|
|
1247
1247
|
blockScrollOnMount: !1,
|
|
1248
1248
|
autoFocus: !1,
|
|
1249
|
-
...
|
|
1249
|
+
...b ? {
|
|
1250
1250
|
styleConfig: {
|
|
1251
1251
|
baseStyle: {
|
|
1252
|
-
...
|
|
1252
|
+
...V.components.Drawer.baseStyle,
|
|
1253
1253
|
dialogContainer: {
|
|
1254
|
-
...(q = (se =
|
|
1254
|
+
...(q = (se = V.components.Drawer) == null ? void 0 : se.baseStyle) == null ? void 0 : q.dialogContainer,
|
|
1255
1255
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1256
1256
|
zIndex: "popover"
|
|
1257
1257
|
},
|
|
1258
1258
|
dialog: {
|
|
1259
|
-
...(ue = (ce =
|
|
1259
|
+
...(ue = (ce = V.components.Drawer) == null ? void 0 : ce.baseStyle) == null ? void 0 : ue.dialog,
|
|
1260
1260
|
// Ensure mobile drawer doesn't expand to full width
|
|
1261
1261
|
maxW: "560px",
|
|
1262
1262
|
width: "auto"
|
|
@@ -1266,11 +1266,11 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1266
1266
|
} : {
|
|
1267
1267
|
styleConfig: {
|
|
1268
1268
|
baseStyle: {
|
|
1269
|
-
...
|
|
1269
|
+
...V.components.Drawer.baseStyle,
|
|
1270
1270
|
dialogContainer: {
|
|
1271
|
-
...(B = (te =
|
|
1271
|
+
...(B = (te = V.components.Drawer) == null ? void 0 : te.baseStyle) == null ? void 0 : B.dialogContainer,
|
|
1272
1272
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1273
|
-
top: `${
|
|
1273
|
+
top: `${E}px`,
|
|
1274
1274
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1275
1275
|
zIndex: "overlay"
|
|
1276
1276
|
}
|
|
@@ -1286,10 +1286,10 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1286
1286
|
Jn,
|
|
1287
1287
|
{
|
|
1288
1288
|
backgroundColor: "tints.black",
|
|
1289
|
-
top:
|
|
1290
|
-
opacity:
|
|
1291
|
-
zIndex:
|
|
1292
|
-
...
|
|
1289
|
+
top: b ? "0" : `${E}px`,
|
|
1290
|
+
opacity: b ? "0.4 !important" : void 0,
|
|
1291
|
+
zIndex: b ? "modal" : "overlay",
|
|
1292
|
+
...b ? {} : {
|
|
1293
1293
|
initial: { opacity: 0 },
|
|
1294
1294
|
animate: { opacity: 0.4 },
|
|
1295
1295
|
exit: { opacity: 0 },
|
|
@@ -1309,21 +1309,21 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1309
1309
|
Z && Z.href === window.location.href && o();
|
|
1310
1310
|
},
|
|
1311
1311
|
onMouseEnter: () => {
|
|
1312
|
-
|
|
1312
|
+
b || wt(!0);
|
|
1313
1313
|
},
|
|
1314
1314
|
onMouseLeave: (T) => {
|
|
1315
|
-
|
|
1315
|
+
b || (!g || g && (T.target === T.currentTarget || !T.currentTarget.contains(T.target) && !j)) && wt(!1);
|
|
1316
1316
|
},
|
|
1317
1317
|
paddingTop: "4",
|
|
1318
|
-
paddingX:
|
|
1318
|
+
paddingX: b ? "4" : "12",
|
|
1319
1319
|
paddingBottom: "24",
|
|
1320
|
-
overflow:
|
|
1320
|
+
overflow: b ? "auto" : "hidden",
|
|
1321
1321
|
maxHeight: "100vh",
|
|
1322
1322
|
position: "relative",
|
|
1323
|
-
top:
|
|
1323
|
+
top: b ? void 0 : `${E}px !important`,
|
|
1324
1324
|
onAnimationComplete: Q,
|
|
1325
1325
|
boxShadow: "none",
|
|
1326
|
-
...
|
|
1326
|
+
...b ? {
|
|
1327
1327
|
// Mobile drawers should use slide animation, not height expansion
|
|
1328
1328
|
initial: !1,
|
|
1329
1329
|
animate: !1,
|
|
@@ -1335,26 +1335,26 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1335
1335
|
transition: { duration: 0.3 }
|
|
1336
1336
|
},
|
|
1337
1337
|
children: [
|
|
1338
|
-
!
|
|
1339
|
-
|
|
1338
|
+
!g && !b ? null : /* @__PURE__ */ t.jsxs(
|
|
1339
|
+
_t,
|
|
1340
1340
|
{
|
|
1341
1341
|
padding: "0",
|
|
1342
|
-
flexDirection:
|
|
1343
|
-
gap:
|
|
1342
|
+
flexDirection: g ? "column" : "row",
|
|
1343
|
+
gap: g ? "4" : "0",
|
|
1344
1344
|
children: [
|
|
1345
|
-
|
|
1345
|
+
b ? /* @__PURE__ */ t.jsxs(
|
|
1346
1346
|
D,
|
|
1347
1347
|
{
|
|
1348
1348
|
width: "100%",
|
|
1349
1349
|
justifyContent: "space-between",
|
|
1350
1350
|
alignItems: "center",
|
|
1351
1351
|
children: [
|
|
1352
|
-
|
|
1352
|
+
p ? /* @__PURE__ */ t.jsx(
|
|
1353
1353
|
et,
|
|
1354
1354
|
{
|
|
1355
1355
|
icon: /* @__PURE__ */ t.jsx(In, {}),
|
|
1356
1356
|
onClick: () => {
|
|
1357
|
-
|
|
1357
|
+
h && h();
|
|
1358
1358
|
},
|
|
1359
1359
|
"aria-label": "Back"
|
|
1360
1360
|
}
|
|
@@ -1364,7 +1364,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1364
1364
|
{
|
|
1365
1365
|
color: "tints.uiGrey",
|
|
1366
1366
|
fontSize: "xl",
|
|
1367
|
-
children:
|
|
1367
|
+
children: s
|
|
1368
1368
|
}
|
|
1369
1369
|
),
|
|
1370
1370
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1378,14 +1378,14 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1378
1378
|
]
|
|
1379
1379
|
}
|
|
1380
1380
|
) : null,
|
|
1381
|
-
|
|
1382
|
-
|
|
1381
|
+
g && /* @__PURE__ */ t.jsxs(
|
|
1382
|
+
kn,
|
|
1383
1383
|
{ width: "100%", children: [
|
|
1384
1384
|
/* @__PURE__ */ t.jsx(
|
|
1385
|
-
|
|
1385
|
+
Rn,
|
|
1386
1386
|
{
|
|
1387
1387
|
onChange: (T) => {
|
|
1388
|
-
|
|
1388
|
+
G(T.target.value);
|
|
1389
1389
|
},
|
|
1390
1390
|
placeholder: "Search",
|
|
1391
1391
|
autoFocus: !0,
|
|
@@ -1394,7 +1394,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
),
|
|
1396
1396
|
/* @__PURE__ */ t.jsx(
|
|
1397
|
-
|
|
1397
|
+
_n,
|
|
1398
1398
|
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Dn, { as: On, color: "gray.500" }) }
|
|
1399
1399
|
)
|
|
1400
1400
|
] }
|
|
@@ -1406,12 +1406,12 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1406
1406
|
Dt,
|
|
1407
1407
|
{
|
|
1408
1408
|
paddingX: "0",
|
|
1409
|
-
paddingBottom:
|
|
1410
|
-
"data-testid": `navbar-drawer-body-${
|
|
1409
|
+
paddingBottom: b ? "6" : "4",
|
|
1410
|
+
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1411
1411
|
children: /* @__PURE__ */ t.jsxs(
|
|
1412
1412
|
ot.div,
|
|
1413
1413
|
{
|
|
1414
|
-
...
|
|
1414
|
+
...b ? {} : {
|
|
1415
1415
|
initial: { opacity: 0, y: -5 },
|
|
1416
1416
|
animate: { opacity: 1, y: 0 },
|
|
1417
1417
|
exit: { opacity: 0, y: -5 },
|
|
@@ -1430,22 +1430,22 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1430
1430
|
display: "flex",
|
|
1431
1431
|
flexDirection: Kn(
|
|
1432
1432
|
f,
|
|
1433
|
-
!
|
|
1434
|
-
|
|
1433
|
+
!b,
|
|
1434
|
+
g
|
|
1435
1435
|
),
|
|
1436
1436
|
gap: "24px",
|
|
1437
1437
|
justifyContent: "space-between"
|
|
1438
1438
|
},
|
|
1439
1439
|
children: [
|
|
1440
1440
|
u ? /* @__PURE__ */ t.jsx(
|
|
1441
|
-
|
|
1441
|
+
R,
|
|
1442
1442
|
{
|
|
1443
|
-
gap:
|
|
1443
|
+
gap: b ? "3" : "6",
|
|
1444
1444
|
display: "flex",
|
|
1445
|
-
justifyContent:
|
|
1445
|
+
justifyContent: b ? void 0 : "center",
|
|
1446
1446
|
sx: {
|
|
1447
1447
|
flexWrap: "wrap",
|
|
1448
|
-
flexDirection:
|
|
1448
|
+
flexDirection: b ? "column" : "row"
|
|
1449
1449
|
},
|
|
1450
1450
|
children: u
|
|
1451
1451
|
}
|
|
@@ -1453,20 +1453,20 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1453
1453
|
/* @__PURE__ */ t.jsxs(
|
|
1454
1454
|
D,
|
|
1455
1455
|
{
|
|
1456
|
-
position:
|
|
1456
|
+
position: b ? void 0 : "relative",
|
|
1457
1457
|
flexDirection: "column",
|
|
1458
1458
|
gap: "6",
|
|
1459
|
-
width:
|
|
1459
|
+
width: b ? "100%" : g ? void 0 : "auto",
|
|
1460
1460
|
children: [
|
|
1461
|
-
|
|
1462
|
-
|
|
1461
|
+
i ? /* @__PURE__ */ t.jsx(R, { children: i }) : null,
|
|
1462
|
+
c && b ? /* @__PURE__ */ t.jsx(R, { children: c }) : null,
|
|
1463
1463
|
d ? /* @__PURE__ */ t.jsx(
|
|
1464
|
-
|
|
1464
|
+
R,
|
|
1465
1465
|
{
|
|
1466
1466
|
width: "100%",
|
|
1467
|
-
position:
|
|
1468
|
-
bottom:
|
|
1469
|
-
...
|
|
1467
|
+
position: b ? void 0 : "absolute",
|
|
1468
|
+
bottom: b ? void 0 : 0,
|
|
1469
|
+
...b ? { sx: { a: { width: "100%" } } } : {},
|
|
1470
1470
|
children: d
|
|
1471
1471
|
}
|
|
1472
1472
|
) : null
|
|
@@ -1490,113 +1490,113 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1490
1490
|
}, Qn = ({
|
|
1491
1491
|
source: n,
|
|
1492
1492
|
onSearchCallback: o,
|
|
1493
|
-
isActive:
|
|
1493
|
+
isActive: s
|
|
1494
1494
|
}) => {
|
|
1495
|
-
const [
|
|
1496
|
-
if (!
|
|
1497
|
-
const
|
|
1498
|
-
return
|
|
1499
|
-
const L = Xe(
|
|
1500
|
-
if (
|
|
1501
|
-
const H = L.split(/\s+/),
|
|
1502
|
-
const F = Xe(
|
|
1503
|
-
return
|
|
1495
|
+
const [i, c] = U(""), [u, d] = U([]), p = (g, C) => {
|
|
1496
|
+
if (!g) return [];
|
|
1497
|
+
const v = Xe(g).split(/\s+/);
|
|
1498
|
+
return C.filter((w) => {
|
|
1499
|
+
const L = Xe(w.label);
|
|
1500
|
+
if (v.some((P) => mt(L, P))) return !0;
|
|
1501
|
+
const H = L.split(/\s+/), S = v.some((P) => H.some((F) => F.includes(P) || He(P, F))), j = typeof w.additionalContent == "string" && v.some((P) => {
|
|
1502
|
+
const F = Xe(w.additionalContent);
|
|
1503
|
+
return mt(F, P) || F.split(/\s+/).some((G) => G.includes(P) || He(P, G));
|
|
1504
1504
|
});
|
|
1505
|
-
return
|
|
1506
|
-
}).sort((
|
|
1507
|
-
},
|
|
1508
|
-
if (
|
|
1505
|
+
return S || j;
|
|
1506
|
+
}).sort((w, L) => w.label.localeCompare(L.label));
|
|
1507
|
+
}, h = (g) => {
|
|
1508
|
+
if (c(g), !g) {
|
|
1509
1509
|
d([]);
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
|
-
const
|
|
1513
|
-
d(
|
|
1512
|
+
const C = p(g, n);
|
|
1513
|
+
d(C), o && o(g, C);
|
|
1514
1514
|
}, f = () => {
|
|
1515
|
-
|
|
1515
|
+
c(""), d([]);
|
|
1516
1516
|
};
|
|
1517
1517
|
return ee(() => {
|
|
1518
|
-
|
|
1519
|
-
}, [
|
|
1520
|
-
query:
|
|
1518
|
+
s || (c(""), d([]));
|
|
1519
|
+
}, [s]), {
|
|
1520
|
+
query: i,
|
|
1521
1521
|
results: u,
|
|
1522
1522
|
handleClose: f,
|
|
1523
|
-
handleSearch:
|
|
1523
|
+
handleSearch: h
|
|
1524
1524
|
};
|
|
1525
1525
|
}, qn = (n) => {
|
|
1526
1526
|
const o = /* @__PURE__ */ new Set();
|
|
1527
|
-
return n.reduce((
|
|
1527
|
+
return n.reduce((s, i) => {
|
|
1528
1528
|
var u;
|
|
1529
|
-
const
|
|
1530
|
-
const
|
|
1531
|
-
return [...d, ...
|
|
1529
|
+
const c = ((u = i.sections) == null ? void 0 : u.reduce((d, p) => {
|
|
1530
|
+
const h = p.links.filter((f) => o.has(f.label) || f.isSearchable !== !0 ? !1 : (o.add(f.label), !0));
|
|
1531
|
+
return [...d, ...h];
|
|
1532
1532
|
}, [])) ?? [];
|
|
1533
|
-
return [...
|
|
1533
|
+
return [...s, ...c];
|
|
1534
1534
|
}, []);
|
|
1535
1535
|
}, er = () => {
|
|
1536
|
-
const [n, o] = U(!1), [
|
|
1536
|
+
const [n, o] = U(!1), [s, i] = U(!1), [c, u] = U(null);
|
|
1537
1537
|
return {
|
|
1538
1538
|
isMainMenuOpen: n,
|
|
1539
|
-
isSearchOpen:
|
|
1540
|
-
selectedCategory:
|
|
1539
|
+
isSearchOpen: s,
|
|
1540
|
+
selectedCategory: c,
|
|
1541
1541
|
clearSelectedCategory: () => u(null),
|
|
1542
|
-
handleSelectCategory: (
|
|
1542
|
+
handleSelectCategory: (v) => u(v),
|
|
1543
1543
|
closeMainMenu: () => {
|
|
1544
1544
|
o(!1), u(null);
|
|
1545
1545
|
},
|
|
1546
|
-
closeSearch: () =>
|
|
1547
|
-
toggleSearch: () =>
|
|
1546
|
+
closeSearch: () => i(!1),
|
|
1547
|
+
toggleSearch: () => i((v) => !v),
|
|
1548
1548
|
openMainMenu: () => o(!0),
|
|
1549
|
-
openSearch: () =>
|
|
1549
|
+
openSearch: () => i(!0)
|
|
1550
1550
|
};
|
|
1551
1551
|
}, xr = ({
|
|
1552
1552
|
categories: n = [],
|
|
1553
1553
|
mainCategoryLabel: o = "Menu",
|
|
1554
|
-
logoLink:
|
|
1555
|
-
mobileBottomButtons:
|
|
1556
|
-
linkComponent:
|
|
1554
|
+
logoLink: s = "https://www.everlywell.com",
|
|
1555
|
+
mobileBottomButtons: i = [],
|
|
1556
|
+
linkComponent: c,
|
|
1557
1557
|
onSearchCallback: u,
|
|
1558
1558
|
onLinkClick: d,
|
|
1559
|
-
onCategoryOpen:
|
|
1560
|
-
onLogoClick:
|
|
1559
|
+
onCategoryOpen: p,
|
|
1560
|
+
onLogoClick: h,
|
|
1561
1561
|
shopAllProductsUrl: f,
|
|
1562
|
-
onShopAllProductsClick:
|
|
1563
|
-
hideableButtons:
|
|
1564
|
-
children:
|
|
1562
|
+
onShopAllProductsClick: g,
|
|
1563
|
+
hideableButtons: C,
|
|
1564
|
+
children: E
|
|
1565
1565
|
}) => {
|
|
1566
|
-
var Ee, Se,
|
|
1567
|
-
const
|
|
1568
|
-
isMainMenuOpen:
|
|
1566
|
+
var Ee, Se, ae;
|
|
1567
|
+
const v = er(), {
|
|
1568
|
+
isMainMenuOpen: w,
|
|
1569
1569
|
isSearchOpen: L,
|
|
1570
|
-
closeMainMenu:
|
|
1570
|
+
closeMainMenu: b,
|
|
1571
1571
|
closeSearch: H,
|
|
1572
|
-
clearSelectedCategory:
|
|
1573
|
-
selectedCategory:
|
|
1572
|
+
clearSelectedCategory: S,
|
|
1573
|
+
selectedCategory: j,
|
|
1574
1574
|
handleSelectCategory: P
|
|
1575
|
-
} =
|
|
1575
|
+
} = v, [F, G] = U(!1), [Q, se] = U(!1), [q, ce] = U(0), [ue, te] = U(!1), [B, T] = U(!1);
|
|
1576
1576
|
ee(() => {
|
|
1577
|
-
const
|
|
1578
|
-
return window.addEventListener(nt,
|
|
1577
|
+
const a = () => te(!0), O = () => te(!1);
|
|
1578
|
+
return window.addEventListener(nt, a), window.addEventListener(rt, O), () => {
|
|
1579
1579
|
window.removeEventListener(
|
|
1580
1580
|
nt,
|
|
1581
|
-
|
|
1581
|
+
a
|
|
1582
1582
|
), window.removeEventListener(rt, O);
|
|
1583
1583
|
};
|
|
1584
1584
|
}, []);
|
|
1585
|
-
const X =
|
|
1585
|
+
const X = be({
|
|
1586
1586
|
base: !1,
|
|
1587
1587
|
tablet: !1,
|
|
1588
1588
|
largeTablet: !1,
|
|
1589
1589
|
mediumDesktop: !0,
|
|
1590
1590
|
desktop: !0,
|
|
1591
1591
|
fullDesktop: !0
|
|
1592
|
-
}) ?? !1, Z =
|
|
1592
|
+
}) ?? !1, Z = be({
|
|
1593
1593
|
base: !1,
|
|
1594
1594
|
tablet: !1,
|
|
1595
1595
|
largeTablet: !1,
|
|
1596
1596
|
mediumDesktop: !1,
|
|
1597
1597
|
desktop: !1,
|
|
1598
1598
|
fullDesktop: !0
|
|
1599
|
-
}) ?? !1, Te = !Z, Ie =
|
|
1599
|
+
}) ?? !1, Te = !Z, Ie = be({
|
|
1600
1600
|
base: !0,
|
|
1601
1601
|
tablet: !0,
|
|
1602
1602
|
largeTablet: !0,
|
|
@@ -1605,7 +1605,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1605
1605
|
fullDesktop: !1
|
|
1606
1606
|
}) ?? !0;
|
|
1607
1607
|
ee(() => {
|
|
1608
|
-
|
|
1608
|
+
b(), S();
|
|
1609
1609
|
}, [X]);
|
|
1610
1610
|
const {
|
|
1611
1611
|
query: Oe,
|
|
@@ -1615,7 +1615,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1615
1615
|
source: qn(n),
|
|
1616
1616
|
onSearchCallback: u,
|
|
1617
1617
|
isActive: L
|
|
1618
|
-
}), je = de.length > 0, fe =
|
|
1618
|
+
}), je = de.length > 0, fe = c || oe, Fe = we(f, !!c), Be = Oe && /* @__PURE__ */ t.jsxs(
|
|
1619
1619
|
D,
|
|
1620
1620
|
{ gap: je ? "6" : 0, direction: "column", children: [
|
|
1621
1621
|
je ? /* @__PURE__ */ t.jsx(W, { color: "tints.uiGrey", children: `${de.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
@@ -1629,7 +1629,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1629
1629
|
Et,
|
|
1630
1630
|
{
|
|
1631
1631
|
as: fe,
|
|
1632
|
-
onClick:
|
|
1632
|
+
onClick: g,
|
|
1633
1633
|
_hover: { textDecoration: "none" },
|
|
1634
1634
|
width: ["100%", null, null, "auto"],
|
|
1635
1635
|
...Fe,
|
|
@@ -1641,96 +1641,96 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1641
1641
|
/* @__PURE__ */ t.jsx(
|
|
1642
1642
|
rn,
|
|
1643
1643
|
{ columns: [1, 1, 1, 4], children: de.map(
|
|
1644
|
-
(
|
|
1644
|
+
(a, O) => /* @__PURE__ */ t.jsx(
|
|
1645
1645
|
on,
|
|
1646
1646
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1647
1647
|
$e,
|
|
1648
1648
|
{
|
|
1649
|
-
href:
|
|
1650
|
-
label:
|
|
1651
|
-
additionalContent:
|
|
1652
|
-
linkComponent:
|
|
1649
|
+
href: a.href,
|
|
1650
|
+
label: a.label,
|
|
1651
|
+
additionalContent: a == null ? void 0 : a.additionalContent,
|
|
1652
|
+
linkComponent: c,
|
|
1653
1653
|
forceMobileStyle: !X
|
|
1654
1654
|
}
|
|
1655
1655
|
) },
|
|
1656
|
-
`${
|
|
1656
|
+
`${a.label}-${O}`
|
|
1657
1657
|
)
|
|
1658
1658
|
) }
|
|
1659
1659
|
)
|
|
1660
1660
|
] }
|
|
1661
|
-
), K = (
|
|
1662
|
-
K(
|
|
1663
|
-
}, pe = (
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1666
|
-
|
|
1661
|
+
), K = (a) => "href" in a, ye = (a) => {
|
|
1662
|
+
K(a) ? d == null || d(a.label) : (T(w || !Z), P(a));
|
|
1663
|
+
}, pe = (a) => {
|
|
1664
|
+
G(!0), H(), S(), !K(a) && (a.sections || a.spotlightCards) && (T(!1), P(a));
|
|
1665
|
+
}, Ce = () => {
|
|
1666
|
+
G(!1);
|
|
1667
1667
|
};
|
|
1668
1668
|
ee(() => {
|
|
1669
|
-
const
|
|
1669
|
+
const a = (O) => {
|
|
1670
1670
|
se(O.detail.isHovering);
|
|
1671
1671
|
};
|
|
1672
1672
|
return window.addEventListener(
|
|
1673
1673
|
tt,
|
|
1674
|
-
|
|
1674
|
+
a
|
|
1675
1675
|
), () => {
|
|
1676
1676
|
window.removeEventListener(
|
|
1677
1677
|
tt,
|
|
1678
|
-
|
|
1678
|
+
a
|
|
1679
1679
|
);
|
|
1680
1680
|
};
|
|
1681
1681
|
}, []), ee(() => {
|
|
1682
|
-
!F && !Q && (
|
|
1683
|
-
}, [F, Q,
|
|
1684
|
-
let
|
|
1682
|
+
!F && !Q && (S(), H(), !w && Z && T(!1));
|
|
1683
|
+
}, [F, Q, w, Z]), ee(() => {
|
|
1684
|
+
let a = window.location.href;
|
|
1685
1685
|
const O = () => {
|
|
1686
1686
|
const $ = window.location.href;
|
|
1687
|
-
$ !==
|
|
1687
|
+
$ !== a && (a = $, b(), S());
|
|
1688
1688
|
}, I = setInterval(O, 100);
|
|
1689
1689
|
return window.addEventListener("popstate", O), () => {
|
|
1690
1690
|
window.removeEventListener("popstate", O), clearInterval(I);
|
|
1691
1691
|
};
|
|
1692
1692
|
}, []);
|
|
1693
|
-
const ne = (
|
|
1693
|
+
const ne = (a) => K(a) && (!a.buttonProps || Object.keys(a.buttonProps).length === 0 || a.buttonProps === void 0), We = n == null ? void 0 : n.map((a, O) => {
|
|
1694
1694
|
var $, ge;
|
|
1695
|
-
const I =
|
|
1695
|
+
const I = C.includes(a.label);
|
|
1696
1696
|
return /* @__PURE__ */ t.jsx(
|
|
1697
1697
|
Vn,
|
|
1698
1698
|
{
|
|
1699
1699
|
height: "48px",
|
|
1700
1700
|
paddingInline: "16px !important",
|
|
1701
1701
|
onMouseEnter: () => {
|
|
1702
|
-
pe(
|
|
1702
|
+
pe(a), p == null || p(a.label);
|
|
1703
1703
|
},
|
|
1704
|
-
onMouseLeave:
|
|
1705
|
-
isSelected: (
|
|
1706
|
-
as: K(
|
|
1707
|
-
href: K(
|
|
1708
|
-
onClick: K(
|
|
1704
|
+
onMouseLeave: Ce,
|
|
1705
|
+
isSelected: (j == null ? void 0 : j.label) === a.label,
|
|
1706
|
+
as: K(a) && fe ? fe : oe,
|
|
1707
|
+
href: K(a) ? a.href : void 0,
|
|
1708
|
+
onClick: K(a) ? () => d == null ? void 0 : d(a.label) : void 0,
|
|
1709
1709
|
...I && {
|
|
1710
1710
|
display: { base: "none", fullDesktop: "flex" }
|
|
1711
1711
|
},
|
|
1712
|
-
...(($ =
|
|
1712
|
+
...(($ = a == null ? void 0 : a.context) == null ? void 0 : $.desktop) === "link" || ne(a) ? {
|
|
1713
1713
|
_hover: {
|
|
1714
1714
|
backgroundColor: "tints.lightCream",
|
|
1715
1715
|
textDecoration: "none",
|
|
1716
1716
|
filter: "brightness(0.95)"
|
|
1717
1717
|
}
|
|
1718
1718
|
} : {},
|
|
1719
|
-
...((ge =
|
|
1720
|
-
children:
|
|
1719
|
+
...((ge = a == null ? void 0 : a.context) == null ? void 0 : ge.desktop) !== "link" && a.buttonProps,
|
|
1720
|
+
children: a.label
|
|
1721
1721
|
},
|
|
1722
|
-
`${
|
|
1722
|
+
`${a.label}-${O}`
|
|
1723
1723
|
);
|
|
1724
1724
|
}), Pe = (Ee = n.filter(
|
|
1725
|
-
(
|
|
1725
|
+
(a) => {
|
|
1726
1726
|
var O;
|
|
1727
|
-
return ((O =
|
|
1727
|
+
return ((O = a == null ? void 0 : a.context) == null ? void 0 : O.mobile) === "link" || (!K(a) && a.isMobileTopLink !== !1 || ne(a)) && (Te && C.includes(a.label) || Ie);
|
|
1728
1728
|
}
|
|
1729
|
-
)) == null ? void 0 : Ee.map((
|
|
1729
|
+
)) == null ? void 0 : Ee.map((a, O) => {
|
|
1730
1730
|
var $;
|
|
1731
|
-
const I =
|
|
1731
|
+
const I = a;
|
|
1732
1732
|
return ne(I) || (($ = I == null ? void 0 : I.context) == null ? void 0 : $.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1733
|
-
|
|
1733
|
+
R,
|
|
1734
1734
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1735
1735
|
$e,
|
|
1736
1736
|
{
|
|
@@ -1738,16 +1738,16 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1738
1738
|
role: "link",
|
|
1739
1739
|
href: I.href,
|
|
1740
1740
|
mainTextFontSize: "3xl",
|
|
1741
|
-
linkComponent:
|
|
1741
|
+
linkComponent: c,
|
|
1742
1742
|
forceMobileStyle: !0
|
|
1743
1743
|
}
|
|
1744
1744
|
) },
|
|
1745
1745
|
`${I.label}-${O}`
|
|
1746
1746
|
) : /* @__PURE__ */ t.jsx(
|
|
1747
|
-
|
|
1747
|
+
R,
|
|
1748
1748
|
{
|
|
1749
1749
|
onClick: () => {
|
|
1750
|
-
|
|
1750
|
+
ye(I), p == null || p(I.label);
|
|
1751
1751
|
},
|
|
1752
1752
|
children: /* @__PURE__ */ t.jsx(
|
|
1753
1753
|
$e,
|
|
@@ -1756,7 +1756,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1756
1756
|
role: "link",
|
|
1757
1757
|
additionalContent: I.additionalContent,
|
|
1758
1758
|
mainTextFontSize: "3xl",
|
|
1759
|
-
linkComponent:
|
|
1759
|
+
linkComponent: c,
|
|
1760
1760
|
forceMobileStyle: !0
|
|
1761
1761
|
}
|
|
1762
1762
|
)
|
|
@@ -1765,15 +1765,15 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1765
1765
|
);
|
|
1766
1766
|
}), ze = /* @__PURE__ */ t.jsx(
|
|
1767
1767
|
D,
|
|
1768
|
-
{ gap: "2", flexDirection: "column", children:
|
|
1769
|
-
), J = B ||
|
|
1768
|
+
{ gap: "2", flexDirection: "column", children: i }
|
|
1769
|
+
), J = B || w, he = j ? /* @__PURE__ */ t.jsx(
|
|
1770
1770
|
D,
|
|
1771
|
-
{ direction: J ? "column" : ["column", null, null, "row"], gap: "8", children: (Se =
|
|
1771
|
+
{ direction: J ? "column" : ["column", null, null, "row"], gap: "8", children: (Se = j == null ? void 0 : j.sections) == null ? void 0 : Se.map((a, O) => {
|
|
1772
1772
|
const I = [];
|
|
1773
|
-
for (let $ = 0; $ <
|
|
1774
|
-
I.push(
|
|
1773
|
+
for (let $ = 0; $ < a.links.length; $ += 3)
|
|
1774
|
+
I.push(a.links.slice($, $ + 3));
|
|
1775
1775
|
return /* @__PURE__ */ t.jsxs(
|
|
1776
|
-
|
|
1776
|
+
R,
|
|
1777
1777
|
{ children: [
|
|
1778
1778
|
/* @__PURE__ */ t.jsx(
|
|
1779
1779
|
W,
|
|
@@ -1781,7 +1781,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1781
1781
|
fontSize: "md",
|
|
1782
1782
|
color: "tints.uiGrey",
|
|
1783
1783
|
marginBottom: J ? 0 : [0, null, null, 6],
|
|
1784
|
-
children:
|
|
1784
|
+
children: a.title
|
|
1785
1785
|
}
|
|
1786
1786
|
),
|
|
1787
1787
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1803,7 +1803,7 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1803
1803
|
label: re.label,
|
|
1804
1804
|
href: re.href,
|
|
1805
1805
|
additionalContent: re.additionalContent,
|
|
1806
|
-
linkComponent:
|
|
1806
|
+
linkComponent: c,
|
|
1807
1807
|
forceMobileStyle: J,
|
|
1808
1808
|
onClick: () => d == null ? void 0 : d(re.label)
|
|
1809
1809
|
},
|
|
@@ -1817,21 +1817,21 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
)
|
|
1819
1819
|
] },
|
|
1820
|
-
`${
|
|
1820
|
+
`${a.title}-${O}`
|
|
1821
1821
|
);
|
|
1822
1822
|
}) }
|
|
1823
|
-
) : null,
|
|
1824
|
-
(
|
|
1825
|
-
|
|
1823
|
+
) : null, ie = j != null && j.spotlightCards ? (ae = j.spotlightCards) == null ? void 0 : ae.map(
|
|
1824
|
+
(a, O) => /* @__PURE__ */ t.jsx(
|
|
1825
|
+
Gn,
|
|
1826
1826
|
{
|
|
1827
|
-
...
|
|
1827
|
+
...a,
|
|
1828
1828
|
forceMobileStyle: J
|
|
1829
1829
|
},
|
|
1830
|
-
`${
|
|
1830
|
+
`${a.title}-${O}`
|
|
1831
1831
|
)
|
|
1832
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1832
|
+
) : /* @__PURE__ */ t.jsx(R, {});
|
|
1833
1833
|
return /* @__PURE__ */ t.jsxs(
|
|
1834
|
-
|
|
1834
|
+
R,
|
|
1835
1835
|
{
|
|
1836
1836
|
as: "nav",
|
|
1837
1837
|
"aria-label": "Main navigation",
|
|
@@ -1841,24 +1841,24 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1841
1841
|
zIndex: ["sticky", null, null, ue ? "modal" : "sticky"],
|
|
1842
1842
|
children: [
|
|
1843
1843
|
/* @__PURE__ */ t.jsx(
|
|
1844
|
-
|
|
1844
|
+
Yn,
|
|
1845
1845
|
{
|
|
1846
1846
|
desktopTopButtons: We,
|
|
1847
|
-
logoLink:
|
|
1848
|
-
linkComponent:
|
|
1849
|
-
onLogoClick:
|
|
1847
|
+
logoLink: s,
|
|
1848
|
+
linkComponent: c,
|
|
1849
|
+
onLogoClick: h,
|
|
1850
1850
|
setTopOffset: ce,
|
|
1851
|
-
rightSideButtons: typeof
|
|
1851
|
+
rightSideButtons: typeof E == "function" ? E(v) : E
|
|
1852
1852
|
}
|
|
1853
1853
|
),
|
|
1854
1854
|
/* @__PURE__ */ t.jsxs(
|
|
1855
|
-
|
|
1855
|
+
R,
|
|
1856
1856
|
{ position: "relative", zIndex: "modal", children: [
|
|
1857
1857
|
/* @__PURE__ */ t.jsx(
|
|
1858
1858
|
Je,
|
|
1859
1859
|
{
|
|
1860
|
-
isOpen:
|
|
1861
|
-
onClose:
|
|
1860
|
+
isOpen: w,
|
|
1861
|
+
onClose: b,
|
|
1862
1862
|
title: o,
|
|
1863
1863
|
navDrawerLinks: Pe,
|
|
1864
1864
|
bottomNavButtons: ze,
|
|
@@ -1870,21 +1870,21 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1870
1870
|
/* @__PURE__ */ t.jsx(
|
|
1871
1871
|
Je,
|
|
1872
1872
|
{
|
|
1873
|
-
isOpen: !!
|
|
1873
|
+
isOpen: !!j,
|
|
1874
1874
|
onClose: () => {
|
|
1875
|
-
|
|
1875
|
+
b(), S(), w || T(!1);
|
|
1876
1876
|
},
|
|
1877
|
-
title: (
|
|
1877
|
+
title: (j == null ? void 0 : j.label) || "",
|
|
1878
1878
|
navDrawerLinks: he,
|
|
1879
1879
|
onBackClick: () => {
|
|
1880
|
-
|
|
1880
|
+
S(), w || T(!1);
|
|
1881
1881
|
},
|
|
1882
|
-
spotlightCards:
|
|
1883
|
-
hasOnlySpotlightCards:
|
|
1884
|
-
bottomButton:
|
|
1882
|
+
spotlightCards: ie,
|
|
1883
|
+
hasOnlySpotlightCards: j == null ? void 0 : j.hasOnlySpotlightCards,
|
|
1884
|
+
bottomButton: j == null ? void 0 : j.bottomButton,
|
|
1885
1885
|
topOffset: q,
|
|
1886
|
-
forceMobilePlacement: B ||
|
|
1887
|
-
|
|
1886
|
+
forceMobilePlacement: B || w || // Below 1400px, if main menu is open, always use mobile closing
|
|
1887
|
+
w && !Z
|
|
1888
1888
|
}
|
|
1889
1889
|
),
|
|
1890
1890
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1905,33 +1905,38 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1905
1905
|
]
|
|
1906
1906
|
}
|
|
1907
1907
|
);
|
|
1908
|
-
},
|
|
1909
|
-
|
|
1910
|
-
|
|
1908
|
+
}, yt = ({
|
|
1909
|
+
links: n,
|
|
1910
|
+
linkComponent: o,
|
|
1911
|
+
onLinkClick: s,
|
|
1912
|
+
footerTheme: i
|
|
1913
|
+
}) => {
|
|
1914
|
+
const c = o || oe, u = (d) => {
|
|
1915
|
+
s && s(d);
|
|
1911
1916
|
};
|
|
1912
1917
|
return /* @__PURE__ */ t.jsx(
|
|
1913
1918
|
D,
|
|
1914
1919
|
{ direction: "column", gap: 6, children: n.map(
|
|
1915
|
-
(
|
|
1920
|
+
(d) => /* @__PURE__ */ t.jsx(
|
|
1916
1921
|
W,
|
|
1917
1922
|
{
|
|
1918
|
-
as:
|
|
1919
|
-
color: "white",
|
|
1923
|
+
as: c,
|
|
1924
|
+
color: i === "dark" ? "white" : "viridian.base",
|
|
1920
1925
|
size: "lg",
|
|
1921
1926
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
1922
|
-
onClick: () =>
|
|
1923
|
-
...we(
|
|
1924
|
-
children:
|
|
1927
|
+
onClick: () => u(d.label),
|
|
1928
|
+
...we(d.href, !!o),
|
|
1929
|
+
children: d.label
|
|
1925
1930
|
},
|
|
1926
|
-
|
|
1931
|
+
d.label
|
|
1927
1932
|
)
|
|
1928
1933
|
) }
|
|
1929
1934
|
);
|
|
1930
|
-
}, tr = ({ title: n, links: o, isLast:
|
|
1931
|
-
const
|
|
1935
|
+
}, tr = ({ title: n, links: o, isLast: s }) => {
|
|
1936
|
+
const i = s ? "transparent" : `${V.colors.viridian.lighter}20`;
|
|
1932
1937
|
return o ? /* @__PURE__ */ t.jsx(
|
|
1933
1938
|
ln,
|
|
1934
|
-
{ borderColor:
|
|
1939
|
+
{ borderColor: i, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
1935
1940
|
t.Fragment,
|
|
1936
1941
|
{ children: [
|
|
1937
1942
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1942,12 +1947,12 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1942
1947
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
1943
1948
|
),
|
|
1944
1949
|
/* @__PURE__ */ t.jsx(
|
|
1945
|
-
|
|
1950
|
+
me,
|
|
1946
1951
|
{
|
|
1947
1952
|
as: Ln,
|
|
1948
1953
|
size: "sm",
|
|
1949
1954
|
color: "viridian.lighter",
|
|
1950
|
-
transform:
|
|
1955
|
+
transform: c ? "rotate(-180deg)" : "rotate(0deg)",
|
|
1951
1956
|
transition: "transform 0.3s ease"
|
|
1952
1957
|
}
|
|
1953
1958
|
)
|
|
@@ -1960,50 +1965,58 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
1960
1965
|
] }
|
|
1961
1966
|
) }
|
|
1962
1967
|
) : null;
|
|
1963
|
-
}, nr = ({
|
|
1964
|
-
|
|
1968
|
+
}, nr = ({
|
|
1969
|
+
title: n,
|
|
1970
|
+
links: o,
|
|
1971
|
+
footerTheme: s
|
|
1972
|
+
}) => o ? /* @__PURE__ */ t.jsxs(
|
|
1973
|
+
R,
|
|
1965
1974
|
{ children: [
|
|
1966
1975
|
/* @__PURE__ */ t.jsx(
|
|
1967
1976
|
W,
|
|
1968
|
-
{
|
|
1977
|
+
{
|
|
1978
|
+
color: s === "dark" ? "viridian.lighter" : "tints.darkGrey",
|
|
1979
|
+
mb: 6,
|
|
1980
|
+
fontSize: "lg",
|
|
1981
|
+
children: n
|
|
1982
|
+
}
|
|
1969
1983
|
),
|
|
1970
1984
|
o
|
|
1971
1985
|
] }
|
|
1972
1986
|
) : null, rr = ({
|
|
1973
1987
|
sections: n,
|
|
1974
1988
|
linkComponent: o,
|
|
1975
|
-
onLinkClick:
|
|
1976
|
-
|
|
1989
|
+
onLinkClick: s,
|
|
1990
|
+
footerTheme: i
|
|
1991
|
+
}) => be({
|
|
1977
1992
|
base: !1,
|
|
1978
1993
|
tablet: !1,
|
|
1979
1994
|
largeTablet: !0,
|
|
1980
1995
|
desktop: !0
|
|
1981
1996
|
}) ? /* @__PURE__ */ t.jsx(
|
|
1982
1997
|
D,
|
|
1983
|
-
{
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
)
|
|
2006
|
-
}
|
|
1998
|
+
{ justify: "space-between", align: "flex-start", children: /* @__PURE__ */ t.jsx(
|
|
1999
|
+
D,
|
|
2000
|
+
{ gap: 120, children: n.map(
|
|
2001
|
+
({ title: u, links: d }) => /* @__PURE__ */ t.jsx(
|
|
2002
|
+
nr,
|
|
2003
|
+
{
|
|
2004
|
+
footerTheme: i,
|
|
2005
|
+
title: u,
|
|
2006
|
+
links: /* @__PURE__ */ t.jsx(
|
|
2007
|
+
yt,
|
|
2008
|
+
{
|
|
2009
|
+
links: d,
|
|
2010
|
+
linkComponent: o,
|
|
2011
|
+
onLinkClick: s,
|
|
2012
|
+
footerTheme: i
|
|
2013
|
+
}
|
|
2014
|
+
)
|
|
2015
|
+
},
|
|
2016
|
+
u
|
|
2017
|
+
)
|
|
2018
|
+
) }
|
|
2019
|
+
) }
|
|
2007
2020
|
) : /* @__PURE__ */ t.jsx(
|
|
2008
2021
|
an,
|
|
2009
2022
|
{
|
|
@@ -2013,25 +2026,26 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2013
2026
|
display: "flex",
|
|
2014
2027
|
flexDirection: "column",
|
|
2015
2028
|
children: n.map(
|
|
2016
|
-
({ title:
|
|
2029
|
+
({ title: u, links: d }, p) => /* @__PURE__ */ t.jsx(
|
|
2017
2030
|
tr,
|
|
2018
2031
|
{
|
|
2019
|
-
title:
|
|
2032
|
+
title: u,
|
|
2020
2033
|
links: /* @__PURE__ */ t.jsx(
|
|
2021
|
-
|
|
2034
|
+
yt,
|
|
2022
2035
|
{
|
|
2023
|
-
links:
|
|
2036
|
+
links: d,
|
|
2024
2037
|
linkComponent: o,
|
|
2025
|
-
onLinkClick:
|
|
2038
|
+
onLinkClick: s,
|
|
2039
|
+
footerTheme: i
|
|
2026
2040
|
}
|
|
2027
2041
|
),
|
|
2028
|
-
isLast:
|
|
2042
|
+
isLast: p === n.length - 1
|
|
2029
2043
|
},
|
|
2030
|
-
|
|
2044
|
+
u
|
|
2031
2045
|
)
|
|
2032
2046
|
)
|
|
2033
2047
|
}
|
|
2034
|
-
),
|
|
2048
|
+
), Ct = {
|
|
2035
2049
|
instagram: An,
|
|
2036
2050
|
linkedin: Mn,
|
|
2037
2051
|
facebook: $n,
|
|
@@ -2040,27 +2054,33 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2040
2054
|
}, or = ({
|
|
2041
2055
|
socialLinks: n,
|
|
2042
2056
|
onEmailSubmit: o,
|
|
2043
|
-
socialMediaLabel:
|
|
2044
|
-
newsletterLabel:
|
|
2045
|
-
onLinkClick:
|
|
2046
|
-
showNewsletter: u = !0
|
|
2057
|
+
socialMediaLabel: s,
|
|
2058
|
+
newsletterLabel: i,
|
|
2059
|
+
onLinkClick: c,
|
|
2060
|
+
showNewsletter: u = !0,
|
|
2061
|
+
footerTheme: d
|
|
2047
2062
|
}) => {
|
|
2048
|
-
const
|
|
2049
|
-
|
|
2050
|
-
},
|
|
2051
|
-
v.key === "Enter" &&
|
|
2052
|
-
},
|
|
2053
|
-
|
|
2063
|
+
const p = d === "dark", [h, f] = De.useState(""), g = () => {
|
|
2064
|
+
h && o && (o(h), f(""));
|
|
2065
|
+
}, C = (v) => {
|
|
2066
|
+
v.key === "Enter" && g();
|
|
2067
|
+
}, E = (v) => {
|
|
2068
|
+
c && c(v);
|
|
2054
2069
|
};
|
|
2055
2070
|
return /* @__PURE__ */ t.jsxs(
|
|
2056
|
-
|
|
2071
|
+
R,
|
|
2057
2072
|
{ width: ["100%", null, null, "440px"], children: [
|
|
2058
2073
|
u && /* @__PURE__ */ t.jsxs(
|
|
2059
|
-
|
|
2074
|
+
R,
|
|
2060
2075
|
{ mb: [8, 10], children: [
|
|
2061
2076
|
/* @__PURE__ */ t.jsx(
|
|
2062
2077
|
W,
|
|
2063
|
-
{
|
|
2078
|
+
{
|
|
2079
|
+
color: p ? "viridian.lighter" : "tints.darkGrey",
|
|
2080
|
+
mb: 6,
|
|
2081
|
+
size: "lg",
|
|
2082
|
+
children: i
|
|
2083
|
+
}
|
|
2064
2084
|
),
|
|
2065
2085
|
/* @__PURE__ */ t.jsxs(
|
|
2066
2086
|
un,
|
|
@@ -2069,31 +2089,33 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2069
2089
|
dn,
|
|
2070
2090
|
{
|
|
2071
2091
|
placeholder: "Enter your email",
|
|
2072
|
-
bg: "transparent",
|
|
2092
|
+
bg: p ? "transparent" : "tints.white",
|
|
2073
2093
|
border: "1px solid",
|
|
2074
|
-
borderColor: "viridian.lighter",
|
|
2075
|
-
color: "viridian.lighter",
|
|
2076
|
-
_placeholder: {
|
|
2094
|
+
borderColor: p ? "viridian.lighter" : "tints.darkCream",
|
|
2095
|
+
color: p ? "viridian.lighter" : "tints.darkGrey",
|
|
2096
|
+
_placeholder: {
|
|
2097
|
+
color: p ? "viridian.lighter" : "tints.darkGrey"
|
|
2098
|
+
},
|
|
2077
2099
|
opacity: 0.66,
|
|
2078
2100
|
height: "52px",
|
|
2079
2101
|
pr: "48px",
|
|
2080
|
-
value:
|
|
2081
|
-
onChange: (v) =>
|
|
2082
|
-
onKeyPress:
|
|
2102
|
+
value: h,
|
|
2103
|
+
onChange: (v) => f(v.target.value),
|
|
2104
|
+
onKeyPress: C
|
|
2083
2105
|
}
|
|
2084
2106
|
),
|
|
2085
2107
|
/* @__PURE__ */ t.jsx(
|
|
2086
2108
|
fn,
|
|
2087
2109
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2088
|
-
|
|
2110
|
+
me,
|
|
2089
2111
|
{
|
|
2090
2112
|
as: Pn,
|
|
2091
|
-
color: "viridian.lighter",
|
|
2113
|
+
color: p ? "viridian.lighter" : "viridian.base",
|
|
2092
2114
|
width: "24px",
|
|
2093
2115
|
height: "24px",
|
|
2094
2116
|
opacity: 0.66,
|
|
2095
2117
|
cursor: "pointer",
|
|
2096
|
-
onClick:
|
|
2118
|
+
onClick: g,
|
|
2097
2119
|
"data-testid": "arrow-right-icon",
|
|
2098
2120
|
role: "button",
|
|
2099
2121
|
"aria-label": "Submit"
|
|
@@ -2105,11 +2127,16 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2105
2127
|
] }
|
|
2106
2128
|
),
|
|
2107
2129
|
/* @__PURE__ */ t.jsxs(
|
|
2108
|
-
|
|
2130
|
+
R,
|
|
2109
2131
|
{ children: [
|
|
2110
2132
|
/* @__PURE__ */ t.jsx(
|
|
2111
2133
|
W,
|
|
2112
|
-
{
|
|
2134
|
+
{
|
|
2135
|
+
color: p ? "viridian.lighter" : "tints.darkGrey",
|
|
2136
|
+
marginBottom: 4,
|
|
2137
|
+
size: "lg",
|
|
2138
|
+
children: s
|
|
2139
|
+
}
|
|
2113
2140
|
),
|
|
2114
2141
|
/* @__PURE__ */ t.jsx(
|
|
2115
2142
|
D,
|
|
@@ -2121,12 +2148,12 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2121
2148
|
target: "_blank",
|
|
2122
2149
|
rel: "noopener noreferrer",
|
|
2123
2150
|
"aria-label": v.name,
|
|
2124
|
-
onClick: () =>
|
|
2125
|
-
children:
|
|
2126
|
-
|
|
2151
|
+
onClick: () => E(v.name),
|
|
2152
|
+
children: Ct[v.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2153
|
+
me,
|
|
2127
2154
|
{
|
|
2128
|
-
as:
|
|
2129
|
-
color: "white",
|
|
2155
|
+
as: Ct[v.name.toLowerCase()],
|
|
2156
|
+
color: p ? "white" : "viridian.base",
|
|
2130
2157
|
width: ["48px", null, "24px", null],
|
|
2131
2158
|
height: ["48px", null, "24px", null]
|
|
2132
2159
|
}
|
|
@@ -2140,26 +2167,27 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2140
2167
|
)
|
|
2141
2168
|
] }
|
|
2142
2169
|
);
|
|
2143
|
-
},
|
|
2170
|
+
}, ir = ({
|
|
2144
2171
|
links: n,
|
|
2145
2172
|
linkComponent: o,
|
|
2146
|
-
onLinkClick:
|
|
2173
|
+
onLinkClick: s,
|
|
2174
|
+
footerTheme: i
|
|
2147
2175
|
}) => {
|
|
2148
|
-
const
|
|
2149
|
-
|
|
2150
|
-
},
|
|
2151
|
-
(
|
|
2176
|
+
const c = o || oe, u = i === "dark", d = (h) => {
|
|
2177
|
+
s && s(h);
|
|
2178
|
+
}, p = n == null ? void 0 : n.map(
|
|
2179
|
+
(h) => /* @__PURE__ */ t.jsx(
|
|
2152
2180
|
W,
|
|
2153
2181
|
{
|
|
2154
|
-
as:
|
|
2155
|
-
color: "viridian.lighter",
|
|
2182
|
+
as: c,
|
|
2183
|
+
color: u ? "viridian.lighter" : "viridian.base",
|
|
2156
2184
|
size: "sm",
|
|
2157
|
-
_hover: { color: "white", textDecoration: "none" },
|
|
2158
|
-
onClick: () =>
|
|
2159
|
-
...we(
|
|
2160
|
-
children:
|
|
2185
|
+
_hover: { color: u ? "white" : "viridian.lighter", textDecoration: "none" },
|
|
2186
|
+
onClick: () => d(h.label),
|
|
2187
|
+
...we(h.href, !!o),
|
|
2188
|
+
children: h.label
|
|
2161
2189
|
},
|
|
2162
|
-
|
|
2190
|
+
h.label
|
|
2163
2191
|
)
|
|
2164
2192
|
);
|
|
2165
2193
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -2177,15 +2205,19 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2177
2205
|
flexWrap: "wrap",
|
|
2178
2206
|
gap: [4, 6, 10],
|
|
2179
2207
|
width: ["100%", "auto"],
|
|
2180
|
-
children:
|
|
2208
|
+
children: p
|
|
2181
2209
|
}
|
|
2182
2210
|
),
|
|
2183
2211
|
/* @__PURE__ */ t.jsxs(
|
|
2184
2212
|
W,
|
|
2185
|
-
{
|
|
2186
|
-
"
|
|
2187
|
-
|
|
2188
|
-
|
|
2213
|
+
{
|
|
2214
|
+
color: u ? "viridian.lighter" : "tints.darkGrey",
|
|
2215
|
+
fontSize: "sm",
|
|
2216
|
+
children: [
|
|
2217
|
+
"© Everlywell ",
|
|
2218
|
+
(/* @__PURE__ */ new Date()).getFullYear()
|
|
2219
|
+
]
|
|
2220
|
+
}
|
|
2189
2221
|
)
|
|
2190
2222
|
]
|
|
2191
2223
|
}
|
|
@@ -2193,162 +2225,184 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2193
2225
|
}, vr = De.forwardRef(({
|
|
2194
2226
|
navigationSections: n = [],
|
|
2195
2227
|
disclaimer: o,
|
|
2196
|
-
newsletterLabel:
|
|
2197
|
-
socialMediaLabel:
|
|
2198
|
-
socialLinks:
|
|
2228
|
+
newsletterLabel: s,
|
|
2229
|
+
socialMediaLabel: i,
|
|
2230
|
+
socialLinks: c,
|
|
2199
2231
|
complianceLinks: u,
|
|
2200
2232
|
linkComponent: d,
|
|
2201
|
-
onEmailSubmit:
|
|
2202
|
-
additionalContent:
|
|
2233
|
+
onEmailSubmit: p,
|
|
2234
|
+
additionalContent: h,
|
|
2203
2235
|
onLinkClick: f,
|
|
2204
|
-
onSocialMediaClick:
|
|
2205
|
-
showNewsletter:
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2236
|
+
onSocialMediaClick: g,
|
|
2237
|
+
showNewsletter: C = !0,
|
|
2238
|
+
footerTheme: E = "dark"
|
|
2239
|
+
}, v) => {
|
|
2240
|
+
const w = E === "dark";
|
|
2241
|
+
return /* @__PURE__ */ t.jsx(
|
|
2242
|
+
R,
|
|
2243
|
+
{
|
|
2244
|
+
as: "footer",
|
|
2245
|
+
bg: w ? "viridian.dark" : "tints.lightCream",
|
|
2246
|
+
py: [6, 8],
|
|
2247
|
+
px: [4, 6],
|
|
2248
|
+
ref: v,
|
|
2249
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
2250
|
+
pn,
|
|
2251
|
+
{ size: "fluid", children: [
|
|
2218
2252
|
/* @__PURE__ */ t.jsxs(
|
|
2219
2253
|
D,
|
|
2220
|
-
{
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
children: [
|
|
2226
|
-
/* @__PURE__ */ t.jsx(
|
|
2227
|
-
rr,
|
|
2228
|
-
{
|
|
2229
|
-
sections: n,
|
|
2230
|
-
linkComponent: d,
|
|
2231
|
-
onLinkClick: f
|
|
2232
|
-
}
|
|
2233
|
-
),
|
|
2234
|
-
/* @__PURE__ */ t.jsx(
|
|
2235
|
-
or,
|
|
2254
|
+
{ direction: "column", gap: [8, 12], children: [
|
|
2255
|
+
/* @__PURE__ */ t.jsx(
|
|
2256
|
+
R,
|
|
2257
|
+
{ children: /* @__PURE__ */ t.jsx(
|
|
2258
|
+
Lt,
|
|
2236
2259
|
{
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
socialMediaLabel: s,
|
|
2240
|
-
onEmailSubmit: g,
|
|
2241
|
-
onLinkClick: p,
|
|
2242
|
-
showNewsletter: v
|
|
2260
|
+
width: ["150px", "202px"],
|
|
2261
|
+
color: w ? "white" : V.colors.viridian.base
|
|
2243
2262
|
}
|
|
2244
|
-
)
|
|
2245
|
-
|
|
2263
|
+
) }
|
|
2264
|
+
),
|
|
2265
|
+
/* @__PURE__ */ t.jsxs(
|
|
2266
|
+
D,
|
|
2267
|
+
{
|
|
2268
|
+
direction: ["column", null, null, "row"],
|
|
2269
|
+
justify: "space-between",
|
|
2270
|
+
align: ["flex-start"],
|
|
2271
|
+
gap: [8, 8, 8, 0],
|
|
2272
|
+
children: [
|
|
2273
|
+
/* @__PURE__ */ t.jsx(
|
|
2274
|
+
rr,
|
|
2275
|
+
{
|
|
2276
|
+
sections: n,
|
|
2277
|
+
linkComponent: d,
|
|
2278
|
+
onLinkClick: f,
|
|
2279
|
+
footerTheme: E
|
|
2280
|
+
}
|
|
2281
|
+
),
|
|
2282
|
+
/* @__PURE__ */ t.jsx(
|
|
2283
|
+
or,
|
|
2284
|
+
{
|
|
2285
|
+
socialLinks: c,
|
|
2286
|
+
newsletterLabel: s,
|
|
2287
|
+
socialMediaLabel: i,
|
|
2288
|
+
onEmailSubmit: p,
|
|
2289
|
+
onLinkClick: g,
|
|
2290
|
+
showNewsletter: C,
|
|
2291
|
+
footerTheme: E
|
|
2292
|
+
}
|
|
2293
|
+
)
|
|
2294
|
+
]
|
|
2295
|
+
}
|
|
2296
|
+
),
|
|
2297
|
+
/* @__PURE__ */ t.jsxs(
|
|
2298
|
+
D,
|
|
2299
|
+
{
|
|
2300
|
+
direction: ["column", "column", "row"],
|
|
2301
|
+
justify: "space-between",
|
|
2302
|
+
alignContent: "center",
|
|
2303
|
+
align: ["flex-start", "flex-start", "center"],
|
|
2304
|
+
gap: [6, 6, 0],
|
|
2305
|
+
children: [
|
|
2306
|
+
typeof o == "string" ? /* @__PURE__ */ t.jsx(
|
|
2307
|
+
W,
|
|
2308
|
+
{
|
|
2309
|
+
color: w ? "viridian.lighter" : "tints.uiGrey",
|
|
2310
|
+
fontSize: "sm",
|
|
2311
|
+
maxWidth: ["100%", "100%", "1024px"],
|
|
2312
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
2313
|
+
sx: {
|
|
2314
|
+
"a:hover": {
|
|
2315
|
+
color: w ? "viridian.light" : "viridian.base",
|
|
2316
|
+
textDecoration: "underline"
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
) : o,
|
|
2321
|
+
h
|
|
2322
|
+
]
|
|
2323
|
+
}
|
|
2324
|
+
)
|
|
2325
|
+
] }
|
|
2326
|
+
),
|
|
2327
|
+
/* @__PURE__ */ t.jsx(
|
|
2328
|
+
R,
|
|
2329
|
+
{
|
|
2330
|
+
borderTop: "1px solid",
|
|
2331
|
+
borderColor: w ? `${V.colors.viridian.lighter}20` : "tints.darkCream",
|
|
2332
|
+
marginTop: "10",
|
|
2333
|
+
marginBottom: "8"
|
|
2246
2334
|
}
|
|
2247
2335
|
),
|
|
2248
|
-
/* @__PURE__ */ t.
|
|
2249
|
-
|
|
2336
|
+
/* @__PURE__ */ t.jsx(
|
|
2337
|
+
ir,
|
|
2250
2338
|
{
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
gap: [6, 6, 0],
|
|
2256
|
-
children: [
|
|
2257
|
-
o && /* @__PURE__ */ t.jsx(
|
|
2258
|
-
W,
|
|
2259
|
-
{
|
|
2260
|
-
color: "viridian.lighter",
|
|
2261
|
-
fontSize: "sm",
|
|
2262
|
-
maxWidth: ["100%", "100%", "1024px"],
|
|
2263
|
-
dangerouslySetInnerHTML: { __html: o },
|
|
2264
|
-
sx: {
|
|
2265
|
-
"a:hover": { color: "viridian.light", textDecoration: "underline" }
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
),
|
|
2269
|
-
x
|
|
2270
|
-
]
|
|
2339
|
+
links: u,
|
|
2340
|
+
linkComponent: d,
|
|
2341
|
+
onLinkClick: f,
|
|
2342
|
+
footerTheme: E
|
|
2271
2343
|
}
|
|
2272
2344
|
)
|
|
2273
2345
|
] }
|
|
2274
|
-
),
|
|
2275
|
-
/* @__PURE__ */ t.jsx(
|
|
2276
|
-
E,
|
|
2277
|
-
{
|
|
2278
|
-
borderTop: "1px solid",
|
|
2279
|
-
borderColor: `${G.colors.viridian.lighter}20`,
|
|
2280
|
-
marginTop: "10",
|
|
2281
|
-
marginBottom: "8"
|
|
2282
|
-
}
|
|
2283
|
-
),
|
|
2284
|
-
/* @__PURE__ */ t.jsx(
|
|
2285
|
-
ar,
|
|
2286
|
-
{
|
|
2287
|
-
disclaimer: o,
|
|
2288
|
-
links: u,
|
|
2289
|
-
linkComponent: d,
|
|
2290
|
-
onLinkClick: f
|
|
2291
|
-
}
|
|
2292
2346
|
)
|
|
2293
|
-
|
|
2294
|
-
)
|
|
2295
|
-
)
|
|
2296
|
-
Container:
|
|
2297
|
-
Overlay:
|
|
2347
|
+
}
|
|
2348
|
+
);
|
|
2349
|
+
}), ar = (n) => n ? {
|
|
2350
|
+
Container: Rt,
|
|
2351
|
+
Overlay: kt,
|
|
2298
2352
|
Content: St,
|
|
2299
|
-
Header:
|
|
2353
|
+
Header: _t,
|
|
2300
2354
|
Body: Dt,
|
|
2301
2355
|
Footer: hn,
|
|
2302
2356
|
CloseButton: gn
|
|
2303
2357
|
} : {
|
|
2304
2358
|
Container: xn,
|
|
2305
2359
|
Overlay: vn,
|
|
2306
|
-
Content:
|
|
2307
|
-
Header:
|
|
2360
|
+
Content: bn,
|
|
2361
|
+
Header: mn,
|
|
2308
2362
|
Body: wn,
|
|
2309
2363
|
Footer: jn,
|
|
2310
|
-
CloseButton:
|
|
2311
|
-
},
|
|
2364
|
+
CloseButton: yn
|
|
2365
|
+
}, br = ({
|
|
2312
2366
|
isOpen: n,
|
|
2313
2367
|
onClose: o,
|
|
2314
|
-
children:
|
|
2315
|
-
header:
|
|
2316
|
-
footer:
|
|
2368
|
+
children: s,
|
|
2369
|
+
header: i,
|
|
2370
|
+
footer: c,
|
|
2317
2371
|
headerProps: u,
|
|
2318
2372
|
bodyProps: d,
|
|
2319
|
-
footerProps:
|
|
2320
|
-
contentProps:
|
|
2373
|
+
footerProps: p,
|
|
2374
|
+
contentProps: h,
|
|
2321
2375
|
...f
|
|
2322
2376
|
}) => {
|
|
2323
|
-
var
|
|
2324
|
-
const [
|
|
2325
|
-
Container:
|
|
2326
|
-
Overlay:
|
|
2327
|
-
Content:
|
|
2377
|
+
var j, P, F, G, Q;
|
|
2378
|
+
const [g] = Qe(`(max-width: ${V.breakpoints.tablet})`), C = (Q = (G = (F = (P = (j = V) == null ? void 0 : j.components) == null ? void 0 : P.Modal) == null ? void 0 : F.baseStyle) == null ? void 0 : G.overlay) == null ? void 0 : Q.background, {
|
|
2379
|
+
Container: E,
|
|
2380
|
+
Overlay: v,
|
|
2381
|
+
Content: w,
|
|
2328
2382
|
Header: L,
|
|
2329
|
-
Body:
|
|
2383
|
+
Body: b,
|
|
2330
2384
|
Footer: H,
|
|
2331
|
-
CloseButton:
|
|
2332
|
-
} =
|
|
2385
|
+
CloseButton: S
|
|
2386
|
+
} = ar(g);
|
|
2333
2387
|
return /* @__PURE__ */ t.jsxs(
|
|
2334
|
-
|
|
2388
|
+
E,
|
|
2335
2389
|
{
|
|
2336
2390
|
...f,
|
|
2337
2391
|
isOpen: n,
|
|
2338
2392
|
onClose: o,
|
|
2339
2393
|
size: "xl",
|
|
2340
|
-
...
|
|
2394
|
+
...g ? { placement: "bottom" } : {},
|
|
2341
2395
|
children: [
|
|
2342
|
-
/* @__PURE__ */ t.jsx(
|
|
2396
|
+
/* @__PURE__ */ t.jsx(v, { backdropFilter: "auto", backgroundColor: C }),
|
|
2343
2397
|
/* @__PURE__ */ t.jsxs(
|
|
2344
|
-
|
|
2398
|
+
w,
|
|
2345
2399
|
{
|
|
2346
2400
|
backgroundColor: "tints.white",
|
|
2347
|
-
borderRadius:
|
|
2401
|
+
borderRadius: g ? "20px 20px 0 0" : "20px",
|
|
2348
2402
|
overflowY: "auto",
|
|
2349
2403
|
gap: 0,
|
|
2350
|
-
...
|
|
2351
|
-
...
|
|
2404
|
+
...i && g && { paddingTop: 0 },
|
|
2405
|
+
...h,
|
|
2352
2406
|
children: [
|
|
2353
2407
|
/* @__PURE__ */ t.jsxs(
|
|
2354
2408
|
L,
|
|
@@ -2365,12 +2419,12 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2365
2419
|
zIndex: "modal",
|
|
2366
2420
|
backgroundColor: "tints.white",
|
|
2367
2421
|
paddingInline: 4,
|
|
2368
|
-
...
|
|
2422
|
+
...g ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
|
|
2369
2423
|
...u,
|
|
2370
2424
|
children: [
|
|
2371
|
-
|
|
2425
|
+
i,
|
|
2372
2426
|
/* @__PURE__ */ t.jsx(
|
|
2373
|
-
|
|
2427
|
+
S,
|
|
2374
2428
|
{
|
|
2375
2429
|
position: "static",
|
|
2376
2430
|
width: 32,
|
|
@@ -2381,22 +2435,22 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2381
2435
|
fontSize: "1rem"
|
|
2382
2436
|
}
|
|
2383
2437
|
},
|
|
2384
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2438
|
+
children: /* @__PURE__ */ t.jsx(me, { as: Ot, weight: "light" })
|
|
2385
2439
|
}
|
|
2386
2440
|
)
|
|
2387
2441
|
]
|
|
2388
2442
|
}
|
|
2389
2443
|
),
|
|
2390
2444
|
/* @__PURE__ */ t.jsx(
|
|
2391
|
-
|
|
2445
|
+
b,
|
|
2392
2446
|
{
|
|
2393
2447
|
color: "tints.darkGrey",
|
|
2394
2448
|
paddingInline: 4,
|
|
2395
2449
|
...d,
|
|
2396
|
-
children:
|
|
2450
|
+
children: s
|
|
2397
2451
|
}
|
|
2398
2452
|
),
|
|
2399
|
-
/* @__PURE__ */ t.jsx(H, { paddingInline: 4, ...
|
|
2453
|
+
/* @__PURE__ */ t.jsx(H, { paddingInline: 4, ...p, children: c })
|
|
2400
2454
|
]
|
|
2401
2455
|
}
|
|
2402
2456
|
)
|
|
@@ -2407,16 +2461,16 @@ const Ke = 60, mt = 6, Nn = (n) => {
|
|
|
2407
2461
|
export {
|
|
2408
2462
|
hr as BasketButton,
|
|
2409
2463
|
pr as CategoryLabel,
|
|
2410
|
-
|
|
2464
|
+
br as DrawerModal,
|
|
2411
2465
|
vr as Footer,
|
|
2412
2466
|
Vn as NavButton,
|
|
2413
2467
|
gr as NavSkeleton,
|
|
2414
2468
|
Je as NavbarDrawer,
|
|
2415
2469
|
$e as NavbarDrawerLink,
|
|
2416
2470
|
xr as NavigationBar,
|
|
2417
|
-
|
|
2471
|
+
Gn as SpotlightCard,
|
|
2418
2472
|
fr as Stepper,
|
|
2419
2473
|
et as TopNavIconButton,
|
|
2420
|
-
|
|
2474
|
+
Yn as TopNavigation,
|
|
2421
2475
|
er as useNavigationBar
|
|
2422
2476
|
};
|