@everlywell/consumer-ui 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -6
- package/index.mjs +316 -296
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts +3 -3
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.d.ts.map +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts +1 -1
- package/lib/components/Navbar/NavSkeleton/NavSkeleton.stories.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSteps as Wt, Box as E, Stepper as Mt, Icon as
|
|
1
|
+
import { useSteps as Wt, Box as E, Stepper as Mt, Icon as ae, Flex as T, Text as Z, Link as G, Button as vt, Image as Bt, IconButton as Vt, VStack as Nt, Skeleton as Ve, HStack as ot, SkeletonCircle as Le, DrawerContent as Yt, DrawerOverlay as zt, Drawer as Ut, DrawerHeader as Gt, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
|
|
2
2
|
import Ze, { useEffect as q, forwardRef as gt, useRef as Jt, useCallback as xt, useState as W } from "react";
|
|
3
3
|
import { Text as qt, useBreakpointValue as mt, InputGroup as Qt, Input as en, InputRightElement as tn, Icon as nn } from "@chakra-ui/react";
|
|
4
4
|
import { CaretRight as st, MagnifyingGlass as bt, List as rn, Basket as ln, CaretLeft as an, X as on, User as ut, QrCode as sn } from "@phosphor-icons/react";
|
|
@@ -18,16 +18,16 @@ function cn() {
|
|
|
18
18
|
if (ct)
|
|
19
19
|
return Ce;
|
|
20
20
|
ct = 1;
|
|
21
|
-
var l = Ze,
|
|
21
|
+
var l = Ze, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function m(R, c, x) {
|
|
23
|
-
var
|
|
23
|
+
var s, b = {}, w = null, u = null;
|
|
24
24
|
x !== void 0 && (w = "" + x), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (u = c.ref);
|
|
25
|
-
for (
|
|
26
|
-
|
|
25
|
+
for (s in c)
|
|
26
|
+
d.call(c, s) && !v.hasOwnProperty(s) && (b[s] = c[s]);
|
|
27
27
|
if (R && R.defaultProps)
|
|
28
|
-
for (
|
|
29
|
-
b[
|
|
30
|
-
return { $$typeof:
|
|
28
|
+
for (s in c = R.defaultProps, c)
|
|
29
|
+
b[s] === void 0 && (b[s] = c[s]);
|
|
30
|
+
return { $$typeof: o, type: R, key: w, ref: u, props: b, _owner: j.current };
|
|
31
31
|
}
|
|
32
32
|
return Ce.Fragment = p, Ce.jsx = m, Ce.jsxs = m, Ce;
|
|
33
33
|
}
|
|
@@ -41,10 +41,10 @@ var je = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
var l = Ze,
|
|
44
|
+
var dt;
|
|
45
|
+
function dn() {
|
|
46
|
+
return dt || (dt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var l = Ze, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), R = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), L = Symbol.iterator, M = "@@iterator";
|
|
48
48
|
function Q(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
@@ -56,10 +56,10 @@ function fn() {
|
|
|
56
56
|
{
|
|
57
57
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
58
58
|
r[i - 1] = arguments[i];
|
|
59
|
-
|
|
59
|
+
se("error", e, r);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function se(e, n, r) {
|
|
63
63
|
{
|
|
64
64
|
var i = F.ReactDebugCurrentFrame, g = i.getStackAddendum();
|
|
65
65
|
g !== "" && (n += "%s", r = r.concat([g]));
|
|
@@ -69,10 +69,10 @@ function fn() {
|
|
|
69
69
|
C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var ue = !1, ce = !1, H = !1, ee = !1, B = !1, y;
|
|
73
73
|
y = Symbol.for("react.module.reference");
|
|
74
74
|
function V(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || B || e === j || e === x || e === s || ee || e === u || ue || ce || H || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === b || e.$$typeof === m || e.$$typeof === R || e.$$typeof === c || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
@@ -85,7 +85,7 @@ function fn() {
|
|
|
85
85
|
var g = n.displayName || n.name || "";
|
|
86
86
|
return g !== "" ? r + "(" + g + ")" : r;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function de(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
91
|
function I(e) {
|
|
@@ -96,7 +96,7 @@ function fn() {
|
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case
|
|
99
|
+
case d:
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case p:
|
|
102
102
|
return "Portal";
|
|
@@ -106,17 +106,17 @@ function fn() {
|
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case x:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case s:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case R:
|
|
115
115
|
var n = e;
|
|
116
|
-
return
|
|
116
|
+
return de(n) + ".Consumer";
|
|
117
117
|
case m:
|
|
118
118
|
var r = e;
|
|
119
|
-
return
|
|
119
|
+
return de(r._context) + ".Provider";
|
|
120
120
|
case c:
|
|
121
121
|
return we(e, e.render, "ForwardRef");
|
|
122
122
|
case b:
|
|
@@ -133,18 +133,18 @@ function fn() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var N = Object.assign, Y = 0, ye, Ee,
|
|
137
|
-
function
|
|
136
|
+
var N = Object.assign, Y = 0, ye, Ee, te, Re, fe, _e, Se;
|
|
137
|
+
function ke() {
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
ke.__reactDisabledLog = !0;
|
|
140
140
|
function pe() {
|
|
141
141
|
{
|
|
142
142
|
if (Y === 0) {
|
|
143
|
-
ye = console.log, Ee = console.info,
|
|
143
|
+
ye = console.log, Ee = console.info, te = console.warn, Re = console.error, fe = console.group, _e = console.groupCollapsed, Se = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: ke,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -176,13 +176,13 @@ function fn() {
|
|
|
176
176
|
value: Ee
|
|
177
177
|
}),
|
|
178
178
|
warn: N({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: te
|
|
180
180
|
}),
|
|
181
181
|
error: N({}, e, {
|
|
182
182
|
value: Re
|
|
183
183
|
}),
|
|
184
184
|
group: N({}, e, {
|
|
185
|
-
value:
|
|
185
|
+
value: fe
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: N({}, e, {
|
|
188
188
|
value: _e
|
|
@@ -196,7 +196,7 @@ function fn() {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
var he = F.ReactCurrentDispatcher, ve;
|
|
199
|
-
function
|
|
199
|
+
function ne(e, n, r) {
|
|
200
200
|
{
|
|
201
201
|
if (ve === void 0)
|
|
202
202
|
try {
|
|
@@ -209,16 +209,16 @@ function fn() {
|
|
|
209
209
|
` + ve + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var ge = !1,
|
|
212
|
+
var ge = !1, re;
|
|
213
213
|
{
|
|
214
214
|
var Ie = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
-
|
|
215
|
+
re = new Ie();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Te(e, n) {
|
|
218
218
|
if (!e || ge)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var r =
|
|
221
|
+
var r = re.get(e);
|
|
222
222
|
if (r !== void 0)
|
|
223
223
|
return r;
|
|
224
224
|
}
|
|
@@ -262,31 +262,31 @@ function fn() {
|
|
|
262
262
|
}
|
|
263
263
|
} catch (P) {
|
|
264
264
|
if (P && i && typeof P.stack == "string") {
|
|
265
|
-
for (var
|
|
265
|
+
for (var f = P.stack.split(`
|
|
266
266
|
`), O = i.stack.split(`
|
|
267
|
-
`), S =
|
|
268
|
-
|
|
269
|
-
for (; S >= 1 &&
|
|
270
|
-
if (
|
|
271
|
-
if (S !== 1 ||
|
|
267
|
+
`), S = f.length - 1, k = O.length - 1; S >= 1 && k >= 0 && f[S] !== O[k]; )
|
|
268
|
+
k--;
|
|
269
|
+
for (; S >= 1 && k >= 0; S--, k--)
|
|
270
|
+
if (f[S] !== O[k]) {
|
|
271
|
+
if (S !== 1 || k !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (S--,
|
|
273
|
+
if (S--, k--, k < 0 || f[S] !== O[k]) {
|
|
274
274
|
var $ = `
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
275
|
+
` + f[S].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, $), $;
|
|
277
277
|
}
|
|
278
|
-
while (S >= 1 &&
|
|
278
|
+
while (S >= 1 && k >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
283
|
ge = !1, he.current = C, Pe(), Error.prepareStackTrace = g;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var ie = e ? e.displayName || e.name : "", J = ie ? ne(ie) : "";
|
|
286
|
+
return typeof e == "function" && re.set(e, J), J;
|
|
287
287
|
}
|
|
288
288
|
function Ae(e, n, r) {
|
|
289
|
-
return
|
|
289
|
+
return Te(e, !1);
|
|
290
290
|
}
|
|
291
291
|
function Fe(e) {
|
|
292
292
|
var n = e.prototype;
|
|
@@ -296,14 +296,14 @@ function fn() {
|
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return Te(e, Fe(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return ne(e);
|
|
302
302
|
switch (e) {
|
|
303
303
|
case x:
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
304
|
+
return ne("Suspense");
|
|
305
|
+
case s:
|
|
306
|
+
return ne("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
@@ -321,30 +321,30 @@ function fn() {
|
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var z = Object.prototype.hasOwnProperty, xe = {},
|
|
324
|
+
var z = Object.prototype.hasOwnProperty, xe = {}, a = F.ReactDebugCurrentFrame;
|
|
325
325
|
function D(e) {
|
|
326
326
|
if (e) {
|
|
327
327
|
var n = e._owner, r = K(e.type, e._source, n ? n.type : null);
|
|
328
|
-
|
|
328
|
+
a.setExtraStackFrame(r);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
a.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
332
|
function U(e, n, r, i, g) {
|
|
333
333
|
{
|
|
334
334
|
var C = Function.call.bind(z);
|
|
335
335
|
for (var h in e)
|
|
336
336
|
if (C(e, h)) {
|
|
337
|
-
var
|
|
337
|
+
var f = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof e[h] != "function") {
|
|
340
340
|
var O = Error((i || "React class") + ": " + r + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
341
|
throw O.name = "Invariant Violation", O;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
f = e[h](n, h, i, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (S) {
|
|
345
|
-
|
|
345
|
+
f = S;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
f && !(f instanceof Error) && (D(g), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", r, h, typeof f), D(null)), f instanceof Error && !(f.message in xe) && (xe[f.message] = !0, D(g), _("Failed %s type: %s", r, f.message), D(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -424,9 +424,9 @@ function fn() {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
var St = function(e, n, r, i, g, C, h) {
|
|
427
|
-
var
|
|
427
|
+
var f = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
|
-
$$typeof:
|
|
429
|
+
$$typeof: o,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: e,
|
|
432
432
|
key: n,
|
|
@@ -435,27 +435,27 @@ function fn() {
|
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
436
|
_owner: C
|
|
437
437
|
};
|
|
438
|
-
return
|
|
438
|
+
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !0,
|
|
442
442
|
value: !1
|
|
443
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(f, "_self", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
447
|
value: i
|
|
448
|
-
}), Object.defineProperty(
|
|
448
|
+
}), Object.defineProperty(f, "_source", {
|
|
449
449
|
configurable: !1,
|
|
450
450
|
enumerable: !1,
|
|
451
451
|
writable: !1,
|
|
452
452
|
value: g
|
|
453
|
-
}), Object.freeze && (Object.freeze(
|
|
453
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function kt(e, n, r, i, g) {
|
|
456
456
|
{
|
|
457
|
-
var C, h = {},
|
|
458
|
-
r !== void 0 && (Je(r),
|
|
457
|
+
var C, h = {}, f = null, O = null;
|
|
458
|
+
r !== void 0 && (Je(r), f = "" + r), yt(n) && (Je(n.key), f = "" + n.key), wt(n) && (O = n.ref, Et(n, g));
|
|
459
459
|
for (C in n)
|
|
460
460
|
z.call(n, C) && !jt.hasOwnProperty(C) && (h[C] = n[C]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
@@ -463,15 +463,15 @@ function fn() {
|
|
|
463
463
|
for (C in S)
|
|
464
464
|
h[C] === void 0 && (h[C] = S[C]);
|
|
465
465
|
}
|
|
466
|
-
if (
|
|
467
|
-
var
|
|
468
|
-
|
|
466
|
+
if (f || O) {
|
|
467
|
+
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
+
f && Rt(h, k), O && _t(h, k);
|
|
469
469
|
}
|
|
470
|
-
return St(e,
|
|
470
|
+
return St(e, f, O, g, i, be.current, h);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var $e = F.ReactCurrentOwner, et = F.ReactDebugCurrentFrame;
|
|
474
|
-
function
|
|
474
|
+
function le(e) {
|
|
475
475
|
if (e) {
|
|
476
476
|
var n = e._owner, r = K(e.type, e._source, n ? n.type : null);
|
|
477
477
|
et.setExtraStackFrame(r);
|
|
@@ -481,7 +481,7 @@ function fn() {
|
|
|
481
481
|
var We;
|
|
482
482
|
We = !1;
|
|
483
483
|
function Me(e) {
|
|
484
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
484
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
485
485
|
}
|
|
486
486
|
function tt() {
|
|
487
487
|
{
|
|
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Tt(e) {
|
|
499
499
|
{
|
|
500
500
|
if (e !== void 0) {
|
|
501
501
|
var n = e.fileName.replace(/^.*[\\\/]/, ""), r = e.lineNumber;
|
|
@@ -529,7 +529,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
529
529
|
return;
|
|
530
530
|
nt[r] = !0;
|
|
531
531
|
var i = "";
|
|
532
|
-
e && e._owner && e._owner !== $e.current && (i = " It was passed a child from " + I(e._owner.type) + "."),
|
|
532
|
+
e && e._owner && e._owner !== $e.current && (i = " It was passed a child from " + I(e._owner.type) + "."), le(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, i), le(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function lt(e, n) {
|
|
@@ -581,11 +581,11 @@ Check the top-level render call using <` + r + ">.");
|
|
|
581
581
|
for (var n = Object.keys(e.props), r = 0; r < n.length; r++) {
|
|
582
582
|
var i = n[r];
|
|
583
583
|
if (i !== "children" && i !== "key") {
|
|
584
|
-
|
|
584
|
+
le(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), le(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (
|
|
588
|
+
e.ref !== null && (le(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), le(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var it = {};
|
|
@@ -593,23 +593,23 @@ Check the top-level render call using <` + r + ">.");
|
|
|
593
593
|
{
|
|
594
594
|
var h = V(e);
|
|
595
595
|
if (!h) {
|
|
596
|
-
var
|
|
597
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
598
|
-
var O =
|
|
599
|
-
O ?
|
|
596
|
+
var f = "";
|
|
597
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
+
var O = Tt(g);
|
|
599
|
+
O ? f += O : f += tt();
|
|
600
600
|
var S;
|
|
601
|
-
e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof ===
|
|
601
|
+
e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (I(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, f);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
return
|
|
603
|
+
var k = kt(e, n, r, g, C);
|
|
604
|
+
if (k == null)
|
|
605
|
+
return k;
|
|
606
606
|
if (h) {
|
|
607
607
|
var $ = n.children;
|
|
608
608
|
if ($ !== void 0)
|
|
609
609
|
if (i)
|
|
610
610
|
if (me($)) {
|
|
611
|
-
for (var
|
|
612
|
-
lt($[
|
|
611
|
+
for (var ie = 0; ie < $.length; ie++)
|
|
612
|
+
lt($[ie], e);
|
|
613
613
|
Object.freeze && Object.freeze($);
|
|
614
614
|
} else
|
|
615
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.");
|
|
@@ -630,7 +630,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
630
|
<%s key={someKey} {...props} />`, Be, J, Ht, J), it[J + Be] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return e ===
|
|
633
|
+
return e === d ? Ot(k) : Dt(k), k;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
function Pt(e, n, r) {
|
|
@@ -640,27 +640,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
640
640
|
return at(e, n, r, !1);
|
|
641
641
|
}
|
|
642
642
|
var At = It, Ft = Pt;
|
|
643
|
-
je.Fragment =
|
|
643
|
+
je.Fragment = d, je.jsx = At, je.jsxs = Ft;
|
|
644
644
|
}()), je;
|
|
645
645
|
}
|
|
646
|
-
process.env.NODE_ENV === "production" ? Ue.exports = cn() : Ue.exports =
|
|
646
|
+
process.env.NODE_ENV === "production" ? Ue.exports = cn() : Ue.exports = dn();
|
|
647
647
|
var t = Ue.exports;
|
|
648
|
-
const Ne = 60,
|
|
648
|
+
const Ne = 60, ft = 6, fn = (l) => {
|
|
649
649
|
const {
|
|
650
|
-
activeStepIndex:
|
|
650
|
+
activeStepIndex: o,
|
|
651
651
|
hideIndicators: p = !1,
|
|
652
|
-
steps:
|
|
652
|
+
steps: d,
|
|
653
653
|
stepperTheme: j = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
657
|
} = l, { activeStep: v, setActiveStep: m } = Wt({
|
|
658
|
-
index:
|
|
659
|
-
count:
|
|
658
|
+
index: o,
|
|
659
|
+
count: d.length
|
|
660
660
|
});
|
|
661
661
|
return q(() => {
|
|
662
|
-
m(
|
|
663
|
-
}, [
|
|
662
|
+
m(o);
|
|
663
|
+
}, [o, m]), /* @__PURE__ */ t.jsx(
|
|
664
664
|
E,
|
|
665
665
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
666
666
|
Mt,
|
|
@@ -670,17 +670,17 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
670
670
|
width: "100%",
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
|
-
children:
|
|
674
|
-
const x = v === c,
|
|
673
|
+
children: d.map((R, c) => {
|
|
674
|
+
const x = v === c, s = c === 0, b = c === d.length - 1, w = v > c;
|
|
675
675
|
let u = `${Ne}px`;
|
|
676
|
-
const L = `calc(100% - ((${Ne * (
|
|
677
|
-
return x ? u = L : (
|
|
676
|
+
const L = `calc(100% - ((${Ne * (d.length - 1)}px) - (${d.length - 1} * ${ft * 2}px)))`;
|
|
677
|
+
return x ? u = L : (s || b) && (u = `${Ne - ft}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
E,
|
|
679
679
|
{
|
|
680
680
|
width: u,
|
|
681
681
|
opacity: w || x ? 1 : 0.2,
|
|
682
682
|
paddingRight: b ? "0" : "6px",
|
|
683
|
-
paddingLeft:
|
|
683
|
+
paddingLeft: s ? "0" : "6px",
|
|
684
684
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
685
685
|
children: /* @__PURE__ */ t.jsx(
|
|
686
686
|
E,
|
|
@@ -709,24 +709,24 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
709
709
|
}
|
|
710
710
|
) }
|
|
711
711
|
);
|
|
712
|
-
}, Sn = Ze.memo(
|
|
712
|
+
}, Sn = Ze.memo(fn), kn = ({
|
|
713
713
|
children: l,
|
|
714
|
-
...
|
|
714
|
+
...o
|
|
715
715
|
}) => /* @__PURE__ */ t.jsx(
|
|
716
716
|
qt,
|
|
717
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...
|
|
718
|
-
), Oe = (l,
|
|
717
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
|
|
718
|
+
), Oe = (l, o) => {
|
|
719
719
|
const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
|
|
720
|
-
return
|
|
720
|
+
return o && !p ? {
|
|
721
721
|
to: l
|
|
722
722
|
} : {
|
|
723
723
|
href: l
|
|
724
724
|
};
|
|
725
725
|
}, Ye = gt(
|
|
726
|
-
(l,
|
|
726
|
+
(l, o) => {
|
|
727
727
|
const {
|
|
728
728
|
label: p,
|
|
729
|
-
additionalContent:
|
|
729
|
+
additionalContent: d,
|
|
730
730
|
mainTextFontSize: j,
|
|
731
731
|
linkComponent: v,
|
|
732
732
|
href: m,
|
|
@@ -735,7 +735,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
736
|
E,
|
|
737
737
|
{
|
|
738
|
-
ref:
|
|
738
|
+
ref: o,
|
|
739
739
|
as: c,
|
|
740
740
|
display: "flex",
|
|
741
741
|
alignItems: "center",
|
|
@@ -752,7 +752,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
752
752
|
...R,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ t.jsx(
|
|
755
|
-
|
|
755
|
+
ae,
|
|
756
756
|
{
|
|
757
757
|
display: ["none", null, null, "block"],
|
|
758
758
|
as: st,
|
|
@@ -764,7 +764,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
/* @__PURE__ */ t.jsxs(
|
|
767
|
-
|
|
767
|
+
T,
|
|
768
768
|
{ alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
|
|
769
769
|
/* @__PURE__ */ t.jsx(
|
|
770
770
|
Z,
|
|
@@ -774,7 +774,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
774
774
|
children: p
|
|
775
775
|
}
|
|
776
776
|
),
|
|
777
|
-
|
|
777
|
+
d && (typeof d == "string" ? /* @__PURE__ */ t.jsx(
|
|
778
778
|
Z,
|
|
779
779
|
{
|
|
780
780
|
fontSize: ["xl", null, null, "lg"],
|
|
@@ -785,11 +785,11 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
785
785
|
color: "viridian.base"
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
|
-
children:
|
|
788
|
+
children: d
|
|
789
789
|
}
|
|
790
|
-
) :
|
|
790
|
+
) : d),
|
|
791
791
|
/* @__PURE__ */ t.jsx(
|
|
792
|
-
|
|
792
|
+
ae,
|
|
793
793
|
{
|
|
794
794
|
display: ["block", null, null, "none"],
|
|
795
795
|
as: st,
|
|
@@ -807,12 +807,12 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
809
|
), De = gt(
|
|
810
|
-
(l,
|
|
811
|
-
const { children: p, isSelected:
|
|
810
|
+
(l, o) => {
|
|
811
|
+
const { children: p, isSelected: d, ...j } = l, v = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
813
|
vt,
|
|
814
814
|
{
|
|
815
|
-
ref:
|
|
815
|
+
ref: o,
|
|
816
816
|
borderRadius: "full",
|
|
817
817
|
backgroundColor: v,
|
|
818
818
|
fontSize: "lg !important",
|
|
@@ -838,23 +838,23 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
838
838
|
}
|
|
839
839
|
), pn = ({
|
|
840
840
|
title: l,
|
|
841
|
-
description:
|
|
841
|
+
description: o,
|
|
842
842
|
imageSrc: p,
|
|
843
|
-
imageElement:
|
|
843
|
+
imageElement: d,
|
|
844
844
|
button: j,
|
|
845
845
|
backgroundColor: v = "viridian.wash",
|
|
846
846
|
onClick: m,
|
|
847
847
|
href: R,
|
|
848
848
|
linkComponent: c
|
|
849
849
|
}) => {
|
|
850
|
-
const x = "80px",
|
|
850
|
+
const x = "80px", s = "200px", b = "272px", w = c || G, u = Oe(R, !!c), L = mt({
|
|
851
851
|
base: !1,
|
|
852
852
|
tablet: !1,
|
|
853
853
|
largeTablet: !1,
|
|
854
854
|
desktop: !0
|
|
855
855
|
});
|
|
856
856
|
return /* @__PURE__ */ t.jsxs(
|
|
857
|
-
|
|
857
|
+
T,
|
|
858
858
|
{
|
|
859
859
|
direction: ["row", null, null, "column"],
|
|
860
860
|
alignItems: ["center"],
|
|
@@ -875,7 +875,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
875
875
|
border: "1px solid",
|
|
876
876
|
borderColor: "tints.white"
|
|
877
877
|
},
|
|
878
|
-
as: L ?
|
|
878
|
+
as: L ? T : w,
|
|
879
879
|
...L ? {} : u,
|
|
880
880
|
children: [
|
|
881
881
|
/* @__PURE__ */ t.jsx(
|
|
@@ -889,7 +889,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
889
889
|
{
|
|
890
890
|
src: p,
|
|
891
891
|
objectFit: "cover",
|
|
892
|
-
height: [x, null, null,
|
|
892
|
+
height: [x, null, null, s],
|
|
893
893
|
width: "100%",
|
|
894
894
|
alt: "",
|
|
895
895
|
"data-testid": "spotlight-card-image"
|
|
@@ -897,15 +897,15 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
897
897
|
) : /* @__PURE__ */ t.jsx(
|
|
898
898
|
E,
|
|
899
899
|
{
|
|
900
|
-
height: [x, null, null,
|
|
900
|
+
height: [x, null, null, s],
|
|
901
901
|
overflow: "hidden",
|
|
902
|
-
children:
|
|
902
|
+
children: d
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
}
|
|
906
906
|
),
|
|
907
907
|
/* @__PURE__ */ t.jsxs(
|
|
908
|
-
|
|
908
|
+
T,
|
|
909
909
|
{
|
|
910
910
|
direction: ["column", null, null, "row"],
|
|
911
911
|
justifyContent: [null, null, null, "space-between"],
|
|
@@ -927,7 +927,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
927
927
|
),
|
|
928
928
|
/* @__PURE__ */ t.jsx(
|
|
929
929
|
Z,
|
|
930
|
-
{ fontSize: "sm", color: "tints.black", children:
|
|
930
|
+
{ fontSize: "sm", color: "tints.black", children: o }
|
|
931
931
|
)
|
|
932
932
|
] }
|
|
933
933
|
),
|
|
@@ -938,7 +938,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
},
|
|
941
|
+
}, oe = (l) => /* @__PURE__ */ t.jsx(
|
|
942
942
|
Vt,
|
|
943
943
|
{
|
|
944
944
|
size: "sm",
|
|
@@ -985,16 +985,16 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
985
985
|
}
|
|
986
986
|
), vn = ({
|
|
987
987
|
desktopTopButtons: l,
|
|
988
|
-
kitRegistrationElement:
|
|
988
|
+
kitRegistrationElement: o,
|
|
989
989
|
profileElement: p,
|
|
990
|
-
cartElement:
|
|
990
|
+
cartElement: d,
|
|
991
991
|
onSearchClick: j,
|
|
992
992
|
onMenuClick: v,
|
|
993
993
|
hasSearch: m = !1,
|
|
994
994
|
logoLink: R = "https://www.everlywell.com",
|
|
995
995
|
setTopOffset: c,
|
|
996
996
|
linkComponent: x,
|
|
997
|
-
onLogoClick:
|
|
997
|
+
onLogoClick: s
|
|
998
998
|
}) => {
|
|
999
999
|
const b = Jt(null), w = xt(() => {
|
|
1000
1000
|
if (b.current) {
|
|
@@ -1019,47 +1019,47 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1019
1019
|
zIndex: ["sticky", null, null, "tooltip"],
|
|
1020
1020
|
onMouseEnter: w,
|
|
1021
1021
|
children: /* @__PURE__ */ t.jsxs(
|
|
1022
|
-
|
|
1022
|
+
T,
|
|
1023
1023
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1024
1024
|
/* @__PURE__ */ t.jsxs(
|
|
1025
|
-
|
|
1025
|
+
T,
|
|
1026
1026
|
{ alignItems: "center", gap: "5", children: [
|
|
1027
1027
|
/* @__PURE__ */ t.jsx(
|
|
1028
1028
|
E,
|
|
1029
1029
|
{
|
|
1030
1030
|
"aria-label": "Go to homepage",
|
|
1031
|
-
onClick:
|
|
1031
|
+
onClick: s,
|
|
1032
1032
|
as: x || G,
|
|
1033
1033
|
...Oe(R, !!x),
|
|
1034
1034
|
children: /* @__PURE__ */ t.jsx(hn, {})
|
|
1035
1035
|
}
|
|
1036
1036
|
),
|
|
1037
1037
|
/* @__PURE__ */ t.jsx(
|
|
1038
|
-
|
|
1038
|
+
T,
|
|
1039
1039
|
{ display: ["none", null, null, "flex"], children: l }
|
|
1040
1040
|
)
|
|
1041
1041
|
] }
|
|
1042
1042
|
),
|
|
1043
1043
|
/* @__PURE__ */ t.jsxs(
|
|
1044
|
-
|
|
1044
|
+
T,
|
|
1045
1045
|
{ alignItems: "center", gap: "2", children: [
|
|
1046
1046
|
/* @__PURE__ */ t.jsx(
|
|
1047
1047
|
E,
|
|
1048
|
-
{ display: ["none", null, null, "block"], children:
|
|
1048
|
+
{ display: ["none", null, null, "block"], children: o }
|
|
1049
1049
|
),
|
|
1050
1050
|
m ? /* @__PURE__ */ t.jsx(
|
|
1051
|
-
|
|
1051
|
+
oe,
|
|
1052
1052
|
{
|
|
1053
1053
|
"aria-label": "Search",
|
|
1054
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1054
|
+
icon: /* @__PURE__ */ t.jsx(ae, { as: bt }),
|
|
1055
1055
|
onClick: j
|
|
1056
1056
|
}
|
|
1057
1057
|
) : null,
|
|
1058
|
-
|
|
1058
|
+
d,
|
|
1059
1059
|
/* @__PURE__ */ t.jsx(
|
|
1060
1060
|
E,
|
|
1061
1061
|
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1062
|
-
|
|
1062
|
+
oe,
|
|
1063
1063
|
{
|
|
1064
1064
|
icon: /* @__PURE__ */ t.jsx(rn, {}),
|
|
1065
1065
|
"aria-label": "menu",
|
|
@@ -1077,11 +1077,11 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1077
1077
|
);
|
|
1078
1078
|
}, gn = ({
|
|
1079
1079
|
count: l = 0,
|
|
1080
|
-
...
|
|
1080
|
+
...o
|
|
1081
1081
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1082
1082
|
E,
|
|
1083
1083
|
{ position: "relative", display: "inline-block", children: [
|
|
1084
|
-
/* @__PURE__ */ t.jsx(
|
|
1084
|
+
/* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ln, {}), ...o }),
|
|
1085
1085
|
l > 0 && /* @__PURE__ */ t.jsx(
|
|
1086
1086
|
E,
|
|
1087
1087
|
{
|
|
@@ -1104,48 +1104,68 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
)
|
|
1106
1106
|
] }
|
|
1107
|
-
),
|
|
1108
|
-
|
|
1109
|
-
showPromoButton:
|
|
1107
|
+
), Tn = ({
|
|
1108
|
+
numDesktopLinks: l = 5,
|
|
1109
|
+
showPromoButton: o = !1
|
|
1110
1110
|
}) => /* @__PURE__ */ t.jsx(
|
|
1111
1111
|
Nt,
|
|
1112
1112
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1113
1113
|
E,
|
|
1114
|
-
{
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1114
|
+
{
|
|
1115
|
+
paddingY: 4,
|
|
1116
|
+
paddingX: 6,
|
|
1117
|
+
borderBottomWidth: "1px",
|
|
1118
|
+
borderColor: "tints.lightCream",
|
|
1119
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1120
|
+
T,
|
|
1121
|
+
{ justify: "space-between", align: "center", children: [
|
|
1122
|
+
/* @__PURE__ */ t.jsx(Ve, { w: "120px", h: "48px" }),
|
|
1123
|
+
/* @__PURE__ */ t.jsxs(
|
|
1124
|
+
ot,
|
|
1125
|
+
{
|
|
1126
|
+
spacing: 8,
|
|
1127
|
+
marginLeft: 12,
|
|
1128
|
+
display: ["none", null, null, "flex"],
|
|
1129
|
+
"data-testid": "desktop-nav",
|
|
1130
|
+
children: [
|
|
1131
|
+
Array.from({ length: l }).map(
|
|
1132
|
+
(p, d) => /* @__PURE__ */ t.jsx(Ve, { width: "90px", height: "48px" }, d)
|
|
1133
|
+
),
|
|
1134
|
+
o && /* @__PURE__ */ t.jsx(Ve, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1135
|
+
]
|
|
1136
|
+
}
|
|
1137
|
+
),
|
|
1138
|
+
/* @__PURE__ */ t.jsxs(
|
|
1139
|
+
ot,
|
|
1140
|
+
{ spacing: 4, ml: "auto", children: [
|
|
1141
|
+
/* @__PURE__ */ t.jsx(
|
|
1142
|
+
Le,
|
|
1143
|
+
{
|
|
1144
|
+
width: "120px",
|
|
1145
|
+
height: "48px",
|
|
1146
|
+
display: ["none", null, null, "block"],
|
|
1147
|
+
"data-testid": "register-kit"
|
|
1148
|
+
}
|
|
1149
|
+
),
|
|
1150
|
+
" ",
|
|
1151
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1152
|
+
" ",
|
|
1153
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1154
|
+
" ",
|
|
1155
|
+
/* @__PURE__ */ t.jsx(Le, { width: "48px", height: "48px" }),
|
|
1156
|
+
" "
|
|
1157
|
+
] }
|
|
1158
|
+
)
|
|
1159
|
+
] }
|
|
1160
|
+
)
|
|
1161
|
+
}
|
|
1142
1162
|
) }
|
|
1143
|
-
), xn = (l,
|
|
1163
|
+
), xn = (l, o) => {
|
|
1144
1164
|
let p;
|
|
1145
|
-
return (...
|
|
1165
|
+
return (...d) => {
|
|
1146
1166
|
p && clearTimeout(p), p = setTimeout(() => {
|
|
1147
|
-
l(...
|
|
1148
|
-
},
|
|
1167
|
+
l(...d);
|
|
1168
|
+
}, o);
|
|
1149
1169
|
};
|
|
1150
1170
|
}, Ge = "nav-drawer-hover", pt = (l) => {
|
|
1151
1171
|
window.dispatchEvent(
|
|
@@ -1155,18 +1175,18 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1155
1175
|
cancelable: !0
|
|
1156
1176
|
})
|
|
1157
1177
|
);
|
|
1158
|
-
}, mn = (l = !1,
|
|
1178
|
+
}, mn = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", bn = Ke(Yt), Cn = Ke(zt), ze = ({
|
|
1159
1179
|
isOpen: l = !1,
|
|
1160
|
-
onClose:
|
|
1180
|
+
onClose: o,
|
|
1161
1181
|
title: p,
|
|
1162
|
-
navDrawerLinks:
|
|
1182
|
+
navDrawerLinks: d,
|
|
1163
1183
|
bottomNavButtons: j,
|
|
1164
1184
|
spotlightCards: v,
|
|
1165
1185
|
bottomButton: m,
|
|
1166
1186
|
hasBackButton: R = !0,
|
|
1167
1187
|
onBackClick: c,
|
|
1168
1188
|
hasOnlySpotlightCards: x = !1,
|
|
1169
|
-
hasSearch:
|
|
1189
|
+
hasSearch: s = !1,
|
|
1170
1190
|
onSearch: b = () => ({}),
|
|
1171
1191
|
topOffset: w
|
|
1172
1192
|
}) => {
|
|
@@ -1175,26 +1195,26 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1175
1195
|
tablet: !1,
|
|
1176
1196
|
largeTablet: !1,
|
|
1177
1197
|
desktop: !0
|
|
1178
|
-
}), L = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1),
|
|
1198
|
+
}), L = u ? "top" : "left", [M, Q] = W(0), [F, _] = W(!1), se = () => {
|
|
1179
1199
|
Q((H) => H + 1);
|
|
1180
|
-
},
|
|
1200
|
+
}, ue = xt(
|
|
1181
1201
|
xn((H) => {
|
|
1182
|
-
b(H),
|
|
1202
|
+
b(H), se();
|
|
1183
1203
|
}, 100),
|
|
1184
1204
|
[]
|
|
1185
1205
|
);
|
|
1186
1206
|
q(() => {
|
|
1187
1207
|
l && _(!0);
|
|
1188
1208
|
}, [l]);
|
|
1189
|
-
const
|
|
1190
|
-
l || (_(!1),
|
|
1209
|
+
const ce = () => {
|
|
1210
|
+
l || (_(!1), o());
|
|
1191
1211
|
};
|
|
1192
1212
|
return /* @__PURE__ */ t.jsx(
|
|
1193
1213
|
Ut,
|
|
1194
1214
|
{
|
|
1195
1215
|
isOpen: F || l,
|
|
1196
1216
|
onClose: () => {
|
|
1197
|
-
F && u ||
|
|
1217
|
+
F && u || o();
|
|
1198
1218
|
},
|
|
1199
1219
|
placement: L,
|
|
1200
1220
|
blockScrollOnMount: !1,
|
|
@@ -1227,13 +1247,13 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1227
1247
|
{
|
|
1228
1248
|
onClick: (H) => {
|
|
1229
1249
|
const B = H.target.closest("a");
|
|
1230
|
-
B && B.href === window.location.href &&
|
|
1250
|
+
B && B.href === window.location.href && o();
|
|
1231
1251
|
},
|
|
1232
1252
|
onMouseEnter: () => {
|
|
1233
|
-
|
|
1253
|
+
u && pt(!0);
|
|
1234
1254
|
},
|
|
1235
1255
|
onMouseLeave: () => {
|
|
1236
|
-
|
|
1256
|
+
u && pt(!1);
|
|
1237
1257
|
},
|
|
1238
1258
|
paddingTop: "4",
|
|
1239
1259
|
paddingX: [4, null, null, 12],
|
|
@@ -1242,7 +1262,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1242
1262
|
maxHeight: "100vh",
|
|
1243
1263
|
position: "relative",
|
|
1244
1264
|
top: u ? `${w}px !important` : void 0,
|
|
1245
|
-
onAnimationComplete:
|
|
1265
|
+
onAnimationComplete: ce,
|
|
1246
1266
|
...u ? {
|
|
1247
1267
|
initial: { height: 0, opacity: 0 },
|
|
1248
1268
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -1250,26 +1270,26 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1250
1270
|
transition: { duration: 0.3 }
|
|
1251
1271
|
} : {},
|
|
1252
1272
|
children: [
|
|
1253
|
-
!
|
|
1273
|
+
!s && u ? null : /* @__PURE__ */ t.jsxs(
|
|
1254
1274
|
Gt,
|
|
1255
1275
|
{
|
|
1256
1276
|
padding: "0",
|
|
1257
|
-
flexDirection:
|
|
1258
|
-
gap:
|
|
1277
|
+
flexDirection: s ? "column" : "row",
|
|
1278
|
+
gap: s ? "4" : "0",
|
|
1259
1279
|
children: [
|
|
1260
1280
|
u ? null : /* @__PURE__ */ t.jsxs(
|
|
1261
|
-
|
|
1281
|
+
T,
|
|
1262
1282
|
{
|
|
1263
1283
|
width: "100%",
|
|
1264
1284
|
justifyContent: "space-between",
|
|
1265
1285
|
alignItems: "center",
|
|
1266
1286
|
children: [
|
|
1267
1287
|
R ? /* @__PURE__ */ t.jsx(
|
|
1268
|
-
|
|
1288
|
+
oe,
|
|
1269
1289
|
{
|
|
1270
1290
|
icon: /* @__PURE__ */ t.jsx(an, {}),
|
|
1271
1291
|
onClick: () => {
|
|
1272
|
-
c && c(),
|
|
1292
|
+
c && c(), o();
|
|
1273
1293
|
},
|
|
1274
1294
|
"aria-label": "Back"
|
|
1275
1295
|
}
|
|
@@ -1283,24 +1303,24 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1283
1303
|
}
|
|
1284
1304
|
),
|
|
1285
1305
|
/* @__PURE__ */ t.jsx(
|
|
1286
|
-
|
|
1306
|
+
oe,
|
|
1287
1307
|
{
|
|
1288
1308
|
icon: /* @__PURE__ */ t.jsx(on, {}),
|
|
1289
|
-
onClick:
|
|
1309
|
+
onClick: o,
|
|
1290
1310
|
"aria-label": "Close"
|
|
1291
1311
|
}
|
|
1292
1312
|
)
|
|
1293
1313
|
]
|
|
1294
1314
|
}
|
|
1295
1315
|
),
|
|
1296
|
-
|
|
1316
|
+
s && /* @__PURE__ */ t.jsxs(
|
|
1297
1317
|
Qt,
|
|
1298
1318
|
{ width: "100%", children: [
|
|
1299
1319
|
/* @__PURE__ */ t.jsx(
|
|
1300
1320
|
en,
|
|
1301
1321
|
{
|
|
1302
1322
|
onChange: (H) => {
|
|
1303
|
-
|
|
1323
|
+
ue(H.target.value);
|
|
1304
1324
|
},
|
|
1305
1325
|
placeholder: "Search",
|
|
1306
1326
|
autoFocus: !0,
|
|
@@ -1346,7 +1366,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1346
1366
|
flexDirection: mn(
|
|
1347
1367
|
x,
|
|
1348
1368
|
u,
|
|
1349
|
-
|
|
1369
|
+
s
|
|
1350
1370
|
),
|
|
1351
1371
|
gap: "24px",
|
|
1352
1372
|
justifyContent: "space-between"
|
|
@@ -1369,14 +1389,14 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1369
1389
|
}
|
|
1370
1390
|
) : null,
|
|
1371
1391
|
/* @__PURE__ */ t.jsxs(
|
|
1372
|
-
|
|
1392
|
+
T,
|
|
1373
1393
|
{
|
|
1374
1394
|
position: [null, null, null, "relative"],
|
|
1375
1395
|
flexDirection: "column",
|
|
1376
1396
|
gap: "6",
|
|
1377
|
-
width: ["100%", null, null,
|
|
1397
|
+
width: ["100%", null, null, s ? null : "auto"],
|
|
1378
1398
|
children: [
|
|
1379
|
-
|
|
1399
|
+
d ? /* @__PURE__ */ t.jsx(E, { children: d }) : null,
|
|
1380
1400
|
j && !u ? /* @__PURE__ */ t.jsx(E, { children: j }) : null,
|
|
1381
1401
|
m ? /* @__PURE__ */ t.jsx(
|
|
1382
1402
|
E,
|
|
@@ -1405,58 +1425,58 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1405
1425
|
}
|
|
1406
1426
|
);
|
|
1407
1427
|
}, ht = (l) => {
|
|
1408
|
-
const
|
|
1409
|
-
return l.reduce((p,
|
|
1428
|
+
const o = /* @__PURE__ */ new Set();
|
|
1429
|
+
return l.reduce((p, d) => {
|
|
1410
1430
|
var v;
|
|
1411
|
-
const j = ((v =
|
|
1412
|
-
const c = R.links.filter((x) =>
|
|
1431
|
+
const j = ((v = d.sections) == null ? void 0 : v.reduce((m, R) => {
|
|
1432
|
+
const c = R.links.filter((x) => o.has(x.label) || x.isSearchable !== !0 ? !1 : (o.add(x.label), !0));
|
|
1413
1433
|
return [...m, ...c];
|
|
1414
1434
|
}, [])) ?? [];
|
|
1415
1435
|
return [...p, ...j];
|
|
1416
1436
|
}, []);
|
|
1417
1437
|
}, jn = ({
|
|
1418
1438
|
source: l,
|
|
1419
|
-
onSearchCallback:
|
|
1439
|
+
onSearchCallback: o,
|
|
1420
1440
|
isActive: p
|
|
1421
1441
|
}) => {
|
|
1422
|
-
const [
|
|
1423
|
-
if (!
|
|
1442
|
+
const [d, j] = W(""), [v, m] = W([]), R = (s, b) => {
|
|
1443
|
+
if (!s)
|
|
1424
1444
|
return [];
|
|
1425
|
-
const w =
|
|
1445
|
+
const w = s.toLowerCase();
|
|
1426
1446
|
return b.filter((u) => {
|
|
1427
1447
|
const L = u.label.toLowerCase().includes(w), M = typeof u.additionalContent == "string" && u.additionalContent.toLowerCase().includes(w);
|
|
1428
1448
|
return L || M;
|
|
1429
1449
|
}).sort((u, L) => u.label.localeCompare(L.label));
|
|
1430
|
-
}, c = (
|
|
1431
|
-
if (j(
|
|
1450
|
+
}, c = (s) => {
|
|
1451
|
+
if (j(s), !s) {
|
|
1432
1452
|
m([]);
|
|
1433
1453
|
return;
|
|
1434
1454
|
}
|
|
1435
|
-
const b = R(
|
|
1436
|
-
m(b),
|
|
1455
|
+
const b = R(s, l);
|
|
1456
|
+
m(b), o && o(s, b);
|
|
1437
1457
|
}, x = () => {
|
|
1438
1458
|
j(""), m([]);
|
|
1439
1459
|
};
|
|
1440
1460
|
return q(() => {
|
|
1441
1461
|
p || (j(""), m([]));
|
|
1442
1462
|
}, [p]), {
|
|
1443
|
-
query:
|
|
1463
|
+
query: d,
|
|
1444
1464
|
results: v,
|
|
1445
1465
|
handleClose: x,
|
|
1446
1466
|
handleSearch: c
|
|
1447
1467
|
};
|
|
1448
1468
|
}, Ln = ({
|
|
1449
1469
|
categories: l = [],
|
|
1450
|
-
onCartClick:
|
|
1470
|
+
onCartClick: o,
|
|
1451
1471
|
mainCategoryLabel: p = "Menu",
|
|
1452
|
-
logoLink:
|
|
1472
|
+
logoLink: d = "https://www.everlywell.com",
|
|
1453
1473
|
hasSearch: j = !0,
|
|
1454
1474
|
onSearchClick: v,
|
|
1455
1475
|
registrationUrl: m,
|
|
1456
1476
|
profileUrl: R = "https://secure.everlywell.com/login",
|
|
1457
1477
|
mobileBottomButtons: c = [],
|
|
1458
1478
|
numberOfCartItems: x = 0,
|
|
1459
|
-
linkComponent:
|
|
1479
|
+
linkComponent: s,
|
|
1460
1480
|
onSearchCallback: b,
|
|
1461
1481
|
onLinkClick: w,
|
|
1462
1482
|
onCategoryOpen: u,
|
|
@@ -1465,23 +1485,23 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1465
1485
|
onRegisterKitClick: Q,
|
|
1466
1486
|
onProfileClick: F,
|
|
1467
1487
|
onLogoClick: _,
|
|
1468
|
-
shopAllProductsUrl:
|
|
1469
|
-
onShopAllProductsClick:
|
|
1488
|
+
shopAllProductsUrl: se,
|
|
1489
|
+
onShopAllProductsClick: ue
|
|
1470
1490
|
}) => {
|
|
1471
1491
|
var K, z, xe;
|
|
1472
|
-
const [
|
|
1492
|
+
const [ce, H] = W(!1), [ee, B] = W(!1), [y, V] = W(null), [we, de] = W(!1), [I, N] = W(!1), [Y, ye] = W(0), {
|
|
1473
1493
|
query: Ee,
|
|
1474
|
-
results:
|
|
1494
|
+
results: te,
|
|
1475
1495
|
handleSearch: Re
|
|
1476
1496
|
} = jn({
|
|
1477
1497
|
source: ht(l),
|
|
1478
1498
|
onSearchCallback: b,
|
|
1479
|
-
isActive:
|
|
1480
|
-
}),
|
|
1481
|
-
|
|
1482
|
-
{ gap:
|
|
1483
|
-
|
|
1484
|
-
|
|
1499
|
+
isActive: ee
|
|
1500
|
+
}), fe = te.length > 0, _e = s || G, Se = Oe(se, !!s), ke = Ee && /* @__PURE__ */ t.jsxs(
|
|
1501
|
+
T,
|
|
1502
|
+
{ gap: fe ? "6" : 0, direction: "column", children: [
|
|
1503
|
+
fe ? /* @__PURE__ */ t.jsx(Z, { color: "tints.uiGrey", children: `${te.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1504
|
+
T,
|
|
1485
1505
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1486
1506
|
/* @__PURE__ */ t.jsx(
|
|
1487
1507
|
Z,
|
|
@@ -1491,7 +1511,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1491
1511
|
vt,
|
|
1492
1512
|
{
|
|
1493
1513
|
as: _e,
|
|
1494
|
-
onClick:
|
|
1514
|
+
onClick: ue,
|
|
1495
1515
|
_hover: { textDecoration: "none" },
|
|
1496
1516
|
width: ["100%", null, null, "auto"],
|
|
1497
1517
|
...Se,
|
|
@@ -1502,95 +1522,95 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1502
1522
|
),
|
|
1503
1523
|
/* @__PURE__ */ t.jsx(
|
|
1504
1524
|
Kt,
|
|
1505
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1506
|
-
(
|
|
1525
|
+
{ columns: [1, 1, 1, 4], children: te.map(
|
|
1526
|
+
(a, D) => /* @__PURE__ */ t.jsx(
|
|
1507
1527
|
Xt,
|
|
1508
1528
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1509
1529
|
Ye,
|
|
1510
1530
|
{
|
|
1511
|
-
href:
|
|
1512
|
-
label:
|
|
1513
|
-
additionalContent:
|
|
1514
|
-
linkComponent:
|
|
1531
|
+
href: a.href,
|
|
1532
|
+
label: a.label,
|
|
1533
|
+
additionalContent: a == null ? void 0 : a.additionalContent,
|
|
1534
|
+
linkComponent: s
|
|
1515
1535
|
}
|
|
1516
1536
|
) },
|
|
1517
|
-
`${
|
|
1537
|
+
`${a.label}-${D}`
|
|
1518
1538
|
)
|
|
1519
1539
|
) }
|
|
1520
1540
|
)
|
|
1521
1541
|
] }
|
|
1522
1542
|
), pe = () => {
|
|
1523
1543
|
H(!1), V(null);
|
|
1524
|
-
}, Pe = (
|
|
1525
|
-
V(
|
|
1526
|
-
}, he = (
|
|
1527
|
-
|
|
1544
|
+
}, Pe = (a) => {
|
|
1545
|
+
V(a);
|
|
1546
|
+
}, he = (a) => {
|
|
1547
|
+
de(!0), B(!1), (a.sections || a.spotlightCards) && V(a);
|
|
1528
1548
|
}, ve = () => {
|
|
1529
|
-
|
|
1549
|
+
de(!1);
|
|
1530
1550
|
};
|
|
1531
1551
|
q(() => {
|
|
1532
|
-
const
|
|
1552
|
+
const a = (D) => {
|
|
1533
1553
|
N(D.detail.isHovering);
|
|
1534
1554
|
};
|
|
1535
1555
|
return window.addEventListener(
|
|
1536
1556
|
Ge,
|
|
1537
|
-
|
|
1557
|
+
a
|
|
1538
1558
|
), () => {
|
|
1539
1559
|
window.removeEventListener(
|
|
1540
1560
|
Ge,
|
|
1541
|
-
|
|
1561
|
+
a
|
|
1542
1562
|
);
|
|
1543
1563
|
};
|
|
1544
1564
|
}, []), q(() => {
|
|
1545
1565
|
!we && !I && (V(null), B(!1));
|
|
1546
1566
|
}, [we, I]), q(() => {
|
|
1547
|
-
let
|
|
1567
|
+
let a = window.location.href;
|
|
1548
1568
|
const D = () => {
|
|
1549
1569
|
const A = window.location.href;
|
|
1550
|
-
A !==
|
|
1570
|
+
A !== a && (a = A, pe(), V(null));
|
|
1551
1571
|
}, U = setInterval(D, 100);
|
|
1552
1572
|
return window.addEventListener("popstate", D), () => {
|
|
1553
1573
|
window.removeEventListener("popstate", D), clearInterval(U);
|
|
1554
1574
|
};
|
|
1555
1575
|
}, []);
|
|
1556
|
-
const
|
|
1576
|
+
const ne = () => {
|
|
1557
1577
|
V(null), M == null || M();
|
|
1558
1578
|
}, ge = /* @__PURE__ */ t.jsx(
|
|
1559
1579
|
t.Fragment,
|
|
1560
1580
|
{ children: l == null ? void 0 : l.map(
|
|
1561
|
-
(
|
|
1581
|
+
(a, D) => /* @__PURE__ */ t.jsx(
|
|
1562
1582
|
De,
|
|
1563
1583
|
{
|
|
1564
1584
|
onMouseEnter: () => {
|
|
1565
|
-
he(
|
|
1585
|
+
he(a), u == null || u(a.label);
|
|
1566
1586
|
},
|
|
1567
1587
|
onMouseLeave: ve,
|
|
1568
|
-
isSelected: (y == null ? void 0 : y.label) ===
|
|
1569
|
-
...
|
|
1570
|
-
children:
|
|
1588
|
+
isSelected: (y == null ? void 0 : y.label) === a.label,
|
|
1589
|
+
...a.buttonProps,
|
|
1590
|
+
children: a.label
|
|
1571
1591
|
},
|
|
1572
|
-
`${
|
|
1592
|
+
`${a.label}-${D}`
|
|
1573
1593
|
)
|
|
1574
1594
|
) }
|
|
1575
|
-
),
|
|
1576
|
-
(
|
|
1595
|
+
), re = (K = l.filter((a) => a.isMobileTopLink !== !1)) == null ? void 0 : K.map(
|
|
1596
|
+
(a) => /* @__PURE__ */ t.jsx(
|
|
1577
1597
|
E,
|
|
1578
1598
|
{
|
|
1579
1599
|
onClick: () => {
|
|
1580
|
-
Pe(
|
|
1600
|
+
Pe(a), u == null || u(a.label);
|
|
1581
1601
|
},
|
|
1582
1602
|
children: /* @__PURE__ */ t.jsx(
|
|
1583
1603
|
Ye,
|
|
1584
1604
|
{
|
|
1585
|
-
label:
|
|
1605
|
+
label: a.label,
|
|
1586
1606
|
role: "link",
|
|
1587
|
-
additionalContent:
|
|
1607
|
+
additionalContent: a.additionalContent,
|
|
1588
1608
|
mainTextFontSize: "3xl",
|
|
1589
|
-
linkComponent:
|
|
1609
|
+
linkComponent: s
|
|
1590
1610
|
}
|
|
1591
1611
|
)
|
|
1592
1612
|
},
|
|
1593
|
-
|
|
1613
|
+
a.label
|
|
1594
1614
|
)
|
|
1595
1615
|
);
|
|
1596
1616
|
ht(l);
|
|
@@ -1606,10 +1626,10 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1606
1626
|
backgroundColor: "tints.cream",
|
|
1607
1627
|
onClick: F,
|
|
1608
1628
|
children: /* @__PURE__ */ t.jsxs(
|
|
1609
|
-
|
|
1629
|
+
T,
|
|
1610
1630
|
{ gap: "2", children: [
|
|
1611
1631
|
"My Everly",
|
|
1612
|
-
/* @__PURE__ */ t.jsx(
|
|
1632
|
+
/* @__PURE__ */ t.jsx(ae, { as: ut, size: 24 })
|
|
1613
1633
|
] }
|
|
1614
1634
|
)
|
|
1615
1635
|
},
|
|
@@ -1624,28 +1644,28 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1624
1644
|
backgroundColor: "tints.cream",
|
|
1625
1645
|
onClick: Q,
|
|
1626
1646
|
children: /* @__PURE__ */ t.jsxs(
|
|
1627
|
-
|
|
1647
|
+
T,
|
|
1628
1648
|
{ gap: "2", children: [
|
|
1629
1649
|
"Register kit",
|
|
1630
|
-
/* @__PURE__ */ t.jsx(
|
|
1650
|
+
/* @__PURE__ */ t.jsx(ae, { as: sn, size: 24 })
|
|
1631
1651
|
] }
|
|
1632
1652
|
)
|
|
1633
1653
|
},
|
|
1634
1654
|
"register-kit"
|
|
1635
1655
|
)
|
|
1636
1656
|
] }
|
|
1637
|
-
),
|
|
1638
|
-
|
|
1657
|
+
), Te = /* @__PURE__ */ t.jsxs(
|
|
1658
|
+
T,
|
|
1639
1659
|
{ gap: "2", flexDirection: "column", children: [
|
|
1640
1660
|
c,
|
|
1641
1661
|
Ie
|
|
1642
1662
|
] }
|
|
1643
1663
|
), Ae = y ? /* @__PURE__ */ t.jsx(
|
|
1644
|
-
|
|
1645
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (z = y == null ? void 0 : y.sections) == null ? void 0 : z.map((
|
|
1664
|
+
T,
|
|
1665
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (z = y == null ? void 0 : y.sections) == null ? void 0 : z.map((a, D) => {
|
|
1646
1666
|
const U = [];
|
|
1647
|
-
for (let A = 0; A <
|
|
1648
|
-
U.push(
|
|
1667
|
+
for (let A = 0; A < a.links.length; A += 3)
|
|
1668
|
+
U.push(a.links.slice(A, A + 3));
|
|
1649
1669
|
return /* @__PURE__ */ t.jsxs(
|
|
1650
1670
|
E,
|
|
1651
1671
|
{ children: [
|
|
@@ -1655,17 +1675,17 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1655
1675
|
fontSize: "md",
|
|
1656
1676
|
color: "tints.uiGrey",
|
|
1657
1677
|
marginBottom: [0, null, null, 6],
|
|
1658
|
-
children:
|
|
1678
|
+
children: a.title
|
|
1659
1679
|
}
|
|
1660
1680
|
),
|
|
1661
1681
|
/* @__PURE__ */ t.jsx(
|
|
1662
|
-
|
|
1682
|
+
T,
|
|
1663
1683
|
{
|
|
1664
1684
|
flexDirection: ["column", null, null, "row"],
|
|
1665
1685
|
gap: [null, null, null, 8],
|
|
1666
1686
|
children: U == null ? void 0 : U.map(
|
|
1667
1687
|
(A, me) => /* @__PURE__ */ t.jsx(
|
|
1668
|
-
|
|
1688
|
+
T,
|
|
1669
1689
|
{
|
|
1670
1690
|
flexDirection: ["column"],
|
|
1671
1691
|
gap: [null, null, null, 5],
|
|
@@ -1677,7 +1697,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1677
1697
|
label: X.label,
|
|
1678
1698
|
href: X.href,
|
|
1679
1699
|
additionalContent: X.additionalContent,
|
|
1680
|
-
linkComponent:
|
|
1700
|
+
linkComponent: s,
|
|
1681
1701
|
onClick: () => w == null ? void 0 : w(X.label)
|
|
1682
1702
|
},
|
|
1683
1703
|
X.label
|
|
@@ -1690,11 +1710,11 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1690
1710
|
}
|
|
1691
1711
|
)
|
|
1692
1712
|
] },
|
|
1693
|
-
`${
|
|
1713
|
+
`${a.title}-${D}`
|
|
1694
1714
|
);
|
|
1695
1715
|
}) }
|
|
1696
1716
|
) : null, Fe = y != null && y.spotlightCards ? (xe = y.spotlightCards) == null ? void 0 : xe.map(
|
|
1697
|
-
(
|
|
1717
|
+
(a) => /* @__PURE__ */ t.jsx(pn, { ...a }, a.title)
|
|
1698
1718
|
) : /* @__PURE__ */ t.jsx(E, {});
|
|
1699
1719
|
return /* @__PURE__ */ t.jsxs(
|
|
1700
1720
|
t.Fragment,
|
|
@@ -1715,25 +1735,25 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1715
1735
|
),
|
|
1716
1736
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1717
1737
|
G,
|
|
1718
|
-
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(
|
|
1738
|
+
{ href: R, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(oe, { icon: /* @__PURE__ */ t.jsx(ae, { as: ut }), "aria-label": "Profile" }) }
|
|
1719
1739
|
),
|
|
1720
1740
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1721
1741
|
gn,
|
|
1722
1742
|
{
|
|
1723
1743
|
"aria-label": "Cart",
|
|
1724
1744
|
count: x,
|
|
1725
|
-
onClick:
|
|
1745
|
+
onClick: o
|
|
1726
1746
|
}
|
|
1727
1747
|
),
|
|
1728
1748
|
onSearchClick: () => {
|
|
1729
|
-
B(!
|
|
1749
|
+
B(!ee), v == null || v();
|
|
1730
1750
|
},
|
|
1731
1751
|
onMenuClick: () => {
|
|
1732
1752
|
H(!0), L == null || L();
|
|
1733
1753
|
},
|
|
1734
1754
|
hasSearch: j,
|
|
1735
|
-
logoLink:
|
|
1736
|
-
linkComponent:
|
|
1755
|
+
logoLink: d,
|
|
1756
|
+
linkComponent: s,
|
|
1737
1757
|
onLogoClick: _,
|
|
1738
1758
|
setTopOffset: ye
|
|
1739
1759
|
}
|
|
@@ -1741,11 +1761,11 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1741
1761
|
/* @__PURE__ */ t.jsx(
|
|
1742
1762
|
ze,
|
|
1743
1763
|
{
|
|
1744
|
-
isOpen:
|
|
1764
|
+
isOpen: ce,
|
|
1745
1765
|
onClose: pe,
|
|
1746
1766
|
title: p,
|
|
1747
|
-
navDrawerLinks:
|
|
1748
|
-
bottomNavButtons:
|
|
1767
|
+
navDrawerLinks: re,
|
|
1768
|
+
bottomNavButtons: Te,
|
|
1749
1769
|
hasBackButton: !1,
|
|
1750
1770
|
topOffset: Y
|
|
1751
1771
|
}
|
|
@@ -1759,7 +1779,7 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1759
1779
|
},
|
|
1760
1780
|
title: (y == null ? void 0 : y.label) || "",
|
|
1761
1781
|
navDrawerLinks: Ae,
|
|
1762
|
-
onBackClick:
|
|
1782
|
+
onBackClick: ne,
|
|
1763
1783
|
spotlightCards: Fe,
|
|
1764
1784
|
hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
|
|
1765
1785
|
bottomButton: y == null ? void 0 : y.bottomButton,
|
|
@@ -1769,10 +1789,10 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1769
1789
|
/* @__PURE__ */ t.jsx(
|
|
1770
1790
|
ze,
|
|
1771
1791
|
{
|
|
1772
|
-
isOpen:
|
|
1792
|
+
isOpen: ee,
|
|
1773
1793
|
onClose: () => B(!1),
|
|
1774
1794
|
title: "Search",
|
|
1775
|
-
navDrawerLinks:
|
|
1795
|
+
navDrawerLinks: ke,
|
|
1776
1796
|
onSearch: Re,
|
|
1777
1797
|
hasSearch: !0,
|
|
1778
1798
|
hasBackButton: !1,
|
|
@@ -1784,14 +1804,14 @@ const Ne = 60, dt = 6, dn = (l) => {
|
|
|
1784
1804
|
};
|
|
1785
1805
|
export {
|
|
1786
1806
|
gn as BasketButton,
|
|
1787
|
-
|
|
1807
|
+
kn as CategoryLabel,
|
|
1788
1808
|
De as NavButton,
|
|
1789
|
-
|
|
1809
|
+
Tn as NavSkeleton,
|
|
1790
1810
|
ze as NavbarDrawer,
|
|
1791
1811
|
Ye as NavbarDrawerLink,
|
|
1792
1812
|
Ln as NavigationBar,
|
|
1793
1813
|
pn as SpotlightCard,
|
|
1794
1814
|
Sn as Stepper,
|
|
1795
|
-
|
|
1815
|
+
oe as TopNavIconButton,
|
|
1796
1816
|
vn as TopNavigation
|
|
1797
1817
|
};
|