@everlywell/consumer-ui 1.28.1 → 1.29.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 Ht, Box as y, Stepper as $t, Icon as re, Flex as L, Text as U, Link as X, Button as Wt, Image as Mt, IconButton as Bt, VStack as Vt, Skeleton as $e, HStack as lt, SkeletonCircle as Se, Drawer as Nt, DrawerOverlay as Yt, DrawerContent as zt, DrawerHeader as Ut, DrawerBody as Gt } from "@everlywell/ui-kit";
2
- import Ye, { useEffect as le, forwardRef as pt, useRef as Zt, useState as V, useCallback as ze } from "react";
3
- import { Text as Kt, useBreakpointValue as Xt, InputGroup as Jt, Input as qt, InputRightElement as Qt, Icon as en } from "@chakra-ui/react";
4
- import { CaretRight as it, MagnifyingGlass as ht, List as tn, Basket as nn, CaretLeft as rn, X as ln, User as at, QrCode as an } from "@phosphor-icons/react";
5
- import { motion as ot } from "framer-motion";
6
- var Ve = { exports: {} }, pe = {};
1
+ import { useSteps as $t, Box as E, Stepper as Wt, Icon as le, Flex as k, Text as Z, Link as G, Button as gt, Image as Bt, IconButton as Mt, VStack as Vt, Skeleton as Ne, HStack as st, SkeletonCircle as Te, Drawer as Nt, DrawerOverlay as Yt, DrawerContent as zt, DrawerHeader as Ut, DrawerBody as Gt, Grid as Zt, GridItem as Kt } from "@everlywell/ui-kit";
2
+ import Ke, { useEffect as ie, forwardRef as bt, useRef as Xt, useState as M, useCallback as Xe } from "react";
3
+ import { Text as Jt, useBreakpointValue as qt, InputGroup as Qt, Input as en, InputRightElement as tn, Icon as nn } from "@chakra-ui/react";
4
+ import { CaretRight as ut, MagnifyingGlass as mt, List as rn, Basket as ln, CaretLeft as an, X as on, User as ct, QrCode as sn } from "@phosphor-icons/react";
5
+ import { motion as dt } from "framer-motion";
6
+ var Ge = { exports: {} }, ve = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,25 +13,25 @@ var Ve = { exports: {} }, pe = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var st;
17
- function on() {
18
- if (st)
19
- return pe;
20
- st = 1;
21
- var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, w = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function m(E, o, b) {
23
- var s, p = {}, j = null, c = null;
24
- b !== void 0 && (j = "" + b), o.key !== void 0 && (j = "" + o.key), o.ref !== void 0 && (c = o.ref);
25
- for (s in o)
26
- d.call(o, s) && !x.hasOwnProperty(s) && (p[s] = o[s]);
27
- if (E && E.defaultProps)
28
- for (s in o = E.defaultProps, o)
29
- p[s] === void 0 && (p[s] = o[s]);
30
- return { $$typeof: a, type: E, key: j, ref: c, props: p, _owner: w.current };
16
+ var ft;
17
+ function un() {
18
+ if (ft)
19
+ return ve;
20
+ ft = 1;
21
+ var l = Ke, o = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function m(R, u, b) {
23
+ var s, p = {}, w = null, c = null;
24
+ b !== void 0 && (w = "" + b), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (c = u.ref);
25
+ for (s in u)
26
+ d.call(u, s) && !x.hasOwnProperty(s) && (p[s] = u[s]);
27
+ if (R && R.defaultProps)
28
+ for (s in u = R.defaultProps, u)
29
+ p[s] === void 0 && (p[s] = u[s]);
30
+ return { $$typeof: o, type: R, key: w, ref: c, props: p, _owner: j.current };
31
31
  }
32
- return pe.Fragment = h, pe.jsx = m, pe.jsxs = m, pe;
32
+ return ve.Fragment = h, ve.jsx = m, ve.jsxs = m, ve;
33
33
  }
34
- var he = {};
34
+ var xe = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -41,27 +41,27 @@ var he = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var ut;
45
- function sn() {
46
- return ut || (ut = 1, process.env.NODE_ENV !== "production" && function() {
47
- var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), E = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
48
- function W(e) {
44
+ var pt;
45
+ function cn() {
46
+ return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var l = Ke, o = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), L = Symbol.iterator, I = "@@iterator";
48
+ function $(e) {
49
49
  if (e === null || typeof e != "object")
50
50
  return null;
51
- var n = P && e[P] || e[A];
51
+ var n = L && e[L] || e[I];
52
52
  return typeof n == "function" ? n : null;
53
53
  }
54
- var H = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ var F = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
55
  function S(e) {
56
56
  {
57
- for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
58
- r[i - 1] = arguments[i];
59
- N("error", e, r);
57
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
58
+ r[a - 1] = arguments[a];
59
+ V("error", e, r);
60
60
  }
61
61
  }
62
- function N(e, n, r) {
62
+ function V(e, n, r) {
63
63
  {
64
- var i = H.ReactDebugCurrentFrame, g = i.getStackAddendum();
64
+ var a = F.ReactDebugCurrentFrame, g = a.getStackAddendum();
65
65
  g !== "" && (n += "%s", r = r.concat([g]));
66
66
  var C = r.map(function(v) {
67
67
  return String(v);
@@ -69,26 +69,26 @@ function sn() {
69
69
  C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
70
70
  }
71
71
  }
72
- var ve = !1, xe = !1, J = !1, R = !1, Y = !1, q;
73
- q = Symbol.for("react.module.reference");
74
- function ke(e) {
75
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || Y || e === w || e === b || e === s || R || e === c || ve || xe || J || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === p || e.$$typeof === m || e.$$typeof === E || e.$$typeof === o || // This needs to include all possible module reference object
72
+ var Oe = !1, Pe = !1, ge = !1, be = !1, J = !1, y;
73
+ y = Symbol.for("react.module.reference");
74
+ function N(e) {
75
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || J || e === j || e === b || e === s || be || e === c || Oe || Pe || ge || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === p || e.$$typeof === m || e.$$typeof === R || e.$$typeof === u || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
78
78
  // with.
79
- e.$$typeof === q || e.getModuleId !== void 0));
79
+ e.$$typeof === y || e.getModuleId !== void 0));
80
80
  }
81
- function ge(e, n, r) {
82
- var i = e.displayName;
83
- if (i)
84
- return i;
81
+ function oe(e, n, r) {
82
+ var a = e.displayName;
83
+ if (a)
84
+ return a;
85
85
  var g = n.displayName || n.name || "";
86
86
  return g !== "" ? r + "(" + g + ")" : r;
87
87
  }
88
- function ae(e) {
88
+ function me(e) {
89
89
  return e.displayName || "Context";
90
90
  }
91
- function $(e) {
91
+ function A(e) {
92
92
  if (e == null)
93
93
  return null;
94
94
  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")
@@ -102,7 +102,7 @@ function sn() {
102
102
  return "Portal";
103
103
  case x:
104
104
  return "Profiler";
105
- case w:
105
+ case j:
106
106
  return "StrictMode";
107
107
  case b:
108
108
  return "Suspense";
@@ -111,21 +111,21 @@ function sn() {
111
111
  }
112
112
  if (typeof e == "object")
113
113
  switch (e.$$typeof) {
114
- case E:
114
+ case R:
115
115
  var n = e;
116
- return ae(n) + ".Consumer";
116
+ return me(n) + ".Consumer";
117
117
  case m:
118
118
  var r = e;
119
- return ae(r._context) + ".Provider";
120
- case o:
121
- return ge(e, e.render, "ForwardRef");
119
+ return me(r._context) + ".Provider";
120
+ case u:
121
+ return oe(e, e.render, "ForwardRef");
122
122
  case p:
123
- var i = e.displayName || null;
124
- return i !== null ? i : $(e.type) || "Memo";
125
- case j: {
123
+ var a = e.displayName || null;
124
+ return a !== null ? a : A(e.type) || "Memo";
125
+ case w: {
126
126
  var g = e, C = g._payload, v = g._init;
127
127
  try {
128
- return $(v(C));
128
+ return A(v(C));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -133,18 +133,18 @@ function sn() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var z = Object.assign, G = 0, Z, be, me, Ce, oe, we, je;
137
- function ye() {
136
+ var B = Object.assign, Y = 0, Ce, je, q, we, se, ye, Ee;
137
+ function Re() {
138
138
  }
139
- ye.__reactDisabledLog = !0;
140
- function Le() {
139
+ Re.__reactDisabledLog = !0;
140
+ function De() {
141
141
  {
142
- if (G === 0) {
143
- Z = console.log, be = console.info, me = console.warn, Ce = console.error, oe = console.group, we = console.groupCollapsed, je = console.groupEnd;
142
+ if (Y === 0) {
143
+ Ce = console.log, je = console.info, q = console.warn, we = console.error, se = console.group, ye = console.groupCollapsed, Ee = console.groupEnd;
144
144
  var e = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
147
- value: ye,
147
+ value: Re,
148
148
  writable: !0
149
149
  };
150
150
  Object.defineProperties(console, {
@@ -157,77 +157,77 @@ function sn() {
157
157
  groupEnd: e
158
158
  });
159
159
  }
160
- G++;
160
+ Y++;
161
161
  }
162
162
  }
163
- function Oe() {
163
+ function _e() {
164
164
  {
165
- if (G--, G === 0) {
165
+ if (Y--, Y === 0) {
166
166
  var e = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- log: z({}, e, {
173
- value: Z
172
+ log: B({}, e, {
173
+ value: Ce
174
174
  }),
175
- info: z({}, e, {
176
- value: be
175
+ info: B({}, e, {
176
+ value: je
177
177
  }),
178
- warn: z({}, e, {
179
- value: me
178
+ warn: B({}, e, {
179
+ value: q
180
180
  }),
181
- error: z({}, e, {
182
- value: Ce
181
+ error: B({}, e, {
182
+ value: we
183
183
  }),
184
- group: z({}, e, {
185
- value: oe
184
+ group: B({}, e, {
185
+ value: se
186
186
  }),
187
- groupCollapsed: z({}, e, {
188
- value: we
187
+ groupCollapsed: B({}, e, {
188
+ value: ye
189
189
  }),
190
- groupEnd: z({}, e, {
191
- value: je
190
+ groupEnd: B({}, e, {
191
+ value: Ee
192
192
  })
193
193
  });
194
194
  }
195
- G < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ Y < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var se = H.ReactCurrentDispatcher, ue;
198
+ var ue = F.ReactCurrentDispatcher, ce;
199
199
  function Q(e, n, r) {
200
200
  {
201
- if (ue === void 0)
201
+ if (ce === void 0)
202
202
  try {
203
203
  throw Error();
204
204
  } catch (g) {
205
- var i = g.stack.trim().match(/\n( *(at )?)/);
206
- ue = i && i[1] || "";
205
+ var a = g.stack.trim().match(/\n( *(at )?)/);
206
+ ce = a && a[1] || "";
207
207
  }
208
208
  return `
209
- ` + ue + e;
209
+ ` + ce + e;
210
210
  }
211
211
  }
212
- var ce = !1, ee;
212
+ var de = !1, ee;
213
213
  {
214
- var Ee = typeof WeakMap == "function" ? WeakMap : Map;
215
- ee = new Ee();
214
+ var Ie = typeof WeakMap == "function" ? WeakMap : Map;
215
+ ee = new Ie();
216
216
  }
217
- function de(e, n) {
218
- if (!e || ce)
217
+ function Se(e, n) {
218
+ if (!e || de)
219
219
  return "";
220
220
  {
221
221
  var r = ee.get(e);
222
222
  if (r !== void 0)
223
223
  return r;
224
224
  }
225
- var i;
226
- ce = !0;
225
+ var a;
226
+ de = !0;
227
227
  var g = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
229
  var C;
230
- C = se.current, se.current = null, Le();
230
+ C = ue.current, ue.current = null, De();
231
231
  try {
232
232
  if (n) {
233
233
  var v = function() {
@@ -240,63 +240,63 @@ function sn() {
240
240
  }), typeof Reflect == "object" && Reflect.construct) {
241
241
  try {
242
242
  Reflect.construct(v, []);
243
- } catch (F) {
244
- i = F;
243
+ } catch (D) {
244
+ a = D;
245
245
  }
246
246
  Reflect.construct(e, [], v);
247
247
  } else {
248
248
  try {
249
249
  v.call();
250
- } catch (F) {
251
- i = F;
250
+ } catch (D) {
251
+ a = D;
252
252
  }
253
253
  e.call(v.prototype);
254
254
  }
255
255
  } else {
256
256
  try {
257
257
  throw Error();
258
- } catch (F) {
259
- i = F;
258
+ } catch (D) {
259
+ a = D;
260
260
  }
261
261
  e();
262
262
  }
263
- } catch (F) {
264
- if (F && i && typeof F.stack == "string") {
265
- for (var f = F.stack.split(`
266
- `), I = i.stack.split(`
267
- `), _ = f.length - 1, T = I.length - 1; _ >= 1 && T >= 0 && f[_] !== I[T]; )
263
+ } catch (D) {
264
+ if (D && a && typeof D.stack == "string") {
265
+ for (var f = D.stack.split(`
266
+ `), P = a.stack.split(`
267
+ `), _ = f.length - 1, T = P.length - 1; _ >= 1 && T >= 0 && f[_] !== P[T]; )
268
268
  T--;
269
269
  for (; _ >= 1 && T >= 0; _--, T--)
270
- if (f[_] !== I[T]) {
270
+ if (f[_] !== P[T]) {
271
271
  if (_ !== 1 || T !== 1)
272
272
  do
273
- if (_--, T--, T < 0 || f[_] !== I[T]) {
274
- var M = `
273
+ if (_--, T--, T < 0 || f[_] !== P[T]) {
274
+ var W = `
275
275
  ` + f[_].replace(" at new ", " at ");
276
- return e.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, M), M;
276
+ return e.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, W), W;
277
277
  }
278
278
  while (_ >= 1 && T >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- ce = !1, se.current = C, Oe(), Error.prepareStackTrace = g;
283
+ de = !1, ue.current = C, _e(), Error.prepareStackTrace = g;
284
284
  }
285
- var ne = e ? e.displayName || e.name : "", K = ne ? Q(ne) : "";
286
- return typeof e == "function" && ee.set(e, K), K;
285
+ var re = e ? e.displayName || e.name : "", X = re ? Q(re) : "";
286
+ return typeof e == "function" && ee.set(e, X), X;
287
287
  }
288
- function Re(e, n, r) {
289
- return de(e, !1);
288
+ function Fe(e, n, r) {
289
+ return Se(e, !1);
290
290
  }
291
- function u(e) {
291
+ function Ae(e) {
292
292
  var n = e.prototype;
293
293
  return !!(n && n.isReactComponent);
294
294
  }
295
- function O(e, n, r) {
295
+ function te(e, n, r) {
296
296
  if (e == null)
297
297
  return "";
298
298
  if (typeof e == "function")
299
- return de(e, u(e));
299
+ return Se(e, Ae(e));
300
300
  if (typeof e == "string")
301
301
  return Q(e);
302
302
  switch (e) {
@@ -307,80 +307,80 @@ function sn() {
307
307
  }
308
308
  if (typeof e == "object")
309
309
  switch (e.$$typeof) {
310
- case o:
311
- return Re(e.render);
310
+ case u:
311
+ return Fe(e.render);
312
312
  case p:
313
- return O(e.type, n, r);
314
- case j: {
315
- var i = e, g = i._payload, C = i._init;
313
+ return te(e.type, n, r);
314
+ case w: {
315
+ var a = e, g = a._payload, C = a._init;
316
316
  try {
317
- return O(C(g), n, r);
317
+ return te(C(g), n, r);
318
318
  } catch {
319
319
  }
320
320
  }
321
321
  }
322
322
  return "";
323
323
  }
324
- var k = Object.prototype.hasOwnProperty, D = {}, _e = H.ReactDebugCurrentFrame;
325
- function B(e) {
324
+ var z = Object.prototype.hasOwnProperty, fe = {}, pe = F.ReactDebugCurrentFrame;
325
+ function i(e) {
326
326
  if (e) {
327
- var n = e._owner, r = O(e.type, e._source, n ? n.type : null);
328
- _e.setExtraStackFrame(r);
327
+ var n = e._owner, r = te(e.type, e._source, n ? n.type : null);
328
+ pe.setExtraStackFrame(r);
329
329
  } else
330
- _e.setExtraStackFrame(null);
330
+ pe.setExtraStackFrame(null);
331
331
  }
332
- function vt(e, n, r, i, g) {
332
+ function H(e, n, r, a, g) {
333
333
  {
334
- var C = Function.call.bind(k);
334
+ var C = Function.call.bind(z);
335
335
  for (var v in e)
336
336
  if (C(e, v)) {
337
337
  var f = void 0;
338
338
  try {
339
339
  if (typeof e[v] != "function") {
340
- var I = Error((i || "React class") + ": " + r + " 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`.");
341
- throw I.name = "Invariant Violation", I;
340
+ var P = Error((a || "React class") + ": " + r + " 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`.");
341
+ throw P.name = "Invariant Violation", P;
342
342
  }
343
- f = e[v](n, v, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ f = e[v](n, v, a, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
344
  } catch (_) {
345
345
  f = _;
346
346
  }
347
- f && !(f instanceof Error) && (B(g), 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).", i || "React class", r, v, typeof f), B(null)), f instanceof Error && !(f.message in D) && (D[f.message] = !0, B(g), S("Failed %s type: %s", r, f.message), B(null));
347
+ f && !(f instanceof Error) && (i(g), 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).", a || "React class", r, v, typeof f), i(null)), f instanceof Error && !(f.message in fe) && (fe[f.message] = !0, i(g), S("Failed %s type: %s", r, f.message), i(null));
348
348
  }
349
349
  }
350
350
  }
351
- var xt = Array.isArray;
352
- function Pe(e) {
353
- return xt(e);
351
+ var U = Array.isArray;
352
+ function O(e) {
353
+ return U(e);
354
354
  }
355
- function gt(e) {
355
+ function He(e) {
356
356
  {
357
357
  var n = typeof Symbol == "function" && Symbol.toStringTag, r = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
358
  return r;
359
359
  }
360
360
  }
361
- function bt(e) {
361
+ function K(e) {
362
362
  try {
363
- return Ge(e), !1;
363
+ return Je(e), !1;
364
364
  } catch {
365
365
  return !0;
366
366
  }
367
367
  }
368
- function Ge(e) {
368
+ function Je(e) {
369
369
  return "" + e;
370
370
  }
371
- function Ze(e) {
372
- if (bt(e))
373
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(e)), Ge(e);
371
+ function qe(e) {
372
+ if (K(e))
373
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Je(e);
374
374
  }
375
- var fe = H.ReactCurrentOwner, mt = {
375
+ var he = F.ReactCurrentOwner, Ct = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
- }, Ke, Xe, De;
381
- De = {};
382
- function Ct(e) {
383
- if (k.call(e, "ref")) {
380
+ }, Qe, et, $e;
381
+ $e = {};
382
+ function jt(e) {
383
+ if (z.call(e, "ref")) {
384
384
  var n = Object.getOwnPropertyDescriptor(e, "ref").get;
385
385
  if (n && n.isReactWarning)
386
386
  return !1;
@@ -388,23 +388,23 @@ function sn() {
388
388
  return e.ref !== void 0;
389
389
  }
390
390
  function wt(e) {
391
- if (k.call(e, "key")) {
391
+ if (z.call(e, "key")) {
392
392
  var n = Object.getOwnPropertyDescriptor(e, "key").get;
393
393
  if (n && n.isReactWarning)
394
394
  return !1;
395
395
  }
396
396
  return e.key !== void 0;
397
397
  }
398
- function jt(e, n) {
399
- if (typeof e.ref == "string" && fe.current && n && fe.current.stateNode !== n) {
400
- var r = $(fe.current.type);
401
- De[r] || (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', $(fe.current.type), e.ref), De[r] = !0);
398
+ function yt(e, n) {
399
+ if (typeof e.ref == "string" && he.current && n && he.current.stateNode !== n) {
400
+ var r = A(he.current.type);
401
+ $e[r] || (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', A(he.current.type), e.ref), $e[r] = !0);
402
402
  }
403
403
  }
404
- function yt(e, n) {
404
+ function Et(e, n) {
405
405
  {
406
406
  var r = function() {
407
- Ke || (Ke = !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));
407
+ Qe || (Qe = !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));
408
408
  };
409
409
  r.isReactWarning = !0, Object.defineProperty(e, "key", {
410
410
  get: r,
@@ -412,10 +412,10 @@ function sn() {
412
412
  });
413
413
  }
414
414
  }
415
- function Et(e, n) {
415
+ function Rt(e, n) {
416
416
  {
417
417
  var r = function() {
418
- Xe || (Xe = !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));
418
+ et || (et = !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));
419
419
  };
420
420
  r.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
421
  get: r,
@@ -423,10 +423,10 @@ function sn() {
423
423
  });
424
424
  }
425
425
  }
426
- var Rt = function(e, n, r, i, g, C, v) {
426
+ var _t = function(e, n, r, a, g, C, v) {
427
427
  var f = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
- $$typeof: a,
429
+ $$typeof: o,
430
430
  // Built-in properties that belong on the element
431
431
  type: e,
432
432
  key: n,
@@ -444,7 +444,7 @@ function sn() {
444
444
  configurable: !1,
445
445
  enumerable: !1,
446
446
  writable: !1,
447
- value: i
447
+ value: a
448
448
  }), Object.defineProperty(f, "_source", {
449
449
  configurable: !1,
450
450
  enumerable: !1,
@@ -452,41 +452,41 @@ function sn() {
452
452
  value: g
453
453
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
454
454
  };
455
- function _t(e, n, r, i, g) {
455
+ function St(e, n, r, a, g) {
456
456
  {
457
- var C, v = {}, f = null, I = null;
458
- r !== void 0 && (Ze(r), f = "" + r), wt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, jt(n, g));
457
+ var C, v = {}, f = null, P = null;
458
+ r !== void 0 && (qe(r), f = "" + r), wt(n) && (qe(n.key), f = "" + n.key), jt(n) && (P = n.ref, yt(n, g));
459
459
  for (C in n)
460
- k.call(n, C) && !mt.hasOwnProperty(C) && (v[C] = n[C]);
460
+ z.call(n, C) && !Ct.hasOwnProperty(C) && (v[C] = n[C]);
461
461
  if (e && e.defaultProps) {
462
462
  var _ = e.defaultProps;
463
463
  for (C in _)
464
464
  v[C] === void 0 && (v[C] = _[C]);
465
465
  }
466
- if (f || I) {
466
+ if (f || P) {
467
467
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- f && yt(v, T), I && Et(v, T);
468
+ f && Et(v, T), P && Rt(v, T);
469
469
  }
470
- return Rt(e, f, I, g, i, fe.current, v);
470
+ return _t(e, f, P, g, a, he.current, v);
471
471
  }
472
472
  }
473
- var Ie = H.ReactCurrentOwner, Je = H.ReactDebugCurrentFrame;
474
- function te(e) {
473
+ var We = F.ReactCurrentOwner, tt = F.ReactDebugCurrentFrame;
474
+ function ne(e) {
475
475
  if (e) {
476
- var n = e._owner, r = O(e.type, e._source, n ? n.type : null);
477
- Je.setExtraStackFrame(r);
476
+ var n = e._owner, r = te(e.type, e._source, n ? n.type : null);
477
+ tt.setExtraStackFrame(r);
478
478
  } else
479
- Je.setExtraStackFrame(null);
479
+ tt.setExtraStackFrame(null);
480
480
  }
481
- var Fe;
482
- Fe = !1;
483
- function Ae(e) {
484
- return typeof e == "object" && e !== null && e.$$typeof === a;
481
+ var Be;
482
+ Be = !1;
483
+ function Me(e) {
484
+ return typeof e == "object" && e !== null && e.$$typeof === o;
485
485
  }
486
- function qe() {
486
+ function nt() {
487
487
  {
488
- if (Ie.current) {
489
- var e = $(Ie.current.type);
488
+ if (We.current) {
489
+ var e = A(We.current.type);
490
490
  if (e)
491
491
  return `
492
492
 
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
495
495
  return "";
496
496
  }
497
497
  }
498
- function St(e) {
498
+ function Tt(e) {
499
499
  {
500
500
  if (e !== void 0) {
501
501
  var n = e.fileName.replace(/^.*[\\\/]/, ""), r = e.lineNumber;
@@ -506,10 +506,10 @@ Check your code at ` + n + ":" + r + ".";
506
506
  return "";
507
507
  }
508
508
  }
509
- var Qe = {};
510
- function Tt(e) {
509
+ var rt = {};
510
+ function kt(e) {
511
511
  {
512
- var n = qe();
512
+ var n = nt();
513
513
  if (!n) {
514
514
  var r = typeof e == "string" ? e : e.displayName || e.name;
515
515
  r && (n = `
@@ -519,39 +519,39 @@ Check the top-level render call using <` + r + ">.");
519
519
  return n;
520
520
  }
521
521
  }
522
- function et(e, n) {
522
+ function lt(e, n) {
523
523
  {
524
524
  if (!e._store || e._store.validated || e.key != null)
525
525
  return;
526
526
  e._store.validated = !0;
527
- var r = Tt(n);
528
- if (Qe[r])
527
+ var r = kt(n);
528
+ if (rt[r])
529
529
  return;
530
- Qe[r] = !0;
531
- var i = "";
532
- e && e._owner && e._owner !== Ie.current && (i = " It was passed a child from " + $(e._owner.type) + "."), te(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.', r, i), te(null);
530
+ rt[r] = !0;
531
+ var a = "";
532
+ e && e._owner && e._owner !== We.current && (a = " It was passed a child from " + A(e._owner.type) + "."), ne(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.', r, a), ne(null);
533
533
  }
534
534
  }
535
- function tt(e, n) {
535
+ function it(e, n) {
536
536
  {
537
537
  if (typeof e != "object")
538
538
  return;
539
- if (Pe(e))
539
+ if (O(e))
540
540
  for (var r = 0; r < e.length; r++) {
541
- var i = e[r];
542
- Ae(i) && et(i, n);
541
+ var a = e[r];
542
+ Me(a) && lt(a, n);
543
543
  }
544
- else if (Ae(e))
544
+ else if (Me(e))
545
545
  e._store && (e._store.validated = !0);
546
546
  else if (e) {
547
- var g = W(e);
547
+ var g = $(e);
548
548
  if (typeof g == "function" && g !== e.entries)
549
549
  for (var C = g.call(e), v; !(v = C.next()).done; )
550
- Ae(v.value) && et(v.value, n);
550
+ Me(v.value) && lt(v.value, n);
551
551
  }
552
552
  }
553
553
  }
554
- function kt(e) {
554
+ function Lt(e) {
555
555
  {
556
556
  var n = e.type;
557
557
  if (n == null || typeof n == "string")
@@ -559,142 +559,142 @@ Check the top-level render call using <` + r + ">.");
559
559
  var r;
560
560
  if (typeof n == "function")
561
561
  r = n.propTypes;
562
- else if (typeof n == "object" && (n.$$typeof === o || // Note: Memo only checks outer props here.
562
+ else if (typeof n == "object" && (n.$$typeof === u || // Note: Memo only checks outer props here.
563
563
  // Inner props are checked in the reconciler.
564
564
  n.$$typeof === p))
565
565
  r = n.propTypes;
566
566
  else
567
567
  return;
568
568
  if (r) {
569
- var i = $(n);
570
- vt(r, e.props, "prop", i, e);
571
- } else if (n.PropTypes !== void 0 && !Fe) {
572
- Fe = !0;
573
- var g = $(n);
569
+ var a = A(n);
570
+ H(r, e.props, "prop", a, e);
571
+ } else if (n.PropTypes !== void 0 && !Be) {
572
+ Be = !0;
573
+ var g = A(n);
574
574
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
575
575
  }
576
576
  typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
577
  }
578
578
  }
579
- function Lt(e) {
579
+ function Ot(e) {
580
580
  {
581
581
  for (var n = Object.keys(e.props), r = 0; r < n.length; r++) {
582
- var i = n[r];
583
- if (i !== "children" && i !== "key") {
584
- te(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), te(null);
582
+ var a = n[r];
583
+ if (a !== "children" && a !== "key") {
584
+ ne(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), ne(null);
585
585
  break;
586
586
  }
587
587
  }
588
- e.ref !== null && (te(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
588
+ e.ref !== null && (ne(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
589
589
  }
590
590
  }
591
- var nt = {};
592
- function rt(e, n, r, i, g, C) {
591
+ var at = {};
592
+ function ot(e, n, r, a, g, C) {
593
593
  {
594
- var v = ke(e);
594
+ var v = N(e);
595
595
  if (!v) {
596
596
  var f = "";
597
597
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var I = St(g);
599
- I ? f += I : f += qe();
598
+ var P = Tt(g);
599
+ P ? f += P : f += nt();
600
600
  var _;
601
- e === null ? _ = "null" : Pe(e) ? _ = "array" : e !== void 0 && e.$$typeof === a ? (_ = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, f);
601
+ e === null ? _ = "null" : O(e) ? _ = "array" : e !== void 0 && e.$$typeof === o ? (_ = "<" + (A(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, f);
602
602
  }
603
- var T = _t(e, n, r, g, C);
603
+ var T = St(e, n, r, g, C);
604
604
  if (T == null)
605
605
  return T;
606
606
  if (v) {
607
- var M = n.children;
608
- if (M !== void 0)
609
- if (i)
610
- if (Pe(M)) {
611
- for (var ne = 0; ne < M.length; ne++)
612
- tt(M[ne], e);
613
- Object.freeze && Object.freeze(M);
607
+ var W = n.children;
608
+ if (W !== void 0)
609
+ if (a)
610
+ if (O(W)) {
611
+ for (var re = 0; re < W.length; re++)
612
+ it(W[re], e);
613
+ Object.freeze && Object.freeze(W);
614
614
  } else
615
615
  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.");
616
616
  else
617
- tt(M, e);
617
+ it(W, e);
618
618
  }
619
- if (k.call(n, "key")) {
620
- var K = $(e), F = Object.keys(n).filter(function(At) {
621
- return At !== "key";
622
- }), He = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
623
- if (!nt[K + He]) {
624
- var Ft = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
619
+ if (z.call(n, "key")) {
620
+ var X = A(e), D = Object.keys(n).filter(function(Ht) {
621
+ return Ht !== "key";
622
+ }), Ve = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ if (!at[X + Ve]) {
624
+ var At = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
625
625
  S(`A props object containing a "key" prop is being spread into JSX:
626
626
  let props = %s;
627
627
  <%s {...props} />
628
628
  React keys must be passed directly to JSX without using spread:
629
629
  let props = %s;
630
- <%s key={someKey} {...props} />`, He, K, Ft, K), nt[K + He] = !0;
630
+ <%s key={someKey} {...props} />`, Ve, X, At, X), at[X + Ve] = !0;
631
631
  }
632
632
  }
633
- return e === d ? Lt(T) : kt(T), T;
633
+ return e === d ? Ot(T) : Lt(T), T;
634
634
  }
635
635
  }
636
- function Ot(e, n, r) {
637
- return rt(e, n, r, !0);
638
- }
639
636
  function Pt(e, n, r) {
640
- return rt(e, n, r, !1);
637
+ return ot(e, n, r, !0);
641
638
  }
642
- var Dt = Pt, It = Ot;
643
- he.Fragment = d, he.jsx = Dt, he.jsxs = It;
644
- }()), he;
639
+ function Dt(e, n, r) {
640
+ return ot(e, n, r, !1);
641
+ }
642
+ var It = Dt, Ft = Pt;
643
+ xe.Fragment = d, xe.jsx = It, xe.jsxs = Ft;
644
+ }()), xe;
645
645
  }
646
- process.env.NODE_ENV === "production" ? Ve.exports = on() : Ve.exports = sn();
647
- var t = Ve.exports;
648
- const We = 60, ct = 6, un = (l) => {
646
+ process.env.NODE_ENV === "production" ? Ge.exports = un() : Ge.exports = cn();
647
+ var t = Ge.exports;
648
+ const Ye = 60, ht = 6, dn = (l) => {
649
649
  const {
650
- activeStepIndex: a,
650
+ activeStepIndex: o,
651
651
  hideIndicators: h = !1,
652
652
  steps: d,
653
- stepperTheme: w = {
653
+ stepperTheme: j = {
654
654
  light: "eggplant.light",
655
655
  base: "eggplant.base"
656
656
  }
657
- } = l, { activeStep: x, setActiveStep: m } = Ht({
658
- index: a,
657
+ } = l, { activeStep: x, setActiveStep: m } = $t({
658
+ index: o,
659
659
  count: d.length
660
660
  });
661
- return le(() => {
662
- m(a);
663
- }, [a, m]), /* @__PURE__ */ t.jsx(
664
- y,
661
+ return ie(() => {
662
+ m(o);
663
+ }, [o, m]), /* @__PURE__ */ t.jsx(
664
+ E,
665
665
  { position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
666
- $t,
666
+ Wt,
667
667
  {
668
668
  role: "progressbar",
669
669
  index: x,
670
670
  width: "100%",
671
671
  display: "flex",
672
672
  flexWrap: "nowrap",
673
- children: d.map((E, o) => {
674
- const b = x === o, s = o === 0, p = o === d.length - 1, j = x > o;
675
- let c = `${We}px`;
676
- const P = `calc(100% - ((${We * (d.length - 1)}px) - (${d.length - 1} * ${ct * 2}px)))`;
677
- return b ? c = P : (s || p) && (c = `${We - ct}px`), /* @__PURE__ */ t.jsx(
678
- y,
673
+ children: d.map((R, u) => {
674
+ const b = x === u, s = u === 0, p = u === d.length - 1, w = x > u;
675
+ let c = `${Ye}px`;
676
+ const L = `calc(100% - ((${Ye * (d.length - 1)}px) - (${d.length - 1} * ${ht * 2}px)))`;
677
+ return b ? c = L : (s || p) && (c = `${Ye - ht}px`), /* @__PURE__ */ t.jsx(
678
+ E,
679
679
  {
680
680
  width: c,
681
- opacity: j || b ? 1 : 0.2,
681
+ opacity: w || b ? 1 : 0.2,
682
682
  paddingRight: p ? "0" : "6px",
683
683
  paddingLeft: s ? "0" : "6px",
684
684
  transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
685
685
  children: /* @__PURE__ */ t.jsx(
686
- y,
686
+ E,
687
687
  {
688
688
  paddingTop: h ? 2 : 5,
689
689
  position: "relative",
690
690
  width: "100%",
691
691
  children: /* @__PURE__ */ t.jsx(
692
- y,
692
+ E,
693
693
  {
694
694
  width: "100%",
695
695
  position: "absolute",
696
696
  top: "0",
697
- backgroundColor: j ? w.light : w.base,
697
+ backgroundColor: w ? j.light : j.base,
698
698
  height: h ? "4px" : "8px",
699
699
  borderRadius: "4",
700
700
  left: "0"
@@ -703,40 +703,40 @@ const We = 60, ct = 6, un = (l) => {
703
703
  }
704
704
  )
705
705
  },
706
- `step-${o}`
706
+ `step-${u}`
707
707
  );
708
708
  })
709
709
  }
710
710
  ) }
711
711
  );
712
- }, jn = Ye.memo(un), yn = ({
712
+ }, En = Ke.memo(dn), Rn = ({
713
713
  children: l,
714
- ...a
714
+ ...o
715
715
  }) => /* @__PURE__ */ t.jsx(
716
- Kt,
717
- { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...a, children: l }
718
- ), Ue = (l, a) => {
716
+ Jt,
717
+ { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
718
+ ), Le = (l, o) => {
719
719
  const h = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
720
- return a && !h ? {
720
+ return o && !h ? {
721
721
  to: l
722
722
  } : {
723
723
  href: l
724
724
  };
725
- }, Me = pt(
726
- (l, a) => {
725
+ }, ze = bt(
726
+ (l, o) => {
727
727
  const {
728
728
  label: h,
729
729
  additionalContent: d,
730
- mainTextFontSize: w,
730
+ mainTextFontSize: j,
731
731
  linkComponent: x,
732
732
  href: m,
733
- ...E
734
- } = l, o = x || X, b = Ue(m, !!x);
733
+ ...R
734
+ } = l, u = x || G, b = Le(m, !!x);
735
735
  return /* @__PURE__ */ t.jsxs(
736
- y,
736
+ E,
737
737
  {
738
- ref: a,
739
- as: o,
738
+ ref: o,
739
+ as: u,
740
740
  display: "flex",
741
741
  alignItems: "center",
742
742
  gap: [null, null, null, 1],
@@ -749,13 +749,13 @@ const We = 60, ct = 6, un = (l) => {
749
749
  width: ["100%", null, null, "fit-content"],
750
750
  cursor: "pointer",
751
751
  ...b,
752
- ...E,
752
+ ...R,
753
753
  children: [
754
754
  /* @__PURE__ */ t.jsx(
755
- re,
755
+ le,
756
756
  {
757
757
  display: ["none", null, null, "block"],
758
- as: it,
758
+ as: ut,
759
759
  fontSize: "lg",
760
760
  color: "viridian.light",
761
761
  role: "img",
@@ -764,18 +764,18 @@ const We = 60, ct = 6, un = (l) => {
764
764
  }
765
765
  ),
766
766
  /* @__PURE__ */ t.jsxs(
767
- L,
767
+ k,
768
768
  { alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
769
769
  /* @__PURE__ */ t.jsx(
770
- U,
770
+ Z,
771
771
  {
772
- fontSize: [w || "xl", null, null, "lg"],
772
+ fontSize: [j || "xl", null, null, "lg"],
773
773
  fontWeight: "medium",
774
774
  children: h
775
775
  }
776
776
  ),
777
777
  d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
778
- U,
778
+ Z,
779
779
  {
780
780
  fontSize: ["xl", null, null, "lg"],
781
781
  fontWeight: "medium",
@@ -789,10 +789,10 @@ const We = 60, ct = 6, un = (l) => {
789
789
  }
790
790
  ) : d),
791
791
  /* @__PURE__ */ t.jsx(
792
- re,
792
+ le,
793
793
  {
794
794
  display: ["block", null, null, "none"],
795
- as: it,
795
+ as: ut,
796
796
  fontSize: "2xl",
797
797
  color: "tints.uiGrey",
798
798
  role: "img",
@@ -806,13 +806,13 @@ const We = 60, ct = 6, un = (l) => {
806
806
  }
807
807
  );
808
808
  }
809
- ), Te = pt(
810
- (l, a) => {
811
- const { children: h, isSelected: d, ...w } = l, x = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
809
+ ), ke = bt(
810
+ (l, o) => {
811
+ const { children: h, isSelected: d, ...j } = l, x = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
812
812
  return /* @__PURE__ */ t.jsx(
813
- Wt,
813
+ gt,
814
814
  {
815
- ref: a,
815
+ ref: o,
816
816
  borderRadius: "full",
817
817
  backgroundColor: x,
818
818
  fontSize: "lg !important",
@@ -831,25 +831,25 @@ const We = 60, ct = 6, un = (l) => {
831
831
  textDecoration: "none",
832
832
  filter: "brightness(0.95)"
833
833
  },
834
- ...w,
834
+ ...j,
835
835
  children: h
836
836
  }
837
837
  );
838
838
  }
839
- ), cn = ({
839
+ ), fn = ({
840
840
  title: l,
841
- description: a,
841
+ description: o,
842
842
  imageSrc: h,
843
843
  imageElement: d,
844
- button: w,
844
+ button: j,
845
845
  backgroundColor: x = "viridian.wash",
846
846
  onClick: m,
847
- href: E,
848
- linkComponent: o
847
+ href: R,
848
+ linkComponent: u
849
849
  }) => {
850
- const b = "80px", s = "200px", p = "272px", j = o || X, c = Ue(E, !!o);
850
+ const b = "80px", s = "200px", p = "272px", w = u || G, c = Le(R, !!u);
851
851
  return /* @__PURE__ */ t.jsxs(
852
- L,
852
+ k,
853
853
  {
854
854
  direction: ["row", null, null, "column"],
855
855
  alignItems: ["center"],
@@ -870,17 +870,17 @@ const We = 60, ct = 6, un = (l) => {
870
870
  border: "1px solid",
871
871
  borderColor: "tints.white"
872
872
  },
873
- as: j,
873
+ as: w,
874
874
  ...c,
875
875
  children: [
876
876
  /* @__PURE__ */ t.jsx(
877
- y,
877
+ E,
878
878
  {
879
879
  width: ["72px", null, null, "100%"],
880
880
  height: ["100%"],
881
881
  flex: [null, null, null, "1"],
882
882
  children: h ? /* @__PURE__ */ t.jsx(
883
- Mt,
883
+ Bt,
884
884
  {
885
885
  src: h,
886
886
  objectFit: "cover",
@@ -890,7 +890,7 @@ const We = 60, ct = 6, un = (l) => {
890
890
  "data-testid": "spotlight-card-image"
891
891
  }
892
892
  ) : /* @__PURE__ */ t.jsx(
893
- y,
893
+ E,
894
894
  {
895
895
  height: [b, null, null, s],
896
896
  overflow: "hidden",
@@ -900,7 +900,7 @@ const We = 60, ct = 6, un = (l) => {
900
900
  }
901
901
  ),
902
902
  /* @__PURE__ */ t.jsxs(
903
- L,
903
+ k,
904
904
  {
905
905
  direction: ["column", null, null, "row"],
906
906
  justifyContent: [null, null, null, "space-between"],
@@ -914,27 +914,27 @@ const We = 60, ct = 6, un = (l) => {
914
914
  backdropFilter: [null, null, null, "blur(8px)"],
915
915
  children: [
916
916
  /* @__PURE__ */ t.jsxs(
917
- y,
917
+ E,
918
918
  { children: [
919
919
  /* @__PURE__ */ t.jsx(
920
- U,
920
+ Z,
921
921
  { fontSize: "lg", fontWeight: "medium", color: "tints.black", children: l }
922
922
  ),
923
923
  /* @__PURE__ */ t.jsx(
924
- U,
925
- { fontSize: "sm", color: "tints.black", children: a }
924
+ Z,
925
+ { fontSize: "sm", color: "tints.black", children: o }
926
926
  )
927
927
  ] }
928
928
  ),
929
- /* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: w })
929
+ /* @__PURE__ */ t.jsx(E, { display: ["none", null, null, "block"], children: j })
930
930
  ]
931
931
  }
932
932
  )
933
933
  ]
934
934
  }
935
935
  );
936
- }, ie = (l) => /* @__PURE__ */ t.jsx(
937
- Bt,
936
+ }, ae = (l) => /* @__PURE__ */ t.jsx(
937
+ Mt,
938
938
  {
939
939
  size: "sm",
940
940
  width: ["40px", null, null, "46px"],
@@ -954,7 +954,7 @@ const We = 60, ct = 6, un = (l) => {
954
954
  },
955
955
  ...l
956
956
  }
957
- ), dn = () => /* @__PURE__ */ t.jsx(
957
+ ), pn = () => /* @__PURE__ */ t.jsx(
958
958
  "svg",
959
959
  {
960
960
  width: "116",
@@ -978,38 +978,38 @@ const We = 60, ct = 6, un = (l) => {
978
978
  ) }
979
979
  )
980
980
  }
981
- ), fn = ({
981
+ ), hn = ({
982
982
  desktopTopButtons: l,
983
- kitRegistrationElement: a,
983
+ kitRegistrationElement: o,
984
984
  profileElement: h,
985
985
  cartElement: d,
986
- onSearchClick: w,
986
+ onSearchClick: j,
987
987
  onMenuClick: x,
988
988
  hasSearch: m = !1,
989
- logoLink: E = "https://www.everlywell.com",
990
- onHeightChange: o,
989
+ logoLink: R = "https://www.everlywell.com",
990
+ onHeightChange: u,
991
991
  linkComponent: b,
992
992
  onLogoClick: s
993
993
  }) => {
994
- const p = Zt(null), [j, c] = V(0), P = 100, A = ze(() => {
995
- if (p.current && o) {
996
- const W = Date.now();
997
- if (W - j > P) {
998
- const H = p.current.getBoundingClientRect().height;
999
- o(H), c(W);
994
+ const p = Xt(null), [w, c] = M(0), L = 100, I = Xe(() => {
995
+ if (p.current && u) {
996
+ const $ = Date.now();
997
+ if ($ - w > L) {
998
+ const F = p.current.getBoundingClientRect().height;
999
+ u(F), c($);
1000
1000
  }
1001
1001
  }
1002
- }, [o, j]);
1003
- return le(() => {
1004
- A();
1005
- const W = new ResizeObserver(() => {
1006
- A();
1002
+ }, [u, w]);
1003
+ return ie(() => {
1004
+ I();
1005
+ const $ = new ResizeObserver(() => {
1006
+ I();
1007
1007
  });
1008
- return p.current && W.observe(p.current), () => {
1009
- W.disconnect();
1008
+ return p.current && $.observe(p.current), () => {
1009
+ $.disconnect();
1010
1010
  };
1011
- }, [A]), /* @__PURE__ */ t.jsx(
1012
- y,
1011
+ }, [I]), /* @__PURE__ */ t.jsx(
1012
+ E,
1013
1013
  {
1014
1014
  ref: p,
1015
1015
  paddingY: "4",
@@ -1021,71 +1021,71 @@ const We = 60, ct = 6, un = (l) => {
1021
1021
  width: "100%",
1022
1022
  zIndex: ["sticky", null, null, "tooltip"],
1023
1023
  children: /* @__PURE__ */ t.jsxs(
1024
- L,
1024
+ k,
1025
1025
  { justifyContent: "space-between", alignItems: "center", children: [
1026
1026
  /* @__PURE__ */ t.jsxs(
1027
- L,
1027
+ k,
1028
1028
  { alignItems: "center", gap: "5", children: [
1029
1029
  /* @__PURE__ */ t.jsx(
1030
- y,
1030
+ E,
1031
1031
  {
1032
1032
  "aria-label": "Go to homepage",
1033
1033
  onClick: s,
1034
- as: b || X,
1035
- ...Ue(E, !!b),
1036
- children: /* @__PURE__ */ t.jsx(dn, {})
1034
+ as: b || G,
1035
+ ...Le(R, !!b),
1036
+ children: /* @__PURE__ */ t.jsx(pn, {})
1037
1037
  }
1038
1038
  ),
1039
1039
  /* @__PURE__ */ t.jsx(
1040
- L,
1040
+ k,
1041
1041
  { display: ["none", null, null, "flex"], children: l }
1042
1042
  )
1043
1043
  ] }
1044
1044
  ),
1045
1045
  /* @__PURE__ */ t.jsxs(
1046
- L,
1046
+ k,
1047
1047
  { alignItems: "center", gap: "2", children: [
1048
1048
  /* @__PURE__ */ t.jsx(
1049
- y,
1050
- { display: ["none", null, null, "block"], children: a }
1049
+ E,
1050
+ { display: ["none", null, null, "block"], children: o }
1051
1051
  ),
1052
1052
  m ? /* @__PURE__ */ t.jsx(
1053
- ie,
1053
+ ae,
1054
1054
  {
1055
1055
  "aria-label": "Search",
1056
- icon: /* @__PURE__ */ t.jsx(re, { as: ht }),
1057
- onClick: w
1056
+ icon: /* @__PURE__ */ t.jsx(le, { as: mt }),
1057
+ onClick: j
1058
1058
  }
1059
1059
  ) : null,
1060
1060
  d,
1061
1061
  /* @__PURE__ */ t.jsx(
1062
- y,
1062
+ E,
1063
1063
  { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1064
- ie,
1064
+ ae,
1065
1065
  {
1066
- icon: /* @__PURE__ */ t.jsx(tn, {}),
1066
+ icon: /* @__PURE__ */ t.jsx(rn, {}),
1067
1067
  "aria-label": "menu",
1068
1068
  "data-testid": "menu-button",
1069
1069
  onClick: x
1070
1070
  }
1071
1071
  ) }
1072
1072
  ),
1073
- /* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: h })
1073
+ /* @__PURE__ */ t.jsx(E, { display: ["none", null, null, "block"], children: h })
1074
1074
  ] }
1075
1075
  )
1076
1076
  ] }
1077
1077
  )
1078
1078
  }
1079
1079
  );
1080
- }, pn = ({
1080
+ }, vn = ({
1081
1081
  count: l = 0,
1082
- ...a
1082
+ ...o
1083
1083
  }) => /* @__PURE__ */ t.jsxs(
1084
- y,
1084
+ E,
1085
1085
  { position: "relative", display: "inline-block", children: [
1086
- /* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(nn, {}), ...a }),
1086
+ /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...o }),
1087
1087
  l > 0 && /* @__PURE__ */ t.jsx(
1088
- y,
1088
+ E,
1089
1089
  {
1090
1090
  display: "flex",
1091
1091
  minWidth: "20px",
@@ -1106,83 +1106,83 @@ const We = 60, ct = 6, un = (l) => {
1106
1106
  }
1107
1107
  )
1108
1108
  ] }
1109
- ), En = ({
1109
+ ), _n = ({
1110
1110
  numLinks: l = 5,
1111
- showPromoButton: a = !0
1111
+ showPromoButton: o = !0
1112
1112
  }) => /* @__PURE__ */ t.jsx(
1113
1113
  Vt,
1114
1114
  { spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
1115
- y,
1115
+ E,
1116
1116
  { paddingY: 4, paddingX: 6, borderBottomWidth: "1px", children: /* @__PURE__ */ t.jsxs(
1117
- L,
1117
+ k,
1118
1118
  { justify: "space-between", align: "center", children: [
1119
- /* @__PURE__ */ t.jsx($e, { w: "120px", h: "48px" }),
1119
+ /* @__PURE__ */ t.jsx(Ne, { w: "120px", h: "48px" }),
1120
1120
  /* @__PURE__ */ t.jsxs(
1121
- lt,
1121
+ st,
1122
1122
  { spacing: 8, marginLeft: 12, children: [
1123
1123
  Array.from({ length: l }).map(
1124
- (h, d) => /* @__PURE__ */ t.jsx($e, { width: "90px", height: "48px" }, d)
1124
+ (h, d) => /* @__PURE__ */ t.jsx(Ne, { width: "90px", height: "48px" }, d)
1125
1125
  ),
1126
- a && /* @__PURE__ */ t.jsx($e, { width: "110px", height: "48px", borderRadius: "full" })
1126
+ o && /* @__PURE__ */ t.jsx(Ne, { width: "110px", height: "48px", borderRadius: "full" })
1127
1127
  ] }
1128
1128
  ),
1129
1129
  /* @__PURE__ */ t.jsxs(
1130
- lt,
1130
+ st,
1131
1131
  { spacing: 4, ml: "auto", children: [
1132
- /* @__PURE__ */ t.jsx(Se, { width: "120px", height: "48px" }),
1132
+ /* @__PURE__ */ t.jsx(Te, { width: "120px", height: "48px" }),
1133
1133
  " ",
1134
- /* @__PURE__ */ t.jsx(Se, { width: "48px", height: "48px" }),
1134
+ /* @__PURE__ */ t.jsx(Te, { width: "48px", height: "48px" }),
1135
1135
  " ",
1136
- /* @__PURE__ */ t.jsx(Se, { width: "48px", height: "48px" }),
1136
+ /* @__PURE__ */ t.jsx(Te, { width: "48px", height: "48px" }),
1137
1137
  " ",
1138
- /* @__PURE__ */ t.jsx(Se, { width: "48px", height: "48px" }),
1138
+ /* @__PURE__ */ t.jsx(Te, { width: "48px", height: "48px" }),
1139
1139
  " "
1140
1140
  ] }
1141
1141
  )
1142
1142
  ] }
1143
1143
  ) }
1144
1144
  ) }
1145
- ), hn = (l, a) => {
1145
+ ), xn = (l, o) => {
1146
1146
  let h;
1147
1147
  return (...d) => {
1148
1148
  h && clearTimeout(h), h = setTimeout(() => {
1149
1149
  l(...d);
1150
- }, a);
1150
+ }, o);
1151
1151
  };
1152
- }, Ne = "nav-drawer-hover", dt = (l) => {
1152
+ }, Ze = "nav-drawer-hover", vt = (l) => {
1153
1153
  window.dispatchEvent(
1154
- new CustomEvent(Ne, {
1154
+ new CustomEvent(Ze, {
1155
1155
  detail: { isHovering: l },
1156
1156
  bubbles: !0,
1157
1157
  cancelable: !0
1158
1158
  })
1159
1159
  );
1160
- }, vn = (l = !1, a = !1, h = !1) => l || !a ? "column" : h ? "row" : "row-reverse", Be = ({
1160
+ }, gn = (l = !1, o = !1, h = !1) => l || !o ? "column" : h ? "row" : "row-reverse", Ue = ({
1161
1161
  isOpen: l = !1,
1162
- onClose: a,
1162
+ onClose: o,
1163
1163
  title: h,
1164
1164
  navDrawerLinks: d,
1165
- bottomNavButtons: w,
1165
+ bottomNavButtons: j,
1166
1166
  spotlightCards: x,
1167
1167
  bottomButton: m,
1168
- hasBackButton: E = !0,
1169
- onBackClick: o,
1168
+ hasBackButton: R = !0,
1169
+ onBackClick: u,
1170
1170
  hasOnlySpotlightCards: b = !1,
1171
1171
  navHeight: s,
1172
1172
  hasSearch: p = !1,
1173
- onSearch: j = () => {
1173
+ onSearch: w = () => {
1174
1174
  }
1175
1175
  }) => {
1176
- const c = Xt({
1176
+ const c = qt({
1177
1177
  base: !1,
1178
1178
  tablet: !1,
1179
1179
  largeTablet: !1,
1180
1180
  desktop: !0
1181
- }), P = c ? "top" : "left", [A, W] = V(0), H = () => {
1182
- W((N) => N + 1);
1183
- }, S = ze(
1184
- hn((N) => {
1185
- j(N), H();
1181
+ }), L = c ? "top" : "left", [I, $] = M(0), F = () => {
1182
+ $((V) => V + 1);
1183
+ }, S = Xe(
1184
+ xn((V) => {
1185
+ w(V), F();
1186
1186
  }, 100),
1187
1187
  []
1188
1188
  );
@@ -1190,8 +1190,8 @@ const We = 60, ct = 6, un = (l) => {
1190
1190
  Nt,
1191
1191
  {
1192
1192
  isOpen: l,
1193
- onClose: a,
1194
- placement: P,
1193
+ onClose: o,
1194
+ placement: L,
1195
1195
  blockScrollOnMount: !1,
1196
1196
  autoFocus: !1,
1197
1197
  children: [
@@ -1217,10 +1217,10 @@ const We = 60, ct = 6, un = (l) => {
1217
1217
  zt,
1218
1218
  {
1219
1219
  onMouseEnter: () => {
1220
- !p && c && dt(!0);
1220
+ !p && c && vt(!0);
1221
1221
  },
1222
1222
  onMouseLeave: () => {
1223
- !p && c && dt(!1);
1223
+ !p && c && vt(!1);
1224
1224
  },
1225
1225
  paddingTop: [4, null, null, s ? `${s + 24}px` : null],
1226
1226
  paddingX: [4, null, null, 12],
@@ -1238,31 +1238,31 @@ const We = 60, ct = 6, un = (l) => {
1238
1238
  gap: p ? "4" : "0",
1239
1239
  children: [
1240
1240
  c ? null : /* @__PURE__ */ t.jsxs(
1241
- L,
1241
+ k,
1242
1242
  {
1243
1243
  width: "100%",
1244
1244
  justifyContent: "space-between",
1245
1245
  alignItems: "center",
1246
1246
  children: [
1247
- E ? /* @__PURE__ */ t.jsx(
1248
- ie,
1247
+ R ? /* @__PURE__ */ t.jsx(
1248
+ ae,
1249
1249
  {
1250
- icon: /* @__PURE__ */ t.jsx(rn, {}),
1250
+ icon: /* @__PURE__ */ t.jsx(an, {}),
1251
1251
  onClick: () => {
1252
- o && o(), a();
1252
+ u && u(), o();
1253
1253
  },
1254
1254
  "aria-label": "Back"
1255
1255
  }
1256
1256
  ) : null,
1257
1257
  /* @__PURE__ */ t.jsx(
1258
- U,
1258
+ Z,
1259
1259
  { color: "tints.uiGrey", fontSize: ["xl", null, null, "lg"], children: h }
1260
1260
  ),
1261
1261
  /* @__PURE__ */ t.jsx(
1262
- ie,
1262
+ ae,
1263
1263
  {
1264
- icon: /* @__PURE__ */ t.jsx(ln, {}),
1265
- onClick: a,
1264
+ icon: /* @__PURE__ */ t.jsx(on, {}),
1265
+ onClick: o,
1266
1266
  "aria-label": "Close"
1267
1267
  }
1268
1268
  )
@@ -1270,13 +1270,13 @@ const We = 60, ct = 6, un = (l) => {
1270
1270
  }
1271
1271
  ),
1272
1272
  p && /* @__PURE__ */ t.jsxs(
1273
- Jt,
1273
+ Qt,
1274
1274
  { width: "100%", children: [
1275
1275
  /* @__PURE__ */ t.jsx(
1276
- qt,
1276
+ en,
1277
1277
  {
1278
- onChange: (N) => {
1279
- S(N.target.value);
1278
+ onChange: (V) => {
1279
+ S(V.target.value);
1280
1280
  },
1281
1281
  placeholder: "Search",
1282
1282
  autoFocus: !0,
@@ -1285,8 +1285,8 @@ const We = 60, ct = 6, un = (l) => {
1285
1285
  }
1286
1286
  ),
1287
1287
  /* @__PURE__ */ t.jsx(
1288
- Qt,
1289
- { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(en, { as: ht, color: "gray.500" }) }
1288
+ tn,
1289
+ { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(nn, { as: mt, color: "gray.500" }) }
1290
1290
  )
1291
1291
  ] }
1292
1292
  )
@@ -1300,7 +1300,7 @@ const We = 60, ct = 6, un = (l) => {
1300
1300
  paddingBottom: [6, null, null, 4],
1301
1301
  "data-testid": `navbar-drawer-body-${h.toLowerCase()}`,
1302
1302
  children: /* @__PURE__ */ t.jsx(
1303
- ot.div,
1303
+ dt.div,
1304
1304
  { ...c ? {
1305
1305
  initial: { opacity: 0, y: 0 },
1306
1306
  animate: { opacity: 1, y: 0 },
@@ -1314,7 +1314,7 @@ const We = 60, ct = 6, un = (l) => {
1314
1314
  }
1315
1315
  }
1316
1316
  } : {}, children: /* @__PURE__ */ t.jsxs(
1317
- ot.div,
1317
+ dt.div,
1318
1318
  {
1319
1319
  ...c ? {
1320
1320
  initial: { opacity: 0, y: -5 },
@@ -1333,7 +1333,7 @@ const We = 60, ct = 6, un = (l) => {
1333
1333
  } : {},
1334
1334
  style: {
1335
1335
  display: "flex",
1336
- flexDirection: vn(
1336
+ flexDirection: gn(
1337
1337
  b,
1338
1338
  c,
1339
1339
  p
@@ -1343,7 +1343,7 @@ const We = 60, ct = 6, un = (l) => {
1343
1343
  },
1344
1344
  children: [
1345
1345
  x ? /* @__PURE__ */ t.jsx(
1346
- y,
1346
+ E,
1347
1347
  {
1348
1348
  gap: "6",
1349
1349
  display: "flex",
@@ -1359,17 +1359,17 @@ const We = 60, ct = 6, un = (l) => {
1359
1359
  }
1360
1360
  ) : null,
1361
1361
  /* @__PURE__ */ t.jsxs(
1362
- L,
1362
+ k,
1363
1363
  {
1364
1364
  position: [null, null, null, "relative"],
1365
1365
  flexDirection: "column",
1366
1366
  gap: "6",
1367
1367
  width: ["100%", null, null, "auto"],
1368
1368
  children: [
1369
- d ? /* @__PURE__ */ t.jsx(y, { children: d }) : null,
1370
- w && !c ? /* @__PURE__ */ t.jsx(y, { children: w }) : null,
1369
+ d ? /* @__PURE__ */ t.jsx(E, { children: d }) : null,
1370
+ j && !c ? /* @__PURE__ */ t.jsx(E, { children: j }) : null,
1371
1371
  m ? /* @__PURE__ */ t.jsx(
1372
- y,
1372
+ E,
1373
1373
  {
1374
1374
  width: ["100%"],
1375
1375
  position: [null, null, null, "absolute"],
@@ -1382,7 +1382,7 @@ const We = 60, ct = 6, un = (l) => {
1382
1382
  )
1383
1383
  ]
1384
1384
  },
1385
- A
1385
+ I
1386
1386
  ) }
1387
1387
  )
1388
1388
  }
@@ -1393,368 +1393,377 @@ const We = 60, ct = 6, un = (l) => {
1393
1393
  ]
1394
1394
  }
1395
1395
  );
1396
- }, ft = (l) => {
1397
- const a = /* @__PURE__ */ new Set();
1396
+ }, xt = (l) => {
1397
+ const o = /* @__PURE__ */ new Set();
1398
1398
  return l.reduce((h, d) => {
1399
1399
  var x;
1400
- const w = ((x = d.sections) == null ? void 0 : x.reduce((m, E) => {
1401
- const o = E.links.filter((b) => a.has(b.label) || b.isSearchable !== !0 ? !1 : (a.add(b.label), !0));
1402
- return [...m, ...o];
1400
+ const j = ((x = d.sections) == null ? void 0 : x.reduce((m, R) => {
1401
+ const u = R.links.filter((b) => o.has(b.label) || b.isSearchable !== !0 ? !1 : (o.add(b.label), !0));
1402
+ return [...m, ...u];
1403
1403
  }, [])) ?? [];
1404
- return [...h, ...w];
1404
+ return [...h, ...j];
1405
1405
  }, []);
1406
- }, xn = ({
1406
+ }, bn = ({
1407
1407
  source: l,
1408
- onSearchCallback: a,
1408
+ onSearchCallback: o,
1409
1409
  isActive: h
1410
1410
  }) => {
1411
- const [d, w] = V(""), [x, m] = V([]), E = (s, p) => {
1411
+ const [d, j] = M(""), [x, m] = M([]), R = (s, p) => {
1412
1412
  if (!s)
1413
1413
  return [];
1414
- const j = s.toLowerCase();
1414
+ const w = s.toLowerCase();
1415
1415
  return p.filter((c) => {
1416
- const P = c.label.toLowerCase().includes(j), A = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(j);
1417
- return P || A;
1418
- }).sort((c, P) => c.label.localeCompare(P.label));
1419
- }, o = (s) => {
1420
- if (w(s), !s) {
1416
+ const L = c.label.toLowerCase().includes(w), I = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(w);
1417
+ return L || I;
1418
+ }).sort((c, L) => c.label.localeCompare(L.label));
1419
+ }, u = (s) => {
1420
+ if (j(s), !s) {
1421
1421
  m([]);
1422
1422
  return;
1423
1423
  }
1424
- const p = E(s, l);
1425
- m(p), a && a(s, p);
1424
+ const p = R(s, l);
1425
+ m(p), o && o(s, p);
1426
1426
  }, b = () => {
1427
- w(""), m([]);
1427
+ j(""), m([]);
1428
1428
  };
1429
- return le(() => {
1430
- h || (w(""), m([]));
1429
+ return ie(() => {
1430
+ h || (j(""), m([]));
1431
1431
  }, [h]), {
1432
1432
  query: d,
1433
1433
  results: x,
1434
1434
  handleClose: b,
1435
- handleSearch: o
1435
+ handleSearch: u
1436
1436
  };
1437
- }, Rn = ({
1437
+ }, Sn = ({
1438
1438
  categories: l = [],
1439
- onCartClick: a,
1439
+ onCartClick: o,
1440
1440
  mainCategoryLabel: h = "Menu",
1441
1441
  logoLink: d = "https://www.everlywell.com",
1442
- hasSearch: w = !0,
1442
+ hasSearch: j = !0,
1443
1443
  onSearchClick: x,
1444
1444
  registrationUrl: m,
1445
- profileUrl: E = "https://secure.everlywell.com/login",
1446
- mobileBottomButtons: o = [],
1445
+ profileUrl: R = "https://secure.everlywell.com/login",
1446
+ mobileBottomButtons: u = [],
1447
1447
  numberOfCartItems: b = 0,
1448
1448
  linkComponent: s,
1449
1449
  onSearchCallback: p,
1450
- onLinkClick: j,
1450
+ onLinkClick: w,
1451
1451
  onCategoryOpen: c,
1452
- onMobileMenuOpen: P,
1453
- onBackToMainMenu: A,
1454
- onRegisterKitClick: W,
1455
- onProfileClick: H,
1456
- onLogoClick: S
1452
+ onMobileMenuOpen: L,
1453
+ onBackToMainMenu: I,
1454
+ onRegisterKitClick: $,
1455
+ onProfileClick: F,
1456
+ onLogoClick: S,
1457
+ shopAllProductsUrl: V,
1458
+ onShopAllProductsClick: Oe
1457
1459
  }) => {
1458
- var Ee, de, Re;
1459
- const [N, ve] = V(!1), [xe, J] = V(!1), [R, Y] = V(null), [q, ke] = V(0), [ge, ae] = V(!1), [$, z] = V(!1), {
1460
- query: G,
1461
- results: Z,
1462
- handleSearch: be
1463
- } = xn({
1464
- source: ft(l),
1460
+ var z, fe, pe;
1461
+ const [Pe, ge] = M(!1), [be, J] = M(!1), [y, N] = M(null), [oe, me] = M(0), [A, B] = M(!1), [Y, Ce] = M(!1), {
1462
+ query: je,
1463
+ results: q,
1464
+ handleSearch: we
1465
+ } = bn({
1466
+ source: xt(l),
1465
1467
  onSearchCallback: p,
1466
- isActive: xe
1467
- }), me = G && /* @__PURE__ */ t.jsxs(
1468
- L,
1469
- { gap: "6", direction: "column", children: [
1470
- Z.length > 0 ? /* @__PURE__ */ t.jsx(U, { color: "tints.uiGrey", children: `${Z.length} Results` }) : /* @__PURE__ */ t.jsx(
1471
- U,
1472
- { children: "We didn't find what you were looking for, click to shop all products." }
1468
+ isActive: be
1469
+ }), se = q.length > 0, ye = s || G, Ee = Le(V, !!s), Re = je && /* @__PURE__ */ t.jsxs(
1470
+ k,
1471
+ { gap: se ? "6" : 0, direction: "column", children: [
1472
+ se ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${q.length} Results` }) : /* @__PURE__ */ t.jsxs(
1473
+ k,
1474
+ { direction: "column", gap: "6", alignItems: "flex-start", children: [
1475
+ /* @__PURE__ */ t.jsx(
1476
+ Z,
1477
+ { color: "tints.uiGrey", children: "We didn't find what you were looking for." }
1478
+ ),
1479
+ /* @__PURE__ */ t.jsx(
1480
+ gt,
1481
+ {
1482
+ as: ye,
1483
+ onClick: Oe,
1484
+ _hover: { textDecoration: "none" },
1485
+ width: ["100%", null, null, "auto"],
1486
+ ...Ee,
1487
+ children: "Shop all products"
1488
+ }
1489
+ )
1490
+ ] }
1473
1491
  ),
1474
1492
  /* @__PURE__ */ t.jsx(
1475
- L,
1476
- {
1477
- gap: "6",
1478
- flexDirection: ["column", null, null, "row"],
1479
- justifyContent: [null, null, null, "flex-start"],
1480
- children: Array.from(
1481
- { length: Math.ceil(Z.length / 4) },
1482
- (u, O) => /* @__PURE__ */ t.jsx(
1483
- L,
1484
- { direction: "column", gap: "6", children: Z.slice(O * 4, (O + 1) * 4).map(
1485
- (k, D) => /* @__PURE__ */ t.jsx(
1486
- Me,
1487
- {
1488
- href: k.href,
1489
- label: k.label,
1490
- additionalContent: k == null ? void 0 : k.additionalContent,
1491
- linkComponent: s
1492
- },
1493
- `${k.label}-${D}`
1494
- )
1495
- ) },
1496
- O
1497
- )
1493
+ Zt,
1494
+ { columns: [1, 1, 1, 4], children: q.map(
1495
+ (i, H) => /* @__PURE__ */ t.jsx(
1496
+ Kt,
1497
+ { children: /* @__PURE__ */ t.jsx(
1498
+ ze,
1499
+ {
1500
+ href: i.href,
1501
+ label: i.label,
1502
+ additionalContent: i == null ? void 0 : i.additionalContent,
1503
+ linkComponent: s
1504
+ }
1505
+ ) },
1506
+ `${i.label}-${H}`
1498
1507
  )
1499
- }
1508
+ ) }
1500
1509
  )
1501
1510
  ] }
1502
- ), Ce = ze((u) => {
1503
- ke(u);
1504
- }, []), oe = () => {
1505
- ve(!1), Y(null);
1506
- }, we = (u) => {
1507
- Y(u);
1508
- }, je = (u) => {
1509
- ae(!0), J(!1), (u.sections || u.spotlightCards) && Y(u);
1510
- }, ye = () => {
1511
- ae(!1);
1511
+ ), De = Xe((i) => {
1512
+ me(i);
1513
+ }, []), _e = () => {
1514
+ ge(!1), N(null);
1515
+ }, ue = (i) => {
1516
+ N(i);
1517
+ }, ce = (i) => {
1518
+ B(!0), J(!1), (i.sections || i.spotlightCards) && N(i);
1519
+ }, Q = () => {
1520
+ B(!1);
1512
1521
  };
1513
- le(() => {
1514
- const u = (O) => {
1515
- z(O.detail.isHovering);
1522
+ ie(() => {
1523
+ const i = (H) => {
1524
+ Ce(H.detail.isHovering);
1516
1525
  };
1517
1526
  return window.addEventListener(
1518
- Ne,
1519
- u
1527
+ Ze,
1528
+ i
1520
1529
  ), () => {
1521
1530
  window.removeEventListener(
1522
- Ne,
1523
- u
1531
+ Ze,
1532
+ i
1524
1533
  );
1525
1534
  };
1526
- }, []), le(() => {
1527
- !ge && !$ && (Y(null), J(!1));
1528
- }, [ge, $]), le(() => {
1529
- let u = window.location.href;
1530
- const O = () => {
1531
- const D = window.location.href;
1532
- D !== u && (u = D, oe(), Y(null));
1533
- }, k = setInterval(O, 100);
1534
- return window.addEventListener("popstate", O), () => {
1535
- window.removeEventListener("popstate", O), clearInterval(k);
1535
+ }, []), ie(() => {
1536
+ !A && !Y && (N(null), J(!1));
1537
+ }, [A, Y]), ie(() => {
1538
+ let i = window.location.href;
1539
+ const H = () => {
1540
+ const O = window.location.href;
1541
+ O !== i && (i = O, _e(), N(null));
1542
+ }, U = setInterval(H, 100);
1543
+ return window.addEventListener("popstate", H), () => {
1544
+ window.removeEventListener("popstate", H), clearInterval(U);
1536
1545
  };
1537
1546
  }, []);
1538
- const Le = () => {
1539
- Y(null), A == null || A();
1540
- }, Oe = /* @__PURE__ */ t.jsx(
1547
+ const de = () => {
1548
+ N(null), I == null || I();
1549
+ }, ee = /* @__PURE__ */ t.jsx(
1541
1550
  t.Fragment,
1542
1551
  { children: l == null ? void 0 : l.map(
1543
- (u, O) => /* @__PURE__ */ t.jsx(
1544
- Te,
1552
+ (i, H) => /* @__PURE__ */ t.jsx(
1553
+ ke,
1545
1554
  {
1546
1555
  onMouseEnter: () => {
1547
- je(u), c == null || c(u.label);
1556
+ ce(i), c == null || c(i.label);
1548
1557
  },
1549
- onMouseLeave: ye,
1550
- isSelected: (R == null ? void 0 : R.label) === u.label,
1551
- ...u.buttonProps,
1552
- children: u.label
1558
+ onMouseLeave: Q,
1559
+ isSelected: (y == null ? void 0 : y.label) === i.label,
1560
+ ...i.buttonProps,
1561
+ children: i.label
1553
1562
  },
1554
- `${u.label}-${O}`
1563
+ `${i.label}-${H}`
1555
1564
  )
1556
1565
  ) }
1557
- ), se = (Ee = l.filter((u) => u.isMobileTopLink !== !1)) == null ? void 0 : Ee.map(
1558
- (u) => /* @__PURE__ */ t.jsx(
1559
- y,
1566
+ ), Ie = (z = l.filter((i) => i.isMobileTopLink !== !1)) == null ? void 0 : z.map(
1567
+ (i) => /* @__PURE__ */ t.jsx(
1568
+ E,
1560
1569
  {
1561
1570
  onClick: () => {
1562
- we(u), c == null || c(u.label);
1571
+ ue(i), c == null || c(i.label);
1563
1572
  },
1564
1573
  children: /* @__PURE__ */ t.jsx(
1565
- Me,
1574
+ ze,
1566
1575
  {
1567
- label: u.label,
1576
+ label: i.label,
1568
1577
  role: "link",
1569
- additionalContent: u.additionalContent,
1578
+ additionalContent: i.additionalContent,
1570
1579
  mainTextFontSize: "3xl",
1571
1580
  linkComponent: s
1572
1581
  }
1573
1582
  )
1574
1583
  },
1575
- u.label
1584
+ i.label
1576
1585
  )
1577
1586
  );
1578
- ft(l);
1579
- const ue = /* @__PURE__ */ t.jsxs(
1587
+ xt(l);
1588
+ const Se = /* @__PURE__ */ t.jsxs(
1580
1589
  t.Fragment,
1581
1590
  { children: [
1582
1591
  /* @__PURE__ */ t.jsx(
1583
- Te,
1592
+ ke,
1584
1593
  {
1585
- as: X,
1586
- href: E,
1594
+ as: G,
1595
+ href: R,
1587
1596
  width: "100%",
1588
1597
  backgroundColor: "tints.cream",
1589
- onClick: H,
1598
+ onClick: F,
1590
1599
  children: /* @__PURE__ */ t.jsxs(
1591
- L,
1600
+ k,
1592
1601
  { gap: "2", children: [
1593
1602
  "My Everly",
1594
- /* @__PURE__ */ t.jsx(re, { as: at, size: 24 })
1603
+ /* @__PURE__ */ t.jsx(le, { as: ct, size: 24 })
1595
1604
  ] }
1596
1605
  )
1597
1606
  },
1598
1607
  "my-everly"
1599
1608
  ),
1600
1609
  /* @__PURE__ */ t.jsx(
1601
- Te,
1610
+ ke,
1602
1611
  {
1603
- as: X,
1612
+ as: G,
1604
1613
  width: "100%",
1605
1614
  href: m,
1606
1615
  backgroundColor: "tints.cream",
1607
- onClick: W,
1616
+ onClick: $,
1608
1617
  children: /* @__PURE__ */ t.jsxs(
1609
- L,
1618
+ k,
1610
1619
  { gap: "2", children: [
1611
1620
  "Register kit",
1612
- /* @__PURE__ */ t.jsx(re, { as: an, size: 24 })
1621
+ /* @__PURE__ */ t.jsx(le, { as: sn, size: 24 })
1613
1622
  ] }
1614
1623
  )
1615
1624
  },
1616
1625
  "register-kit"
1617
1626
  )
1618
1627
  ] }
1619
- ), Q = /* @__PURE__ */ t.jsxs(
1620
- L,
1628
+ ), Fe = /* @__PURE__ */ t.jsxs(
1629
+ k,
1621
1630
  { gap: "2", flexDirection: "column", children: [
1622
- o,
1623
- ue
1631
+ u,
1632
+ Se
1624
1633
  ] }
1625
- ), ce = R ? /* @__PURE__ */ t.jsx(
1626
- L,
1627
- { direction: ["column", null, null, "row"], gap: "8", children: (de = R == null ? void 0 : R.sections) == null ? void 0 : de.map((u, O) => {
1628
- const k = [];
1629
- for (let D = 0; D < u.links.length; D += 3)
1630
- k.push(u.links.slice(D, D + 3));
1634
+ ), Ae = y ? /* @__PURE__ */ t.jsx(
1635
+ k,
1636
+ { direction: ["column", null, null, "row"], gap: "8", children: (fe = y == null ? void 0 : y.sections) == null ? void 0 : fe.map((i, H) => {
1637
+ const U = [];
1638
+ for (let O = 0; O < i.links.length; O += 3)
1639
+ U.push(i.links.slice(O, O + 3));
1631
1640
  return /* @__PURE__ */ t.jsxs(
1632
- y,
1641
+ E,
1633
1642
  { children: [
1634
1643
  /* @__PURE__ */ t.jsx(
1635
- U,
1644
+ Z,
1636
1645
  {
1637
1646
  fontSize: "md",
1638
1647
  color: "tints.uiGrey",
1639
1648
  marginBottom: [0, null, null, 6],
1640
- children: u.title
1649
+ children: i.title
1641
1650
  }
1642
1651
  ),
1643
1652
  /* @__PURE__ */ t.jsx(
1644
- L,
1653
+ k,
1645
1654
  {
1646
1655
  flexDirection: ["column", null, null, "row"],
1647
1656
  gap: [null, null, null, 8],
1648
- children: k == null ? void 0 : k.map(
1649
- (D, _e) => /* @__PURE__ */ t.jsx(
1650
- L,
1657
+ children: U == null ? void 0 : U.map(
1658
+ (O, He) => /* @__PURE__ */ t.jsx(
1659
+ k,
1651
1660
  {
1652
1661
  flexDirection: ["column"],
1653
1662
  gap: [null, null, null, 5],
1654
1663
  marginLeft: [null, null, null, -2],
1655
- children: D == null ? void 0 : D.map(
1656
- (B) => /* @__PURE__ */ t.jsx(
1657
- Me,
1664
+ children: O == null ? void 0 : O.map(
1665
+ (K) => /* @__PURE__ */ t.jsx(
1666
+ ze,
1658
1667
  {
1659
- label: B.label,
1660
- href: B.href,
1661
- additionalContent: B.additionalContent,
1668
+ label: K.label,
1669
+ href: K.href,
1670
+ additionalContent: K.additionalContent,
1662
1671
  linkComponent: s,
1663
- onClick: () => j == null ? void 0 : j(B.label)
1672
+ onClick: () => w == null ? void 0 : w(K.label)
1664
1673
  },
1665
- B.label
1674
+ K.label
1666
1675
  )
1667
1676
  )
1668
1677
  },
1669
- _e
1678
+ He
1670
1679
  )
1671
1680
  )
1672
1681
  }
1673
1682
  )
1674
1683
  ] },
1675
- `${u.title}-${O}`
1684
+ `${i.title}-${H}`
1676
1685
  );
1677
1686
  }) }
1678
- ) : null, ee = R != null && R.spotlightCards ? (Re = R.spotlightCards) == null ? void 0 : Re.map(
1679
- (u) => /* @__PURE__ */ t.jsx(cn, { ...u }, u.title)
1680
- ) : /* @__PURE__ */ t.jsx(y, {});
1687
+ ) : null, te = y != null && y.spotlightCards ? (pe = y.spotlightCards) == null ? void 0 : pe.map(
1688
+ (i) => /* @__PURE__ */ t.jsx(fn, { ...i }, i.title)
1689
+ ) : /* @__PURE__ */ t.jsx(E, {});
1681
1690
  return /* @__PURE__ */ t.jsxs(
1682
1691
  t.Fragment,
1683
1692
  { children: [
1684
1693
  /* @__PURE__ */ t.jsx(
1685
- fn,
1694
+ hn,
1686
1695
  {
1687
- desktopTopButtons: Oe,
1696
+ desktopTopButtons: ee,
1688
1697
  kitRegistrationElement: /* @__PURE__ */ t.jsx(
1689
- Te,
1698
+ ke,
1690
1699
  {
1691
- as: X,
1700
+ as: G,
1692
1701
  href: m,
1693
- onClick: W,
1702
+ onClick: $,
1694
1703
  backgroundColor: "tints.cream",
1695
1704
  children: "Register Kit"
1696
1705
  }
1697
1706
  ),
1698
1707
  profileElement: /* @__PURE__ */ t.jsx(
1699
- X,
1700
- { href: E, "aria-label": "login", onClick: H, children: /* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(re, { as: at }), "aria-label": "Profile" }) }
1708
+ G,
1709
+ { href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(le, { as: ct }), "aria-label": "Profile" }) }
1701
1710
  ),
1702
1711
  cartElement: /* @__PURE__ */ t.jsx(
1703
- pn,
1712
+ vn,
1704
1713
  {
1705
1714
  "aria-label": "Cart",
1706
1715
  count: b,
1707
- onClick: a
1716
+ onClick: o
1708
1717
  }
1709
1718
  ),
1710
1719
  onSearchClick: () => {
1711
1720
  J(!0), x == null || x();
1712
1721
  },
1713
1722
  onMenuClick: () => {
1714
- ve(!0), P == null || P();
1723
+ ge(!0), L == null || L();
1715
1724
  },
1716
- hasSearch: w,
1725
+ hasSearch: j,
1717
1726
  logoLink: d,
1718
- onHeightChange: Ce,
1727
+ onHeightChange: De,
1719
1728
  linkComponent: s,
1720
1729
  onLogoClick: S
1721
1730
  }
1722
1731
  ),
1723
1732
  /* @__PURE__ */ t.jsx(
1724
- Be,
1733
+ Ue,
1725
1734
  {
1726
- isOpen: N,
1727
- onClose: oe,
1735
+ isOpen: Pe,
1736
+ onClose: _e,
1728
1737
  title: h,
1729
- navDrawerLinks: se,
1730
- bottomNavButtons: Q,
1738
+ navDrawerLinks: Ie,
1739
+ bottomNavButtons: Fe,
1731
1740
  hasBackButton: !1,
1732
- navHeight: q
1741
+ navHeight: oe
1733
1742
  }
1734
1743
  ),
1735
1744
  /* @__PURE__ */ t.jsx(
1736
- Be,
1745
+ Ue,
1737
1746
  {
1738
- isOpen: !!R,
1739
- onClose: () => Y(null),
1740
- title: (R == null ? void 0 : R.label) || "",
1741
- navDrawerLinks: ce,
1742
- onBackClick: Le,
1743
- spotlightCards: ee,
1744
- hasOnlySpotlightCards: R == null ? void 0 : R.hasOnlySpotlightCards,
1745
- navHeight: q,
1746
- bottomButton: R == null ? void 0 : R.bottomButton
1747
+ isOpen: !!y,
1748
+ onClose: () => N(null),
1749
+ title: (y == null ? void 0 : y.label) || "",
1750
+ navDrawerLinks: Ae,
1751
+ onBackClick: de,
1752
+ spotlightCards: te,
1753
+ hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
1754
+ navHeight: oe,
1755
+ bottomButton: y == null ? void 0 : y.bottomButton
1747
1756
  }
1748
1757
  ),
1749
1758
  /* @__PURE__ */ t.jsx(
1750
- Be,
1759
+ Ue,
1751
1760
  {
1752
- isOpen: xe,
1761
+ isOpen: be,
1753
1762
  onClose: () => J(!1),
1754
1763
  title: "Search",
1755
- navHeight: q,
1756
- navDrawerLinks: me,
1757
- onSearch: be,
1764
+ navHeight: oe,
1765
+ navDrawerLinks: Re,
1766
+ onSearch: we,
1758
1767
  hasSearch: !0,
1759
1768
  hasBackButton: !1
1760
1769
  }
@@ -1763,15 +1772,15 @@ const We = 60, ct = 6, un = (l) => {
1763
1772
  );
1764
1773
  };
1765
1774
  export {
1766
- pn as BasketButton,
1767
- yn as CategoryLabel,
1768
- Te as NavButton,
1769
- En as NavSkeleton,
1770
- Be as NavbarDrawer,
1771
- Me as NavbarDrawerLink,
1772
- Rn as NavigationBar,
1773
- cn as SpotlightCard,
1774
- jn as Stepper,
1775
- ie as TopNavIconButton,
1776
- fn as TopNavigation
1775
+ vn as BasketButton,
1776
+ Rn as CategoryLabel,
1777
+ ke as NavButton,
1778
+ _n as NavSkeleton,
1779
+ Ue as NavbarDrawer,
1780
+ ze as NavbarDrawerLink,
1781
+ Sn as NavigationBar,
1782
+ fn as SpotlightCard,
1783
+ En as Stepper,
1784
+ ae as TopNavIconButton,
1785
+ hn as TopNavigation
1777
1786
  };