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