@everlywell/consumer-ui 1.41.4 → 1.41.6
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 +9 -9
- package/index.mjs +335 -354
- package/lib/components/Navbar/TopNavigation/TopNavigation.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as tn, Box as C, Stepper as nn, Icon as
|
|
2
|
-
import
|
|
1
|
+
import { useSteps as tn, Box as C, Stepper as nn, Icon as q, Flex as k, Text as W, Link as K, Button as Lt, Image as rn, IconButton as on, theme as X, useMediaQuery as st, VStack as ln, Skeleton as ot, HStack as wt, SkeletonCircle as We, DrawerContent as Ot, DrawerOverlay as Pt, Drawer as At, DrawerHeader as $t, DrawerBody as Mt, Grid as an, GridItem as sn, Accordion as cn, AccordionItem as un, AccordionButton as dn, AccordionPanel as fn, InputGroup as pn, Input as hn, InputRightElement as gn, Container as xn, DrawerFooter as vn, DrawerCloseButton as mn, Modal as bn, ModalOverlay as jn, ModalContent as wn, ModalHeader as Cn, ModalBody as yn, ModalFooter as En, ModalCloseButton as kn } from "@everlywell/ui-kit";
|
|
2
|
+
import Pe, { useEffect as ie, forwardRef as Ft, useRef as Rn, useCallback as Ht, useState as Z } from "react";
|
|
3
3
|
import { Text as _n, useBreakpointValue as ye, Box as Sn, InputGroup as Tn, Input as Dn, InputRightElement as In, Icon as Ln } from "@chakra-ui/react";
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
4
|
+
import { CaretRight as Ct, MagnifyingGlass as Bt, List as On, Basket as Pn, CaretLeft as An, X as zt, User as yt, QrCode as $n, CaretDown as Mn, ArrowRight as Fn, InstagramLogo as Hn, LinkedinLogo as Bn, FacebookLogo as zn, TiktokLogo as Wn, XLogo as Nn } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as pt, AnimatePresence as Vn } from "framer-motion";
|
|
6
|
+
var ct = { exports: {} }, Le = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,19 +13,19 @@ var ut = { exports: {} }, Le = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var Et;
|
|
17
17
|
function Yn() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var n =
|
|
18
|
+
if (Et) return Le;
|
|
19
|
+
Et = 1;
|
|
20
|
+
var n = Pe, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = 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
21
|
function p(v, x, f) {
|
|
22
|
-
var d, g = {},
|
|
23
|
-
f !== void 0 && (
|
|
22
|
+
var d, g = {}, j = null, y = null;
|
|
23
|
+
f !== void 0 && (j = "" + f), x.key !== void 0 && (j = "" + x.key), x.ref !== void 0 && (y = x.ref);
|
|
24
24
|
for (d in x) a.call(x, d) && !u.hasOwnProperty(d) && (g[d] = x[d]);
|
|
25
25
|
if (v && v.defaultProps) for (d in x = v.defaultProps, x) g[d] === void 0 && (g[d] = x[d]);
|
|
26
|
-
return { $$typeof: o, type: v, key:
|
|
26
|
+
return { $$typeof: o, type: v, key: j, ref: y, props: g, _owner: c.current };
|
|
27
27
|
}
|
|
28
|
-
return Le.Fragment =
|
|
28
|
+
return Le.Fragment = s, Le.jsx = p, Le.jsxs = p, Le;
|
|
29
29
|
}
|
|
30
30
|
var Oe = {};
|
|
31
31
|
/**
|
|
@@ -37,10 +37,10 @@ var Oe = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var kt;
|
|
41
41
|
function Gn() {
|
|
42
|
-
return
|
|
43
|
-
var n =
|
|
42
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = Pe, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), v = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), R = Symbol.iterator, O = "@@iterator";
|
|
44
44
|
function m(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -59,20 +59,20 @@ function Gn() {
|
|
|
59
59
|
{
|
|
60
60
|
var h = H.ReactDebugCurrentFrame, E = h.getStackAddendum();
|
|
61
61
|
E !== "" && (r += "%s", l = l.concat([E]));
|
|
62
|
-
var _ = l.map(function(
|
|
63
|
-
return String(
|
|
62
|
+
var _ = l.map(function(w) {
|
|
63
|
+
return String(w);
|
|
64
64
|
});
|
|
65
65
|
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
68
|
+
var A = !1, B = !1, M = !1, ee = !1, le = !1, J;
|
|
69
|
+
J = Symbol.for("react.module.reference");
|
|
70
70
|
function T(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || le || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || le || e === c || e === f || e === d || ee || e === y || A || B || M || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === g || e.$$typeof === p || e.$$typeof === v || e.$$typeof === x || // 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
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === J || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function Y(e, r, l) {
|
|
78
78
|
var h = e.displayName;
|
|
@@ -94,11 +94,11 @@ function Gn() {
|
|
|
94
94
|
switch (e) {
|
|
95
95
|
case a:
|
|
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";
|
|
@@ -118,10 +118,10 @@ function Gn() {
|
|
|
118
118
|
case g:
|
|
119
119
|
var h = e.displayName || null;
|
|
120
120
|
return h !== null ? h : z(e.type) || "Memo";
|
|
121
|
-
case
|
|
122
|
-
var E = e, _ = E._payload,
|
|
121
|
+
case j: {
|
|
122
|
+
var E = e, _ = E._payload, w = E._init;
|
|
123
123
|
try {
|
|
124
|
-
return z(
|
|
124
|
+
return z(w(_));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function Gn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var L = Object.assign, te = 0, ne,
|
|
132
|
+
var L = Object.assign, te = 0, ne, Ae, $e, Re, _e, se, Se;
|
|
133
133
|
function re() {
|
|
134
134
|
}
|
|
135
135
|
re.__reactDisabledLog = !0;
|
|
136
136
|
function Ge() {
|
|
137
137
|
{
|
|
138
138
|
if (te === 0) {
|
|
139
|
-
ne = console.log,
|
|
139
|
+
ne = console.log, Ae = console.info, $e = console.warn, Re = console.error, _e = console.group, se = console.groupCollapsed, Se = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -169,7 +169,7 @@ function Gn() {
|
|
|
169
169
|
value: ne
|
|
170
170
|
}),
|
|
171
171
|
info: L({}, e, {
|
|
172
|
-
value:
|
|
172
|
+
value: Ae
|
|
173
173
|
}),
|
|
174
174
|
warn: L({}, e, {
|
|
175
175
|
value: $e
|
|
@@ -226,27 +226,27 @@ function Gn() {
|
|
|
226
226
|
_ = Te.current, Te.current = null, Ge();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var w = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(w.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(w, []);
|
|
239
239
|
} catch (G) {
|
|
240
240
|
h = G;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], w);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
w.call();
|
|
246
246
|
} catch (G) {
|
|
247
247
|
h = G;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(w.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -260,18 +260,18 @@ function Gn() {
|
|
|
260
260
|
if (G && h && typeof G.stack == "string") {
|
|
261
261
|
for (var b = G.stack.split(`
|
|
262
262
|
`), N = h.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), P = b.length - 1, $ = N.length - 1; P >= 1 && $ >= 0 && b[P] !== N[$]; )
|
|
264
264
|
$--;
|
|
265
|
-
for (;
|
|
266
|
-
if (b[
|
|
267
|
-
if (
|
|
265
|
+
for (; P >= 1 && $ >= 0; P--, $--)
|
|
266
|
+
if (b[P] !== N[$]) {
|
|
267
|
+
if (P !== 1 || $ !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (P--, $--, $ < 0 || b[P] !== N[$]) {
|
|
270
270
|
var U = `
|
|
271
|
-
` + b[
|
|
271
|
+
` + b[P].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, U), U;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (P >= 1 && $ >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -307,7 +307,7 @@ function Gn() {
|
|
|
307
307
|
return me(e.render);
|
|
308
308
|
case g:
|
|
309
309
|
return be(e.type, r, l);
|
|
310
|
-
case
|
|
310
|
+
case j: {
|
|
311
311
|
var h = e, E = h._payload, _ = h._init;
|
|
312
312
|
try {
|
|
313
313
|
return be(_(E), r, l);
|
|
@@ -317,36 +317,36 @@ function Gn() {
|
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var pe = Object.prototype.hasOwnProperty, Fe = {},
|
|
320
|
+
var pe = Object.prototype.hasOwnProperty, Fe = {}, je = H.ReactDebugCurrentFrame;
|
|
321
321
|
function ue(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var r = e._owner, l = be(e.type, e._source, r ? r.type : null);
|
|
324
|
-
|
|
324
|
+
je.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
je.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ke(e, r, l, h, E) {
|
|
329
329
|
{
|
|
330
330
|
var _ = Function.call.bind(pe);
|
|
331
|
-
for (var
|
|
332
|
-
if (_(e,
|
|
331
|
+
for (var w in e)
|
|
332
|
+
if (_(e, w)) {
|
|
333
333
|
var b = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var N = Error((h || "React class") + ": " + l + " type `" +
|
|
335
|
+
if (typeof e[w] != "function") {
|
|
336
|
+
var N = Error((h || "React class") + ": " + l + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw N.name = "Invariant Violation", N;
|
|
338
338
|
}
|
|
339
|
-
b = e[
|
|
340
|
-
} catch (
|
|
341
|
-
b =
|
|
339
|
+
b = e[w](r, w, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (P) {
|
|
341
|
+
b = P;
|
|
342
342
|
}
|
|
343
|
-
b && !(b instanceof Error) && (ue(E), 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).", h || "React class", l,
|
|
343
|
+
b && !(b instanceof Error) && (ue(E), 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).", h || "React class", l, w, typeof b), ue(null)), b instanceof Error && !(b.message in Fe) && (Fe[b.message] = !0, ue(E), S("Failed %s type: %s", l, b.message), ue(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var Xe = Array.isArray;
|
|
348
348
|
function De(e) {
|
|
349
|
-
return
|
|
349
|
+
return Xe(e);
|
|
350
350
|
}
|
|
351
351
|
function Je(e) {
|
|
352
352
|
{
|
|
@@ -354,7 +354,7 @@ function Gn() {
|
|
|
354
354
|
return l;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Q(e) {
|
|
358
358
|
try {
|
|
359
359
|
return He(e), !1;
|
|
360
360
|
} catch {
|
|
@@ -365,7 +365,7 @@ function Gn() {
|
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
367
|
function Be(e) {
|
|
368
|
-
if (
|
|
368
|
+
if (Q(e))
|
|
369
369
|
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), He(e);
|
|
370
370
|
}
|
|
371
371
|
var de = H.ReactCurrentOwner, ze = {
|
|
@@ -419,7 +419,7 @@ function Gn() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var Nt = function(e, r, l, h, E, _,
|
|
422
|
+
var Nt = function(e, r, l, h, E, _, w) {
|
|
423
423
|
var b = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: o,
|
|
@@ -427,7 +427,7 @@ function Gn() {
|
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: l,
|
|
430
|
-
props:
|
|
430
|
+
props: w,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: _
|
|
433
433
|
};
|
|
@@ -450,36 +450,36 @@ function Gn() {
|
|
|
450
450
|
};
|
|
451
451
|
function Vt(e, r, l, h, E) {
|
|
452
452
|
{
|
|
453
|
-
var _,
|
|
453
|
+
var _, w = {}, b = null, N = null;
|
|
454
454
|
l !== void 0 && (Be(l), b = "" + l), F(r) && (Be(r.key), b = "" + r.key), I(r) && (N = r.ref, Qe(r, E));
|
|
455
455
|
for (_ in r)
|
|
456
|
-
pe.call(r, _) && !ze.hasOwnProperty(_) && (
|
|
456
|
+
pe.call(r, _) && !ze.hasOwnProperty(_) && (w[_] = r[_]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (_ in
|
|
460
|
-
|
|
458
|
+
var P = e.defaultProps;
|
|
459
|
+
for (_ in P)
|
|
460
|
+
w[_] === void 0 && (w[_] = P[_]);
|
|
461
461
|
}
|
|
462
462
|
if (b || N) {
|
|
463
463
|
var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
b && he(
|
|
464
|
+
b && he(w, $), N && qe(w, $);
|
|
465
465
|
}
|
|
466
|
-
return Nt(e, b, N, E, h, de.current,
|
|
466
|
+
return Nt(e, b, N, E, h, de.current, w);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var et = H.ReactCurrentOwner,
|
|
470
|
-
function
|
|
469
|
+
var et = H.ReactCurrentOwner, ht = H.ReactDebugCurrentFrame;
|
|
470
|
+
function we(e) {
|
|
471
471
|
if (e) {
|
|
472
472
|
var r = e._owner, l = be(e.type, e._source, r ? r.type : null);
|
|
473
|
-
|
|
473
|
+
ht.setExtraStackFrame(l);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
ht.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
477
|
var tt;
|
|
478
478
|
tt = !1;
|
|
479
479
|
function nt(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function gt() {
|
|
483
483
|
{
|
|
484
484
|
if (et.current) {
|
|
485
485
|
var e = z(et.current.type);
|
|
@@ -494,10 +494,10 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
function Yt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var xt = {};
|
|
498
498
|
function Gt(e) {
|
|
499
499
|
{
|
|
500
|
-
var r =
|
|
500
|
+
var r = gt();
|
|
501
501
|
if (!r) {
|
|
502
502
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
503
|
l && (r = `
|
|
@@ -507,35 +507,35 @@ Check the top-level render call using <` + l + ">.");
|
|
|
507
507
|
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function vt(e, r) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
515
|
var l = Gt(r);
|
|
516
|
-
if (
|
|
516
|
+
if (xt[l])
|
|
517
517
|
return;
|
|
518
|
-
|
|
518
|
+
xt[l] = !0;
|
|
519
519
|
var h = "";
|
|
520
|
-
e && e._owner && e._owner !== et.current && (h = " It was passed a child from " + z(e._owner.type) + "."),
|
|
520
|
+
e && e._owner && e._owner !== et.current && (h = " It was passed a child from " + z(e._owner.type) + "."), we(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, h), we(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function mt(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
527
|
if (De(e))
|
|
528
528
|
for (var l = 0; l < e.length; l++) {
|
|
529
529
|
var h = e[l];
|
|
530
|
-
nt(h) &&
|
|
530
|
+
nt(h) && vt(h, r);
|
|
531
531
|
}
|
|
532
532
|
else if (nt(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
535
|
var E = m(e);
|
|
536
536
|
if (typeof E == "function" && E !== e.entries)
|
|
537
|
-
for (var _ = E.call(e),
|
|
538
|
-
nt(
|
|
537
|
+
for (var _ = E.call(e), w; !(w = _.next()).done; )
|
|
538
|
+
nt(w.value) && vt(w.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
555
555
|
return;
|
|
556
556
|
if (l) {
|
|
557
557
|
var h = z(r);
|
|
558
|
-
|
|
558
|
+
Ke(l, e.props, "prop", h, e);
|
|
559
559
|
} else if (r.PropTypes !== void 0 && !tt) {
|
|
560
560
|
tt = !0;
|
|
561
561
|
var E = z(r);
|
|
@@ -569,76 +569,76 @@ Check the top-level render call using <` + l + ">.");
|
|
|
569
569
|
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
570
570
|
var h = r[l];
|
|
571
571
|
if (h !== "children" && h !== "key") {
|
|
572
|
-
|
|
572
|
+
we(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), we(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
576
|
+
e.ref !== null && (we(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
579
|
+
var bt = {};
|
|
580
|
+
function jt(e, r, l, h, E, _) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
582
|
+
var w = T(e);
|
|
583
|
+
if (!w) {
|
|
584
584
|
var b = "";
|
|
585
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " 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 N = Yt();
|
|
587
|
-
N ? b += N : b +=
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
587
|
+
N ? b += N : b += gt();
|
|
588
|
+
var P;
|
|
589
|
+
e === null ? P = "null" : De(e) ? P = "array" : e !== void 0 && e.$$typeof === o ? (P = "<" + (z(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : P = 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", P, b);
|
|
590
590
|
}
|
|
591
591
|
var $ = Vt(e, r, l, E, _);
|
|
592
592
|
if ($ == null)
|
|
593
593
|
return $;
|
|
594
|
-
if (
|
|
594
|
+
if (w) {
|
|
595
595
|
var U = r.children;
|
|
596
596
|
if (U !== void 0)
|
|
597
597
|
if (h)
|
|
598
598
|
if (De(U)) {
|
|
599
599
|
for (var Ce = 0; Ce < U.length; Ce++)
|
|
600
|
-
|
|
600
|
+
mt(U[Ce], e);
|
|
601
601
|
Object.freeze && Object.freeze(U);
|
|
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
|
+
mt(U, e);
|
|
606
606
|
}
|
|
607
607
|
if (pe.call(r, "key")) {
|
|
608
608
|
var ge = z(e), G = Object.keys(r).filter(function(en) {
|
|
609
609
|
return en !== "key";
|
|
610
610
|
}), rt = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
-
if (!
|
|
611
|
+
if (!bt[ge + rt]) {
|
|
612
612
|
var qt = G.length > 0 ? "{" + G.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:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`, rt, ge, qt, ge),
|
|
618
|
+
<%s key={someKey} {...props} />`, rt, ge, qt, ge), bt[ge + rt] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
return e === a ? Zt($) : Ut($), $;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function Xt(e, r, l) {
|
|
625
|
-
return Ct(e, r, l, !0);
|
|
626
|
-
}
|
|
627
624
|
function Kt(e, r, l) {
|
|
628
|
-
return
|
|
625
|
+
return jt(e, r, l, !0);
|
|
629
626
|
}
|
|
630
|
-
|
|
627
|
+
function Xt(e, r, l) {
|
|
628
|
+
return jt(e, r, l, !1);
|
|
629
|
+
}
|
|
630
|
+
var Jt = Xt, Qt = Kt;
|
|
631
631
|
Oe.Fragment = a, Oe.jsx = Jt, Oe.jsxs = Qt;
|
|
632
632
|
}()), Oe;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var t =
|
|
636
|
-
const it = 60,
|
|
634
|
+
process.env.NODE_ENV === "production" ? ct.exports = Yn() : ct.exports = Gn();
|
|
635
|
+
var t = ct.exports;
|
|
636
|
+
const it = 60, Rt = 6, Un = (n) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: o,
|
|
639
|
-
hideIndicators:
|
|
639
|
+
hideIndicators: s = !1,
|
|
640
640
|
steps: a,
|
|
641
|
-
stepperTheme:
|
|
641
|
+
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
@@ -659,21 +659,21 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
661
|
children: a.map((v, x) => {
|
|
662
|
-
const f = u === x, d = x === 0, g = x === a.length - 1,
|
|
662
|
+
const f = u === x, d = x === 0, g = x === a.length - 1, j = u > x;
|
|
663
663
|
let y = `${it}px`;
|
|
664
|
-
const R = `calc(100% - ((${it * (a.length - 1)}px) - (${a.length - 1} * ${
|
|
665
|
-
return f ? y = R : (d || g) && (y = `${it -
|
|
664
|
+
const R = `calc(100% - ((${it * (a.length - 1)}px) - (${a.length - 1} * ${Rt * 2}px)))`;
|
|
665
|
+
return f ? y = R : (d || g) && (y = `${it - Rt}px`), /* @__PURE__ */ t.jsx(
|
|
666
666
|
C,
|
|
667
667
|
{
|
|
668
668
|
width: y,
|
|
669
|
-
opacity:
|
|
669
|
+
opacity: j || f ? 1 : 0.2,
|
|
670
670
|
paddingRight: g ? "0" : "6px",
|
|
671
671
|
paddingLeft: d ? "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
|
C,
|
|
675
675
|
{
|
|
676
|
-
paddingTop:
|
|
676
|
+
paddingTop: s ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -682,8 +682,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
686
|
-
height:
|
|
685
|
+
backgroundColor: j ? c.light : c.base,
|
|
686
|
+
height: s ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
689
689
|
}
|
|
@@ -697,30 +697,30 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
}, gr =
|
|
700
|
+
}, gr = Pe.memo(Un), xr = ({
|
|
701
701
|
children: n,
|
|
702
702
|
...o
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
704
|
_n,
|
|
705
705
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
706
|
), ke = (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
|
|
712
712
|
};
|
|
713
|
-
}, Ne =
|
|
713
|
+
}, Ne = Ft(
|
|
714
714
|
(n, o) => {
|
|
715
715
|
const {
|
|
716
|
-
label:
|
|
716
|
+
label: s,
|
|
717
717
|
additionalContent: a,
|
|
718
|
-
mainTextFontSize:
|
|
718
|
+
mainTextFontSize: c,
|
|
719
719
|
linkComponent: u,
|
|
720
720
|
href: p,
|
|
721
721
|
forceMobileStyle: v = !1,
|
|
722
722
|
...x
|
|
723
|
-
} = n, f = u ||
|
|
723
|
+
} = n, f = u || K, d = ke(p, !!u), g = v ? c || "xl" : [c || "xl", null, null, "lg"], j = v ? "xl" : ["xl", null, null, "lg"], y = v ? void 0 : [null, null, null, 1], R = v ? void 0 : [null, null, null, "space-between"], O = v ? "3" : [3, null, null, 0], m = v ? "1px" : ["1px", null, null, "unset"], H = v ? "tints.cream" : ["tints.cream", null, null, "unset"], S = v ? "100%" : ["100%", null, null, "fit-content"], V = v ? "none" : ["none", null, null, "block"], A = v ? "100%" : ["100%", null, null, "auto"], B = v ? "block" : ["block", null, null, "none"];
|
|
724
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
725
|
C,
|
|
726
726
|
{
|
|
@@ -741,10 +741,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
741
741
|
...x,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ t.jsx(
|
|
744
|
-
|
|
744
|
+
q,
|
|
745
745
|
{
|
|
746
746
|
display: V,
|
|
747
|
-
as:
|
|
747
|
+
as: Ct,
|
|
748
748
|
fontSize: "lg",
|
|
749
749
|
color: "viridian.light",
|
|
750
750
|
role: "img",
|
|
@@ -754,19 +754,19 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
754
754
|
),
|
|
755
755
|
/* @__PURE__ */ t.jsxs(
|
|
756
756
|
k,
|
|
757
|
-
{ alignItems: "center", gap: "1", width:
|
|
757
|
+
{ alignItems: "center", gap: "1", width: A, children: [
|
|
758
758
|
/* @__PURE__ */ t.jsx(
|
|
759
759
|
W,
|
|
760
760
|
{
|
|
761
761
|
fontSize: g,
|
|
762
762
|
fontWeight: "medium",
|
|
763
|
-
children:
|
|
763
|
+
children: s
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
a && (typeof a == "string" ? /* @__PURE__ */ t.jsx(
|
|
767
767
|
W,
|
|
768
768
|
{
|
|
769
|
-
fontSize:
|
|
769
|
+
fontSize: j,
|
|
770
770
|
fontWeight: "medium",
|
|
771
771
|
color: "tints.uiGrey",
|
|
772
772
|
sx: {
|
|
@@ -778,10 +778,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
778
778
|
}
|
|
779
779
|
) : a),
|
|
780
780
|
/* @__PURE__ */ t.jsx(
|
|
781
|
-
|
|
781
|
+
q,
|
|
782
782
|
{
|
|
783
783
|
display: B,
|
|
784
|
-
as:
|
|
784
|
+
as: Ct,
|
|
785
785
|
fontSize: "2xl",
|
|
786
786
|
color: "tints.uiGrey",
|
|
787
787
|
role: "img",
|
|
@@ -795,11 +795,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
|
-
), Ve =
|
|
798
|
+
), Ve = Ft(
|
|
799
799
|
(n, o) => {
|
|
800
|
-
const { children:
|
|
800
|
+
const { children: s, isSelected: a, ...c } = n, u = n.backgroundColor || (a ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
|
-
|
|
802
|
+
Lt,
|
|
803
803
|
{
|
|
804
804
|
ref: o,
|
|
805
805
|
borderRadius: "full",
|
|
@@ -825,24 +825,24 @@ const it = 60, St = 6, Un = (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
|
), Zn = ({
|
|
834
834
|
title: n,
|
|
835
835
|
description: o,
|
|
836
|
-
imageSrc:
|
|
836
|
+
imageSrc: s,
|
|
837
837
|
imageElement: a,
|
|
838
|
-
button:
|
|
838
|
+
button: c,
|
|
839
839
|
backgroundColor: u = "viridian.wash",
|
|
840
840
|
onClick: p,
|
|
841
841
|
href: v,
|
|
842
842
|
linkComponent: x,
|
|
843
843
|
forceMobileStyle: f = !1
|
|
844
844
|
}) => {
|
|
845
|
-
const y = x ||
|
|
845
|
+
const y = x || K, R = ke(v, !!x), O = ye({
|
|
846
846
|
base: !1,
|
|
847
847
|
tablet: !1,
|
|
848
848
|
largeTablet: !1,
|
|
@@ -885,10 +885,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
885
885
|
objectFit: f ? "cover" : "contain"
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
|
-
children:
|
|
888
|
+
children: s ? /* @__PURE__ */ t.jsx(
|
|
889
889
|
rn,
|
|
890
890
|
{
|
|
891
|
-
src:
|
|
891
|
+
src: s,
|
|
892
892
|
objectFit: "cover",
|
|
893
893
|
width: "100%",
|
|
894
894
|
alt: "",
|
|
@@ -938,7 +938,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
938
938
|
)
|
|
939
939
|
] }
|
|
940
940
|
),
|
|
941
|
-
f ? null : O ? /* @__PURE__ */ t.jsx(C, { children:
|
|
941
|
+
f ? null : O ? /* @__PURE__ */ t.jsx(C, { children: c }) : null
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
944
|
)
|
|
@@ -967,7 +967,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
967
967
|
...n
|
|
968
968
|
}
|
|
969
969
|
), Wt = ({
|
|
970
|
-
color: n =
|
|
970
|
+
color: n = X.colors.viridian.base,
|
|
971
971
|
width: o
|
|
972
972
|
}) => /* @__PURE__ */ t.jsx(
|
|
973
973
|
Sn,
|
|
@@ -994,12 +994,12 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
994
994
|
) }
|
|
995
995
|
)
|
|
996
996
|
}
|
|
997
|
-
),
|
|
997
|
+
), Kn = ({
|
|
998
998
|
desktopTopButtons: n,
|
|
999
999
|
kitRegistrationElement: o,
|
|
1000
|
-
profileElement:
|
|
1000
|
+
profileElement: s,
|
|
1001
1001
|
cartElement: a,
|
|
1002
|
-
onSearchClick:
|
|
1002
|
+
onSearchClick: c,
|
|
1003
1003
|
onMenuClick: u,
|
|
1004
1004
|
hasSearch: p = !1,
|
|
1005
1005
|
logoLink: v = "https://www.everlywell.com",
|
|
@@ -1007,7 +1007,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1007
1007
|
linkComponent: f,
|
|
1008
1008
|
onLogoClick: d
|
|
1009
1009
|
}) => {
|
|
1010
|
-
const g = Rn(null), [
|
|
1010
|
+
const g = Rn(null), [j] = st(`(max-width: ${X.breakpoints.mediumTablet})`), [y] = st(`(max-width: ${X.breakpoints.mediumDesktop})`), R = Ht(() => {
|
|
1011
1011
|
if (g.current) {
|
|
1012
1012
|
const O = g.current.getBoundingClientRect();
|
|
1013
1013
|
x(O.bottom);
|
|
@@ -1020,7 +1020,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1020
1020
|
{
|
|
1021
1021
|
ref: g,
|
|
1022
1022
|
paddingY: "4",
|
|
1023
|
-
paddingX:
|
|
1023
|
+
paddingX: j ? 4 : y ? 6 : 8,
|
|
1024
1024
|
borderBottom: "1px solid",
|
|
1025
1025
|
borderColor: "tints.lightCream",
|
|
1026
1026
|
backgroundColor: "tints.white",
|
|
@@ -1037,7 +1037,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1037
1037
|
{
|
|
1038
1038
|
"aria-label": "Go to homepage",
|
|
1039
1039
|
onClick: d,
|
|
1040
|
-
as: f ||
|
|
1040
|
+
as: f || K,
|
|
1041
1041
|
...ke(v, !!f),
|
|
1042
1042
|
children: /* @__PURE__ */ t.jsx(Wt, { width: "116px" })
|
|
1043
1043
|
}
|
|
@@ -1055,38 +1055,19 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1055
1055
|
C,
|
|
1056
1056
|
{ display: ["none", null, "none", "none", "none", "block"], children: o }
|
|
1057
1057
|
),
|
|
1058
|
-
p ?
|
|
1058
|
+
p ? /* @__PURE__ */ t.jsx(
|
|
1059
1059
|
Ee,
|
|
1060
1060
|
{
|
|
1061
|
-
"aria-label": "
|
|
1062
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1063
|
-
onClick:
|
|
1064
|
-
backgroundColor: "
|
|
1065
|
-
color: "
|
|
1061
|
+
"aria-label": "Search",
|
|
1062
|
+
icon: /* @__PURE__ */ t.jsx(q, { as: Bt }),
|
|
1063
|
+
onClick: c,
|
|
1064
|
+
backgroundColor: "tints.cream",
|
|
1065
|
+
color: "tints.black",
|
|
1066
1066
|
_hover: {
|
|
1067
|
-
backgroundColor: "
|
|
1067
|
+
backgroundColor: "tints.cream",
|
|
1068
1068
|
filter: "brightness(0.95)"
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
|
-
) : /* @__PURE__ */ t.jsxs(
|
|
1072
|
-
ht,
|
|
1073
|
-
{
|
|
1074
|
-
"aria-label": "Ask or Search",
|
|
1075
|
-
onClick: s,
|
|
1076
|
-
backgroundColor: "eggplant.wash",
|
|
1077
|
-
color: "eggplant.base",
|
|
1078
|
-
height: "48px",
|
|
1079
|
-
paddingX: "16px !important",
|
|
1080
|
-
fontSize: "lg",
|
|
1081
|
-
_hover: {
|
|
1082
|
-
backgroundColor: "eggplant.wash",
|
|
1083
|
-
filter: "brightness(0.95)"
|
|
1084
|
-
},
|
|
1085
|
-
children: [
|
|
1086
|
-
/* @__PURE__ */ t.jsx(J, { as: ct }),
|
|
1087
|
-
"Ask or Search"
|
|
1088
|
-
]
|
|
1089
|
-
}
|
|
1090
1071
|
) : null,
|
|
1091
1072
|
a,
|
|
1092
1073
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1101,20 +1082,20 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1101
1082
|
}
|
|
1102
1083
|
) }
|
|
1103
1084
|
),
|
|
1104
|
-
/* @__PURE__ */ t.jsx(C, { display: ["none", null, null, "none", "none", "none", "block"], children:
|
|
1085
|
+
/* @__PURE__ */ t.jsx(C, { display: ["none", null, null, "none", "none", "none", "block"], children: s })
|
|
1105
1086
|
] }
|
|
1106
1087
|
)
|
|
1107
1088
|
] }
|
|
1108
1089
|
)
|
|
1109
1090
|
}
|
|
1110
1091
|
);
|
|
1111
|
-
},
|
|
1092
|
+
}, Xn = ({
|
|
1112
1093
|
count: n = 0,
|
|
1113
1094
|
...o
|
|
1114
1095
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1115
1096
|
C,
|
|
1116
1097
|
{ position: "relative", display: "inline-block", children: [
|
|
1117
|
-
/* @__PURE__ */ t.jsx(Ee, { icon: /* @__PURE__ */ t.jsx(
|
|
1098
|
+
/* @__PURE__ */ t.jsx(Ee, { icon: /* @__PURE__ */ t.jsx(Pn, {}), ...o }),
|
|
1118
1099
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1119
1100
|
C,
|
|
1120
1101
|
{
|
|
@@ -1154,7 +1135,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1154
1135
|
{ justify: "space-between", align: "center", children: [
|
|
1155
1136
|
/* @__PURE__ */ t.jsx(ot, { w: "120px", h: "48px" }),
|
|
1156
1137
|
/* @__PURE__ */ t.jsxs(
|
|
1157
|
-
|
|
1138
|
+
wt,
|
|
1158
1139
|
{
|
|
1159
1140
|
spacing: 8,
|
|
1160
1141
|
marginLeft: 12,
|
|
@@ -1162,14 +1143,14 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1162
1143
|
"data-testid": "desktop-nav",
|
|
1163
1144
|
children: [
|
|
1164
1145
|
Array.from({ length: n }).map(
|
|
1165
|
-
(
|
|
1146
|
+
(s, a) => /* @__PURE__ */ t.jsx(ot, { width: "90px", height: "48px" }, a)
|
|
1166
1147
|
),
|
|
1167
1148
|
o && /* @__PURE__ */ t.jsx(ot, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1168
1149
|
]
|
|
1169
1150
|
}
|
|
1170
1151
|
),
|
|
1171
1152
|
/* @__PURE__ */ t.jsxs(
|
|
1172
|
-
|
|
1153
|
+
wt,
|
|
1173
1154
|
{ spacing: 4, ml: "auto", children: [
|
|
1174
1155
|
/* @__PURE__ */ t.jsx(
|
|
1175
1156
|
We,
|
|
@@ -1194,72 +1175,72 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1194
1175
|
}
|
|
1195
1176
|
) }
|
|
1196
1177
|
), Jn = (n, o) => {
|
|
1197
|
-
let
|
|
1178
|
+
let s;
|
|
1198
1179
|
return (...a) => {
|
|
1199
|
-
|
|
1180
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
1200
1181
|
n(...a);
|
|
1201
1182
|
}, o);
|
|
1202
1183
|
};
|
|
1203
1184
|
}, lt = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Qn = (n, o) => {
|
|
1204
1185
|
n.length < o.length && ([n, o] = [o, n]);
|
|
1205
|
-
let
|
|
1206
|
-
for (let
|
|
1207
|
-
c
|
|
1208
|
-
for (let
|
|
1209
|
-
a[0] =
|
|
1186
|
+
let s = Array(o.length + 1).fill(0), a = Array(o.length + 1).fill(0);
|
|
1187
|
+
for (let c = 0; c <= o.length; c++)
|
|
1188
|
+
s[c] = c;
|
|
1189
|
+
for (let c = 1; c <= n.length; c++) {
|
|
1190
|
+
a[0] = c;
|
|
1210
1191
|
for (let u = 1; u <= o.length; u++) {
|
|
1211
|
-
const p = n[
|
|
1192
|
+
const p = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1212
1193
|
a[u] = Math.min(
|
|
1213
1194
|
a[u - 1] + 1,
|
|
1214
1195
|
// Insertion
|
|
1215
|
-
|
|
1196
|
+
s[u] + 1,
|
|
1216
1197
|
// Deletion
|
|
1217
|
-
|
|
1198
|
+
s[u - 1] + p
|
|
1218
1199
|
// Substitution
|
|
1219
1200
|
);
|
|
1220
1201
|
}
|
|
1221
|
-
[
|
|
1202
|
+
[s, a] = [a, s];
|
|
1222
1203
|
}
|
|
1223
|
-
return
|
|
1224
|
-
}, Ye = (n, o,
|
|
1204
|
+
return s[o.length];
|
|
1205
|
+
}, Ye = (n, o, s = 0.6) => {
|
|
1225
1206
|
if (n.length <= 3 || o.length <= 3)
|
|
1226
1207
|
return n.includes(o) || o.includes(n);
|
|
1227
|
-
const a = Qn(n, o),
|
|
1228
|
-
return 1 - a /
|
|
1229
|
-
},
|
|
1230
|
-
const
|
|
1231
|
-
return o.length <= 4 ?
|
|
1208
|
+
const a = Qn(n, o), c = Math.max(n.length, o.length);
|
|
1209
|
+
return 1 - a / c >= s;
|
|
1210
|
+
}, _t = (n, o) => {
|
|
1211
|
+
const s = n.split(/\s+/);
|
|
1212
|
+
return o.length <= 4 ? s.some((a) => a.includes(o)) : s.some((a) => {
|
|
1232
1213
|
if (Ye(a, o))
|
|
1233
1214
|
return !0;
|
|
1234
1215
|
if (a.length >= o.length)
|
|
1235
|
-
for (let
|
|
1236
|
-
const u = a.slice(
|
|
1216
|
+
for (let c = 0; c <= a.length - o.length; c++) {
|
|
1217
|
+
const u = a.slice(c, c + o.length + 1);
|
|
1237
1218
|
if (Ye(o, u))
|
|
1238
1219
|
return !0;
|
|
1239
1220
|
}
|
|
1240
1221
|
return !1;
|
|
1241
1222
|
});
|
|
1242
|
-
},
|
|
1223
|
+
}, ut = "nav-drawer-hover", dt = "nav-drawer-animation-start", ft = "nav-drawer-animation-end", St = (n) => {
|
|
1243
1224
|
window.dispatchEvent(
|
|
1244
|
-
new CustomEvent(
|
|
1225
|
+
new CustomEvent(ut, {
|
|
1245
1226
|
detail: { isHovering: n },
|
|
1246
1227
|
bubbles: !0,
|
|
1247
1228
|
cancelable: !0
|
|
1248
1229
|
})
|
|
1249
1230
|
);
|
|
1250
|
-
},
|
|
1231
|
+
}, Tt = (n) => {
|
|
1251
1232
|
window.dispatchEvent(
|
|
1252
1233
|
new CustomEvent(n, {
|
|
1253
1234
|
bubbles: !0,
|
|
1254
1235
|
cancelable: !0
|
|
1255
1236
|
})
|
|
1256
1237
|
);
|
|
1257
|
-
}, qn = (n = !1, o = !1,
|
|
1238
|
+
}, qn = (n = !1, o = !1, s = !1) => n || !o ? "column" : s ? "row" : "row-reverse", er = pt(Ot), tr = pt(Pt), at = ({
|
|
1258
1239
|
isOpen: n = !1,
|
|
1259
1240
|
onClose: o,
|
|
1260
|
-
title:
|
|
1241
|
+
title: s,
|
|
1261
1242
|
navDrawerLinks: a,
|
|
1262
|
-
bottomNavButtons:
|
|
1243
|
+
bottomNavButtons: c,
|
|
1263
1244
|
spotlightCards: u,
|
|
1264
1245
|
bottomButton: p,
|
|
1265
1246
|
hasBackButton: v = !0,
|
|
@@ -1267,10 +1248,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1267
1248
|
hasOnlySpotlightCards: f = !1,
|
|
1268
1249
|
hasSearch: d = !1,
|
|
1269
1250
|
onSearch: g = () => ({}),
|
|
1270
|
-
topOffset:
|
|
1251
|
+
topOffset: j,
|
|
1271
1252
|
forceMobilePlacement: y = !1
|
|
1272
1253
|
}) => {
|
|
1273
|
-
var le,
|
|
1254
|
+
var le, J, T, Y, ae, z;
|
|
1274
1255
|
const R = ye({
|
|
1275
1256
|
base: !1,
|
|
1276
1257
|
tablet: !1,
|
|
@@ -1278,22 +1259,22 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1278
1259
|
mediumDesktop: !0,
|
|
1279
1260
|
desktop: !0,
|
|
1280
1261
|
fullDesktop: !0
|
|
1281
|
-
}) ?? !1, O = y ? "right" : R ? "top" : "right", m = O === "right", [H, S] = Z(0), [V,
|
|
1262
|
+
}) ?? !1, O = y ? "right" : R ? "top" : "right", m = O === "right", [H, S] = Z(0), [V, A] = Z(!1), B = () => {
|
|
1282
1263
|
S((L) => L + 1);
|
|
1283
|
-
}, M =
|
|
1264
|
+
}, M = Ht(
|
|
1284
1265
|
Jn((L) => {
|
|
1285
1266
|
g(L), B();
|
|
1286
1267
|
}, 100),
|
|
1287
1268
|
[]
|
|
1288
1269
|
);
|
|
1289
1270
|
ie(() => {
|
|
1290
|
-
n && (
|
|
1271
|
+
n && (A(!0), Tt(dt));
|
|
1291
1272
|
}, [n]);
|
|
1292
1273
|
const ee = () => {
|
|
1293
|
-
n || (
|
|
1274
|
+
n || (A(!1), o()), Tt(ft);
|
|
1294
1275
|
};
|
|
1295
1276
|
return /* @__PURE__ */ t.jsx(
|
|
1296
|
-
|
|
1277
|
+
At,
|
|
1297
1278
|
{
|
|
1298
1279
|
isOpen: V || n,
|
|
1299
1280
|
closeOnOverlayClick: !0,
|
|
@@ -1306,14 +1287,14 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1306
1287
|
...m ? {
|
|
1307
1288
|
styleConfig: {
|
|
1308
1289
|
baseStyle: {
|
|
1309
|
-
...
|
|
1290
|
+
...X.components.Drawer.baseStyle,
|
|
1310
1291
|
dialogContainer: {
|
|
1311
|
-
...(
|
|
1292
|
+
...(J = (le = X.components.Drawer) == null ? void 0 : le.baseStyle) == null ? void 0 : J.dialogContainer,
|
|
1312
1293
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1313
1294
|
zIndex: "popover"
|
|
1314
1295
|
},
|
|
1315
1296
|
dialog: {
|
|
1316
|
-
...(Y = (T =
|
|
1297
|
+
...(Y = (T = X.components.Drawer) == null ? void 0 : T.baseStyle) == null ? void 0 : Y.dialog,
|
|
1317
1298
|
// Ensure mobile drawer doesn't expand to full width
|
|
1318
1299
|
maxW: "560px",
|
|
1319
1300
|
width: "auto"
|
|
@@ -1323,11 +1304,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1323
1304
|
} : {
|
|
1324
1305
|
styleConfig: {
|
|
1325
1306
|
baseStyle: {
|
|
1326
|
-
...
|
|
1307
|
+
...X.components.Drawer.baseStyle,
|
|
1327
1308
|
dialogContainer: {
|
|
1328
|
-
...(z = (ae =
|
|
1309
|
+
...(z = (ae = X.components.Drawer) == null ? void 0 : ae.baseStyle) == null ? void 0 : z.dialogContainer,
|
|
1329
1310
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1330
|
-
top: `${
|
|
1311
|
+
top: `${j}px`,
|
|
1331
1312
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1332
1313
|
zIndex: "overlay"
|
|
1333
1314
|
}
|
|
@@ -1343,7 +1324,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1343
1324
|
tr,
|
|
1344
1325
|
{
|
|
1345
1326
|
backgroundColor: "tints.black",
|
|
1346
|
-
top: m ? "0" : `${
|
|
1327
|
+
top: m ? "0" : `${j}px`,
|
|
1347
1328
|
opacity: m ? "0.4 !important" : void 0,
|
|
1348
1329
|
zIndex: m ? "modal" : "overlay",
|
|
1349
1330
|
...m ? {} : {
|
|
@@ -1366,10 +1347,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1366
1347
|
ne && ne.href === window.location.href && o();
|
|
1367
1348
|
},
|
|
1368
1349
|
onMouseEnter: () => {
|
|
1369
|
-
m ||
|
|
1350
|
+
m || St(!0);
|
|
1370
1351
|
},
|
|
1371
1352
|
onMouseLeave: (L) => {
|
|
1372
|
-
m || (!d || d && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !V)) &&
|
|
1353
|
+
m || (!d || d && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !V)) && St(!1);
|
|
1373
1354
|
},
|
|
1374
1355
|
paddingTop: "4",
|
|
1375
1356
|
paddingX: m ? "4" : "12",
|
|
@@ -1377,7 +1358,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1377
1358
|
overflow: m ? "auto" : "hidden",
|
|
1378
1359
|
maxHeight: "100vh",
|
|
1379
1360
|
position: "relative",
|
|
1380
|
-
top: m ? void 0 : `${
|
|
1361
|
+
top: m ? void 0 : `${j}px !important`,
|
|
1381
1362
|
onAnimationComplete: ee,
|
|
1382
1363
|
boxShadow: "none",
|
|
1383
1364
|
...m ? {
|
|
@@ -1393,7 +1374,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1393
1374
|
},
|
|
1394
1375
|
children: [
|
|
1395
1376
|
!d && !m ? null : /* @__PURE__ */ t.jsxs(
|
|
1396
|
-
|
|
1377
|
+
$t,
|
|
1397
1378
|
{
|
|
1398
1379
|
padding: "0",
|
|
1399
1380
|
flexDirection: d ? "column" : "row",
|
|
@@ -1409,7 +1390,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1409
1390
|
v ? /* @__PURE__ */ t.jsx(
|
|
1410
1391
|
Ee,
|
|
1411
1392
|
{
|
|
1412
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1393
|
+
icon: /* @__PURE__ */ t.jsx(An, {}),
|
|
1413
1394
|
onClick: () => {
|
|
1414
1395
|
x && x();
|
|
1415
1396
|
},
|
|
@@ -1421,7 +1402,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1421
1402
|
{
|
|
1422
1403
|
color: "tints.uiGrey",
|
|
1423
1404
|
fontSize: "xl",
|
|
1424
|
-
children:
|
|
1405
|
+
children: s
|
|
1425
1406
|
}
|
|
1426
1407
|
),
|
|
1427
1408
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1452,7 +1433,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1452
1433
|
),
|
|
1453
1434
|
/* @__PURE__ */ t.jsx(
|
|
1454
1435
|
In,
|
|
1455
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Ln, { as:
|
|
1436
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Ln, { as: Bt, color: "gray.500" }) }
|
|
1456
1437
|
)
|
|
1457
1438
|
] }
|
|
1458
1439
|
)
|
|
@@ -1460,13 +1441,13 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1460
1441
|
}
|
|
1461
1442
|
),
|
|
1462
1443
|
/* @__PURE__ */ t.jsx(
|
|
1463
|
-
|
|
1444
|
+
Mt,
|
|
1464
1445
|
{
|
|
1465
1446
|
paddingX: "0",
|
|
1466
1447
|
paddingBottom: m ? "6" : "4",
|
|
1467
|
-
"data-testid": `navbar-drawer-body-${
|
|
1448
|
+
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1468
1449
|
children: /* @__PURE__ */ t.jsxs(
|
|
1469
|
-
|
|
1450
|
+
pt.div,
|
|
1470
1451
|
{
|
|
1471
1452
|
...m ? {} : {
|
|
1472
1453
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1516,7 +1497,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1516
1497
|
width: m ? "100%" : d ? void 0 : "auto",
|
|
1517
1498
|
children: [
|
|
1518
1499
|
a ? /* @__PURE__ */ t.jsx(C, { children: a }) : null,
|
|
1519
|
-
|
|
1500
|
+
c && m ? /* @__PURE__ */ t.jsx(C, { children: c }) : null,
|
|
1520
1501
|
p ? /* @__PURE__ */ t.jsx(
|
|
1521
1502
|
C,
|
|
1522
1503
|
{
|
|
@@ -1547,33 +1528,33 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1547
1528
|
}, nr = ({
|
|
1548
1529
|
source: n,
|
|
1549
1530
|
onSearchCallback: o,
|
|
1550
|
-
isActive:
|
|
1531
|
+
isActive: s
|
|
1551
1532
|
}) => {
|
|
1552
|
-
const [a,
|
|
1533
|
+
const [a, c] = Z(""), [u, p] = Z([]), v = (d, g) => {
|
|
1553
1534
|
if (!d) return [];
|
|
1554
1535
|
const y = lt(d).split(/\s+/);
|
|
1555
1536
|
return g.filter((R) => {
|
|
1556
1537
|
const O = lt(R.label);
|
|
1557
|
-
if (y.some((
|
|
1558
|
-
const H = O.split(/\s+/), S = y.some((
|
|
1538
|
+
if (y.some((A) => _t(O, A))) return !0;
|
|
1539
|
+
const H = O.split(/\s+/), S = y.some((A) => H.some((B) => B.includes(A) || Ye(A, B))), V = typeof R.additionalContent == "string" && y.some((A) => {
|
|
1559
1540
|
const B = lt(R.additionalContent);
|
|
1560
|
-
return
|
|
1541
|
+
return _t(B, A) || B.split(/\s+/).some((M) => M.includes(A) || Ye(A, M));
|
|
1561
1542
|
});
|
|
1562
1543
|
return S || V;
|
|
1563
1544
|
}).sort((R, O) => R.label.localeCompare(O.label));
|
|
1564
1545
|
}, x = (d) => {
|
|
1565
|
-
if (
|
|
1546
|
+
if (c(d), !d) {
|
|
1566
1547
|
p([]);
|
|
1567
1548
|
return;
|
|
1568
1549
|
}
|
|
1569
1550
|
const g = v(d, n);
|
|
1570
1551
|
p(g), o && o(d, g);
|
|
1571
1552
|
}, f = () => {
|
|
1572
|
-
|
|
1553
|
+
c(""), p([]);
|
|
1573
1554
|
};
|
|
1574
1555
|
return ie(() => {
|
|
1575
|
-
|
|
1576
|
-
}, [
|
|
1556
|
+
s || (c(""), p([]));
|
|
1557
|
+
}, [s]), {
|
|
1577
1558
|
query: a,
|
|
1578
1559
|
results: u,
|
|
1579
1560
|
handleClose: f,
|
|
@@ -1581,20 +1562,20 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1581
1562
|
};
|
|
1582
1563
|
}, rr = (n) => {
|
|
1583
1564
|
const o = /* @__PURE__ */ new Set();
|
|
1584
|
-
return n.reduce((
|
|
1565
|
+
return n.reduce((s, a) => {
|
|
1585
1566
|
var u;
|
|
1586
|
-
const
|
|
1567
|
+
const c = ((u = a.sections) == null ? void 0 : u.reduce((p, v) => {
|
|
1587
1568
|
const x = v.links.filter((f) => o.has(f.label) || f.isSearchable !== !0 ? !1 : (o.add(f.label), !0));
|
|
1588
1569
|
return [...p, ...x];
|
|
1589
1570
|
}, [])) ?? [];
|
|
1590
|
-
return [...
|
|
1571
|
+
return [...s, ...c];
|
|
1591
1572
|
}, []);
|
|
1592
1573
|
}, mr = ({
|
|
1593
1574
|
categories: n = [],
|
|
1594
1575
|
onCartClick: o,
|
|
1595
|
-
mainCategoryLabel:
|
|
1576
|
+
mainCategoryLabel: s = "Menu",
|
|
1596
1577
|
logoLink: a = "https://www.everlywell.com",
|
|
1597
|
-
hasSearch:
|
|
1578
|
+
hasSearch: c = !0,
|
|
1598
1579
|
onSearchClick: u,
|
|
1599
1580
|
registrationUrl: p,
|
|
1600
1581
|
profileUrl: v = "https://secure.everlywell.com/login",
|
|
@@ -1602,7 +1583,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1602
1583
|
numberOfCartItems: f = 0,
|
|
1603
1584
|
linkComponent: d,
|
|
1604
1585
|
onSearchCallback: g,
|
|
1605
|
-
onLinkClick:
|
|
1586
|
+
onLinkClick: j,
|
|
1606
1587
|
onCategoryOpen: y,
|
|
1607
1588
|
onMobileMenuOpen: R,
|
|
1608
1589
|
onBackToMainMenu: O,
|
|
@@ -1610,18 +1591,18 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1610
1591
|
onProfileClick: H,
|
|
1611
1592
|
onLogoClick: S,
|
|
1612
1593
|
shopAllProductsUrl: V,
|
|
1613
|
-
onShopAllProductsClick:
|
|
1594
|
+
onShopAllProductsClick: A,
|
|
1614
1595
|
hideableButtons: B
|
|
1615
1596
|
}) => {
|
|
1616
1597
|
var de, ze, Ie;
|
|
1617
|
-
const [M, ee] = Z(!1), [le,
|
|
1598
|
+
const [M, ee] = Z(!1), [le, J] = Z(!1), [T, Y] = Z(null), [ae, z] = Z(!1), [L, te] = Z(!1), [ne, Ae] = Z(0), [$e, Re] = Z(!1), [_e, se] = Z(!1);
|
|
1618
1599
|
ie(() => {
|
|
1619
1600
|
const i = () => Re(!0), D = () => Re(!1);
|
|
1620
|
-
return window.addEventListener(
|
|
1601
|
+
return window.addEventListener(dt, i), window.addEventListener(ft, D), () => {
|
|
1621
1602
|
window.removeEventListener(
|
|
1622
|
-
|
|
1603
|
+
dt,
|
|
1623
1604
|
i
|
|
1624
|
-
), window.removeEventListener(
|
|
1605
|
+
), window.removeEventListener(ft, D);
|
|
1625
1606
|
};
|
|
1626
1607
|
}, []);
|
|
1627
1608
|
const Se = ye({
|
|
@@ -1657,7 +1638,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1657
1638
|
source: rr(n),
|
|
1658
1639
|
onSearchCallback: g,
|
|
1659
1640
|
isActive: le
|
|
1660
|
-
}), ve = fe.length > 0, ce = d ||
|
|
1641
|
+
}), ve = fe.length > 0, ce = d || K, Ze = ke(V, !!d), Me = Te && /* @__PURE__ */ t.jsxs(
|
|
1661
1642
|
k,
|
|
1662
1643
|
{ gap: ve ? "6" : 0, direction: "column", children: [
|
|
1663
1644
|
ve ? /* @__PURE__ */ t.jsx(W, { color: "tints.uiGrey", children: `${fe.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
@@ -1668,10 +1649,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1668
1649
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1669
1650
|
),
|
|
1670
1651
|
/* @__PURE__ */ t.jsx(
|
|
1671
|
-
|
|
1652
|
+
Lt,
|
|
1672
1653
|
{
|
|
1673
1654
|
as: ce,
|
|
1674
|
-
onClick:
|
|
1655
|
+
onClick: A,
|
|
1675
1656
|
_hover: { textDecoration: "none" },
|
|
1676
1657
|
width: ["100%", null, null, "auto"],
|
|
1677
1658
|
...Ze,
|
|
@@ -1703,9 +1684,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1703
1684
|
), me = () => {
|
|
1704
1685
|
ee(!1), Y(null);
|
|
1705
1686
|
}, oe = (i) => "href" in i, be = (i) => {
|
|
1706
|
-
oe(i) ?
|
|
1687
|
+
oe(i) ? j == null || j(i.label) : (se(M || !re), Y(i));
|
|
1707
1688
|
}, pe = (i) => {
|
|
1708
|
-
z(!0),
|
|
1689
|
+
z(!0), J(!1), Y(null), !oe(i) && (i.sections || i.spotlightCards) && (se(!1), Y(i));
|
|
1709
1690
|
}, Fe = () => {
|
|
1710
1691
|
z(!1);
|
|
1711
1692
|
};
|
|
@@ -1714,16 +1695,16 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1714
1695
|
te(D.detail.isHovering);
|
|
1715
1696
|
};
|
|
1716
1697
|
return window.addEventListener(
|
|
1717
|
-
|
|
1698
|
+
ut,
|
|
1718
1699
|
i
|
|
1719
1700
|
), () => {
|
|
1720
1701
|
window.removeEventListener(
|
|
1721
|
-
|
|
1702
|
+
ut,
|
|
1722
1703
|
i
|
|
1723
1704
|
);
|
|
1724
1705
|
};
|
|
1725
1706
|
}, []), ie(() => {
|
|
1726
|
-
!ae && !L && (Y(null),
|
|
1707
|
+
!ae && !L && (Y(null), J(!1), !M && re && se(!1));
|
|
1727
1708
|
}, [ae, L, M, re]), ie(() => {
|
|
1728
1709
|
let i = window.location.href;
|
|
1729
1710
|
const D = () => {
|
|
@@ -1734,7 +1715,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1734
1715
|
window.removeEventListener("popstate", D), clearInterval(I);
|
|
1735
1716
|
};
|
|
1736
1717
|
}, []);
|
|
1737
|
-
const
|
|
1718
|
+
const je = (i) => oe(i) && (!i.buttonProps || Object.keys(i.buttonProps).length === 0 || i.buttonProps === void 0), ue = re ? n : n == null ? void 0 : n.filter((i) => !B.includes(i.label)), Ke = ue == null ? void 0 : ue.map(
|
|
1738
1719
|
(i, D) => {
|
|
1739
1720
|
var I, F;
|
|
1740
1721
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1747,10 +1728,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1747
1728
|
},
|
|
1748
1729
|
onMouseLeave: Fe,
|
|
1749
1730
|
isSelected: (T == null ? void 0 : T.label) === i.label,
|
|
1750
|
-
as: oe(i) && ce ? ce :
|
|
1731
|
+
as: oe(i) && ce ? ce : K,
|
|
1751
1732
|
href: oe(i) ? i.href : void 0,
|
|
1752
|
-
onClick: oe(i) ? () =>
|
|
1753
|
-
...((I = i == null ? void 0 : i.context) == null ? void 0 : I.desktop) === "link" ||
|
|
1733
|
+
onClick: oe(i) ? () => j == null ? void 0 : j(i.label) : void 0,
|
|
1734
|
+
...((I = i == null ? void 0 : i.context) == null ? void 0 : I.desktop) === "link" || je(i) ? {
|
|
1754
1735
|
_hover: {
|
|
1755
1736
|
backgroundColor: "tints.lightCream",
|
|
1756
1737
|
textDecoration: "none",
|
|
@@ -1763,15 +1744,15 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1763
1744
|
`${i.label}-${D}`
|
|
1764
1745
|
);
|
|
1765
1746
|
}
|
|
1766
|
-
),
|
|
1747
|
+
), Xe = (de = n.filter(
|
|
1767
1748
|
(i) => {
|
|
1768
1749
|
var D;
|
|
1769
|
-
return ((D = i == null ? void 0 : i.context) == null ? void 0 : D.mobile) === "link" || (!oe(i) && i.isMobileTopLink !== !1 ||
|
|
1750
|
+
return ((D = i == null ? void 0 : i.context) == null ? void 0 : D.mobile) === "link" || (!oe(i) && i.isMobileTopLink !== !1 || je(i)) && (Ge && B.includes(i.label) || Ue);
|
|
1770
1751
|
}
|
|
1771
1752
|
)) == null ? void 0 : de.map((i, D) => {
|
|
1772
1753
|
var F;
|
|
1773
1754
|
const I = i;
|
|
1774
|
-
return
|
|
1755
|
+
return je(I) || ((F = I == null ? void 0 : I.context) == null ? void 0 : F.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1775
1756
|
C,
|
|
1776
1757
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1777
1758
|
Ne,
|
|
@@ -1811,7 +1792,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1811
1792
|
/* @__PURE__ */ t.jsx(
|
|
1812
1793
|
Ve,
|
|
1813
1794
|
{
|
|
1814
|
-
as:
|
|
1795
|
+
as: K,
|
|
1815
1796
|
href: v,
|
|
1816
1797
|
width: "100%",
|
|
1817
1798
|
backgroundColor: "tints.cream",
|
|
@@ -1820,7 +1801,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1820
1801
|
k,
|
|
1821
1802
|
{ gap: "2", children: [
|
|
1822
1803
|
"Log in to My Everly",
|
|
1823
|
-
/* @__PURE__ */ t.jsx(
|
|
1804
|
+
/* @__PURE__ */ t.jsx(q, { as: yt, size: 24 })
|
|
1824
1805
|
] }
|
|
1825
1806
|
)
|
|
1826
1807
|
},
|
|
@@ -1829,7 +1810,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1829
1810
|
/* @__PURE__ */ t.jsx(
|
|
1830
1811
|
Ve,
|
|
1831
1812
|
{
|
|
1832
|
-
as:
|
|
1813
|
+
as: K,
|
|
1833
1814
|
width: "100%",
|
|
1834
1815
|
href: p,
|
|
1835
1816
|
backgroundColor: "tints.cream",
|
|
@@ -1838,7 +1819,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1838
1819
|
k,
|
|
1839
1820
|
{ gap: "2", children: [
|
|
1840
1821
|
"Register kit",
|
|
1841
|
-
/* @__PURE__ */ t.jsx(
|
|
1822
|
+
/* @__PURE__ */ t.jsx(q, { as: $n, size: 24 })
|
|
1842
1823
|
] }
|
|
1843
1824
|
)
|
|
1844
1825
|
},
|
|
@@ -1851,9 +1832,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1851
1832
|
x,
|
|
1852
1833
|
De
|
|
1853
1834
|
] }
|
|
1854
|
-
),
|
|
1835
|
+
), Q = _e || M, He = T ? /* @__PURE__ */ t.jsx(
|
|
1855
1836
|
k,
|
|
1856
|
-
{ direction:
|
|
1837
|
+
{ direction: Q ? "column" : ["column", null, null, "row"], gap: "8", children: (ze = T == null ? void 0 : T.sections) == null ? void 0 : ze.map((i, D) => {
|
|
1857
1838
|
const I = [];
|
|
1858
1839
|
for (let F = 0; F < i.links.length; F += 3)
|
|
1859
1840
|
I.push(i.links.slice(F, F + 3));
|
|
@@ -1865,22 +1846,22 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1865
1846
|
{
|
|
1866
1847
|
fontSize: "md",
|
|
1867
1848
|
color: "tints.uiGrey",
|
|
1868
|
-
marginBottom:
|
|
1849
|
+
marginBottom: Q ? 0 : [0, null, null, 6],
|
|
1869
1850
|
children: i.title
|
|
1870
1851
|
}
|
|
1871
1852
|
),
|
|
1872
1853
|
/* @__PURE__ */ t.jsx(
|
|
1873
1854
|
k,
|
|
1874
1855
|
{
|
|
1875
|
-
flexDirection:
|
|
1876
|
-
gap:
|
|
1856
|
+
flexDirection: Q ? "column" : ["column", null, null, "row"],
|
|
1857
|
+
gap: Q ? void 0 : [null, null, null, 8],
|
|
1877
1858
|
children: I == null ? void 0 : I.map(
|
|
1878
1859
|
(F, Qe) => /* @__PURE__ */ t.jsx(
|
|
1879
1860
|
k,
|
|
1880
1861
|
{
|
|
1881
1862
|
flexDirection: "column",
|
|
1882
|
-
gap:
|
|
1883
|
-
marginLeft:
|
|
1863
|
+
gap: Q ? void 0 : [null, null, null, 5],
|
|
1864
|
+
marginLeft: Q ? void 0 : [null, null, null, -2],
|
|
1884
1865
|
children: F == null ? void 0 : F.map(
|
|
1885
1866
|
(he, qe) => /* @__PURE__ */ t.jsx(
|
|
1886
1867
|
Ne,
|
|
@@ -1889,8 +1870,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1889
1870
|
href: he.href,
|
|
1890
1871
|
additionalContent: he.additionalContent,
|
|
1891
1872
|
linkComponent: d,
|
|
1892
|
-
forceMobileStyle:
|
|
1893
|
-
onClick: () =>
|
|
1873
|
+
forceMobileStyle: Q,
|
|
1874
|
+
onClick: () => j == null ? void 0 : j(he.label)
|
|
1894
1875
|
},
|
|
1895
1876
|
`${he.label}-${qe}`
|
|
1896
1877
|
)
|
|
@@ -1910,7 +1891,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1910
1891
|
Zn,
|
|
1911
1892
|
{
|
|
1912
1893
|
...i,
|
|
1913
|
-
forceMobileStyle:
|
|
1894
|
+
forceMobileStyle: Q
|
|
1914
1895
|
},
|
|
1915
1896
|
`${i.title}-${D}`
|
|
1916
1897
|
)
|
|
@@ -1926,13 +1907,13 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1926
1907
|
zIndex: ["sticky", null, null, $e ? "modal" : "sticky"],
|
|
1927
1908
|
children: [
|
|
1928
1909
|
/* @__PURE__ */ t.jsx(
|
|
1929
|
-
|
|
1910
|
+
Kn,
|
|
1930
1911
|
{
|
|
1931
|
-
desktopTopButtons:
|
|
1912
|
+
desktopTopButtons: Ke,
|
|
1932
1913
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1933
1914
|
Ve,
|
|
1934
1915
|
{
|
|
1935
|
-
as:
|
|
1916
|
+
as: K,
|
|
1936
1917
|
height: "48px",
|
|
1937
1918
|
paddingInline: "16px !important",
|
|
1938
1919
|
href: p,
|
|
@@ -1942,11 +1923,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1942
1923
|
}
|
|
1943
1924
|
),
|
|
1944
1925
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1945
|
-
|
|
1946
|
-
{ href: v, "aria-label": "login", onClick: H, children: /* @__PURE__ */ t.jsx(Ee, { icon: /* @__PURE__ */ t.jsx(
|
|
1926
|
+
K,
|
|
1927
|
+
{ href: v, "aria-label": "login", onClick: H, children: /* @__PURE__ */ t.jsx(Ee, { icon: /* @__PURE__ */ t.jsx(q, { as: yt }), "aria-label": "Profile" }) }
|
|
1947
1928
|
),
|
|
1948
1929
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1949
|
-
|
|
1930
|
+
Xn,
|
|
1950
1931
|
{
|
|
1951
1932
|
"aria-label": "Cart",
|
|
1952
1933
|
count: f,
|
|
@@ -1954,16 +1935,16 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1954
1935
|
}
|
|
1955
1936
|
),
|
|
1956
1937
|
onSearchClick: () => {
|
|
1957
|
-
|
|
1938
|
+
J(!le), u == null || u();
|
|
1958
1939
|
},
|
|
1959
1940
|
onMenuClick: () => {
|
|
1960
1941
|
ee(!0), R == null || R();
|
|
1961
1942
|
},
|
|
1962
|
-
hasSearch:
|
|
1943
|
+
hasSearch: c,
|
|
1963
1944
|
logoLink: a,
|
|
1964
1945
|
linkComponent: d,
|
|
1965
1946
|
onLogoClick: S,
|
|
1966
|
-
setTopOffset:
|
|
1947
|
+
setTopOffset: Ae
|
|
1967
1948
|
}
|
|
1968
1949
|
),
|
|
1969
1950
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1974,8 +1955,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1974
1955
|
{
|
|
1975
1956
|
isOpen: M,
|
|
1976
1957
|
onClose: me,
|
|
1977
|
-
title:
|
|
1978
|
-
navDrawerLinks:
|
|
1958
|
+
title: s,
|
|
1959
|
+
navDrawerLinks: Xe,
|
|
1979
1960
|
bottomNavButtons: Je,
|
|
1980
1961
|
hasBackButton: !1,
|
|
1981
1962
|
topOffset: ne,
|
|
@@ -2006,7 +1987,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2006
1987
|
at,
|
|
2007
1988
|
{
|
|
2008
1989
|
isOpen: le,
|
|
2009
|
-
onClose: () =>
|
|
1990
|
+
onClose: () => J(!1),
|
|
2010
1991
|
title: "Search",
|
|
2011
1992
|
navDrawerLinks: Me,
|
|
2012
1993
|
onSearch: xe,
|
|
@@ -2020,9 +2001,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2020
2001
|
]
|
|
2021
2002
|
}
|
|
2022
2003
|
);
|
|
2023
|
-
},
|
|
2024
|
-
const a = o ||
|
|
2025
|
-
|
|
2004
|
+
}, Dt = ({ links: n, linkComponent: o, onLinkClick: s }) => {
|
|
2005
|
+
const a = o || K, c = (u) => {
|
|
2006
|
+
s && s(u);
|
|
2026
2007
|
};
|
|
2027
2008
|
return /* @__PURE__ */ t.jsx(
|
|
2028
2009
|
k,
|
|
@@ -2034,7 +2015,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2034
2015
|
color: "white",
|
|
2035
2016
|
size: "lg",
|
|
2036
2017
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
2037
|
-
onClick: () =>
|
|
2018
|
+
onClick: () => c(u.label),
|
|
2038
2019
|
...ke(u.href, !!o),
|
|
2039
2020
|
children: u.label
|
|
2040
2021
|
},
|
|
@@ -2042,11 +2023,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2042
2023
|
)
|
|
2043
2024
|
) }
|
|
2044
2025
|
);
|
|
2045
|
-
}, or = ({ title: n, links: o, isLast:
|
|
2046
|
-
const a =
|
|
2026
|
+
}, or = ({ title: n, links: o, isLast: s }) => {
|
|
2027
|
+
const a = s ? "transparent" : `${X.colors.viridian.lighter}20`;
|
|
2047
2028
|
return o ? /* @__PURE__ */ t.jsx(
|
|
2048
2029
|
un,
|
|
2049
|
-
{ borderColor: a, children: ({ isExpanded:
|
|
2030
|
+
{ borderColor: a, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
2050
2031
|
t.Fragment,
|
|
2051
2032
|
{ children: [
|
|
2052
2033
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2057,12 +2038,12 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2057
2038
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
2058
2039
|
),
|
|
2059
2040
|
/* @__PURE__ */ t.jsx(
|
|
2060
|
-
|
|
2041
|
+
q,
|
|
2061
2042
|
{
|
|
2062
2043
|
as: Mn,
|
|
2063
2044
|
size: "sm",
|
|
2064
2045
|
color: "viridian.lighter",
|
|
2065
|
-
transform:
|
|
2046
|
+
transform: c ? "rotate(-180deg)" : "rotate(0deg)",
|
|
2066
2047
|
transition: "transform 0.3s ease"
|
|
2067
2048
|
}
|
|
2068
2049
|
)
|
|
@@ -2087,7 +2068,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2087
2068
|
) : null, lr = ({
|
|
2088
2069
|
sections: n,
|
|
2089
2070
|
linkComponent: o,
|
|
2090
|
-
onLinkClick:
|
|
2071
|
+
onLinkClick: s
|
|
2091
2072
|
}) => ye({
|
|
2092
2073
|
base: !1,
|
|
2093
2074
|
tablet: !1,
|
|
@@ -2101,20 +2082,20 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2101
2082
|
children: /* @__PURE__ */ t.jsx(
|
|
2102
2083
|
k,
|
|
2103
2084
|
{ gap: 120, children: n.map(
|
|
2104
|
-
({ title:
|
|
2085
|
+
({ title: c, links: u }) => /* @__PURE__ */ t.jsx(
|
|
2105
2086
|
ir,
|
|
2106
2087
|
{
|
|
2107
|
-
title:
|
|
2088
|
+
title: c,
|
|
2108
2089
|
links: /* @__PURE__ */ t.jsx(
|
|
2109
|
-
|
|
2090
|
+
Dt,
|
|
2110
2091
|
{
|
|
2111
2092
|
links: u,
|
|
2112
2093
|
linkComponent: o,
|
|
2113
|
-
onLinkClick:
|
|
2094
|
+
onLinkClick: s
|
|
2114
2095
|
}
|
|
2115
2096
|
)
|
|
2116
2097
|
},
|
|
2117
|
-
|
|
2098
|
+
c
|
|
2118
2099
|
)
|
|
2119
2100
|
) }
|
|
2120
2101
|
)
|
|
@@ -2128,25 +2109,25 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2128
2109
|
display: "flex",
|
|
2129
2110
|
flexDirection: "column",
|
|
2130
2111
|
children: n.map(
|
|
2131
|
-
({ title:
|
|
2112
|
+
({ title: c, links: u }, p) => /* @__PURE__ */ t.jsx(
|
|
2132
2113
|
or,
|
|
2133
2114
|
{
|
|
2134
|
-
title:
|
|
2115
|
+
title: c,
|
|
2135
2116
|
links: /* @__PURE__ */ t.jsx(
|
|
2136
|
-
|
|
2117
|
+
Dt,
|
|
2137
2118
|
{
|
|
2138
2119
|
links: u,
|
|
2139
2120
|
linkComponent: o,
|
|
2140
|
-
onLinkClick:
|
|
2121
|
+
onLinkClick: s
|
|
2141
2122
|
}
|
|
2142
2123
|
),
|
|
2143
2124
|
isLast: p === n.length - 1
|
|
2144
2125
|
},
|
|
2145
|
-
|
|
2126
|
+
c
|
|
2146
2127
|
)
|
|
2147
2128
|
)
|
|
2148
2129
|
}
|
|
2149
|
-
),
|
|
2130
|
+
), It = {
|
|
2150
2131
|
instagram: Hn,
|
|
2151
2132
|
linkedin: Bn,
|
|
2152
2133
|
facebook: zn,
|
|
@@ -2155,17 +2136,17 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2155
2136
|
}, ar = ({
|
|
2156
2137
|
socialLinks: n,
|
|
2157
2138
|
onEmailSubmit: o,
|
|
2158
|
-
socialMediaLabel:
|
|
2139
|
+
socialMediaLabel: s,
|
|
2159
2140
|
newsletterLabel: a,
|
|
2160
|
-
onLinkClick:
|
|
2141
|
+
onLinkClick: c,
|
|
2161
2142
|
showNewsletter: u = !0
|
|
2162
2143
|
}) => {
|
|
2163
|
-
const [p, v] =
|
|
2144
|
+
const [p, v] = Pe.useState(""), x = () => {
|
|
2164
2145
|
p && o && (o(p), v(""));
|
|
2165
2146
|
}, f = (g) => {
|
|
2166
2147
|
g.key === "Enter" && x();
|
|
2167
2148
|
}, d = (g) => {
|
|
2168
|
-
|
|
2149
|
+
c && c(g);
|
|
2169
2150
|
};
|
|
2170
2151
|
return /* @__PURE__ */ t.jsxs(
|
|
2171
2152
|
C,
|
|
@@ -2200,7 +2181,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2200
2181
|
/* @__PURE__ */ t.jsx(
|
|
2201
2182
|
gn,
|
|
2202
2183
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2203
|
-
|
|
2184
|
+
q,
|
|
2204
2185
|
{
|
|
2205
2186
|
as: Fn,
|
|
2206
2187
|
color: "viridian.lighter",
|
|
@@ -2224,23 +2205,23 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2224
2205
|
{ children: [
|
|
2225
2206
|
/* @__PURE__ */ t.jsx(
|
|
2226
2207
|
W,
|
|
2227
|
-
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children:
|
|
2208
|
+
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children: s }
|
|
2228
2209
|
),
|
|
2229
2210
|
/* @__PURE__ */ t.jsx(
|
|
2230
2211
|
k,
|
|
2231
2212
|
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2232
2213
|
(g) => /* @__PURE__ */ t.jsx(
|
|
2233
|
-
|
|
2214
|
+
K,
|
|
2234
2215
|
{
|
|
2235
2216
|
href: g.href,
|
|
2236
2217
|
target: "_blank",
|
|
2237
2218
|
rel: "noopener noreferrer",
|
|
2238
2219
|
"aria-label": g.name,
|
|
2239
2220
|
onClick: () => d(g.name),
|
|
2240
|
-
children:
|
|
2241
|
-
|
|
2221
|
+
children: It[g.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2222
|
+
q,
|
|
2242
2223
|
{
|
|
2243
|
-
as:
|
|
2224
|
+
as: It[g.name.toLowerCase()],
|
|
2244
2225
|
color: "white",
|
|
2245
2226
|
width: ["48px", null, "24px", null],
|
|
2246
2227
|
height: ["48px", null, "24px", null]
|
|
@@ -2258,10 +2239,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2258
2239
|
}, sr = ({
|
|
2259
2240
|
links: n,
|
|
2260
2241
|
linkComponent: o,
|
|
2261
|
-
onLinkClick:
|
|
2242
|
+
onLinkClick: s
|
|
2262
2243
|
}) => {
|
|
2263
|
-
const a = o ||
|
|
2264
|
-
|
|
2244
|
+
const a = o || K, c = (p) => {
|
|
2245
|
+
s && s(p);
|
|
2265
2246
|
}, u = n == null ? void 0 : n.map(
|
|
2266
2247
|
(p) => /* @__PURE__ */ t.jsx(
|
|
2267
2248
|
W,
|
|
@@ -2270,7 +2251,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2270
2251
|
color: "viridian.lighter",
|
|
2271
2252
|
size: "sm",
|
|
2272
2253
|
_hover: { color: "white", textDecoration: "none" },
|
|
2273
|
-
onClick: () =>
|
|
2254
|
+
onClick: () => c(p.label),
|
|
2274
2255
|
...ke(p.href, !!o),
|
|
2275
2256
|
children: p.label
|
|
2276
2257
|
},
|
|
@@ -2305,12 +2286,12 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2305
2286
|
]
|
|
2306
2287
|
}
|
|
2307
2288
|
);
|
|
2308
|
-
}, br =
|
|
2289
|
+
}, br = Pe.forwardRef(({
|
|
2309
2290
|
navigationSections: n = [],
|
|
2310
2291
|
disclaimer: o,
|
|
2311
|
-
newsletterLabel:
|
|
2292
|
+
newsletterLabel: s,
|
|
2312
2293
|
socialMediaLabel: a,
|
|
2313
|
-
socialLinks:
|
|
2294
|
+
socialLinks: c,
|
|
2314
2295
|
complianceLinks: u,
|
|
2315
2296
|
linkComponent: p,
|
|
2316
2297
|
onEmailSubmit: v,
|
|
@@ -2318,9 +2299,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2318
2299
|
onLinkClick: f,
|
|
2319
2300
|
onSocialMediaClick: d,
|
|
2320
2301
|
showNewsletter: g = !0
|
|
2321
|
-
},
|
|
2302
|
+
}, j) => /* @__PURE__ */ t.jsx(
|
|
2322
2303
|
C,
|
|
2323
|
-
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref:
|
|
2304
|
+
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: j, children: /* @__PURE__ */ t.jsxs(
|
|
2324
2305
|
xn,
|
|
2325
2306
|
{ size: "fluid", children: [
|
|
2326
2307
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2349,8 +2330,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2349
2330
|
/* @__PURE__ */ t.jsx(
|
|
2350
2331
|
ar,
|
|
2351
2332
|
{
|
|
2352
|
-
socialLinks:
|
|
2353
|
-
newsletterLabel:
|
|
2333
|
+
socialLinks: c,
|
|
2334
|
+
newsletterLabel: s,
|
|
2354
2335
|
socialMediaLabel: a,
|
|
2355
2336
|
onEmailSubmit: v,
|
|
2356
2337
|
onLinkClick: d,
|
|
@@ -2391,7 +2372,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2391
2372
|
C,
|
|
2392
2373
|
{
|
|
2393
2374
|
borderTop: "1px solid",
|
|
2394
|
-
borderColor: `${
|
|
2375
|
+
borderColor: `${X.colors.viridian.lighter}20`,
|
|
2395
2376
|
marginTop: "10",
|
|
2396
2377
|
marginBottom: "8"
|
|
2397
2378
|
}
|
|
@@ -2408,36 +2389,36 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2408
2389
|
] }
|
|
2409
2390
|
) }
|
|
2410
2391
|
)), cr = (n) => n ? {
|
|
2411
|
-
Container:
|
|
2392
|
+
Container: At,
|
|
2412
2393
|
Overlay: Pt,
|
|
2413
|
-
Content:
|
|
2414
|
-
Header:
|
|
2415
|
-
Body:
|
|
2394
|
+
Content: Ot,
|
|
2395
|
+
Header: $t,
|
|
2396
|
+
Body: Mt,
|
|
2416
2397
|
Footer: vn,
|
|
2417
2398
|
CloseButton: mn
|
|
2418
2399
|
} : {
|
|
2419
2400
|
Container: bn,
|
|
2420
|
-
Overlay:
|
|
2421
|
-
Content:
|
|
2401
|
+
Overlay: jn,
|
|
2402
|
+
Content: wn,
|
|
2422
2403
|
Header: Cn,
|
|
2423
2404
|
Body: yn,
|
|
2424
2405
|
Footer: En,
|
|
2425
2406
|
CloseButton: kn
|
|
2426
|
-
},
|
|
2407
|
+
}, jr = ({
|
|
2427
2408
|
isOpen: n,
|
|
2428
2409
|
onClose: o,
|
|
2429
|
-
children:
|
|
2410
|
+
children: s,
|
|
2430
2411
|
header: a,
|
|
2431
|
-
footer:
|
|
2412
|
+
footer: c,
|
|
2432
2413
|
headerProps: u,
|
|
2433
2414
|
bodyProps: p,
|
|
2434
2415
|
footerProps: v,
|
|
2435
2416
|
contentProps: x,
|
|
2436
2417
|
...f
|
|
2437
2418
|
}) => {
|
|
2438
|
-
var V,
|
|
2439
|
-
const [d] = st(`(max-width: ${
|
|
2440
|
-
Container:
|
|
2419
|
+
var V, A, B, M, ee;
|
|
2420
|
+
const [d] = st(`(max-width: ${X.breakpoints.tablet})`), g = (ee = (M = (B = (A = (V = X) == null ? void 0 : V.components) == null ? void 0 : A.Modal) == null ? void 0 : B.baseStyle) == null ? void 0 : M.overlay) == null ? void 0 : ee.background, {
|
|
2421
|
+
Container: j,
|
|
2441
2422
|
Overlay: y,
|
|
2442
2423
|
Content: R,
|
|
2443
2424
|
Header: O,
|
|
@@ -2446,7 +2427,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2446
2427
|
CloseButton: S
|
|
2447
2428
|
} = cr(d);
|
|
2448
2429
|
return /* @__PURE__ */ t.jsxs(
|
|
2449
|
-
|
|
2430
|
+
j,
|
|
2450
2431
|
{
|
|
2451
2432
|
...f,
|
|
2452
2433
|
isOpen: n,
|
|
@@ -2496,7 +2477,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2496
2477
|
fontSize: "1rem"
|
|
2497
2478
|
}
|
|
2498
2479
|
},
|
|
2499
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2480
|
+
children: /* @__PURE__ */ t.jsx(q, { as: zt, weight: "light" })
|
|
2500
2481
|
}
|
|
2501
2482
|
)
|
|
2502
2483
|
]
|
|
@@ -2508,10 +2489,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2508
2489
|
color: "tints.darkGrey",
|
|
2509
2490
|
paddingInline: 4,
|
|
2510
2491
|
...p,
|
|
2511
|
-
children:
|
|
2492
|
+
children: s
|
|
2512
2493
|
}
|
|
2513
2494
|
),
|
|
2514
|
-
/* @__PURE__ */ t.jsx(H, { paddingInline: 4, ...v, children:
|
|
2495
|
+
/* @__PURE__ */ t.jsx(H, { paddingInline: 4, ...v, children: c })
|
|
2515
2496
|
]
|
|
2516
2497
|
}
|
|
2517
2498
|
)
|
|
@@ -2520,9 +2501,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2520
2501
|
);
|
|
2521
2502
|
};
|
|
2522
2503
|
export {
|
|
2523
|
-
|
|
2504
|
+
Xn as BasketButton,
|
|
2524
2505
|
xr as CategoryLabel,
|
|
2525
|
-
|
|
2506
|
+
jr as DrawerModal,
|
|
2526
2507
|
br as Footer,
|
|
2527
2508
|
Ve as NavButton,
|
|
2528
2509
|
vr as NavSkeleton,
|
|
@@ -2532,5 +2513,5 @@ export {
|
|
|
2532
2513
|
Zn as SpotlightCard,
|
|
2533
2514
|
gr as Stepper,
|
|
2534
2515
|
Ee as TopNavIconButton,
|
|
2535
|
-
|
|
2516
|
+
Kn as TopNavigation
|
|
2536
2517
|
};
|