@everlywell/consumer-ui 1.28.1 → 1.29.1

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 Wt, Box as E, Stepper as Bt, Icon as le, Flex as L, Text as Z, Link as G, Button as gt, Image as Mt, IconButton as Vt, VStack as Nt, Skeleton as Ne, HStack as st, SkeletonCircle as Te, Drawer as Yt, DrawerOverlay as zt, DrawerContent as Ut, DrawerHeader as Gt, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
2
+ import Ke, { useEffect as ie, forwardRef as bt, useRef as Jt, useState as M, useCallback as Xe } from "react";
3
+ import { Text as qt, useBreakpointValue as mt, InputGroup as Qt, Input as en, InputRightElement as tn, Icon as nn } from "@chakra-ui/react";
4
+ import { CaretRight as ut, MagnifyingGlass as Ct, 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"), S = 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 = S && e[S] || 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;
55
- function S(e) {
54
+ var F = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function T(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,29 +69,29 @@ 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
- 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")
94
+ if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
95
  return e.displayName || e.name || null;
96
96
  if (typeof e == "string")
97
97
  return e;
@@ -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 && T("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]; )
268
- T--;
269
- for (; _ >= 1 && T >= 0; _--, T--)
270
- if (f[_] !== I[T]) {
271
- if (_ !== 1 || T !== 1)
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, k = P.length - 1; _ >= 1 && k >= 0 && f[_] !== P[k]; )
268
+ k--;
269
+ for (; _ >= 1 && k >= 0; _--, k--)
270
+ if (f[_] !== P[k]) {
271
+ if (_ !== 1 || k !== 1)
272
272
  do
273
- if (_--, T--, T < 0 || f[_] !== I[T]) {
274
- var M = `
273
+ if (_--, k--, k < 0 || f[_] !== P[k]) {
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
- while (_ >= 1 && T >= 0);
278
+ while (_ >= 1 && k >= 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,104 +307,104 @@ 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), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", r, v, typeof f), i(null)), f instanceof Error && !(f.message in fe) && (fe[f.message] = !0, i(g), T("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 T("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, jt = {
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 wt(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;
387
387
  }
388
388
  return e.ref !== void 0;
389
389
  }
390
- function wt(e) {
391
- if (k.call(e, "key")) {
390
+ function yt(e) {
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 Et(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] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(he.current.type), e.ref), $e[r] = !0);
402
402
  }
403
403
  }
404
- function yt(e, n) {
404
+ function Rt(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, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", 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 _t(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, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", 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 St = 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 Tt(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), yt(n) && (qe(n.key), f = "" + n.key), wt(n) && (P = n.ref, Et(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) && !jt.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) {
467
- var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- f && yt(v, T), I && Et(v, T);
466
+ if (f || P) {
467
+ var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
+ f && Rt(v, k), P && _t(v, k);
469
469
  }
470
- return Rt(e, f, I, g, i, fe.current, v);
470
+ return St(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 kt(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 Lt(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 = Lt(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), T('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 Ot(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);
574
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
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
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
575
575
  }
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.");
576
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && T("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 Pt(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), T("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), T("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 = kt(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, T("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);
604
- if (T == null)
605
- return T;
603
+ var k = Tt(e, n, r, g, C);
604
+ if (k == null)
605
+ return k;
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
- 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.");
615
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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(": ..., ") + ": ...}" : "{}";
625
- S(`A props object containing a "key" prop is being spread into JSX:
619
+ if (z.call(n, "key")) {
620
+ var X = A(e), D = Object.keys(n).filter(function($t) {
621
+ return $t !== "key";
622
+ }), Ve = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ if (!at[X + Ve]) {
624
+ var Ht = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
625
+ T(`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, Ht, X), at[X + Ve] = !0;
631
631
  }
632
632
  }
633
- return e === d ? Lt(T) : kt(T), T;
633
+ return e === d ? Pt(k) : Ot(k), k;
634
634
  }
635
635
  }
636
- function Ot(e, n, r) {
637
- return rt(e, n, r, !0);
636
+ function Dt(e, n, r) {
637
+ return ot(e, n, r, !0);
638
638
  }
639
- function Pt(e, n, r) {
640
- return rt(e, n, r, !1);
639
+ function It(e, n, r) {
640
+ return ot(e, n, r, !1);
641
641
  }
642
- var Dt = Pt, It = Ot;
643
- he.Fragment = d, he.jsx = Dt, he.jsxs = It;
644
- }()), he;
642
+ var Ft = It, At = Dt;
643
+ xe.Fragment = d, xe.jsx = Ft, xe.jsxs = At;
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 } = Wt({
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
+ Bt,
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 S = `calc(100% - ((${Ye * (d.length - 1)}px) - (${d.length - 1} * ${ht * 2}px)))`;
677
+ return b ? c = S : (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
+ qt,
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",
@@ -767,15 +767,15 @@ const We = 60, ct = 6, un = (l) => {
767
767
  L,
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,23 +831,28 @@ 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), S = mt({
851
+ base: !1,
852
+ tablet: !1,
853
+ largeTablet: !1,
854
+ desktop: !0
855
+ });
851
856
  return /* @__PURE__ */ t.jsxs(
852
857
  L,
853
858
  {
@@ -870,11 +875,11 @@ const We = 60, ct = 6, un = (l) => {
870
875
  border: "1px solid",
871
876
  borderColor: "tints.white"
872
877
  },
873
- as: j,
874
- ...c,
878
+ as: S ? L : w,
879
+ ...S ? {} : c,
875
880
  children: [
876
881
  /* @__PURE__ */ t.jsx(
877
- y,
882
+ E,
878
883
  {
879
884
  width: ["72px", null, null, "100%"],
880
885
  height: ["100%"],
@@ -890,7 +895,7 @@ const We = 60, ct = 6, un = (l) => {
890
895
  "data-testid": "spotlight-card-image"
891
896
  }
892
897
  ) : /* @__PURE__ */ t.jsx(
893
- y,
898
+ E,
894
899
  {
895
900
  height: [b, null, null, s],
896
901
  overflow: "hidden",
@@ -914,27 +919,27 @@ const We = 60, ct = 6, un = (l) => {
914
919
  backdropFilter: [null, null, null, "blur(8px)"],
915
920
  children: [
916
921
  /* @__PURE__ */ t.jsxs(
917
- y,
922
+ E,
918
923
  { children: [
919
924
  /* @__PURE__ */ t.jsx(
920
- U,
925
+ Z,
921
926
  { fontSize: "lg", fontWeight: "medium", color: "tints.black", children: l }
922
927
  ),
923
928
  /* @__PURE__ */ t.jsx(
924
- U,
925
- { fontSize: "sm", color: "tints.black", children: a }
929
+ Z,
930
+ { fontSize: "sm", color: "tints.black", children: o }
926
931
  )
927
932
  ] }
928
933
  ),
929
- /* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: w })
934
+ S ? /* @__PURE__ */ t.jsx(E, { children: j }) : null
930
935
  ]
931
936
  }
932
937
  )
933
938
  ]
934
939
  }
935
940
  );
936
- }, ie = (l) => /* @__PURE__ */ t.jsx(
937
- Bt,
941
+ }, ae = (l) => /* @__PURE__ */ t.jsx(
942
+ Vt,
938
943
  {
939
944
  size: "sm",
940
945
  width: ["40px", null, null, "46px"],
@@ -954,7 +959,7 @@ const We = 60, ct = 6, un = (l) => {
954
959
  },
955
960
  ...l
956
961
  }
957
- ), dn = () => /* @__PURE__ */ t.jsx(
962
+ ), pn = () => /* @__PURE__ */ t.jsx(
958
963
  "svg",
959
964
  {
960
965
  width: "116",
@@ -978,38 +983,38 @@ const We = 60, ct = 6, un = (l) => {
978
983
  ) }
979
984
  )
980
985
  }
981
- ), fn = ({
986
+ ), hn = ({
982
987
  desktopTopButtons: l,
983
- kitRegistrationElement: a,
988
+ kitRegistrationElement: o,
984
989
  profileElement: h,
985
990
  cartElement: d,
986
- onSearchClick: w,
991
+ onSearchClick: j,
987
992
  onMenuClick: x,
988
993
  hasSearch: m = !1,
989
- logoLink: E = "https://www.everlywell.com",
990
- onHeightChange: o,
994
+ logoLink: R = "https://www.everlywell.com",
995
+ onHeightChange: u,
991
996
  linkComponent: b,
992
997
  onLogoClick: s
993
998
  }) => {
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);
999
+ const p = Jt(null), [w, c] = M(0), S = 100, I = Xe(() => {
1000
+ if (p.current && u) {
1001
+ const $ = Date.now();
1002
+ if ($ - w > S) {
1003
+ const F = p.current.getBoundingClientRect().height;
1004
+ u(F), c($);
1000
1005
  }
1001
1006
  }
1002
- }, [o, j]);
1003
- return le(() => {
1004
- A();
1005
- const W = new ResizeObserver(() => {
1006
- A();
1007
+ }, [u, w]);
1008
+ return ie(() => {
1009
+ I();
1010
+ const $ = new ResizeObserver(() => {
1011
+ I();
1007
1012
  });
1008
- return p.current && W.observe(p.current), () => {
1009
- W.disconnect();
1013
+ return p.current && $.observe(p.current), () => {
1014
+ $.disconnect();
1010
1015
  };
1011
- }, [A]), /* @__PURE__ */ t.jsx(
1012
- y,
1016
+ }, [I]), /* @__PURE__ */ t.jsx(
1017
+ E,
1013
1018
  {
1014
1019
  ref: p,
1015
1020
  paddingY: "4",
@@ -1027,13 +1032,13 @@ const We = 60, ct = 6, un = (l) => {
1027
1032
  L,
1028
1033
  { alignItems: "center", gap: "5", children: [
1029
1034
  /* @__PURE__ */ t.jsx(
1030
- y,
1035
+ E,
1031
1036
  {
1032
1037
  "aria-label": "Go to homepage",
1033
1038
  onClick: s,
1034
- as: b || X,
1035
- ...Ue(E, !!b),
1036
- children: /* @__PURE__ */ t.jsx(dn, {})
1039
+ as: b || G,
1040
+ ...Le(R, !!b),
1041
+ children: /* @__PURE__ */ t.jsx(pn, {})
1037
1042
  }
1038
1043
  ),
1039
1044
  /* @__PURE__ */ t.jsx(
@@ -1046,46 +1051,46 @@ const We = 60, ct = 6, un = (l) => {
1046
1051
  L,
1047
1052
  { alignItems: "center", gap: "2", children: [
1048
1053
  /* @__PURE__ */ t.jsx(
1049
- y,
1050
- { display: ["none", null, null, "block"], children: a }
1054
+ E,
1055
+ { display: ["none", null, null, "block"], children: o }
1051
1056
  ),
1052
1057
  m ? /* @__PURE__ */ t.jsx(
1053
- ie,
1058
+ ae,
1054
1059
  {
1055
1060
  "aria-label": "Search",
1056
- icon: /* @__PURE__ */ t.jsx(re, { as: ht }),
1057
- onClick: w
1061
+ icon: /* @__PURE__ */ t.jsx(le, { as: Ct }),
1062
+ onClick: j
1058
1063
  }
1059
1064
  ) : null,
1060
1065
  d,
1061
1066
  /* @__PURE__ */ t.jsx(
1062
- y,
1067
+ E,
1063
1068
  { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1064
- ie,
1069
+ ae,
1065
1070
  {
1066
- icon: /* @__PURE__ */ t.jsx(tn, {}),
1071
+ icon: /* @__PURE__ */ t.jsx(rn, {}),
1067
1072
  "aria-label": "menu",
1068
1073
  "data-testid": "menu-button",
1069
1074
  onClick: x
1070
1075
  }
1071
1076
  ) }
1072
1077
  ),
1073
- /* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: h })
1078
+ /* @__PURE__ */ t.jsx(E, { display: ["none", null, null, "block"], children: h })
1074
1079
  ] }
1075
1080
  )
1076
1081
  ] }
1077
1082
  )
1078
1083
  }
1079
1084
  );
1080
- }, pn = ({
1085
+ }, vn = ({
1081
1086
  count: l = 0,
1082
- ...a
1087
+ ...o
1083
1088
  }) => /* @__PURE__ */ t.jsxs(
1084
- y,
1089
+ E,
1085
1090
  { position: "relative", display: "inline-block", children: [
1086
- /* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(nn, {}), ...a }),
1091
+ /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...o }),
1087
1092
  l > 0 && /* @__PURE__ */ t.jsx(
1088
- y,
1093
+ E,
1089
1094
  {
1090
1095
  display: "flex",
1091
1096
  minWidth: "20px",
@@ -1106,97 +1111,97 @@ const We = 60, ct = 6, un = (l) => {
1106
1111
  }
1107
1112
  )
1108
1113
  ] }
1109
- ), En = ({
1114
+ ), _n = ({
1110
1115
  numLinks: l = 5,
1111
- showPromoButton: a = !0
1116
+ showPromoButton: o = !0
1112
1117
  }) => /* @__PURE__ */ t.jsx(
1113
- Vt,
1118
+ Nt,
1114
1119
  { spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
1115
- y,
1120
+ E,
1116
1121
  { paddingY: 4, paddingX: 6, borderBottomWidth: "1px", children: /* @__PURE__ */ t.jsxs(
1117
1122
  L,
1118
1123
  { justify: "space-between", align: "center", children: [
1119
- /* @__PURE__ */ t.jsx($e, { w: "120px", h: "48px" }),
1124
+ /* @__PURE__ */ t.jsx(Ne, { w: "120px", h: "48px" }),
1120
1125
  /* @__PURE__ */ t.jsxs(
1121
- lt,
1126
+ st,
1122
1127
  { spacing: 8, marginLeft: 12, children: [
1123
1128
  Array.from({ length: l }).map(
1124
- (h, d) => /* @__PURE__ */ t.jsx($e, { width: "90px", height: "48px" }, d)
1129
+ (h, d) => /* @__PURE__ */ t.jsx(Ne, { width: "90px", height: "48px" }, d)
1125
1130
  ),
1126
- a && /* @__PURE__ */ t.jsx($e, { width: "110px", height: "48px", borderRadius: "full" })
1131
+ o && /* @__PURE__ */ t.jsx(Ne, { width: "110px", height: "48px", borderRadius: "full" })
1127
1132
  ] }
1128
1133
  ),
1129
1134
  /* @__PURE__ */ t.jsxs(
1130
- lt,
1135
+ st,
1131
1136
  { spacing: 4, ml: "auto", children: [
1132
- /* @__PURE__ */ t.jsx(Se, { width: "120px", height: "48px" }),
1137
+ /* @__PURE__ */ t.jsx(Te, { width: "120px", height: "48px" }),
1133
1138
  " ",
1134
- /* @__PURE__ */ t.jsx(Se, { width: "48px", height: "48px" }),
1139
+ /* @__PURE__ */ t.jsx(Te, { width: "48px", height: "48px" }),
1135
1140
  " ",
1136
- /* @__PURE__ */ t.jsx(Se, { width: "48px", height: "48px" }),
1141
+ /* @__PURE__ */ t.jsx(Te, { width: "48px", height: "48px" }),
1137
1142
  " ",
1138
- /* @__PURE__ */ t.jsx(Se, { width: "48px", height: "48px" }),
1143
+ /* @__PURE__ */ t.jsx(Te, { width: "48px", height: "48px" }),
1139
1144
  " "
1140
1145
  ] }
1141
1146
  )
1142
1147
  ] }
1143
1148
  ) }
1144
1149
  ) }
1145
- ), hn = (l, a) => {
1150
+ ), xn = (l, o) => {
1146
1151
  let h;
1147
1152
  return (...d) => {
1148
1153
  h && clearTimeout(h), h = setTimeout(() => {
1149
1154
  l(...d);
1150
- }, a);
1155
+ }, o);
1151
1156
  };
1152
- }, Ne = "nav-drawer-hover", dt = (l) => {
1157
+ }, Ze = "nav-drawer-hover", vt = (l) => {
1153
1158
  window.dispatchEvent(
1154
- new CustomEvent(Ne, {
1159
+ new CustomEvent(Ze, {
1155
1160
  detail: { isHovering: l },
1156
1161
  bubbles: !0,
1157
1162
  cancelable: !0
1158
1163
  })
1159
1164
  );
1160
- }, vn = (l = !1, a = !1, h = !1) => l || !a ? "column" : h ? "row" : "row-reverse", Be = ({
1165
+ }, gn = (l = !1, o = !1, h = !1) => l || !o ? "column" : h ? "row" : "row-reverse", Ue = ({
1161
1166
  isOpen: l = !1,
1162
- onClose: a,
1167
+ onClose: o,
1163
1168
  title: h,
1164
1169
  navDrawerLinks: d,
1165
- bottomNavButtons: w,
1170
+ bottomNavButtons: j,
1166
1171
  spotlightCards: x,
1167
1172
  bottomButton: m,
1168
- hasBackButton: E = !0,
1169
- onBackClick: o,
1173
+ hasBackButton: R = !0,
1174
+ onBackClick: u,
1170
1175
  hasOnlySpotlightCards: b = !1,
1171
1176
  navHeight: s,
1172
1177
  hasSearch: p = !1,
1173
- onSearch: j = () => {
1178
+ onSearch: w = () => {
1174
1179
  }
1175
1180
  }) => {
1176
- const c = Xt({
1181
+ const c = mt({
1177
1182
  base: !1,
1178
1183
  tablet: !1,
1179
1184
  largeTablet: !1,
1180
1185
  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();
1186
+ }), S = c ? "top" : "left", [I, $] = M(0), F = () => {
1187
+ $((V) => V + 1);
1188
+ }, T = Xe(
1189
+ xn((V) => {
1190
+ w(V), F();
1186
1191
  }, 100),
1187
1192
  []
1188
1193
  );
1189
1194
  return /* @__PURE__ */ t.jsxs(
1190
- Nt,
1195
+ Yt,
1191
1196
  {
1192
1197
  isOpen: l,
1193
- onClose: a,
1194
- placement: P,
1198
+ onClose: o,
1199
+ placement: S,
1195
1200
  blockScrollOnMount: !1,
1196
1201
  autoFocus: !1,
1197
1202
  children: [
1198
1203
  /* @__PURE__ */ t.jsx(
1199
- Yt,
1204
+ zt,
1200
1205
  {
1201
1206
  backgroundColor: "tints.black",
1202
1207
  top: ["0", null, null, s ? `${s}px` : null],
@@ -1214,13 +1219,13 @@ const We = 60, ct = 6, un = (l) => {
1214
1219
  }
1215
1220
  ),
1216
1221
  /* @__PURE__ */ t.jsxs(
1217
- zt,
1222
+ Ut,
1218
1223
  {
1219
1224
  onMouseEnter: () => {
1220
- !p && c && dt(!0);
1225
+ !p && c && vt(!0);
1221
1226
  },
1222
1227
  onMouseLeave: () => {
1223
- !p && c && dt(!1);
1228
+ !p && c && vt(!1);
1224
1229
  },
1225
1230
  paddingTop: [4, null, null, s ? `${s + 24}px` : null],
1226
1231
  paddingX: [4, null, null, 12],
@@ -1231,7 +1236,7 @@ const We = 60, ct = 6, un = (l) => {
1231
1236
  className: "navbar-drawer-content-container",
1232
1237
  children: [
1233
1238
  !p && c ? null : /* @__PURE__ */ t.jsxs(
1234
- Ut,
1239
+ Gt,
1235
1240
  {
1236
1241
  padding: "0",
1237
1242
  flexDirection: p ? "column" : "row",
@@ -1244,25 +1249,25 @@ const We = 60, ct = 6, un = (l) => {
1244
1249
  justifyContent: "space-between",
1245
1250
  alignItems: "center",
1246
1251
  children: [
1247
- E ? /* @__PURE__ */ t.jsx(
1248
- ie,
1252
+ R ? /* @__PURE__ */ t.jsx(
1253
+ ae,
1249
1254
  {
1250
- icon: /* @__PURE__ */ t.jsx(rn, {}),
1255
+ icon: /* @__PURE__ */ t.jsx(an, {}),
1251
1256
  onClick: () => {
1252
- o && o(), a();
1257
+ u && u(), o();
1253
1258
  },
1254
1259
  "aria-label": "Back"
1255
1260
  }
1256
1261
  ) : null,
1257
1262
  /* @__PURE__ */ t.jsx(
1258
- U,
1263
+ Z,
1259
1264
  { color: "tints.uiGrey", fontSize: ["xl", null, null, "lg"], children: h }
1260
1265
  ),
1261
1266
  /* @__PURE__ */ t.jsx(
1262
- ie,
1267
+ ae,
1263
1268
  {
1264
- icon: /* @__PURE__ */ t.jsx(ln, {}),
1265
- onClick: a,
1269
+ icon: /* @__PURE__ */ t.jsx(on, {}),
1270
+ onClick: o,
1266
1271
  "aria-label": "Close"
1267
1272
  }
1268
1273
  )
@@ -1270,13 +1275,13 @@ const We = 60, ct = 6, un = (l) => {
1270
1275
  }
1271
1276
  ),
1272
1277
  p && /* @__PURE__ */ t.jsxs(
1273
- Jt,
1278
+ Qt,
1274
1279
  { width: "100%", children: [
1275
1280
  /* @__PURE__ */ t.jsx(
1276
- qt,
1281
+ en,
1277
1282
  {
1278
- onChange: (N) => {
1279
- S(N.target.value);
1283
+ onChange: (V) => {
1284
+ T(V.target.value);
1280
1285
  },
1281
1286
  placeholder: "Search",
1282
1287
  autoFocus: !0,
@@ -1285,8 +1290,8 @@ const We = 60, ct = 6, un = (l) => {
1285
1290
  }
1286
1291
  ),
1287
1292
  /* @__PURE__ */ t.jsx(
1288
- Qt,
1289
- { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(en, { as: ht, color: "gray.500" }) }
1293
+ tn,
1294
+ { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(nn, { as: Ct, color: "gray.500" }) }
1290
1295
  )
1291
1296
  ] }
1292
1297
  )
@@ -1294,13 +1299,13 @@ const We = 60, ct = 6, un = (l) => {
1294
1299
  }
1295
1300
  ),
1296
1301
  /* @__PURE__ */ t.jsx(
1297
- Gt,
1302
+ Zt,
1298
1303
  {
1299
1304
  paddingX: "0",
1300
1305
  paddingBottom: [6, null, null, 4],
1301
1306
  "data-testid": `navbar-drawer-body-${h.toLowerCase()}`,
1302
1307
  children: /* @__PURE__ */ t.jsx(
1303
- ot.div,
1308
+ dt.div,
1304
1309
  { ...c ? {
1305
1310
  initial: { opacity: 0, y: 0 },
1306
1311
  animate: { opacity: 1, y: 0 },
@@ -1314,7 +1319,7 @@ const We = 60, ct = 6, un = (l) => {
1314
1319
  }
1315
1320
  }
1316
1321
  } : {}, children: /* @__PURE__ */ t.jsxs(
1317
- ot.div,
1322
+ dt.div,
1318
1323
  {
1319
1324
  ...c ? {
1320
1325
  initial: { opacity: 0, y: -5 },
@@ -1333,7 +1338,7 @@ const We = 60, ct = 6, un = (l) => {
1333
1338
  } : {},
1334
1339
  style: {
1335
1340
  display: "flex",
1336
- flexDirection: vn(
1341
+ flexDirection: gn(
1337
1342
  b,
1338
1343
  c,
1339
1344
  p
@@ -1343,7 +1348,7 @@ const We = 60, ct = 6, un = (l) => {
1343
1348
  },
1344
1349
  children: [
1345
1350
  x ? /* @__PURE__ */ t.jsx(
1346
- y,
1351
+ E,
1347
1352
  {
1348
1353
  gap: "6",
1349
1354
  display: "flex",
@@ -1366,10 +1371,10 @@ const We = 60, ct = 6, un = (l) => {
1366
1371
  gap: "6",
1367
1372
  width: ["100%", null, null, "auto"],
1368
1373
  children: [
1369
- d ? /* @__PURE__ */ t.jsx(y, { children: d }) : null,
1370
- w && !c ? /* @__PURE__ */ t.jsx(y, { children: w }) : null,
1374
+ d ? /* @__PURE__ */ t.jsx(E, { children: d }) : null,
1375
+ j && !c ? /* @__PURE__ */ t.jsx(E, { children: j }) : null,
1371
1376
  m ? /* @__PURE__ */ t.jsx(
1372
- y,
1377
+ E,
1373
1378
  {
1374
1379
  width: ["100%"],
1375
1380
  position: [null, null, null, "absolute"],
@@ -1382,7 +1387,7 @@ const We = 60, ct = 6, un = (l) => {
1382
1387
  )
1383
1388
  ]
1384
1389
  },
1385
- A
1390
+ I
1386
1391
  ) }
1387
1392
  )
1388
1393
  }
@@ -1393,251 +1398,260 @@ const We = 60, ct = 6, un = (l) => {
1393
1398
  ]
1394
1399
  }
1395
1400
  );
1396
- }, ft = (l) => {
1397
- const a = /* @__PURE__ */ new Set();
1401
+ }, xt = (l) => {
1402
+ const o = /* @__PURE__ */ new Set();
1398
1403
  return l.reduce((h, d) => {
1399
1404
  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];
1405
+ const j = ((x = d.sections) == null ? void 0 : x.reduce((m, R) => {
1406
+ const u = R.links.filter((b) => o.has(b.label) || b.isSearchable !== !0 ? !1 : (o.add(b.label), !0));
1407
+ return [...m, ...u];
1403
1408
  }, [])) ?? [];
1404
- return [...h, ...w];
1409
+ return [...h, ...j];
1405
1410
  }, []);
1406
- }, xn = ({
1411
+ }, bn = ({
1407
1412
  source: l,
1408
- onSearchCallback: a,
1413
+ onSearchCallback: o,
1409
1414
  isActive: h
1410
1415
  }) => {
1411
- const [d, w] = V(""), [x, m] = V([]), E = (s, p) => {
1416
+ const [d, j] = M(""), [x, m] = M([]), R = (s, p) => {
1412
1417
  if (!s)
1413
1418
  return [];
1414
- const j = s.toLowerCase();
1419
+ const w = s.toLowerCase();
1415
1420
  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) {
1421
+ const S = c.label.toLowerCase().includes(w), I = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(w);
1422
+ return S || I;
1423
+ }).sort((c, S) => c.label.localeCompare(S.label));
1424
+ }, u = (s) => {
1425
+ if (j(s), !s) {
1421
1426
  m([]);
1422
1427
  return;
1423
1428
  }
1424
- const p = E(s, l);
1425
- m(p), a && a(s, p);
1429
+ const p = R(s, l);
1430
+ m(p), o && o(s, p);
1426
1431
  }, b = () => {
1427
- w(""), m([]);
1432
+ j(""), m([]);
1428
1433
  };
1429
- return le(() => {
1430
- h || (w(""), m([]));
1434
+ return ie(() => {
1435
+ h || (j(""), m([]));
1431
1436
  }, [h]), {
1432
1437
  query: d,
1433
1438
  results: x,
1434
1439
  handleClose: b,
1435
- handleSearch: o
1440
+ handleSearch: u
1436
1441
  };
1437
- }, Rn = ({
1442
+ }, Sn = ({
1438
1443
  categories: l = [],
1439
- onCartClick: a,
1444
+ onCartClick: o,
1440
1445
  mainCategoryLabel: h = "Menu",
1441
1446
  logoLink: d = "https://www.everlywell.com",
1442
- hasSearch: w = !0,
1447
+ hasSearch: j = !0,
1443
1448
  onSearchClick: x,
1444
1449
  registrationUrl: m,
1445
- profileUrl: E = "https://secure.everlywell.com/login",
1446
- mobileBottomButtons: o = [],
1450
+ profileUrl: R = "https://secure.everlywell.com/login",
1451
+ mobileBottomButtons: u = [],
1447
1452
  numberOfCartItems: b = 0,
1448
1453
  linkComponent: s,
1449
1454
  onSearchCallback: p,
1450
- onLinkClick: j,
1455
+ onLinkClick: w,
1451
1456
  onCategoryOpen: c,
1452
- onMobileMenuOpen: P,
1453
- onBackToMainMenu: A,
1454
- onRegisterKitClick: W,
1455
- onProfileClick: H,
1456
- onLogoClick: S
1457
+ onMobileMenuOpen: S,
1458
+ onBackToMainMenu: I,
1459
+ onRegisterKitClick: $,
1460
+ onProfileClick: F,
1461
+ onLogoClick: T,
1462
+ shopAllProductsUrl: V,
1463
+ onShopAllProductsClick: Oe
1457
1464
  }) => {
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),
1465
+ var z, fe, pe;
1466
+ 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), {
1467
+ query: je,
1468
+ results: q,
1469
+ handleSearch: we
1470
+ } = bn({
1471
+ source: xt(l),
1465
1472
  onSearchCallback: p,
1466
- isActive: xe
1467
- }), me = G && /* @__PURE__ */ t.jsxs(
1473
+ isActive: be
1474
+ }), se = q.length > 0, ye = s || G, Ee = Le(V, !!s), Re = je && /* @__PURE__ */ t.jsxs(
1468
1475
  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." }
1476
+ { gap: se ? "6" : 0, direction: "column", children: [
1477
+ se ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${q.length} Results` }) : /* @__PURE__ */ t.jsxs(
1478
+ L,
1479
+ { direction: "column", gap: "6", alignItems: "flex-start", children: [
1480
+ /* @__PURE__ */ t.jsx(
1481
+ Z,
1482
+ { color: "tints.uiGrey", children: "We didn't find what you were looking for." }
1483
+ ),
1484
+ /* @__PURE__ */ t.jsx(
1485
+ gt,
1486
+ {
1487
+ as: ye,
1488
+ onClick: Oe,
1489
+ _hover: { textDecoration: "none" },
1490
+ width: ["100%", null, null, "auto"],
1491
+ ...Ee,
1492
+ children: "Shop all products"
1493
+ }
1494
+ )
1495
+ ] }
1473
1496
  ),
1474
1497
  /* @__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
- )
1498
+ Kt,
1499
+ { columns: [1, 1, 1, 4], children: q.map(
1500
+ (i, H) => /* @__PURE__ */ t.jsx(
1501
+ Xt,
1502
+ { children: /* @__PURE__ */ t.jsx(
1503
+ ze,
1504
+ {
1505
+ href: i.href,
1506
+ label: i.label,
1507
+ additionalContent: i == null ? void 0 : i.additionalContent,
1508
+ linkComponent: s
1509
+ }
1510
+ ) },
1511
+ `${i.label}-${H}`
1498
1512
  )
1499
- }
1513
+ ) }
1500
1514
  )
1501
1515
  ] }
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);
1516
+ ), De = Xe((i) => {
1517
+ me(i);
1518
+ }, []), _e = () => {
1519
+ ge(!1), N(null);
1520
+ }, ue = (i) => {
1521
+ N(i);
1522
+ }, ce = (i) => {
1523
+ B(!0), J(!1), (i.sections || i.spotlightCards) && N(i);
1524
+ }, Q = () => {
1525
+ B(!1);
1512
1526
  };
1513
- le(() => {
1514
- const u = (O) => {
1515
- z(O.detail.isHovering);
1527
+ ie(() => {
1528
+ const i = (H) => {
1529
+ Ce(H.detail.isHovering);
1516
1530
  };
1517
1531
  return window.addEventListener(
1518
- Ne,
1519
- u
1532
+ Ze,
1533
+ i
1520
1534
  ), () => {
1521
1535
  window.removeEventListener(
1522
- Ne,
1523
- u
1536
+ Ze,
1537
+ i
1524
1538
  );
1525
1539
  };
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);
1540
+ }, []), ie(() => {
1541
+ !A && !Y && (N(null), J(!1));
1542
+ }, [A, Y]), ie(() => {
1543
+ let i = window.location.href;
1544
+ const H = () => {
1545
+ const O = window.location.href;
1546
+ O !== i && (i = O, _e(), N(null));
1547
+ }, U = setInterval(H, 100);
1548
+ return window.addEventListener("popstate", H), () => {
1549
+ window.removeEventListener("popstate", H), clearInterval(U);
1536
1550
  };
1537
1551
  }, []);
1538
- const Le = () => {
1539
- Y(null), A == null || A();
1540
- }, Oe = /* @__PURE__ */ t.jsx(
1552
+ const de = () => {
1553
+ N(null), I == null || I();
1554
+ }, ee = /* @__PURE__ */ t.jsx(
1541
1555
  t.Fragment,
1542
1556
  { children: l == null ? void 0 : l.map(
1543
- (u, O) => /* @__PURE__ */ t.jsx(
1544
- Te,
1557
+ (i, H) => /* @__PURE__ */ t.jsx(
1558
+ ke,
1545
1559
  {
1546
1560
  onMouseEnter: () => {
1547
- je(u), c == null || c(u.label);
1561
+ ce(i), c == null || c(i.label);
1548
1562
  },
1549
- onMouseLeave: ye,
1550
- isSelected: (R == null ? void 0 : R.label) === u.label,
1551
- ...u.buttonProps,
1552
- children: u.label
1563
+ onMouseLeave: Q,
1564
+ isSelected: (y == null ? void 0 : y.label) === i.label,
1565
+ ...i.buttonProps,
1566
+ children: i.label
1553
1567
  },
1554
- `${u.label}-${O}`
1568
+ `${i.label}-${H}`
1555
1569
  )
1556
1570
  ) }
1557
- ), se = (Ee = l.filter((u) => u.isMobileTopLink !== !1)) == null ? void 0 : Ee.map(
1558
- (u) => /* @__PURE__ */ t.jsx(
1559
- y,
1571
+ ), Ie = (z = l.filter((i) => i.isMobileTopLink !== !1)) == null ? void 0 : z.map(
1572
+ (i) => /* @__PURE__ */ t.jsx(
1573
+ E,
1560
1574
  {
1561
1575
  onClick: () => {
1562
- we(u), c == null || c(u.label);
1576
+ ue(i), c == null || c(i.label);
1563
1577
  },
1564
1578
  children: /* @__PURE__ */ t.jsx(
1565
- Me,
1579
+ ze,
1566
1580
  {
1567
- label: u.label,
1581
+ label: i.label,
1568
1582
  role: "link",
1569
- additionalContent: u.additionalContent,
1583
+ additionalContent: i.additionalContent,
1570
1584
  mainTextFontSize: "3xl",
1571
1585
  linkComponent: s
1572
1586
  }
1573
1587
  )
1574
1588
  },
1575
- u.label
1589
+ i.label
1576
1590
  )
1577
1591
  );
1578
- ft(l);
1579
- const ue = /* @__PURE__ */ t.jsxs(
1592
+ xt(l);
1593
+ const Se = /* @__PURE__ */ t.jsxs(
1580
1594
  t.Fragment,
1581
1595
  { children: [
1582
1596
  /* @__PURE__ */ t.jsx(
1583
- Te,
1597
+ ke,
1584
1598
  {
1585
- as: X,
1586
- href: E,
1599
+ as: G,
1600
+ href: R,
1587
1601
  width: "100%",
1588
1602
  backgroundColor: "tints.cream",
1589
- onClick: H,
1603
+ onClick: F,
1590
1604
  children: /* @__PURE__ */ t.jsxs(
1591
1605
  L,
1592
1606
  { gap: "2", children: [
1593
1607
  "My Everly",
1594
- /* @__PURE__ */ t.jsx(re, { as: at, size: 24 })
1608
+ /* @__PURE__ */ t.jsx(le, { as: ct, size: 24 })
1595
1609
  ] }
1596
1610
  )
1597
1611
  },
1598
1612
  "my-everly"
1599
1613
  ),
1600
1614
  /* @__PURE__ */ t.jsx(
1601
- Te,
1615
+ ke,
1602
1616
  {
1603
- as: X,
1617
+ as: G,
1604
1618
  width: "100%",
1605
1619
  href: m,
1606
1620
  backgroundColor: "tints.cream",
1607
- onClick: W,
1621
+ onClick: $,
1608
1622
  children: /* @__PURE__ */ t.jsxs(
1609
1623
  L,
1610
1624
  { gap: "2", children: [
1611
1625
  "Register kit",
1612
- /* @__PURE__ */ t.jsx(re, { as: an, size: 24 })
1626
+ /* @__PURE__ */ t.jsx(le, { as: sn, size: 24 })
1613
1627
  ] }
1614
1628
  )
1615
1629
  },
1616
1630
  "register-kit"
1617
1631
  )
1618
1632
  ] }
1619
- ), Q = /* @__PURE__ */ t.jsxs(
1633
+ ), Fe = /* @__PURE__ */ t.jsxs(
1620
1634
  L,
1621
1635
  { gap: "2", flexDirection: "column", children: [
1622
- o,
1623
- ue
1636
+ u,
1637
+ Se
1624
1638
  ] }
1625
- ), ce = R ? /* @__PURE__ */ t.jsx(
1639
+ ), Ae = y ? /* @__PURE__ */ t.jsx(
1626
1640
  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));
1641
+ { direction: ["column", null, null, "row"], gap: "8", children: (fe = y == null ? void 0 : y.sections) == null ? void 0 : fe.map((i, H) => {
1642
+ const U = [];
1643
+ for (let O = 0; O < i.links.length; O += 3)
1644
+ U.push(i.links.slice(O, O + 3));
1631
1645
  return /* @__PURE__ */ t.jsxs(
1632
- y,
1646
+ E,
1633
1647
  { children: [
1634
1648
  /* @__PURE__ */ t.jsx(
1635
- U,
1649
+ Z,
1636
1650
  {
1637
1651
  fontSize: "md",
1638
1652
  color: "tints.uiGrey",
1639
1653
  marginBottom: [0, null, null, 6],
1640
- children: u.title
1654
+ children: i.title
1641
1655
  }
1642
1656
  ),
1643
1657
  /* @__PURE__ */ t.jsx(
@@ -1645,116 +1659,116 @@ const We = 60, ct = 6, un = (l) => {
1645
1659
  {
1646
1660
  flexDirection: ["column", null, null, "row"],
1647
1661
  gap: [null, null, null, 8],
1648
- children: k == null ? void 0 : k.map(
1649
- (D, _e) => /* @__PURE__ */ t.jsx(
1662
+ children: U == null ? void 0 : U.map(
1663
+ (O, He) => /* @__PURE__ */ t.jsx(
1650
1664
  L,
1651
1665
  {
1652
1666
  flexDirection: ["column"],
1653
1667
  gap: [null, null, null, 5],
1654
1668
  marginLeft: [null, null, null, -2],
1655
- children: D == null ? void 0 : D.map(
1656
- (B) => /* @__PURE__ */ t.jsx(
1657
- Me,
1669
+ children: O == null ? void 0 : O.map(
1670
+ (K) => /* @__PURE__ */ t.jsx(
1671
+ ze,
1658
1672
  {
1659
- label: B.label,
1660
- href: B.href,
1661
- additionalContent: B.additionalContent,
1673
+ label: K.label,
1674
+ href: K.href,
1675
+ additionalContent: K.additionalContent,
1662
1676
  linkComponent: s,
1663
- onClick: () => j == null ? void 0 : j(B.label)
1677
+ onClick: () => w == null ? void 0 : w(K.label)
1664
1678
  },
1665
- B.label
1679
+ K.label
1666
1680
  )
1667
1681
  )
1668
1682
  },
1669
- _e
1683
+ He
1670
1684
  )
1671
1685
  )
1672
1686
  }
1673
1687
  )
1674
1688
  ] },
1675
- `${u.title}-${O}`
1689
+ `${i.title}-${H}`
1676
1690
  );
1677
1691
  }) }
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, {});
1692
+ ) : null, te = y != null && y.spotlightCards ? (pe = y.spotlightCards) == null ? void 0 : pe.map(
1693
+ (i) => /* @__PURE__ */ t.jsx(fn, { ...i }, i.title)
1694
+ ) : /* @__PURE__ */ t.jsx(E, {});
1681
1695
  return /* @__PURE__ */ t.jsxs(
1682
1696
  t.Fragment,
1683
1697
  { children: [
1684
1698
  /* @__PURE__ */ t.jsx(
1685
- fn,
1699
+ hn,
1686
1700
  {
1687
- desktopTopButtons: Oe,
1701
+ desktopTopButtons: ee,
1688
1702
  kitRegistrationElement: /* @__PURE__ */ t.jsx(
1689
- Te,
1703
+ ke,
1690
1704
  {
1691
- as: X,
1705
+ as: G,
1692
1706
  href: m,
1693
- onClick: W,
1707
+ onClick: $,
1694
1708
  backgroundColor: "tints.cream",
1695
1709
  children: "Register Kit"
1696
1710
  }
1697
1711
  ),
1698
1712
  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" }) }
1713
+ G,
1714
+ { href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(le, { as: ct }), "aria-label": "Profile" }) }
1701
1715
  ),
1702
1716
  cartElement: /* @__PURE__ */ t.jsx(
1703
- pn,
1717
+ vn,
1704
1718
  {
1705
1719
  "aria-label": "Cart",
1706
1720
  count: b,
1707
- onClick: a
1721
+ onClick: o
1708
1722
  }
1709
1723
  ),
1710
1724
  onSearchClick: () => {
1711
1725
  J(!0), x == null || x();
1712
1726
  },
1713
1727
  onMenuClick: () => {
1714
- ve(!0), P == null || P();
1728
+ ge(!0), S == null || S();
1715
1729
  },
1716
- hasSearch: w,
1730
+ hasSearch: j,
1717
1731
  logoLink: d,
1718
- onHeightChange: Ce,
1732
+ onHeightChange: De,
1719
1733
  linkComponent: s,
1720
- onLogoClick: S
1734
+ onLogoClick: T
1721
1735
  }
1722
1736
  ),
1723
1737
  /* @__PURE__ */ t.jsx(
1724
- Be,
1738
+ Ue,
1725
1739
  {
1726
- isOpen: N,
1727
- onClose: oe,
1740
+ isOpen: Pe,
1741
+ onClose: _e,
1728
1742
  title: h,
1729
- navDrawerLinks: se,
1730
- bottomNavButtons: Q,
1743
+ navDrawerLinks: Ie,
1744
+ bottomNavButtons: Fe,
1731
1745
  hasBackButton: !1,
1732
- navHeight: q
1746
+ navHeight: oe
1733
1747
  }
1734
1748
  ),
1735
1749
  /* @__PURE__ */ t.jsx(
1736
- Be,
1750
+ Ue,
1737
1751
  {
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
1752
+ isOpen: !!y,
1753
+ onClose: () => N(null),
1754
+ title: (y == null ? void 0 : y.label) || "",
1755
+ navDrawerLinks: Ae,
1756
+ onBackClick: de,
1757
+ spotlightCards: te,
1758
+ hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
1759
+ navHeight: oe,
1760
+ bottomButton: y == null ? void 0 : y.bottomButton
1747
1761
  }
1748
1762
  ),
1749
1763
  /* @__PURE__ */ t.jsx(
1750
- Be,
1764
+ Ue,
1751
1765
  {
1752
- isOpen: xe,
1766
+ isOpen: be,
1753
1767
  onClose: () => J(!1),
1754
1768
  title: "Search",
1755
- navHeight: q,
1756
- navDrawerLinks: me,
1757
- onSearch: be,
1769
+ navHeight: oe,
1770
+ navDrawerLinks: Re,
1771
+ onSearch: we,
1758
1772
  hasSearch: !0,
1759
1773
  hasBackButton: !1
1760
1774
  }
@@ -1763,15 +1777,15 @@ const We = 60, ct = 6, un = (l) => {
1763
1777
  );
1764
1778
  };
1765
1779
  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
1780
+ vn as BasketButton,
1781
+ Rn as CategoryLabel,
1782
+ ke as NavButton,
1783
+ _n as NavSkeleton,
1784
+ Ue as NavbarDrawer,
1785
+ ze as NavbarDrawerLink,
1786
+ Sn as NavigationBar,
1787
+ fn as SpotlightCard,
1788
+ En as Stepper,
1789
+ ae as TopNavIconButton,
1790
+ hn as TopNavigation
1777
1791
  };