@everlywell/consumer-ui 1.31.0 → 1.32.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { useSteps as Wt, Box as E, Stepper as Mt, Icon as ie, Flex as k, Text as Z, Link as G, Button as vt, Image as Bt, IconButton as Vt, VStack as Nt, Skeleton as Ve, HStack as ot, SkeletonCircle as Le, DrawerContent as Yt, DrawerOverlay as zt, Drawer as Ut, DrawerHeader as Gt, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
1
+ import { useSteps as Wt, Box as E, Stepper as Mt, Icon as ae, Flex as T, Text as Z, Link as G, Button as vt, Image as Bt, IconButton as Vt, VStack as Nt, Skeleton as Ve, HStack as ot, SkeletonCircle as Le, DrawerContent as Yt, DrawerOverlay as zt, Drawer as Ut, DrawerHeader as Gt, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
2
2
  import Ze, { useEffect as q, forwardRef as gt, useRef as Jt, useCallback as xt, useState as W } from "react";
3
3
  import { Text as qt, useBreakpointValue as mt, InputGroup as Qt, Input as en, InputRightElement as tn, Icon as nn } from "@chakra-ui/react";
4
4
  import { CaretRight as st, MagnifyingGlass as bt, List as rn, Basket as ln, CaretLeft as an, X as on, User as ut, QrCode as sn } from "@phosphor-icons/react";
@@ -18,16 +18,16 @@ function cn() {
18
18
  if (ct)
19
19
  return Ce;
20
20
  ct = 1;
21
- var l = Ze, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ var l = Ze, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
22
22
  function m(R, c, x) {
23
- var a, b = {}, w = null, u = null;
23
+ var s, b = {}, w = null, u = null;
24
24
  x !== void 0 && (w = "" + x), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (u = c.ref);
25
- for (a in c)
26
- f.call(c, a) && !v.hasOwnProperty(a) && (b[a] = c[a]);
25
+ for (s in c)
26
+ d.call(c, s) && !v.hasOwnProperty(s) && (b[s] = c[s]);
27
27
  if (R && R.defaultProps)
28
- for (a in c = R.defaultProps, c)
29
- b[a] === void 0 && (b[a] = c[a]);
30
- return { $$typeof: s, type: R, key: w, ref: u, props: b, _owner: j.current };
28
+ for (s in c = R.defaultProps, c)
29
+ b[s] === void 0 && (b[s] = c[s]);
30
+ return { $$typeof: o, type: R, key: w, ref: u, props: b, _owner: j.current };
31
31
  }
32
32
  return Ce.Fragment = p, Ce.jsx = m, Ce.jsxs = m, Ce;
33
33
  }
@@ -41,10 +41,10 @@ var je = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var ft;
45
- function fn() {
46
- return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
47
- var l = Ze, s = Symbol.for("react.element"), p = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), L = Symbol.iterator, M = "@@iterator";
44
+ var dt;
45
+ function dn() {
46
+ return dt || (dt = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var l = Ze, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), L = Symbol.iterator, M = "@@iterator";
48
48
  function Q(e) {
49
49
  if (e === null || typeof e != "object")
50
50
  return null;
@@ -56,10 +56,10 @@ function fn() {
56
56
  {
57
57
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
58
58
  r[i - 1] = arguments[i];
59
- oe("error", e, r);
59
+ se("error", e, r);
60
60
  }
61
61
  }
62
- function oe(e, n, r) {
62
+ function se(e, n, r) {
63
63
  {
64
64
  var i = F.ReactDebugCurrentFrame, g = i.getStackAddendum();
65
65
  g !== "" && (n += "%s", r = r.concat([g]));
@@ -69,10 +69,10 @@ function fn() {
69
69
  C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
70
70
  }
71
71
  }
72
- var se = !1, ue = !1, H = !1, ce = !1, B = !1, y;
72
+ var ue = !1, ce = !1, H = !1, ee = !1, B = !1, y;
73
73
  y = Symbol.for("react.module.reference");
74
74
  function V(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === f || e === v || B || e === j || e === x || e === a || ce || e === u || se || ue || H || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === b || e.$$typeof === m || e.$$typeof === R || e.$$typeof === c || // This needs to include all possible module reference object
75
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || B || e === j || e === x || e === s || ee || e === u || ue || ce || H || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === b || e.$$typeof === m || e.$$typeof === R || e.$$typeof === c || // 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.
@@ -85,7 +85,7 @@ function fn() {
85
85
  var g = n.displayName || n.name || "";
86
86
  return g !== "" ? r + "(" + g + ")" : r;
87
87
  }
88
- function fe(e) {
88
+ function de(e) {
89
89
  return e.displayName || "Context";
90
90
  }
91
91
  function I(e) {
@@ -96,7 +96,7 @@ function fn() {
96
96
  if (typeof e == "string")
97
97
  return e;
98
98
  switch (e) {
99
- case f:
99
+ case d:
100
100
  return "Fragment";
101
101
  case p:
102
102
  return "Portal";
@@ -106,17 +106,17 @@ function fn() {
106
106
  return "StrictMode";
107
107
  case x:
108
108
  return "Suspense";
109
- case a:
109
+ case s:
110
110
  return "SuspenseList";
111
111
  }
112
112
  if (typeof e == "object")
113
113
  switch (e.$$typeof) {
114
114
  case R:
115
115
  var n = e;
116
- return fe(n) + ".Consumer";
116
+ return de(n) + ".Consumer";
117
117
  case m:
118
118
  var r = e;
119
- return fe(r._context) + ".Provider";
119
+ return de(r._context) + ".Provider";
120
120
  case c:
121
121
  return we(e, e.render, "ForwardRef");
122
122
  case b:
@@ -133,18 +133,18 @@ function fn() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var N = Object.assign, Y = 0, ye, Ee, ee, Re, de, _e, Se;
137
- function Te() {
136
+ var N = Object.assign, Y = 0, ye, Ee, te, Re, fe, _e, Se;
137
+ function ke() {
138
138
  }
139
- Te.__reactDisabledLog = !0;
139
+ ke.__reactDisabledLog = !0;
140
140
  function pe() {
141
141
  {
142
142
  if (Y === 0) {
143
- ye = console.log, Ee = console.info, ee = console.warn, Re = console.error, de = console.group, _e = console.groupCollapsed, Se = console.groupEnd;
143
+ ye = console.log, Ee = console.info, te = console.warn, Re = console.error, fe = console.group, _e = console.groupCollapsed, Se = console.groupEnd;
144
144
  var e = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
147
- value: Te,
147
+ value: ke,
148
148
  writable: !0
149
149
  };
150
150
  Object.defineProperties(console, {
@@ -176,13 +176,13 @@ function fn() {
176
176
  value: Ee
177
177
  }),
178
178
  warn: N({}, e, {
179
- value: ee
179
+ value: te
180
180
  }),
181
181
  error: N({}, e, {
182
182
  value: Re
183
183
  }),
184
184
  group: N({}, e, {
185
- value: de
185
+ value: fe
186
186
  }),
187
187
  groupCollapsed: N({}, e, {
188
188
  value: _e
@@ -196,7 +196,7 @@ function fn() {
196
196
  }
197
197
  }
198
198
  var he = F.ReactCurrentDispatcher, ve;
199
- function te(e, n, r) {
199
+ function ne(e, n, r) {
200
200
  {
201
201
  if (ve === void 0)
202
202
  try {
@@ -209,16 +209,16 @@ function fn() {
209
209
  ` + ve + e;
210
210
  }
211
211
  }
212
- var ge = !1, ne;
212
+ var ge = !1, re;
213
213
  {
214
214
  var Ie = typeof WeakMap == "function" ? WeakMap : Map;
215
- ne = new Ie();
215
+ re = new Ie();
216
216
  }
217
- function ke(e, n) {
217
+ function Te(e, n) {
218
218
  if (!e || ge)
219
219
  return "";
220
220
  {
221
- var r = ne.get(e);
221
+ var r = re.get(e);
222
222
  if (r !== void 0)
223
223
  return r;
224
224
  }
@@ -262,31 +262,31 @@ function fn() {
262
262
  }
263
263
  } catch (P) {
264
264
  if (P && i && typeof P.stack == "string") {
265
- for (var d = P.stack.split(`
265
+ for (var f = P.stack.split(`
266
266
  `), O = i.stack.split(`
267
- `), S = d.length - 1, T = O.length - 1; S >= 1 && T >= 0 && d[S] !== O[T]; )
268
- T--;
269
- for (; S >= 1 && T >= 0; S--, T--)
270
- if (d[S] !== O[T]) {
271
- if (S !== 1 || T !== 1)
267
+ `), S = f.length - 1, k = O.length - 1; S >= 1 && k >= 0 && f[S] !== O[k]; )
268
+ k--;
269
+ for (; S >= 1 && k >= 0; S--, k--)
270
+ if (f[S] !== O[k]) {
271
+ if (S !== 1 || k !== 1)
272
272
  do
273
- if (S--, T--, T < 0 || d[S] !== O[T]) {
273
+ if (S--, k--, k < 0 || f[S] !== O[k]) {
274
274
  var $ = `
275
- ` + d[S].replace(" at new ", " at ");
276
- return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, $), $;
275
+ ` + f[S].replace(" at new ", " at ");
276
+ return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, $), $;
277
277
  }
278
- while (S >= 1 && T >= 0);
278
+ while (S >= 1 && k >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
283
  ge = !1, he.current = C, Pe(), Error.prepareStackTrace = g;
284
284
  }
285
- var le = e ? e.displayName || e.name : "", J = le ? te(le) : "";
286
- return typeof e == "function" && ne.set(e, J), J;
285
+ var ie = e ? e.displayName || e.name : "", J = ie ? ne(ie) : "";
286
+ return typeof e == "function" && re.set(e, J), J;
287
287
  }
288
288
  function Ae(e, n, r) {
289
- return ke(e, !1);
289
+ return Te(e, !1);
290
290
  }
291
291
  function Fe(e) {
292
292
  var n = e.prototype;
@@ -296,14 +296,14 @@ function fn() {
296
296
  if (e == null)
297
297
  return "";
298
298
  if (typeof e == "function")
299
- return ke(e, Fe(e));
299
+ return Te(e, Fe(e));
300
300
  if (typeof e == "string")
301
- return te(e);
301
+ return ne(e);
302
302
  switch (e) {
303
303
  case x:
304
- return te("Suspense");
305
- case a:
306
- return te("SuspenseList");
304
+ return ne("Suspense");
305
+ case s:
306
+ return ne("SuspenseList");
307
307
  }
308
308
  if (typeof e == "object")
309
309
  switch (e.$$typeof) {
@@ -321,30 +321,30 @@ function fn() {
321
321
  }
322
322
  return "";
323
323
  }
324
- var z = Object.prototype.hasOwnProperty, xe = {}, o = F.ReactDebugCurrentFrame;
324
+ var z = Object.prototype.hasOwnProperty, xe = {}, a = F.ReactDebugCurrentFrame;
325
325
  function D(e) {
326
326
  if (e) {
327
327
  var n = e._owner, r = K(e.type, e._source, n ? n.type : null);
328
- o.setExtraStackFrame(r);
328
+ a.setExtraStackFrame(r);
329
329
  } else
330
- o.setExtraStackFrame(null);
330
+ a.setExtraStackFrame(null);
331
331
  }
332
332
  function U(e, n, r, i, g) {
333
333
  {
334
334
  var C = Function.call.bind(z);
335
335
  for (var h in e)
336
336
  if (C(e, h)) {
337
- var d = void 0;
337
+ var f = void 0;
338
338
  try {
339
339
  if (typeof e[h] != "function") {
340
340
  var O = Error((i || "React class") + ": " + r + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
341
  throw O.name = "Invariant Violation", O;
342
342
  }
343
- d = e[h](n, h, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ f = e[h](n, h, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
344
  } catch (S) {
345
- d = S;
345
+ f = S;
346
346
  }
347
- d && !(d instanceof Error) && (D(g), _("%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, h, typeof d), D(null)), d instanceof Error && !(d.message in xe) && (xe[d.message] = !0, D(g), _("Failed %s type: %s", r, d.message), D(null));
347
+ f && !(f instanceof Error) && (D(g), _("%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, h, typeof f), D(null)), f instanceof Error && !(f.message in xe) && (xe[f.message] = !0, D(g), _("Failed %s type: %s", r, f.message), D(null));
348
348
  }
349
349
  }
350
350
  }
@@ -424,9 +424,9 @@ function fn() {
424
424
  }
425
425
  }
426
426
  var St = function(e, n, r, i, g, C, h) {
427
- var d = {
427
+ var f = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
- $$typeof: s,
429
+ $$typeof: o,
430
430
  // Built-in properties that belong on the element
431
431
  type: e,
432
432
  key: n,
@@ -435,27 +435,27 @@ function fn() {
435
435
  // Record the component responsible for creating this element.
436
436
  _owner: C
437
437
  };
438
- return d._store = {}, Object.defineProperty(d._store, "validated", {
438
+ return f._store = {}, Object.defineProperty(f._store, "validated", {
439
439
  configurable: !1,
440
440
  enumerable: !1,
441
441
  writable: !0,
442
442
  value: !1
443
- }), Object.defineProperty(d, "_self", {
443
+ }), Object.defineProperty(f, "_self", {
444
444
  configurable: !1,
445
445
  enumerable: !1,
446
446
  writable: !1,
447
447
  value: i
448
- }), Object.defineProperty(d, "_source", {
448
+ }), Object.defineProperty(f, "_source", {
449
449
  configurable: !1,
450
450
  enumerable: !1,
451
451
  writable: !1,
452
452
  value: g
453
- }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
453
+ }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
454
454
  };
455
- function Tt(e, n, r, i, g) {
455
+ function kt(e, n, r, i, g) {
456
456
  {
457
- var C, h = {}, d = null, O = null;
458
- r !== void 0 && (Je(r), d = "" + r), yt(n) && (Je(n.key), d = "" + n.key), wt(n) && (O = n.ref, Et(n, g));
457
+ var C, h = {}, f = null, O = null;
458
+ r !== void 0 && (Je(r), f = "" + r), yt(n) && (Je(n.key), f = "" + n.key), wt(n) && (O = n.ref, Et(n, g));
459
459
  for (C in n)
460
460
  z.call(n, C) && !jt.hasOwnProperty(C) && (h[C] = n[C]);
461
461
  if (e && e.defaultProps) {
@@ -463,15 +463,15 @@ function fn() {
463
463
  for (C in S)
464
464
  h[C] === void 0 && (h[C] = S[C]);
465
465
  }
466
- if (d || O) {
467
- var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- d && Rt(h, T), O && _t(h, T);
466
+ if (f || O) {
467
+ var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
+ f && Rt(h, k), O && _t(h, k);
469
469
  }
470
- return St(e, d, O, g, i, be.current, h);
470
+ return St(e, f, O, g, i, be.current, h);
471
471
  }
472
472
  }
473
473
  var $e = F.ReactCurrentOwner, et = F.ReactDebugCurrentFrame;
474
- function re(e) {
474
+ function le(e) {
475
475
  if (e) {
476
476
  var n = e._owner, r = K(e.type, e._source, n ? n.type : null);
477
477
  et.setExtraStackFrame(r);
@@ -481,7 +481,7 @@ function fn() {
481
481
  var We;
482
482
  We = !1;
483
483
  function Me(e) {
484
- return typeof e == "object" && e !== null && e.$$typeof === s;
484
+ return typeof e == "object" && e !== null && e.$$typeof === o;
485
485
  }
486
486
  function tt() {
487
487
  {
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
495
495
  return "";
496
496
  }
497
497
  }
498
- function kt(e) {
498
+ function Tt(e) {
499
499
  {
500
500
  if (e !== void 0) {
501
501
  var n = e.fileName.replace(/^.*[\\\/]/, ""), r = e.lineNumber;
@@ -529,7 +529,7 @@ Check the top-level render call using <` + r + ">.");
529
529
  return;
530
530
  nt[r] = !0;
531
531
  var i = "";
532
- e && e._owner && e._owner !== $e.current && (i = " It was passed a child from " + I(e._owner.type) + "."), re(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, i), re(null);
532
+ e && e._owner && e._owner !== $e.current && (i = " It was passed a child from " + I(e._owner.type) + "."), le(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, i), le(null);
533
533
  }
534
534
  }
535
535
  function lt(e, n) {
@@ -581,11 +581,11 @@ Check the top-level render call using <` + r + ">.");
581
581
  for (var n = Object.keys(e.props), r = 0; r < n.length; r++) {
582
582
  var i = n[r];
583
583
  if (i !== "children" && i !== "key") {
584
- re(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), re(null);
584
+ le(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), le(null);
585
585
  break;
586
586
  }
587
587
  }
588
- e.ref !== null && (re(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
588
+ e.ref !== null && (le(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), le(null));
589
589
  }
590
590
  }
591
591
  var it = {};
@@ -593,23 +593,23 @@ Check the top-level render call using <` + r + ">.");
593
593
  {
594
594
  var h = V(e);
595
595
  if (!h) {
596
- var d = "";
597
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " 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 O = kt(g);
599
- O ? d += O : d += tt();
596
+ var f = "";
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 O = Tt(g);
599
+ O ? f += O : f += tt();
600
600
  var S;
601
- e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === s ? (S = "<" + (I(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, d);
601
+ e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (I(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
602
602
  }
603
- var T = Tt(e, n, r, g, C);
604
- if (T == null)
605
- return T;
603
+ var k = kt(e, n, r, g, C);
604
+ if (k == null)
605
+ return k;
606
606
  if (h) {
607
607
  var $ = n.children;
608
608
  if ($ !== void 0)
609
609
  if (i)
610
610
  if (me($)) {
611
- for (var le = 0; le < $.length; le++)
612
- lt($[le], e);
611
+ for (var ie = 0; ie < $.length; ie++)
612
+ lt($[ie], e);
613
613
  Object.freeze && Object.freeze($);
614
614
  } else
615
615
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -630,7 +630,7 @@ React keys must be passed directly to JSX without using spread:
630
630
  <%s key={someKey} {...props} />`, Be, J, Ht, J), it[J + Be] = !0;
631
631
  }
632
632
  }
633
- return e === f ? Ot(T) : Dt(T), T;
633
+ return e === d ? Ot(k) : Dt(k), k;
634
634
  }
635
635
  }
636
636
  function Pt(e, n, r) {
@@ -640,27 +640,27 @@ React keys must be passed directly to JSX without using spread:
640
640
  return at(e, n, r, !1);
641
641
  }
642
642
  var At = It, Ft = Pt;
643
- je.Fragment = f, je.jsx = At, je.jsxs = Ft;
643
+ je.Fragment = d, je.jsx = At, je.jsxs = Ft;
644
644
  }()), je;
645
645
  }
646
- process.env.NODE_ENV === "production" ? Ue.exports = cn() : Ue.exports = fn();
646
+ process.env.NODE_ENV === "production" ? Ue.exports = cn() : Ue.exports = dn();
647
647
  var t = Ue.exports;
648
- const Ne = 60, dt = 6, dn = (l) => {
648
+ const Ne = 60, ft = 6, fn = (l) => {
649
649
  const {
650
- activeStepIndex: s,
650
+ activeStepIndex: o,
651
651
  hideIndicators: p = !1,
652
- steps: f,
652
+ steps: d,
653
653
  stepperTheme: j = {
654
654
  light: "eggplant.light",
655
655
  base: "eggplant.base"
656
656
  }
657
657
  } = l, { activeStep: v, setActiveStep: m } = Wt({
658
- index: s,
659
- count: f.length
658
+ index: o,
659
+ count: d.length
660
660
  });
661
661
  return q(() => {
662
- m(s);
663
- }, [s, m]), /* @__PURE__ */ t.jsx(
662
+ m(o);
663
+ }, [o, m]), /* @__PURE__ */ t.jsx(
664
664
  E,
665
665
  { position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
666
666
  Mt,
@@ -670,17 +670,17 @@ const Ne = 60, dt = 6, dn = (l) => {
670
670
  width: "100%",
671
671
  display: "flex",
672
672
  flexWrap: "nowrap",
673
- children: f.map((R, c) => {
674
- const x = v === c, a = c === 0, b = c === f.length - 1, w = v > c;
673
+ children: d.map((R, c) => {
674
+ const x = v === c, s = c === 0, b = c === d.length - 1, w = v > c;
675
675
  let u = `${Ne}px`;
676
- const L = `calc(100% - ((${Ne * (f.length - 1)}px) - (${f.length - 1} * ${dt * 2}px)))`;
677
- return x ? u = L : (a || b) && (u = `${Ne - dt}px`), /* @__PURE__ */ t.jsx(
676
+ const L = `calc(100% - ((${Ne * (d.length - 1)}px) - (${d.length - 1} * ${ft * 2}px)))`;
677
+ return x ? u = L : (s || b) && (u = `${Ne - ft}px`), /* @__PURE__ */ t.jsx(
678
678
  E,
679
679
  {
680
680
  width: u,
681
681
  opacity: w || x ? 1 : 0.2,
682
682
  paddingRight: b ? "0" : "6px",
683
- paddingLeft: a ? "0" : "6px",
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
  E,
@@ -709,24 +709,24 @@ const Ne = 60, dt = 6, dn = (l) => {
709
709
  }
710
710
  ) }
711
711
  );
712
- }, Sn = Ze.memo(dn), Tn = ({
712
+ }, Sn = Ze.memo(fn), kn = ({
713
713
  children: l,
714
- ...s
714
+ ...o
715
715
  }) => /* @__PURE__ */ t.jsx(
716
716
  qt,
717
- { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...s, children: l }
718
- ), Oe = (l, s) => {
717
+ { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
718
+ ), Oe = (l, o) => {
719
719
  const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
720
- return s && !p ? {
720
+ return o && !p ? {
721
721
  to: l
722
722
  } : {
723
723
  href: l
724
724
  };
725
725
  }, Ye = gt(
726
- (l, s) => {
726
+ (l, o) => {
727
727
  const {
728
728
  label: p,
729
- additionalContent: f,
729
+ additionalContent: d,
730
730
  mainTextFontSize: j,
731
731
  linkComponent: v,
732
732
  href: m,
@@ -735,7 +735,7 @@ const Ne = 60, dt = 6, dn = (l) => {
735
735
  return /* @__PURE__ */ t.jsxs(
736
736
  E,
737
737
  {
738
- ref: s,
738
+ ref: o,
739
739
  as: c,
740
740
  display: "flex",
741
741
  alignItems: "center",
@@ -752,7 +752,7 @@ const Ne = 60, dt = 6, dn = (l) => {
752
752
  ...R,
753
753
  children: [
754
754
  /* @__PURE__ */ t.jsx(
755
- ie,
755
+ ae,
756
756
  {
757
757
  display: ["none", null, null, "block"],
758
758
  as: st,
@@ -764,7 +764,7 @@ const Ne = 60, dt = 6, dn = (l) => {
764
764
  }
765
765
  ),
766
766
  /* @__PURE__ */ t.jsxs(
767
- k,
767
+ T,
768
768
  { alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
769
769
  /* @__PURE__ */ t.jsx(
770
770
  Z,
@@ -774,7 +774,7 @@ const Ne = 60, dt = 6, dn = (l) => {
774
774
  children: p
775
775
  }
776
776
  ),
777
- f && (typeof f == "string" ? /* @__PURE__ */ t.jsx(
777
+ d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
778
778
  Z,
779
779
  {
780
780
  fontSize: ["xl", null, null, "lg"],
@@ -785,11 +785,11 @@ const Ne = 60, dt = 6, dn = (l) => {
785
785
  color: "viridian.base"
786
786
  }
787
787
  },
788
- children: f
788
+ children: d
789
789
  }
790
- ) : f),
790
+ ) : d),
791
791
  /* @__PURE__ */ t.jsx(
792
- ie,
792
+ ae,
793
793
  {
794
794
  display: ["block", null, null, "none"],
795
795
  as: st,
@@ -807,12 +807,12 @@ const Ne = 60, dt = 6, dn = (l) => {
807
807
  );
808
808
  }
809
809
  ), De = gt(
810
- (l, s) => {
811
- const { children: p, isSelected: f, ...j } = l, v = l.backgroundColor || (f ? "tints.lightCream" : "transparent");
810
+ (l, o) => {
811
+ const { children: p, isSelected: d, ...j } = l, v = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
812
812
  return /* @__PURE__ */ t.jsx(
813
813
  vt,
814
814
  {
815
- ref: s,
815
+ ref: o,
816
816
  borderRadius: "full",
817
817
  backgroundColor: v,
818
818
  fontSize: "lg !important",
@@ -838,23 +838,23 @@ const Ne = 60, dt = 6, dn = (l) => {
838
838
  }
839
839
  ), pn = ({
840
840
  title: l,
841
- description: s,
841
+ description: o,
842
842
  imageSrc: p,
843
- imageElement: f,
843
+ imageElement: d,
844
844
  button: j,
845
845
  backgroundColor: v = "viridian.wash",
846
846
  onClick: m,
847
847
  href: R,
848
848
  linkComponent: c
849
849
  }) => {
850
- const x = "80px", a = "200px", b = "272px", w = c || G, u = Oe(R, !!c), L = mt({
850
+ const x = "80px", s = "200px", b = "272px", w = c || G, u = Oe(R, !!c), L = mt({
851
851
  base: !1,
852
852
  tablet: !1,
853
853
  largeTablet: !1,
854
854
  desktop: !0
855
855
  });
856
856
  return /* @__PURE__ */ t.jsxs(
857
- k,
857
+ T,
858
858
  {
859
859
  direction: ["row", null, null, "column"],
860
860
  alignItems: ["center"],
@@ -875,7 +875,7 @@ const Ne = 60, dt = 6, dn = (l) => {
875
875
  border: "1px solid",
876
876
  borderColor: "tints.white"
877
877
  },
878
- as: L ? k : w,
878
+ as: L ? T : w,
879
879
  ...L ? {} : u,
880
880
  children: [
881
881
  /* @__PURE__ */ t.jsx(
@@ -889,7 +889,7 @@ const Ne = 60, dt = 6, dn = (l) => {
889
889
  {
890
890
  src: p,
891
891
  objectFit: "cover",
892
- height: [x, null, null, a],
892
+ height: [x, null, null, s],
893
893
  width: "100%",
894
894
  alt: "",
895
895
  "data-testid": "spotlight-card-image"
@@ -897,15 +897,15 @@ const Ne = 60, dt = 6, dn = (l) => {
897
897
  ) : /* @__PURE__ */ t.jsx(
898
898
  E,
899
899
  {
900
- height: [x, null, null, a],
900
+ height: [x, null, null, s],
901
901
  overflow: "hidden",
902
- children: f
902
+ children: d
903
903
  }
904
904
  )
905
905
  }
906
906
  ),
907
907
  /* @__PURE__ */ t.jsxs(
908
- k,
908
+ T,
909
909
  {
910
910
  direction: ["column", null, null, "row"],
911
911
  justifyContent: [null, null, null, "space-between"],
@@ -927,7 +927,7 @@ const Ne = 60, dt = 6, dn = (l) => {
927
927
  ),
928
928
  /* @__PURE__ */ t.jsx(
929
929
  Z,
930
- { fontSize: "sm", color: "tints.black", children: s }
930
+ { fontSize: "sm", color: "tints.black", children: o }
931
931
  )
932
932
  ] }
933
933
  ),
@@ -938,7 +938,7 @@ const Ne = 60, dt = 6, dn = (l) => {
938
938
  ]
939
939
  }
940
940
  );
941
- }, ae = (l) => /* @__PURE__ */ t.jsx(
941
+ }, oe = (l) => /* @__PURE__ */ t.jsx(
942
942
  Vt,
943
943
  {
944
944
  size: "sm",
@@ -985,16 +985,16 @@ const Ne = 60, dt = 6, dn = (l) => {
985
985
  }
986
986
  ), vn = ({
987
987
  desktopTopButtons: l,
988
- kitRegistrationElement: s,
988
+ kitRegistrationElement: o,
989
989
  profileElement: p,
990
- cartElement: f,
990
+ cartElement: d,
991
991
  onSearchClick: j,
992
992
  onMenuClick: v,
993
993
  hasSearch: m = !1,
994
994
  logoLink: R = "https://www.everlywell.com",
995
995
  setTopOffset: c,
996
996
  linkComponent: x,
997
- onLogoClick: a
997
+ onLogoClick: s
998
998
  }) => {
999
999
  const b = Jt(null), w = xt(() => {
1000
1000
  if (b.current) {
@@ -1019,47 +1019,47 @@ const Ne = 60, dt = 6, dn = (l) => {
1019
1019
  zIndex: ["sticky", null, null, "tooltip"],
1020
1020
  onMouseEnter: w,
1021
1021
  children: /* @__PURE__ */ t.jsxs(
1022
- k,
1022
+ T,
1023
1023
  { justifyContent: "space-between", alignItems: "center", children: [
1024
1024
  /* @__PURE__ */ t.jsxs(
1025
- k,
1025
+ T,
1026
1026
  { alignItems: "center", gap: "5", children: [
1027
1027
  /* @__PURE__ */ t.jsx(
1028
1028
  E,
1029
1029
  {
1030
1030
  "aria-label": "Go to homepage",
1031
- onClick: a,
1031
+ onClick: s,
1032
1032
  as: x || G,
1033
1033
  ...Oe(R, !!x),
1034
1034
  children: /* @__PURE__ */ t.jsx(hn, {})
1035
1035
  }
1036
1036
  ),
1037
1037
  /* @__PURE__ */ t.jsx(
1038
- k,
1038
+ T,
1039
1039
  { display: ["none", null, null, "flex"], children: l }
1040
1040
  )
1041
1041
  ] }
1042
1042
  ),
1043
1043
  /* @__PURE__ */ t.jsxs(
1044
- k,
1044
+ T,
1045
1045
  { alignItems: "center", gap: "2", children: [
1046
1046
  /* @__PURE__ */ t.jsx(
1047
1047
  E,
1048
- { display: ["none", null, null, "block"], children: s }
1048
+ { display: ["none", null, null, "block"], children: o }
1049
1049
  ),
1050
1050
  m ? /* @__PURE__ */ t.jsx(
1051
- ae,
1051
+ oe,
1052
1052
  {
1053
1053
  "aria-label": "Search",
1054
- icon: /* @__PURE__ */ t.jsx(ie, { as: bt }),
1054
+ icon: /* @__PURE__ */ t.jsx(ae, { as: bt }),
1055
1055
  onClick: j
1056
1056
  }
1057
1057
  ) : null,
1058
- f,
1058
+ d,
1059
1059
  /* @__PURE__ */ t.jsx(
1060
1060
  E,
1061
1061
  { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1062
- ae,
1062
+ oe,
1063
1063
  {
1064
1064
  icon: /* @__PURE__ */ t.jsx(rn, {}),
1065
1065
  "aria-label": "menu",
@@ -1077,11 +1077,11 @@ const Ne = 60, dt = 6, dn = (l) => {
1077
1077
  );
1078
1078
  }, gn = ({
1079
1079
  count: l = 0,
1080
- ...s
1080
+ ...o
1081
1081
  }) => /* @__PURE__ */ t.jsxs(
1082
1082
  E,
1083
1083
  { position: "relative", display: "inline-block", children: [
1084
- /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...s }),
1084
+ /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...o }),
1085
1085
  l > 0 && /* @__PURE__ */ t.jsx(
1086
1086
  E,
1087
1087
  {
@@ -1104,48 +1104,68 @@ const Ne = 60, dt = 6, dn = (l) => {
1104
1104
  }
1105
1105
  )
1106
1106
  ] }
1107
- ), kn = ({
1108
- numLinks: l = 5,
1109
- showPromoButton: s = !0
1107
+ ), Tn = ({
1108
+ numDesktopLinks: l = 5,
1109
+ showPromoButton: o = !1
1110
1110
  }) => /* @__PURE__ */ t.jsx(
1111
1111
  Nt,
1112
1112
  { spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
1113
1113
  E,
1114
- { paddingY: 4, paddingX: 6, borderBottomWidth: "1px", children: /* @__PURE__ */ t.jsxs(
1115
- k,
1116
- { justify: "space-between", align: "center", children: [
1117
- /* @__PURE__ */ t.jsx(Ve, { w: "120px", h: "48px" }),
1118
- /* @__PURE__ */ t.jsxs(
1119
- ot,
1120
- { spacing: 8, marginLeft: 12, children: [
1121
- Array.from({ length: l }).map(
1122
- (p, f) => /* @__PURE__ */ t.jsx(Ve, { width: "90px", height: "48px" }, f)
1123
- ),
1124
- s && /* @__PURE__ */ t.jsx(Ve, { width: "110px", height: "48px", borderRadius: "full" })
1125
- ] }
1126
- ),
1127
- /* @__PURE__ */ t.jsxs(
1128
- ot,
1129
- { spacing: 4, ml: "auto", children: [
1130
- /* @__PURE__ */ t.jsx(Le, { width: "120px", height: "48px" }),
1131
- " ",
1132
- /* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
1133
- " ",
1134
- /* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
1135
- " ",
1136
- /* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
1137
- " "
1138
- ] }
1139
- )
1140
- ] }
1141
- ) }
1114
+ {
1115
+ paddingY: 4,
1116
+ paddingX: 6,
1117
+ borderBottomWidth: "1px",
1118
+ borderColor: "tints.lightCream",
1119
+ children: /* @__PURE__ */ t.jsxs(
1120
+ T,
1121
+ { justify: "space-between", align: "center", children: [
1122
+ /* @__PURE__ */ t.jsx(Ve, { w: "120px", h: "48px" }),
1123
+ /* @__PURE__ */ t.jsxs(
1124
+ ot,
1125
+ {
1126
+ spacing: 8,
1127
+ marginLeft: 12,
1128
+ display: ["none", null, null, "flex"],
1129
+ "data-testid": "desktop-nav",
1130
+ children: [
1131
+ Array.from({ length: l }).map(
1132
+ (p, d) => /* @__PURE__ */ t.jsx(Ve, { width: "90px", height: "48px" }, d)
1133
+ ),
1134
+ o && /* @__PURE__ */ t.jsx(Ve, { width: "110px", height: "48px", borderRadius: "full" })
1135
+ ]
1136
+ }
1137
+ ),
1138
+ /* @__PURE__ */ t.jsxs(
1139
+ ot,
1140
+ { spacing: 4, ml: "auto", children: [
1141
+ /* @__PURE__ */ t.jsx(
1142
+ Le,
1143
+ {
1144
+ width: "120px",
1145
+ height: "48px",
1146
+ display: ["none", null, null, "block"],
1147
+ "data-testid": "register-kit"
1148
+ }
1149
+ ),
1150
+ " ",
1151
+ /* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
1152
+ " ",
1153
+ /* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
1154
+ " ",
1155
+ /* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
1156
+ " "
1157
+ ] }
1158
+ )
1159
+ ] }
1160
+ )
1161
+ }
1142
1162
  ) }
1143
- ), xn = (l, s) => {
1163
+ ), xn = (l, o) => {
1144
1164
  let p;
1145
- return (...f) => {
1165
+ return (...d) => {
1146
1166
  p && clearTimeout(p), p = setTimeout(() => {
1147
- l(...f);
1148
- }, s);
1167
+ l(...d);
1168
+ }, o);
1149
1169
  };
1150
1170
  }, Ge = "nav-drawer-hover", pt = (l) => {
1151
1171
  window.dispatchEvent(
@@ -1155,18 +1175,18 @@ const Ne = 60, dt = 6, dn = (l) => {
1155
1175
  cancelable: !0
1156
1176
  })
1157
1177
  );
1158
- }, mn = (l = !1, s = !1, p = !1) => l || !s ? "column" : p ? "row" : "row-reverse", bn = Ke(Yt), Cn = Ke(zt), ze = ({
1178
+ }, mn = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", bn = Ke(Yt), Cn = Ke(zt), ze = ({
1159
1179
  isOpen: l = !1,
1160
- onClose: s,
1180
+ onClose: o,
1161
1181
  title: p,
1162
- navDrawerLinks: f,
1182
+ navDrawerLinks: d,
1163
1183
  bottomNavButtons: j,
1164
1184
  spotlightCards: v,
1165
1185
  bottomButton: m,
1166
1186
  hasBackButton: R = !0,
1167
1187
  onBackClick: c,
1168
1188
  hasOnlySpotlightCards: x = !1,
1169
- hasSearch: a = !1,
1189
+ hasSearch: s = !1,
1170
1190
  onSearch: b = () => ({}),
1171
1191
  topOffset: w
1172
1192
  }) => {
@@ -1175,26 +1195,26 @@ const Ne = 60, dt = 6, dn = (l) => {
1175
1195
  tablet: !1,
1176
1196
  largeTablet: !1,
1177
1197
  desktop: !0
1178
- }), L = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1), oe = () => {
1198
+ }), L = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1), se = () => {
1179
1199
  Q((H) => H + 1);
1180
- }, se = xt(
1200
+ }, ue = xt(
1181
1201
  xn((H) => {
1182
- b(H), oe();
1202
+ b(H), se();
1183
1203
  }, 100),
1184
1204
  []
1185
1205
  );
1186
1206
  q(() => {
1187
1207
  l && _(!0);
1188
1208
  }, [l]);
1189
- const ue = () => {
1190
- l || (_(!1), s());
1209
+ const ce = () => {
1210
+ l || (_(!1), o());
1191
1211
  };
1192
1212
  return /* @__PURE__ */ t.jsx(
1193
1213
  Ut,
1194
1214
  {
1195
1215
  isOpen: F || l,
1196
1216
  onClose: () => {
1197
- F && u || s();
1217
+ F && u || o();
1198
1218
  },
1199
1219
  placement: L,
1200
1220
  blockScrollOnMount: !1,
@@ -1227,13 +1247,13 @@ const Ne = 60, dt = 6, dn = (l) => {
1227
1247
  {
1228
1248
  onClick: (H) => {
1229
1249
  const B = H.target.closest("a");
1230
- B && B.href === window.location.href && s();
1250
+ B && B.href === window.location.href && o();
1231
1251
  },
1232
1252
  onMouseEnter: () => {
1233
- !a && u && pt(!0);
1253
+ u && pt(!0);
1234
1254
  },
1235
1255
  onMouseLeave: () => {
1236
- !a && u && pt(!1);
1256
+ u && pt(!1);
1237
1257
  },
1238
1258
  paddingTop: "4",
1239
1259
  paddingX: [4, null, null, 12],
@@ -1242,7 +1262,7 @@ const Ne = 60, dt = 6, dn = (l) => {
1242
1262
  maxHeight: "100vh",
1243
1263
  position: "relative",
1244
1264
  top: u ? `${w}px !important` : void 0,
1245
- onAnimationComplete: ue,
1265
+ onAnimationComplete: ce,
1246
1266
  ...u ? {
1247
1267
  initial: { height: 0, opacity: 0 },
1248
1268
  animate: { height: "auto", opacity: 1 },
@@ -1250,26 +1270,26 @@ const Ne = 60, dt = 6, dn = (l) => {
1250
1270
  transition: { duration: 0.3 }
1251
1271
  } : {},
1252
1272
  children: [
1253
- !a && u ? null : /* @__PURE__ */ t.jsxs(
1273
+ !s && u ? null : /* @__PURE__ */ t.jsxs(
1254
1274
  Gt,
1255
1275
  {
1256
1276
  padding: "0",
1257
- flexDirection: a ? "column" : "row",
1258
- gap: a ? "4" : "0",
1277
+ flexDirection: s ? "column" : "row",
1278
+ gap: s ? "4" : "0",
1259
1279
  children: [
1260
1280
  u ? null : /* @__PURE__ */ t.jsxs(
1261
- k,
1281
+ T,
1262
1282
  {
1263
1283
  width: "100%",
1264
1284
  justifyContent: "space-between",
1265
1285
  alignItems: "center",
1266
1286
  children: [
1267
1287
  R ? /* @__PURE__ */ t.jsx(
1268
- ae,
1288
+ oe,
1269
1289
  {
1270
1290
  icon: /* @__PURE__ */ t.jsx(an, {}),
1271
1291
  onClick: () => {
1272
- c && c(), s();
1292
+ c && c(), o();
1273
1293
  },
1274
1294
  "aria-label": "Back"
1275
1295
  }
@@ -1283,24 +1303,24 @@ const Ne = 60, dt = 6, dn = (l) => {
1283
1303
  }
1284
1304
  ),
1285
1305
  /* @__PURE__ */ t.jsx(
1286
- ae,
1306
+ oe,
1287
1307
  {
1288
1308
  icon: /* @__PURE__ */ t.jsx(on, {}),
1289
- onClick: s,
1309
+ onClick: o,
1290
1310
  "aria-label": "Close"
1291
1311
  }
1292
1312
  )
1293
1313
  ]
1294
1314
  }
1295
1315
  ),
1296
- a && /* @__PURE__ */ t.jsxs(
1316
+ s && /* @__PURE__ */ t.jsxs(
1297
1317
  Qt,
1298
1318
  { width: "100%", children: [
1299
1319
  /* @__PURE__ */ t.jsx(
1300
1320
  en,
1301
1321
  {
1302
1322
  onChange: (H) => {
1303
- se(H.target.value);
1323
+ ue(H.target.value);
1304
1324
  },
1305
1325
  placeholder: "Search",
1306
1326
  autoFocus: !0,
@@ -1346,7 +1366,7 @@ const Ne = 60, dt = 6, dn = (l) => {
1346
1366
  flexDirection: mn(
1347
1367
  x,
1348
1368
  u,
1349
- a
1369
+ s
1350
1370
  ),
1351
1371
  gap: "24px",
1352
1372
  justifyContent: "space-between"
@@ -1369,14 +1389,14 @@ const Ne = 60, dt = 6, dn = (l) => {
1369
1389
  }
1370
1390
  ) : null,
1371
1391
  /* @__PURE__ */ t.jsxs(
1372
- k,
1392
+ T,
1373
1393
  {
1374
1394
  position: [null, null, null, "relative"],
1375
1395
  flexDirection: "column",
1376
1396
  gap: "6",
1377
- width: ["100%", null, null, a ? null : "auto"],
1397
+ width: ["100%", null, null, s ? null : "auto"],
1378
1398
  children: [
1379
- f ? /* @__PURE__ */ t.jsx(E, { children: f }) : null,
1399
+ d ? /* @__PURE__ */ t.jsx(E, { children: d }) : null,
1380
1400
  j && !u ? /* @__PURE__ */ t.jsx(E, { children: j }) : null,
1381
1401
  m ? /* @__PURE__ */ t.jsx(
1382
1402
  E,
@@ -1405,58 +1425,58 @@ const Ne = 60, dt = 6, dn = (l) => {
1405
1425
  }
1406
1426
  );
1407
1427
  }, ht = (l) => {
1408
- const s = /* @__PURE__ */ new Set();
1409
- return l.reduce((p, f) => {
1428
+ const o = /* @__PURE__ */ new Set();
1429
+ return l.reduce((p, d) => {
1410
1430
  var v;
1411
- const j = ((v = f.sections) == null ? void 0 : v.reduce((m, R) => {
1412
- const c = R.links.filter((x) => s.has(x.label) || x.isSearchable !== !0 ? !1 : (s.add(x.label), !0));
1431
+ const j = ((v = d.sections) == null ? void 0 : v.reduce((m, R) => {
1432
+ const c = R.links.filter((x) => o.has(x.label) || x.isSearchable !== !0 ? !1 : (o.add(x.label), !0));
1413
1433
  return [...m, ...c];
1414
1434
  }, [])) ?? [];
1415
1435
  return [...p, ...j];
1416
1436
  }, []);
1417
1437
  }, jn = ({
1418
1438
  source: l,
1419
- onSearchCallback: s,
1439
+ onSearchCallback: o,
1420
1440
  isActive: p
1421
1441
  }) => {
1422
- const [f, j] = W(""), [v, m] = W([]), R = (a, b) => {
1423
- if (!a)
1442
+ const [d, j] = W(""), [v, m] = W([]), R = (s, b) => {
1443
+ if (!s)
1424
1444
  return [];
1425
- const w = a.toLowerCase();
1445
+ const w = s.toLowerCase();
1426
1446
  return b.filter((u) => {
1427
1447
  const L = u.label.toLowerCase().includes(w), M = typeof u.additionalContent == "string" && u.additionalContent.toLowerCase().includes(w);
1428
1448
  return L || M;
1429
1449
  }).sort((u, L) => u.label.localeCompare(L.label));
1430
- }, c = (a) => {
1431
- if (j(a), !a) {
1450
+ }, c = (s) => {
1451
+ if (j(s), !s) {
1432
1452
  m([]);
1433
1453
  return;
1434
1454
  }
1435
- const b = R(a, l);
1436
- m(b), s && s(a, b);
1455
+ const b = R(s, l);
1456
+ m(b), o && o(s, b);
1437
1457
  }, x = () => {
1438
1458
  j(""), m([]);
1439
1459
  };
1440
1460
  return q(() => {
1441
1461
  p || (j(""), m([]));
1442
1462
  }, [p]), {
1443
- query: f,
1463
+ query: d,
1444
1464
  results: v,
1445
1465
  handleClose: x,
1446
1466
  handleSearch: c
1447
1467
  };
1448
1468
  }, Ln = ({
1449
1469
  categories: l = [],
1450
- onCartClick: s,
1470
+ onCartClick: o,
1451
1471
  mainCategoryLabel: p = "Menu",
1452
- logoLink: f = "https://www.everlywell.com",
1472
+ logoLink: d = "https://www.everlywell.com",
1453
1473
  hasSearch: j = !0,
1454
1474
  onSearchClick: v,
1455
1475
  registrationUrl: m,
1456
1476
  profileUrl: R = "https://secure.everlywell.com/login",
1457
1477
  mobileBottomButtons: c = [],
1458
1478
  numberOfCartItems: x = 0,
1459
- linkComponent: a,
1479
+ linkComponent: s,
1460
1480
  onSearchCallback: b,
1461
1481
  onLinkClick: w,
1462
1482
  onCategoryOpen: u,
@@ -1465,23 +1485,23 @@ const Ne = 60, dt = 6, dn = (l) => {
1465
1485
  onRegisterKitClick: Q,
1466
1486
  onProfileClick: F,
1467
1487
  onLogoClick: _,
1468
- shopAllProductsUrl: oe,
1469
- onShopAllProductsClick: se
1488
+ shopAllProductsUrl: se,
1489
+ onShopAllProductsClick: ue
1470
1490
  }) => {
1471
1491
  var K, z, xe;
1472
- const [ue, H] = W(!1), [ce, B] = W(!1), [y, V] = W(null), [we, fe] = W(!1), [I, N] = W(!1), [Y, ye] = W(0), {
1492
+ const [ce, H] = W(!1), [ee, B] = W(!1), [y, V] = W(null), [we, de] = W(!1), [I, N] = W(!1), [Y, ye] = W(0), {
1473
1493
  query: Ee,
1474
- results: ee,
1494
+ results: te,
1475
1495
  handleSearch: Re
1476
1496
  } = jn({
1477
1497
  source: ht(l),
1478
1498
  onSearchCallback: b,
1479
- isActive: ce
1480
- }), de = ee.length > 0, _e = a || G, Se = Oe(oe, !!a), Te = Ee && /* @__PURE__ */ t.jsxs(
1481
- k,
1482
- { gap: de ? "6" : 0, direction: "column", children: [
1483
- de ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${ee.length} Results` }) : /* @__PURE__ */ t.jsxs(
1484
- k,
1499
+ isActive: ee
1500
+ }), fe = te.length > 0, _e = s || G, Se = Oe(se, !!s), ke = Ee && /* @__PURE__ */ t.jsxs(
1501
+ T,
1502
+ { gap: fe ? "6" : 0, direction: "column", children: [
1503
+ fe ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${te.length} Results` }) : /* @__PURE__ */ t.jsxs(
1504
+ T,
1485
1505
  { direction: "column", gap: "6", alignItems: "flex-start", children: [
1486
1506
  /* @__PURE__ */ t.jsx(
1487
1507
  Z,
@@ -1491,7 +1511,7 @@ const Ne = 60, dt = 6, dn = (l) => {
1491
1511
  vt,
1492
1512
  {
1493
1513
  as: _e,
1494
- onClick: se,
1514
+ onClick: ue,
1495
1515
  _hover: { textDecoration: "none" },
1496
1516
  width: ["100%", null, null, "auto"],
1497
1517
  ...Se,
@@ -1502,95 +1522,95 @@ const Ne = 60, dt = 6, dn = (l) => {
1502
1522
  ),
1503
1523
  /* @__PURE__ */ t.jsx(
1504
1524
  Kt,
1505
- { columns: [1, 1, 1, 4], children: ee.map(
1506
- (o, D) => /* @__PURE__ */ t.jsx(
1525
+ { columns: [1, 1, 1, 4], children: te.map(
1526
+ (a, D) => /* @__PURE__ */ t.jsx(
1507
1527
  Xt,
1508
1528
  { children: /* @__PURE__ */ t.jsx(
1509
1529
  Ye,
1510
1530
  {
1511
- href: o.href,
1512
- label: o.label,
1513
- additionalContent: o == null ? void 0 : o.additionalContent,
1514
- linkComponent: a
1531
+ href: a.href,
1532
+ label: a.label,
1533
+ additionalContent: a == null ? void 0 : a.additionalContent,
1534
+ linkComponent: s
1515
1535
  }
1516
1536
  ) },
1517
- `${o.label}-${D}`
1537
+ `${a.label}-${D}`
1518
1538
  )
1519
1539
  ) }
1520
1540
  )
1521
1541
  ] }
1522
1542
  ), pe = () => {
1523
1543
  H(!1), V(null);
1524
- }, Pe = (o) => {
1525
- V(o);
1526
- }, he = (o) => {
1527
- fe(!0), B(!1), (o.sections || o.spotlightCards) && V(o);
1544
+ }, Pe = (a) => {
1545
+ V(a);
1546
+ }, he = (a) => {
1547
+ de(!0), B(!1), (a.sections || a.spotlightCards) && V(a);
1528
1548
  }, ve = () => {
1529
- fe(!1);
1549
+ de(!1);
1530
1550
  };
1531
1551
  q(() => {
1532
- const o = (D) => {
1552
+ const a = (D) => {
1533
1553
  N(D.detail.isHovering);
1534
1554
  };
1535
1555
  return window.addEventListener(
1536
1556
  Ge,
1537
- o
1557
+ a
1538
1558
  ), () => {
1539
1559
  window.removeEventListener(
1540
1560
  Ge,
1541
- o
1561
+ a
1542
1562
  );
1543
1563
  };
1544
1564
  }, []), q(() => {
1545
1565
  !we && !I && (V(null), B(!1));
1546
1566
  }, [we, I]), q(() => {
1547
- let o = window.location.href;
1567
+ let a = window.location.href;
1548
1568
  const D = () => {
1549
1569
  const A = window.location.href;
1550
- A !== o && (o = A, pe(), V(null));
1570
+ A !== a && (a = A, pe(), V(null));
1551
1571
  }, U = setInterval(D, 100);
1552
1572
  return window.addEventListener("popstate", D), () => {
1553
1573
  window.removeEventListener("popstate", D), clearInterval(U);
1554
1574
  };
1555
1575
  }, []);
1556
- const te = () => {
1576
+ const ne = () => {
1557
1577
  V(null), M == null || M();
1558
1578
  }, ge = /* @__PURE__ */ t.jsx(
1559
1579
  t.Fragment,
1560
1580
  { children: l == null ? void 0 : l.map(
1561
- (o, D) => /* @__PURE__ */ t.jsx(
1581
+ (a, D) => /* @__PURE__ */ t.jsx(
1562
1582
  De,
1563
1583
  {
1564
1584
  onMouseEnter: () => {
1565
- he(o), u == null || u(o.label);
1585
+ he(a), u == null || u(a.label);
1566
1586
  },
1567
1587
  onMouseLeave: ve,
1568
- isSelected: (y == null ? void 0 : y.label) === o.label,
1569
- ...o.buttonProps,
1570
- children: o.label
1588
+ isSelected: (y == null ? void 0 : y.label) === a.label,
1589
+ ...a.buttonProps,
1590
+ children: a.label
1571
1591
  },
1572
- `${o.label}-${D}`
1592
+ `${a.label}-${D}`
1573
1593
  )
1574
1594
  ) }
1575
- ), ne = (K = l.filter((o) => o.isMobileTopLink !== !1)) == null ? void 0 : K.map(
1576
- (o) => /* @__PURE__ */ t.jsx(
1595
+ ), re = (K = l.filter((a) => a.isMobileTopLink !== !1)) == null ? void 0 : K.map(
1596
+ (a) => /* @__PURE__ */ t.jsx(
1577
1597
  E,
1578
1598
  {
1579
1599
  onClick: () => {
1580
- Pe(o), u == null || u(o.label);
1600
+ Pe(a), u == null || u(a.label);
1581
1601
  },
1582
1602
  children: /* @__PURE__ */ t.jsx(
1583
1603
  Ye,
1584
1604
  {
1585
- label: o.label,
1605
+ label: a.label,
1586
1606
  role: "link",
1587
- additionalContent: o.additionalContent,
1607
+ additionalContent: a.additionalContent,
1588
1608
  mainTextFontSize: "3xl",
1589
- linkComponent: a
1609
+ linkComponent: s
1590
1610
  }
1591
1611
  )
1592
1612
  },
1593
- o.label
1613
+ a.label
1594
1614
  )
1595
1615
  );
1596
1616
  ht(l);
@@ -1606,10 +1626,10 @@ const Ne = 60, dt = 6, dn = (l) => {
1606
1626
  backgroundColor: "tints.cream",
1607
1627
  onClick: F,
1608
1628
  children: /* @__PURE__ */ t.jsxs(
1609
- k,
1629
+ T,
1610
1630
  { gap: "2", children: [
1611
1631
  "My Everly",
1612
- /* @__PURE__ */ t.jsx(ie, { as: ut, size: 24 })
1632
+ /* @__PURE__ */ t.jsx(ae, { as: ut, size: 24 })
1613
1633
  ] }
1614
1634
  )
1615
1635
  },
@@ -1624,28 +1644,28 @@ const Ne = 60, dt = 6, dn = (l) => {
1624
1644
  backgroundColor: "tints.cream",
1625
1645
  onClick: Q,
1626
1646
  children: /* @__PURE__ */ t.jsxs(
1627
- k,
1647
+ T,
1628
1648
  { gap: "2", children: [
1629
1649
  "Register kit",
1630
- /* @__PURE__ */ t.jsx(ie, { as: sn, size: 24 })
1650
+ /* @__PURE__ */ t.jsx(ae, { as: sn, size: 24 })
1631
1651
  ] }
1632
1652
  )
1633
1653
  },
1634
1654
  "register-kit"
1635
1655
  )
1636
1656
  ] }
1637
- ), ke = /* @__PURE__ */ t.jsxs(
1638
- k,
1657
+ ), Te = /* @__PURE__ */ t.jsxs(
1658
+ T,
1639
1659
  { gap: "2", flexDirection: "column", children: [
1640
1660
  c,
1641
1661
  Ie
1642
1662
  ] }
1643
1663
  ), Ae = y ? /* @__PURE__ */ t.jsx(
1644
- k,
1645
- { direction: ["column", null, null, "row"], gap: "8", children: (z = y == null ? void 0 : y.sections) == null ? void 0 : z.map((o, D) => {
1664
+ T,
1665
+ { direction: ["column", null, null, "row"], gap: "8", children: (z = y == null ? void 0 : y.sections) == null ? void 0 : z.map((a, D) => {
1646
1666
  const U = [];
1647
- for (let A = 0; A < o.links.length; A += 3)
1648
- U.push(o.links.slice(A, A + 3));
1667
+ for (let A = 0; A < a.links.length; A += 3)
1668
+ U.push(a.links.slice(A, A + 3));
1649
1669
  return /* @__PURE__ */ t.jsxs(
1650
1670
  E,
1651
1671
  { children: [
@@ -1655,17 +1675,17 @@ const Ne = 60, dt = 6, dn = (l) => {
1655
1675
  fontSize: "md",
1656
1676
  color: "tints.uiGrey",
1657
1677
  marginBottom: [0, null, null, 6],
1658
- children: o.title
1678
+ children: a.title
1659
1679
  }
1660
1680
  ),
1661
1681
  /* @__PURE__ */ t.jsx(
1662
- k,
1682
+ T,
1663
1683
  {
1664
1684
  flexDirection: ["column", null, null, "row"],
1665
1685
  gap: [null, null, null, 8],
1666
1686
  children: U == null ? void 0 : U.map(
1667
1687
  (A, me) => /* @__PURE__ */ t.jsx(
1668
- k,
1688
+ T,
1669
1689
  {
1670
1690
  flexDirection: ["column"],
1671
1691
  gap: [null, null, null, 5],
@@ -1677,7 +1697,7 @@ const Ne = 60, dt = 6, dn = (l) => {
1677
1697
  label: X.label,
1678
1698
  href: X.href,
1679
1699
  additionalContent: X.additionalContent,
1680
- linkComponent: a,
1700
+ linkComponent: s,
1681
1701
  onClick: () => w == null ? void 0 : w(X.label)
1682
1702
  },
1683
1703
  X.label
@@ -1690,11 +1710,11 @@ const Ne = 60, dt = 6, dn = (l) => {
1690
1710
  }
1691
1711
  )
1692
1712
  ] },
1693
- `${o.title}-${D}`
1713
+ `${a.title}-${D}`
1694
1714
  );
1695
1715
  }) }
1696
1716
  ) : null, Fe = y != null && y.spotlightCards ? (xe = y.spotlightCards) == null ? void 0 : xe.map(
1697
- (o) => /* @__PURE__ */ t.jsx(pn, { ...o }, o.title)
1717
+ (a) => /* @__PURE__ */ t.jsx(pn, { ...a }, a.title)
1698
1718
  ) : /* @__PURE__ */ t.jsx(E, {});
1699
1719
  return /* @__PURE__ */ t.jsxs(
1700
1720
  t.Fragment,
@@ -1715,25 +1735,25 @@ const Ne = 60, dt = 6, dn = (l) => {
1715
1735
  ),
1716
1736
  profileElement: /* @__PURE__ */ t.jsx(
1717
1737
  G,
1718
- { href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(ie, { as: ut }), "aria-label": "Profile" }) }
1738
+ { href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ae, { as: ut }), "aria-label": "Profile" }) }
1719
1739
  ),
1720
1740
  cartElement: /* @__PURE__ */ t.jsx(
1721
1741
  gn,
1722
1742
  {
1723
1743
  "aria-label": "Cart",
1724
1744
  count: x,
1725
- onClick: s
1745
+ onClick: o
1726
1746
  }
1727
1747
  ),
1728
1748
  onSearchClick: () => {
1729
- B(!0), v == null || v();
1749
+ B(!ee), v == null || v();
1730
1750
  },
1731
1751
  onMenuClick: () => {
1732
1752
  H(!0), L == null || L();
1733
1753
  },
1734
1754
  hasSearch: j,
1735
- logoLink: f,
1736
- linkComponent: a,
1755
+ logoLink: d,
1756
+ linkComponent: s,
1737
1757
  onLogoClick: _,
1738
1758
  setTopOffset: ye
1739
1759
  }
@@ -1741,11 +1761,11 @@ const Ne = 60, dt = 6, dn = (l) => {
1741
1761
  /* @__PURE__ */ t.jsx(
1742
1762
  ze,
1743
1763
  {
1744
- isOpen: ue,
1764
+ isOpen: ce,
1745
1765
  onClose: pe,
1746
1766
  title: p,
1747
- navDrawerLinks: ne,
1748
- bottomNavButtons: ke,
1767
+ navDrawerLinks: re,
1768
+ bottomNavButtons: Te,
1749
1769
  hasBackButton: !1,
1750
1770
  topOffset: Y
1751
1771
  }
@@ -1759,7 +1779,7 @@ const Ne = 60, dt = 6, dn = (l) => {
1759
1779
  },
1760
1780
  title: (y == null ? void 0 : y.label) || "",
1761
1781
  navDrawerLinks: Ae,
1762
- onBackClick: te,
1782
+ onBackClick: ne,
1763
1783
  spotlightCards: Fe,
1764
1784
  hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
1765
1785
  bottomButton: y == null ? void 0 : y.bottomButton,
@@ -1769,10 +1789,10 @@ const Ne = 60, dt = 6, dn = (l) => {
1769
1789
  /* @__PURE__ */ t.jsx(
1770
1790
  ze,
1771
1791
  {
1772
- isOpen: ce,
1792
+ isOpen: ee,
1773
1793
  onClose: () => B(!1),
1774
1794
  title: "Search",
1775
- navDrawerLinks: Te,
1795
+ navDrawerLinks: ke,
1776
1796
  onSearch: Re,
1777
1797
  hasSearch: !0,
1778
1798
  hasBackButton: !1,
@@ -1784,14 +1804,14 @@ const Ne = 60, dt = 6, dn = (l) => {
1784
1804
  };
1785
1805
  export {
1786
1806
  gn as BasketButton,
1787
- Tn as CategoryLabel,
1807
+ kn as CategoryLabel,
1788
1808
  De as NavButton,
1789
- kn as NavSkeleton,
1809
+ Tn as NavSkeleton,
1790
1810
  ze as NavbarDrawer,
1791
1811
  Ye as NavbarDrawerLink,
1792
1812
  Ln as NavigationBar,
1793
1813
  pn as SpotlightCard,
1794
1814
  Sn as Stepper,
1795
- ae as TopNavIconButton,
1815
+ oe as TopNavIconButton,
1796
1816
  vn as TopNavigation
1797
1817
  };