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