@everlywell/consumer-ui 1.39.5 → 1.40.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,60 +1,689 @@
1
- import { useSteps as Ye, Box as h, Stepper as Ke, Icon as M, Flex as p, Text as S, Link as E, Button as Ee, Image as Je, IconButton as qe, theme as O, VStack as et, Skeleton as q, HStack as we, SkeletonCircle as Z, DrawerContent as tt, DrawerOverlay as nt, Drawer as lt, DrawerHeader as it, DrawerBody as ot, Grid as rt, GridItem as at, Accordion as st, AccordionItem as ct, AccordionButton as dt, AccordionPanel as ut, InputGroup as ht, Input as pt, InputRightElement as gt, Container as ft } from "@everlywell/ui-kit";
2
- import ae, { useEffect as A, forwardRef as He, useRef as mt, useCallback as ke, useState as k } from "react";
3
- import { jsx as e, jsxs as c, Fragment as se } from "react/jsx-runtime";
4
- import { Text as bt, useBreakpointValue as Q, Box as wt, InputGroup as xt, Input as vt, InputRightElement as Ct, Icon as yt } from "@chakra-ui/react";
5
- import { CaretRight as xe, MagnifyingGlass as Te, List as St, Basket as Lt, CaretLeft as It, X as Dt, User as ve, QrCode as Et, CaretDown as Ht, ArrowRight as kt, InstagramLogo as Tt, LinkedinLogo as At, FacebookLogo as Mt, TiktokLogo as Bt, XLogo as $t } from "@phosphor-icons/react";
6
- import { motion as ce, AnimatePresence as Rt } from "framer-motion";
7
- const ee = 60, Ce = 6, _t = (t) => {
1
+ import { useSteps as Zt, Box as m, Stepper as Kt, Icon as Q, Flex as C, Text as A, Link as N, Button as Rt, Image as Xt, IconButton as Jt, theme as Ee, VStack as Qt, Skeleton as Ke, HStack as pt, SkeletonCircle as $e, DrawerContent as qt, DrawerOverlay as en, Drawer as tn, DrawerHeader as nn, DrawerBody as rn, Grid as ln, GridItem as on, Accordion as an, AccordionItem as sn, AccordionButton as un, AccordionPanel as cn, InputGroup as dn, Input as fn, InputRightElement as hn, Container as pn } from "@everlywell/ui-kit";
2
+ import Re, { useEffect as J, forwardRef as _t, useRef as gn, useCallback as St, useState as G } from "react";
3
+ import { Text as xn, useBreakpointValue as Fe, Box as vn, InputGroup as mn, Input as bn, InputRightElement as jn, Icon as wn } from "@chakra-ui/react";
4
+ import { CaretRight as gt, MagnifyingGlass as Tt, List as Cn, Basket as yn, CaretLeft as En, X as Rn, User as xt, QrCode as _n, CaretDown as Sn, ArrowRight as Tn, InstagramLogo as kn, LinkedinLogo as Dn, FacebookLogo as In, TiktokLogo as Ln, XLogo as An } from "@phosphor-icons/react";
5
+ import { motion as lt, AnimatePresence as On } from "framer-motion";
6
+ var et = { exports: {} }, Ce = {};
7
+ /**
8
+ * @license React
9
+ * react-jsx-runtime.production.min.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var vt;
17
+ function Pn() {
18
+ if (vt) return Ce;
19
+ vt = 1;
20
+ var r = Re, l = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, u = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function h(y, p, j) {
22
+ var c, E = {}, b = null, g = null;
23
+ j !== void 0 && (b = "" + j), p.key !== void 0 && (b = "" + p.key), p.ref !== void 0 && (g = p.ref);
24
+ for (c in p) o.call(p, c) && !s.hasOwnProperty(c) && (E[c] = p[c]);
25
+ if (y && y.defaultProps) for (c in p = y.defaultProps, p) E[c] === void 0 && (E[c] = p[c]);
26
+ return { $$typeof: l, type: y, key: b, ref: g, props: E, _owner: u.current };
27
+ }
28
+ return Ce.Fragment = a, Ce.jsx = h, Ce.jsxs = h, Ce;
29
+ }
30
+ var ye = {};
31
+ /**
32
+ * @license React
33
+ * react-jsx-runtime.development.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+ var mt;
41
+ function $n() {
42
+ return mt || (mt = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var r = Re, l = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), y = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), k = Symbol.iterator, Z = "@@iterator";
44
+ function ne(e) {
45
+ if (e === null || typeof e != "object")
46
+ return null;
47
+ var n = k && e[k] || e[Z];
48
+ return typeof n == "function" ? n : null;
49
+ }
50
+ var O = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function S(e) {
52
+ {
53
+ for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), f = 1; f < n; f++)
54
+ i[f - 1] = arguments[f];
55
+ re("error", e, i);
56
+ }
57
+ }
58
+ function re(e, n, i) {
59
+ {
60
+ var f = O.ReactDebugCurrentFrame, w = f.getStackAddendum();
61
+ w !== "" && (n += "%s", i = i.concat([w]));
62
+ var R = i.map(function(v) {
63
+ return String(v);
64
+ });
65
+ R.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, R);
66
+ }
67
+ }
68
+ var $ = !1, V = !1, U = !1, q = !1, L = !1, _;
69
+ _ = Symbol.for("react.module.reference");
70
+ function M(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === s || L || e === u || e === j || e === c || q || e === g || $ || V || U || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === E || e.$$typeof === h || e.$$typeof === y || e.$$typeof === p || // This needs to include all possible module reference object
72
+ // types supported by any Flight configuration anywhere since
73
+ // we don't know which Flight build this will end up being used
74
+ // with.
75
+ e.$$typeof === _ || e.getModuleId !== void 0));
76
+ }
77
+ function _e(e, n, i) {
78
+ var f = e.displayName;
79
+ if (f)
80
+ return f;
81
+ var w = n.displayName || n.name || "";
82
+ return w !== "" ? i + "(" + w + ")" : i;
83
+ }
84
+ function ge(e) {
85
+ return e.displayName || "Context";
86
+ }
87
+ function B(e) {
88
+ if (e == null)
89
+ return null;
90
+ if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ return e.displayName || e.name || null;
92
+ if (typeof e == "string")
93
+ return e;
94
+ switch (e) {
95
+ case o:
96
+ return "Fragment";
97
+ case a:
98
+ return "Portal";
99
+ case s:
100
+ return "Profiler";
101
+ case u:
102
+ return "StrictMode";
103
+ case j:
104
+ return "Suspense";
105
+ case c:
106
+ return "SuspenseList";
107
+ }
108
+ if (typeof e == "object")
109
+ switch (e.$$typeof) {
110
+ case y:
111
+ var n = e;
112
+ return ge(n) + ".Consumer";
113
+ case h:
114
+ var i = e;
115
+ return ge(i._context) + ".Provider";
116
+ case p:
117
+ return _e(e, e.render, "ForwardRef");
118
+ case E:
119
+ var f = e.displayName || null;
120
+ return f !== null ? f : B(e.type) || "Memo";
121
+ case b: {
122
+ var w = e, R = w._payload, v = w._init;
123
+ try {
124
+ return B(v(R));
125
+ } catch {
126
+ return null;
127
+ }
128
+ }
129
+ }
130
+ return null;
131
+ }
132
+ var K = Object.assign, X = 0, Se, Te, xe, ke, De, se, Ie;
133
+ function ve() {
134
+ }
135
+ ve.__reactDisabledLog = !0;
136
+ function me() {
137
+ {
138
+ if (X === 0) {
139
+ Se = console.log, Te = console.info, xe = console.warn, ke = console.error, De = console.group, se = console.groupCollapsed, Ie = console.groupEnd;
140
+ var e = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ value: ve,
144
+ writable: !0
145
+ };
146
+ Object.defineProperties(console, {
147
+ info: e,
148
+ log: e,
149
+ warn: e,
150
+ error: e,
151
+ group: e,
152
+ groupCollapsed: e,
153
+ groupEnd: e
154
+ });
155
+ }
156
+ X++;
157
+ }
158
+ }
159
+ function Be() {
160
+ {
161
+ if (X--, X === 0) {
162
+ var e = {
163
+ configurable: !0,
164
+ enumerable: !0,
165
+ writable: !0
166
+ };
167
+ Object.defineProperties(console, {
168
+ log: K({}, e, {
169
+ value: Se
170
+ }),
171
+ info: K({}, e, {
172
+ value: Te
173
+ }),
174
+ warn: K({}, e, {
175
+ value: xe
176
+ }),
177
+ error: K({}, e, {
178
+ value: ke
179
+ }),
180
+ group: K({}, e, {
181
+ value: De
182
+ }),
183
+ groupCollapsed: K({}, e, {
184
+ value: se
185
+ }),
186
+ groupEnd: K({}, e, {
187
+ value: Ie
188
+ })
189
+ });
190
+ }
191
+ X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ }
193
+ }
194
+ var be = O.ReactCurrentDispatcher, ee;
195
+ function Y(e, n, i) {
196
+ {
197
+ if (ee === void 0)
198
+ try {
199
+ throw Error();
200
+ } catch (w) {
201
+ var f = w.stack.trim().match(/\n( *(at )?)/);
202
+ ee = f && f[1] || "";
203
+ }
204
+ return `
205
+ ` + ee + e;
206
+ }
207
+ }
208
+ var je = !1, ue;
209
+ {
210
+ var We = typeof WeakMap == "function" ? WeakMap : Map;
211
+ ue = new We();
212
+ }
213
+ function Le(e, n) {
214
+ if (!e || je)
215
+ return "";
216
+ {
217
+ var i = ue.get(e);
218
+ if (i !== void 0)
219
+ return i;
220
+ }
221
+ var f;
222
+ je = !0;
223
+ var w = Error.prepareStackTrace;
224
+ Error.prepareStackTrace = void 0;
225
+ var R;
226
+ R = be.current, be.current = null, me();
227
+ try {
228
+ if (n) {
229
+ var v = function() {
230
+ throw Error();
231
+ };
232
+ if (Object.defineProperty(v.prototype, "props", {
233
+ set: function() {
234
+ throw Error();
235
+ }
236
+ }), typeof Reflect == "object" && Reflect.construct) {
237
+ try {
238
+ Reflect.construct(v, []);
239
+ } catch (F) {
240
+ f = F;
241
+ }
242
+ Reflect.construct(e, [], v);
243
+ } else {
244
+ try {
245
+ v.call();
246
+ } catch (F) {
247
+ f = F;
248
+ }
249
+ e.call(v.prototype);
250
+ }
251
+ } else {
252
+ try {
253
+ throw Error();
254
+ } catch (F) {
255
+ f = F;
256
+ }
257
+ e();
258
+ }
259
+ } catch (F) {
260
+ if (F && f && typeof F.stack == "string") {
261
+ for (var x = F.stack.split(`
262
+ `), P = f.stack.split(`
263
+ `), D = x.length - 1, I = P.length - 1; D >= 1 && I >= 0 && x[D] !== P[I]; )
264
+ I--;
265
+ for (; D >= 1 && I >= 0; D--, I--)
266
+ if (x[D] !== P[I]) {
267
+ if (D !== 1 || I !== 1)
268
+ do
269
+ if (D--, I--, I < 0 || x[D] !== P[I]) {
270
+ var z = `
271
+ ` + x[D].replace(" at new ", " at ");
272
+ return e.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, z), z;
273
+ }
274
+ while (D >= 1 && I >= 0);
275
+ break;
276
+ }
277
+ }
278
+ } finally {
279
+ je = !1, be.current = R, Be(), Error.prepareStackTrace = w;
280
+ }
281
+ var fe = e ? e.displayName || e.name : "", ae = fe ? Y(fe) : "";
282
+ return typeof e == "function" && ue.set(e, ae), ae;
283
+ }
284
+ function ze(e, n, i) {
285
+ return Le(e, !1);
286
+ }
287
+ function Ne(e) {
288
+ var n = e.prototype;
289
+ return !!(n && n.isReactComponent);
290
+ }
291
+ function ce(e, n, i) {
292
+ if (e == null)
293
+ return "";
294
+ if (typeof e == "function")
295
+ return Le(e, Ne(e));
296
+ if (typeof e == "string")
297
+ return Y(e);
298
+ switch (e) {
299
+ case j:
300
+ return Y("Suspense");
301
+ case c:
302
+ return Y("SuspenseList");
303
+ }
304
+ if (typeof e == "object")
305
+ switch (e.$$typeof) {
306
+ case p:
307
+ return ze(e.render);
308
+ case E:
309
+ return ce(e.type, n, i);
310
+ case b: {
311
+ var f = e, w = f._payload, R = f._init;
312
+ try {
313
+ return ce(R(w), n, i);
314
+ } catch {
315
+ }
316
+ }
317
+ }
318
+ return "";
319
+ }
320
+ var le = Object.prototype.hasOwnProperty, Ae = {}, we = O.ReactDebugCurrentFrame;
321
+ function ie(e) {
322
+ if (e) {
323
+ var n = e._owner, i = ce(e.type, e._source, n ? n.type : null);
324
+ we.setExtraStackFrame(i);
325
+ } else
326
+ we.setExtraStackFrame(null);
327
+ }
328
+ function Oe(e, n, i, f, w) {
329
+ {
330
+ var R = Function.call.bind(le);
331
+ for (var v in e)
332
+ if (R(e, v)) {
333
+ var x = void 0;
334
+ try {
335
+ if (typeof e[v] != "function") {
336
+ var P = Error((f || "React class") + ": " + i + " 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`.");
337
+ throw P.name = "Invariant Violation", P;
338
+ }
339
+ x = e[v](n, v, f, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (D) {
341
+ x = D;
342
+ }
343
+ x && !(x instanceof Error) && (ie(w), 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).", f || "React class", i, v, typeof x), ie(null)), x instanceof Error && !(x.message in Ae) && (Ae[x.message] = !0, ie(w), S("Failed %s type: %s", i, x.message), ie(null));
344
+ }
345
+ }
346
+ }
347
+ var d = Array.isArray;
348
+ function T(e) {
349
+ return d(e);
350
+ }
351
+ function H(e) {
352
+ {
353
+ var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
+ return i;
355
+ }
356
+ }
357
+ function W(e) {
358
+ try {
359
+ return Pe(e), !1;
360
+ } catch {
361
+ return !0;
362
+ }
363
+ }
364
+ function Pe(e) {
365
+ return "" + e;
366
+ }
367
+ function te(e) {
368
+ if (W(e))
369
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", H(e)), Pe(e);
370
+ }
371
+ var oe = O.ReactCurrentOwner, Dt = {
372
+ key: !0,
373
+ ref: !0,
374
+ __self: !0,
375
+ __source: !0
376
+ }, it, ot, Ve;
377
+ Ve = {};
378
+ function It(e) {
379
+ if (le.call(e, "ref")) {
380
+ var n = Object.getOwnPropertyDescriptor(e, "ref").get;
381
+ if (n && n.isReactWarning)
382
+ return !1;
383
+ }
384
+ return e.ref !== void 0;
385
+ }
386
+ function Lt(e) {
387
+ if (le.call(e, "key")) {
388
+ var n = Object.getOwnPropertyDescriptor(e, "key").get;
389
+ if (n && n.isReactWarning)
390
+ return !1;
391
+ }
392
+ return e.key !== void 0;
393
+ }
394
+ function At(e, n) {
395
+ if (typeof e.ref == "string" && oe.current && n && oe.current.stateNode !== n) {
396
+ var i = B(oe.current.type);
397
+ Ve[i] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(oe.current.type), e.ref), Ve[i] = !0);
398
+ }
399
+ }
400
+ function Ot(e, n) {
401
+ {
402
+ var i = function() {
403
+ it || (it = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
404
+ };
405
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
406
+ get: i,
407
+ configurable: !0
408
+ });
409
+ }
410
+ }
411
+ function Pt(e, n) {
412
+ {
413
+ var i = function() {
414
+ ot || (ot = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
415
+ };
416
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
+ get: i,
418
+ configurable: !0
419
+ });
420
+ }
421
+ }
422
+ var $t = function(e, n, i, f, w, R, v) {
423
+ var x = {
424
+ // This tag allows us to uniquely identify this as a React Element
425
+ $$typeof: l,
426
+ // Built-in properties that belong on the element
427
+ type: e,
428
+ key: n,
429
+ ref: i,
430
+ props: v,
431
+ // Record the component responsible for creating this element.
432
+ _owner: R
433
+ };
434
+ return x._store = {}, Object.defineProperty(x._store, "validated", {
435
+ configurable: !1,
436
+ enumerable: !1,
437
+ writable: !0,
438
+ value: !1
439
+ }), Object.defineProperty(x, "_self", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !1,
443
+ value: f
444
+ }), Object.defineProperty(x, "_source", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: w
449
+ }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
450
+ };
451
+ function Mt(e, n, i, f, w) {
452
+ {
453
+ var R, v = {}, x = null, P = null;
454
+ i !== void 0 && (te(i), x = "" + i), Lt(n) && (te(n.key), x = "" + n.key), It(n) && (P = n.ref, At(n, w));
455
+ for (R in n)
456
+ le.call(n, R) && !Dt.hasOwnProperty(R) && (v[R] = n[R]);
457
+ if (e && e.defaultProps) {
458
+ var D = e.defaultProps;
459
+ for (R in D)
460
+ v[R] === void 0 && (v[R] = D[R]);
461
+ }
462
+ if (x || P) {
463
+ var I = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ x && Ot(v, I), P && Pt(v, I);
465
+ }
466
+ return $t(e, x, P, w, f, oe.current, v);
467
+ }
468
+ }
469
+ var Ye = O.ReactCurrentOwner, at = O.ReactDebugCurrentFrame;
470
+ function de(e) {
471
+ if (e) {
472
+ var n = e._owner, i = ce(e.type, e._source, n ? n.type : null);
473
+ at.setExtraStackFrame(i);
474
+ } else
475
+ at.setExtraStackFrame(null);
476
+ }
477
+ var Ge;
478
+ Ge = !1;
479
+ function Ue(e) {
480
+ return typeof e == "object" && e !== null && e.$$typeof === l;
481
+ }
482
+ function st() {
483
+ {
484
+ if (Ye.current) {
485
+ var e = B(Ye.current.type);
486
+ if (e)
487
+ return `
488
+
489
+ Check the render method of \`` + e + "`.";
490
+ }
491
+ return "";
492
+ }
493
+ }
494
+ function Ht(e) {
495
+ return "";
496
+ }
497
+ var ut = {};
498
+ function Ft(e) {
499
+ {
500
+ var n = st();
501
+ if (!n) {
502
+ var i = typeof e == "string" ? e : e.displayName || e.name;
503
+ i && (n = `
504
+
505
+ Check the top-level render call using <` + i + ">.");
506
+ }
507
+ return n;
508
+ }
509
+ }
510
+ function ct(e, n) {
511
+ {
512
+ if (!e._store || e._store.validated || e.key != null)
513
+ return;
514
+ e._store.validated = !0;
515
+ var i = Ft(n);
516
+ if (ut[i])
517
+ return;
518
+ ut[i] = !0;
519
+ var f = "";
520
+ e && e._owner && e._owner !== Ye.current && (f = " It was passed a child from " + B(e._owner.type) + "."), de(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, f), de(null);
521
+ }
522
+ }
523
+ function dt(e, n) {
524
+ {
525
+ if (typeof e != "object")
526
+ return;
527
+ if (T(e))
528
+ for (var i = 0; i < e.length; i++) {
529
+ var f = e[i];
530
+ Ue(f) && ct(f, n);
531
+ }
532
+ else if (Ue(e))
533
+ e._store && (e._store.validated = !0);
534
+ else if (e) {
535
+ var w = ne(e);
536
+ if (typeof w == "function" && w !== e.entries)
537
+ for (var R = w.call(e), v; !(v = R.next()).done; )
538
+ Ue(v.value) && ct(v.value, n);
539
+ }
540
+ }
541
+ }
542
+ function Bt(e) {
543
+ {
544
+ var n = e.type;
545
+ if (n == null || typeof n == "string")
546
+ return;
547
+ var i;
548
+ if (typeof n == "function")
549
+ i = n.propTypes;
550
+ else if (typeof n == "object" && (n.$$typeof === p || // Note: Memo only checks outer props here.
551
+ // Inner props are checked in the reconciler.
552
+ n.$$typeof === E))
553
+ i = n.propTypes;
554
+ else
555
+ return;
556
+ if (i) {
557
+ var f = B(n);
558
+ Oe(i, e.props, "prop", f, e);
559
+ } else if (n.PropTypes !== void 0 && !Ge) {
560
+ Ge = !0;
561
+ var w = B(n);
562
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
563
+ }
564
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ }
566
+ }
567
+ function Wt(e) {
568
+ {
569
+ for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
570
+ var f = n[i];
571
+ if (f !== "children" && f !== "key") {
572
+ de(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), de(null);
573
+ break;
574
+ }
575
+ }
576
+ e.ref !== null && (de(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
577
+ }
578
+ }
579
+ var ft = {};
580
+ function ht(e, n, i, f, w, R) {
581
+ {
582
+ var v = M(e);
583
+ if (!v) {
584
+ var x = "";
585
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
586
+ var P = Ht();
587
+ P ? x += P : x += st();
588
+ var D;
589
+ e === null ? D = "null" : T(e) ? D = "array" : e !== void 0 && e.$$typeof === l ? (D = "<" + (B(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = 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", D, x);
590
+ }
591
+ var I = Mt(e, n, i, w, R);
592
+ if (I == null)
593
+ return I;
594
+ if (v) {
595
+ var z = n.children;
596
+ if (z !== void 0)
597
+ if (f)
598
+ if (T(z)) {
599
+ for (var fe = 0; fe < z.length; fe++)
600
+ dt(z[fe], e);
601
+ Object.freeze && Object.freeze(z);
602
+ } else
603
+ S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ else
605
+ dt(z, e);
606
+ }
607
+ if (le.call(n, "key")) {
608
+ var ae = B(e), F = Object.keys(n).filter(function(Ut) {
609
+ return Ut !== "key";
610
+ }), Ze = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
611
+ if (!ft[ae + Ze]) {
612
+ var Gt = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
613
+ S(`A props object containing a "key" prop is being spread into JSX:
614
+ let props = %s;
615
+ <%s {...props} />
616
+ React keys must be passed directly to JSX without using spread:
617
+ let props = %s;
618
+ <%s key={someKey} {...props} />`, Ze, ae, Gt, ae), ft[ae + Ze] = !0;
619
+ }
620
+ }
621
+ return e === o ? Wt(I) : Bt(I), I;
622
+ }
623
+ }
624
+ function zt(e, n, i) {
625
+ return ht(e, n, i, !0);
626
+ }
627
+ function Nt(e, n, i) {
628
+ return ht(e, n, i, !1);
629
+ }
630
+ var Vt = Nt, Yt = zt;
631
+ ye.Fragment = o, ye.jsx = Vt, ye.jsxs = Yt;
632
+ }()), ye;
633
+ }
634
+ process.env.NODE_ENV === "production" ? et.exports = Pn() : et.exports = $n();
635
+ var t = et.exports;
636
+ const Xe = 60, bt = 6, Mn = (r) => {
8
637
  const {
9
- activeStepIndex: n,
10
- hideIndicators: l = !1,
638
+ activeStepIndex: l,
639
+ hideIndicators: a = !1,
11
640
  steps: o,
12
- stepperTheme: r = {
641
+ stepperTheme: u = {
13
642
  light: "eggplant.light",
14
643
  base: "eggplant.base"
15
644
  }
16
- } = t, { activeStep: i, setActiveStep: d } = Ye({
17
- index: n,
645
+ } = r, { activeStep: s, setActiveStep: h } = Zt({
646
+ index: l,
18
647
  count: o.length
19
648
  });
20
- return A(() => {
21
- d(n);
22
- }, [n, d]), /* @__PURE__ */ e(
23
- h,
24
- { position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ e(
25
- Ke,
649
+ return J(() => {
650
+ h(l);
651
+ }, [l, h]), /* @__PURE__ */ t.jsx(
652
+ m,
653
+ { position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
654
+ Kt,
26
655
  {
27
656
  role: "progressbar",
28
- index: i,
657
+ index: s,
29
658
  width: "100%",
30
659
  display: "flex",
31
660
  flexWrap: "nowrap",
32
- children: o.map((w, g) => {
33
- const f = i === g, s = g === 0, x = g === o.length - 1, m = i > g;
34
- let u = `${ee}px`;
35
- const v = `calc(100% - ((${ee * (o.length - 1)}px) - (${o.length - 1} * ${Ce * 2}px)))`;
36
- return f ? u = v : (s || x) && (u = `${ee - Ce}px`), /* @__PURE__ */ e(
37
- h,
661
+ children: o.map((y, p) => {
662
+ const j = s === p, c = p === 0, E = p === o.length - 1, b = s > p;
663
+ let g = `${Xe}px`;
664
+ const k = `calc(100% - ((${Xe * (o.length - 1)}px) - (${o.length - 1} * ${bt * 2}px)))`;
665
+ return j ? g = k : (c || E) && (g = `${Xe - bt}px`), /* @__PURE__ */ t.jsx(
666
+ m,
38
667
  {
39
- width: u,
40
- opacity: m || f ? 1 : 0.2,
41
- paddingRight: x ? "0" : "6px",
42
- paddingLeft: s ? "0" : "6px",
668
+ width: g,
669
+ opacity: b || j ? 1 : 0.2,
670
+ paddingRight: E ? "0" : "6px",
671
+ paddingLeft: c ? "0" : "6px",
43
672
  transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
44
- children: /* @__PURE__ */ e(
45
- h,
673
+ children: /* @__PURE__ */ t.jsx(
674
+ m,
46
675
  {
47
- paddingTop: l ? 2 : 5,
676
+ paddingTop: a ? 2 : 5,
48
677
  position: "relative",
49
678
  width: "100%",
50
- children: /* @__PURE__ */ e(
51
- h,
679
+ children: /* @__PURE__ */ t.jsx(
680
+ m,
52
681
  {
53
682
  width: "100%",
54
683
  position: "absolute",
55
684
  top: "0",
56
- backgroundColor: m ? r.light : r.base,
57
- height: l ? "4px" : "8px",
685
+ backgroundColor: b ? u.light : u.base,
686
+ height: a ? "4px" : "8px",
58
687
  borderRadius: "4",
59
688
  left: "0"
60
689
  }
@@ -62,40 +691,40 @@ const ee = 60, Ce = 6, _t = (t) => {
62
691
  }
63
692
  )
64
693
  },
65
- `step-${g}`
694
+ `step-${p}`
66
695
  );
67
696
  })
68
697
  }
69
698
  ) }
70
699
  );
71
- }, rn = ae.memo(_t), an = ({
72
- children: t,
73
- ...n
74
- }) => /* @__PURE__ */ e(
75
- bt,
76
- { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...n, children: t }
77
- ), W = (t, n) => {
78
- const l = (t == null ? void 0 : t.startsWith("http")) || (t == null ? void 0 : t.startsWith("mailto"));
79
- return n && !l ? {
80
- to: t
700
+ }, lr = Re.memo(Mn), ir = ({
701
+ children: r,
702
+ ...l
703
+ }) => /* @__PURE__ */ t.jsx(
704
+ xn,
705
+ { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...l, children: r }
706
+ ), pe = (r, l) => {
707
+ const a = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("mailto"));
708
+ return l && !a ? {
709
+ to: r
81
710
  } : {
82
- href: t
711
+ href: r
83
712
  };
84
- }, te = He(
85
- (t, n) => {
713
+ }, Je = _t(
714
+ (r, l) => {
86
715
  const {
87
- label: l,
716
+ label: a,
88
717
  additionalContent: o,
89
- mainTextFontSize: r,
90
- linkComponent: i,
91
- href: d,
92
- ...w
93
- } = t, g = i || E, f = W(d, !!i);
94
- return /* @__PURE__ */ c(
95
- h,
718
+ mainTextFontSize: u,
719
+ linkComponent: s,
720
+ href: h,
721
+ ...y
722
+ } = r, p = s || N, j = pe(h, !!s);
723
+ return /* @__PURE__ */ t.jsxs(
724
+ m,
96
725
  {
97
- ref: n,
98
- as: g,
726
+ ref: l,
727
+ as: p,
99
728
  display: "flex",
100
729
  alignItems: "center",
101
730
  gap: [null, null, null, 1],
@@ -107,14 +736,14 @@ const ee = 60, Ce = 6, _t = (t) => {
107
736
  borderColor: ["tints.cream", null, null, "unset"],
108
737
  width: ["100%", null, null, "fit-content"],
109
738
  cursor: "pointer",
110
- ...f,
111
- ...w,
739
+ ...j,
740
+ ...y,
112
741
  children: [
113
- /* @__PURE__ */ e(
114
- M,
742
+ /* @__PURE__ */ t.jsx(
743
+ Q,
115
744
  {
116
745
  display: ["none", null, null, "block"],
117
- as: xe,
746
+ as: gt,
118
747
  fontSize: "lg",
119
748
  color: "viridian.light",
120
749
  role: "img",
@@ -122,19 +751,19 @@ const ee = 60, Ce = 6, _t = (t) => {
122
751
  weight: "bold"
123
752
  }
124
753
  ),
125
- /* @__PURE__ */ c(
126
- p,
754
+ /* @__PURE__ */ t.jsxs(
755
+ C,
127
756
  { alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
128
- /* @__PURE__ */ e(
129
- S,
757
+ /* @__PURE__ */ t.jsx(
758
+ A,
130
759
  {
131
- fontSize: [r || "xl", null, null, "lg"],
760
+ fontSize: [u || "xl", null, null, "lg"],
132
761
  fontWeight: "medium",
133
- children: l
762
+ children: a
134
763
  }
135
764
  ),
136
- o && (typeof o == "string" ? /* @__PURE__ */ e(
137
- S,
765
+ o && (typeof o == "string" ? /* @__PURE__ */ t.jsx(
766
+ A,
138
767
  {
139
768
  fontSize: ["xl", null, null, "lg"],
140
769
  fontWeight: "medium",
@@ -147,11 +776,11 @@ const ee = 60, Ce = 6, _t = (t) => {
147
776
  children: o
148
777
  }
149
778
  ) : o),
150
- /* @__PURE__ */ e(
151
- M,
779
+ /* @__PURE__ */ t.jsx(
780
+ Q,
152
781
  {
153
782
  display: ["block", null, null, "none"],
154
- as: xe,
783
+ as: gt,
155
784
  fontSize: "2xl",
156
785
  color: "tints.uiGrey",
157
786
  role: "img",
@@ -165,15 +794,15 @@ const ee = 60, Ce = 6, _t = (t) => {
165
794
  }
166
795
  );
167
796
  }
168
- ), U = He(
169
- (t, n) => {
170
- const { children: l, isSelected: o, ...r } = t, i = t.backgroundColor || (o ? "tints.lightCream" : "transparent");
171
- return /* @__PURE__ */ e(
172
- Ee,
797
+ ), Me = _t(
798
+ (r, l) => {
799
+ const { children: a, isSelected: o, ...u } = r, s = r.backgroundColor || (o ? "tints.lightCream" : "transparent");
800
+ return /* @__PURE__ */ t.jsx(
801
+ Rt,
173
802
  {
174
- ref: n,
803
+ ref: l,
175
804
  borderRadius: "full",
176
- backgroundColor: i,
805
+ backgroundColor: s,
177
806
  fontSize: "lg !important",
178
807
  fontWeight: "normal",
179
808
  color: "tints.black",
@@ -191,42 +820,42 @@ const ee = 60, Ce = 6, _t = (t) => {
191
820
  left: [null, null, null, -2]
192
821
  },
193
822
  _hover: {
194
- backgroundColor: i,
823
+ backgroundColor: s,
195
824
  textDecoration: "none",
196
825
  filter: "brightness(0.95)"
197
826
  },
198
- ...r,
199
- children: l
827
+ ...u,
828
+ children: a
200
829
  }
201
830
  );
202
831
  }
203
- ), zt = ({
204
- title: t,
205
- description: n,
206
- imageSrc: l,
832
+ ), Hn = ({
833
+ title: r,
834
+ description: l,
835
+ imageSrc: a,
207
836
  imageElement: o,
208
- button: r,
209
- backgroundColor: i = "viridian.wash",
210
- onClick: d,
211
- href: w,
212
- linkComponent: g
837
+ button: u,
838
+ backgroundColor: s = "viridian.wash",
839
+ onClick: h,
840
+ href: y,
841
+ linkComponent: p
213
842
  }) => {
214
- const m = g || E, u = W(w, !!g), v = Q({
843
+ const b = p || N, g = pe(y, !!p), k = Fe({
215
844
  base: !1,
216
845
  tablet: !1,
217
846
  largeTablet: !1,
218
847
  desktop: !0
219
848
  });
220
- return /* @__PURE__ */ c(
221
- p,
849
+ return /* @__PURE__ */ t.jsxs(
850
+ C,
222
851
  {
223
852
  direction: ["row", null, null, "column"],
224
853
  alignItems: ["center"],
225
854
  borderRadius: "xl",
226
855
  overflow: "hidden",
227
856
  height: ["80px", null, null, "272px"],
228
- backgroundColor: i,
229
- onClick: d,
857
+ backgroundColor: s,
858
+ onClick: h,
230
859
  "data-testid": "spotlight-card",
231
860
  position: "relative",
232
861
  transition: "box-shadow 0.2s ease-in-out",
@@ -240,30 +869,30 @@ const ee = 60, Ce = 6, _t = (t) => {
240
869
  border: "1px solid",
241
870
  borderColor: "tints.white"
242
871
  },
243
- as: v ? p : m,
244
- ...v ? {} : u,
872
+ as: k ? C : b,
873
+ ...k ? {} : g,
245
874
  children: [
246
- /* @__PURE__ */ e(
247
- h,
875
+ /* @__PURE__ */ t.jsx(
876
+ m,
248
877
  {
249
878
  width: ["72px", null, null, "100%"],
250
879
  height: ["100%", null, null, "188px"],
251
880
  sx: {
252
881
  img: {
253
- height: v ? "188px" : "100%"
882
+ height: k ? "188px" : "100%"
254
883
  }
255
884
  },
256
- children: l ? /* @__PURE__ */ e(
257
- Je,
885
+ children: a ? /* @__PURE__ */ t.jsx(
886
+ Xt,
258
887
  {
259
- src: l,
888
+ src: a,
260
889
  objectFit: "cover",
261
890
  width: "100%",
262
891
  alt: "",
263
892
  "data-testid": "spotlight-card-image"
264
893
  }
265
- ) : /* @__PURE__ */ e(
266
- h,
894
+ ) : /* @__PURE__ */ t.jsx(
895
+ m,
267
896
  {
268
897
  height: [80, null, null, 188],
269
898
  overflow: "hidden",
@@ -272,8 +901,8 @@ const ee = 60, Ce = 6, _t = (t) => {
272
901
  )
273
902
  }
274
903
  ),
275
- /* @__PURE__ */ c(
276
- p,
904
+ /* @__PURE__ */ t.jsxs(
905
+ C,
277
906
  {
278
907
  direction: ["column", null, null, "row"],
279
908
  justifyContent: [null, null, null, "space-between"],
@@ -287,33 +916,33 @@ const ee = 60, Ce = 6, _t = (t) => {
287
916
  ],
288
917
  width: "100%",
289
918
  bottom: [null, null, null, "0"],
290
- backgroundColor: [null, null, null, `${i}CC`],
919
+ backgroundColor: [null, null, null, `${s}CC`],
291
920
  backdropFilter: [null, null, null, "blur(8px)"],
292
921
  flex: "1",
293
922
  gap: [null, null, null, 3],
294
923
  children: [
295
- /* @__PURE__ */ c(
296
- p,
924
+ /* @__PURE__ */ t.jsxs(
925
+ C,
297
926
  { direction: "column", justifyContent: "center", height: "100%", children: [
298
- /* @__PURE__ */ e(
299
- S,
300
- { fontSize: "lg", fontWeight: "medium", color: "tints.black", children: t }
927
+ /* @__PURE__ */ t.jsx(
928
+ A,
929
+ { fontSize: "lg", fontWeight: "medium", color: "tints.black", children: r }
301
930
  ),
302
- /* @__PURE__ */ e(
303
- S,
304
- { fontSize: "sm", color: "tints.darkGrey", children: n }
931
+ /* @__PURE__ */ t.jsx(
932
+ A,
933
+ { fontSize: "sm", color: "tints.darkGrey", children: l }
305
934
  )
306
935
  ] }
307
936
  ),
308
- v ? /* @__PURE__ */ e(h, { children: r }) : null
937
+ k ? /* @__PURE__ */ t.jsx(m, { children: u }) : null
309
938
  ]
310
939
  }
311
940
  )
312
941
  ]
313
942
  }
314
943
  );
315
- }, V = (t) => /* @__PURE__ */ e(
316
- qe,
944
+ }, he = (r) => /* @__PURE__ */ t.jsx(
945
+ Jt,
317
946
  {
318
947
  size: "sm",
319
948
  width: ["40px", null, null, "46px"],
@@ -331,28 +960,28 @@ const ee = 60, Ce = 6, _t = (t) => {
331
960
  backgroundColor: "tints.cream",
332
961
  filter: "brightness(0.95)"
333
962
  },
334
- ...t
963
+ ...r
335
964
  }
336
- ), Ae = ({
337
- color: t = O.colors.viridian.base,
338
- width: n
339
- }) => /* @__PURE__ */ e(
340
- wt,
965
+ ), kt = ({
966
+ color: r = Ee.colors.viridian.base,
967
+ width: l
968
+ }) => /* @__PURE__ */ t.jsx(
969
+ vn,
341
970
  {
342
971
  as: "svg",
343
- width: n,
972
+ width: l,
344
973
  height: "auto",
345
974
  viewBox: "0 0 116 24",
346
975
  fill: "none",
347
976
  xmlns: "http://www.w3.org/2000/svg",
348
977
  role: "img",
349
978
  "aria-label": "Everlywell Logo",
350
- children: /* @__PURE__ */ e(
979
+ children: /* @__PURE__ */ t.jsx(
351
980
  "g",
352
- { id: "Everlywell Logo", children: /* @__PURE__ */ e(
981
+ { id: "Everlywell Logo", children: /* @__PURE__ */ t.jsx(
353
982
  "path",
354
983
  {
355
- fill: t,
984
+ fill: r,
356
985
  id: "Everlywell Logo_2",
357
986
  fillRule: "evenodd",
358
987
  clipRule: "evenodd",
@@ -361,104 +990,104 @@ const ee = 60, Ce = 6, _t = (t) => {
361
990
  ) }
362
991
  )
363
992
  }
364
- ), Nt = ({
365
- desktopTopButtons: t,
366
- kitRegistrationElement: n,
367
- profileElement: l,
993
+ ), Fn = ({
994
+ desktopTopButtons: r,
995
+ kitRegistrationElement: l,
996
+ profileElement: a,
368
997
  cartElement: o,
369
- onSearchClick: r,
370
- onMenuClick: i,
371
- hasSearch: d = !1,
372
- logoLink: w = "https://www.everlywell.com",
373
- setTopOffset: g,
374
- linkComponent: f,
375
- onLogoClick: s
998
+ onSearchClick: u,
999
+ onMenuClick: s,
1000
+ hasSearch: h = !1,
1001
+ logoLink: y = "https://www.everlywell.com",
1002
+ setTopOffset: p,
1003
+ linkComponent: j,
1004
+ onLogoClick: c
376
1005
  }) => {
377
- const x = mt(null), m = ke(() => {
378
- if (x.current) {
379
- const u = x.current.getBoundingClientRect();
380
- g(u.bottom);
1006
+ const E = gn(null), b = St(() => {
1007
+ if (E.current) {
1008
+ const g = E.current.getBoundingClientRect();
1009
+ p(g.bottom);
381
1010
  }
382
1011
  }, []);
383
- return A(() => {
384
- m();
385
- }, [m]), /* @__PURE__ */ e(
386
- h,
1012
+ return J(() => {
1013
+ b();
1014
+ }, [b]), /* @__PURE__ */ t.jsx(
1015
+ m,
387
1016
  {
388
- ref: x,
1017
+ ref: E,
389
1018
  paddingY: "4",
390
1019
  paddingX: [4, null, null, 12],
391
1020
  borderBottom: "1px solid",
392
1021
  borderColor: "tints.lightCream",
393
1022
  backgroundColor: "tints.white",
394
1023
  width: "100%",
395
- onMouseEnter: m,
396
- children: /* @__PURE__ */ c(
397
- p,
1024
+ onMouseEnter: b,
1025
+ children: /* @__PURE__ */ t.jsxs(
1026
+ C,
398
1027
  { justifyContent: "space-between", alignItems: "center", children: [
399
- /* @__PURE__ */ c(
400
- p,
1028
+ /* @__PURE__ */ t.jsxs(
1029
+ C,
401
1030
  { alignItems: "center", gap: "5", children: [
402
- /* @__PURE__ */ e(
403
- h,
1031
+ /* @__PURE__ */ t.jsx(
1032
+ m,
404
1033
  {
405
1034
  "aria-label": "Go to homepage",
406
- onClick: s,
407
- as: f || E,
408
- ...W(w, !!f),
409
- children: /* @__PURE__ */ e(Ae, { width: "116px" })
1035
+ onClick: c,
1036
+ as: j || N,
1037
+ ...pe(y, !!j),
1038
+ children: /* @__PURE__ */ t.jsx(kt, { width: "116px" })
410
1039
  }
411
1040
  ),
412
- /* @__PURE__ */ e(
413
- p,
414
- { display: ["none", null, null, "flex"], children: t }
1041
+ /* @__PURE__ */ t.jsx(
1042
+ C,
1043
+ { display: ["none", null, null, "flex"], children: r }
415
1044
  )
416
1045
  ] }
417
1046
  ),
418
- /* @__PURE__ */ c(
419
- p,
1047
+ /* @__PURE__ */ t.jsxs(
1048
+ C,
420
1049
  { alignItems: "center", gap: "2", children: [
421
- /* @__PURE__ */ e(
422
- h,
423
- { display: ["none", null, null, "block"], children: n }
1050
+ /* @__PURE__ */ t.jsx(
1051
+ m,
1052
+ { display: ["none", null, null, "block"], children: l }
424
1053
  ),
425
- d ? /* @__PURE__ */ e(
426
- V,
1054
+ h ? /* @__PURE__ */ t.jsx(
1055
+ he,
427
1056
  {
428
1057
  "aria-label": "Search",
429
- icon: /* @__PURE__ */ e(M, { as: Te }),
430
- onClick: r
1058
+ icon: /* @__PURE__ */ t.jsx(Q, { as: Tt }),
1059
+ onClick: u
431
1060
  }
432
1061
  ) : null,
433
1062
  o,
434
- /* @__PURE__ */ e(
435
- h,
436
- { display: ["flex", null, null, "none"], children: /* @__PURE__ */ e(
437
- V,
1063
+ /* @__PURE__ */ t.jsx(
1064
+ m,
1065
+ { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1066
+ he,
438
1067
  {
439
- icon: /* @__PURE__ */ e(St, {}),
1068
+ icon: /* @__PURE__ */ t.jsx(Cn, {}),
440
1069
  "aria-label": "menu",
441
1070
  "data-testid": "menu-button",
442
- onClick: i
1071
+ onClick: s
443
1072
  }
444
1073
  ) }
445
1074
  ),
446
- /* @__PURE__ */ e(h, { display: ["none", null, null, "block"], children: l })
1075
+ /* @__PURE__ */ t.jsx(m, { display: ["none", null, null, "block"], children: a })
447
1076
  ] }
448
1077
  )
449
1078
  ] }
450
1079
  )
451
1080
  }
452
1081
  );
453
- }, Vt = ({
454
- count: t = 0,
455
- ...n
456
- }) => /* @__PURE__ */ c(
457
- h,
1082
+ }, Bn = ({
1083
+ count: r = 0,
1084
+ ...l
1085
+ }) => /* @__PURE__ */ t.jsxs(
1086
+ m,
458
1087
  { position: "relative", display: "inline-block", children: [
459
- /* @__PURE__ */ e(V, { icon: /* @__PURE__ */ e(Lt, {}), ...n }),
460
- t > 0 && /* @__PURE__ */ e(
461
- h,
1088
+ /* @__PURE__ */ t.jsx(he, { icon: /* @__PURE__ */ t.jsx(yn, {}), ...l }),
1089
+ r > 0 && /* @__PURE__ */ t.jsx(
1090
+ m,
462
1091
  {
463
1092
  display: "flex",
464
1093
  minWidth: "20px",
@@ -475,46 +1104,46 @@ const ee = 60, Ce = 6, _t = (t) => {
475
1104
  color: "white",
476
1105
  fontSize: "xs",
477
1106
  fontWeight: "normal",
478
- children: t
1107
+ children: r
479
1108
  }
480
1109
  )
481
1110
  ] }
482
- ), sn = ({
483
- numDesktopLinks: t = 5,
484
- showPromoButton: n = !1
485
- }) => /* @__PURE__ */ e(
486
- et,
487
- { spacing: 0, align: "stretch", children: /* @__PURE__ */ e(
488
- h,
1111
+ ), or = ({
1112
+ numDesktopLinks: r = 5,
1113
+ showPromoButton: l = !1
1114
+ }) => /* @__PURE__ */ t.jsx(
1115
+ Qt,
1116
+ { spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
1117
+ m,
489
1118
  {
490
1119
  paddingY: 4,
491
1120
  paddingX: 6,
492
1121
  borderBottomWidth: "1px",
493
1122
  borderColor: "tints.lightCream",
494
- children: /* @__PURE__ */ c(
495
- p,
1123
+ children: /* @__PURE__ */ t.jsxs(
1124
+ C,
496
1125
  { justify: "space-between", align: "center", children: [
497
- /* @__PURE__ */ e(q, { w: "120px", h: "48px" }),
498
- /* @__PURE__ */ c(
499
- we,
1126
+ /* @__PURE__ */ t.jsx(Ke, { w: "120px", h: "48px" }),
1127
+ /* @__PURE__ */ t.jsxs(
1128
+ pt,
500
1129
  {
501
1130
  spacing: 8,
502
1131
  marginLeft: 12,
503
1132
  display: ["none", null, null, "flex"],
504
1133
  "data-testid": "desktop-nav",
505
1134
  children: [
506
- Array.from({ length: t }).map(
507
- (l, o) => /* @__PURE__ */ e(q, { width: "90px", height: "48px" }, o)
1135
+ Array.from({ length: r }).map(
1136
+ (a, o) => /* @__PURE__ */ t.jsx(Ke, { width: "90px", height: "48px" }, o)
508
1137
  ),
509
- n && /* @__PURE__ */ e(q, { width: "110px", height: "48px", borderRadius: "full" })
1138
+ l && /* @__PURE__ */ t.jsx(Ke, { width: "110px", height: "48px", borderRadius: "full" })
510
1139
  ]
511
1140
  }
512
1141
  ),
513
- /* @__PURE__ */ c(
514
- we,
1142
+ /* @__PURE__ */ t.jsxs(
1143
+ pt,
515
1144
  { spacing: 4, ml: "auto", children: [
516
- /* @__PURE__ */ e(
517
- Z,
1145
+ /* @__PURE__ */ t.jsx(
1146
+ $e,
518
1147
  {
519
1148
  width: "120px",
520
1149
  height: "48px",
@@ -523,11 +1152,11 @@ const ee = 60, Ce = 6, _t = (t) => {
523
1152
  }
524
1153
  ),
525
1154
  " ",
526
- /* @__PURE__ */ e(Z, { width: "48px", height: "48px" }),
1155
+ /* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
527
1156
  " ",
528
- /* @__PURE__ */ e(Z, { width: "48px", height: "48px" }),
1157
+ /* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
529
1158
  " ",
530
- /* @__PURE__ */ e(Z, { width: "48px", height: "48px" }),
1159
+ /* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
531
1160
  " "
532
1161
  ] }
533
1162
  )
@@ -535,138 +1164,138 @@ const ee = 60, Ce = 6, _t = (t) => {
535
1164
  )
536
1165
  }
537
1166
  ) }
538
- ), Wt = (t, n) => {
539
- let l;
1167
+ ), Wn = (r, l) => {
1168
+ let a;
540
1169
  return (...o) => {
541
- l && clearTimeout(l), l = setTimeout(() => {
542
- t(...o);
543
- }, n);
1170
+ a && clearTimeout(a), a = setTimeout(() => {
1171
+ r(...o);
1172
+ }, l);
544
1173
  };
545
- }, ne = (t) => t.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), jt = (t, n) => {
546
- t.length < n.length && ([t, n] = [n, t]);
547
- let l = Array(n.length + 1).fill(0), o = Array(n.length + 1).fill(0);
548
- for (let r = 0; r <= n.length; r++)
549
- l[r] = r;
550
- for (let r = 1; r <= t.length; r++) {
551
- o[0] = r;
552
- for (let i = 1; i <= n.length; i++) {
553
- const d = t[r - 1] === n[i - 1] ? 0 : 1;
554
- o[i] = Math.min(
555
- o[i - 1] + 1,
1174
+ }, Qe = (r) => r.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), zn = (r, l) => {
1175
+ r.length < l.length && ([r, l] = [l, r]);
1176
+ let a = Array(l.length + 1).fill(0), o = Array(l.length + 1).fill(0);
1177
+ for (let u = 0; u <= l.length; u++)
1178
+ a[u] = u;
1179
+ for (let u = 1; u <= r.length; u++) {
1180
+ o[0] = u;
1181
+ for (let s = 1; s <= l.length; s++) {
1182
+ const h = r[u - 1] === l[s - 1] ? 0 : 1;
1183
+ o[s] = Math.min(
1184
+ o[s - 1] + 1,
556
1185
  // Insertion
557
- l[i] + 1,
1186
+ a[s] + 1,
558
1187
  // Deletion
559
- l[i - 1] + d
1188
+ a[s - 1] + h
560
1189
  // Substitution
561
1190
  );
562
1191
  }
563
- [l, o] = [o, l];
1192
+ [a, o] = [o, a];
564
1193
  }
565
- return l[n.length];
566
- }, X = (t, n, l = 0.6) => {
567
- if (t.length <= 3 || n.length <= 3)
568
- return t.includes(n) || n.includes(t);
569
- const o = jt(t, n), r = Math.max(t.length, n.length);
570
- return 1 - o / r >= l;
571
- }, ye = (t, n) => {
572
- const l = t.split(/\s+/);
573
- return n.length <= 4 ? l.some((o) => o.includes(n)) : l.some((o) => {
574
- if (X(o, n))
1194
+ return a[l.length];
1195
+ }, He = (r, l, a = 0.6) => {
1196
+ if (r.length <= 3 || l.length <= 3)
1197
+ return r.includes(l) || l.includes(r);
1198
+ const o = zn(r, l), u = Math.max(r.length, l.length);
1199
+ return 1 - o / u >= a;
1200
+ }, jt = (r, l) => {
1201
+ const a = r.split(/\s+/);
1202
+ return l.length <= 4 ? a.some((o) => o.includes(l)) : a.some((o) => {
1203
+ if (He(o, l))
575
1204
  return !0;
576
- if (o.length >= n.length)
577
- for (let r = 0; r <= o.length - n.length; r++) {
578
- const i = o.slice(r, r + n.length + 1);
579
- if (X(n, i))
1205
+ if (o.length >= l.length)
1206
+ for (let u = 0; u <= o.length - l.length; u++) {
1207
+ const s = o.slice(u, u + l.length + 1);
1208
+ if (He(l, s))
580
1209
  return !0;
581
1210
  }
582
1211
  return !1;
583
1212
  });
584
- }, ie = "nav-drawer-hover", oe = "nav-drawer-animation-start", re = "nav-drawer-animation-end", Se = (t) => {
1213
+ }, tt = "nav-drawer-hover", nt = "nav-drawer-animation-start", rt = "nav-drawer-animation-end", wt = (r) => {
585
1214
  window.dispatchEvent(
586
- new CustomEvent(ie, {
587
- detail: { isHovering: t },
1215
+ new CustomEvent(tt, {
1216
+ detail: { isHovering: r },
588
1217
  bubbles: !0,
589
1218
  cancelable: !0
590
1219
  })
591
1220
  );
592
- }, Le = (t) => {
1221
+ }, Ct = (r) => {
593
1222
  window.dispatchEvent(
594
- new CustomEvent(t, {
1223
+ new CustomEvent(r, {
595
1224
  bubbles: !0,
596
1225
  cancelable: !0
597
1226
  })
598
1227
  );
599
- }, Gt = (t = !1, n = !1, l = !1) => t || !n ? "column" : l ? "row" : "row-reverse", Ft = ce(tt), Ot = ce(nt), le = ({
600
- isOpen: t = !1,
601
- onClose: n,
602
- title: l,
1228
+ }, Nn = (r = !1, l = !1, a = !1) => r || !l ? "column" : a ? "row" : "row-reverse", Vn = lt(qt), Yn = lt(en), qe = ({
1229
+ isOpen: r = !1,
1230
+ onClose: l,
1231
+ title: a,
603
1232
  navDrawerLinks: o,
604
- bottomNavButtons: r,
605
- spotlightCards: i,
606
- bottomButton: d,
607
- hasBackButton: w = !0,
608
- onBackClick: g,
609
- hasOnlySpotlightCards: f = !1,
610
- hasSearch: s = !1,
611
- onSearch: x = () => ({}),
612
- topOffset: m
1233
+ bottomNavButtons: u,
1234
+ spotlightCards: s,
1235
+ bottomButton: h,
1236
+ hasBackButton: y = !0,
1237
+ onBackClick: p,
1238
+ hasOnlySpotlightCards: j = !1,
1239
+ hasSearch: c = !1,
1240
+ onSearch: E = () => ({}),
1241
+ topOffset: b
613
1242
  }) => {
614
- var $, z;
615
- const u = Q({
1243
+ var U, q;
1244
+ const g = Fe({
616
1245
  base: !1,
617
1246
  tablet: !1,
618
1247
  largeTablet: !1,
619
1248
  desktop: !0
620
- }), v = u ? "top" : "right", [R, j] = k(0), [B, _] = k(!1), G = () => {
621
- j((y) => y + 1);
622
- }, L = ke(
623
- Wt((y) => {
624
- x(y), G();
1249
+ }), k = g ? "top" : "right", [Z, ne] = G(0), [O, S] = G(!1), re = () => {
1250
+ ne((L) => L + 1);
1251
+ }, $ = St(
1252
+ Wn((L) => {
1253
+ E(L), re();
625
1254
  }, 100),
626
1255
  []
627
1256
  );
628
- A(() => {
629
- t && (_(!0), Le(oe));
630
- }, [t]);
631
- const T = () => {
632
- t || (_(!1), n()), Le(re);
1257
+ J(() => {
1258
+ r && (S(!0), Ct(nt));
1259
+ }, [r]);
1260
+ const V = () => {
1261
+ r || (S(!1), l()), Ct(rt);
633
1262
  };
634
- return /* @__PURE__ */ e(
635
- lt,
1263
+ return /* @__PURE__ */ t.jsx(
1264
+ tn,
636
1265
  {
637
- isOpen: B || t,
1266
+ isOpen: O || r,
638
1267
  onClose: () => {
639
- B && u || n();
1268
+ O && g || l();
640
1269
  },
641
- placement: v,
1270
+ placement: k,
642
1271
  blockScrollOnMount: !1,
643
1272
  autoFocus: !1,
644
- ...u ? {
1273
+ ...g ? {
645
1274
  styleConfig: {
646
1275
  baseStyle: {
647
- ...O.components.Drawer.baseStyle,
1276
+ ...Ee.components.Drawer.baseStyle,
648
1277
  dialogContainer: {
649
- ...(z = ($ = O.components.Drawer) == null ? void 0 : $.baseStyle) == null ? void 0 : z.dialogContainer,
1278
+ ...(q = (U = Ee.components.Drawer) == null ? void 0 : U.baseStyle) == null ? void 0 : q.dialogContainer,
650
1279
  // Push the drawer down by the top offset on desktop to not cover the top navigation
651
- top: u ? `${m}px` : void 0,
1280
+ top: g ? `${b}px` : void 0,
652
1281
  // Lower index on desktop to make sure the drawer is below the top navigation
653
1282
  zIndex: ["overlay"]
654
1283
  }
655
1284
  }
656
1285
  }
657
1286
  } : {},
658
- children: /* @__PURE__ */ e(
659
- Rt,
660
- { children: t ? /* @__PURE__ */ c(
661
- se,
1287
+ children: /* @__PURE__ */ t.jsx(
1288
+ On,
1289
+ { children: r ? /* @__PURE__ */ t.jsxs(
1290
+ t.Fragment,
662
1291
  { children: [
663
- /* @__PURE__ */ e(
664
- Ot,
1292
+ /* @__PURE__ */ t.jsx(
1293
+ Yn,
665
1294
  {
666
1295
  backgroundColor: "tints.black",
667
- top: ["0", null, null, `${m}px`],
668
- opacity: u ? void 0 : "0.4 !important",
669
- ...u ? {
1296
+ top: ["0", null, null, `${b}px`],
1297
+ opacity: g ? void 0 : "0.4 !important",
1298
+ ...g ? {
670
1299
  initial: { opacity: 0 },
671
1300
  animate: { opacity: 0.4 },
672
1301
  exit: { opacity: 0 },
@@ -678,18 +1307,18 @@ const ee = 60, Ce = 6, _t = (t) => {
678
1307
  } : {}
679
1308
  }
680
1309
  ),
681
- /* @__PURE__ */ c(
682
- Ft,
1310
+ /* @__PURE__ */ t.jsxs(
1311
+ Vn,
683
1312
  {
684
- onClick: (y) => {
685
- const I = y.target.closest("a");
686
- I && I.href === window.location.href && n();
1313
+ onClick: (L) => {
1314
+ const M = L.target.closest("a");
1315
+ M && M.href === window.location.href && l();
687
1316
  },
688
1317
  onMouseEnter: () => {
689
- u && Se(!0);
1318
+ g && wt(!0);
690
1319
  },
691
- onMouseLeave: (y) => {
692
- u && (!s || s && (y.target === y.currentTarget || !y.currentTarget.contains(y.target) && !B)) && Se(!1);
1320
+ onMouseLeave: (L) => {
1321
+ g && (!c || c && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !O)) && wt(!1);
693
1322
  },
694
1323
  paddingTop: "4",
695
1324
  paddingX: [4, null, null, 12],
@@ -697,67 +1326,67 @@ const ee = 60, Ce = 6, _t = (t) => {
697
1326
  overflow: ["auto", null, null, "hidden"],
698
1327
  maxHeight: "100vh",
699
1328
  position: "relative",
700
- top: u ? `${m}px !important` : void 0,
701
- onAnimationComplete: T,
1329
+ top: g ? `${b}px !important` : void 0,
1330
+ onAnimationComplete: V,
702
1331
  boxShadow: "none",
703
- ...u ? {
1332
+ ...g ? {
704
1333
  initial: { height: 0, opacity: 0 },
705
1334
  animate: { height: "auto", opacity: 1 },
706
1335
  exit: { height: 0, opacity: 0 },
707
1336
  transition: { duration: 0.3 }
708
1337
  } : {},
709
1338
  children: [
710
- !s && u ? null : /* @__PURE__ */ c(
711
- it,
1339
+ !c && g ? null : /* @__PURE__ */ t.jsxs(
1340
+ nn,
712
1341
  {
713
1342
  padding: "0",
714
- flexDirection: s ? "column" : "row",
715
- gap: s ? "4" : "0",
1343
+ flexDirection: c ? "column" : "row",
1344
+ gap: c ? "4" : "0",
716
1345
  children: [
717
- u ? null : /* @__PURE__ */ c(
718
- p,
1346
+ g ? null : /* @__PURE__ */ t.jsxs(
1347
+ C,
719
1348
  {
720
1349
  width: "100%",
721
1350
  justifyContent: "space-between",
722
1351
  alignItems: "center",
723
1352
  children: [
724
- w ? /* @__PURE__ */ e(
725
- V,
1353
+ y ? /* @__PURE__ */ t.jsx(
1354
+ he,
726
1355
  {
727
- icon: /* @__PURE__ */ e(It, {}),
1356
+ icon: /* @__PURE__ */ t.jsx(En, {}),
728
1357
  onClick: () => {
729
- g && g();
1358
+ p && p();
730
1359
  },
731
1360
  "aria-label": "Back"
732
1361
  }
733
1362
  ) : null,
734
- /* @__PURE__ */ e(
735
- S,
1363
+ /* @__PURE__ */ t.jsx(
1364
+ A,
736
1365
  {
737
1366
  color: "tints.uiGrey",
738
1367
  fontSize: ["xl", null, null, "lg"],
739
- children: l
1368
+ children: a
740
1369
  }
741
1370
  ),
742
- /* @__PURE__ */ e(
743
- V,
1371
+ /* @__PURE__ */ t.jsx(
1372
+ he,
744
1373
  {
745
- icon: /* @__PURE__ */ e(Dt, {}),
746
- onClick: n,
1374
+ icon: /* @__PURE__ */ t.jsx(Rn, {}),
1375
+ onClick: l,
747
1376
  "aria-label": "Close"
748
1377
  }
749
1378
  )
750
1379
  ]
751
1380
  }
752
1381
  ),
753
- s && /* @__PURE__ */ c(
754
- xt,
1382
+ c && /* @__PURE__ */ t.jsxs(
1383
+ mn,
755
1384
  { width: "100%", children: [
756
- /* @__PURE__ */ e(
757
- vt,
1385
+ /* @__PURE__ */ t.jsx(
1386
+ bn,
758
1387
  {
759
- onChange: (y) => {
760
- L(y.target.value);
1388
+ onChange: (L) => {
1389
+ $(L.target.value);
761
1390
  },
762
1391
  placeholder: "Search",
763
1392
  autoFocus: !0,
@@ -765,25 +1394,25 @@ const ee = 60, Ce = 6, _t = (t) => {
765
1394
  type: "search"
766
1395
  }
767
1396
  ),
768
- /* @__PURE__ */ e(
769
- Ct,
770
- { pointerEvents: "none", children: /* @__PURE__ */ e(yt, { as: Te, color: "gray.500" }) }
1397
+ /* @__PURE__ */ t.jsx(
1398
+ jn,
1399
+ { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(wn, { as: Tt, color: "gray.500" }) }
771
1400
  )
772
1401
  ] }
773
1402
  )
774
1403
  ]
775
1404
  }
776
1405
  ),
777
- /* @__PURE__ */ e(
778
- ot,
1406
+ /* @__PURE__ */ t.jsx(
1407
+ rn,
779
1408
  {
780
1409
  paddingX: "0",
781
1410
  paddingBottom: [6, null, null, 4],
782
- "data-testid": `navbar-drawer-body-${l.toLowerCase()}`,
783
- children: /* @__PURE__ */ c(
784
- ce.div,
1411
+ "data-testid": `navbar-drawer-body-${a.toLowerCase()}`,
1412
+ children: /* @__PURE__ */ t.jsxs(
1413
+ lt.div,
785
1414
  {
786
- ...u ? {
1415
+ ...g ? {
787
1416
  initial: { opacity: 0, y: -5 },
788
1417
  animate: { opacity: 1, y: 0 },
789
1418
  exit: { opacity: 0, y: -5 },
@@ -800,17 +1429,17 @@ const ee = 60, Ce = 6, _t = (t) => {
800
1429
  } : {},
801
1430
  style: {
802
1431
  display: "flex",
803
- flexDirection: Gt(
804
- f,
805
- u,
806
- s
1432
+ flexDirection: Nn(
1433
+ j,
1434
+ g,
1435
+ c
807
1436
  ),
808
1437
  gap: "24px",
809
1438
  justifyContent: "space-between"
810
1439
  },
811
1440
  children: [
812
- i ? /* @__PURE__ */ e(
813
- h,
1441
+ s ? /* @__PURE__ */ t.jsx(
1442
+ m,
814
1443
  {
815
1444
  gap: [3, null, null, 6],
816
1445
  display: "flex",
@@ -819,26 +1448,26 @@ const ee = 60, Ce = 6, _t = (t) => {
819
1448
  flexWrap: "wrap",
820
1449
  flexDirection: ["column", null, null, "row"]
821
1450
  },
822
- children: i
1451
+ children: s
823
1452
  }
824
1453
  ) : null,
825
- /* @__PURE__ */ c(
826
- p,
1454
+ /* @__PURE__ */ t.jsxs(
1455
+ C,
827
1456
  {
828
1457
  position: [null, null, null, "relative"],
829
1458
  flexDirection: "column",
830
1459
  gap: "6",
831
- width: ["100%", null, null, s ? null : "auto"],
1460
+ width: ["100%", null, null, c ? null : "auto"],
832
1461
  children: [
833
- o ? /* @__PURE__ */ e(h, { children: o }) : null,
834
- r && !u ? /* @__PURE__ */ e(h, { children: r }) : null,
835
- d ? /* @__PURE__ */ e(
836
- h,
1462
+ o ? /* @__PURE__ */ t.jsx(m, { children: o }) : null,
1463
+ u && !g ? /* @__PURE__ */ t.jsx(m, { children: u }) : null,
1464
+ h ? /* @__PURE__ */ t.jsx(
1465
+ m,
837
1466
  {
838
1467
  width: ["100%"],
839
1468
  position: [null, null, null, "absolute"],
840
1469
  bottom: [null, null, null, 0],
841
- children: d
1470
+ children: h
842
1471
  }
843
1472
  ) : null
844
1473
  ]
@@ -846,7 +1475,7 @@ const ee = 60, Ce = 6, _t = (t) => {
846
1475
  )
847
1476
  ]
848
1477
  },
849
- R
1478
+ Z
850
1479
  )
851
1480
  }
852
1481
  )
@@ -858,411 +1487,411 @@ const ee = 60, Ce = 6, _t = (t) => {
858
1487
  )
859
1488
  }
860
1489
  );
861
- }, Pt = ({
862
- source: t,
863
- onSearchCallback: n,
864
- isActive: l
1490
+ }, Gn = ({
1491
+ source: r,
1492
+ onSearchCallback: l,
1493
+ isActive: a
865
1494
  }) => {
866
- const [o, r] = k(""), [i, d] = k([]), w = (s, x) => {
867
- if (!s) return [];
868
- const u = ne(s).split(/\s+/);
869
- return x.filter((v) => {
870
- const R = ne(v.label);
871
- if (u.some((L) => ye(R, L))) return !0;
872
- const B = R.split(/\s+/), _ = u.some((L) => B.some((T) => T.includes(L) || X(L, T))), G = typeof v.additionalContent == "string" && u.some((L) => {
873
- const T = ne(v.additionalContent);
874
- return ye(T, L) || T.split(/\s+/).some(($) => $.includes(L) || X(L, $));
1495
+ const [o, u] = G(""), [s, h] = G([]), y = (c, E) => {
1496
+ if (!c) return [];
1497
+ const g = Qe(c).split(/\s+/);
1498
+ return E.filter((k) => {
1499
+ const Z = Qe(k.label);
1500
+ if (g.some(($) => jt(Z, $))) return !0;
1501
+ const O = Z.split(/\s+/), S = g.some(($) => O.some((V) => V.includes($) || He($, V))), re = typeof k.additionalContent == "string" && g.some(($) => {
1502
+ const V = Qe(k.additionalContent);
1503
+ return jt(V, $) || V.split(/\s+/).some((U) => U.includes($) || He($, U));
875
1504
  });
876
- return _ || G;
877
- }).sort((v, R) => v.label.localeCompare(R.label));
878
- }, g = (s) => {
879
- if (r(s), !s) {
880
- d([]);
1505
+ return S || re;
1506
+ }).sort((k, Z) => k.label.localeCompare(Z.label));
1507
+ }, p = (c) => {
1508
+ if (u(c), !c) {
1509
+ h([]);
881
1510
  return;
882
1511
  }
883
- const x = w(s, t);
884
- d(x), n && n(s, x);
885
- }, f = () => {
886
- r(""), d([]);
1512
+ const E = y(c, r);
1513
+ h(E), l && l(c, E);
1514
+ }, j = () => {
1515
+ u(""), h([]);
887
1516
  };
888
- return A(() => {
889
- l || (r(""), d([]));
890
- }, [l]), {
1517
+ return J(() => {
1518
+ a || (u(""), h([]));
1519
+ }, [a]), {
891
1520
  query: o,
892
- results: i,
893
- handleClose: f,
894
- handleSearch: g
1521
+ results: s,
1522
+ handleClose: j,
1523
+ handleSearch: p
895
1524
  };
896
- }, Zt = (t) => {
897
- const n = /* @__PURE__ */ new Set();
898
- return t.reduce((l, o) => {
899
- var i;
900
- const r = ((i = o.sections) == null ? void 0 : i.reduce((d, w) => {
901
- const g = w.links.filter((f) => n.has(f.label) || f.isSearchable !== !0 ? !1 : (n.add(f.label), !0));
902
- return [...d, ...g];
1525
+ }, Un = (r) => {
1526
+ const l = /* @__PURE__ */ new Set();
1527
+ return r.reduce((a, o) => {
1528
+ var s;
1529
+ const u = ((s = o.sections) == null ? void 0 : s.reduce((h, y) => {
1530
+ const p = y.links.filter((j) => l.has(j.label) || j.isSearchable !== !0 ? !1 : (l.add(j.label), !0));
1531
+ return [...h, ...p];
903
1532
  }, [])) ?? [];
904
- return [...l, ...r];
1533
+ return [...a, ...u];
905
1534
  }, []);
906
- }, cn = ({
907
- categories: t = [],
908
- onCartClick: n,
909
- mainCategoryLabel: l = "Menu",
1535
+ }, ar = ({
1536
+ categories: r = [],
1537
+ onCartClick: l,
1538
+ mainCategoryLabel: a = "Menu",
910
1539
  logoLink: o = "https://www.everlywell.com",
911
- hasSearch: r = !0,
912
- onSearchClick: i,
913
- registrationUrl: d,
914
- profileUrl: w = "https://secure.everlywell.com/login",
915
- mobileBottomButtons: g = [],
916
- numberOfCartItems: f = 0,
917
- linkComponent: s,
918
- onSearchCallback: x,
919
- onLinkClick: m,
920
- onCategoryOpen: u,
921
- onMobileMenuOpen: v,
922
- onBackToMainMenu: R,
923
- onRegisterKitClick: j,
924
- onProfileClick: B,
925
- onLogoClick: _,
926
- shopAllProductsUrl: G,
927
- onShopAllProductsClick: L
1540
+ hasSearch: u = !0,
1541
+ onSearchClick: s,
1542
+ registrationUrl: h,
1543
+ profileUrl: y = "https://secure.everlywell.com/login",
1544
+ mobileBottomButtons: p = [],
1545
+ numberOfCartItems: j = 0,
1546
+ linkComponent: c,
1547
+ onSearchCallback: E,
1548
+ onLinkClick: b,
1549
+ onCategoryOpen: g,
1550
+ onMobileMenuOpen: k,
1551
+ onBackToMainMenu: Z,
1552
+ onRegisterKitClick: ne,
1553
+ onProfileClick: O,
1554
+ onLogoClick: S,
1555
+ shopAllProductsUrl: re,
1556
+ onShopAllProductsClick: $
928
1557
  }) => {
929
- var fe, me, be;
930
- const [T, $] = k(!1), [z, y] = k(!1), [b, I] = k(null), [de, ue] = k(!1), [he, Me] = k(!1), [Y, Be] = k(0), [$e, pe] = k(!1);
931
- A(() => {
932
- const a = () => pe(!0), C = () => pe(!1);
933
- return window.addEventListener(oe, a), window.addEventListener(re, C), () => {
1558
+ var we, ie, Oe;
1559
+ const [V, U] = G(!1), [q, L] = G(!1), [_, M] = G(null), [_e, ge] = G(!1), [B, K] = G(!1), [X, Se] = G(0), [Te, xe] = G(!1);
1560
+ J(() => {
1561
+ const d = () => xe(!0), T = () => xe(!1);
1562
+ return window.addEventListener(nt, d), window.addEventListener(rt, T), () => {
934
1563
  window.removeEventListener(
935
- oe,
936
- a
937
- ), window.removeEventListener(re, C);
1564
+ nt,
1565
+ d
1566
+ ), window.removeEventListener(rt, T);
938
1567
  };
939
1568
  }, []);
940
- const Re = Q({
1569
+ const ke = Fe({
941
1570
  base: !1,
942
1571
  tablet: !1,
943
1572
  largeTablet: !1,
944
1573
  desktop: !0
945
1574
  }) ?? !1;
946
- A(() => {
947
- P(), I(null);
948
- }, [Re]);
1575
+ J(() => {
1576
+ ee(), M(null);
1577
+ }, [ke]);
949
1578
  const {
950
- query: _e,
951
- results: K,
952
- handleSearch: ze
953
- } = Pt({
954
- source: Zt(t),
955
- onSearchCallback: x,
956
- isActive: z
957
- }), ge = K.length > 0, J = s || E, Ne = W(G, !!s), Ve = _e && /* @__PURE__ */ c(
958
- p,
959
- { gap: ge ? "6" : 0, direction: "column", children: [
960
- ge ? /* @__PURE__ */ e(S, { color: "tints.uiGrey", children: `${K.length} Results` }) : /* @__PURE__ */ c(
961
- p,
1579
+ query: De,
1580
+ results: se,
1581
+ handleSearch: Ie
1582
+ } = Gn({
1583
+ source: Un(r),
1584
+ onSearchCallback: E,
1585
+ isActive: q
1586
+ }), ve = se.length > 0, me = c || N, Be = pe(re, !!c), be = De && /* @__PURE__ */ t.jsxs(
1587
+ C,
1588
+ { gap: ve ? "6" : 0, direction: "column", children: [
1589
+ ve ? /* @__PURE__ */ t.jsx(A, { color: "tints.uiGrey", children: `${se.length} Results` }) : /* @__PURE__ */ t.jsxs(
1590
+ C,
962
1591
  { direction: "column", gap: "6", alignItems: "flex-start", children: [
963
- /* @__PURE__ */ e(
964
- S,
1592
+ /* @__PURE__ */ t.jsx(
1593
+ A,
965
1594
  { color: "tints.uiGrey", children: "We didn't find what you were looking for." }
966
1595
  ),
967
- /* @__PURE__ */ e(
968
- Ee,
1596
+ /* @__PURE__ */ t.jsx(
1597
+ Rt,
969
1598
  {
970
- as: J,
971
- onClick: L,
1599
+ as: me,
1600
+ onClick: $,
972
1601
  _hover: { textDecoration: "none" },
973
1602
  width: ["100%", null, null, "auto"],
974
- ...Ne,
1603
+ ...Be,
975
1604
  children: "Shop all products"
976
1605
  }
977
1606
  )
978
1607
  ] }
979
1608
  ),
980
- /* @__PURE__ */ e(
981
- rt,
982
- { columns: [1, 1, 1, 4], children: K.map(
983
- (a, C) => /* @__PURE__ */ e(
984
- at,
985
- { children: /* @__PURE__ */ e(
986
- te,
1609
+ /* @__PURE__ */ t.jsx(
1610
+ ln,
1611
+ { columns: [1, 1, 1, 4], children: se.map(
1612
+ (d, T) => /* @__PURE__ */ t.jsx(
1613
+ on,
1614
+ { children: /* @__PURE__ */ t.jsx(
1615
+ Je,
987
1616
  {
988
- href: a.href,
989
- label: a.label,
990
- additionalContent: a == null ? void 0 : a.additionalContent,
991
- linkComponent: s
1617
+ href: d.href,
1618
+ label: d.label,
1619
+ additionalContent: d == null ? void 0 : d.additionalContent,
1620
+ linkComponent: c
992
1621
  }
993
1622
  ) },
994
- `${a.label}-${C}`
1623
+ `${d.label}-${T}`
995
1624
  )
996
1625
  ) }
997
1626
  )
998
1627
  ] }
999
- ), P = () => {
1000
- $(!1), I(null);
1001
- }, N = (a) => "href" in a, We = (a) => {
1002
- N(a) ? m == null || m(a.label) : I(a);
1003
- }, je = (a) => {
1004
- ue(!0), y(!1), I(null), !N(a) && (a.sections || a.spotlightCards) && I(a);
1005
- }, Ge = () => {
1006
- ue(!1);
1628
+ ), ee = () => {
1629
+ U(!1), M(null);
1630
+ }, Y = (d) => "href" in d, je = (d) => {
1631
+ Y(d) ? b == null || b(d.label) : M(d);
1632
+ }, ue = (d) => {
1633
+ ge(!0), L(!1), M(null), !Y(d) && (d.sections || d.spotlightCards) && M(d);
1634
+ }, We = () => {
1635
+ ge(!1);
1007
1636
  };
1008
- A(() => {
1009
- const a = (C) => {
1010
- Me(C.detail.isHovering);
1637
+ J(() => {
1638
+ const d = (T) => {
1639
+ K(T.detail.isHovering);
1011
1640
  };
1012
1641
  return window.addEventListener(
1013
- ie,
1014
- a
1642
+ tt,
1643
+ d
1015
1644
  ), () => {
1016
1645
  window.removeEventListener(
1017
- ie,
1018
- a
1646
+ tt,
1647
+ d
1019
1648
  );
1020
1649
  };
1021
- }, []), A(() => {
1022
- !de && !he && (I(null), y(!1));
1023
- }, [de, he]), A(() => {
1024
- let a = window.location.href;
1025
- const C = () => {
1026
- const H = window.location.href;
1027
- H !== a && (a = H, P(), I(null));
1028
- }, D = setInterval(C, 100);
1029
- return window.addEventListener("popstate", C), () => {
1030
- window.removeEventListener("popstate", C), clearInterval(D);
1650
+ }, []), J(() => {
1651
+ !_e && !B && (M(null), L(!1));
1652
+ }, [_e, B]), J(() => {
1653
+ let d = window.location.href;
1654
+ const T = () => {
1655
+ const W = window.location.href;
1656
+ W !== d && (d = W, ee(), M(null));
1657
+ }, H = setInterval(T, 100);
1658
+ return window.addEventListener("popstate", T), () => {
1659
+ window.removeEventListener("popstate", T), clearInterval(H);
1031
1660
  };
1032
1661
  }, []);
1033
- const Fe = t == null ? void 0 : t.map(
1034
- (a, C) => /* @__PURE__ */ e(
1035
- U,
1662
+ const Le = r == null ? void 0 : r.map(
1663
+ (d, T) => /* @__PURE__ */ t.jsx(
1664
+ Me,
1036
1665
  {
1037
1666
  onMouseEnter: () => {
1038
- je(a), u == null || u(a.label);
1667
+ ue(d), g == null || g(d.label);
1039
1668
  },
1040
- onMouseLeave: Ge,
1041
- isSelected: (b == null ? void 0 : b.label) === a.label,
1042
- as: N(a) && J ? J : E,
1043
- href: N(a) ? a.href : void 0,
1044
- onClick: N(a) ? () => m == null ? void 0 : m(a.label) : void 0,
1045
- ...a.buttonProps,
1046
- children: a.label
1669
+ onMouseLeave: We,
1670
+ isSelected: (_ == null ? void 0 : _.label) === d.label,
1671
+ as: Y(d) && me ? me : N,
1672
+ href: Y(d) ? d.href : void 0,
1673
+ onClick: Y(d) ? () => b == null ? void 0 : b(d.label) : void 0,
1674
+ ...d.buttonProps,
1675
+ children: d.label
1047
1676
  },
1048
- `${a.label}-${C}`
1677
+ `${d.label}-${T}`
1049
1678
  )
1050
- ), Oe = (fe = t.filter(
1051
- (a) => !N(a) && a.isMobileTopLink !== !1
1052
- )) == null ? void 0 : fe.map((a, C) => {
1053
- const D = a;
1054
- return /* @__PURE__ */ e(
1055
- h,
1679
+ ), ze = (we = r.filter(
1680
+ (d) => !Y(d) && d.isMobileTopLink !== !1
1681
+ )) == null ? void 0 : we.map((d, T) => {
1682
+ const H = d;
1683
+ return /* @__PURE__ */ t.jsx(
1684
+ m,
1056
1685
  {
1057
1686
  onClick: () => {
1058
- We(D), u == null || u(D.label);
1687
+ je(H), g == null || g(H.label);
1059
1688
  },
1060
- children: /* @__PURE__ */ e(
1061
- te,
1689
+ children: /* @__PURE__ */ t.jsx(
1690
+ Je,
1062
1691
  {
1063
- label: D.label,
1692
+ label: H.label,
1064
1693
  role: "link",
1065
- additionalContent: D.additionalContent,
1694
+ additionalContent: H.additionalContent,
1066
1695
  mainTextFontSize: "3xl",
1067
- linkComponent: s
1696
+ linkComponent: c
1068
1697
  }
1069
1698
  )
1070
1699
  },
1071
- `${D.label}-${C}`
1700
+ `${H.label}-${T}`
1072
1701
  );
1073
- }), Pe = /* @__PURE__ */ c(
1074
- p,
1075
- { gap: "2", flexDirection: "column", children: [
1076
- g,
1077
- /* @__PURE__ */ c(
1078
- se,
1079
- { children: [
1080
- /* @__PURE__ */ e(
1081
- U,
1082
- {
1083
- as: E,
1084
- href: w,
1085
- width: "100%",
1086
- backgroundColor: "tints.cream",
1087
- onClick: B,
1088
- children: /* @__PURE__ */ c(
1089
- p,
1090
- { gap: "2", children: [
1091
- "My Everly",
1092
- /* @__PURE__ */ e(M, { as: ve, size: 24 })
1093
- ] }
1094
- )
1095
- },
1096
- "my-everly"
1097
- ),
1098
- /* @__PURE__ */ e(
1099
- U,
1100
- {
1101
- as: E,
1102
- width: "100%",
1103
- href: d,
1104
- backgroundColor: "tints.cream",
1105
- onClick: j,
1106
- children: /* @__PURE__ */ c(
1107
- p,
1108
- { gap: "2", children: [
1109
- "Register kit",
1110
- /* @__PURE__ */ e(M, { as: Et, size: 24 })
1111
- ] }
1112
- )
1113
- },
1114
- "register-kit"
1702
+ }), Ne = /* @__PURE__ */ t.jsxs(
1703
+ t.Fragment,
1704
+ { children: [
1705
+ /* @__PURE__ */ t.jsx(
1706
+ Me,
1707
+ {
1708
+ as: N,
1709
+ href: y,
1710
+ width: "100%",
1711
+ backgroundColor: "tints.cream",
1712
+ onClick: O,
1713
+ children: /* @__PURE__ */ t.jsxs(
1714
+ C,
1715
+ { gap: "2", children: [
1716
+ "My Everly",
1717
+ /* @__PURE__ */ t.jsx(Q, { as: xt, size: 24 })
1718
+ ] }
1115
1719
  )
1116
- ] }
1720
+ },
1721
+ "my-everly"
1722
+ ),
1723
+ /* @__PURE__ */ t.jsx(
1724
+ Me,
1725
+ {
1726
+ as: N,
1727
+ width: "100%",
1728
+ href: h,
1729
+ backgroundColor: "tints.cream",
1730
+ onClick: ne,
1731
+ children: /* @__PURE__ */ t.jsxs(
1732
+ C,
1733
+ { gap: "2", children: [
1734
+ "Register kit",
1735
+ /* @__PURE__ */ t.jsx(Q, { as: _n, size: 24 })
1736
+ ] }
1737
+ )
1738
+ },
1739
+ "register-kit"
1117
1740
  )
1118
1741
  ] }
1119
- ), Ze = b ? /* @__PURE__ */ e(
1120
- p,
1121
- { direction: ["column", null, null, "row"], gap: "8", children: (me = b == null ? void 0 : b.sections) == null ? void 0 : me.map((a, C) => {
1122
- const D = [];
1123
- for (let H = 0; H < a.links.length; H += 3)
1124
- D.push(a.links.slice(H, H + 3));
1125
- return /* @__PURE__ */ c(
1126
- h,
1742
+ ), ce = /* @__PURE__ */ t.jsxs(
1743
+ C,
1744
+ { gap: "2", flexDirection: "column", children: [
1745
+ p,
1746
+ Ne
1747
+ ] }
1748
+ ), le = _ ? /* @__PURE__ */ t.jsx(
1749
+ C,
1750
+ { direction: ["column", null, null, "row"], gap: "8", children: (ie = _ == null ? void 0 : _.sections) == null ? void 0 : ie.map((d, T) => {
1751
+ const H = [];
1752
+ for (let W = 0; W < d.links.length; W += 3)
1753
+ H.push(d.links.slice(W, W + 3));
1754
+ return /* @__PURE__ */ t.jsxs(
1755
+ m,
1127
1756
  { children: [
1128
- /* @__PURE__ */ e(
1129
- S,
1757
+ /* @__PURE__ */ t.jsx(
1758
+ A,
1130
1759
  {
1131
1760
  fontSize: "md",
1132
1761
  color: "tints.uiGrey",
1133
1762
  marginBottom: [0, null, null, 6],
1134
- children: a.title
1763
+ children: d.title
1135
1764
  }
1136
1765
  ),
1137
- /* @__PURE__ */ e(
1138
- p,
1766
+ /* @__PURE__ */ t.jsx(
1767
+ C,
1139
1768
  {
1140
1769
  flexDirection: ["column", null, null, "row"],
1141
1770
  gap: [null, null, null, 8],
1142
- children: D == null ? void 0 : D.map(
1143
- (H, Xe) => /* @__PURE__ */ e(
1144
- p,
1771
+ children: H == null ? void 0 : H.map(
1772
+ (W, Pe) => /* @__PURE__ */ t.jsx(
1773
+ C,
1145
1774
  {
1146
1775
  flexDirection: ["column"],
1147
1776
  gap: [null, null, null, 5],
1148
1777
  marginLeft: [null, null, null, -2],
1149
- children: H == null ? void 0 : H.map(
1150
- (F, Qe) => /* @__PURE__ */ e(
1151
- te,
1778
+ children: W == null ? void 0 : W.map(
1779
+ (te, oe) => /* @__PURE__ */ t.jsx(
1780
+ Je,
1152
1781
  {
1153
- label: F.label,
1154
- href: F.href,
1155
- additionalContent: F.additionalContent,
1156
- linkComponent: s,
1157
- onClick: () => m == null ? void 0 : m(F.label)
1782
+ label: te.label,
1783
+ href: te.href,
1784
+ additionalContent: te.additionalContent,
1785
+ linkComponent: c,
1786
+ onClick: () => b == null ? void 0 : b(te.label)
1158
1787
  },
1159
- `${F.label}-${Qe}`
1788
+ `${te.label}-${oe}`
1160
1789
  )
1161
1790
  )
1162
1791
  },
1163
- Xe
1792
+ Pe
1164
1793
  )
1165
1794
  )
1166
1795
  }
1167
1796
  )
1168
1797
  ] },
1169
- `${a.title}-${C}`
1798
+ `${d.title}-${T}`
1170
1799
  );
1171
1800
  }) }
1172
- ) : null, Ue = b != null && b.spotlightCards ? (be = b.spotlightCards) == null ? void 0 : be.map(
1173
- (a, C) => /* @__PURE__ */ e(zt, { ...a }, `${a.title}-${C}`)
1174
- ) : /* @__PURE__ */ e(h, {});
1175
- return /* @__PURE__ */ c(
1176
- h,
1801
+ ) : null, Ae = _ != null && _.spotlightCards ? (Oe = _.spotlightCards) == null ? void 0 : Oe.map(
1802
+ (d, T) => /* @__PURE__ */ t.jsx(Hn, { ...d }, `${d.title}-${T}`)
1803
+ ) : /* @__PURE__ */ t.jsx(m, {});
1804
+ return /* @__PURE__ */ t.jsxs(
1805
+ m,
1177
1806
  {
1178
1807
  as: "nav",
1179
1808
  "aria-label": "Main navigation",
1180
1809
  position: "sticky",
1181
1810
  top: "0",
1182
1811
  width: "100%",
1183
- zIndex: ["sticky", null, null, $e ? "modal" : "sticky"],
1812
+ zIndex: ["sticky", null, null, Te ? "modal" : "sticky"],
1184
1813
  children: [
1185
- /* @__PURE__ */ e(
1186
- Nt,
1814
+ /* @__PURE__ */ t.jsx(
1815
+ Fn,
1187
1816
  {
1188
- desktopTopButtons: Fe,
1189
- kitRegistrationElement: /* @__PURE__ */ e(
1190
- U,
1817
+ desktopTopButtons: Le,
1818
+ kitRegistrationElement: /* @__PURE__ */ t.jsx(
1819
+ Me,
1191
1820
  {
1192
- as: E,
1193
- href: d,
1194
- onClick: j,
1821
+ as: N,
1822
+ href: h,
1823
+ onClick: ne,
1195
1824
  backgroundColor: "tints.cream",
1196
1825
  children: "Register Kit"
1197
1826
  }
1198
1827
  ),
1199
- profileElement: /* @__PURE__ */ e(
1200
- E,
1201
- { href: w, "aria-label": "login", onClick: B, children: /* @__PURE__ */ e(V, { icon: /* @__PURE__ */ e(M, { as: ve }), "aria-label": "Profile" }) }
1828
+ profileElement: /* @__PURE__ */ t.jsx(
1829
+ N,
1830
+ { href: y, "aria-label": "login", onClick: O, children: /* @__PURE__ */ t.jsx(he, { icon: /* @__PURE__ */ t.jsx(Q, { as: xt }), "aria-label": "Profile" }) }
1202
1831
  ),
1203
- cartElement: /* @__PURE__ */ e(
1204
- Vt,
1832
+ cartElement: /* @__PURE__ */ t.jsx(
1833
+ Bn,
1205
1834
  {
1206
1835
  "aria-label": "Cart",
1207
- count: f,
1208
- onClick: n
1836
+ count: j,
1837
+ onClick: l
1209
1838
  }
1210
1839
  ),
1211
1840
  onSearchClick: () => {
1212
- y(!z), i == null || i();
1841
+ L(!q), s == null || s();
1213
1842
  },
1214
1843
  onMenuClick: () => {
1215
- $(!0), v == null || v();
1844
+ U(!0), k == null || k();
1216
1845
  },
1217
- hasSearch: r,
1846
+ hasSearch: u,
1218
1847
  logoLink: o,
1219
- linkComponent: s,
1220
- onLogoClick: _,
1221
- setTopOffset: Be
1848
+ linkComponent: c,
1849
+ onLogoClick: S,
1850
+ setTopOffset: Se
1222
1851
  }
1223
1852
  ),
1224
- /* @__PURE__ */ c(
1225
- h,
1853
+ /* @__PURE__ */ t.jsxs(
1854
+ m,
1226
1855
  { position: "relative", zIndex: "modal", children: [
1227
- /* @__PURE__ */ e(
1228
- le,
1856
+ /* @__PURE__ */ t.jsx(
1857
+ qe,
1229
1858
  {
1230
- isOpen: T,
1231
- onClose: P,
1232
- title: l,
1233
- navDrawerLinks: Oe,
1234
- bottomNavButtons: Pe,
1859
+ isOpen: V,
1860
+ onClose: ee,
1861
+ title: a,
1862
+ navDrawerLinks: ze,
1863
+ bottomNavButtons: ce,
1235
1864
  hasBackButton: !1,
1236
- topOffset: Y
1865
+ topOffset: X
1237
1866
  }
1238
1867
  ),
1239
- /* @__PURE__ */ e(
1240
- le,
1868
+ /* @__PURE__ */ t.jsx(
1869
+ qe,
1241
1870
  {
1242
- isOpen: !!b,
1871
+ isOpen: !!_,
1243
1872
  onClose: () => {
1244
- P(), I(null);
1873
+ ee(), M(null);
1245
1874
  },
1246
- title: (b == null ? void 0 : b.label) || "",
1247
- navDrawerLinks: Ze,
1248
- onBackClick: () => I(null),
1249
- spotlightCards: Ue,
1250
- hasOnlySpotlightCards: b == null ? void 0 : b.hasOnlySpotlightCards,
1251
- bottomButton: b == null ? void 0 : b.bottomButton,
1252
- topOffset: Y
1875
+ title: (_ == null ? void 0 : _.label) || "",
1876
+ navDrawerLinks: le,
1877
+ onBackClick: () => M(null),
1878
+ spotlightCards: Ae,
1879
+ hasOnlySpotlightCards: _ == null ? void 0 : _.hasOnlySpotlightCards,
1880
+ bottomButton: _ == null ? void 0 : _.bottomButton,
1881
+ topOffset: X
1253
1882
  }
1254
1883
  ),
1255
- /* @__PURE__ */ e(
1256
- le,
1884
+ /* @__PURE__ */ t.jsx(
1885
+ qe,
1257
1886
  {
1258
- isOpen: z,
1259
- onClose: () => y(!1),
1887
+ isOpen: q,
1888
+ onClose: () => L(!1),
1260
1889
  title: "Search",
1261
- navDrawerLinks: Ve,
1262
- onSearch: ze,
1890
+ navDrawerLinks: be,
1891
+ onSearch: Ie,
1263
1892
  hasSearch: !0,
1264
1893
  hasBackButton: !1,
1265
- topOffset: Y
1894
+ topOffset: X
1266
1895
  }
1267
1896
  )
1268
1897
  ] }
@@ -1270,167 +1899,167 @@ const ee = 60, Ce = 6, _t = (t) => {
1270
1899
  ]
1271
1900
  }
1272
1901
  );
1273
- }, Ie = ({ links: t, linkComponent: n, onLinkClick: l }) => {
1274
- const o = n || E, r = (i) => {
1275
- l && l(i);
1902
+ }, yt = ({ links: r, linkComponent: l, onLinkClick: a }) => {
1903
+ const o = l || N, u = (s) => {
1904
+ a && a(s);
1276
1905
  };
1277
- return /* @__PURE__ */ e(
1278
- p,
1279
- { direction: "column", gap: 6, children: t.map(
1280
- (i) => /* @__PURE__ */ e(
1281
- S,
1906
+ return /* @__PURE__ */ t.jsx(
1907
+ C,
1908
+ { direction: "column", gap: 6, children: r.map(
1909
+ (s) => /* @__PURE__ */ t.jsx(
1910
+ A,
1282
1911
  {
1283
1912
  as: o,
1284
1913
  color: "white",
1285
1914
  size: "lg",
1286
1915
  _hover: { color: "viridian.lighter", textDecoration: "none" },
1287
- onClick: () => r(i.label),
1288
- ...W(i.href, !!n),
1289
- children: i.label
1916
+ onClick: () => u(s.label),
1917
+ ...pe(s.href, !!l),
1918
+ children: s.label
1290
1919
  },
1291
- i.label
1920
+ s.label
1292
1921
  )
1293
1922
  ) }
1294
1923
  );
1295
- }, Ut = ({ title: t, links: n, isLast: l }) => {
1296
- const o = l ? "transparent" : `${O.colors.viridian.lighter}20`;
1297
- return n ? /* @__PURE__ */ e(
1298
- ct,
1299
- { borderColor: o, children: ({ isExpanded: r }) => /* @__PURE__ */ c(
1300
- se,
1924
+ }, Zn = ({ title: r, links: l, isLast: a }) => {
1925
+ const o = a ? "transparent" : `${Ee.colors.viridian.lighter}20`;
1926
+ return l ? /* @__PURE__ */ t.jsx(
1927
+ sn,
1928
+ { borderColor: o, children: ({ isExpanded: u }) => /* @__PURE__ */ t.jsxs(
1929
+ t.Fragment,
1301
1930
  { children: [
1302
- /* @__PURE__ */ c(
1303
- dt,
1931
+ /* @__PURE__ */ t.jsxs(
1932
+ un,
1304
1933
  { paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
1305
- /* @__PURE__ */ e(
1306
- S,
1307
- { color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: t }
1934
+ /* @__PURE__ */ t.jsx(
1935
+ A,
1936
+ { color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: r }
1308
1937
  ),
1309
- /* @__PURE__ */ e(
1310
- M,
1938
+ /* @__PURE__ */ t.jsx(
1939
+ Q,
1311
1940
  {
1312
- as: Ht,
1941
+ as: Sn,
1313
1942
  size: "sm",
1314
1943
  color: "viridian.lighter",
1315
- transform: r ? "rotate(-180deg)" : "rotate(0deg)",
1944
+ transform: u ? "rotate(-180deg)" : "rotate(0deg)",
1316
1945
  transition: "transform 0.3s ease"
1317
1946
  }
1318
1947
  )
1319
1948
  ] }
1320
1949
  ),
1321
- /* @__PURE__ */ e(
1322
- ut,
1323
- { pb: 4, px: 0, children: n }
1950
+ /* @__PURE__ */ t.jsx(
1951
+ cn,
1952
+ { pb: 4, px: 0, children: l }
1324
1953
  )
1325
1954
  ] }
1326
1955
  ) }
1327
1956
  ) : null;
1328
- }, Xt = ({ title: t, links: n }) => n ? /* @__PURE__ */ c(
1329
- h,
1957
+ }, Kn = ({ title: r, links: l }) => l ? /* @__PURE__ */ t.jsxs(
1958
+ m,
1330
1959
  { children: [
1331
- /* @__PURE__ */ e(
1332
- S,
1333
- { color: "viridian.lighter", mb: 6, fontSize: "lg", children: t }
1960
+ /* @__PURE__ */ t.jsx(
1961
+ A,
1962
+ { color: "viridian.lighter", mb: 6, fontSize: "lg", children: r }
1334
1963
  ),
1335
- n
1964
+ l
1336
1965
  ] }
1337
- ) : null, Qt = ({
1338
- sections: t,
1339
- linkComponent: n,
1340
- onLinkClick: l
1341
- }) => Q({
1966
+ ) : null, Xn = ({
1967
+ sections: r,
1968
+ linkComponent: l,
1969
+ onLinkClick: a
1970
+ }) => Fe({
1342
1971
  base: !1,
1343
1972
  tablet: !1,
1344
1973
  largeTablet: !0,
1345
1974
  desktop: !0
1346
- }) ? /* @__PURE__ */ e(
1347
- p,
1975
+ }) ? /* @__PURE__ */ t.jsx(
1976
+ C,
1348
1977
  {
1349
1978
  justify: "space-between",
1350
1979
  align: "flex-start",
1351
- children: /* @__PURE__ */ e(
1352
- p,
1353
- { gap: 120, children: t.map(
1354
- ({ title: r, links: i }) => /* @__PURE__ */ e(
1355
- Xt,
1980
+ children: /* @__PURE__ */ t.jsx(
1981
+ C,
1982
+ { gap: 120, children: r.map(
1983
+ ({ title: u, links: s }) => /* @__PURE__ */ t.jsx(
1984
+ Kn,
1356
1985
  {
1357
- title: r,
1358
- links: /* @__PURE__ */ e(
1359
- Ie,
1986
+ title: u,
1987
+ links: /* @__PURE__ */ t.jsx(
1988
+ yt,
1360
1989
  {
1361
- links: i,
1362
- linkComponent: n,
1363
- onLinkClick: l
1990
+ links: s,
1991
+ linkComponent: l,
1992
+ onLinkClick: a
1364
1993
  }
1365
1994
  )
1366
1995
  },
1367
- r
1996
+ u
1368
1997
  )
1369
1998
  ) }
1370
1999
  )
1371
2000
  }
1372
- ) : /* @__PURE__ */ e(
1373
- st,
2001
+ ) : /* @__PURE__ */ t.jsx(
2002
+ an,
1374
2003
  {
1375
2004
  allowMultiple: !0,
1376
2005
  defaultIndex: [0],
1377
2006
  width: "100%",
1378
2007
  display: "flex",
1379
2008
  flexDirection: "column",
1380
- children: t.map(
1381
- ({ title: r, links: i }, d) => /* @__PURE__ */ e(
1382
- Ut,
2009
+ children: r.map(
2010
+ ({ title: u, links: s }, h) => /* @__PURE__ */ t.jsx(
2011
+ Zn,
1383
2012
  {
1384
- title: r,
1385
- links: /* @__PURE__ */ e(
1386
- Ie,
2013
+ title: u,
2014
+ links: /* @__PURE__ */ t.jsx(
2015
+ yt,
1387
2016
  {
1388
- links: i,
1389
- linkComponent: n,
1390
- onLinkClick: l
2017
+ links: s,
2018
+ linkComponent: l,
2019
+ onLinkClick: a
1391
2020
  }
1392
2021
  ),
1393
- isLast: d === t.length - 1
2022
+ isLast: h === r.length - 1
1394
2023
  },
1395
- r
2024
+ u
1396
2025
  )
1397
2026
  )
1398
2027
  }
1399
- ), De = {
1400
- instagram: Tt,
1401
- linkedin: At,
1402
- facebook: Mt,
1403
- tiktok: Bt,
1404
- x: $t
1405
- }, Yt = ({
1406
- socialLinks: t,
1407
- onEmailSubmit: n,
1408
- socialMediaLabel: l,
2028
+ ), Et = {
2029
+ instagram: kn,
2030
+ linkedin: Dn,
2031
+ facebook: In,
2032
+ tiktok: Ln,
2033
+ x: An
2034
+ }, Jn = ({
2035
+ socialLinks: r,
2036
+ onEmailSubmit: l,
2037
+ socialMediaLabel: a,
1409
2038
  newsletterLabel: o,
1410
- onLinkClick: r
2039
+ onLinkClick: u
1411
2040
  }) => {
1412
- const [i, d] = ae.useState(""), w = () => {
1413
- i && n && (n(i), d(""));
1414
- }, g = (s) => {
1415
- s.key === "Enter" && w();
1416
- }, f = (s) => {
1417
- r && r(s);
2041
+ const [s, h] = Re.useState(""), y = () => {
2042
+ s && l && (l(s), h(""));
2043
+ }, p = (c) => {
2044
+ c.key === "Enter" && y();
2045
+ }, j = (c) => {
2046
+ u && u(c);
1418
2047
  };
1419
- return /* @__PURE__ */ c(
1420
- h,
2048
+ return /* @__PURE__ */ t.jsxs(
2049
+ m,
1421
2050
  { width: ["100%", null, null, "440px"], children: [
1422
- /* @__PURE__ */ c(
1423
- h,
2051
+ /* @__PURE__ */ t.jsxs(
2052
+ m,
1424
2053
  { mb: [8, 10], children: [
1425
- /* @__PURE__ */ e(
1426
- S,
2054
+ /* @__PURE__ */ t.jsx(
2055
+ A,
1427
2056
  { color: "viridian.lighter", mb: 6, size: "lg", children: o }
1428
2057
  ),
1429
- /* @__PURE__ */ c(
1430
- ht,
2058
+ /* @__PURE__ */ t.jsxs(
2059
+ dn,
1431
2060
  { children: [
1432
- /* @__PURE__ */ e(
1433
- pt,
2061
+ /* @__PURE__ */ t.jsx(
2062
+ fn,
1434
2063
  {
1435
2064
  placeholder: "Enter your email",
1436
2065
  bg: "transparent",
@@ -1441,23 +2070,23 @@ const ee = 60, Ce = 6, _t = (t) => {
1441
2070
  opacity: 0.66,
1442
2071
  height: "52px",
1443
2072
  pr: "48px",
1444
- value: i,
1445
- onChange: (s) => d(s.target.value),
1446
- onKeyPress: g
2073
+ value: s,
2074
+ onChange: (c) => h(c.target.value),
2075
+ onKeyPress: p
1447
2076
  }
1448
2077
  ),
1449
- /* @__PURE__ */ e(
1450
- gt,
1451
- { h: "52px", pr: 4, children: /* @__PURE__ */ e(
1452
- M,
2078
+ /* @__PURE__ */ t.jsx(
2079
+ hn,
2080
+ { h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
2081
+ Q,
1453
2082
  {
1454
- as: kt,
2083
+ as: Tn,
1455
2084
  color: "viridian.lighter",
1456
2085
  width: "24px",
1457
2086
  height: "24px",
1458
2087
  opacity: 0.66,
1459
2088
  cursor: "pointer",
1460
- onClick: w,
2089
+ onClick: y,
1461
2090
  "data-testid": "arrow-right-icon",
1462
2091
  role: "button",
1463
2092
  "aria-label": "Submit"
@@ -1468,35 +2097,35 @@ const ee = 60, Ce = 6, _t = (t) => {
1468
2097
  )
1469
2098
  ] }
1470
2099
  ),
1471
- /* @__PURE__ */ c(
1472
- h,
2100
+ /* @__PURE__ */ t.jsxs(
2101
+ m,
1473
2102
  { children: [
1474
- /* @__PURE__ */ e(
1475
- S,
1476
- { color: "viridian.lighter", marginBottom: 4, size: "lg", children: l }
2103
+ /* @__PURE__ */ t.jsx(
2104
+ A,
2105
+ { color: "viridian.lighter", marginBottom: 4, size: "lg", children: a }
1477
2106
  ),
1478
- /* @__PURE__ */ e(
1479
- p,
1480
- { gap: 3, children: t == null ? void 0 : t.map(
1481
- (s) => /* @__PURE__ */ e(
1482
- E,
2107
+ /* @__PURE__ */ t.jsx(
2108
+ C,
2109
+ { gap: 3, children: r == null ? void 0 : r.map(
2110
+ (c) => /* @__PURE__ */ t.jsx(
2111
+ N,
1483
2112
  {
1484
- href: s.href,
2113
+ href: c.href,
1485
2114
  target: "_blank",
1486
2115
  rel: "noopener noreferrer",
1487
- "aria-label": s.name,
1488
- onClick: () => f(s.name),
1489
- children: De[s.name.toLowerCase()] && /* @__PURE__ */ e(
1490
- M,
2116
+ "aria-label": c.name,
2117
+ onClick: () => j(c.name),
2118
+ children: Et[c.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
2119
+ Q,
1491
2120
  {
1492
- as: De[s.name.toLowerCase()],
2121
+ as: Et[c.name.toLowerCase()],
1493
2122
  color: "white",
1494
2123
  width: ["48px", null, "24px", null],
1495
2124
  height: ["48px", null, "24px", null]
1496
2125
  }
1497
2126
  )
1498
2127
  },
1499
- s.name
2128
+ c.name
1500
2129
  )
1501
2130
  ) }
1502
2131
  )
@@ -1504,48 +2133,48 @@ const ee = 60, Ce = 6, _t = (t) => {
1504
2133
  )
1505
2134
  ] }
1506
2135
  );
1507
- }, Kt = ({
1508
- links: t,
1509
- linkComponent: n,
1510
- onLinkClick: l
2136
+ }, Qn = ({
2137
+ links: r,
2138
+ linkComponent: l,
2139
+ onLinkClick: a
1511
2140
  }) => {
1512
- const o = n || E, r = (d) => {
1513
- l && l(d);
1514
- }, i = t == null ? void 0 : t.map(
1515
- (d) => /* @__PURE__ */ e(
1516
- S,
2141
+ const o = l || N, u = (h) => {
2142
+ a && a(h);
2143
+ }, s = r == null ? void 0 : r.map(
2144
+ (h) => /* @__PURE__ */ t.jsx(
2145
+ A,
1517
2146
  {
1518
2147
  as: o,
1519
2148
  color: "viridian.lighter",
1520
2149
  size: "sm",
1521
2150
  _hover: { color: "white", textDecoration: "none" },
1522
- onClick: () => r(d.label),
1523
- ...W(d.href, !!n),
1524
- children: d.label
2151
+ onClick: () => u(h.label),
2152
+ ...pe(h.href, !!l),
2153
+ children: h.label
1525
2154
  },
1526
- d.label
2155
+ h.label
1527
2156
  )
1528
2157
  );
1529
- return /* @__PURE__ */ c(
1530
- p,
2158
+ return /* @__PURE__ */ t.jsxs(
2159
+ C,
1531
2160
  {
1532
2161
  direction: ["column", "column", "row"],
1533
2162
  justify: "space-between",
1534
2163
  align: ["flex-start", "flex-start", "center"],
1535
2164
  gap: [6, 6, 0],
1536
2165
  children: [
1537
- /* @__PURE__ */ e(
1538
- p,
2166
+ /* @__PURE__ */ t.jsx(
2167
+ C,
1539
2168
  {
1540
2169
  direction: "row",
1541
2170
  flexWrap: "wrap",
1542
2171
  gap: [4, 6, 10],
1543
2172
  width: ["100%", "auto"],
1544
- children: i
2173
+ children: s
1545
2174
  }
1546
2175
  ),
1547
- /* @__PURE__ */ c(
1548
- S,
2176
+ /* @__PURE__ */ t.jsxs(
2177
+ A,
1549
2178
  { color: "viridian.lighter", fontSize: "sm", children: [
1550
2179
  "© Everlywell ",
1551
2180
  (/* @__PURE__ */ new Date()).getFullYear()
@@ -1554,61 +2183,61 @@ const ee = 60, Ce = 6, _t = (t) => {
1554
2183
  ]
1555
2184
  }
1556
2185
  );
1557
- }, dn = ae.forwardRef(({
1558
- navigationSections: t = [],
1559
- disclaimer: n,
1560
- newsletterLabel: l,
2186
+ }, sr = Re.forwardRef(({
2187
+ navigationSections: r = [],
2188
+ disclaimer: l,
2189
+ newsletterLabel: a,
1561
2190
  socialMediaLabel: o,
1562
- socialLinks: r,
1563
- complianceLinks: i,
1564
- linkComponent: d,
1565
- onEmailSubmit: w,
1566
- additionalContent: g,
1567
- onLinkClick: f,
1568
- onSocialMediaClick: s
1569
- }, x) => /* @__PURE__ */ e(
1570
- h,
1571
- { as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: x, children: /* @__PURE__ */ c(
1572
- ft,
2191
+ socialLinks: u,
2192
+ complianceLinks: s,
2193
+ linkComponent: h,
2194
+ onEmailSubmit: y,
2195
+ additionalContent: p,
2196
+ onLinkClick: j,
2197
+ onSocialMediaClick: c
2198
+ }, E) => /* @__PURE__ */ t.jsx(
2199
+ m,
2200
+ { as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: E, children: /* @__PURE__ */ t.jsxs(
2201
+ pn,
1573
2202
  { size: "fluid", children: [
1574
- /* @__PURE__ */ c(
1575
- p,
2203
+ /* @__PURE__ */ t.jsxs(
2204
+ C,
1576
2205
  { direction: "column", gap: [8, 12], children: [
1577
- /* @__PURE__ */ e(
1578
- h,
1579
- { children: /* @__PURE__ */ e(Ae, { width: ["150px", "202px"], color: "white" }) }
2206
+ /* @__PURE__ */ t.jsx(
2207
+ m,
2208
+ { children: /* @__PURE__ */ t.jsx(kt, { width: ["150px", "202px"], color: "white" }) }
1580
2209
  ),
1581
- /* @__PURE__ */ c(
1582
- p,
2210
+ /* @__PURE__ */ t.jsxs(
2211
+ C,
1583
2212
  {
1584
2213
  direction: ["column", null, null, "row"],
1585
2214
  justify: "space-between",
1586
2215
  align: ["flex-start"],
1587
2216
  gap: [8, 8, 8, 0],
1588
2217
  children: [
1589
- /* @__PURE__ */ e(
1590
- Qt,
2218
+ /* @__PURE__ */ t.jsx(
2219
+ Xn,
1591
2220
  {
1592
- sections: t,
1593
- linkComponent: d,
1594
- onLinkClick: f
2221
+ sections: r,
2222
+ linkComponent: h,
2223
+ onLinkClick: j
1595
2224
  }
1596
2225
  ),
1597
- /* @__PURE__ */ e(
1598
- Yt,
2226
+ /* @__PURE__ */ t.jsx(
2227
+ Jn,
1599
2228
  {
1600
- socialLinks: r,
1601
- newsletterLabel: l,
2229
+ socialLinks: u,
2230
+ newsletterLabel: a,
1602
2231
  socialMediaLabel: o,
1603
- onEmailSubmit: w,
1604
- onLinkClick: s
2232
+ onEmailSubmit: y,
2233
+ onLinkClick: c
1605
2234
  }
1606
2235
  )
1607
2236
  ]
1608
2237
  }
1609
2238
  ),
1610
- /* @__PURE__ */ c(
1611
- p,
2239
+ /* @__PURE__ */ t.jsxs(
2240
+ C,
1612
2241
  {
1613
2242
  direction: ["column", "column", "row"],
1614
2243
  justify: "space-between",
@@ -1616,56 +2245,56 @@ const ee = 60, Ce = 6, _t = (t) => {
1616
2245
  align: ["flex-start", "flex-start", "center"],
1617
2246
  gap: [6, 6, 0],
1618
2247
  children: [
1619
- n && /* @__PURE__ */ e(
1620
- S,
2248
+ l && /* @__PURE__ */ t.jsx(
2249
+ A,
1621
2250
  {
1622
2251
  color: "viridian.lighter",
1623
2252
  fontSize: "sm",
1624
2253
  maxWidth: ["100%", "100%", "1024px"],
1625
- dangerouslySetInnerHTML: { __html: n },
2254
+ dangerouslySetInnerHTML: { __html: l },
1626
2255
  sx: {
1627
2256
  "a:hover": { color: "viridian.light", textDecoration: "underline" }
1628
2257
  }
1629
2258
  }
1630
2259
  ),
1631
- g
2260
+ p
1632
2261
  ]
1633
2262
  }
1634
2263
  )
1635
2264
  ] }
1636
2265
  ),
1637
- /* @__PURE__ */ e(
1638
- h,
2266
+ /* @__PURE__ */ t.jsx(
2267
+ m,
1639
2268
  {
1640
2269
  borderTop: "1px solid",
1641
- borderColor: `${O.colors.viridian.lighter}20`,
2270
+ borderColor: `${Ee.colors.viridian.lighter}20`,
1642
2271
  marginTop: "10",
1643
2272
  marginBottom: "8"
1644
2273
  }
1645
2274
  ),
1646
- /* @__PURE__ */ e(
1647
- Kt,
2275
+ /* @__PURE__ */ t.jsx(
2276
+ Qn,
1648
2277
  {
1649
- disclaimer: n,
1650
- links: i,
1651
- linkComponent: d,
1652
- onLinkClick: f
2278
+ disclaimer: l,
2279
+ links: s,
2280
+ linkComponent: h,
2281
+ onLinkClick: j
1653
2282
  }
1654
2283
  )
1655
2284
  ] }
1656
2285
  ) }
1657
2286
  ));
1658
2287
  export {
1659
- Vt as BasketButton,
1660
- an as CategoryLabel,
1661
- dn as Footer,
1662
- U as NavButton,
1663
- sn as NavSkeleton,
1664
- le as NavbarDrawer,
1665
- te as NavbarDrawerLink,
1666
- cn as NavigationBar,
1667
- zt as SpotlightCard,
1668
- rn as Stepper,
1669
- V as TopNavIconButton,
1670
- Nt as TopNavigation
2288
+ Bn as BasketButton,
2289
+ ir as CategoryLabel,
2290
+ sr as Footer,
2291
+ Me as NavButton,
2292
+ or as NavSkeleton,
2293
+ qe as NavbarDrawer,
2294
+ Je as NavbarDrawerLink,
2295
+ ar as NavigationBar,
2296
+ Hn as SpotlightCard,
2297
+ lr as Stepper,
2298
+ he as TopNavIconButton,
2299
+ Fn as TopNavigation
1671
2300
  };