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