@everlywell/consumer-ui 1.40.0 → 1.41.0

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