@everlywell/consumer-ui 1.30.0 → 1.31.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 ie, Flex as k, 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, s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), f = 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 a, 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 (a in c)
26
+ f.call(c, a) && !v.hasOwnProperty(a) && (b[a] = c[a]);
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 (a in c = R.defaultProps, c)
29
+ b[a] === void 0 && (b[a] = c[a]);
30
+ return { $$typeof: s, 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,91 +41,91 @@ 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 ft;
45
+ function fn() {
46
+ return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var l = Ze, s = Symbol.for("react.element"), p = Symbol.for("react.portal"), f = 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"), a = 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
+ oe("error", e, r);
60
60
  }
61
61
  }
62
- function B(e, n, r) {
62
+ function oe(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 se = !1, ue = !1, H = !1, ce = !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 === f || e === v || B || e === j || e === x || e === a || ce || e === u || se || ue || 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 fe(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
- case d:
99
+ case f:
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
- case s:
109
+ case a:
110
110
  return "SuspenseList";
111
111
  }
112
112
  if (typeof e == "object")
113
113
  switch (e.$$typeof) {
114
114
  case R:
115
115
  var n = e;
116
- return we(n) + ".Consumer";
116
+ return fe(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 fe(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, ee, Re, de, _e, Se;
137
+ function Te() {
138
138
  }
139
- Se.__reactDisabledLog = !0;
140
- function De() {
139
+ Te.__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, ee = console.warn, Re = console.error, de = 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: Te,
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: ee
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: de
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 te(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, ne;
213
213
  {
214
214
  var Ie = typeof WeakMap == "function" ? WeakMap : Map;
215
- te = new Ie();
215
+ ne = new Ie();
216
216
  }
217
217
  function ke(e, n) {
218
- if (!e || fe)
218
+ if (!e || ge)
219
219
  return "";
220
220
  {
221
- var r = te.get(e);
221
+ var r = ne.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]; )
268
- k--;
269
- for (; _ >= 1 && k >= 0; _--, k--)
270
- if (p[_] !== P[k]) {
271
- if (_ !== 1 || k !== 1)
263
+ } catch (P) {
264
+ if (P && i && typeof P.stack == "string") {
265
+ for (var d = P.stack.split(`
266
+ `), O = i.stack.split(`
267
+ `), S = d.length - 1, T = O.length - 1; S >= 1 && T >= 0 && d[S] !== O[T]; )
268
+ T--;
269
+ for (; S >= 1 && T >= 0; S--, T--)
270
+ if (d[S] !== O[T]) {
271
+ if (S !== 1 || T !== 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--, T--, T < 0 || d[S] !== O[T]) {
274
+ var $ = `
275
+ ` + d[S].replace(" at new ", " at ");
276
+ return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, $), $;
277
277
  }
278
- while (_ >= 1 && k >= 0);
278
+ while (S >= 1 && T >= 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 le = e ? e.displayName || e.name : "", J = le ? te(le) : "";
286
+ return typeof e == "function" && ne.set(e, J), J;
287
287
  }
288
- function Fe(e, n, r) {
288
+ function Ae(e, n, r) {
289
289
  return ke(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 ke(e, Fe(e));
300
300
  if (typeof e == "string")
301
- return ee(e);
301
+ return te(e);
302
302
  switch (e) {
303
- case b:
304
- return ee("Suspense");
305
- case s:
306
- return ee("SuspenseList");
303
+ case x:
304
+ return te("Suspense");
305
+ case a:
306
+ return te("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 = {}, o = 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
+ o.setExtraStackFrame(r);
329
329
  } else
330
- he.setExtraStackFrame(null);
330
+ o.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 d = 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
+ d = e[h](n, h, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ } catch (S) {
345
+ d = 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
+ d && !(d 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 d), D(null)), d instanceof Error && !(d.message in xe) && (xe[d.message] = !0, D(g), _("Failed %s type: %s", r, d.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 d = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
- $$typeof: o,
429
+ $$typeof: s,
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 d._store = {}, Object.defineProperty(d._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(d, "_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(d, "_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(d.props), Object.freeze(d)), d;
454
454
  };
455
- function Tt(e, n, r, a, g) {
455
+ function Tt(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 = {}, d = null, O = null;
458
+ r !== void 0 && (Je(r), d = "" + r), yt(n) && (Je(n.key), d = "" + 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) {
467
- var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
- p && Rt(v, k), P && _t(v, k);
466
+ if (d || O) {
467
+ var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
+ d && Rt(h, T), O && _t(h, T);
469
469
  }
470
- return St(e, p, P, g, a, ve.current, v);
470
+ return St(e, d, O, g, i, be.current, h);
471
471
  }
472
472
  }
473
- var We = F.ReactCurrentOwner, tt = F.ReactDebugCurrentFrame;
473
+ var $e = F.ReactCurrentOwner, et = F.ReactDebugCurrentFrame;
474
474
  function re(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
- return typeof e == "object" && e !== null && e.$$typeof === o;
484
+ return typeof e == "object" && e !== null && e.$$typeof === s;
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
 
@@ -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) + "."), re(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), re(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
+ re(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), re(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 && (re(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), re(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 d = "";
597
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " 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 = kt(g);
599
+ O ? d += O : d += tt();
600
+ var S;
601
+ e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === s ? (S = "<" + (I(e.type) || "Unknown") + " />", d = " 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, d);
602
602
  }
603
- var k = Tt(e, n, r, g, C);
604
- if (k == null)
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);
603
+ var T = Tt(e, n, r, g, C);
604
+ if (T == null)
605
+ return T;
606
+ if (h) {
607
+ var $ = n.children;
608
+ if ($ !== void 0)
609
+ if (i)
610
+ if (me($)) {
611
+ for (var le = 0; le < $.length; le++)
612
+ lt($[le], 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 === f ? Ot(T) : Dt(T), T;
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 = f, 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 = fn();
647
+ var t = Ue.exports;
648
+ const Ne = 60, dt = 6, dn = (l) => {
649
649
  const {
650
- activeStepIndex: o,
651
- hideIndicators: h = !1,
652
- steps: d,
653
- stepperTheme: w = {
650
+ activeStepIndex: s,
651
+ hideIndicators: p = !1,
652
+ steps: f,
653
+ stepperTheme: j = {
654
654
  light: "eggplant.light",
655
655
  base: "eggplant.base"
656
656
  }
657
- } = l, { activeStep: x, setActiveStep: m } = Wt({
658
- index: o,
659
- count: d.length
657
+ } = l, { activeStep: v, setActiveStep: m } = Wt({
658
+ index: s,
659
+ count: f.length
660
660
  });
661
- return ae(() => {
662
- m(o);
663
- }, [o, m]), /* @__PURE__ */ t.jsx(
661
+ return q(() => {
662
+ m(s);
663
+ }, [s, 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: f.map((R, c) => {
674
+ const x = v === c, a = c === 0, b = c === f.length - 1, w = v > c;
675
+ let u = `${Ne}px`;
676
+ const L = `calc(100% - ((${Ne * (f.length - 1)}px) - (${f.length - 1} * ${dt * 2}px)))`;
677
+ return x ? u = L : (a || b) && (u = `${Ne - dt}px`), /* @__PURE__ */ t.jsx(
678
678
  E,
679
679
  {
680
- width: c,
681
- opacity: j || b ? 1 : 0.2,
682
- paddingRight: f ? "0" : "6px",
683
- paddingLeft: s ? "0" : "6px",
680
+ width: u,
681
+ opacity: w || x ? 1 : 0.2,
682
+ paddingRight: b ? "0" : "6px",
683
+ paddingLeft: a ? "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(dn), Tn = ({
713
713
  children: l,
714
- ...o
714
+ ...s
715
715
  }) => /* @__PURE__ */ t.jsx(
716
716
  qt,
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 ? {
717
+ { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...s, children: l }
718
+ ), Oe = (l, s) => {
719
+ const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
720
+ return s && !p ? {
721
721
  to: l
722
722
  } : {
723
723
  href: l
724
724
  };
725
- }, ze = bt(
726
- (l, o) => {
725
+ }, Ye = gt(
726
+ (l, s) => {
727
727
  const {
728
- label: h,
729
- additionalContent: d,
730
- mainTextFontSize: w,
731
- linkComponent: x,
728
+ label: p,
729
+ additionalContent: f,
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
- ref: o,
739
- as: u,
738
+ ref: s,
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
755
  ie,
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,17 +764,17 @@ const Ye = 60, ht = 6, dn = (l) => {
764
764
  }
765
765
  ),
766
766
  /* @__PURE__ */ t.jsxs(
767
- L,
767
+ k,
768
768
  { alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
769
769
  /* @__PURE__ */ t.jsx(
770
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
- d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
777
+ f && (typeof f == "string" ? /* @__PURE__ */ t.jsx(
778
778
  Z,
779
779
  {
780
780
  fontSize: ["xl", null, null, "lg"],
@@ -785,14 +785,14 @@ const Ye = 60, ht = 6, dn = (l) => {
785
785
  color: "viridian.base"
786
786
  }
787
787
  },
788
- children: d
788
+ children: f
789
789
  }
790
- ) : d),
790
+ ) : f),
791
791
  /* @__PURE__ */ t.jsx(
792
792
  ie,
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(
810
- (l, o) => {
811
- const { children: h, isSelected: d, ...w } = l, x = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
809
+ ), De = gt(
810
+ (l, s) => {
811
+ const { children: p, isSelected: f, ...j } = l, v = l.backgroundColor || (f ? "tints.lightCream" : "transparent");
812
812
  return /* @__PURE__ */ t.jsx(
813
- gt,
813
+ vt,
814
814
  {
815
- ref: o,
815
+ ref: s,
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
- description: o,
842
- imageSrc: h,
843
- imageElement: d,
844
- button: w,
845
- backgroundColor: x = "viridian.wash",
841
+ description: s,
842
+ imageSrc: p,
843
+ imageElement: f,
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", a = "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
+ k,
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 ? k : 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, a],
893
893
  width: "100%",
894
894
  alt: "",
895
895
  "data-testid": "spotlight-card-image"
@@ -897,15 +897,15 @@ 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, a],
901
901
  overflow: "hidden",
902
- children: d
902
+ children: f
903
903
  }
904
904
  )
905
905
  }
906
906
  ),
907
907
  /* @__PURE__ */ t.jsxs(
908
- L,
908
+ k,
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(
@@ -927,18 +927,18 @@ const Ye = 60, ht = 6, dn = (l) => {
927
927
  ),
928
928
  /* @__PURE__ */ t.jsx(
929
929
  Z,
930
- { fontSize: "sm", color: "tints.black", children: o }
930
+ { fontSize: "sm", color: "tints.black", children: s }
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
  )
938
938
  ]
939
939
  }
940
940
  );
941
- }, oe = (l) => /* @__PURE__ */ t.jsx(
941
+ }, ae = (l) => /* @__PURE__ */ t.jsx(
942
942
  Vt,
943
943
  {
944
944
  size: "sm",
@@ -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,113 +983,105 @@ const Ye = 60, ht = 6, dn = (l) => {
983
983
  ) }
984
984
  )
985
985
  }
986
- ), hn = ({
986
+ ), vn = ({
987
987
  desktopTopButtons: l,
988
- kitRegistrationElement: o,
989
- profileElement: h,
990
- cartElement: d,
991
- onSearchClick: w,
992
- onMenuClick: x,
988
+ kitRegistrationElement: s,
989
+ profileElement: p,
990
+ cartElement: f,
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,
997
- onLogoClick: s
995
+ setTopOffset: c,
996
+ linkComponent: x,
997
+ onLogoClick: a
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
+ k,
1031
1023
  { justifyContent: "space-between", alignItems: "center", children: [
1032
1024
  /* @__PURE__ */ t.jsxs(
1033
- L,
1025
+ k,
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
- onClick: s,
1040
- as: b || G,
1041
- ...Pe(R, !!b),
1042
- children: /* @__PURE__ */ t.jsx(pn, {})
1031
+ onClick: a,
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
+ k,
1047
1039
  { display: ["none", null, null, "flex"], children: l }
1048
1040
  )
1049
1041
  ] }
1050
1042
  ),
1051
1043
  /* @__PURE__ */ t.jsxs(
1052
- L,
1044
+ k,
1053
1045
  { alignItems: "center", gap: "2", children: [
1054
1046
  /* @__PURE__ */ t.jsx(
1055
1047
  E,
1056
- { display: ["none", null, null, "block"], children: o }
1048
+ { display: ["none", null, null, "block"], children: s }
1057
1049
  ),
1058
1050
  m ? /* @__PURE__ */ t.jsx(
1059
- oe,
1051
+ ae,
1060
1052
  {
1061
1053
  "aria-label": "Search",
1062
- icon: /* @__PURE__ */ t.jsx(ie, { as: Ct }),
1063
- onClick: w
1054
+ icon: /* @__PURE__ */ t.jsx(ie, { as: bt }),
1055
+ onClick: j
1064
1056
  }
1065
1057
  ) : null,
1066
- d,
1058
+ f,
1067
1059
  /* @__PURE__ */ t.jsx(
1068
1060
  E,
1069
1061
  { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1070
- oe,
1062
+ ae,
1071
1063
  {
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
- ...o
1080
+ ...s
1089
1081
  }) => /* @__PURE__ */ t.jsxs(
1090
1082
  E,
1091
1083
  { position: "relative", display: "inline-block", children: [
1092
- /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...o }),
1084
+ /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...s }),
1093
1085
  l > 0 && /* @__PURE__ */ t.jsx(
1094
1086
  E,
1095
1087
  {
@@ -1112,28 +1104,28 @@ const Ye = 60, ht = 6, dn = (l) => {
1112
1104
  }
1113
1105
  )
1114
1106
  ] }
1115
- ), _n = ({
1107
+ ), kn = ({
1116
1108
  numLinks: l = 5,
1117
- showPromoButton: o = !0
1109
+ showPromoButton: s = !0
1118
1110
  }) => /* @__PURE__ */ t.jsx(
1119
1111
  Nt,
1120
1112
  { spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
1121
1113
  E,
1122
1114
  { paddingY: 4, paddingX: 6, borderBottomWidth: "1px", children: /* @__PURE__ */ t.jsxs(
1123
- L,
1115
+ k,
1124
1116
  { justify: "space-between", align: "center", children: [
1125
- /* @__PURE__ */ t.jsx(Ne, { w: "120px", h: "48px" }),
1117
+ /* @__PURE__ */ t.jsx(Ve, { w: "120px", h: "48px" }),
1126
1118
  /* @__PURE__ */ t.jsxs(
1127
- st,
1119
+ ot,
1128
1120
  { spacing: 8, marginLeft: 12, children: [
1129
1121
  Array.from({ length: l }).map(
1130
- (h, d) => /* @__PURE__ */ t.jsx(Ne, { width: "90px", height: "48px" }, d)
1122
+ (p, f) => /* @__PURE__ */ t.jsx(Ve, { width: "90px", height: "48px" }, f)
1131
1123
  ),
1132
- o && /* @__PURE__ */ t.jsx(Ne, { width: "110px", height: "48px", borderRadius: "full" })
1124
+ s && /* @__PURE__ */ t.jsx(Ve, { width: "110px", height: "48px", borderRadius: "full" })
1133
1125
  ] }
1134
1126
  ),
1135
1127
  /* @__PURE__ */ t.jsxs(
1136
- st,
1128
+ ot,
1137
1129
  { spacing: 4, ml: "auto", children: [
1138
1130
  /* @__PURE__ */ t.jsx(Le, { width: "120px", height: "48px" }),
1139
1131
  " ",
@@ -1148,351 +1140,361 @@ const Ye = 60, ht = 6, dn = (l) => {
1148
1140
  ] }
1149
1141
  ) }
1150
1142
  ) }
1151
- ), xn = (l, o) => {
1152
- let h;
1153
- return (...d) => {
1154
- h && clearTimeout(h), h = setTimeout(() => {
1155
- l(...d);
1156
- }, o);
1143
+ ), xn = (l, s) => {
1144
+ let p;
1145
+ return (...f) => {
1146
+ p && clearTimeout(p), p = setTimeout(() => {
1147
+ l(...f);
1148
+ }, s);
1157
1149
  };
1158
- }, Ze = "nav-drawer-hover", vt = (l) => {
1150
+ }, Ge = "nav-drawer-hover", pt = (l) => {
1159
1151
  window.dispatchEvent(
1160
- new CustomEvent(Ze, {
1152
+ new CustomEvent(Ge, {
1161
1153
  detail: { isHovering: l },
1162
1154
  bubbles: !0,
1163
1155
  cancelable: !0
1164
1156
  })
1165
1157
  );
1166
- }, gn = (l = !1, o = !1, h = !1) => l || !o ? "column" : h ? "row" : "row-reverse", Ue = ({
1158
+ }, mn = (l = !1, s = !1, p = !1) => l || !s ? "column" : p ? "row" : "row-reverse", bn = Ke(Yt), Cn = Ke(zt), ze = ({
1167
1159
  isOpen: l = !1,
1168
- onClose: o,
1169
- title: h,
1170
- navDrawerLinks: d,
1171
- bottomNavButtons: w,
1172
- spotlightCards: x,
1160
+ onClose: s,
1161
+ title: p,
1162
+ navDrawerLinks: f,
1163
+ bottomNavButtons: j,
1164
+ spotlightCards: v,
1173
1165
  bottomButton: m,
1174
1166
  hasBackButton: R = !0,
1175
- onBackClick: u,
1176
- hasOnlySpotlightCards: b = !1,
1177
- navHeight: s,
1178
- hasSearch: f = !1,
1179
- onSearch: j = () => ({})
1167
+ onBackClick: c,
1168
+ hasOnlySpotlightCards: x = !1,
1169
+ hasSearch: a = !1,
1170
+ onSearch: b = () => ({}),
1171
+ topOffset: w
1180
1172
  }) => {
1181
- const c = mt({
1173
+ const u = mt({
1182
1174
  base: !1,
1183
1175
  tablet: !1,
1184
1176
  largeTablet: !1,
1185
1177
  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();
1178
+ }), L = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1), oe = () => {
1179
+ Q((H) => H + 1);
1180
+ }, se = xt(
1181
+ xn((H) => {
1182
+ b(H), oe();
1191
1183
  }, 100),
1192
1184
  []
1193
1185
  );
1194
- return /* @__PURE__ */ t.jsxs(
1195
- Yt,
1186
+ q(() => {
1187
+ l && _(!0);
1188
+ }, [l]);
1189
+ const ue = () => {
1190
+ l || (_(!1), s());
1191
+ };
1192
+ return /* @__PURE__ */ t.jsx(
1193
+ Ut,
1196
1194
  {
1197
- isOpen: l,
1198
- onClose: o,
1199
- placement: S,
1195
+ isOpen: F || l,
1196
+ onClose: () => {
1197
+ F && u || s();
1198
+ },
1199
+ placement: L,
1200
1200
  blockScrollOnMount: !1,
1201
1201
  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"
1202
+ children: /* @__PURE__ */ t.jsx(
1203
+ un,
1204
+ { children: l ? /* @__PURE__ */ t.jsxs(
1205
+ t.Fragment,
1206
+ { children: [
1207
+ /* @__PURE__ */ t.jsx(
1208
+ Cn,
1209
+ {
1210
+ backgroundColor: "tints.black",
1211
+ top: ["0", null, null, `${w}px`],
1212
+ opacity: u ? void 0 : "0.4 !important",
1213
+ ...u ? {
1214
+ initial: { opacity: 0 },
1215
+ animate: { opacity: 0.4 },
1216
+ exit: { opacity: 0 },
1217
+ transition: {
1218
+ duration: 0.2,
1219
+ delay: 0.3,
1220
+ ease: "easeOut"
1221
+ }
1222
+ } : {}
1217
1223
  }
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,
1224
+ ),
1225
+ /* @__PURE__ */ t.jsxs(
1226
+ bn,
1227
+ {
1228
+ onClick: (H) => {
1229
+ const B = H.target.closest("a");
1230
+ B && B.href === window.location.href && s();
1231
+ },
1232
+ onMouseEnter: () => {
1233
+ !a && u && pt(!0);
1234
+ },
1235
+ onMouseLeave: () => {
1236
+ !a && u && pt(!1);
1237
+ },
1238
+ paddingTop: "4",
1239
+ paddingX: [4, null, null, 12],
1240
+ paddingBottom: "24",
1241
+ overflow: ["auto", null, null, "hidden"],
1242
+ maxHeight: "100vh",
1243
+ position: "relative",
1244
+ top: u ? `${w}px !important` : void 0,
1245
+ onAnimationComplete: ue,
1246
+ ...u ? {
1247
+ initial: { height: 0, opacity: 0 },
1248
+ animate: { height: "auto", opacity: 1 },
1249
+ exit: { height: 0, opacity: 0 },
1250
+ transition: { duration: 0.3 }
1251
+ } : {},
1252
+ children: [
1253
+ !a && u ? null : /* @__PURE__ */ t.jsxs(
1254
+ Gt,
1255
+ {
1256
+ padding: "0",
1257
+ flexDirection: a ? "column" : "row",
1258
+ gap: a ? "4" : "0",
1259
+ children: [
1260
+ u ? null : /* @__PURE__ */ t.jsxs(
1261
+ k,
1286
1262
  {
1287
- onChange: (B) => {
1288
- T(B.target.value);
1289
- },
1290
- placeholder: "Search",
1291
- autoFocus: !0,
1292
- width: "full",
1293
- type: "search"
1263
+ width: "100%",
1264
+ justifyContent: "space-between",
1265
+ alignItems: "center",
1266
+ children: [
1267
+ R ? /* @__PURE__ */ t.jsx(
1268
+ ae,
1269
+ {
1270
+ icon: /* @__PURE__ */ t.jsx(an, {}),
1271
+ onClick: () => {
1272
+ c && c(), s();
1273
+ },
1274
+ "aria-label": "Back"
1275
+ }
1276
+ ) : null,
1277
+ /* @__PURE__ */ t.jsx(
1278
+ Z,
1279
+ {
1280
+ color: "tints.uiGrey",
1281
+ fontSize: ["xl", null, null, "lg"],
1282
+ children: p
1283
+ }
1284
+ ),
1285
+ /* @__PURE__ */ t.jsx(
1286
+ ae,
1287
+ {
1288
+ icon: /* @__PURE__ */ t.jsx(on, {}),
1289
+ onClick: s,
1290
+ "aria-label": "Close"
1291
+ }
1292
+ )
1293
+ ]
1294
1294
  }
1295
1295
  ),
1296
- /* @__PURE__ */ t.jsx(
1297
- tn,
1298
- { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(nn, { as: Ct, color: "gray.500" }) }
1296
+ a && /* @__PURE__ */ t.jsxs(
1297
+ Qt,
1298
+ { width: "100%", children: [
1299
+ /* @__PURE__ */ t.jsx(
1300
+ en,
1301
+ {
1302
+ onChange: (H) => {
1303
+ se(H.target.value);
1304
+ },
1305
+ placeholder: "Search",
1306
+ autoFocus: !0,
1307
+ width: "full",
1308
+ type: "search"
1309
+ }
1310
+ ),
1311
+ /* @__PURE__ */ t.jsx(
1312
+ tn,
1313
+ { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(nn, { as: bt, color: "gray.500" }) }
1314
+ )
1315
+ ] }
1299
1316
  )
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: {
1317
+ ]
1318
+ }
1319
+ ),
1320
+ /* @__PURE__ */ t.jsx(
1321
+ Zt,
1322
+ {
1323
+ paddingX: "0",
1324
+ paddingBottom: [6, null, null, 4],
1325
+ "data-testid": `navbar-drawer-body-${p.toLowerCase()}`,
1326
+ children: /* @__PURE__ */ t.jsxs(
1327
+ Ke.div,
1328
+ {
1329
+ ...u ? {
1330
+ initial: { opacity: 0, y: -5 },
1331
+ animate: { opacity: 1, y: 0 },
1332
+ exit: { opacity: 0, y: -5 },
1333
+ transition: {
1337
1334
  duration: 0.5,
1338
1335
  delay: 0.2,
1339
- ease: [0.4, 0, 0.2, 1]
1336
+ ease: [0.4, 0, 0.2, 1],
1337
+ exit: {
1338
+ duration: 0.5,
1339
+ delay: 0.2,
1340
+ ease: [0.4, 0, 0.2, 1]
1341
+ }
1340
1342
  }
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"]
1343
+ } : {},
1344
+ style: {
1345
+ display: "flex",
1346
+ flexDirection: mn(
1347
+ x,
1348
+ u,
1349
+ a
1350
+ ),
1351
+ gap: "24px",
1352
+ justifyContent: "space-between"
1353
+ },
1354
+ children: [
1355
+ v ? /* @__PURE__ */ t.jsx(
1356
+ E,
1357
+ {
1358
+ gap: "6",
1359
+ display: "flex",
1360
+ justifyContent: [null, null, null, "center"],
1361
+ sx: {
1362
+ "& > *": {
1363
+ width: ["100%", null, null, "365px", "432px"]
1364
+ },
1365
+ flexWrap: "wrap",
1366
+ flexDirection: ["column", null, null, "row"]
1363
1367
  },
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
- ) }
1368
+ children: v
1369
+ }
1370
+ ) : null,
1371
+ /* @__PURE__ */ t.jsxs(
1372
+ k,
1373
+ {
1374
+ position: [null, null, null, "relative"],
1375
+ flexDirection: "column",
1376
+ gap: "6",
1377
+ width: ["100%", null, null, a ? null : "auto"],
1378
+ children: [
1379
+ f ? /* @__PURE__ */ t.jsx(E, { children: f }) : null,
1380
+ j && !u ? /* @__PURE__ */ t.jsx(E, { children: j }) : null,
1381
+ m ? /* @__PURE__ */ t.jsx(
1382
+ E,
1383
+ {
1384
+ width: ["100%"],
1385
+ position: [null, null, null, "absolute"],
1386
+ bottom: [null, null, null, 0],
1387
+ children: m
1388
+ }
1389
+ ) : null
1390
+ ]
1391
+ }
1392
+ )
1393
+ ]
1394
+ },
1395
+ M
1396
+ )
1397
+ }
1396
1398
  )
1397
- }
1398
- )
1399
- ]
1400
- }
1401
- )
1402
- ]
1399
+ ]
1400
+ }
1401
+ )
1402
+ ] }
1403
+ ) : null }
1404
+ )
1403
1405
  }
1404
1406
  );
1405
- }, bn = ({
1407
+ }, ht = (l) => {
1408
+ const s = /* @__PURE__ */ new Set();
1409
+ return l.reduce((p, f) => {
1410
+ var v;
1411
+ const j = ((v = f.sections) == null ? void 0 : v.reduce((m, R) => {
1412
+ const c = R.links.filter((x) => s.has(x.label) || x.isSearchable !== !0 ? !1 : (s.add(x.label), !0));
1413
+ return [...m, ...c];
1414
+ }, [])) ?? [];
1415
+ return [...p, ...j];
1416
+ }, []);
1417
+ }, jn = ({
1406
1418
  source: l,
1407
- onSearchCallback: o,
1408
- isActive: h
1419
+ onSearchCallback: s,
1420
+ isActive: p
1409
1421
  }) => {
1410
- const [d, w] = V(""), [x, m] = V([]), R = (s, f) => {
1411
- if (!s)
1422
+ const [f, j] = W(""), [v, m] = W([]), R = (a, b) => {
1423
+ if (!a)
1412
1424
  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) {
1425
+ const w = a.toLowerCase();
1426
+ return b.filter((u) => {
1427
+ const L = u.label.toLowerCase().includes(w), M = typeof u.additionalContent == "string" && u.additionalContent.toLowerCase().includes(w);
1428
+ return L || M;
1429
+ }).sort((u, L) => u.label.localeCompare(L.label));
1430
+ }, c = (a) => {
1431
+ if (j(a), !a) {
1420
1432
  m([]);
1421
1433
  return;
1422
1434
  }
1423
- const f = R(s, l);
1424
- m(f), o && o(s, f);
1425
- }, b = () => {
1426
- w(""), m([]);
1435
+ const b = R(a, l);
1436
+ m(b), s && s(a, b);
1437
+ }, x = () => {
1438
+ j(""), m([]);
1427
1439
  };
1428
- return ae(() => {
1429
- h || (w(""), m([]));
1430
- }, [h]), {
1431
- query: d,
1432
- results: x,
1433
- handleClose: b,
1434
- handleSearch: u
1440
+ return q(() => {
1441
+ p || (j(""), m([]));
1442
+ }, [p]), {
1443
+ query: f,
1444
+ results: v,
1445
+ handleClose: x,
1446
+ handleSearch: c
1435
1447
  };
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 = ({
1448
+ }, Ln = ({
1447
1449
  categories: l = [],
1448
- onCartClick: o,
1449
- mainCategoryLabel: h = "Menu",
1450
- logoLink: d = "https://www.everlywell.com",
1451
- hasSearch: w = !0,
1452
- onSearchClick: x,
1450
+ onCartClick: s,
1451
+ mainCategoryLabel: p = "Menu",
1452
+ logoLink: f = "https://www.everlywell.com",
1453
+ hasSearch: j = !0,
1454
+ onSearchClick: v,
1453
1455
  registrationUrl: m,
1454
1456
  profileUrl: R = "https://secure.everlywell.com/login",
1455
- mobileBottomButtons: u = [],
1456
- numberOfCartItems: b = 0,
1457
- linkComponent: s,
1458
- onSearchCallback: f,
1459
- onLinkClick: j,
1460
- onCategoryOpen: c,
1461
- onMobileMenuOpen: S,
1462
- onBackToMainMenu: I,
1463
- onRegisterKitClick: $,
1457
+ mobileBottomButtons: c = [],
1458
+ numberOfCartItems: x = 0,
1459
+ linkComponent: a,
1460
+ onSearchCallback: b,
1461
+ onLinkClick: w,
1462
+ onCategoryOpen: u,
1463
+ onMobileMenuOpen: L,
1464
+ onBackToMainMenu: M,
1465
+ onRegisterKitClick: Q,
1464
1466
  onProfileClick: F,
1465
- onLogoClick: T,
1466
- shopAllProductsUrl: B,
1467
- onShopAllProductsClick: be
1467
+ onLogoClick: _,
1468
+ shopAllProductsUrl: oe,
1469
+ onShopAllProductsClick: se
1468
1470
  }) => {
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,
1471
+ var K, z, xe;
1472
+ const [ue, H] = W(!1), [ce, B] = W(!1), [y, V] = W(null), [we, fe] = W(!1), [I, N] = W(!1), [Y, ye] = W(0), {
1473
+ query: Ee,
1474
+ results: ee,
1475
+ handleSearch: Re
1476
+ } = jn({
1477
+ source: ht(l),
1478
+ onSearchCallback: b,
1479
+ isActive: ce
1480
+ }), de = ee.length > 0, _e = a || G, Se = Oe(oe, !!a), Te = Ee && /* @__PURE__ */ t.jsxs(
1481
+ k,
1482
+ { gap: de ? "6" : 0, direction: "column", children: [
1483
+ de ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${ee.length} Results` }) : /* @__PURE__ */ t.jsxs(
1484
+ k,
1483
1485
  { direction: "column", gap: "6", alignItems: "flex-start", children: [
1484
1486
  /* @__PURE__ */ t.jsx(
1485
1487
  Z,
1486
1488
  { color: "tints.uiGrey", children: "We didn't find what you were looking for." }
1487
1489
  ),
1488
1490
  /* @__PURE__ */ t.jsx(
1489
- gt,
1491
+ vt,
1490
1492
  {
1491
- as: Re,
1492
- onClick: be,
1493
+ as: _e,
1494
+ onClick: se,
1493
1495
  _hover: { textDecoration: "none" },
1494
1496
  width: ["100%", null, null, "auto"],
1495
- ..._e,
1497
+ ...Se,
1496
1498
  children: "Shop all products"
1497
1499
  }
1498
1500
  )
@@ -1500,105 +1502,103 @@ const Ye = 60, ht = 6, dn = (l) => {
1500
1502
  ),
1501
1503
  /* @__PURE__ */ t.jsx(
1502
1504
  Kt,
1503
- { columns: [1, 1, 1, 4], children: Q.map(
1504
- (i, H) => /* @__PURE__ */ t.jsx(
1505
+ { columns: [1, 1, 1, 4], children: ee.map(
1506
+ (o, D) => /* @__PURE__ */ t.jsx(
1505
1507
  Xt,
1506
1508
  { children: /* @__PURE__ */ t.jsx(
1507
- ze,
1509
+ Ye,
1508
1510
  {
1509
- href: i.href,
1510
- label: i.label,
1511
- additionalContent: i == null ? void 0 : i.additionalContent,
1512
- linkComponent: s
1511
+ href: o.href,
1512
+ label: o.label,
1513
+ additionalContent: o == null ? void 0 : o.additionalContent,
1514
+ linkComponent: a
1513
1515
  }
1514
1516
  ) },
1515
- `${i.label}-${H}`
1517
+ `${o.label}-${D}`
1516
1518
  )
1517
1519
  ) }
1518
1520
  )
1519
1521
  ] }
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);
1522
+ ), pe = () => {
1523
+ H(!1), V(null);
1524
+ }, Pe = (o) => {
1525
+ V(o);
1526
+ }, he = (o) => {
1527
+ fe(!0), B(!1), (o.sections || o.spotlightCards) && V(o);
1528
+ }, ve = () => {
1529
+ fe(!1);
1530
1530
  };
1531
- ae(() => {
1532
- const i = (H) => {
1533
- je(H.detail.isHovering);
1531
+ q(() => {
1532
+ const o = (D) => {
1533
+ N(D.detail.isHovering);
1534
1534
  };
1535
1535
  return window.addEventListener(
1536
- Ze,
1537
- i
1536
+ Ge,
1537
+ o
1538
1538
  ), () => {
1539
1539
  window.removeEventListener(
1540
- Ze,
1541
- i
1540
+ Ge,
1541
+ o
1542
1542
  );
1543
1543
  };
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);
1544
+ }, []), q(() => {
1545
+ !we && !I && (V(null), B(!1));
1546
+ }, [we, I]), q(() => {
1547
+ let o = window.location.href;
1548
+ const D = () => {
1549
+ const A = window.location.href;
1550
+ A !== o && (o = A, pe(), V(null));
1551
+ }, U = setInterval(D, 100);
1552
+ return window.addEventListener("popstate", D), () => {
1553
+ window.removeEventListener("popstate", D), clearInterval(U);
1554
1554
  };
1555
1555
  }, []);
1556
- const fe = () => {
1557
- N(null), I == null || I();
1558
- }, te = /* @__PURE__ */ t.jsx(
1556
+ const te = () => {
1557
+ V(null), M == null || M();
1558
+ }, ge = /* @__PURE__ */ t.jsx(
1559
1559
  t.Fragment,
1560
1560
  { children: l == null ? void 0 : l.map(
1561
- (i, H) => /* @__PURE__ */ t.jsx(
1562
- Oe,
1561
+ (o, D) => /* @__PURE__ */ t.jsx(
1562
+ De,
1563
1563
  {
1564
1564
  onMouseEnter: () => {
1565
- de(i), c == null || c(i.label);
1565
+ he(o), u == null || u(o.label);
1566
1566
  },
1567
- onMouseLeave: ee,
1568
- isSelected: (y == null ? void 0 : y.label) === i.label,
1569
- ...i.buttonProps,
1570
- children: i.label
1567
+ onMouseLeave: ve,
1568
+ isSelected: (y == null ? void 0 : y.label) === o.label,
1569
+ ...o.buttonProps,
1570
+ children: o.label
1571
1571
  },
1572
- `${i.label}-${H}`
1572
+ `${o.label}-${D}`
1573
1573
  )
1574
1574
  ) }
1575
- ), Ie = (z = l.filter((i) => i.isMobileTopLink !== !1)) == null ? void 0 : z.map(
1576
- (i) => /* @__PURE__ */ t.jsx(
1575
+ ), ne = (K = l.filter((o) => o.isMobileTopLink !== !1)) == null ? void 0 : K.map(
1576
+ (o) => /* @__PURE__ */ t.jsx(
1577
1577
  E,
1578
1578
  {
1579
1579
  onClick: () => {
1580
- ce(i), c == null || c(i.label);
1580
+ Pe(o), u == null || u(o.label);
1581
1581
  },
1582
1582
  children: /* @__PURE__ */ t.jsx(
1583
- ze,
1583
+ Ye,
1584
1584
  {
1585
- label: i.label,
1585
+ label: o.label,
1586
1586
  role: "link",
1587
- additionalContent: i.additionalContent,
1587
+ additionalContent: o.additionalContent,
1588
1588
  mainTextFontSize: "3xl",
1589
- linkComponent: s
1589
+ linkComponent: a
1590
1590
  }
1591
1591
  )
1592
1592
  },
1593
- i.label
1593
+ o.label
1594
1594
  )
1595
1595
  );
1596
- xt(l);
1597
- const ke = /* @__PURE__ */ t.jsxs(
1596
+ ht(l);
1597
+ const Ie = /* @__PURE__ */ t.jsxs(
1598
1598
  t.Fragment,
1599
1599
  { children: [
1600
1600
  /* @__PURE__ */ t.jsx(
1601
- Oe,
1601
+ De,
1602
1602
  {
1603
1603
  as: G,
1604
1604
  href: R,
@@ -1606,25 +1606,25 @@ const Ye = 60, ht = 6, dn = (l) => {
1606
1606
  backgroundColor: "tints.cream",
1607
1607
  onClick: F,
1608
1608
  children: /* @__PURE__ */ t.jsxs(
1609
- L,
1609
+ k,
1610
1610
  { gap: "2", children: [
1611
1611
  "My Everly",
1612
- /* @__PURE__ */ t.jsx(ie, { as: ct, size: 24 })
1612
+ /* @__PURE__ */ t.jsx(ie, { as: ut, size: 24 })
1613
1613
  ] }
1614
1614
  )
1615
1615
  },
1616
1616
  "my-everly"
1617
1617
  ),
1618
1618
  /* @__PURE__ */ t.jsx(
1619
- Oe,
1619
+ De,
1620
1620
  {
1621
1621
  as: G,
1622
1622
  width: "100%",
1623
1623
  href: m,
1624
1624
  backgroundColor: "tints.cream",
1625
- onClick: $,
1625
+ onClick: Q,
1626
1626
  children: /* @__PURE__ */ t.jsxs(
1627
- L,
1627
+ k,
1628
1628
  { gap: "2", children: [
1629
1629
  "Register kit",
1630
1630
  /* @__PURE__ */ t.jsx(ie, { as: sn, size: 24 })
@@ -1634,18 +1634,18 @@ const Ye = 60, ht = 6, dn = (l) => {
1634
1634
  "register-kit"
1635
1635
  )
1636
1636
  ] }
1637
- ), Fe = /* @__PURE__ */ t.jsxs(
1638
- L,
1637
+ ), ke = /* @__PURE__ */ t.jsxs(
1638
+ k,
1639
1639
  { gap: "2", flexDirection: "column", children: [
1640
- u,
1641
- ke
1640
+ c,
1641
+ Ie
1642
1642
  ] }
1643
1643
  ), 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) => {
1644
+ k,
1645
+ { direction: ["column", null, null, "row"], gap: "8", children: (z = y == null ? void 0 : y.sections) == null ? void 0 : z.map((o, D) => {
1646
1646
  const U = [];
1647
- for (let O = 0; O < i.links.length; O += 3)
1648
- U.push(i.links.slice(O, O + 3));
1647
+ for (let A = 0; A < o.links.length; A += 3)
1648
+ U.push(o.links.slice(A, A + 3));
1649
1649
  return /* @__PURE__ */ t.jsxs(
1650
1650
  E,
1651
1651
  { children: [
@@ -1655,141 +1655,143 @@ const Ye = 60, ht = 6, dn = (l) => {
1655
1655
  fontSize: "md",
1656
1656
  color: "tints.uiGrey",
1657
1657
  marginBottom: [0, null, null, 6],
1658
- children: i.title
1658
+ children: o.title
1659
1659
  }
1660
1660
  ),
1661
1661
  /* @__PURE__ */ t.jsx(
1662
- L,
1662
+ k,
1663
1663
  {
1664
1664
  flexDirection: ["column", null, null, "row"],
1665
1665
  gap: [null, null, null, 8],
1666
1666
  children: U == null ? void 0 : U.map(
1667
- (O, He) => /* @__PURE__ */ t.jsx(
1668
- L,
1667
+ (A, me) => /* @__PURE__ */ t.jsx(
1668
+ k,
1669
1669
  {
1670
1670
  flexDirection: ["column"],
1671
1671
  gap: [null, null, null, 5],
1672
1672
  marginLeft: [null, null, null, -2],
1673
- children: O == null ? void 0 : O.map(
1674
- (K) => /* @__PURE__ */ t.jsx(
1675
- ze,
1673
+ children: A == null ? void 0 : A.map(
1674
+ (X) => /* @__PURE__ */ t.jsx(
1675
+ Ye,
1676
1676
  {
1677
- label: K.label,
1678
- href: K.href,
1679
- additionalContent: K.additionalContent,
1680
- linkComponent: s,
1681
- onClick: () => j == null ? void 0 : j(K.label)
1677
+ label: X.label,
1678
+ href: X.href,
1679
+ additionalContent: X.additionalContent,
1680
+ linkComponent: a,
1681
+ onClick: () => w == null ? void 0 : w(X.label)
1682
1682
  },
1683
- K.label
1683
+ X.label
1684
1684
  )
1685
1685
  )
1686
1686
  },
1687
- He
1687
+ me
1688
1688
  )
1689
1689
  )
1690
1690
  }
1691
1691
  )
1692
1692
  ] },
1693
- `${i.title}-${H}`
1693
+ `${o.title}-${D}`
1694
1694
  );
1695
1695
  }) }
1696
- ) : null, ne = y != null && y.spotlightCards ? (he = y.spotlightCards) == null ? void 0 : he.map(
1697
- (i) => /* @__PURE__ */ t.jsx(fn, { ...i }, i.title)
1696
+ ) : null, Fe = y != null && y.spotlightCards ? (xe = y.spotlightCards) == null ? void 0 : xe.map(
1697
+ (o) => /* @__PURE__ */ t.jsx(pn, { ...o }, o.title)
1698
1698
  ) : /* @__PURE__ */ t.jsx(E, {});
1699
1699
  return /* @__PURE__ */ t.jsxs(
1700
1700
  t.Fragment,
1701
1701
  { children: [
1702
1702
  /* @__PURE__ */ t.jsx(
1703
- hn,
1703
+ vn,
1704
1704
  {
1705
- desktopTopButtons: te,
1705
+ desktopTopButtons: ge,
1706
1706
  kitRegistrationElement: /* @__PURE__ */ t.jsx(
1707
- Oe,
1707
+ De,
1708
1708
  {
1709
1709
  as: G,
1710
1710
  href: m,
1711
- onClick: $,
1711
+ onClick: Q,
1712
1712
  backgroundColor: "tints.cream",
1713
1713
  children: "Register Kit"
1714
1714
  }
1715
1715
  ),
1716
1716
  profileElement: /* @__PURE__ */ t.jsx(
1717
1717
  G,
1718
- { href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ie, { as: ct }), "aria-label": "Profile" }) }
1718
+ { href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(ae, { icon: /* @__PURE__ */ t.jsx(ie, { as: ut }), "aria-label": "Profile" }) }
1719
1719
  ),
1720
1720
  cartElement: /* @__PURE__ */ t.jsx(
1721
- vn,
1721
+ gn,
1722
1722
  {
1723
1723
  "aria-label": "Cart",
1724
- count: b,
1725
- onClick: o
1724
+ count: x,
1725
+ onClick: s
1726
1726
  }
1727
1727
  ),
1728
1728
  onSearchClick: () => {
1729
- q(!0), x == null || x();
1729
+ B(!0), v == null || v();
1730
1730
  },
1731
1731
  onMenuClick: () => {
1732
- me(!0), S == null || S();
1732
+ H(!0), L == null || L();
1733
1733
  },
1734
- hasSearch: w,
1735
- logoLink: d,
1736
- onHeightChange: De,
1737
- linkComponent: s,
1738
- onLogoClick: T
1734
+ hasSearch: j,
1735
+ logoLink: f,
1736
+ linkComponent: a,
1737
+ onLogoClick: _,
1738
+ setTopOffset: ye
1739
1739
  }
1740
1740
  ),
1741
1741
  /* @__PURE__ */ t.jsx(
1742
- Ue,
1742
+ ze,
1743
1743
  {
1744
- isOpen: J,
1745
- onClose: Te,
1746
- title: h,
1747
- navDrawerLinks: Ie,
1748
- bottomNavButtons: Fe,
1744
+ isOpen: ue,
1745
+ onClose: pe,
1746
+ title: p,
1747
+ navDrawerLinks: ne,
1748
+ bottomNavButtons: ke,
1749
1749
  hasBackButton: !1,
1750
- navHeight: se
1750
+ topOffset: Y
1751
1751
  }
1752
1752
  ),
1753
1753
  /* @__PURE__ */ t.jsx(
1754
- Ue,
1754
+ ze,
1755
1755
  {
1756
1756
  isOpen: !!y,
1757
- onClose: () => N(null),
1757
+ onClose: () => {
1758
+ pe(), V(null);
1759
+ },
1758
1760
  title: (y == null ? void 0 : y.label) || "",
1759
1761
  navDrawerLinks: Ae,
1760
- onBackClick: fe,
1761
- spotlightCards: ne,
1762
+ onBackClick: te,
1763
+ spotlightCards: Fe,
1762
1764
  hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
1763
- navHeight: se,
1764
- bottomButton: y == null ? void 0 : y.bottomButton
1765
+ bottomButton: y == null ? void 0 : y.bottomButton,
1766
+ topOffset: Y
1765
1767
  }
1766
1768
  ),
1767
1769
  /* @__PURE__ */ t.jsx(
1768
- Ue,
1770
+ ze,
1769
1771
  {
1770
- isOpen: Ce,
1771
- onClose: () => q(!1),
1772
+ isOpen: ce,
1773
+ onClose: () => B(!1),
1772
1774
  title: "Search",
1773
- navHeight: se,
1774
- navDrawerLinks: Se,
1775
- onSearch: Ee,
1775
+ navDrawerLinks: Te,
1776
+ onSearch: Re,
1776
1777
  hasSearch: !0,
1777
- hasBackButton: !1
1778
+ hasBackButton: !1,
1779
+ topOffset: Y
1778
1780
  }
1779
1781
  )
1780
1782
  ] }
1781
1783
  );
1782
1784
  };
1783
1785
  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,
1793
- oe as TopNavIconButton,
1794
- hn as TopNavigation
1786
+ gn as BasketButton,
1787
+ Tn as CategoryLabel,
1788
+ De as NavButton,
1789
+ kn as NavSkeleton,
1790
+ ze as NavbarDrawer,
1791
+ Ye as NavbarDrawerLink,
1792
+ Ln as NavigationBar,
1793
+ pn as SpotlightCard,
1794
+ Sn as Stepper,
1795
+ ae as TopNavIconButton,
1796
+ vn as TopNavigation
1795
1797
  };