@everlywell/consumer-ui 1.26.0 → 1.27.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 +7 -7
- package/index.mjs +229 -225
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -18,18 +18,18 @@ function on() {
|
|
|
18
18
|
if (st)
|
|
19
19
|
return pe;
|
|
20
20
|
st = 1;
|
|
21
|
-
var l = Ye,
|
|
21
|
+
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, b = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function m(R, u, j) {
|
|
23
|
-
var
|
|
23
|
+
var o, p = {}, w = null, c = null;
|
|
24
24
|
j !== void 0 && (w = "" + j), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (c = u.ref);
|
|
25
|
-
for (
|
|
26
|
-
d.call(u,
|
|
25
|
+
for (o in u)
|
|
26
|
+
d.call(u, o) && !g.hasOwnProperty(o) && (p[o] = u[o]);
|
|
27
27
|
if (R && R.defaultProps)
|
|
28
|
-
for (
|
|
29
|
-
p[
|
|
30
|
-
return { $$typeof:
|
|
28
|
+
for (o in u = R.defaultProps, u)
|
|
29
|
+
p[o] === void 0 && (p[o] = u[o]);
|
|
30
|
+
return { $$typeof: a, type: R, key: w, ref: c, props: p, _owner: b.current };
|
|
31
31
|
}
|
|
32
|
-
return pe.Fragment =
|
|
32
|
+
return pe.Fragment = h, pe.jsx = m, pe.jsxs = m, pe;
|
|
33
33
|
}
|
|
34
34
|
var he = {};
|
|
35
35
|
/**
|
|
@@ -44,7 +44,7 @@ var he = {};
|
|
|
44
44
|
var ut;
|
|
45
45
|
function sn() {
|
|
46
46
|
return ut || (ut = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var l = Ye,
|
|
47
|
+
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
|
|
48
48
|
function W(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
@@ -61,29 +61,29 @@ function sn() {
|
|
|
61
61
|
}
|
|
62
62
|
function N(e, n, r) {
|
|
63
63
|
{
|
|
64
|
-
var i = H.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
66
|
-
var C = r.map(function(
|
|
67
|
-
return String(
|
|
64
|
+
var i = H.ReactDebugCurrentFrame, x = i.getStackAddendum();
|
|
65
|
+
x !== "" && (n += "%s", r = r.concat([x]));
|
|
66
|
+
var C = r.map(function(v) {
|
|
67
|
+
return String(v);
|
|
68
68
|
});
|
|
69
69
|
C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var ve = !1,
|
|
72
|
+
var ve = !1, xe = !1, J = !1, E = !1, Y = !1, q;
|
|
73
73
|
q = Symbol.for("react.module.reference");
|
|
74
74
|
function ke(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === g || Y || e === b || e === j || e === o || E || e === c || ve || xe || J || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === p || e.$$typeof === m || e.$$typeof === R || e.$$typeof === u || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
79
|
e.$$typeof === q || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ge(e, n, r) {
|
|
82
82
|
var i = e.displayName;
|
|
83
83
|
if (i)
|
|
84
84
|
return i;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var x = n.displayName || n.name || "";
|
|
86
|
+
return x !== "" ? r + "(" + x + ")" : r;
|
|
87
87
|
}
|
|
88
88
|
function ae(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
@@ -98,15 +98,15 @@ function sn() {
|
|
|
98
98
|
switch (e) {
|
|
99
99
|
case d:
|
|
100
100
|
return "Fragment";
|
|
101
|
-
case
|
|
101
|
+
case h:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case g:
|
|
104
104
|
return "Profiler";
|
|
105
105
|
case b:
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case j:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case o:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
@@ -118,14 +118,14 @@ function sn() {
|
|
|
118
118
|
var r = e;
|
|
119
119
|
return ae(r._context) + ".Provider";
|
|
120
120
|
case u:
|
|
121
|
-
return
|
|
121
|
+
return ge(e, e.render, "ForwardRef");
|
|
122
122
|
case p:
|
|
123
123
|
var i = e.displayName || null;
|
|
124
124
|
return i !== null ? i : $(e.type) || "Memo";
|
|
125
125
|
case w: {
|
|
126
|
-
var
|
|
126
|
+
var x = e, C = x._payload, v = x._init;
|
|
127
127
|
try {
|
|
128
|
-
return $(
|
|
128
|
+
return $(v(C));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -201,8 +201,8 @@ function sn() {
|
|
|
201
201
|
if (ue === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var i =
|
|
204
|
+
} catch (x) {
|
|
205
|
+
var i = x.stack.trim().match(/\n( *(at )?)/);
|
|
206
206
|
ue = i && i[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
@@ -224,33 +224,33 @@ function sn() {
|
|
|
224
224
|
}
|
|
225
225
|
var i;
|
|
226
226
|
ce = !0;
|
|
227
|
-
var
|
|
227
|
+
var x = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var C;
|
|
230
230
|
C = se.current, se.current = null, Le();
|
|
231
231
|
try {
|
|
232
232
|
if (n) {
|
|
233
|
-
var
|
|
233
|
+
var v = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
236
|
-
if (Object.defineProperty(
|
|
236
|
+
if (Object.defineProperty(v.prototype, "props", {
|
|
237
237
|
set: function() {
|
|
238
238
|
throw Error();
|
|
239
239
|
}
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(v, []);
|
|
243
243
|
} catch (F) {
|
|
244
244
|
i = F;
|
|
245
245
|
}
|
|
246
|
-
Reflect.construct(e, [],
|
|
246
|
+
Reflect.construct(e, [], v);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
|
-
|
|
249
|
+
v.call();
|
|
250
250
|
} catch (F) {
|
|
251
251
|
i = F;
|
|
252
252
|
}
|
|
253
|
-
e.call(
|
|
253
|
+
e.call(v.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
@@ -280,7 +280,7 @@ function sn() {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
ce = !1, se.current = C, Oe(), Error.prepareStackTrace =
|
|
283
|
+
ce = !1, se.current = C, Oe(), Error.prepareStackTrace = x;
|
|
284
284
|
}
|
|
285
285
|
var ne = e ? e.displayName || e.name : "", K = ne ? Q(ne) : "";
|
|
286
286
|
return typeof e == "function" && ee.set(e, K), K;
|
|
@@ -288,7 +288,7 @@ function sn() {
|
|
|
288
288
|
function Re(e, n, r) {
|
|
289
289
|
return de(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function s(e) {
|
|
292
292
|
var n = e.prototype;
|
|
293
293
|
return !!(n && n.isReactComponent);
|
|
294
294
|
}
|
|
@@ -296,13 +296,13 @@ function sn() {
|
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return de(e,
|
|
299
|
+
return de(e, s(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
301
|
return Q(e);
|
|
302
302
|
switch (e) {
|
|
303
303
|
case j:
|
|
304
304
|
return Q("Suspense");
|
|
305
|
-
case
|
|
305
|
+
case o:
|
|
306
306
|
return Q("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
@@ -312,9 +312,9 @@ function sn() {
|
|
|
312
312
|
case p:
|
|
313
313
|
return O(e.type, n, r);
|
|
314
314
|
case w: {
|
|
315
|
-
var i = e,
|
|
315
|
+
var i = e, x = i._payload, C = i._init;
|
|
316
316
|
try {
|
|
317
|
-
return O(C(
|
|
317
|
+
return O(C(x), n, r);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -329,30 +329,30 @@ function sn() {
|
|
|
329
329
|
} else
|
|
330
330
|
_e.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function vt(e, n, r, i,
|
|
332
|
+
function vt(e, n, r, i, x) {
|
|
333
333
|
{
|
|
334
334
|
var C = Function.call.bind(k);
|
|
335
|
-
for (var
|
|
336
|
-
if (C(e,
|
|
335
|
+
for (var v in e)
|
|
336
|
+
if (C(e, v)) {
|
|
337
337
|
var f = void 0;
|
|
338
338
|
try {
|
|
339
|
-
if (typeof e[
|
|
340
|
-
var I = Error((i || "React class") + ": " + r + " type `" +
|
|
339
|
+
if (typeof e[v] != "function") {
|
|
340
|
+
var I = Error((i || "React class") + ": " + r + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
341
|
throw I.name = "Invariant Violation", I;
|
|
342
342
|
}
|
|
343
|
-
f = e[
|
|
343
|
+
f = e[v](n, v, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (_) {
|
|
345
345
|
f = _;
|
|
346
346
|
}
|
|
347
|
-
f && !(f instanceof Error) && (B(
|
|
347
|
+
f && !(f instanceof Error) && (B(x), 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).", i || "React class", r, v, typeof f), B(null)), f instanceof Error && !(f.message in D) && (D[f.message] = !0, B(x), S("Failed %s type: %s", r, f.message), B(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var xt = Array.isArray;
|
|
352
352
|
function Pe(e) {
|
|
353
|
-
return
|
|
353
|
+
return xt(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function gt(e) {
|
|
356
356
|
{
|
|
357
357
|
var n = typeof Symbol == "function" && Symbol.toStringTag, r = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
358
|
return r;
|
|
@@ -370,7 +370,7 @@ function sn() {
|
|
|
370
370
|
}
|
|
371
371
|
function Ze(e) {
|
|
372
372
|
if (bt(e))
|
|
373
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
373
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(e)), Ge(e);
|
|
374
374
|
}
|
|
375
375
|
var fe = H.ReactCurrentOwner, mt = {
|
|
376
376
|
key: !0,
|
|
@@ -423,15 +423,15 @@ function sn() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var Rt = function(e, n, r, i,
|
|
426
|
+
var Rt = function(e, n, r, i, x, C, v) {
|
|
427
427
|
var f = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
|
-
$$typeof:
|
|
429
|
+
$$typeof: a,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: e,
|
|
432
432
|
key: n,
|
|
433
433
|
ref: r,
|
|
434
|
-
props:
|
|
434
|
+
props: v,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
436
|
_owner: C
|
|
437
437
|
};
|
|
@@ -449,25 +449,25 @@ function sn() {
|
|
|
449
449
|
configurable: !1,
|
|
450
450
|
enumerable: !1,
|
|
451
451
|
writable: !1,
|
|
452
|
-
value:
|
|
452
|
+
value: x
|
|
453
453
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
454
454
|
};
|
|
455
|
-
function _t(e, n, r, i,
|
|
455
|
+
function _t(e, n, r, i, x) {
|
|
456
456
|
{
|
|
457
|
-
var C,
|
|
458
|
-
r !== void 0 && (Ze(r), f = "" + r), jt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, wt(n,
|
|
457
|
+
var C, v = {}, f = null, I = null;
|
|
458
|
+
r !== void 0 && (Ze(r), f = "" + r), jt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, wt(n, x));
|
|
459
459
|
for (C in n)
|
|
460
|
-
k.call(n, C) && !mt.hasOwnProperty(C) && (
|
|
460
|
+
k.call(n, C) && !mt.hasOwnProperty(C) && (v[C] = n[C]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
462
462
|
var _ = e.defaultProps;
|
|
463
463
|
for (C in _)
|
|
464
|
-
|
|
464
|
+
v[C] === void 0 && (v[C] = _[C]);
|
|
465
465
|
}
|
|
466
466
|
if (f || I) {
|
|
467
467
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
-
f && yt(
|
|
468
|
+
f && yt(v, T), I && Et(v, T);
|
|
469
469
|
}
|
|
470
|
-
return Rt(e, f, I,
|
|
470
|
+
return Rt(e, f, I, x, i, fe.current, v);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var Ie = H.ReactCurrentOwner, Je = H.ReactDebugCurrentFrame;
|
|
@@ -481,7 +481,7 @@ function sn() {
|
|
|
481
481
|
var Fe;
|
|
482
482
|
Fe = !1;
|
|
483
483
|
function Ae(e) {
|
|
484
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
484
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
485
485
|
}
|
|
486
486
|
function qe() {
|
|
487
487
|
{
|
|
@@ -544,10 +544,10 @@ Check the top-level render call using <` + r + ">.");
|
|
|
544
544
|
else if (Ae(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
for (var C =
|
|
550
|
-
Ae(
|
|
547
|
+
var x = W(e);
|
|
548
|
+
if (typeof x == "function" && x !== e.entries)
|
|
549
|
+
for (var C = x.call(e), v; !(v = C.next()).done; )
|
|
550
|
+
Ae(v.value) && et(v.value, n);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -570,8 +570,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
570
570
|
vt(r, e.props, "prop", i, e);
|
|
571
571
|
} else if (n.PropTypes !== void 0 && !Fe) {
|
|
572
572
|
Fe = !0;
|
|
573
|
-
var
|
|
574
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
573
|
+
var x = $(n);
|
|
574
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
575
575
|
}
|
|
576
576
|
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
@@ -589,21 +589,21 @@ Check the top-level render call using <` + r + ">.");
|
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var nt = {};
|
|
592
|
-
function rt(e, n, r, i,
|
|
592
|
+
function rt(e, n, r, i, x, C) {
|
|
593
593
|
{
|
|
594
|
-
var
|
|
595
|
-
if (!
|
|
594
|
+
var v = ke(e);
|
|
595
|
+
if (!v) {
|
|
596
596
|
var f = "";
|
|
597
597
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var I = St(
|
|
598
|
+
var I = St(x);
|
|
599
599
|
I ? f += I : f += qe();
|
|
600
600
|
var _;
|
|
601
|
-
e === null ? _ = "null" : Pe(e) ? _ = "array" : e !== void 0 && e.$$typeof ===
|
|
601
|
+
e === null ? _ = "null" : Pe(e) ? _ = "array" : e !== void 0 && e.$$typeof === a ? (_ = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, f);
|
|
602
602
|
}
|
|
603
|
-
var T = _t(e, n, r,
|
|
603
|
+
var T = _t(e, n, r, x, C);
|
|
604
604
|
if (T == null)
|
|
605
605
|
return T;
|
|
606
|
-
if (
|
|
606
|
+
if (v) {
|
|
607
607
|
var M = n.children;
|
|
608
608
|
if (M !== void 0)
|
|
609
609
|
if (i)
|
|
@@ -647,45 +647,45 @@ process.env.NODE_ENV === "production" ? Ve.exports = on() : Ve.exports = sn();
|
|
|
647
647
|
var t = Ve.exports;
|
|
648
648
|
const We = 60, ct = 6, un = (l) => {
|
|
649
649
|
const {
|
|
650
|
-
activeStepIndex:
|
|
651
|
-
hideIndicators:
|
|
650
|
+
activeStepIndex: a,
|
|
651
|
+
hideIndicators: h = !1,
|
|
652
652
|
steps: d,
|
|
653
653
|
stepperTheme: b = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
|
-
} = l, { activeStep:
|
|
658
|
-
index:
|
|
657
|
+
} = l, { activeStep: g, setActiveStep: m } = Ht({
|
|
658
|
+
index: a,
|
|
659
659
|
count: d.length
|
|
660
660
|
});
|
|
661
661
|
return le(() => {
|
|
662
|
-
m(
|
|
663
|
-
}, [
|
|
662
|
+
m(a);
|
|
663
|
+
}, [a, m]), /* @__PURE__ */ t.jsx(
|
|
664
664
|
y,
|
|
665
665
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
666
666
|
$t,
|
|
667
667
|
{
|
|
668
668
|
role: "progressbar",
|
|
669
|
-
index:
|
|
669
|
+
index: g,
|
|
670
670
|
width: "100%",
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
673
|
children: d.map((R, u) => {
|
|
674
|
-
const j =
|
|
674
|
+
const j = g === u, o = u === 0, p = u === d.length - 1, w = g > u;
|
|
675
675
|
let c = `${We}px`;
|
|
676
676
|
const P = `calc(100% - ((${We * (d.length - 1)}px) - (${d.length - 1} * ${ct * 2}px)))`;
|
|
677
|
-
return j ? c = P : (
|
|
677
|
+
return j ? c = P : (o || p) && (c = `${We - ct}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
y,
|
|
679
679
|
{
|
|
680
680
|
width: c,
|
|
681
681
|
opacity: w || j ? 1 : 0.2,
|
|
682
682
|
paddingRight: p ? "0" : "6px",
|
|
683
|
-
paddingLeft:
|
|
683
|
+
paddingLeft: o ? "0" : "6px",
|
|
684
684
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
685
685
|
children: /* @__PURE__ */ t.jsx(
|
|
686
686
|
y,
|
|
687
687
|
{
|
|
688
|
-
paddingTop:
|
|
688
|
+
paddingTop: h ? 2 : 5,
|
|
689
689
|
position: "relative",
|
|
690
690
|
width: "100%",
|
|
691
691
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -695,7 +695,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
695
695
|
position: "absolute",
|
|
696
696
|
top: "0",
|
|
697
697
|
backgroundColor: w ? b.light : b.base,
|
|
698
|
-
height:
|
|
698
|
+
height: h ? "4px" : "8px",
|
|
699
699
|
borderRadius: "4",
|
|
700
700
|
left: "0"
|
|
701
701
|
}
|
|
@@ -709,33 +709,33 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
709
709
|
}
|
|
710
710
|
) }
|
|
711
711
|
);
|
|
712
|
-
},
|
|
712
|
+
}, wn = Ye.memo(un), yn = ({
|
|
713
713
|
children: l,
|
|
714
|
-
...
|
|
714
|
+
...a
|
|
715
715
|
}) => /* @__PURE__ */ t.jsx(
|
|
716
716
|
Kt,
|
|
717
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...
|
|
718
|
-
), Ue = (l,
|
|
719
|
-
const
|
|
720
|
-
return
|
|
717
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...a, children: l }
|
|
718
|
+
), Ue = (l, a) => {
|
|
719
|
+
const h = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
|
|
720
|
+
return a && !h ? {
|
|
721
721
|
to: l
|
|
722
722
|
} : {
|
|
723
723
|
href: l
|
|
724
724
|
};
|
|
725
725
|
}, Me = pt(
|
|
726
|
-
(l,
|
|
726
|
+
(l, a) => {
|
|
727
727
|
const {
|
|
728
|
-
label:
|
|
728
|
+
label: h,
|
|
729
729
|
additionalContent: d,
|
|
730
730
|
mainTextFontSize: b,
|
|
731
|
-
linkComponent:
|
|
731
|
+
linkComponent: g,
|
|
732
732
|
href: m,
|
|
733
733
|
...R
|
|
734
|
-
} = l, u =
|
|
734
|
+
} = l, u = g || X, j = Ue(m, !!g);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
736
|
y,
|
|
737
737
|
{
|
|
738
|
-
ref:
|
|
738
|
+
ref: a,
|
|
739
739
|
as: u,
|
|
740
740
|
display: "flex",
|
|
741
741
|
alignItems: "center",
|
|
@@ -771,7 +771,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
771
771
|
{
|
|
772
772
|
fontSize: [b || "xl", null, null, "lg"],
|
|
773
773
|
fontWeight: "medium",
|
|
774
|
-
children:
|
|
774
|
+
children: h
|
|
775
775
|
}
|
|
776
776
|
),
|
|
777
777
|
d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
|
|
@@ -807,14 +807,14 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
809
|
), Te = pt(
|
|
810
|
-
(l,
|
|
811
|
-
const { children:
|
|
810
|
+
(l, a) => {
|
|
811
|
+
const { children: h, isSelected: d, ...b } = l, g = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
813
|
Wt,
|
|
814
814
|
{
|
|
815
|
-
ref:
|
|
815
|
+
ref: a,
|
|
816
816
|
borderRadius: "full",
|
|
817
|
-
backgroundColor:
|
|
817
|
+
backgroundColor: g,
|
|
818
818
|
fontSize: "lg !important",
|
|
819
819
|
fontWeight: "normal",
|
|
820
820
|
color: "tints.black",
|
|
@@ -827,27 +827,27 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
827
827
|
left: [null, null, null, -2]
|
|
828
828
|
},
|
|
829
829
|
_hover: {
|
|
830
|
-
backgroundColor:
|
|
830
|
+
backgroundColor: g,
|
|
831
831
|
textDecoration: "none",
|
|
832
832
|
filter: "brightness(0.95)"
|
|
833
833
|
},
|
|
834
834
|
...b,
|
|
835
|
-
children:
|
|
835
|
+
children: h
|
|
836
836
|
}
|
|
837
837
|
);
|
|
838
838
|
}
|
|
839
839
|
), cn = ({
|
|
840
840
|
title: l,
|
|
841
|
-
description:
|
|
842
|
-
imageSrc:
|
|
841
|
+
description: a,
|
|
842
|
+
imageSrc: h,
|
|
843
843
|
imageElement: d,
|
|
844
844
|
button: b,
|
|
845
|
-
backgroundColor:
|
|
845
|
+
backgroundColor: g = "viridian.wash",
|
|
846
846
|
onClick: m,
|
|
847
847
|
href: R,
|
|
848
848
|
linkComponent: u
|
|
849
849
|
}) => {
|
|
850
|
-
const j = "80px",
|
|
850
|
+
const j = "80px", o = "200px", p = "272px", w = u || X, c = Ue(R, !!u);
|
|
851
851
|
return /* @__PURE__ */ t.jsxs(
|
|
852
852
|
L,
|
|
853
853
|
{
|
|
@@ -856,7 +856,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
856
856
|
borderRadius: "xl",
|
|
857
857
|
overflow: "hidden",
|
|
858
858
|
height: [j, null, null, p],
|
|
859
|
-
backgroundColor:
|
|
859
|
+
backgroundColor: g,
|
|
860
860
|
onClick: m,
|
|
861
861
|
"data-testid": "spotlight-card",
|
|
862
862
|
position: "relative",
|
|
@@ -879,12 +879,12 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
879
879
|
width: ["72px", null, null, "100%"],
|
|
880
880
|
height: ["100%"],
|
|
881
881
|
flex: [null, null, null, "1"],
|
|
882
|
-
children:
|
|
882
|
+
children: h ? /* @__PURE__ */ t.jsx(
|
|
883
883
|
Mt,
|
|
884
884
|
{
|
|
885
|
-
src:
|
|
885
|
+
src: h,
|
|
886
886
|
objectFit: "cover",
|
|
887
|
-
height: [j, null, null,
|
|
887
|
+
height: [j, null, null, o],
|
|
888
888
|
width: "100%",
|
|
889
889
|
alt: "",
|
|
890
890
|
"data-testid": "spotlight-card-image"
|
|
@@ -892,7 +892,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
892
892
|
) : /* @__PURE__ */ t.jsx(
|
|
893
893
|
y,
|
|
894
894
|
{
|
|
895
|
-
height: [j, null, null,
|
|
895
|
+
height: [j, null, null, o],
|
|
896
896
|
overflow: "hidden",
|
|
897
897
|
children: d
|
|
898
898
|
}
|
|
@@ -910,7 +910,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
910
910
|
width: "100%",
|
|
911
911
|
position: [null, null, null, "absolute"],
|
|
912
912
|
bottom: [null, null, null, "0"],
|
|
913
|
-
backgroundColor: [null, null, null, `${
|
|
913
|
+
backgroundColor: [null, null, null, `${g}CC`],
|
|
914
914
|
backdropFilter: [null, null, null, "blur(8px)"],
|
|
915
915
|
children: [
|
|
916
916
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -922,7 +922,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
922
922
|
),
|
|
923
923
|
/* @__PURE__ */ t.jsx(
|
|
924
924
|
U,
|
|
925
|
-
{ fontSize: "sm", color: "tints.black", children:
|
|
925
|
+
{ fontSize: "sm", color: "tints.black", children: a }
|
|
926
926
|
)
|
|
927
927
|
] }
|
|
928
928
|
),
|
|
@@ -980,16 +980,16 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
980
980
|
}
|
|
981
981
|
), fn = ({
|
|
982
982
|
desktopTopButtons: l,
|
|
983
|
-
kitRegistrationElement:
|
|
984
|
-
profileElement:
|
|
983
|
+
kitRegistrationElement: a,
|
|
984
|
+
profileElement: h,
|
|
985
985
|
cartElement: d,
|
|
986
986
|
onSearchClick: b,
|
|
987
|
-
onMenuClick:
|
|
987
|
+
onMenuClick: g,
|
|
988
988
|
hasSearch: m = !1,
|
|
989
989
|
logoLink: R = "https://www.everlywell.com",
|
|
990
990
|
onHeightChange: u,
|
|
991
991
|
linkComponent: j,
|
|
992
|
-
onLogoClick:
|
|
992
|
+
onLogoClick: o
|
|
993
993
|
}) => {
|
|
994
994
|
const p = Zt(null), [w, c] = V(0), P = 100, A = ze(() => {
|
|
995
995
|
if (p.current && u) {
|
|
@@ -1030,7 +1030,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1030
1030
|
y,
|
|
1031
1031
|
{
|
|
1032
1032
|
"aria-label": "Go to homepage",
|
|
1033
|
-
onClick:
|
|
1033
|
+
onClick: o,
|
|
1034
1034
|
as: j || X,
|
|
1035
1035
|
...Ue(R, !!j),
|
|
1036
1036
|
children: /* @__PURE__ */ t.jsx(dn, {})
|
|
@@ -1047,7 +1047,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1047
1047
|
{ alignItems: "center", gap: "2", children: [
|
|
1048
1048
|
/* @__PURE__ */ t.jsx(
|
|
1049
1049
|
y,
|
|
1050
|
-
{ display: ["none", null, null, "block"], children:
|
|
1050
|
+
{ display: ["none", null, null, "block"], children: a }
|
|
1051
1051
|
),
|
|
1052
1052
|
m ? /* @__PURE__ */ t.jsx(
|
|
1053
1053
|
ie,
|
|
@@ -1066,11 +1066,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1066
1066
|
icon: /* @__PURE__ */ t.jsx(tn, {}),
|
|
1067
1067
|
"aria-label": "menu",
|
|
1068
1068
|
"data-testid": "menu-button",
|
|
1069
|
-
onClick:
|
|
1069
|
+
onClick: g
|
|
1070
1070
|
}
|
|
1071
1071
|
) }
|
|
1072
1072
|
),
|
|
1073
|
-
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children:
|
|
1073
|
+
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: h })
|
|
1074
1074
|
] }
|
|
1075
1075
|
)
|
|
1076
1076
|
] }
|
|
@@ -1079,11 +1079,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1079
1079
|
);
|
|
1080
1080
|
}, pn = ({
|
|
1081
1081
|
count: l = 0,
|
|
1082
|
-
...
|
|
1082
|
+
...a
|
|
1083
1083
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1084
1084
|
y,
|
|
1085
1085
|
{ position: "relative", display: "inline-block", children: [
|
|
1086
|
-
/* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(nn, {}), ...
|
|
1086
|
+
/* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(nn, {}), ...a }),
|
|
1087
1087
|
l > 0 && /* @__PURE__ */ t.jsx(
|
|
1088
1088
|
y,
|
|
1089
1089
|
{
|
|
@@ -1106,9 +1106,9 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
)
|
|
1108
1108
|
] }
|
|
1109
|
-
),
|
|
1109
|
+
), En = ({
|
|
1110
1110
|
numLinks: l = 5,
|
|
1111
|
-
showPromoButton:
|
|
1111
|
+
showPromoButton: a = !0
|
|
1112
1112
|
}) => /* @__PURE__ */ t.jsx(
|
|
1113
1113
|
Vt,
|
|
1114
1114
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
@@ -1121,9 +1121,9 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1121
1121
|
lt,
|
|
1122
1122
|
{ spacing: 8, marginLeft: 12, children: [
|
|
1123
1123
|
Array.from({ length: l }).map(
|
|
1124
|
-
(
|
|
1124
|
+
(h, d) => /* @__PURE__ */ t.jsx($e, { width: "90px", height: "48px" }, d)
|
|
1125
1125
|
),
|
|
1126
|
-
|
|
1126
|
+
a && /* @__PURE__ */ t.jsx($e, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1127
1127
|
] }
|
|
1128
1128
|
),
|
|
1129
1129
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1142,12 +1142,12 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1142
1142
|
] }
|
|
1143
1143
|
) }
|
|
1144
1144
|
) }
|
|
1145
|
-
), hn = (l,
|
|
1146
|
-
let
|
|
1145
|
+
), hn = (l, a) => {
|
|
1146
|
+
let h;
|
|
1147
1147
|
return (...d) => {
|
|
1148
|
-
|
|
1148
|
+
h && clearTimeout(h), h = setTimeout(() => {
|
|
1149
1149
|
l(...d);
|
|
1150
|
-
},
|
|
1150
|
+
}, a);
|
|
1151
1151
|
};
|
|
1152
1152
|
}, Ne = "nav-drawer-hover", dt = (l) => {
|
|
1153
1153
|
window.dispatchEvent(
|
|
@@ -1157,18 +1157,18 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1157
1157
|
cancelable: !0
|
|
1158
1158
|
})
|
|
1159
1159
|
);
|
|
1160
|
-
}, Be = ({
|
|
1160
|
+
}, vn = (l = !1, a = !1, h = !1) => l || !a ? "column" : h ? "row" : "row-reverse", Be = ({
|
|
1161
1161
|
isOpen: l = !1,
|
|
1162
|
-
onClose:
|
|
1163
|
-
title:
|
|
1162
|
+
onClose: a,
|
|
1163
|
+
title: h,
|
|
1164
1164
|
navDrawerLinks: d,
|
|
1165
1165
|
bottomNavButtons: b,
|
|
1166
|
-
spotlightCards:
|
|
1166
|
+
spotlightCards: g,
|
|
1167
1167
|
bottomButton: m,
|
|
1168
1168
|
hasBackButton: R = !0,
|
|
1169
1169
|
onBackClick: u,
|
|
1170
1170
|
hasOnlySpotlightCards: j = !1,
|
|
1171
|
-
navHeight:
|
|
1171
|
+
navHeight: o,
|
|
1172
1172
|
hasSearch: p = !1,
|
|
1173
1173
|
onSearch: w = () => {
|
|
1174
1174
|
}
|
|
@@ -1190,7 +1190,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1190
1190
|
Nt,
|
|
1191
1191
|
{
|
|
1192
1192
|
isOpen: l,
|
|
1193
|
-
onClose:
|
|
1193
|
+
onClose: a,
|
|
1194
1194
|
placement: P,
|
|
1195
1195
|
blockScrollOnMount: !1,
|
|
1196
1196
|
autoFocus: !1,
|
|
@@ -1199,7 +1199,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1199
1199
|
Yt,
|
|
1200
1200
|
{
|
|
1201
1201
|
backgroundColor: "tints.black",
|
|
1202
|
-
top: ["0", null, null,
|
|
1202
|
+
top: ["0", null, null, o ? `${o}px` : null],
|
|
1203
1203
|
opacity: c ? void 0 : "0.4 !important",
|
|
1204
1204
|
motionProps: c ? {
|
|
1205
1205
|
initial: { opacity: 0 },
|
|
@@ -1222,7 +1222,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1222
1222
|
onMouseLeave: () => {
|
|
1223
1223
|
!p && c && dt(!1);
|
|
1224
1224
|
},
|
|
1225
|
-
paddingTop: [4, null, null,
|
|
1225
|
+
paddingTop: [4, null, null, o ? `${o + 24}px` : null],
|
|
1226
1226
|
paddingX: [4, null, null, 12],
|
|
1227
1227
|
paddingBottom: "24",
|
|
1228
1228
|
overflow: "auto",
|
|
@@ -1248,20 +1248,20 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1248
1248
|
{
|
|
1249
1249
|
icon: /* @__PURE__ */ t.jsx(rn, {}),
|
|
1250
1250
|
onClick: () => {
|
|
1251
|
-
u && u(),
|
|
1251
|
+
u && u(), a();
|
|
1252
1252
|
},
|
|
1253
1253
|
"aria-label": "Back"
|
|
1254
1254
|
}
|
|
1255
1255
|
) : null,
|
|
1256
1256
|
/* @__PURE__ */ t.jsx(
|
|
1257
1257
|
U,
|
|
1258
|
-
{ color: "tints.uiGrey", fontSize: ["xl", null, null, "lg"], children:
|
|
1258
|
+
{ color: "tints.uiGrey", fontSize: ["xl", null, null, "lg"], children: h }
|
|
1259
1259
|
),
|
|
1260
1260
|
/* @__PURE__ */ t.jsx(
|
|
1261
1261
|
ie,
|
|
1262
1262
|
{
|
|
1263
1263
|
icon: /* @__PURE__ */ t.jsx(ln, {}),
|
|
1264
|
-
onClick:
|
|
1264
|
+
onClick: a,
|
|
1265
1265
|
"aria-label": "Close"
|
|
1266
1266
|
}
|
|
1267
1267
|
)
|
|
@@ -1297,7 +1297,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1297
1297
|
{
|
|
1298
1298
|
paddingX: "0",
|
|
1299
1299
|
paddingBottom: [6, null, null, 4],
|
|
1300
|
-
"data-testid": `navbar-drawer-body-${
|
|
1300
|
+
"data-testid": `navbar-drawer-body-${h.toLowerCase()}`,
|
|
1301
1301
|
children: /* @__PURE__ */ t.jsx(
|
|
1302
1302
|
ot.div,
|
|
1303
1303
|
{ ...c ? {
|
|
@@ -1332,25 +1332,29 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1332
1332
|
} : {},
|
|
1333
1333
|
style: {
|
|
1334
1334
|
display: "flex",
|
|
1335
|
-
flexDirection:
|
|
1335
|
+
flexDirection: vn(
|
|
1336
|
+
j,
|
|
1337
|
+
c,
|
|
1338
|
+
p
|
|
1339
|
+
),
|
|
1336
1340
|
gap: "24px",
|
|
1337
1341
|
justifyContent: "space-between"
|
|
1338
1342
|
},
|
|
1339
1343
|
children: [
|
|
1340
|
-
|
|
1344
|
+
g ? /* @__PURE__ */ t.jsx(
|
|
1341
1345
|
y,
|
|
1342
1346
|
{
|
|
1343
1347
|
gap: "6",
|
|
1344
|
-
display: "
|
|
1348
|
+
display: "flex",
|
|
1345
1349
|
justifyContent: [null, null, null, "center"],
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
"
|
|
1352
|
-
|
|
1353
|
-
children:
|
|
1350
|
+
sx: {
|
|
1351
|
+
"& > *": {
|
|
1352
|
+
width: ["100%", null, null, "365px", "432px"]
|
|
1353
|
+
},
|
|
1354
|
+
flexWrap: "wrap",
|
|
1355
|
+
flexDirection: ["column", null, null, "row"]
|
|
1356
|
+
},
|
|
1357
|
+
children: g
|
|
1354
1358
|
}
|
|
1355
1359
|
) : null,
|
|
1356
1360
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1388,53 +1392,53 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1388
1392
|
]
|
|
1389
1393
|
}
|
|
1390
1394
|
);
|
|
1391
|
-
}, ft = (l) => l.reduce((
|
|
1395
|
+
}, ft = (l) => l.reduce((a, h) => {
|
|
1392
1396
|
var b;
|
|
1393
|
-
const d = ((b =
|
|
1394
|
-
return [...
|
|
1395
|
-
}, []),
|
|
1397
|
+
const d = ((b = h.sections) == null ? void 0 : b.reduce((g, m) => [...g, ...m.links], [])) ?? [];
|
|
1398
|
+
return [...a, ...d];
|
|
1399
|
+
}, []), xn = ({
|
|
1396
1400
|
source: l,
|
|
1397
|
-
onSearchCallback:
|
|
1398
|
-
isActive:
|
|
1401
|
+
onSearchCallback: a,
|
|
1402
|
+
isActive: h
|
|
1399
1403
|
}) => {
|
|
1400
|
-
const [d, b] = V(""), [
|
|
1401
|
-
if (!
|
|
1404
|
+
const [d, b] = V(""), [g, m] = V([]), R = (o, p) => {
|
|
1405
|
+
if (!o)
|
|
1402
1406
|
return [];
|
|
1403
|
-
const w =
|
|
1407
|
+
const w = o.toLowerCase();
|
|
1404
1408
|
return p.filter((c) => {
|
|
1405
1409
|
const P = c.label.toLowerCase().includes(w), A = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(w);
|
|
1406
1410
|
return P || A;
|
|
1407
1411
|
}).sort((c, P) => c.label.localeCompare(P.label));
|
|
1408
|
-
}, u = (
|
|
1409
|
-
if (b(
|
|
1412
|
+
}, u = (o) => {
|
|
1413
|
+
if (b(o), !o) {
|
|
1410
1414
|
m([]);
|
|
1411
1415
|
return;
|
|
1412
1416
|
}
|
|
1413
|
-
const p = R(
|
|
1414
|
-
m(p),
|
|
1417
|
+
const p = R(o, l);
|
|
1418
|
+
m(p), a && a(o, p);
|
|
1415
1419
|
}, j = () => {
|
|
1416
1420
|
b(""), m([]);
|
|
1417
1421
|
};
|
|
1418
1422
|
return le(() => {
|
|
1419
|
-
|
|
1420
|
-
}, [
|
|
1423
|
+
h || (b(""), m([]));
|
|
1424
|
+
}, [h]), {
|
|
1421
1425
|
query: d,
|
|
1422
|
-
results:
|
|
1426
|
+
results: g,
|
|
1423
1427
|
handleClose: j,
|
|
1424
1428
|
handleSearch: u
|
|
1425
1429
|
};
|
|
1426
|
-
},
|
|
1430
|
+
}, Rn = ({
|
|
1427
1431
|
categories: l = [],
|
|
1428
|
-
onCartClick:
|
|
1429
|
-
mainCategoryLabel:
|
|
1432
|
+
onCartClick: a,
|
|
1433
|
+
mainCategoryLabel: h = "Menu",
|
|
1430
1434
|
logoLink: d = "https://www.everlywell.com",
|
|
1431
1435
|
hasSearch: b = !0,
|
|
1432
|
-
onSearchClick:
|
|
1436
|
+
onSearchClick: g,
|
|
1433
1437
|
registrationUrl: m,
|
|
1434
1438
|
profileUrl: R = "https://secure.everlywell.com/login",
|
|
1435
1439
|
mobileBottomButtons: u = [],
|
|
1436
1440
|
numberOfCartItems: j = 0,
|
|
1437
|
-
linkComponent:
|
|
1441
|
+
linkComponent: o,
|
|
1438
1442
|
onSearchCallback: p,
|
|
1439
1443
|
onLinkClick: w,
|
|
1440
1444
|
onCategoryOpen: c,
|
|
@@ -1445,14 +1449,14 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1445
1449
|
onLogoClick: S
|
|
1446
1450
|
}) => {
|
|
1447
1451
|
var Ee, de, Re;
|
|
1448
|
-
const [N, ve] = V(!1), [
|
|
1452
|
+
const [N, ve] = V(!1), [xe, J] = V(!1), [E, Y] = V(null), [q, ke] = V(0), [ge, ae] = V(!1), [$, z] = V(!1), {
|
|
1449
1453
|
query: G,
|
|
1450
1454
|
results: Z,
|
|
1451
1455
|
handleSearch: be
|
|
1452
|
-
} =
|
|
1456
|
+
} = xn({
|
|
1453
1457
|
source: ft(l),
|
|
1454
1458
|
onSearchCallback: p,
|
|
1455
|
-
isActive:
|
|
1459
|
+
isActive: xe
|
|
1456
1460
|
}), me = G && /* @__PURE__ */ t.jsxs(
|
|
1457
1461
|
L,
|
|
1458
1462
|
{ gap: "6", direction: "column", children: [
|
|
@@ -1468,7 +1472,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1468
1472
|
justifyContent: [null, null, null, "flex-start"],
|
|
1469
1473
|
children: Array.from(
|
|
1470
1474
|
{ length: Math.ceil(Z.length / 4) },
|
|
1471
|
-
(
|
|
1475
|
+
(s, O) => /* @__PURE__ */ t.jsx(
|
|
1472
1476
|
L,
|
|
1473
1477
|
{ direction: "column", gap: "6", children: Z.slice(O * 4, (O + 1) * 4).map(
|
|
1474
1478
|
(k, D) => /* @__PURE__ */ t.jsx(
|
|
@@ -1477,7 +1481,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1477
1481
|
href: k.href,
|
|
1478
1482
|
label: k.label,
|
|
1479
1483
|
additionalContent: k == null ? void 0 : k.additionalContent,
|
|
1480
|
-
linkComponent:
|
|
1484
|
+
linkComponent: o
|
|
1481
1485
|
},
|
|
1482
1486
|
`${k.label}-${D}`
|
|
1483
1487
|
)
|
|
@@ -1488,37 +1492,37 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1488
1492
|
}
|
|
1489
1493
|
)
|
|
1490
1494
|
] }
|
|
1491
|
-
), Ce = ze((
|
|
1492
|
-
ke(
|
|
1495
|
+
), Ce = ze((s) => {
|
|
1496
|
+
ke(s);
|
|
1493
1497
|
}, []), oe = () => {
|
|
1494
1498
|
ve(!1), Y(null);
|
|
1495
|
-
}, je = (
|
|
1496
|
-
Y(
|
|
1497
|
-
}, we = (
|
|
1498
|
-
ae(!0), J(!1), (
|
|
1499
|
+
}, je = (s) => {
|
|
1500
|
+
Y(s);
|
|
1501
|
+
}, we = (s) => {
|
|
1502
|
+
ae(!0), J(!1), (s.sections || s.spotlightCards) && Y(s);
|
|
1499
1503
|
}, ye = () => {
|
|
1500
1504
|
ae(!1);
|
|
1501
1505
|
};
|
|
1502
1506
|
le(() => {
|
|
1503
|
-
const
|
|
1507
|
+
const s = (O) => {
|
|
1504
1508
|
z(O.detail.isHovering);
|
|
1505
1509
|
};
|
|
1506
1510
|
return window.addEventListener(
|
|
1507
1511
|
Ne,
|
|
1508
|
-
|
|
1512
|
+
s
|
|
1509
1513
|
), () => {
|
|
1510
1514
|
window.removeEventListener(
|
|
1511
1515
|
Ne,
|
|
1512
|
-
|
|
1516
|
+
s
|
|
1513
1517
|
);
|
|
1514
1518
|
};
|
|
1515
1519
|
}, []), le(() => {
|
|
1516
|
-
!
|
|
1517
|
-
}, [
|
|
1518
|
-
let
|
|
1520
|
+
!ge && !$ && (Y(null), J(!1));
|
|
1521
|
+
}, [ge, $]), le(() => {
|
|
1522
|
+
let s = window.location.href;
|
|
1519
1523
|
const O = () => {
|
|
1520
1524
|
const D = window.location.href;
|
|
1521
|
-
D !==
|
|
1525
|
+
D !== s && (s = D, oe(), Y(null));
|
|
1522
1526
|
}, k = setInterval(O, 100);
|
|
1523
1527
|
return window.addEventListener("popstate", O), () => {
|
|
1524
1528
|
window.removeEventListener("popstate", O), clearInterval(k);
|
|
@@ -1529,39 +1533,39 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1529
1533
|
}, Oe = /* @__PURE__ */ t.jsx(
|
|
1530
1534
|
t.Fragment,
|
|
1531
1535
|
{ children: l == null ? void 0 : l.map(
|
|
1532
|
-
(
|
|
1536
|
+
(s, O) => /* @__PURE__ */ t.jsx(
|
|
1533
1537
|
Te,
|
|
1534
1538
|
{
|
|
1535
1539
|
onMouseEnter: () => {
|
|
1536
|
-
we(
|
|
1540
|
+
we(s), c == null || c(s.label);
|
|
1537
1541
|
},
|
|
1538
1542
|
onMouseLeave: ye,
|
|
1539
|
-
isSelected: (E == null ? void 0 : E.label) ===
|
|
1540
|
-
...
|
|
1541
|
-
children:
|
|
1543
|
+
isSelected: (E == null ? void 0 : E.label) === s.label,
|
|
1544
|
+
...s.buttonProps,
|
|
1545
|
+
children: s.label
|
|
1542
1546
|
},
|
|
1543
|
-
`${
|
|
1547
|
+
`${s.label}-${O}`
|
|
1544
1548
|
)
|
|
1545
1549
|
) }
|
|
1546
|
-
), se = (Ee = l.filter((
|
|
1547
|
-
(
|
|
1550
|
+
), se = (Ee = l.filter((s) => s.isMobileTopLink !== !1)) == null ? void 0 : Ee.map(
|
|
1551
|
+
(s) => /* @__PURE__ */ t.jsx(
|
|
1548
1552
|
y,
|
|
1549
1553
|
{
|
|
1550
1554
|
onClick: () => {
|
|
1551
|
-
je(
|
|
1555
|
+
je(s), c == null || c(s.label);
|
|
1552
1556
|
},
|
|
1553
1557
|
children: /* @__PURE__ */ t.jsx(
|
|
1554
1558
|
Me,
|
|
1555
1559
|
{
|
|
1556
|
-
label:
|
|
1560
|
+
label: s.label,
|
|
1557
1561
|
role: "link",
|
|
1558
|
-
additionalContent:
|
|
1562
|
+
additionalContent: s.additionalContent,
|
|
1559
1563
|
mainTextFontSize: "3xl",
|
|
1560
|
-
linkComponent:
|
|
1564
|
+
linkComponent: o
|
|
1561
1565
|
}
|
|
1562
1566
|
)
|
|
1563
1567
|
},
|
|
1564
|
-
|
|
1568
|
+
s.label
|
|
1565
1569
|
)
|
|
1566
1570
|
);
|
|
1567
1571
|
ft(l);
|
|
@@ -1613,10 +1617,10 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1613
1617
|
] }
|
|
1614
1618
|
), ce = E ? /* @__PURE__ */ t.jsx(
|
|
1615
1619
|
L,
|
|
1616
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (de = E == null ? void 0 : E.sections) == null ? void 0 : de.map((
|
|
1620
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (de = E == null ? void 0 : E.sections) == null ? void 0 : de.map((s, O) => {
|
|
1617
1621
|
const k = [];
|
|
1618
|
-
for (let D = 0; D <
|
|
1619
|
-
k.push(
|
|
1622
|
+
for (let D = 0; D < s.links.length; D += 3)
|
|
1623
|
+
k.push(s.links.slice(D, D + 3));
|
|
1620
1624
|
return /* @__PURE__ */ t.jsxs(
|
|
1621
1625
|
y,
|
|
1622
1626
|
{ children: [
|
|
@@ -1626,7 +1630,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1626
1630
|
fontSize: "md",
|
|
1627
1631
|
color: "tints.uiGrey",
|
|
1628
1632
|
marginBottom: [0, null, null, 6],
|
|
1629
|
-
children:
|
|
1633
|
+
children: s.title
|
|
1630
1634
|
}
|
|
1631
1635
|
),
|
|
1632
1636
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1648,7 +1652,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1648
1652
|
label: B.label,
|
|
1649
1653
|
href: B.href,
|
|
1650
1654
|
additionalContent: B.additionalContent,
|
|
1651
|
-
linkComponent:
|
|
1655
|
+
linkComponent: o,
|
|
1652
1656
|
onClick: () => w == null ? void 0 : w(B.label)
|
|
1653
1657
|
},
|
|
1654
1658
|
B.label
|
|
@@ -1661,11 +1665,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1661
1665
|
}
|
|
1662
1666
|
)
|
|
1663
1667
|
] },
|
|
1664
|
-
`${
|
|
1668
|
+
`${s.title}-${O}`
|
|
1665
1669
|
);
|
|
1666
1670
|
}) }
|
|
1667
1671
|
) : null, ee = E != null && E.spotlightCards ? (Re = E.spotlightCards) == null ? void 0 : Re.map(
|
|
1668
|
-
(
|
|
1672
|
+
(s) => /* @__PURE__ */ t.jsx(cn, { ...s }, s.title)
|
|
1669
1673
|
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1670
1674
|
return /* @__PURE__ */ t.jsxs(
|
|
1671
1675
|
t.Fragment,
|
|
@@ -1693,11 +1697,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1693
1697
|
{
|
|
1694
1698
|
"aria-label": "Cart",
|
|
1695
1699
|
count: j,
|
|
1696
|
-
onClick:
|
|
1700
|
+
onClick: a
|
|
1697
1701
|
}
|
|
1698
1702
|
),
|
|
1699
1703
|
onSearchClick: () => {
|
|
1700
|
-
J(!0),
|
|
1704
|
+
J(!0), g == null || g();
|
|
1701
1705
|
},
|
|
1702
1706
|
onMenuClick: () => {
|
|
1703
1707
|
ve(!0), P == null || P();
|
|
@@ -1705,7 +1709,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1705
1709
|
hasSearch: b,
|
|
1706
1710
|
logoLink: d,
|
|
1707
1711
|
onHeightChange: Ce,
|
|
1708
|
-
linkComponent:
|
|
1712
|
+
linkComponent: o,
|
|
1709
1713
|
onLogoClick: S
|
|
1710
1714
|
}
|
|
1711
1715
|
),
|
|
@@ -1714,7 +1718,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1714
1718
|
{
|
|
1715
1719
|
isOpen: N,
|
|
1716
1720
|
onClose: oe,
|
|
1717
|
-
title:
|
|
1721
|
+
title: h,
|
|
1718
1722
|
navDrawerLinks: se,
|
|
1719
1723
|
bottomNavButtons: Q,
|
|
1720
1724
|
hasBackButton: !1,
|
|
@@ -1738,7 +1742,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1738
1742
|
/* @__PURE__ */ t.jsx(
|
|
1739
1743
|
Be,
|
|
1740
1744
|
{
|
|
1741
|
-
isOpen:
|
|
1745
|
+
isOpen: xe,
|
|
1742
1746
|
onClose: () => J(!1),
|
|
1743
1747
|
title: "Search",
|
|
1744
1748
|
navHeight: q,
|
|
@@ -1753,14 +1757,14 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1753
1757
|
};
|
|
1754
1758
|
export {
|
|
1755
1759
|
pn as BasketButton,
|
|
1756
|
-
|
|
1760
|
+
yn as CategoryLabel,
|
|
1757
1761
|
Te as NavButton,
|
|
1758
|
-
|
|
1762
|
+
En as NavSkeleton,
|
|
1759
1763
|
Be as NavbarDrawer,
|
|
1760
1764
|
Me as NavbarDrawerLink,
|
|
1761
|
-
|
|
1765
|
+
Rn as NavigationBar,
|
|
1762
1766
|
cn as SpotlightCard,
|
|
1763
|
-
|
|
1767
|
+
wn as Stepper,
|
|
1764
1768
|
ie as TopNavIconButton,
|
|
1765
1769
|
fn as TopNavigation
|
|
1766
1770
|
};
|