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