@everlywell/consumer-ui 1.39.4 → 1.39.5

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.
Files changed (3) hide show
  1. package/index.js +1 -30
  2. package/index.mjs +831 -1460
  3. package/package.json +3 -3
package/index.mjs CHANGED
@@ -1,689 +1,60 @@
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) => {
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) => {
637
8
  const {
638
- activeStepIndex: l,
639
- hideIndicators: a = !1,
9
+ activeStepIndex: n,
10
+ hideIndicators: l = !1,
640
11
  steps: o,
641
- stepperTheme: u = {
12
+ stepperTheme: r = {
642
13
  light: "eggplant.light",
643
14
  base: "eggplant.base"
644
15
  }
645
- } = r, { activeStep: s, setActiveStep: h } = Zt({
646
- index: l,
16
+ } = t, { activeStep: i, setActiveStep: d } = Ye({
17
+ index: n,
647
18
  count: o.length
648
19
  });
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,
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,
655
26
  {
656
27
  role: "progressbar",
657
- index: s,
28
+ index: i,
658
29
  width: "100%",
659
30
  display: "flex",
660
31
  flexWrap: "nowrap",
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,
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,
667
38
  {
668
- width: g,
669
- opacity: b || j ? 1 : 0.2,
670
- paddingRight: E ? "0" : "6px",
671
- paddingLeft: c ? "0" : "6px",
39
+ width: u,
40
+ opacity: m || f ? 1 : 0.2,
41
+ paddingRight: x ? "0" : "6px",
42
+ paddingLeft: s ? "0" : "6px",
672
43
  transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
673
- children: /* @__PURE__ */ t.jsx(
674
- m,
44
+ children: /* @__PURE__ */ e(
45
+ h,
675
46
  {
676
- paddingTop: a ? 2 : 5,
47
+ paddingTop: l ? 2 : 5,
677
48
  position: "relative",
678
49
  width: "100%",
679
- children: /* @__PURE__ */ t.jsx(
680
- m,
50
+ children: /* @__PURE__ */ e(
51
+ h,
681
52
  {
682
53
  width: "100%",
683
54
  position: "absolute",
684
55
  top: "0",
685
- backgroundColor: b ? u.light : u.base,
686
- height: a ? "4px" : "8px",
56
+ backgroundColor: m ? r.light : r.base,
57
+ height: l ? "4px" : "8px",
687
58
  borderRadius: "4",
688
59
  left: "0"
689
60
  }
@@ -691,40 +62,40 @@ const Xe = 60, bt = 6, Mn = (r) => {
691
62
  }
692
63
  )
693
64
  },
694
- `step-${p}`
65
+ `step-${g}`
695
66
  );
696
67
  })
697
68
  }
698
69
  ) }
699
70
  );
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
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
710
81
  } : {
711
- href: r
82
+ href: t
712
83
  };
713
- }, Je = _t(
714
- (r, l) => {
84
+ }, te = He(
85
+ (t, n) => {
715
86
  const {
716
- label: a,
87
+ label: l,
717
88
  additionalContent: o,
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,
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,
725
96
  {
726
- ref: l,
727
- as: p,
97
+ ref: n,
98
+ as: g,
728
99
  display: "flex",
729
100
  alignItems: "center",
730
101
  gap: [null, null, null, 1],
@@ -736,14 +107,14 @@ const Xe = 60, bt = 6, Mn = (r) => {
736
107
  borderColor: ["tints.cream", null, null, "unset"],
737
108
  width: ["100%", null, null, "fit-content"],
738
109
  cursor: "pointer",
739
- ...j,
740
- ...y,
110
+ ...f,
111
+ ...w,
741
112
  children: [
742
- /* @__PURE__ */ t.jsx(
743
- Q,
113
+ /* @__PURE__ */ e(
114
+ M,
744
115
  {
745
116
  display: ["none", null, null, "block"],
746
- as: gt,
117
+ as: xe,
747
118
  fontSize: "lg",
748
119
  color: "viridian.light",
749
120
  role: "img",
@@ -751,19 +122,19 @@ const Xe = 60, bt = 6, Mn = (r) => {
751
122
  weight: "bold"
752
123
  }
753
124
  ),
754
- /* @__PURE__ */ t.jsxs(
755
- C,
125
+ /* @__PURE__ */ c(
126
+ p,
756
127
  { alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
757
- /* @__PURE__ */ t.jsx(
758
- A,
128
+ /* @__PURE__ */ e(
129
+ S,
759
130
  {
760
- fontSize: [u || "xl", null, null, "lg"],
131
+ fontSize: [r || "xl", null, null, "lg"],
761
132
  fontWeight: "medium",
762
- children: a
133
+ children: l
763
134
  }
764
135
  ),
765
- o && (typeof o == "string" ? /* @__PURE__ */ t.jsx(
766
- A,
136
+ o && (typeof o == "string" ? /* @__PURE__ */ e(
137
+ S,
767
138
  {
768
139
  fontSize: ["xl", null, null, "lg"],
769
140
  fontWeight: "medium",
@@ -776,11 +147,11 @@ const Xe = 60, bt = 6, Mn = (r) => {
776
147
  children: o
777
148
  }
778
149
  ) : o),
779
- /* @__PURE__ */ t.jsx(
780
- Q,
150
+ /* @__PURE__ */ e(
151
+ M,
781
152
  {
782
153
  display: ["block", null, null, "none"],
783
- as: gt,
154
+ as: xe,
784
155
  fontSize: "2xl",
785
156
  color: "tints.uiGrey",
786
157
  role: "img",
@@ -794,15 +165,15 @@ const Xe = 60, bt = 6, Mn = (r) => {
794
165
  }
795
166
  );
796
167
  }
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,
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,
802
173
  {
803
- ref: l,
174
+ ref: n,
804
175
  borderRadius: "full",
805
- backgroundColor: s,
176
+ backgroundColor: i,
806
177
  fontSize: "lg !important",
807
178
  fontWeight: "normal",
808
179
  color: "tints.black",
@@ -820,42 +191,42 @@ const Xe = 60, bt = 6, Mn = (r) => {
820
191
  left: [null, null, null, -2]
821
192
  },
822
193
  _hover: {
823
- backgroundColor: s,
194
+ backgroundColor: i,
824
195
  textDecoration: "none",
825
196
  filter: "brightness(0.95)"
826
197
  },
827
- ...u,
828
- children: a
198
+ ...r,
199
+ children: l
829
200
  }
830
201
  );
831
202
  }
832
- ), Hn = ({
833
- title: r,
834
- description: l,
835
- imageSrc: a,
203
+ ), zt = ({
204
+ title: t,
205
+ description: n,
206
+ imageSrc: l,
836
207
  imageElement: o,
837
- button: u,
838
- backgroundColor: s = "viridian.wash",
839
- onClick: h,
840
- href: y,
841
- linkComponent: p
208
+ button: r,
209
+ backgroundColor: i = "viridian.wash",
210
+ onClick: d,
211
+ href: w,
212
+ linkComponent: g
842
213
  }) => {
843
- const b = p || N, g = pe(y, !!p), k = Fe({
214
+ const m = g || E, u = W(w, !!g), v = Q({
844
215
  base: !1,
845
216
  tablet: !1,
846
217
  largeTablet: !1,
847
218
  desktop: !0
848
219
  });
849
- return /* @__PURE__ */ t.jsxs(
850
- C,
220
+ return /* @__PURE__ */ c(
221
+ p,
851
222
  {
852
223
  direction: ["row", null, null, "column"],
853
224
  alignItems: ["center"],
854
225
  borderRadius: "xl",
855
226
  overflow: "hidden",
856
227
  height: ["80px", null, null, "272px"],
857
- backgroundColor: s,
858
- onClick: h,
228
+ backgroundColor: i,
229
+ onClick: d,
859
230
  "data-testid": "spotlight-card",
860
231
  position: "relative",
861
232
  transition: "box-shadow 0.2s ease-in-out",
@@ -869,30 +240,30 @@ const Xe = 60, bt = 6, Mn = (r) => {
869
240
  border: "1px solid",
870
241
  borderColor: "tints.white"
871
242
  },
872
- as: k ? C : b,
873
- ...k ? {} : g,
243
+ as: v ? p : m,
244
+ ...v ? {} : u,
874
245
  children: [
875
- /* @__PURE__ */ t.jsx(
876
- m,
246
+ /* @__PURE__ */ e(
247
+ h,
877
248
  {
878
249
  width: ["72px", null, null, "100%"],
879
250
  height: ["100%", null, null, "188px"],
880
251
  sx: {
881
252
  img: {
882
- height: k ? "188px" : "100%"
253
+ height: v ? "188px" : "100%"
883
254
  }
884
255
  },
885
- children: a ? /* @__PURE__ */ t.jsx(
886
- Xt,
256
+ children: l ? /* @__PURE__ */ e(
257
+ Je,
887
258
  {
888
- src: a,
259
+ src: l,
889
260
  objectFit: "cover",
890
261
  width: "100%",
891
262
  alt: "",
892
263
  "data-testid": "spotlight-card-image"
893
264
  }
894
- ) : /* @__PURE__ */ t.jsx(
895
- m,
265
+ ) : /* @__PURE__ */ e(
266
+ h,
896
267
  {
897
268
  height: [80, null, null, 188],
898
269
  overflow: "hidden",
@@ -901,8 +272,8 @@ const Xe = 60, bt = 6, Mn = (r) => {
901
272
  )
902
273
  }
903
274
  ),
904
- /* @__PURE__ */ t.jsxs(
905
- C,
275
+ /* @__PURE__ */ c(
276
+ p,
906
277
  {
907
278
  direction: ["column", null, null, "row"],
908
279
  justifyContent: [null, null, null, "space-between"],
@@ -916,33 +287,33 @@ const Xe = 60, bt = 6, Mn = (r) => {
916
287
  ],
917
288
  width: "100%",
918
289
  bottom: [null, null, null, "0"],
919
- backgroundColor: [null, null, null, `${s}CC`],
290
+ backgroundColor: [null, null, null, `${i}CC`],
920
291
  backdropFilter: [null, null, null, "blur(8px)"],
921
292
  flex: "1",
922
293
  gap: [null, null, null, 3],
923
294
  children: [
924
- /* @__PURE__ */ t.jsxs(
925
- C,
295
+ /* @__PURE__ */ c(
296
+ p,
926
297
  { direction: "column", justifyContent: "center", height: "100%", children: [
927
- /* @__PURE__ */ t.jsx(
928
- A,
929
- { fontSize: "lg", fontWeight: "medium", color: "tints.black", children: r }
298
+ /* @__PURE__ */ e(
299
+ S,
300
+ { fontSize: "lg", fontWeight: "medium", color: "tints.black", children: t }
930
301
  ),
931
- /* @__PURE__ */ t.jsx(
932
- A,
933
- { fontSize: "sm", color: "tints.darkGrey", children: l }
302
+ /* @__PURE__ */ e(
303
+ S,
304
+ { fontSize: "sm", color: "tints.darkGrey", children: n }
934
305
  )
935
306
  ] }
936
307
  ),
937
- k ? /* @__PURE__ */ t.jsx(m, { children: u }) : null
308
+ v ? /* @__PURE__ */ e(h, { children: r }) : null
938
309
  ]
939
310
  }
940
311
  )
941
312
  ]
942
313
  }
943
314
  );
944
- }, he = (r) => /* @__PURE__ */ t.jsx(
945
- Jt,
315
+ }, V = (t) => /* @__PURE__ */ e(
316
+ qe,
946
317
  {
947
318
  size: "sm",
948
319
  width: ["40px", null, null, "46px"],
@@ -960,28 +331,28 @@ const Xe = 60, bt = 6, Mn = (r) => {
960
331
  backgroundColor: "tints.cream",
961
332
  filter: "brightness(0.95)"
962
333
  },
963
- ...r
334
+ ...t
964
335
  }
965
- ), kt = ({
966
- color: r = Ee.colors.viridian.base,
967
- width: l
968
- }) => /* @__PURE__ */ t.jsx(
969
- vn,
336
+ ), Ae = ({
337
+ color: t = O.colors.viridian.base,
338
+ width: n
339
+ }) => /* @__PURE__ */ e(
340
+ wt,
970
341
  {
971
342
  as: "svg",
972
- width: l,
343
+ width: n,
973
344
  height: "auto",
974
345
  viewBox: "0 0 116 24",
975
346
  fill: "none",
976
347
  xmlns: "http://www.w3.org/2000/svg",
977
348
  role: "img",
978
349
  "aria-label": "Everlywell Logo",
979
- children: /* @__PURE__ */ t.jsx(
350
+ children: /* @__PURE__ */ e(
980
351
  "g",
981
- { id: "Everlywell Logo", children: /* @__PURE__ */ t.jsx(
352
+ { id: "Everlywell Logo", children: /* @__PURE__ */ e(
982
353
  "path",
983
354
  {
984
- fill: r,
355
+ fill: t,
985
356
  id: "Everlywell Logo_2",
986
357
  fillRule: "evenodd",
987
358
  clipRule: "evenodd",
@@ -990,104 +361,104 @@ const Xe = 60, bt = 6, Mn = (r) => {
990
361
  ) }
991
362
  )
992
363
  }
993
- ), Fn = ({
994
- desktopTopButtons: r,
995
- kitRegistrationElement: l,
996
- profileElement: a,
364
+ ), Nt = ({
365
+ desktopTopButtons: t,
366
+ kitRegistrationElement: n,
367
+ profileElement: l,
997
368
  cartElement: o,
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
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
1005
376
  }) => {
1006
- const E = gn(null), b = St(() => {
1007
- if (E.current) {
1008
- const g = E.current.getBoundingClientRect();
1009
- p(g.bottom);
377
+ const x = mt(null), m = ke(() => {
378
+ if (x.current) {
379
+ const u = x.current.getBoundingClientRect();
380
+ g(u.bottom);
1010
381
  }
1011
382
  }, []);
1012
- return J(() => {
1013
- b();
1014
- }, [b]), /* @__PURE__ */ t.jsx(
1015
- m,
383
+ return A(() => {
384
+ m();
385
+ }, [m]), /* @__PURE__ */ e(
386
+ h,
1016
387
  {
1017
- ref: E,
388
+ ref: x,
1018
389
  paddingY: "4",
1019
390
  paddingX: [4, null, null, 12],
1020
391
  borderBottom: "1px solid",
1021
392
  borderColor: "tints.lightCream",
1022
393
  backgroundColor: "tints.white",
1023
394
  width: "100%",
1024
- onMouseEnter: b,
1025
- children: /* @__PURE__ */ t.jsxs(
1026
- C,
395
+ onMouseEnter: m,
396
+ children: /* @__PURE__ */ c(
397
+ p,
1027
398
  { justifyContent: "space-between", alignItems: "center", children: [
1028
- /* @__PURE__ */ t.jsxs(
1029
- C,
399
+ /* @__PURE__ */ c(
400
+ p,
1030
401
  { alignItems: "center", gap: "5", children: [
1031
- /* @__PURE__ */ t.jsx(
1032
- m,
402
+ /* @__PURE__ */ e(
403
+ h,
1033
404
  {
1034
405
  "aria-label": "Go to homepage",
1035
- onClick: c,
1036
- as: j || N,
1037
- ...pe(y, !!j),
1038
- children: /* @__PURE__ */ t.jsx(kt, { width: "116px" })
406
+ onClick: s,
407
+ as: f || E,
408
+ ...W(w, !!f),
409
+ children: /* @__PURE__ */ e(Ae, { width: "116px" })
1039
410
  }
1040
411
  ),
1041
- /* @__PURE__ */ t.jsx(
1042
- C,
1043
- { display: ["none", null, null, "flex"], children: r }
412
+ /* @__PURE__ */ e(
413
+ p,
414
+ { display: ["none", null, null, "flex"], children: t }
1044
415
  )
1045
416
  ] }
1046
417
  ),
1047
- /* @__PURE__ */ t.jsxs(
1048
- C,
418
+ /* @__PURE__ */ c(
419
+ p,
1049
420
  { alignItems: "center", gap: "2", children: [
1050
- /* @__PURE__ */ t.jsx(
1051
- m,
1052
- { display: ["none", null, null, "block"], children: l }
421
+ /* @__PURE__ */ e(
422
+ h,
423
+ { display: ["none", null, null, "block"], children: n }
1053
424
  ),
1054
- h ? /* @__PURE__ */ t.jsx(
1055
- he,
425
+ d ? /* @__PURE__ */ e(
426
+ V,
1056
427
  {
1057
428
  "aria-label": "Search",
1058
- icon: /* @__PURE__ */ t.jsx(Q, { as: Tt }),
1059
- onClick: u
429
+ icon: /* @__PURE__ */ e(M, { as: Te }),
430
+ onClick: r
1060
431
  }
1061
432
  ) : null,
1062
433
  o,
1063
- /* @__PURE__ */ t.jsx(
1064
- m,
1065
- { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1066
- he,
434
+ /* @__PURE__ */ e(
435
+ h,
436
+ { display: ["flex", null, null, "none"], children: /* @__PURE__ */ e(
437
+ V,
1067
438
  {
1068
- icon: /* @__PURE__ */ t.jsx(Cn, {}),
439
+ icon: /* @__PURE__ */ e(St, {}),
1069
440
  "aria-label": "menu",
1070
441
  "data-testid": "menu-button",
1071
- onClick: s
442
+ onClick: i
1072
443
  }
1073
444
  ) }
1074
445
  ),
1075
- /* @__PURE__ */ t.jsx(m, { display: ["none", null, null, "block"], children: a })
446
+ /* @__PURE__ */ e(h, { display: ["none", null, null, "block"], children: l })
1076
447
  ] }
1077
448
  )
1078
449
  ] }
1079
450
  )
1080
451
  }
1081
452
  );
1082
- }, Bn = ({
1083
- count: r = 0,
1084
- ...l
1085
- }) => /* @__PURE__ */ t.jsxs(
1086
- m,
453
+ }, Vt = ({
454
+ count: t = 0,
455
+ ...n
456
+ }) => /* @__PURE__ */ c(
457
+ h,
1087
458
  { position: "relative", display: "inline-block", children: [
1088
- /* @__PURE__ */ t.jsx(he, { icon: /* @__PURE__ */ t.jsx(yn, {}), ...l }),
1089
- r > 0 && /* @__PURE__ */ t.jsx(
1090
- m,
459
+ /* @__PURE__ */ e(V, { icon: /* @__PURE__ */ e(Lt, {}), ...n }),
460
+ t > 0 && /* @__PURE__ */ e(
461
+ h,
1091
462
  {
1092
463
  display: "flex",
1093
464
  minWidth: "20px",
@@ -1104,46 +475,46 @@ const Xe = 60, bt = 6, Mn = (r) => {
1104
475
  color: "white",
1105
476
  fontSize: "xs",
1106
477
  fontWeight: "normal",
1107
- children: r
478
+ children: t
1108
479
  }
1109
480
  )
1110
481
  ] }
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,
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,
1118
489
  {
1119
490
  paddingY: 4,
1120
491
  paddingX: 6,
1121
492
  borderBottomWidth: "1px",
1122
493
  borderColor: "tints.lightCream",
1123
- children: /* @__PURE__ */ t.jsxs(
1124
- C,
494
+ children: /* @__PURE__ */ c(
495
+ p,
1125
496
  { justify: "space-between", align: "center", children: [
1126
- /* @__PURE__ */ t.jsx(Ke, { w: "120px", h: "48px" }),
1127
- /* @__PURE__ */ t.jsxs(
1128
- pt,
497
+ /* @__PURE__ */ e(q, { w: "120px", h: "48px" }),
498
+ /* @__PURE__ */ c(
499
+ we,
1129
500
  {
1130
501
  spacing: 8,
1131
502
  marginLeft: 12,
1132
503
  display: ["none", null, null, "flex"],
1133
504
  "data-testid": "desktop-nav",
1134
505
  children: [
1135
- Array.from({ length: r }).map(
1136
- (a, o) => /* @__PURE__ */ t.jsx(Ke, { width: "90px", height: "48px" }, o)
506
+ Array.from({ length: t }).map(
507
+ (l, o) => /* @__PURE__ */ e(q, { width: "90px", height: "48px" }, o)
1137
508
  ),
1138
- l && /* @__PURE__ */ t.jsx(Ke, { width: "110px", height: "48px", borderRadius: "full" })
509
+ n && /* @__PURE__ */ e(q, { width: "110px", height: "48px", borderRadius: "full" })
1139
510
  ]
1140
511
  }
1141
512
  ),
1142
- /* @__PURE__ */ t.jsxs(
1143
- pt,
513
+ /* @__PURE__ */ c(
514
+ we,
1144
515
  { spacing: 4, ml: "auto", children: [
1145
- /* @__PURE__ */ t.jsx(
1146
- $e,
516
+ /* @__PURE__ */ e(
517
+ Z,
1147
518
  {
1148
519
  width: "120px",
1149
520
  height: "48px",
@@ -1152,11 +523,11 @@ const Xe = 60, bt = 6, Mn = (r) => {
1152
523
  }
1153
524
  ),
1154
525
  " ",
1155
- /* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
526
+ /* @__PURE__ */ e(Z, { width: "48px", height: "48px" }),
1156
527
  " ",
1157
- /* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
528
+ /* @__PURE__ */ e(Z, { width: "48px", height: "48px" }),
1158
529
  " ",
1159
- /* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
530
+ /* @__PURE__ */ e(Z, { width: "48px", height: "48px" }),
1160
531
  " "
1161
532
  ] }
1162
533
  )
@@ -1164,138 +535,138 @@ const Xe = 60, bt = 6, Mn = (r) => {
1164
535
  )
1165
536
  }
1166
537
  ) }
1167
- ), Wn = (r, l) => {
1168
- let a;
538
+ ), Wt = (t, n) => {
539
+ let l;
1169
540
  return (...o) => {
1170
- a && clearTimeout(a), a = setTimeout(() => {
1171
- r(...o);
1172
- }, l);
541
+ l && clearTimeout(l), l = setTimeout(() => {
542
+ t(...o);
543
+ }, n);
1173
544
  };
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,
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,
1185
556
  // Insertion
1186
- a[s] + 1,
557
+ l[i] + 1,
1187
558
  // Deletion
1188
- a[s - 1] + h
559
+ l[i - 1] + d
1189
560
  // Substitution
1190
561
  );
1191
562
  }
1192
- [a, o] = [o, a];
563
+ [l, o] = [o, l];
1193
564
  }
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))
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))
1204
575
  return !0;
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))
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))
1209
580
  return !0;
1210
581
  }
1211
582
  return !1;
1212
583
  });
1213
- }, tt = "nav-drawer-hover", nt = "nav-drawer-animation-start", rt = "nav-drawer-animation-end", wt = (r) => {
584
+ }, ie = "nav-drawer-hover", oe = "nav-drawer-animation-start", re = "nav-drawer-animation-end", Se = (t) => {
1214
585
  window.dispatchEvent(
1215
- new CustomEvent(tt, {
1216
- detail: { isHovering: r },
586
+ new CustomEvent(ie, {
587
+ detail: { isHovering: t },
1217
588
  bubbles: !0,
1218
589
  cancelable: !0
1219
590
  })
1220
591
  );
1221
- }, Ct = (r) => {
592
+ }, Le = (t) => {
1222
593
  window.dispatchEvent(
1223
- new CustomEvent(r, {
594
+ new CustomEvent(t, {
1224
595
  bubbles: !0,
1225
596
  cancelable: !0
1226
597
  })
1227
598
  );
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,
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,
1232
603
  navDrawerLinks: o,
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
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
1242
613
  }) => {
1243
- var U, q;
1244
- const g = Fe({
614
+ var $, z;
615
+ const u = Q({
1245
616
  base: !1,
1246
617
  tablet: !1,
1247
618
  largeTablet: !1,
1248
619
  desktop: !0
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();
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();
1254
625
  }, 100),
1255
626
  []
1256
627
  );
1257
- J(() => {
1258
- r && (S(!0), Ct(nt));
1259
- }, [r]);
1260
- const V = () => {
1261
- r || (S(!1), l()), Ct(rt);
628
+ A(() => {
629
+ t && (_(!0), Le(oe));
630
+ }, [t]);
631
+ const T = () => {
632
+ t || (_(!1), n()), Le(re);
1262
633
  };
1263
- return /* @__PURE__ */ t.jsx(
1264
- tn,
634
+ return /* @__PURE__ */ e(
635
+ lt,
1265
636
  {
1266
- isOpen: O || r,
637
+ isOpen: B || t,
1267
638
  onClose: () => {
1268
- O && g || l();
639
+ B && u || n();
1269
640
  },
1270
- placement: k,
641
+ placement: v,
1271
642
  blockScrollOnMount: !1,
1272
643
  autoFocus: !1,
1273
- ...g ? {
644
+ ...u ? {
1274
645
  styleConfig: {
1275
646
  baseStyle: {
1276
- ...Ee.components.Drawer.baseStyle,
647
+ ...O.components.Drawer.baseStyle,
1277
648
  dialogContainer: {
1278
- ...(q = (U = Ee.components.Drawer) == null ? void 0 : U.baseStyle) == null ? void 0 : q.dialogContainer,
649
+ ...(z = ($ = O.components.Drawer) == null ? void 0 : $.baseStyle) == null ? void 0 : z.dialogContainer,
1279
650
  // Push the drawer down by the top offset on desktop to not cover the top navigation
1280
- top: g ? `${b}px` : void 0,
651
+ top: u ? `${m}px` : void 0,
1281
652
  // Lower index on desktop to make sure the drawer is below the top navigation
1282
653
  zIndex: ["overlay"]
1283
654
  }
1284
655
  }
1285
656
  }
1286
657
  } : {},
1287
- children: /* @__PURE__ */ t.jsx(
1288
- On,
1289
- { children: r ? /* @__PURE__ */ t.jsxs(
1290
- t.Fragment,
658
+ children: /* @__PURE__ */ e(
659
+ Rt,
660
+ { children: t ? /* @__PURE__ */ c(
661
+ se,
1291
662
  { children: [
1292
- /* @__PURE__ */ t.jsx(
1293
- Yn,
663
+ /* @__PURE__ */ e(
664
+ Ot,
1294
665
  {
1295
666
  backgroundColor: "tints.black",
1296
- top: ["0", null, null, `${b}px`],
1297
- opacity: g ? void 0 : "0.4 !important",
1298
- ...g ? {
667
+ top: ["0", null, null, `${m}px`],
668
+ opacity: u ? void 0 : "0.4 !important",
669
+ ...u ? {
1299
670
  initial: { opacity: 0 },
1300
671
  animate: { opacity: 0.4 },
1301
672
  exit: { opacity: 0 },
@@ -1307,18 +678,18 @@ const Xe = 60, bt = 6, Mn = (r) => {
1307
678
  } : {}
1308
679
  }
1309
680
  ),
1310
- /* @__PURE__ */ t.jsxs(
1311
- Vn,
681
+ /* @__PURE__ */ c(
682
+ Ft,
1312
683
  {
1313
- onClick: (L) => {
1314
- const M = L.target.closest("a");
1315
- M && M.href === window.location.href && l();
684
+ onClick: (y) => {
685
+ const I = y.target.closest("a");
686
+ I && I.href === window.location.href && n();
1316
687
  },
1317
688
  onMouseEnter: () => {
1318
- g && wt(!0);
689
+ u && Se(!0);
1319
690
  },
1320
- onMouseLeave: (L) => {
1321
- g && (!c || c && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !O)) && wt(!1);
691
+ onMouseLeave: (y) => {
692
+ u && (!s || s && (y.target === y.currentTarget || !y.currentTarget.contains(y.target) && !B)) && Se(!1);
1322
693
  },
1323
694
  paddingTop: "4",
1324
695
  paddingX: [4, null, null, 12],
@@ -1326,67 +697,67 @@ const Xe = 60, bt = 6, Mn = (r) => {
1326
697
  overflow: ["auto", null, null, "hidden"],
1327
698
  maxHeight: "100vh",
1328
699
  position: "relative",
1329
- top: g ? `${b}px !important` : void 0,
1330
- onAnimationComplete: V,
700
+ top: u ? `${m}px !important` : void 0,
701
+ onAnimationComplete: T,
1331
702
  boxShadow: "none",
1332
- ...g ? {
703
+ ...u ? {
1333
704
  initial: { height: 0, opacity: 0 },
1334
705
  animate: { height: "auto", opacity: 1 },
1335
706
  exit: { height: 0, opacity: 0 },
1336
707
  transition: { duration: 0.3 }
1337
708
  } : {},
1338
709
  children: [
1339
- !c && g ? null : /* @__PURE__ */ t.jsxs(
1340
- nn,
710
+ !s && u ? null : /* @__PURE__ */ c(
711
+ it,
1341
712
  {
1342
713
  padding: "0",
1343
- flexDirection: c ? "column" : "row",
1344
- gap: c ? "4" : "0",
714
+ flexDirection: s ? "column" : "row",
715
+ gap: s ? "4" : "0",
1345
716
  children: [
1346
- g ? null : /* @__PURE__ */ t.jsxs(
1347
- C,
717
+ u ? null : /* @__PURE__ */ c(
718
+ p,
1348
719
  {
1349
720
  width: "100%",
1350
721
  justifyContent: "space-between",
1351
722
  alignItems: "center",
1352
723
  children: [
1353
- y ? /* @__PURE__ */ t.jsx(
1354
- he,
724
+ w ? /* @__PURE__ */ e(
725
+ V,
1355
726
  {
1356
- icon: /* @__PURE__ */ t.jsx(En, {}),
727
+ icon: /* @__PURE__ */ e(It, {}),
1357
728
  onClick: () => {
1358
- p && p();
729
+ g && g();
1359
730
  },
1360
731
  "aria-label": "Back"
1361
732
  }
1362
733
  ) : null,
1363
- /* @__PURE__ */ t.jsx(
1364
- A,
734
+ /* @__PURE__ */ e(
735
+ S,
1365
736
  {
1366
737
  color: "tints.uiGrey",
1367
738
  fontSize: ["xl", null, null, "lg"],
1368
- children: a
739
+ children: l
1369
740
  }
1370
741
  ),
1371
- /* @__PURE__ */ t.jsx(
1372
- he,
742
+ /* @__PURE__ */ e(
743
+ V,
1373
744
  {
1374
- icon: /* @__PURE__ */ t.jsx(Rn, {}),
1375
- onClick: l,
745
+ icon: /* @__PURE__ */ e(Dt, {}),
746
+ onClick: n,
1376
747
  "aria-label": "Close"
1377
748
  }
1378
749
  )
1379
750
  ]
1380
751
  }
1381
752
  ),
1382
- c && /* @__PURE__ */ t.jsxs(
1383
- mn,
753
+ s && /* @__PURE__ */ c(
754
+ xt,
1384
755
  { width: "100%", children: [
1385
- /* @__PURE__ */ t.jsx(
1386
- bn,
756
+ /* @__PURE__ */ e(
757
+ vt,
1387
758
  {
1388
- onChange: (L) => {
1389
- $(L.target.value);
759
+ onChange: (y) => {
760
+ L(y.target.value);
1390
761
  },
1391
762
  placeholder: "Search",
1392
763
  autoFocus: !0,
@@ -1394,25 +765,25 @@ const Xe = 60, bt = 6, Mn = (r) => {
1394
765
  type: "search"
1395
766
  }
1396
767
  ),
1397
- /* @__PURE__ */ t.jsx(
1398
- jn,
1399
- { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(wn, { as: Tt, color: "gray.500" }) }
768
+ /* @__PURE__ */ e(
769
+ Ct,
770
+ { pointerEvents: "none", children: /* @__PURE__ */ e(yt, { as: Te, color: "gray.500" }) }
1400
771
  )
1401
772
  ] }
1402
773
  )
1403
774
  ]
1404
775
  }
1405
776
  ),
1406
- /* @__PURE__ */ t.jsx(
1407
- rn,
777
+ /* @__PURE__ */ e(
778
+ ot,
1408
779
  {
1409
780
  paddingX: "0",
1410
781
  paddingBottom: [6, null, null, 4],
1411
- "data-testid": `navbar-drawer-body-${a.toLowerCase()}`,
1412
- children: /* @__PURE__ */ t.jsxs(
1413
- lt.div,
782
+ "data-testid": `navbar-drawer-body-${l.toLowerCase()}`,
783
+ children: /* @__PURE__ */ c(
784
+ ce.div,
1414
785
  {
1415
- ...g ? {
786
+ ...u ? {
1416
787
  initial: { opacity: 0, y: -5 },
1417
788
  animate: { opacity: 1, y: 0 },
1418
789
  exit: { opacity: 0, y: -5 },
@@ -1429,17 +800,17 @@ const Xe = 60, bt = 6, Mn = (r) => {
1429
800
  } : {},
1430
801
  style: {
1431
802
  display: "flex",
1432
- flexDirection: Nn(
1433
- j,
1434
- g,
1435
- c
803
+ flexDirection: Gt(
804
+ f,
805
+ u,
806
+ s
1436
807
  ),
1437
808
  gap: "24px",
1438
809
  justifyContent: "space-between"
1439
810
  },
1440
811
  children: [
1441
- s ? /* @__PURE__ */ t.jsx(
1442
- m,
812
+ i ? /* @__PURE__ */ e(
813
+ h,
1443
814
  {
1444
815
  gap: [3, null, null, 6],
1445
816
  display: "flex",
@@ -1448,26 +819,26 @@ const Xe = 60, bt = 6, Mn = (r) => {
1448
819
  flexWrap: "wrap",
1449
820
  flexDirection: ["column", null, null, "row"]
1450
821
  },
1451
- children: s
822
+ children: i
1452
823
  }
1453
824
  ) : null,
1454
- /* @__PURE__ */ t.jsxs(
1455
- C,
825
+ /* @__PURE__ */ c(
826
+ p,
1456
827
  {
1457
828
  position: [null, null, null, "relative"],
1458
829
  flexDirection: "column",
1459
830
  gap: "6",
1460
- width: ["100%", null, null, c ? null : "auto"],
831
+ width: ["100%", null, null, s ? null : "auto"],
1461
832
  children: [
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,
833
+ o ? /* @__PURE__ */ e(h, { children: o }) : null,
834
+ r && !u ? /* @__PURE__ */ e(h, { children: r }) : null,
835
+ d ? /* @__PURE__ */ e(
836
+ h,
1466
837
  {
1467
838
  width: ["100%"],
1468
839
  position: [null, null, null, "absolute"],
1469
840
  bottom: [null, null, null, 0],
1470
- children: h
841
+ children: d
1471
842
  }
1472
843
  ) : null
1473
844
  ]
@@ -1475,7 +846,7 @@ const Xe = 60, bt = 6, Mn = (r) => {
1475
846
  )
1476
847
  ]
1477
848
  },
1478
- Z
849
+ R
1479
850
  )
1480
851
  }
1481
852
  )
@@ -1487,411 +858,411 @@ const Xe = 60, bt = 6, Mn = (r) => {
1487
858
  )
1488
859
  }
1489
860
  );
1490
- }, Gn = ({
1491
- source: r,
1492
- onSearchCallback: l,
1493
- isActive: a
861
+ }, Pt = ({
862
+ source: t,
863
+ onSearchCallback: n,
864
+ isActive: l
1494
865
  }) => {
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));
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, $));
1504
875
  });
1505
- return S || re;
1506
- }).sort((k, Z) => k.label.localeCompare(Z.label));
1507
- }, p = (c) => {
1508
- if (u(c), !c) {
1509
- h([]);
876
+ return _ || G;
877
+ }).sort((v, R) => v.label.localeCompare(R.label));
878
+ }, g = (s) => {
879
+ if (r(s), !s) {
880
+ d([]);
1510
881
  return;
1511
882
  }
1512
- const E = y(c, r);
1513
- h(E), l && l(c, E);
1514
- }, j = () => {
1515
- u(""), h([]);
883
+ const x = w(s, t);
884
+ d(x), n && n(s, x);
885
+ }, f = () => {
886
+ r(""), d([]);
1516
887
  };
1517
- return J(() => {
1518
- a || (u(""), h([]));
1519
- }, [a]), {
888
+ return A(() => {
889
+ l || (r(""), d([]));
890
+ }, [l]), {
1520
891
  query: o,
1521
- results: s,
1522
- handleClose: j,
1523
- handleSearch: p
892
+ results: i,
893
+ handleClose: f,
894
+ handleSearch: g
1524
895
  };
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];
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];
1532
903
  }, [])) ?? [];
1533
- return [...a, ...u];
904
+ return [...l, ...r];
1534
905
  }, []);
1535
- }, ar = ({
1536
- categories: r = [],
1537
- onCartClick: l,
1538
- mainCategoryLabel: a = "Menu",
906
+ }, cn = ({
907
+ categories: t = [],
908
+ onCartClick: n,
909
+ mainCategoryLabel: l = "Menu",
1539
910
  logoLink: o = "https://www.everlywell.com",
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: $
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
1557
928
  }) => {
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), () => {
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), () => {
1563
934
  window.removeEventListener(
1564
- nt,
1565
- d
1566
- ), window.removeEventListener(rt, T);
935
+ oe,
936
+ a
937
+ ), window.removeEventListener(re, C);
1567
938
  };
1568
939
  }, []);
1569
- const ke = Fe({
940
+ const Re = Q({
1570
941
  base: !1,
1571
942
  tablet: !1,
1572
943
  largeTablet: !1,
1573
944
  desktop: !0
1574
945
  }) ?? !1;
1575
- J(() => {
1576
- ee(), M(null);
1577
- }, [ke]);
946
+ A(() => {
947
+ P(), I(null);
948
+ }, [Re]);
1578
949
  const {
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,
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,
1591
962
  { direction: "column", gap: "6", alignItems: "flex-start", children: [
1592
- /* @__PURE__ */ t.jsx(
1593
- A,
963
+ /* @__PURE__ */ e(
964
+ S,
1594
965
  { color: "tints.uiGrey", children: "We didn't find what you were looking for." }
1595
966
  ),
1596
- /* @__PURE__ */ t.jsx(
1597
- Rt,
967
+ /* @__PURE__ */ e(
968
+ Ee,
1598
969
  {
1599
- as: me,
1600
- onClick: $,
970
+ as: J,
971
+ onClick: L,
1601
972
  _hover: { textDecoration: "none" },
1602
973
  width: ["100%", null, null, "auto"],
1603
- ...Be,
974
+ ...Ne,
1604
975
  children: "Shop all products"
1605
976
  }
1606
977
  )
1607
978
  ] }
1608
979
  ),
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,
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,
1616
987
  {
1617
- href: d.href,
1618
- label: d.label,
1619
- additionalContent: d == null ? void 0 : d.additionalContent,
1620
- linkComponent: c
988
+ href: a.href,
989
+ label: a.label,
990
+ additionalContent: a == null ? void 0 : a.additionalContent,
991
+ linkComponent: s
1621
992
  }
1622
993
  ) },
1623
- `${d.label}-${T}`
994
+ `${a.label}-${C}`
1624
995
  )
1625
996
  ) }
1626
997
  )
1627
998
  ] }
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);
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);
1636
1007
  };
1637
- J(() => {
1638
- const d = (T) => {
1639
- K(T.detail.isHovering);
1008
+ A(() => {
1009
+ const a = (C) => {
1010
+ Me(C.detail.isHovering);
1640
1011
  };
1641
1012
  return window.addEventListener(
1642
- tt,
1643
- d
1013
+ ie,
1014
+ a
1644
1015
  ), () => {
1645
1016
  window.removeEventListener(
1646
- tt,
1647
- d
1017
+ ie,
1018
+ a
1648
1019
  );
1649
1020
  };
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);
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);
1660
1031
  };
1661
1032
  }, []);
1662
- const Le = r == null ? void 0 : r.map(
1663
- (d, T) => /* @__PURE__ */ t.jsx(
1664
- Me,
1033
+ const Fe = t == null ? void 0 : t.map(
1034
+ (a, C) => /* @__PURE__ */ e(
1035
+ U,
1665
1036
  {
1666
1037
  onMouseEnter: () => {
1667
- ue(d), g == null || g(d.label);
1038
+ je(a), u == null || u(a.label);
1668
1039
  },
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
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
1676
1047
  },
1677
- `${d.label}-${T}`
1048
+ `${a.label}-${C}`
1678
1049
  )
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,
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,
1685
1056
  {
1686
1057
  onClick: () => {
1687
- je(H), g == null || g(H.label);
1058
+ We(D), u == null || u(D.label);
1688
1059
  },
1689
- children: /* @__PURE__ */ t.jsx(
1690
- Je,
1060
+ children: /* @__PURE__ */ e(
1061
+ te,
1691
1062
  {
1692
- label: H.label,
1063
+ label: D.label,
1693
1064
  role: "link",
1694
- additionalContent: H.additionalContent,
1065
+ additionalContent: D.additionalContent,
1695
1066
  mainTextFontSize: "3xl",
1696
- linkComponent: c
1067
+ linkComponent: s
1697
1068
  }
1698
1069
  )
1699
1070
  },
1700
- `${H.label}-${T}`
1071
+ `${D.label}-${C}`
1701
1072
  );
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
- ] }
1719
- )
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
- ] }
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"
1737
1115
  )
1738
- },
1739
- "register-kit"
1116
+ ] }
1740
1117
  )
1741
1118
  ] }
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,
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,
1756
1127
  { children: [
1757
- /* @__PURE__ */ t.jsx(
1758
- A,
1128
+ /* @__PURE__ */ e(
1129
+ S,
1759
1130
  {
1760
1131
  fontSize: "md",
1761
1132
  color: "tints.uiGrey",
1762
1133
  marginBottom: [0, null, null, 6],
1763
- children: d.title
1134
+ children: a.title
1764
1135
  }
1765
1136
  ),
1766
- /* @__PURE__ */ t.jsx(
1767
- C,
1137
+ /* @__PURE__ */ e(
1138
+ p,
1768
1139
  {
1769
1140
  flexDirection: ["column", null, null, "row"],
1770
1141
  gap: [null, null, null, 8],
1771
- children: H == null ? void 0 : H.map(
1772
- (W, Pe) => /* @__PURE__ */ t.jsx(
1773
- C,
1142
+ children: D == null ? void 0 : D.map(
1143
+ (H, Xe) => /* @__PURE__ */ e(
1144
+ p,
1774
1145
  {
1775
1146
  flexDirection: ["column"],
1776
1147
  gap: [null, null, null, 5],
1777
1148
  marginLeft: [null, null, null, -2],
1778
- children: W == null ? void 0 : W.map(
1779
- (te, oe) => /* @__PURE__ */ t.jsx(
1780
- Je,
1149
+ children: H == null ? void 0 : H.map(
1150
+ (F, Qe) => /* @__PURE__ */ e(
1151
+ te,
1781
1152
  {
1782
- label: te.label,
1783
- href: te.href,
1784
- additionalContent: te.additionalContent,
1785
- linkComponent: c,
1786
- onClick: () => b == null ? void 0 : b(te.label)
1153
+ label: F.label,
1154
+ href: F.href,
1155
+ additionalContent: F.additionalContent,
1156
+ linkComponent: s,
1157
+ onClick: () => m == null ? void 0 : m(F.label)
1787
1158
  },
1788
- `${te.label}-${oe}`
1159
+ `${F.label}-${Qe}`
1789
1160
  )
1790
1161
  )
1791
1162
  },
1792
- Pe
1163
+ Xe
1793
1164
  )
1794
1165
  )
1795
1166
  }
1796
1167
  )
1797
1168
  ] },
1798
- `${d.title}-${T}`
1169
+ `${a.title}-${C}`
1799
1170
  );
1800
1171
  }) }
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,
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,
1806
1177
  {
1807
1178
  as: "nav",
1808
1179
  "aria-label": "Main navigation",
1809
1180
  position: "sticky",
1810
1181
  top: "0",
1811
1182
  width: "100%",
1812
- zIndex: ["sticky", null, null, Te ? "modal" : "sticky"],
1183
+ zIndex: ["sticky", null, null, $e ? "modal" : "sticky"],
1813
1184
  children: [
1814
- /* @__PURE__ */ t.jsx(
1815
- Fn,
1185
+ /* @__PURE__ */ e(
1186
+ Nt,
1816
1187
  {
1817
- desktopTopButtons: Le,
1818
- kitRegistrationElement: /* @__PURE__ */ t.jsx(
1819
- Me,
1188
+ desktopTopButtons: Fe,
1189
+ kitRegistrationElement: /* @__PURE__ */ e(
1190
+ U,
1820
1191
  {
1821
- as: N,
1822
- href: h,
1823
- onClick: ne,
1192
+ as: E,
1193
+ href: d,
1194
+ onClick: j,
1824
1195
  backgroundColor: "tints.cream",
1825
1196
  children: "Register Kit"
1826
1197
  }
1827
1198
  ),
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" }) }
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" }) }
1831
1202
  ),
1832
- cartElement: /* @__PURE__ */ t.jsx(
1833
- Bn,
1203
+ cartElement: /* @__PURE__ */ e(
1204
+ Vt,
1834
1205
  {
1835
1206
  "aria-label": "Cart",
1836
- count: j,
1837
- onClick: l
1207
+ count: f,
1208
+ onClick: n
1838
1209
  }
1839
1210
  ),
1840
1211
  onSearchClick: () => {
1841
- L(!q), s == null || s();
1212
+ y(!z), i == null || i();
1842
1213
  },
1843
1214
  onMenuClick: () => {
1844
- U(!0), k == null || k();
1215
+ $(!0), v == null || v();
1845
1216
  },
1846
- hasSearch: u,
1217
+ hasSearch: r,
1847
1218
  logoLink: o,
1848
- linkComponent: c,
1849
- onLogoClick: S,
1850
- setTopOffset: Se
1219
+ linkComponent: s,
1220
+ onLogoClick: _,
1221
+ setTopOffset: Be
1851
1222
  }
1852
1223
  ),
1853
- /* @__PURE__ */ t.jsxs(
1854
- m,
1224
+ /* @__PURE__ */ c(
1225
+ h,
1855
1226
  { position: "relative", zIndex: "modal", children: [
1856
- /* @__PURE__ */ t.jsx(
1857
- qe,
1227
+ /* @__PURE__ */ e(
1228
+ le,
1858
1229
  {
1859
- isOpen: V,
1860
- onClose: ee,
1861
- title: a,
1862
- navDrawerLinks: ze,
1863
- bottomNavButtons: ce,
1230
+ isOpen: T,
1231
+ onClose: P,
1232
+ title: l,
1233
+ navDrawerLinks: Oe,
1234
+ bottomNavButtons: Pe,
1864
1235
  hasBackButton: !1,
1865
- topOffset: X
1236
+ topOffset: Y
1866
1237
  }
1867
1238
  ),
1868
- /* @__PURE__ */ t.jsx(
1869
- qe,
1239
+ /* @__PURE__ */ e(
1240
+ le,
1870
1241
  {
1871
- isOpen: !!_,
1242
+ isOpen: !!b,
1872
1243
  onClose: () => {
1873
- ee(), M(null);
1244
+ P(), I(null);
1874
1245
  },
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
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
1882
1253
  }
1883
1254
  ),
1884
- /* @__PURE__ */ t.jsx(
1885
- qe,
1255
+ /* @__PURE__ */ e(
1256
+ le,
1886
1257
  {
1887
- isOpen: q,
1888
- onClose: () => L(!1),
1258
+ isOpen: z,
1259
+ onClose: () => y(!1),
1889
1260
  title: "Search",
1890
- navDrawerLinks: be,
1891
- onSearch: Ie,
1261
+ navDrawerLinks: Ve,
1262
+ onSearch: ze,
1892
1263
  hasSearch: !0,
1893
1264
  hasBackButton: !1,
1894
- topOffset: X
1265
+ topOffset: Y
1895
1266
  }
1896
1267
  )
1897
1268
  ] }
@@ -1899,167 +1270,167 @@ const Xe = 60, bt = 6, Mn = (r) => {
1899
1270
  ]
1900
1271
  }
1901
1272
  );
1902
- }, yt = ({ links: r, linkComponent: l, onLinkClick: a }) => {
1903
- const o = l || N, u = (s) => {
1904
- a && a(s);
1273
+ }, Ie = ({ links: t, linkComponent: n, onLinkClick: l }) => {
1274
+ const o = n || E, r = (i) => {
1275
+ l && l(i);
1905
1276
  };
1906
- return /* @__PURE__ */ t.jsx(
1907
- C,
1908
- { direction: "column", gap: 6, children: r.map(
1909
- (s) => /* @__PURE__ */ t.jsx(
1910
- A,
1277
+ return /* @__PURE__ */ e(
1278
+ p,
1279
+ { direction: "column", gap: 6, children: t.map(
1280
+ (i) => /* @__PURE__ */ e(
1281
+ S,
1911
1282
  {
1912
1283
  as: o,
1913
1284
  color: "white",
1914
1285
  size: "lg",
1915
1286
  _hover: { color: "viridian.lighter", textDecoration: "none" },
1916
- onClick: () => u(s.label),
1917
- ...pe(s.href, !!l),
1918
- children: s.label
1287
+ onClick: () => r(i.label),
1288
+ ...W(i.href, !!n),
1289
+ children: i.label
1919
1290
  },
1920
- s.label
1291
+ i.label
1921
1292
  )
1922
1293
  ) }
1923
1294
  );
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,
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,
1930
1301
  { children: [
1931
- /* @__PURE__ */ t.jsxs(
1932
- un,
1302
+ /* @__PURE__ */ c(
1303
+ dt,
1933
1304
  { paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
1934
- /* @__PURE__ */ t.jsx(
1935
- A,
1936
- { color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: r }
1305
+ /* @__PURE__ */ e(
1306
+ S,
1307
+ { color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: t }
1937
1308
  ),
1938
- /* @__PURE__ */ t.jsx(
1939
- Q,
1309
+ /* @__PURE__ */ e(
1310
+ M,
1940
1311
  {
1941
- as: Sn,
1312
+ as: Ht,
1942
1313
  size: "sm",
1943
1314
  color: "viridian.lighter",
1944
- transform: u ? "rotate(-180deg)" : "rotate(0deg)",
1315
+ transform: r ? "rotate(-180deg)" : "rotate(0deg)",
1945
1316
  transition: "transform 0.3s ease"
1946
1317
  }
1947
1318
  )
1948
1319
  ] }
1949
1320
  ),
1950
- /* @__PURE__ */ t.jsx(
1951
- cn,
1952
- { pb: 4, px: 0, children: l }
1321
+ /* @__PURE__ */ e(
1322
+ ut,
1323
+ { pb: 4, px: 0, children: n }
1953
1324
  )
1954
1325
  ] }
1955
1326
  ) }
1956
1327
  ) : null;
1957
- }, Kn = ({ title: r, links: l }) => l ? /* @__PURE__ */ t.jsxs(
1958
- m,
1328
+ }, Xt = ({ title: t, links: n }) => n ? /* @__PURE__ */ c(
1329
+ h,
1959
1330
  { children: [
1960
- /* @__PURE__ */ t.jsx(
1961
- A,
1962
- { color: "viridian.lighter", mb: 6, fontSize: "lg", children: r }
1331
+ /* @__PURE__ */ e(
1332
+ S,
1333
+ { color: "viridian.lighter", mb: 6, fontSize: "lg", children: t }
1963
1334
  ),
1964
- l
1335
+ n
1965
1336
  ] }
1966
- ) : null, Xn = ({
1967
- sections: r,
1968
- linkComponent: l,
1969
- onLinkClick: a
1970
- }) => Fe({
1337
+ ) : null, Qt = ({
1338
+ sections: t,
1339
+ linkComponent: n,
1340
+ onLinkClick: l
1341
+ }) => Q({
1971
1342
  base: !1,
1972
1343
  tablet: !1,
1973
1344
  largeTablet: !0,
1974
1345
  desktop: !0
1975
- }) ? /* @__PURE__ */ t.jsx(
1976
- C,
1346
+ }) ? /* @__PURE__ */ e(
1347
+ p,
1977
1348
  {
1978
1349
  justify: "space-between",
1979
1350
  align: "flex-start",
1980
- children: /* @__PURE__ */ t.jsx(
1981
- C,
1982
- { gap: 120, children: r.map(
1983
- ({ title: u, links: s }) => /* @__PURE__ */ t.jsx(
1984
- Kn,
1351
+ children: /* @__PURE__ */ e(
1352
+ p,
1353
+ { gap: 120, children: t.map(
1354
+ ({ title: r, links: i }) => /* @__PURE__ */ e(
1355
+ Xt,
1985
1356
  {
1986
- title: u,
1987
- links: /* @__PURE__ */ t.jsx(
1988
- yt,
1357
+ title: r,
1358
+ links: /* @__PURE__ */ e(
1359
+ Ie,
1989
1360
  {
1990
- links: s,
1991
- linkComponent: l,
1992
- onLinkClick: a
1361
+ links: i,
1362
+ linkComponent: n,
1363
+ onLinkClick: l
1993
1364
  }
1994
1365
  )
1995
1366
  },
1996
- u
1367
+ r
1997
1368
  )
1998
1369
  ) }
1999
1370
  )
2000
1371
  }
2001
- ) : /* @__PURE__ */ t.jsx(
2002
- an,
1372
+ ) : /* @__PURE__ */ e(
1373
+ st,
2003
1374
  {
2004
1375
  allowMultiple: !0,
2005
1376
  defaultIndex: [0],
2006
1377
  width: "100%",
2007
1378
  display: "flex",
2008
1379
  flexDirection: "column",
2009
- children: r.map(
2010
- ({ title: u, links: s }, h) => /* @__PURE__ */ t.jsx(
2011
- Zn,
1380
+ children: t.map(
1381
+ ({ title: r, links: i }, d) => /* @__PURE__ */ e(
1382
+ Ut,
2012
1383
  {
2013
- title: u,
2014
- links: /* @__PURE__ */ t.jsx(
2015
- yt,
1384
+ title: r,
1385
+ links: /* @__PURE__ */ e(
1386
+ Ie,
2016
1387
  {
2017
- links: s,
2018
- linkComponent: l,
2019
- onLinkClick: a
1388
+ links: i,
1389
+ linkComponent: n,
1390
+ onLinkClick: l
2020
1391
  }
2021
1392
  ),
2022
- isLast: h === r.length - 1
1393
+ isLast: d === t.length - 1
2023
1394
  },
2024
- u
1395
+ r
2025
1396
  )
2026
1397
  )
2027
1398
  }
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,
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,
2038
1409
  newsletterLabel: o,
2039
- onLinkClick: u
1410
+ onLinkClick: r
2040
1411
  }) => {
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);
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);
2047
1418
  };
2048
- return /* @__PURE__ */ t.jsxs(
2049
- m,
1419
+ return /* @__PURE__ */ c(
1420
+ h,
2050
1421
  { width: ["100%", null, null, "440px"], children: [
2051
- /* @__PURE__ */ t.jsxs(
2052
- m,
1422
+ /* @__PURE__ */ c(
1423
+ h,
2053
1424
  { mb: [8, 10], children: [
2054
- /* @__PURE__ */ t.jsx(
2055
- A,
1425
+ /* @__PURE__ */ e(
1426
+ S,
2056
1427
  { color: "viridian.lighter", mb: 6, size: "lg", children: o }
2057
1428
  ),
2058
- /* @__PURE__ */ t.jsxs(
2059
- dn,
1429
+ /* @__PURE__ */ c(
1430
+ ht,
2060
1431
  { children: [
2061
- /* @__PURE__ */ t.jsx(
2062
- fn,
1432
+ /* @__PURE__ */ e(
1433
+ pt,
2063
1434
  {
2064
1435
  placeholder: "Enter your email",
2065
1436
  bg: "transparent",
@@ -2070,23 +1441,23 @@ const Xe = 60, bt = 6, Mn = (r) => {
2070
1441
  opacity: 0.66,
2071
1442
  height: "52px",
2072
1443
  pr: "48px",
2073
- value: s,
2074
- onChange: (c) => h(c.target.value),
2075
- onKeyPress: p
1444
+ value: i,
1445
+ onChange: (s) => d(s.target.value),
1446
+ onKeyPress: g
2076
1447
  }
2077
1448
  ),
2078
- /* @__PURE__ */ t.jsx(
2079
- hn,
2080
- { h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
2081
- Q,
1449
+ /* @__PURE__ */ e(
1450
+ gt,
1451
+ { h: "52px", pr: 4, children: /* @__PURE__ */ e(
1452
+ M,
2082
1453
  {
2083
- as: Tn,
1454
+ as: kt,
2084
1455
  color: "viridian.lighter",
2085
1456
  width: "24px",
2086
1457
  height: "24px",
2087
1458
  opacity: 0.66,
2088
1459
  cursor: "pointer",
2089
- onClick: y,
1460
+ onClick: w,
2090
1461
  "data-testid": "arrow-right-icon",
2091
1462
  role: "button",
2092
1463
  "aria-label": "Submit"
@@ -2097,35 +1468,35 @@ const Xe = 60, bt = 6, Mn = (r) => {
2097
1468
  )
2098
1469
  ] }
2099
1470
  ),
2100
- /* @__PURE__ */ t.jsxs(
2101
- m,
1471
+ /* @__PURE__ */ c(
1472
+ h,
2102
1473
  { children: [
2103
- /* @__PURE__ */ t.jsx(
2104
- A,
2105
- { color: "viridian.lighter", marginBottom: 4, size: "lg", children: a }
1474
+ /* @__PURE__ */ e(
1475
+ S,
1476
+ { color: "viridian.lighter", marginBottom: 4, size: "lg", children: l }
2106
1477
  ),
2107
- /* @__PURE__ */ t.jsx(
2108
- C,
2109
- { gap: 3, children: r == null ? void 0 : r.map(
2110
- (c) => /* @__PURE__ */ t.jsx(
2111
- N,
1478
+ /* @__PURE__ */ e(
1479
+ p,
1480
+ { gap: 3, children: t == null ? void 0 : t.map(
1481
+ (s) => /* @__PURE__ */ e(
1482
+ E,
2112
1483
  {
2113
- href: c.href,
1484
+ href: s.href,
2114
1485
  target: "_blank",
2115
1486
  rel: "noopener noreferrer",
2116
- "aria-label": c.name,
2117
- onClick: () => j(c.name),
2118
- children: Et[c.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
2119
- Q,
1487
+ "aria-label": s.name,
1488
+ onClick: () => f(s.name),
1489
+ children: De[s.name.toLowerCase()] && /* @__PURE__ */ e(
1490
+ M,
2120
1491
  {
2121
- as: Et[c.name.toLowerCase()],
1492
+ as: De[s.name.toLowerCase()],
2122
1493
  color: "white",
2123
1494
  width: ["48px", null, "24px", null],
2124
1495
  height: ["48px", null, "24px", null]
2125
1496
  }
2126
1497
  )
2127
1498
  },
2128
- c.name
1499
+ s.name
2129
1500
  )
2130
1501
  ) }
2131
1502
  )
@@ -2133,48 +1504,48 @@ const Xe = 60, bt = 6, Mn = (r) => {
2133
1504
  )
2134
1505
  ] }
2135
1506
  );
2136
- }, Qn = ({
2137
- links: r,
2138
- linkComponent: l,
2139
- onLinkClick: a
1507
+ }, Kt = ({
1508
+ links: t,
1509
+ linkComponent: n,
1510
+ onLinkClick: l
2140
1511
  }) => {
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,
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,
2146
1517
  {
2147
1518
  as: o,
2148
1519
  color: "viridian.lighter",
2149
1520
  size: "sm",
2150
1521
  _hover: { color: "white", textDecoration: "none" },
2151
- onClick: () => u(h.label),
2152
- ...pe(h.href, !!l),
2153
- children: h.label
1522
+ onClick: () => r(d.label),
1523
+ ...W(d.href, !!n),
1524
+ children: d.label
2154
1525
  },
2155
- h.label
1526
+ d.label
2156
1527
  )
2157
1528
  );
2158
- return /* @__PURE__ */ t.jsxs(
2159
- C,
1529
+ return /* @__PURE__ */ c(
1530
+ p,
2160
1531
  {
2161
1532
  direction: ["column", "column", "row"],
2162
1533
  justify: "space-between",
2163
1534
  align: ["flex-start", "flex-start", "center"],
2164
1535
  gap: [6, 6, 0],
2165
1536
  children: [
2166
- /* @__PURE__ */ t.jsx(
2167
- C,
1537
+ /* @__PURE__ */ e(
1538
+ p,
2168
1539
  {
2169
1540
  direction: "row",
2170
1541
  flexWrap: "wrap",
2171
1542
  gap: [4, 6, 10],
2172
1543
  width: ["100%", "auto"],
2173
- children: s
1544
+ children: i
2174
1545
  }
2175
1546
  ),
2176
- /* @__PURE__ */ t.jsxs(
2177
- A,
1547
+ /* @__PURE__ */ c(
1548
+ S,
2178
1549
  { color: "viridian.lighter", fontSize: "sm", children: [
2179
1550
  "© Everlywell ",
2180
1551
  (/* @__PURE__ */ new Date()).getFullYear()
@@ -2183,61 +1554,61 @@ const Xe = 60, bt = 6, Mn = (r) => {
2183
1554
  ]
2184
1555
  }
2185
1556
  );
2186
- }, sr = Re.forwardRef(({
2187
- navigationSections: r = [],
2188
- disclaimer: l,
2189
- newsletterLabel: a,
1557
+ }, dn = ae.forwardRef(({
1558
+ navigationSections: t = [],
1559
+ disclaimer: n,
1560
+ newsletterLabel: l,
2190
1561
  socialMediaLabel: o,
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,
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,
2202
1573
  { size: "fluid", children: [
2203
- /* @__PURE__ */ t.jsxs(
2204
- C,
1574
+ /* @__PURE__ */ c(
1575
+ p,
2205
1576
  { direction: "column", gap: [8, 12], children: [
2206
- /* @__PURE__ */ t.jsx(
2207
- m,
2208
- { children: /* @__PURE__ */ t.jsx(kt, { width: ["150px", "202px"], color: "white" }) }
1577
+ /* @__PURE__ */ e(
1578
+ h,
1579
+ { children: /* @__PURE__ */ e(Ae, { width: ["150px", "202px"], color: "white" }) }
2209
1580
  ),
2210
- /* @__PURE__ */ t.jsxs(
2211
- C,
1581
+ /* @__PURE__ */ c(
1582
+ p,
2212
1583
  {
2213
1584
  direction: ["column", null, null, "row"],
2214
1585
  justify: "space-between",
2215
1586
  align: ["flex-start"],
2216
1587
  gap: [8, 8, 8, 0],
2217
1588
  children: [
2218
- /* @__PURE__ */ t.jsx(
2219
- Xn,
1589
+ /* @__PURE__ */ e(
1590
+ Qt,
2220
1591
  {
2221
- sections: r,
2222
- linkComponent: h,
2223
- onLinkClick: j
1592
+ sections: t,
1593
+ linkComponent: d,
1594
+ onLinkClick: f
2224
1595
  }
2225
1596
  ),
2226
- /* @__PURE__ */ t.jsx(
2227
- Jn,
1597
+ /* @__PURE__ */ e(
1598
+ Yt,
2228
1599
  {
2229
- socialLinks: u,
2230
- newsletterLabel: a,
1600
+ socialLinks: r,
1601
+ newsletterLabel: l,
2231
1602
  socialMediaLabel: o,
2232
- onEmailSubmit: y,
2233
- onLinkClick: c
1603
+ onEmailSubmit: w,
1604
+ onLinkClick: s
2234
1605
  }
2235
1606
  )
2236
1607
  ]
2237
1608
  }
2238
1609
  ),
2239
- /* @__PURE__ */ t.jsxs(
2240
- C,
1610
+ /* @__PURE__ */ c(
1611
+ p,
2241
1612
  {
2242
1613
  direction: ["column", "column", "row"],
2243
1614
  justify: "space-between",
@@ -2245,56 +1616,56 @@ const Xe = 60, bt = 6, Mn = (r) => {
2245
1616
  align: ["flex-start", "flex-start", "center"],
2246
1617
  gap: [6, 6, 0],
2247
1618
  children: [
2248
- l && /* @__PURE__ */ t.jsx(
2249
- A,
1619
+ n && /* @__PURE__ */ e(
1620
+ S,
2250
1621
  {
2251
1622
  color: "viridian.lighter",
2252
1623
  fontSize: "sm",
2253
1624
  maxWidth: ["100%", "100%", "1024px"],
2254
- dangerouslySetInnerHTML: { __html: l },
1625
+ dangerouslySetInnerHTML: { __html: n },
2255
1626
  sx: {
2256
1627
  "a:hover": { color: "viridian.light", textDecoration: "underline" }
2257
1628
  }
2258
1629
  }
2259
1630
  ),
2260
- p
1631
+ g
2261
1632
  ]
2262
1633
  }
2263
1634
  )
2264
1635
  ] }
2265
1636
  ),
2266
- /* @__PURE__ */ t.jsx(
2267
- m,
1637
+ /* @__PURE__ */ e(
1638
+ h,
2268
1639
  {
2269
1640
  borderTop: "1px solid",
2270
- borderColor: `${Ee.colors.viridian.lighter}20`,
1641
+ borderColor: `${O.colors.viridian.lighter}20`,
2271
1642
  marginTop: "10",
2272
1643
  marginBottom: "8"
2273
1644
  }
2274
1645
  ),
2275
- /* @__PURE__ */ t.jsx(
2276
- Qn,
1646
+ /* @__PURE__ */ e(
1647
+ Kt,
2277
1648
  {
2278
- disclaimer: l,
2279
- links: s,
2280
- linkComponent: h,
2281
- onLinkClick: j
1649
+ disclaimer: n,
1650
+ links: i,
1651
+ linkComponent: d,
1652
+ onLinkClick: f
2282
1653
  }
2283
1654
  )
2284
1655
  ] }
2285
1656
  ) }
2286
1657
  ));
2287
1658
  export {
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
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
2300
1671
  };