@everlywell/consumer-ui 1.26.0 → 1.28.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 +6 -6
- package/index.mjs +260 -250
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts +2 -0
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/utils.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,
|
|
22
|
-
function m(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
d.call(
|
|
27
|
-
if (
|
|
28
|
-
for (
|
|
29
|
-
p[
|
|
30
|
-
return { $$typeof:
|
|
21
|
+
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function m(E, o, b) {
|
|
23
|
+
var s, p = {}, w = null, c = null;
|
|
24
|
+
b !== void 0 && (w = "" + b), o.key !== void 0 && (w = "" + o.key), o.ref !== void 0 && (c = o.ref);
|
|
25
|
+
for (s in o)
|
|
26
|
+
d.call(o, s) && !x.hasOwnProperty(s) && (p[s] = o[s]);
|
|
27
|
+
if (E && E.defaultProps)
|
|
28
|
+
for (s in o = E.defaultProps, o)
|
|
29
|
+
p[s] === void 0 && (p[s] = o[s]);
|
|
30
|
+
return { $$typeof: a, type: E, key: w, ref: c, props: p, _owner: j.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"), j = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), E = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = 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;
|
|
@@ -63,22 +63,22 @@ function sn() {
|
|
|
63
63
|
{
|
|
64
64
|
var i = H.ReactDebugCurrentFrame, g = i.getStackAddendum();
|
|
65
65
|
g !== "" && (n += "%s", r = r.concat([g]));
|
|
66
|
-
var C = r.map(function(
|
|
67
|
-
return String(
|
|
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, R = !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 === x || Y || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || Y || e === j || e === b || e === s || R || e === c || ve || xe || J || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === p || e.$$typeof === m || e.$$typeof === E || e.$$typeof === o || // 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;
|
|
@@ -98,34 +98,34 @@ function sn() {
|
|
|
98
98
|
switch (e) {
|
|
99
99
|
case d:
|
|
100
100
|
return "Fragment";
|
|
101
|
-
case
|
|
101
|
+
case h:
|
|
102
102
|
return "Portal";
|
|
103
103
|
case x:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case b:
|
|
106
|
-
return "StrictMode";
|
|
107
105
|
case j:
|
|
106
|
+
return "StrictMode";
|
|
107
|
+
case b:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case s:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
|
-
case
|
|
114
|
+
case E:
|
|
115
115
|
var n = e;
|
|
116
116
|
return ae(n) + ".Consumer";
|
|
117
117
|
case m:
|
|
118
118
|
var r = e;
|
|
119
119
|
return ae(r._context) + ".Provider";
|
|
120
|
-
case
|
|
121
|
-
return
|
|
120
|
+
case o:
|
|
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 g = e, C = g._payload,
|
|
126
|
+
var g = e, C = g._payload, v = g._init;
|
|
127
127
|
try {
|
|
128
|
-
return $(
|
|
128
|
+
return $(v(C));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -230,27 +230,27 @@ function sn() {
|
|
|
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 {
|
|
@@ -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 u(e) {
|
|
292
292
|
var n = e.prototype;
|
|
293
293
|
return !!(n && n.isReactComponent);
|
|
294
294
|
}
|
|
@@ -296,18 +296,18 @@ function sn() {
|
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return de(e,
|
|
299
|
+
return de(e, u(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
301
|
return Q(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
303
|
+
case b:
|
|
304
304
|
return Q("Suspense");
|
|
305
|
-
case
|
|
305
|
+
case s:
|
|
306
306
|
return Q("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
310
|
+
case o:
|
|
311
311
|
return Re(e.render);
|
|
312
312
|
case p:
|
|
313
313
|
return O(e.type, n, r);
|
|
@@ -332,27 +332,27 @@ function sn() {
|
|
|
332
332
|
function vt(e, n, r, i, g) {
|
|
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(g), 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,
|
|
347
|
+
f && !(f instanceof Error) && (B(g), 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(g), 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, g, C,
|
|
426
|
+
var Rt = function(e, n, r, i, g, 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
|
};
|
|
@@ -454,20 +454,20 @@ function sn() {
|
|
|
454
454
|
};
|
|
455
455
|
function _t(e, n, r, i, g) {
|
|
456
456
|
{
|
|
457
|
-
var C,
|
|
457
|
+
var C, v = {}, f = null, I = null;
|
|
458
458
|
r !== void 0 && (Ze(r), f = "" + r), jt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, wt(n, g));
|
|
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, g, i, fe.current,
|
|
470
|
+
return Rt(e, f, I, g, 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
|
{
|
|
@@ -546,8 +546,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
546
546
|
else if (e) {
|
|
547
547
|
var g = W(e);
|
|
548
548
|
if (typeof g == "function" && g !== e.entries)
|
|
549
|
-
for (var C = g.call(e),
|
|
550
|
-
Ae(
|
|
549
|
+
for (var C = g.call(e), v; !(v = C.next()).done; )
|
|
550
|
+
Ae(v.value) && et(v.value, n);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -559,7 +559,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
559
559
|
var r;
|
|
560
560
|
if (typeof n == "function")
|
|
561
561
|
r = n.propTypes;
|
|
562
|
-
else if (typeof n == "object" && (n.$$typeof ===
|
|
562
|
+
else if (typeof n == "object" && (n.$$typeof === o || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
564
|
n.$$typeof === p))
|
|
565
565
|
r = n.propTypes;
|
|
@@ -591,19 +591,19 @@ Check the top-level render call using <` + r + ">.");
|
|
|
591
591
|
var nt = {};
|
|
592
592
|
function rt(e, n, r, i, g, 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
598
|
var I = St(g);
|
|
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
603
|
var T = _t(e, n, r, g, 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,20 +647,20 @@ 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
|
-
stepperTheme:
|
|
653
|
+
stepperTheme: j = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
657
|
} = l, { activeStep: x, setActiveStep: m } = Ht({
|
|
658
|
-
index:
|
|
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,
|
|
@@ -670,22 +670,22 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
670
670
|
width: "100%",
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
|
-
children: d.map((
|
|
674
|
-
const
|
|
673
|
+
children: d.map((E, o) => {
|
|
674
|
+
const b = x === o, s = o === 0, p = o === d.length - 1, w = x > o;
|
|
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
|
|
677
|
+
return b ? c = P : (s || p) && (c = `${We - ct}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
y,
|
|
679
679
|
{
|
|
680
680
|
width: c,
|
|
681
|
-
opacity: w ||
|
|
681
|
+
opacity: w || b ? 1 : 0.2,
|
|
682
682
|
paddingRight: p ? "0" : "6px",
|
|
683
|
-
paddingLeft:
|
|
683
|
+
paddingLeft: s ? "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(
|
|
@@ -694,8 +694,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
694
694
|
width: "100%",
|
|
695
695
|
position: "absolute",
|
|
696
696
|
top: "0",
|
|
697
|
-
backgroundColor: w ?
|
|
698
|
-
height:
|
|
697
|
+
backgroundColor: w ? j.light : j.base,
|
|
698
|
+
height: h ? "4px" : "8px",
|
|
699
699
|
borderRadius: "4",
|
|
700
700
|
left: "0"
|
|
701
701
|
}
|
|
@@ -703,40 +703,40 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
703
703
|
}
|
|
704
704
|
)
|
|
705
705
|
},
|
|
706
|
-
`step-${
|
|
706
|
+
`step-${o}`
|
|
707
707
|
);
|
|
708
708
|
})
|
|
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
|
-
mainTextFontSize:
|
|
730
|
+
mainTextFontSize: j,
|
|
731
731
|
linkComponent: x,
|
|
732
732
|
href: m,
|
|
733
|
-
...
|
|
734
|
-
} = l,
|
|
733
|
+
...E
|
|
734
|
+
} = l, o = x || X, b = Ue(m, !!x);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
736
|
y,
|
|
737
737
|
{
|
|
738
|
-
ref:
|
|
739
|
-
as:
|
|
738
|
+
ref: a,
|
|
739
|
+
as: o,
|
|
740
740
|
display: "flex",
|
|
741
741
|
alignItems: "center",
|
|
742
742
|
gap: [null, null, null, 1],
|
|
@@ -748,8 +748,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
748
748
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
749
749
|
width: ["100%", null, null, "fit-content"],
|
|
750
750
|
cursor: "pointer",
|
|
751
|
-
...
|
|
752
|
-
...
|
|
751
|
+
...b,
|
|
752
|
+
...E,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ t.jsx(
|
|
755
755
|
re,
|
|
@@ -769,9 +769,9 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
769
769
|
/* @__PURE__ */ t.jsx(
|
|
770
770
|
U,
|
|
771
771
|
{
|
|
772
|
-
fontSize: [
|
|
772
|
+
fontSize: [j || "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,12 +807,12 @@ 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, ...j } = l, x = 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
817
|
backgroundColor: x,
|
|
818
818
|
fontSize: "lg !important",
|
|
@@ -831,23 +831,23 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
831
831
|
textDecoration: "none",
|
|
832
832
|
filter: "brightness(0.95)"
|
|
833
833
|
},
|
|
834
|
-
...
|
|
835
|
-
children:
|
|
834
|
+
...j,
|
|
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
|
-
button:
|
|
844
|
+
button: j,
|
|
845
845
|
backgroundColor: x = "viridian.wash",
|
|
846
846
|
onClick: m,
|
|
847
|
-
href:
|
|
848
|
-
linkComponent:
|
|
847
|
+
href: E,
|
|
848
|
+
linkComponent: o
|
|
849
849
|
}) => {
|
|
850
|
-
const
|
|
850
|
+
const b = "80px", s = "200px", p = "272px", w = o || X, c = Ue(E, !!o);
|
|
851
851
|
return /* @__PURE__ */ t.jsxs(
|
|
852
852
|
L,
|
|
853
853
|
{
|
|
@@ -855,7 +855,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
855
855
|
alignItems: ["center"],
|
|
856
856
|
borderRadius: "xl",
|
|
857
857
|
overflow: "hidden",
|
|
858
|
-
height: [
|
|
858
|
+
height: [b, null, null, p],
|
|
859
859
|
backgroundColor: x,
|
|
860
860
|
onClick: m,
|
|
861
861
|
"data-testid": "spotlight-card",
|
|
@@ -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: [
|
|
887
|
+
height: [b, null, null, s],
|
|
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: [
|
|
895
|
+
height: [b, null, null, s],
|
|
896
896
|
overflow: "hidden",
|
|
897
897
|
children: d
|
|
898
898
|
}
|
|
@@ -922,11 +922,11 @@ 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
|
),
|
|
929
|
-
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children:
|
|
929
|
+
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: j })
|
|
930
930
|
]
|
|
931
931
|
}
|
|
932
932
|
)
|
|
@@ -980,26 +980,26 @@ 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
|
-
onSearchClick:
|
|
986
|
+
onSearchClick: j,
|
|
987
987
|
onMenuClick: x,
|
|
988
988
|
hasSearch: m = !1,
|
|
989
|
-
logoLink:
|
|
990
|
-
onHeightChange:
|
|
991
|
-
linkComponent:
|
|
992
|
-
onLogoClick:
|
|
989
|
+
logoLink: E = "https://www.everlywell.com",
|
|
990
|
+
onHeightChange: o,
|
|
991
|
+
linkComponent: b,
|
|
992
|
+
onLogoClick: s
|
|
993
993
|
}) => {
|
|
994
994
|
const p = Zt(null), [w, c] = V(0), P = 100, A = ze(() => {
|
|
995
|
-
if (p.current &&
|
|
995
|
+
if (p.current && o) {
|
|
996
996
|
const W = Date.now();
|
|
997
997
|
if (W - w > P) {
|
|
998
998
|
const H = p.current.getBoundingClientRect().height;
|
|
999
|
-
|
|
999
|
+
o(H), c(W);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
}, [
|
|
1002
|
+
}, [o, w]);
|
|
1003
1003
|
return le(() => {
|
|
1004
1004
|
A();
|
|
1005
1005
|
const W = new ResizeObserver(() => {
|
|
@@ -1030,9 +1030,9 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1030
1030
|
y,
|
|
1031
1031
|
{
|
|
1032
1032
|
"aria-label": "Go to homepage",
|
|
1033
|
-
onClick:
|
|
1034
|
-
as:
|
|
1035
|
-
...Ue(
|
|
1033
|
+
onClick: s,
|
|
1034
|
+
as: b || X,
|
|
1035
|
+
...Ue(E, !!b),
|
|
1036
1036
|
children: /* @__PURE__ */ t.jsx(dn, {})
|
|
1037
1037
|
}
|
|
1038
1038
|
),
|
|
@@ -1047,14 +1047,14 @@ 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,
|
|
1054
1054
|
{
|
|
1055
1055
|
"aria-label": "Search",
|
|
1056
1056
|
icon: /* @__PURE__ */ t.jsx(re, { as: ht }),
|
|
1057
|
-
onClick:
|
|
1057
|
+
onClick: j
|
|
1058
1058
|
}
|
|
1059
1059
|
) : null,
|
|
1060
1060
|
d,
|
|
@@ -1070,7 +1070,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
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
|
-
bottomNavButtons:
|
|
1165
|
+
bottomNavButtons: j,
|
|
1166
1166
|
spotlightCards: x,
|
|
1167
1167
|
bottomButton: m,
|
|
1168
|
-
hasBackButton:
|
|
1169
|
-
onBackClick:
|
|
1170
|
-
hasOnlySpotlightCards:
|
|
1171
|
-
navHeight:
|
|
1168
|
+
hasBackButton: E = !0,
|
|
1169
|
+
onBackClick: o,
|
|
1170
|
+
hasOnlySpotlightCards: b = !1,
|
|
1171
|
+
navHeight: s,
|
|
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, s ? `${s}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, s ? `${s + 24}px` : null],
|
|
1226
1226
|
paddingX: [4, null, null, 12],
|
|
1227
1227
|
paddingBottom: "24",
|
|
1228
1228
|
overflow: "auto",
|
|
@@ -1243,25 +1243,25 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1243
1243
|
justifyContent: "space-between",
|
|
1244
1244
|
alignItems: "center",
|
|
1245
1245
|
children: [
|
|
1246
|
-
|
|
1246
|
+
E ? /* @__PURE__ */ t.jsx(
|
|
1247
1247
|
ie,
|
|
1248
1248
|
{
|
|
1249
1249
|
icon: /* @__PURE__ */ t.jsx(rn, {}),
|
|
1250
1250
|
onClick: () => {
|
|
1251
|
-
|
|
1251
|
+
o && o(), 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,7 +1332,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1332
1332
|
} : {},
|
|
1333
1333
|
style: {
|
|
1334
1334
|
display: "flex",
|
|
1335
|
-
flexDirection:
|
|
1335
|
+
flexDirection: vn(
|
|
1336
|
+
b,
|
|
1337
|
+
c,
|
|
1338
|
+
p
|
|
1339
|
+
),
|
|
1336
1340
|
gap: "24px",
|
|
1337
1341
|
justifyContent: "space-between"
|
|
1338
1342
|
},
|
|
@@ -1341,15 +1345,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
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
|
-
|
|
1350
|
+
sx: {
|
|
1351
|
+
"& > *": {
|
|
1352
|
+
width: ["100%", null, null, "365px", "432px"]
|
|
1353
|
+
},
|
|
1354
|
+
flexWrap: "wrap",
|
|
1355
|
+
flexDirection: ["column", null, null, "row"]
|
|
1356
|
+
},
|
|
1353
1357
|
children: x
|
|
1354
1358
|
}
|
|
1355
1359
|
) : null,
|
|
@@ -1362,7 +1366,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1362
1366
|
width: ["100%", null, null, "auto"],
|
|
1363
1367
|
children: [
|
|
1364
1368
|
d ? /* @__PURE__ */ t.jsx(y, { children: d }) : null,
|
|
1365
|
-
|
|
1369
|
+
j && !c ? /* @__PURE__ */ t.jsx(y, { children: j }) : null,
|
|
1366
1370
|
m ? /* @__PURE__ */ t.jsx(
|
|
1367
1371
|
y,
|
|
1368
1372
|
{
|
|
@@ -1388,53 +1392,59 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1388
1392
|
]
|
|
1389
1393
|
}
|
|
1390
1394
|
);
|
|
1391
|
-
}, ft = (l) =>
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1395
|
+
}, ft = (l) => {
|
|
1396
|
+
const a = /* @__PURE__ */ new Set();
|
|
1397
|
+
return l.reduce((h, d) => {
|
|
1398
|
+
var x;
|
|
1399
|
+
const j = ((x = d.sections) == null ? void 0 : x.reduce((m, E) => {
|
|
1400
|
+
const o = E.links.filter((b) => a.has(b.label) || b.isSearchable !== !0 ? !1 : (a.add(b.label), !0));
|
|
1401
|
+
return [...m, ...o];
|
|
1402
|
+
}, [])) ?? [];
|
|
1403
|
+
return [...h, ...j];
|
|
1404
|
+
}, []);
|
|
1405
|
+
}, xn = ({
|
|
1396
1406
|
source: l,
|
|
1397
|
-
onSearchCallback:
|
|
1398
|
-
isActive:
|
|
1407
|
+
onSearchCallback: a,
|
|
1408
|
+
isActive: h
|
|
1399
1409
|
}) => {
|
|
1400
|
-
const [d,
|
|
1401
|
-
if (!
|
|
1410
|
+
const [d, j] = V(""), [x, m] = V([]), E = (s, p) => {
|
|
1411
|
+
if (!s)
|
|
1402
1412
|
return [];
|
|
1403
|
-
const w =
|
|
1413
|
+
const w = s.toLowerCase();
|
|
1404
1414
|
return p.filter((c) => {
|
|
1405
1415
|
const P = c.label.toLowerCase().includes(w), A = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(w);
|
|
1406
1416
|
return P || A;
|
|
1407
1417
|
}).sort((c, P) => c.label.localeCompare(P.label));
|
|
1408
|
-
},
|
|
1409
|
-
if (
|
|
1418
|
+
}, o = (s) => {
|
|
1419
|
+
if (j(s), !s) {
|
|
1410
1420
|
m([]);
|
|
1411
1421
|
return;
|
|
1412
1422
|
}
|
|
1413
|
-
const p =
|
|
1414
|
-
m(p),
|
|
1415
|
-
},
|
|
1416
|
-
|
|
1423
|
+
const p = E(s, l);
|
|
1424
|
+
m(p), a && a(s, p);
|
|
1425
|
+
}, b = () => {
|
|
1426
|
+
j(""), m([]);
|
|
1417
1427
|
};
|
|
1418
1428
|
return le(() => {
|
|
1419
|
-
|
|
1420
|
-
}, [
|
|
1429
|
+
h || (j(""), m([]));
|
|
1430
|
+
}, [h]), {
|
|
1421
1431
|
query: d,
|
|
1422
1432
|
results: x,
|
|
1423
|
-
handleClose:
|
|
1424
|
-
handleSearch:
|
|
1433
|
+
handleClose: b,
|
|
1434
|
+
handleSearch: o
|
|
1425
1435
|
};
|
|
1426
|
-
},
|
|
1436
|
+
}, Rn = ({
|
|
1427
1437
|
categories: l = [],
|
|
1428
|
-
onCartClick:
|
|
1429
|
-
mainCategoryLabel:
|
|
1438
|
+
onCartClick: a,
|
|
1439
|
+
mainCategoryLabel: h = "Menu",
|
|
1430
1440
|
logoLink: d = "https://www.everlywell.com",
|
|
1431
|
-
hasSearch:
|
|
1441
|
+
hasSearch: j = !0,
|
|
1432
1442
|
onSearchClick: x,
|
|
1433
1443
|
registrationUrl: m,
|
|
1434
|
-
profileUrl:
|
|
1435
|
-
mobileBottomButtons:
|
|
1436
|
-
numberOfCartItems:
|
|
1437
|
-
linkComponent:
|
|
1444
|
+
profileUrl: E = "https://secure.everlywell.com/login",
|
|
1445
|
+
mobileBottomButtons: o = [],
|
|
1446
|
+
numberOfCartItems: b = 0,
|
|
1447
|
+
linkComponent: s,
|
|
1438
1448
|
onSearchCallback: p,
|
|
1439
1449
|
onLinkClick: w,
|
|
1440
1450
|
onCategoryOpen: c,
|
|
@@ -1445,14 +1455,14 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1445
1455
|
onLogoClick: S
|
|
1446
1456
|
}) => {
|
|
1447
1457
|
var Ee, de, Re;
|
|
1448
|
-
const [N, ve] = V(!1), [
|
|
1458
|
+
const [N, ve] = V(!1), [xe, J] = V(!1), [R, Y] = V(null), [q, ke] = V(0), [ge, ae] = V(!1), [$, z] = V(!1), {
|
|
1449
1459
|
query: G,
|
|
1450
1460
|
results: Z,
|
|
1451
1461
|
handleSearch: be
|
|
1452
|
-
} =
|
|
1462
|
+
} = xn({
|
|
1453
1463
|
source: ft(l),
|
|
1454
1464
|
onSearchCallback: p,
|
|
1455
|
-
isActive:
|
|
1465
|
+
isActive: xe
|
|
1456
1466
|
}), me = G && /* @__PURE__ */ t.jsxs(
|
|
1457
1467
|
L,
|
|
1458
1468
|
{ gap: "6", direction: "column", children: [
|
|
@@ -1468,7 +1478,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1468
1478
|
justifyContent: [null, null, null, "flex-start"],
|
|
1469
1479
|
children: Array.from(
|
|
1470
1480
|
{ length: Math.ceil(Z.length / 4) },
|
|
1471
|
-
(
|
|
1481
|
+
(u, O) => /* @__PURE__ */ t.jsx(
|
|
1472
1482
|
L,
|
|
1473
1483
|
{ direction: "column", gap: "6", children: Z.slice(O * 4, (O + 1) * 4).map(
|
|
1474
1484
|
(k, D) => /* @__PURE__ */ t.jsx(
|
|
@@ -1477,7 +1487,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1477
1487
|
href: k.href,
|
|
1478
1488
|
label: k.label,
|
|
1479
1489
|
additionalContent: k == null ? void 0 : k.additionalContent,
|
|
1480
|
-
linkComponent:
|
|
1490
|
+
linkComponent: s
|
|
1481
1491
|
},
|
|
1482
1492
|
`${k.label}-${D}`
|
|
1483
1493
|
)
|
|
@@ -1488,37 +1498,37 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1488
1498
|
}
|
|
1489
1499
|
)
|
|
1490
1500
|
] }
|
|
1491
|
-
), Ce = ze((
|
|
1492
|
-
ke(
|
|
1501
|
+
), Ce = ze((u) => {
|
|
1502
|
+
ke(u);
|
|
1493
1503
|
}, []), oe = () => {
|
|
1494
1504
|
ve(!1), Y(null);
|
|
1495
|
-
}, je = (
|
|
1496
|
-
Y(
|
|
1497
|
-
}, we = (
|
|
1498
|
-
ae(!0), J(!1), (
|
|
1505
|
+
}, je = (u) => {
|
|
1506
|
+
Y(u);
|
|
1507
|
+
}, we = (u) => {
|
|
1508
|
+
ae(!0), J(!1), (u.sections || u.spotlightCards) && Y(u);
|
|
1499
1509
|
}, ye = () => {
|
|
1500
1510
|
ae(!1);
|
|
1501
1511
|
};
|
|
1502
1512
|
le(() => {
|
|
1503
|
-
const
|
|
1513
|
+
const u = (O) => {
|
|
1504
1514
|
z(O.detail.isHovering);
|
|
1505
1515
|
};
|
|
1506
1516
|
return window.addEventListener(
|
|
1507
1517
|
Ne,
|
|
1508
|
-
|
|
1518
|
+
u
|
|
1509
1519
|
), () => {
|
|
1510
1520
|
window.removeEventListener(
|
|
1511
1521
|
Ne,
|
|
1512
|
-
|
|
1522
|
+
u
|
|
1513
1523
|
);
|
|
1514
1524
|
};
|
|
1515
1525
|
}, []), le(() => {
|
|
1516
|
-
!
|
|
1517
|
-
}, [
|
|
1518
|
-
let
|
|
1526
|
+
!ge && !$ && (Y(null), J(!1));
|
|
1527
|
+
}, [ge, $]), le(() => {
|
|
1528
|
+
let u = window.location.href;
|
|
1519
1529
|
const O = () => {
|
|
1520
1530
|
const D = window.location.href;
|
|
1521
|
-
D !==
|
|
1531
|
+
D !== u && (u = D, oe(), Y(null));
|
|
1522
1532
|
}, k = setInterval(O, 100);
|
|
1523
1533
|
return window.addEventListener("popstate", O), () => {
|
|
1524
1534
|
window.removeEventListener("popstate", O), clearInterval(k);
|
|
@@ -1529,39 +1539,39 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1529
1539
|
}, Oe = /* @__PURE__ */ t.jsx(
|
|
1530
1540
|
t.Fragment,
|
|
1531
1541
|
{ children: l == null ? void 0 : l.map(
|
|
1532
|
-
(
|
|
1542
|
+
(u, O) => /* @__PURE__ */ t.jsx(
|
|
1533
1543
|
Te,
|
|
1534
1544
|
{
|
|
1535
1545
|
onMouseEnter: () => {
|
|
1536
|
-
we(
|
|
1546
|
+
we(u), c == null || c(u.label);
|
|
1537
1547
|
},
|
|
1538
1548
|
onMouseLeave: ye,
|
|
1539
|
-
isSelected: (
|
|
1540
|
-
...
|
|
1541
|
-
children:
|
|
1549
|
+
isSelected: (R == null ? void 0 : R.label) === u.label,
|
|
1550
|
+
...u.buttonProps,
|
|
1551
|
+
children: u.label
|
|
1542
1552
|
},
|
|
1543
|
-
`${
|
|
1553
|
+
`${u.label}-${O}`
|
|
1544
1554
|
)
|
|
1545
1555
|
) }
|
|
1546
|
-
), se = (Ee = l.filter((
|
|
1547
|
-
(
|
|
1556
|
+
), se = (Ee = l.filter((u) => u.isMobileTopLink !== !1)) == null ? void 0 : Ee.map(
|
|
1557
|
+
(u) => /* @__PURE__ */ t.jsx(
|
|
1548
1558
|
y,
|
|
1549
1559
|
{
|
|
1550
1560
|
onClick: () => {
|
|
1551
|
-
je(
|
|
1561
|
+
je(u), c == null || c(u.label);
|
|
1552
1562
|
},
|
|
1553
1563
|
children: /* @__PURE__ */ t.jsx(
|
|
1554
1564
|
Me,
|
|
1555
1565
|
{
|
|
1556
|
-
label:
|
|
1566
|
+
label: u.label,
|
|
1557
1567
|
role: "link",
|
|
1558
|
-
additionalContent:
|
|
1568
|
+
additionalContent: u.additionalContent,
|
|
1559
1569
|
mainTextFontSize: "3xl",
|
|
1560
|
-
linkComponent:
|
|
1570
|
+
linkComponent: s
|
|
1561
1571
|
}
|
|
1562
1572
|
)
|
|
1563
1573
|
},
|
|
1564
|
-
|
|
1574
|
+
u.label
|
|
1565
1575
|
)
|
|
1566
1576
|
);
|
|
1567
1577
|
ft(l);
|
|
@@ -1572,7 +1582,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1572
1582
|
Te,
|
|
1573
1583
|
{
|
|
1574
1584
|
as: X,
|
|
1575
|
-
href:
|
|
1585
|
+
href: E,
|
|
1576
1586
|
width: "100%",
|
|
1577
1587
|
backgroundColor: "tints.cream",
|
|
1578
1588
|
onClick: H,
|
|
@@ -1608,15 +1618,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1608
1618
|
), Q = /* @__PURE__ */ t.jsxs(
|
|
1609
1619
|
L,
|
|
1610
1620
|
{ gap: "2", flexDirection: "column", children: [
|
|
1611
|
-
|
|
1621
|
+
o,
|
|
1612
1622
|
ue
|
|
1613
1623
|
] }
|
|
1614
|
-
), ce =
|
|
1624
|
+
), ce = R ? /* @__PURE__ */ t.jsx(
|
|
1615
1625
|
L,
|
|
1616
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (de =
|
|
1626
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (de = R == null ? void 0 : R.sections) == null ? void 0 : de.map((u, O) => {
|
|
1617
1627
|
const k = [];
|
|
1618
|
-
for (let D = 0; D <
|
|
1619
|
-
k.push(
|
|
1628
|
+
for (let D = 0; D < u.links.length; D += 3)
|
|
1629
|
+
k.push(u.links.slice(D, D + 3));
|
|
1620
1630
|
return /* @__PURE__ */ t.jsxs(
|
|
1621
1631
|
y,
|
|
1622
1632
|
{ children: [
|
|
@@ -1626,7 +1636,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1626
1636
|
fontSize: "md",
|
|
1627
1637
|
color: "tints.uiGrey",
|
|
1628
1638
|
marginBottom: [0, null, null, 6],
|
|
1629
|
-
children:
|
|
1639
|
+
children: u.title
|
|
1630
1640
|
}
|
|
1631
1641
|
),
|
|
1632
1642
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1648,7 +1658,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1648
1658
|
label: B.label,
|
|
1649
1659
|
href: B.href,
|
|
1650
1660
|
additionalContent: B.additionalContent,
|
|
1651
|
-
linkComponent:
|
|
1661
|
+
linkComponent: s,
|
|
1652
1662
|
onClick: () => w == null ? void 0 : w(B.label)
|
|
1653
1663
|
},
|
|
1654
1664
|
B.label
|
|
@@ -1661,11 +1671,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1661
1671
|
}
|
|
1662
1672
|
)
|
|
1663
1673
|
] },
|
|
1664
|
-
`${
|
|
1674
|
+
`${u.title}-${O}`
|
|
1665
1675
|
);
|
|
1666
1676
|
}) }
|
|
1667
|
-
) : null, ee =
|
|
1668
|
-
(
|
|
1677
|
+
) : null, ee = R != null && R.spotlightCards ? (Re = R.spotlightCards) == null ? void 0 : Re.map(
|
|
1678
|
+
(u) => /* @__PURE__ */ t.jsx(cn, { ...u }, u.title)
|
|
1669
1679
|
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1670
1680
|
return /* @__PURE__ */ t.jsxs(
|
|
1671
1681
|
t.Fragment,
|
|
@@ -1686,14 +1696,14 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1686
1696
|
),
|
|
1687
1697
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1688
1698
|
X,
|
|
1689
|
-
{ href:
|
|
1699
|
+
{ href: E, "aria-label": "login", onClick: H, children: /* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(re, { as: at }), "aria-label": "Profile" }) }
|
|
1690
1700
|
),
|
|
1691
1701
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1692
1702
|
pn,
|
|
1693
1703
|
{
|
|
1694
1704
|
"aria-label": "Cart",
|
|
1695
|
-
count:
|
|
1696
|
-
onClick:
|
|
1705
|
+
count: b,
|
|
1706
|
+
onClick: a
|
|
1697
1707
|
}
|
|
1698
1708
|
),
|
|
1699
1709
|
onSearchClick: () => {
|
|
@@ -1702,10 +1712,10 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1702
1712
|
onMenuClick: () => {
|
|
1703
1713
|
ve(!0), P == null || P();
|
|
1704
1714
|
},
|
|
1705
|
-
hasSearch:
|
|
1715
|
+
hasSearch: j,
|
|
1706
1716
|
logoLink: d,
|
|
1707
1717
|
onHeightChange: Ce,
|
|
1708
|
-
linkComponent:
|
|
1718
|
+
linkComponent: s,
|
|
1709
1719
|
onLogoClick: S
|
|
1710
1720
|
}
|
|
1711
1721
|
),
|
|
@@ -1714,7 +1724,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1714
1724
|
{
|
|
1715
1725
|
isOpen: N,
|
|
1716
1726
|
onClose: oe,
|
|
1717
|
-
title:
|
|
1727
|
+
title: h,
|
|
1718
1728
|
navDrawerLinks: se,
|
|
1719
1729
|
bottomNavButtons: Q,
|
|
1720
1730
|
hasBackButton: !1,
|
|
@@ -1724,21 +1734,21 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1724
1734
|
/* @__PURE__ */ t.jsx(
|
|
1725
1735
|
Be,
|
|
1726
1736
|
{
|
|
1727
|
-
isOpen: !!
|
|
1737
|
+
isOpen: !!R,
|
|
1728
1738
|
onClose: () => Y(null),
|
|
1729
|
-
title: (
|
|
1739
|
+
title: (R == null ? void 0 : R.label) || "",
|
|
1730
1740
|
navDrawerLinks: ce,
|
|
1731
1741
|
onBackClick: Le,
|
|
1732
1742
|
spotlightCards: ee,
|
|
1733
|
-
hasOnlySpotlightCards:
|
|
1743
|
+
hasOnlySpotlightCards: R == null ? void 0 : R.hasOnlySpotlightCards,
|
|
1734
1744
|
navHeight: q,
|
|
1735
|
-
bottomButton:
|
|
1745
|
+
bottomButton: R == null ? void 0 : R.bottomButton
|
|
1736
1746
|
}
|
|
1737
1747
|
),
|
|
1738
1748
|
/* @__PURE__ */ t.jsx(
|
|
1739
1749
|
Be,
|
|
1740
1750
|
{
|
|
1741
|
-
isOpen:
|
|
1751
|
+
isOpen: xe,
|
|
1742
1752
|
onClose: () => J(!1),
|
|
1743
1753
|
title: "Search",
|
|
1744
1754
|
navHeight: q,
|
|
@@ -1753,14 +1763,14 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1753
1763
|
};
|
|
1754
1764
|
export {
|
|
1755
1765
|
pn as BasketButton,
|
|
1756
|
-
|
|
1766
|
+
yn as CategoryLabel,
|
|
1757
1767
|
Te as NavButton,
|
|
1758
|
-
|
|
1768
|
+
En as NavSkeleton,
|
|
1759
1769
|
Be as NavbarDrawer,
|
|
1760
1770
|
Me as NavbarDrawerLink,
|
|
1761
|
-
|
|
1771
|
+
Rn as NavigationBar,
|
|
1762
1772
|
cn as SpotlightCard,
|
|
1763
|
-
|
|
1773
|
+
wn as Stepper,
|
|
1764
1774
|
ie as TopNavIconButton,
|
|
1765
1775
|
fn as TopNavigation
|
|
1766
1776
|
};
|