@everlywell/consumer-ui 1.39.3 → 1.39.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as Zt, Box as m, Stepper as Kt, Icon as
|
|
2
|
-
import Re, { useEffect as
|
|
3
|
-
import { Text as xn, useBreakpointValue as
|
|
4
|
-
import { CaretRight as gt,
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
1
|
+
import { useSteps as Zt, Box as m, Stepper as Kt, Icon as Q, Flex as C, Text as A, Link as N, Button as Rt, Image as Xt, IconButton as Jt, theme as Ee, VStack as Qt, Skeleton as Ke, HStack as pt, SkeletonCircle as $e, DrawerContent as qt, DrawerOverlay as en, Drawer as tn, DrawerHeader as nn, DrawerBody as rn, Grid as ln, GridItem as on, Accordion as an, AccordionItem as sn, AccordionButton as un, AccordionPanel as cn, InputGroup as dn, Input as fn, InputRightElement as hn, Container as pn } from "@everlywell/ui-kit";
|
|
2
|
+
import Re, { useEffect as J, forwardRef as _t, useRef as gn, useCallback as St, useState as G } from "react";
|
|
3
|
+
import { Text as xn, useBreakpointValue as Fe, Box as vn, InputGroup as mn, Input as bn, InputRightElement as jn, Icon as wn } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as gt, MagnifyingGlass as Tt, List as Cn, Basket as yn, CaretLeft as En, X as Rn, User as xt, QrCode as _n, CaretDown as Sn, ArrowRight as Tn, InstagramLogo as kn, LinkedinLogo as Dn, FacebookLogo as In, TiktokLogo as Ln, XLogo as An } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as lt, AnimatePresence as On } from "framer-motion";
|
|
6
|
+
var et = { exports: {} }, Ce = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -18,12 +18,12 @@ function Pn() {
|
|
|
18
18
|
if (vt) return Ce;
|
|
19
19
|
vt = 1;
|
|
20
20
|
var r = Re, l = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, u = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
-
function h(y, p,
|
|
22
|
-
var c, E = {},
|
|
23
|
-
|
|
21
|
+
function h(y, p, j) {
|
|
22
|
+
var c, E = {}, b = null, g = null;
|
|
23
|
+
j !== void 0 && (b = "" + j), p.key !== void 0 && (b = "" + p.key), p.ref !== void 0 && (g = p.ref);
|
|
24
24
|
for (c in p) o.call(p, c) && !s.hasOwnProperty(c) && (E[c] = p[c]);
|
|
25
25
|
if (y && y.defaultProps) for (c in p = y.defaultProps, p) E[c] === void 0 && (E[c] = p[c]);
|
|
26
|
-
return { $$typeof: l, type: y, key:
|
|
26
|
+
return { $$typeof: l, type: y, key: b, ref: g, props: E, _owner: u.current };
|
|
27
27
|
}
|
|
28
28
|
return Ce.Fragment = a, Ce.jsx = h, Ce.jsxs = h, Ce;
|
|
29
29
|
}
|
|
@@ -40,35 +40,35 @@ var ye = {};
|
|
|
40
40
|
var mt;
|
|
41
41
|
function $n() {
|
|
42
42
|
return mt || (mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var r = Re, l = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), y = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"),
|
|
44
|
-
function
|
|
43
|
+
var r = Re, l = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), y = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), k = Symbol.iterator, Z = "@@iterator";
|
|
44
|
+
function ne(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var n =
|
|
47
|
+
var n = k && e[k] || e[Z];
|
|
48
48
|
return typeof n == "function" ? n : null;
|
|
49
49
|
}
|
|
50
50
|
var O = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function S(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), f = 1; f < n; f++)
|
|
54
54
|
i[f - 1] = arguments[f];
|
|
55
|
-
|
|
55
|
+
re("error", e, i);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function re(e, n, i) {
|
|
59
59
|
{
|
|
60
|
-
var f = O.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
60
|
+
var f = O.ReactDebugCurrentFrame, w = f.getStackAddendum();
|
|
61
|
+
w !== "" && (n += "%s", i = i.concat([w]));
|
|
62
62
|
var R = i.map(function(v) {
|
|
63
63
|
return String(v);
|
|
64
64
|
});
|
|
65
65
|
R.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, R);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var $ = !1, V = !1, U = !1, q = !1, L = !1, _;
|
|
69
69
|
_ = Symbol.for("react.module.reference");
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === s ||
|
|
70
|
+
function M(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === s || L || e === u || e === j || e === c || q || e === g || $ || V || U || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === E || e.$$typeof === h || e.$$typeof === y || e.$$typeof === p || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -78,16 +78,16 @@ function $n() {
|
|
|
78
78
|
var f = e.displayName;
|
|
79
79
|
if (f)
|
|
80
80
|
return f;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var w = n.displayName || n.name || "";
|
|
82
|
+
return w !== "" ? i + "(" + w + ")" : i;
|
|
83
83
|
}
|
|
84
84
|
function ge(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function B(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
@@ -100,7 +100,7 @@ function $n() {
|
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case u:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case j:
|
|
104
104
|
return "Suspense";
|
|
105
105
|
case c:
|
|
106
106
|
return "SuspenseList";
|
|
@@ -117,11 +117,11 @@ function $n() {
|
|
|
117
117
|
return _e(e, e.render, "ForwardRef");
|
|
118
118
|
case E:
|
|
119
119
|
var f = e.displayName || null;
|
|
120
|
-
return f !== null ? f :
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
return f !== null ? f : B(e.type) || "Memo";
|
|
121
|
+
case b: {
|
|
122
|
+
var w = e, R = w._payload, v = w._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return B(v(R));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function $n() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var K = Object.assign, X = 0, Se, Te, xe, ke, De, se, Ie;
|
|
133
|
+
function ve() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
ve.__reactDisabledLog = !0;
|
|
136
|
+
function me() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
Se = console.log, Te = console.info,
|
|
138
|
+
if (X === 0) {
|
|
139
|
+
Se = console.log, Te = console.info, xe = console.warn, ke = console.error, De = console.group, se = console.groupCollapsed, Ie = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: ve,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,65 +153,65 @@ function $n() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
X++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Be() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (X--, X === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: K({}, e, {
|
|
169
169
|
value: Se
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: K({}, e, {
|
|
172
172
|
value: Te
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
175
|
-
value:
|
|
174
|
+
warn: K({}, e, {
|
|
175
|
+
value: xe
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
178
|
-
value:
|
|
177
|
+
error: K({}, e, {
|
|
178
|
+
value: ke
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: K({}, e, {
|
|
181
181
|
value: De
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
value:
|
|
183
|
+
groupCollapsed: K({}, e, {
|
|
184
|
+
value: se
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: K({}, e, {
|
|
187
|
+
value: Ie
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var be = O.ReactCurrentDispatcher, ee;
|
|
195
|
+
function Y(e, n, i) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ee === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var f =
|
|
202
|
-
|
|
200
|
+
} catch (w) {
|
|
201
|
+
var f = w.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ee = f && f[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ee + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var je = !1, ue;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
ue = new
|
|
210
|
+
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
ue = new We();
|
|
212
212
|
}
|
|
213
213
|
function Le(e, n) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || je)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
217
|
var i = ue.get(e);
|
|
@@ -219,11 +219,11 @@ function $n() {
|
|
|
219
219
|
return i;
|
|
220
220
|
}
|
|
221
221
|
var f;
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
je = !0;
|
|
223
|
+
var w = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var R;
|
|
226
|
-
R =
|
|
226
|
+
R = be.current, be.current = null, me();
|
|
227
227
|
try {
|
|
228
228
|
if (n) {
|
|
229
229
|
var v = function() {
|
|
@@ -236,55 +236,55 @@ function $n() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(v, []);
|
|
239
|
-
} catch (
|
|
240
|
-
f =
|
|
239
|
+
} catch (F) {
|
|
240
|
+
f = F;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(e, [], v);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
v.call();
|
|
246
|
-
} catch (
|
|
247
|
-
f =
|
|
246
|
+
} catch (F) {
|
|
247
|
+
f = F;
|
|
248
248
|
}
|
|
249
249
|
e.call(v.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
f =
|
|
254
|
+
} catch (F) {
|
|
255
|
+
f = F;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var x =
|
|
262
|
-
`),
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (x[
|
|
267
|
-
if (
|
|
259
|
+
} catch (F) {
|
|
260
|
+
if (F && f && typeof F.stack == "string") {
|
|
261
|
+
for (var x = F.stack.split(`
|
|
262
|
+
`), P = f.stack.split(`
|
|
263
|
+
`), D = x.length - 1, I = P.length - 1; D >= 1 && I >= 0 && x[D] !== P[I]; )
|
|
264
|
+
I--;
|
|
265
|
+
for (; D >= 1 && I >= 0; D--, I--)
|
|
266
|
+
if (x[D] !== P[I]) {
|
|
267
|
+
if (D !== 1 || I !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` + x[
|
|
272
|
-
return e.displayName &&
|
|
269
|
+
if (D--, I--, I < 0 || x[D] !== P[I]) {
|
|
270
|
+
var z = `
|
|
271
|
+
` + x[D].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, z), z;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (D >= 1 && I >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
je = !1, be.current = R, Be(), Error.prepareStackTrace = w;
|
|
280
280
|
}
|
|
281
|
-
var fe = e ? e.displayName || e.name : "",
|
|
282
|
-
return typeof e == "function" && ue.set(e,
|
|
281
|
+
var fe = e ? e.displayName || e.name : "", ae = fe ? Y(fe) : "";
|
|
282
|
+
return typeof e == "function" && ue.set(e, ae), ae;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function ze(e, n, i) {
|
|
285
285
|
return Le(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Ne(e) {
|
|
288
288
|
var n = e.prototype;
|
|
289
289
|
return !!(n && n.isReactComponent);
|
|
290
290
|
}
|
|
@@ -292,91 +292,91 @@ function $n() {
|
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return Le(e,
|
|
295
|
+
return Le(e, Ne(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return Y(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
299
|
+
case j:
|
|
300
|
+
return Y("Suspense");
|
|
301
301
|
case c:
|
|
302
|
-
return
|
|
302
|
+
return Y("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case p:
|
|
307
|
-
return
|
|
307
|
+
return ze(e.render);
|
|
308
308
|
case E:
|
|
309
309
|
return ce(e.type, n, i);
|
|
310
|
-
case
|
|
311
|
-
var f = e,
|
|
310
|
+
case b: {
|
|
311
|
+
var f = e, w = f._payload, R = f._init;
|
|
312
312
|
try {
|
|
313
|
-
return ce(R(
|
|
313
|
+
return ce(R(w), n, i);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var le = Object.prototype.hasOwnProperty, Ae = {}, we = O.ReactDebugCurrentFrame;
|
|
321
|
+
function ie(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var n = e._owner, i = ce(e.type, e._source, n ? n.type : null);
|
|
324
|
-
|
|
324
|
+
we.setExtraStackFrame(i);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
we.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Oe(e, n, i, f, w) {
|
|
329
329
|
{
|
|
330
|
-
var R = Function.call.bind(
|
|
330
|
+
var R = Function.call.bind(le);
|
|
331
331
|
for (var v in e)
|
|
332
332
|
if (R(e, v)) {
|
|
333
333
|
var x = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[v] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
var P = Error((f || "React class") + ": " + i + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw P.name = "Invariant Violation", P;
|
|
338
338
|
}
|
|
339
339
|
x = e[v](n, v, f, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (
|
|
341
|
-
x =
|
|
340
|
+
} catch (D) {
|
|
341
|
+
x = D;
|
|
342
342
|
}
|
|
343
|
-
x && !(x instanceof Error) && (
|
|
343
|
+
x && !(x instanceof Error) && (ie(w), S("%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).", f || "React class", i, v, typeof x), ie(null)), x instanceof Error && !(x.message in Ae) && (Ae[x.message] = !0, ie(w), S("Failed %s type: %s", i, x.message), ie(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
347
|
+
var d = Array.isArray;
|
|
348
|
+
function T(e) {
|
|
349
|
+
return d(e);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function H(e) {
|
|
352
352
|
{
|
|
353
353
|
var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
354
|
return i;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function W(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Pe(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Pe(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
function te(e) {
|
|
368
|
+
if (W(e))
|
|
369
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", H(e)), Pe(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var oe = O.ReactCurrentOwner, Dt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
}, it, ot,
|
|
377
|
-
|
|
376
|
+
}, it, ot, Ve;
|
|
377
|
+
Ve = {};
|
|
378
378
|
function It(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (le.call(e, "ref")) {
|
|
380
380
|
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (n && n.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function $n() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Lt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (le.call(e, "key")) {
|
|
388
388
|
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (n && n.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -392,15 +392,15 @@ function $n() {
|
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function At(e, n) {
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var i =
|
|
397
|
-
|
|
395
|
+
if (typeof e.ref == "string" && oe.current && n && oe.current.stateNode !== n) {
|
|
396
|
+
var i = B(oe.current.type);
|
|
397
|
+
Ve[i] || (S('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', B(oe.current.type), e.ref), Ve[i] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function Ot(e, n) {
|
|
401
401
|
{
|
|
402
402
|
var i = function() {
|
|
403
|
-
it || (it = !0,
|
|
403
|
+
it || (it = !0, S("%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));
|
|
404
404
|
};
|
|
405
405
|
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: i,
|
|
@@ -411,7 +411,7 @@ function $n() {
|
|
|
411
411
|
function Pt(e, n) {
|
|
412
412
|
{
|
|
413
413
|
var i = function() {
|
|
414
|
-
ot || (ot = !0,
|
|
414
|
+
ot || (ot = !0, S("%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));
|
|
415
415
|
};
|
|
416
416
|
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: i,
|
|
@@ -419,7 +419,7 @@ function $n() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var $t = function(e, n, i, f,
|
|
422
|
+
var $t = function(e, n, i, f, w, R, v) {
|
|
423
423
|
var x = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: l,
|
|
@@ -445,28 +445,28 @@ function $n() {
|
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: w
|
|
449
449
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
450
450
|
};
|
|
451
|
-
function Mt(e, n, i, f,
|
|
451
|
+
function Mt(e, n, i, f, w) {
|
|
452
452
|
{
|
|
453
|
-
var R, v = {}, x = null,
|
|
454
|
-
i !== void 0 && (
|
|
453
|
+
var R, v = {}, x = null, P = null;
|
|
454
|
+
i !== void 0 && (te(i), x = "" + i), Lt(n) && (te(n.key), x = "" + n.key), It(n) && (P = n.ref, At(n, w));
|
|
455
455
|
for (R in n)
|
|
456
|
-
|
|
456
|
+
le.call(n, R) && !Dt.hasOwnProperty(R) && (v[R] = n[R]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (R in
|
|
460
|
-
v[R] === void 0 && (v[R] =
|
|
458
|
+
var D = e.defaultProps;
|
|
459
|
+
for (R in D)
|
|
460
|
+
v[R] === void 0 && (v[R] = D[R]);
|
|
461
461
|
}
|
|
462
|
-
if (x ||
|
|
463
|
-
var
|
|
464
|
-
x && Ot(v,
|
|
462
|
+
if (x || P) {
|
|
463
|
+
var I = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
x && Ot(v, I), P && Pt(v, I);
|
|
465
465
|
}
|
|
466
|
-
return $t(e, x,
|
|
466
|
+
return $t(e, x, P, w, f, oe.current, v);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
469
|
+
var Ye = O.ReactCurrentOwner, at = O.ReactDebugCurrentFrame;
|
|
470
470
|
function de(e) {
|
|
471
471
|
if (e) {
|
|
472
472
|
var n = e._owner, i = ce(e.type, e._source, n ? n.type : null);
|
|
@@ -474,15 +474,15 @@ function $n() {
|
|
|
474
474
|
} else
|
|
475
475
|
at.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var Ge;
|
|
478
|
+
Ge = !1;
|
|
479
|
+
function Ue(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
481
481
|
}
|
|
482
482
|
function st() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
484
|
+
if (Ye.current) {
|
|
485
|
+
var e = B(Ye.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -517,25 +517,25 @@ Check the top-level render call using <` + i + ">.");
|
|
|
517
517
|
return;
|
|
518
518
|
ut[i] = !0;
|
|
519
519
|
var f = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
520
|
+
e && e._owner && e._owner !== Ye.current && (f = " It was passed a child from " + B(e._owner.type) + "."), de(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, f), de(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
function dt(e, n) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
|
-
if (
|
|
527
|
+
if (T(e))
|
|
528
528
|
for (var i = 0; i < e.length; i++) {
|
|
529
529
|
var f = e[i];
|
|
530
|
-
|
|
530
|
+
Ue(f) && ct(f, n);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (Ue(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var R =
|
|
538
|
-
|
|
535
|
+
var w = ne(e);
|
|
536
|
+
if (typeof w == "function" && w !== e.entries)
|
|
537
|
+
for (var R = w.call(e), v; !(v = R.next()).done; )
|
|
538
|
+
Ue(v.value) && ct(v.value, n);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -554,14 +554,14 @@ Check the top-level render call using <` + i + ">.");
|
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if (i) {
|
|
557
|
-
var f =
|
|
558
|
-
|
|
559
|
-
} else if (n.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
|
|
557
|
+
var f = B(n);
|
|
558
|
+
Oe(i, e.props, "prop", f, e);
|
|
559
|
+
} else if (n.PropTypes !== void 0 && !Ge) {
|
|
560
|
+
Ge = !0;
|
|
561
|
+
var w = B(n);
|
|
562
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function Wt(e) {
|
|
@@ -569,56 +569,56 @@ Check the top-level render call using <` + i + ">.");
|
|
|
569
569
|
for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
|
|
570
570
|
var f = n[i];
|
|
571
571
|
if (f !== "children" && f !== "key") {
|
|
572
|
-
de(e),
|
|
572
|
+
de(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), de(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (de(e),
|
|
576
|
+
e.ref !== null && (de(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ft = {};
|
|
580
|
-
function ht(e, n, i, f,
|
|
580
|
+
function ht(e, n, i, f, w, R) {
|
|
581
581
|
{
|
|
582
|
-
var v =
|
|
582
|
+
var v = M(e);
|
|
583
583
|
if (!v) {
|
|
584
584
|
var x = "";
|
|
585
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
-
var
|
|
587
|
-
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
586
|
+
var P = Ht();
|
|
587
|
+
P ? x += P : x += st();
|
|
588
|
+
var D;
|
|
589
|
+
e === null ? D = "null" : T(e) ? D = "array" : e !== void 0 && e.$$typeof === l ? (D = "<" + (B(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
591
|
+
var I = Mt(e, n, i, w, R);
|
|
592
|
+
if (I == null)
|
|
593
|
+
return I;
|
|
594
594
|
if (v) {
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
595
|
+
var z = n.children;
|
|
596
|
+
if (z !== void 0)
|
|
597
597
|
if (f)
|
|
598
|
-
if (
|
|
599
|
-
for (var fe = 0; fe <
|
|
600
|
-
dt(
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
598
|
+
if (T(z)) {
|
|
599
|
+
for (var fe = 0; fe < z.length; fe++)
|
|
600
|
+
dt(z[fe], e);
|
|
601
|
+
Object.freeze && Object.freeze(z);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
dt(
|
|
605
|
+
dt(z, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
607
|
+
if (le.call(n, "key")) {
|
|
608
|
+
var ae = B(e), F = Object.keys(n).filter(function(Ut) {
|
|
609
609
|
return Ut !== "key";
|
|
610
|
-
}),
|
|
611
|
-
if (!ft[
|
|
612
|
-
var Gt =
|
|
613
|
-
|
|
610
|
+
}), Ze = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!ft[ae + Ze]) {
|
|
612
|
+
var Gt = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
618
|
+
<%s key={someKey} {...props} />`, Ze, ae, Gt, ae), ft[ae + Ze] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e === o ? Wt(
|
|
621
|
+
return e === o ? Wt(I) : Bt(I), I;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function zt(e, n, i) {
|
|
@@ -631,9 +631,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
631
631
|
ye.Fragment = o, ye.jsx = Vt, ye.jsxs = Yt;
|
|
632
632
|
}()), ye;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var t =
|
|
636
|
-
const
|
|
634
|
+
process.env.NODE_ENV === "production" ? et.exports = Pn() : et.exports = $n();
|
|
635
|
+
var t = et.exports;
|
|
636
|
+
const Xe = 60, bt = 6, Mn = (r) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: l,
|
|
639
639
|
hideIndicators: a = !1,
|
|
@@ -646,7 +646,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
646
646
|
index: l,
|
|
647
647
|
count: o.length
|
|
648
648
|
});
|
|
649
|
-
return
|
|
649
|
+
return J(() => {
|
|
650
650
|
h(l);
|
|
651
651
|
}, [l, h]), /* @__PURE__ */ t.jsx(
|
|
652
652
|
m,
|
|
@@ -659,14 +659,14 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
661
|
children: o.map((y, p) => {
|
|
662
|
-
const
|
|
663
|
-
let g = `${
|
|
664
|
-
const
|
|
665
|
-
return
|
|
662
|
+
const j = s === p, c = p === 0, E = p === o.length - 1, b = s > p;
|
|
663
|
+
let g = `${Xe}px`;
|
|
664
|
+
const k = `calc(100% - ((${Xe * (o.length - 1)}px) - (${o.length - 1} * ${bt * 2}px)))`;
|
|
665
|
+
return j ? g = k : (c || E) && (g = `${Xe - bt}px`), /* @__PURE__ */ t.jsx(
|
|
666
666
|
m,
|
|
667
667
|
{
|
|
668
668
|
width: g,
|
|
669
|
-
opacity:
|
|
669
|
+
opacity: b || j ? 1 : 0.2,
|
|
670
670
|
paddingRight: E ? "0" : "6px",
|
|
671
671
|
paddingLeft: c ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
@@ -682,7 +682,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
685
|
+
backgroundColor: b ? u.light : u.base,
|
|
686
686
|
height: a ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
@@ -710,7 +710,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
710
710
|
} : {
|
|
711
711
|
href: r
|
|
712
712
|
};
|
|
713
|
-
},
|
|
713
|
+
}, Je = _t(
|
|
714
714
|
(r, l) => {
|
|
715
715
|
const {
|
|
716
716
|
label: a,
|
|
@@ -719,7 +719,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
719
719
|
linkComponent: s,
|
|
720
720
|
href: h,
|
|
721
721
|
...y
|
|
722
|
-
} = r, p = s ||
|
|
722
|
+
} = r, p = s || N, j = pe(h, !!s);
|
|
723
723
|
return /* @__PURE__ */ t.jsxs(
|
|
724
724
|
m,
|
|
725
725
|
{
|
|
@@ -736,11 +736,11 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
736
736
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
737
737
|
width: ["100%", null, null, "fit-content"],
|
|
738
738
|
cursor: "pointer",
|
|
739
|
-
...
|
|
739
|
+
...j,
|
|
740
740
|
...y,
|
|
741
741
|
children: [
|
|
742
742
|
/* @__PURE__ */ t.jsx(
|
|
743
|
-
|
|
743
|
+
Q,
|
|
744
744
|
{
|
|
745
745
|
display: ["none", null, null, "block"],
|
|
746
746
|
as: gt,
|
|
@@ -777,7 +777,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
777
777
|
}
|
|
778
778
|
) : o),
|
|
779
779
|
/* @__PURE__ */ t.jsx(
|
|
780
|
-
|
|
780
|
+
Q,
|
|
781
781
|
{
|
|
782
782
|
display: ["block", null, null, "none"],
|
|
783
783
|
as: gt,
|
|
@@ -794,7 +794,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
),
|
|
797
|
+
), Me = _t(
|
|
798
798
|
(r, l) => {
|
|
799
799
|
const { children: a, isSelected: o, ...u } = r, s = r.backgroundColor || (o ? "tints.lightCream" : "transparent");
|
|
800
800
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -840,7 +840,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
840
840
|
href: y,
|
|
841
841
|
linkComponent: p
|
|
842
842
|
}) => {
|
|
843
|
-
const
|
|
843
|
+
const b = p || N, g = pe(y, !!p), k = Fe({
|
|
844
844
|
base: !1,
|
|
845
845
|
tablet: !1,
|
|
846
846
|
largeTablet: !1,
|
|
@@ -869,8 +869,8 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
869
869
|
border: "1px solid",
|
|
870
870
|
borderColor: "tints.white"
|
|
871
871
|
},
|
|
872
|
-
as:
|
|
873
|
-
...
|
|
872
|
+
as: k ? C : b,
|
|
873
|
+
...k ? {} : g,
|
|
874
874
|
children: [
|
|
875
875
|
/* @__PURE__ */ t.jsx(
|
|
876
876
|
m,
|
|
@@ -879,7 +879,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
879
879
|
height: ["100%", null, null, "188px"],
|
|
880
880
|
sx: {
|
|
881
881
|
img: {
|
|
882
|
-
height:
|
|
882
|
+
height: k ? "188px" : "100%"
|
|
883
883
|
}
|
|
884
884
|
},
|
|
885
885
|
children: a ? /* @__PURE__ */ t.jsx(
|
|
@@ -934,7 +934,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
934
934
|
)
|
|
935
935
|
] }
|
|
936
936
|
),
|
|
937
|
-
|
|
937
|
+
k ? /* @__PURE__ */ t.jsx(m, { children: u }) : null
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
940
|
)
|
|
@@ -990,14 +990,188 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
990
990
|
) }
|
|
991
991
|
)
|
|
992
992
|
}
|
|
993
|
-
), Fn = (
|
|
993
|
+
), Fn = ({
|
|
994
|
+
desktopTopButtons: r,
|
|
995
|
+
kitRegistrationElement: l,
|
|
996
|
+
profileElement: a,
|
|
997
|
+
cartElement: o,
|
|
998
|
+
onSearchClick: u,
|
|
999
|
+
onMenuClick: s,
|
|
1000
|
+
hasSearch: h = !1,
|
|
1001
|
+
logoLink: y = "https://www.everlywell.com",
|
|
1002
|
+
setTopOffset: p,
|
|
1003
|
+
linkComponent: j,
|
|
1004
|
+
onLogoClick: c
|
|
1005
|
+
}) => {
|
|
1006
|
+
const E = gn(null), b = St(() => {
|
|
1007
|
+
if (E.current) {
|
|
1008
|
+
const g = E.current.getBoundingClientRect();
|
|
1009
|
+
p(g.bottom);
|
|
1010
|
+
}
|
|
1011
|
+
}, []);
|
|
1012
|
+
return J(() => {
|
|
1013
|
+
b();
|
|
1014
|
+
}, [b]), /* @__PURE__ */ t.jsx(
|
|
1015
|
+
m,
|
|
1016
|
+
{
|
|
1017
|
+
ref: E,
|
|
1018
|
+
paddingY: "4",
|
|
1019
|
+
paddingX: [4, null, null, 12],
|
|
1020
|
+
borderBottom: "1px solid",
|
|
1021
|
+
borderColor: "tints.lightCream",
|
|
1022
|
+
backgroundColor: "tints.white",
|
|
1023
|
+
width: "100%",
|
|
1024
|
+
onMouseEnter: b,
|
|
1025
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1026
|
+
C,
|
|
1027
|
+
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1028
|
+
/* @__PURE__ */ t.jsxs(
|
|
1029
|
+
C,
|
|
1030
|
+
{ alignItems: "center", gap: "5", children: [
|
|
1031
|
+
/* @__PURE__ */ t.jsx(
|
|
1032
|
+
m,
|
|
1033
|
+
{
|
|
1034
|
+
"aria-label": "Go to homepage",
|
|
1035
|
+
onClick: c,
|
|
1036
|
+
as: j || N,
|
|
1037
|
+
...pe(y, !!j),
|
|
1038
|
+
children: /* @__PURE__ */ t.jsx(kt, { width: "116px" })
|
|
1039
|
+
}
|
|
1040
|
+
),
|
|
1041
|
+
/* @__PURE__ */ t.jsx(
|
|
1042
|
+
C,
|
|
1043
|
+
{ display: ["none", null, null, "flex"], children: r }
|
|
1044
|
+
)
|
|
1045
|
+
] }
|
|
1046
|
+
),
|
|
1047
|
+
/* @__PURE__ */ t.jsxs(
|
|
1048
|
+
C,
|
|
1049
|
+
{ alignItems: "center", gap: "2", children: [
|
|
1050
|
+
/* @__PURE__ */ t.jsx(
|
|
1051
|
+
m,
|
|
1052
|
+
{ display: ["none", null, null, "block"], children: l }
|
|
1053
|
+
),
|
|
1054
|
+
h ? /* @__PURE__ */ t.jsx(
|
|
1055
|
+
he,
|
|
1056
|
+
{
|
|
1057
|
+
"aria-label": "Search",
|
|
1058
|
+
icon: /* @__PURE__ */ t.jsx(Q, { as: Tt }),
|
|
1059
|
+
onClick: u
|
|
1060
|
+
}
|
|
1061
|
+
) : null,
|
|
1062
|
+
o,
|
|
1063
|
+
/* @__PURE__ */ t.jsx(
|
|
1064
|
+
m,
|
|
1065
|
+
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1066
|
+
he,
|
|
1067
|
+
{
|
|
1068
|
+
icon: /* @__PURE__ */ t.jsx(Cn, {}),
|
|
1069
|
+
"aria-label": "menu",
|
|
1070
|
+
"data-testid": "menu-button",
|
|
1071
|
+
onClick: s
|
|
1072
|
+
}
|
|
1073
|
+
) }
|
|
1074
|
+
),
|
|
1075
|
+
/* @__PURE__ */ t.jsx(m, { display: ["none", null, null, "block"], children: a })
|
|
1076
|
+
] }
|
|
1077
|
+
)
|
|
1078
|
+
] }
|
|
1079
|
+
)
|
|
1080
|
+
}
|
|
1081
|
+
);
|
|
1082
|
+
}, Bn = ({
|
|
1083
|
+
count: r = 0,
|
|
1084
|
+
...l
|
|
1085
|
+
}) => /* @__PURE__ */ t.jsxs(
|
|
1086
|
+
m,
|
|
1087
|
+
{ position: "relative", display: "inline-block", children: [
|
|
1088
|
+
/* @__PURE__ */ t.jsx(he, { icon: /* @__PURE__ */ t.jsx(yn, {}), ...l }),
|
|
1089
|
+
r > 0 && /* @__PURE__ */ t.jsx(
|
|
1090
|
+
m,
|
|
1091
|
+
{
|
|
1092
|
+
display: "flex",
|
|
1093
|
+
minWidth: "20px",
|
|
1094
|
+
height: "20px",
|
|
1095
|
+
py: "4px",
|
|
1096
|
+
px: "6px",
|
|
1097
|
+
justifyContent: "center",
|
|
1098
|
+
alignItems: "center",
|
|
1099
|
+
position: "absolute",
|
|
1100
|
+
right: "-4px",
|
|
1101
|
+
top: "-4px",
|
|
1102
|
+
borderRadius: "32px",
|
|
1103
|
+
background: "viridian.base",
|
|
1104
|
+
color: "white",
|
|
1105
|
+
fontSize: "xs",
|
|
1106
|
+
fontWeight: "normal",
|
|
1107
|
+
children: r
|
|
1108
|
+
}
|
|
1109
|
+
)
|
|
1110
|
+
] }
|
|
1111
|
+
), or = ({
|
|
1112
|
+
numDesktopLinks: r = 5,
|
|
1113
|
+
showPromoButton: l = !1
|
|
1114
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
1115
|
+
Qt,
|
|
1116
|
+
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1117
|
+
m,
|
|
1118
|
+
{
|
|
1119
|
+
paddingY: 4,
|
|
1120
|
+
paddingX: 6,
|
|
1121
|
+
borderBottomWidth: "1px",
|
|
1122
|
+
borderColor: "tints.lightCream",
|
|
1123
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1124
|
+
C,
|
|
1125
|
+
{ justify: "space-between", align: "center", children: [
|
|
1126
|
+
/* @__PURE__ */ t.jsx(Ke, { w: "120px", h: "48px" }),
|
|
1127
|
+
/* @__PURE__ */ t.jsxs(
|
|
1128
|
+
pt,
|
|
1129
|
+
{
|
|
1130
|
+
spacing: 8,
|
|
1131
|
+
marginLeft: 12,
|
|
1132
|
+
display: ["none", null, null, "flex"],
|
|
1133
|
+
"data-testid": "desktop-nav",
|
|
1134
|
+
children: [
|
|
1135
|
+
Array.from({ length: r }).map(
|
|
1136
|
+
(a, o) => /* @__PURE__ */ t.jsx(Ke, { width: "90px", height: "48px" }, o)
|
|
1137
|
+
),
|
|
1138
|
+
l && /* @__PURE__ */ t.jsx(Ke, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1139
|
+
]
|
|
1140
|
+
}
|
|
1141
|
+
),
|
|
1142
|
+
/* @__PURE__ */ t.jsxs(
|
|
1143
|
+
pt,
|
|
1144
|
+
{ spacing: 4, ml: "auto", children: [
|
|
1145
|
+
/* @__PURE__ */ t.jsx(
|
|
1146
|
+
$e,
|
|
1147
|
+
{
|
|
1148
|
+
width: "120px",
|
|
1149
|
+
height: "48px",
|
|
1150
|
+
display: ["none", null, null, "block"],
|
|
1151
|
+
"data-testid": "register-kit"
|
|
1152
|
+
}
|
|
1153
|
+
),
|
|
1154
|
+
" ",
|
|
1155
|
+
/* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
|
|
1156
|
+
" ",
|
|
1157
|
+
/* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
|
|
1158
|
+
" ",
|
|
1159
|
+
/* @__PURE__ */ t.jsx($e, { width: "48px", height: "48px" }),
|
|
1160
|
+
" "
|
|
1161
|
+
] }
|
|
1162
|
+
)
|
|
1163
|
+
] }
|
|
1164
|
+
)
|
|
1165
|
+
}
|
|
1166
|
+
) }
|
|
1167
|
+
), Wn = (r, l) => {
|
|
994
1168
|
let a;
|
|
995
1169
|
return (...o) => {
|
|
996
1170
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
997
1171
|
r(...o);
|
|
998
1172
|
}, l);
|
|
999
1173
|
};
|
|
1000
|
-
},
|
|
1174
|
+
}, Qe = (r) => r.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), zn = (r, l) => {
|
|
1001
1175
|
r.length < l.length && ([r, l] = [l, r]);
|
|
1002
1176
|
let a = Array(l.length + 1).fill(0), o = Array(l.length + 1).fill(0);
|
|
1003
1177
|
for (let u = 0; u <= l.length; u++)
|
|
@@ -1018,27 +1192,27 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1018
1192
|
[a, o] = [o, a];
|
|
1019
1193
|
}
|
|
1020
1194
|
return a[l.length];
|
|
1021
|
-
},
|
|
1195
|
+
}, He = (r, l, a = 0.6) => {
|
|
1022
1196
|
if (r.length <= 3 || l.length <= 3)
|
|
1023
1197
|
return r.includes(l) || l.includes(r);
|
|
1024
|
-
const o =
|
|
1198
|
+
const o = zn(r, l), u = Math.max(r.length, l.length);
|
|
1025
1199
|
return 1 - o / u >= a;
|
|
1026
1200
|
}, jt = (r, l) => {
|
|
1027
1201
|
const a = r.split(/\s+/);
|
|
1028
1202
|
return l.length <= 4 ? a.some((o) => o.includes(l)) : a.some((o) => {
|
|
1029
|
-
if (
|
|
1203
|
+
if (He(o, l))
|
|
1030
1204
|
return !0;
|
|
1031
1205
|
if (o.length >= l.length)
|
|
1032
1206
|
for (let u = 0; u <= o.length - l.length; u++) {
|
|
1033
1207
|
const s = o.slice(u, u + l.length + 1);
|
|
1034
|
-
if (
|
|
1208
|
+
if (He(l, s))
|
|
1035
1209
|
return !0;
|
|
1036
1210
|
}
|
|
1037
1211
|
return !1;
|
|
1038
1212
|
});
|
|
1039
|
-
},
|
|
1213
|
+
}, tt = "nav-drawer-hover", nt = "nav-drawer-animation-start", rt = "nav-drawer-animation-end", wt = (r) => {
|
|
1040
1214
|
window.dispatchEvent(
|
|
1041
|
-
new CustomEvent(
|
|
1215
|
+
new CustomEvent(tt, {
|
|
1042
1216
|
detail: { isHovering: r },
|
|
1043
1217
|
bubbles: !0,
|
|
1044
1218
|
cancelable: !0
|
|
@@ -1051,7 +1225,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1051
1225
|
cancelable: !0
|
|
1052
1226
|
})
|
|
1053
1227
|
);
|
|
1054
|
-
},
|
|
1228
|
+
}, Nn = (r = !1, l = !1, a = !1) => r || !l ? "column" : a ? "row" : "row-reverse", Vn = lt(qt), Yn = lt(en), qe = ({
|
|
1055
1229
|
isOpen: r = !1,
|
|
1056
1230
|
onClose: l,
|
|
1057
1231
|
title: a,
|
|
@@ -1061,39 +1235,39 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1061
1235
|
bottomButton: h,
|
|
1062
1236
|
hasBackButton: y = !0,
|
|
1063
1237
|
onBackClick: p,
|
|
1064
|
-
hasOnlySpotlightCards:
|
|
1238
|
+
hasOnlySpotlightCards: j = !1,
|
|
1065
1239
|
hasSearch: c = !1,
|
|
1066
1240
|
onSearch: E = () => ({}),
|
|
1067
|
-
topOffset:
|
|
1241
|
+
topOffset: b
|
|
1068
1242
|
}) => {
|
|
1069
|
-
var
|
|
1070
|
-
const g =
|
|
1243
|
+
var U, q;
|
|
1244
|
+
const g = Fe({
|
|
1071
1245
|
base: !1,
|
|
1072
1246
|
tablet: !1,
|
|
1073
1247
|
largeTablet: !1,
|
|
1074
1248
|
desktop: !0
|
|
1075
|
-
}),
|
|
1076
|
-
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
E(
|
|
1249
|
+
}), k = g ? "top" : "right", [Z, ne] = G(0), [O, S] = G(!1), re = () => {
|
|
1250
|
+
ne((L) => L + 1);
|
|
1251
|
+
}, $ = St(
|
|
1252
|
+
Wn((L) => {
|
|
1253
|
+
E(L), re();
|
|
1080
1254
|
}, 100),
|
|
1081
1255
|
[]
|
|
1082
1256
|
);
|
|
1083
|
-
|
|
1084
|
-
r && (
|
|
1257
|
+
J(() => {
|
|
1258
|
+
r && (S(!0), Ct(nt));
|
|
1085
1259
|
}, [r]);
|
|
1086
|
-
const
|
|
1087
|
-
r || (
|
|
1260
|
+
const V = () => {
|
|
1261
|
+
r || (S(!1), l()), Ct(rt);
|
|
1088
1262
|
};
|
|
1089
1263
|
return /* @__PURE__ */ t.jsx(
|
|
1090
|
-
|
|
1264
|
+
tn,
|
|
1091
1265
|
{
|
|
1092
1266
|
isOpen: O || r,
|
|
1093
1267
|
onClose: () => {
|
|
1094
1268
|
O && g || l();
|
|
1095
1269
|
},
|
|
1096
|
-
placement:
|
|
1270
|
+
placement: k,
|
|
1097
1271
|
blockScrollOnMount: !1,
|
|
1098
1272
|
autoFocus: !1,
|
|
1099
1273
|
...g ? {
|
|
@@ -1101,9 +1275,9 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1101
1275
|
baseStyle: {
|
|
1102
1276
|
...Ee.components.Drawer.baseStyle,
|
|
1103
1277
|
dialogContainer: {
|
|
1104
|
-
...(
|
|
1278
|
+
...(q = (U = Ee.components.Drawer) == null ? void 0 : U.baseStyle) == null ? void 0 : q.dialogContainer,
|
|
1105
1279
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1106
|
-
top: g ? `${
|
|
1280
|
+
top: g ? `${b}px` : void 0,
|
|
1107
1281
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1108
1282
|
zIndex: ["overlay"]
|
|
1109
1283
|
}
|
|
@@ -1116,10 +1290,10 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1116
1290
|
t.Fragment,
|
|
1117
1291
|
{ children: [
|
|
1118
1292
|
/* @__PURE__ */ t.jsx(
|
|
1119
|
-
|
|
1293
|
+
Yn,
|
|
1120
1294
|
{
|
|
1121
1295
|
backgroundColor: "tints.black",
|
|
1122
|
-
top: ["0", null, null, `${
|
|
1296
|
+
top: ["0", null, null, `${b}px`],
|
|
1123
1297
|
opacity: g ? void 0 : "0.4 !important",
|
|
1124
1298
|
...g ? {
|
|
1125
1299
|
initial: { opacity: 0 },
|
|
@@ -1134,17 +1308,17 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1134
1308
|
}
|
|
1135
1309
|
),
|
|
1136
1310
|
/* @__PURE__ */ t.jsxs(
|
|
1137
|
-
|
|
1311
|
+
Vn,
|
|
1138
1312
|
{
|
|
1139
|
-
onClick: (
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1313
|
+
onClick: (L) => {
|
|
1314
|
+
const M = L.target.closest("a");
|
|
1315
|
+
M && M.href === window.location.href && l();
|
|
1142
1316
|
},
|
|
1143
1317
|
onMouseEnter: () => {
|
|
1144
1318
|
g && wt(!0);
|
|
1145
1319
|
},
|
|
1146
|
-
onMouseLeave: (
|
|
1147
|
-
g && (!c || c && (
|
|
1320
|
+
onMouseLeave: (L) => {
|
|
1321
|
+
g && (!c || c && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !O)) && wt(!1);
|
|
1148
1322
|
},
|
|
1149
1323
|
paddingTop: "4",
|
|
1150
1324
|
paddingX: [4, null, null, 12],
|
|
@@ -1152,8 +1326,8 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1152
1326
|
overflow: ["auto", null, null, "hidden"],
|
|
1153
1327
|
maxHeight: "100vh",
|
|
1154
1328
|
position: "relative",
|
|
1155
|
-
top: g ? `${
|
|
1156
|
-
onAnimationComplete:
|
|
1329
|
+
top: g ? `${b}px !important` : void 0,
|
|
1330
|
+
onAnimationComplete: V,
|
|
1157
1331
|
boxShadow: "none",
|
|
1158
1332
|
...g ? {
|
|
1159
1333
|
initial: { height: 0, opacity: 0 },
|
|
@@ -1163,7 +1337,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1163
1337
|
} : {},
|
|
1164
1338
|
children: [
|
|
1165
1339
|
!c && g ? null : /* @__PURE__ */ t.jsxs(
|
|
1166
|
-
|
|
1340
|
+
nn,
|
|
1167
1341
|
{
|
|
1168
1342
|
padding: "0",
|
|
1169
1343
|
flexDirection: c ? "column" : "row",
|
|
@@ -1179,7 +1353,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1179
1353
|
y ? /* @__PURE__ */ t.jsx(
|
|
1180
1354
|
he,
|
|
1181
1355
|
{
|
|
1182
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1356
|
+
icon: /* @__PURE__ */ t.jsx(En, {}),
|
|
1183
1357
|
onClick: () => {
|
|
1184
1358
|
p && p();
|
|
1185
1359
|
},
|
|
@@ -1197,7 +1371,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1197
1371
|
/* @__PURE__ */ t.jsx(
|
|
1198
1372
|
he,
|
|
1199
1373
|
{
|
|
1200
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1374
|
+
icon: /* @__PURE__ */ t.jsx(Rn, {}),
|
|
1201
1375
|
onClick: l,
|
|
1202
1376
|
"aria-label": "Close"
|
|
1203
1377
|
}
|
|
@@ -1211,8 +1385,8 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1211
1385
|
/* @__PURE__ */ t.jsx(
|
|
1212
1386
|
bn,
|
|
1213
1387
|
{
|
|
1214
|
-
onChange: (
|
|
1215
|
-
|
|
1388
|
+
onChange: (L) => {
|
|
1389
|
+
$(L.target.value);
|
|
1216
1390
|
},
|
|
1217
1391
|
placeholder: "Search",
|
|
1218
1392
|
autoFocus: !0,
|
|
@@ -1230,13 +1404,13 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1230
1404
|
}
|
|
1231
1405
|
),
|
|
1232
1406
|
/* @__PURE__ */ t.jsx(
|
|
1233
|
-
|
|
1407
|
+
rn,
|
|
1234
1408
|
{
|
|
1235
1409
|
paddingX: "0",
|
|
1236
1410
|
paddingBottom: [6, null, null, 4],
|
|
1237
1411
|
"data-testid": `navbar-drawer-body-${a.toLowerCase()}`,
|
|
1238
1412
|
children: /* @__PURE__ */ t.jsxs(
|
|
1239
|
-
|
|
1413
|
+
lt.div,
|
|
1240
1414
|
{
|
|
1241
1415
|
...g ? {
|
|
1242
1416
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1255,8 +1429,8 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1255
1429
|
} : {},
|
|
1256
1430
|
style: {
|
|
1257
1431
|
display: "flex",
|
|
1258
|
-
flexDirection:
|
|
1259
|
-
|
|
1432
|
+
flexDirection: Nn(
|
|
1433
|
+
j,
|
|
1260
1434
|
g,
|
|
1261
1435
|
c
|
|
1262
1436
|
),
|
|
@@ -1301,7 +1475,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1301
1475
|
)
|
|
1302
1476
|
]
|
|
1303
1477
|
},
|
|
1304
|
-
|
|
1478
|
+
Z
|
|
1305
1479
|
)
|
|
1306
1480
|
}
|
|
1307
1481
|
)
|
|
@@ -1313,210 +1487,23 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1313
1487
|
)
|
|
1314
1488
|
}
|
|
1315
1489
|
);
|
|
1316
|
-
},
|
|
1317
|
-
desktopTopButtons: r,
|
|
1318
|
-
kitRegistrationElement: l,
|
|
1319
|
-
profileElement: a,
|
|
1320
|
-
cartElement: o,
|
|
1321
|
-
onSearchClick: u,
|
|
1322
|
-
onMenuClick: s,
|
|
1323
|
-
hasSearch: h = !1,
|
|
1324
|
-
logoLink: y = "https://www.everlywell.com",
|
|
1325
|
-
setTopOffset: p,
|
|
1326
|
-
linkComponent: b,
|
|
1327
|
-
onLogoClick: c
|
|
1328
|
-
}) => {
|
|
1329
|
-
const E = gn(null), [w, g] = G(!1);
|
|
1330
|
-
Q(() => {
|
|
1331
|
-
const M = () => g(!0), U = () => g(!1);
|
|
1332
|
-
return window.addEventListener(tt, M), window.addEventListener(nt, U), () => {
|
|
1333
|
-
window.removeEventListener(
|
|
1334
|
-
tt,
|
|
1335
|
-
M
|
|
1336
|
-
), window.removeEventListener(nt, U);
|
|
1337
|
-
};
|
|
1338
|
-
}, []);
|
|
1339
|
-
const S = St(() => {
|
|
1340
|
-
if (E.current) {
|
|
1341
|
-
const M = E.current.getBoundingClientRect();
|
|
1342
|
-
p(M.bottom);
|
|
1343
|
-
}
|
|
1344
|
-
}, []);
|
|
1345
|
-
return Q(() => {
|
|
1346
|
-
S();
|
|
1347
|
-
}, [S]), /* @__PURE__ */ t.jsx(
|
|
1348
|
-
m,
|
|
1349
|
-
{
|
|
1350
|
-
ref: E,
|
|
1351
|
-
paddingY: "4",
|
|
1352
|
-
paddingX: [4, null, null, 12],
|
|
1353
|
-
borderBottom: "1px solid",
|
|
1354
|
-
borderColor: "tints.lightCream",
|
|
1355
|
-
backgroundColor: "tints.white",
|
|
1356
|
-
position: "sticky",
|
|
1357
|
-
top: "0",
|
|
1358
|
-
width: "100%",
|
|
1359
|
-
zIndex: ["sticky", null, null, w ? "modal" : "sticky"],
|
|
1360
|
-
onMouseEnter: S,
|
|
1361
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
1362
|
-
C,
|
|
1363
|
-
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1364
|
-
/* @__PURE__ */ t.jsxs(
|
|
1365
|
-
C,
|
|
1366
|
-
{ alignItems: "center", gap: "5", children: [
|
|
1367
|
-
/* @__PURE__ */ t.jsx(
|
|
1368
|
-
m,
|
|
1369
|
-
{
|
|
1370
|
-
"aria-label": "Go to homepage",
|
|
1371
|
-
onClick: c,
|
|
1372
|
-
as: b || V,
|
|
1373
|
-
...pe(y, !!b),
|
|
1374
|
-
children: /* @__PURE__ */ t.jsx(kt, { width: "116px" })
|
|
1375
|
-
}
|
|
1376
|
-
),
|
|
1377
|
-
/* @__PURE__ */ t.jsx(
|
|
1378
|
-
C,
|
|
1379
|
-
{ display: ["none", null, null, "flex"], children: r }
|
|
1380
|
-
)
|
|
1381
|
-
] }
|
|
1382
|
-
),
|
|
1383
|
-
/* @__PURE__ */ t.jsxs(
|
|
1384
|
-
C,
|
|
1385
|
-
{ alignItems: "center", gap: "2", children: [
|
|
1386
|
-
/* @__PURE__ */ t.jsx(
|
|
1387
|
-
m,
|
|
1388
|
-
{ display: ["none", null, null, "block"], children: l }
|
|
1389
|
-
),
|
|
1390
|
-
h ? /* @__PURE__ */ t.jsx(
|
|
1391
|
-
he,
|
|
1392
|
-
{
|
|
1393
|
-
"aria-label": "Search",
|
|
1394
|
-
icon: /* @__PURE__ */ t.jsx(q, { as: Tt }),
|
|
1395
|
-
onClick: u
|
|
1396
|
-
}
|
|
1397
|
-
) : null,
|
|
1398
|
-
o,
|
|
1399
|
-
/* @__PURE__ */ t.jsx(
|
|
1400
|
-
m,
|
|
1401
|
-
{ display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
|
|
1402
|
-
he,
|
|
1403
|
-
{
|
|
1404
|
-
icon: /* @__PURE__ */ t.jsx(En, {}),
|
|
1405
|
-
"aria-label": "menu",
|
|
1406
|
-
"data-testid": "menu-button",
|
|
1407
|
-
onClick: s
|
|
1408
|
-
}
|
|
1409
|
-
) }
|
|
1410
|
-
),
|
|
1411
|
-
/* @__PURE__ */ t.jsx(m, { display: ["none", null, null, "block"], children: a })
|
|
1412
|
-
] }
|
|
1413
|
-
)
|
|
1414
|
-
] }
|
|
1415
|
-
)
|
|
1416
|
-
}
|
|
1417
|
-
);
|
|
1418
|
-
}, Yn = ({
|
|
1419
|
-
count: r = 0,
|
|
1420
|
-
...l
|
|
1421
|
-
}) => /* @__PURE__ */ t.jsxs(
|
|
1422
|
-
m,
|
|
1423
|
-
{ position: "relative", display: "inline-block", children: [
|
|
1424
|
-
/* @__PURE__ */ t.jsx(he, { icon: /* @__PURE__ */ t.jsx(Rn, {}), ...l }),
|
|
1425
|
-
r > 0 && /* @__PURE__ */ t.jsx(
|
|
1426
|
-
m,
|
|
1427
|
-
{
|
|
1428
|
-
display: "flex",
|
|
1429
|
-
minWidth: "20px",
|
|
1430
|
-
height: "20px",
|
|
1431
|
-
py: "4px",
|
|
1432
|
-
px: "6px",
|
|
1433
|
-
justifyContent: "center",
|
|
1434
|
-
alignItems: "center",
|
|
1435
|
-
position: "absolute",
|
|
1436
|
-
right: "-4px",
|
|
1437
|
-
top: "-4px",
|
|
1438
|
-
borderRadius: "32px",
|
|
1439
|
-
background: "viridian.base",
|
|
1440
|
-
color: "white",
|
|
1441
|
-
fontSize: "xs",
|
|
1442
|
-
fontWeight: "normal",
|
|
1443
|
-
children: r
|
|
1444
|
-
}
|
|
1445
|
-
)
|
|
1446
|
-
] }
|
|
1447
|
-
), or = ({
|
|
1448
|
-
numDesktopLinks: r = 5,
|
|
1449
|
-
showPromoButton: l = !1
|
|
1450
|
-
}) => /* @__PURE__ */ t.jsx(
|
|
1451
|
-
rn,
|
|
1452
|
-
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1453
|
-
m,
|
|
1454
|
-
{
|
|
1455
|
-
paddingY: 4,
|
|
1456
|
-
paddingX: 6,
|
|
1457
|
-
borderBottomWidth: "1px",
|
|
1458
|
-
borderColor: "tints.lightCream",
|
|
1459
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
1460
|
-
C,
|
|
1461
|
-
{ justify: "space-between", align: "center", children: [
|
|
1462
|
-
/* @__PURE__ */ t.jsx(Ze, { w: "120px", h: "48px" }),
|
|
1463
|
-
/* @__PURE__ */ t.jsxs(
|
|
1464
|
-
pt,
|
|
1465
|
-
{
|
|
1466
|
-
spacing: 8,
|
|
1467
|
-
marginLeft: 12,
|
|
1468
|
-
display: ["none", null, null, "flex"],
|
|
1469
|
-
"data-testid": "desktop-nav",
|
|
1470
|
-
children: [
|
|
1471
|
-
Array.from({ length: r }).map(
|
|
1472
|
-
(a, o) => /* @__PURE__ */ t.jsx(Ze, { width: "90px", height: "48px" }, o)
|
|
1473
|
-
),
|
|
1474
|
-
l && /* @__PURE__ */ t.jsx(Ze, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1475
|
-
]
|
|
1476
|
-
}
|
|
1477
|
-
),
|
|
1478
|
-
/* @__PURE__ */ t.jsxs(
|
|
1479
|
-
pt,
|
|
1480
|
-
{ spacing: 4, ml: "auto", children: [
|
|
1481
|
-
/* @__PURE__ */ t.jsx(
|
|
1482
|
-
Oe,
|
|
1483
|
-
{
|
|
1484
|
-
width: "120px",
|
|
1485
|
-
height: "48px",
|
|
1486
|
-
display: ["none", null, null, "block"],
|
|
1487
|
-
"data-testid": "register-kit"
|
|
1488
|
-
}
|
|
1489
|
-
),
|
|
1490
|
-
" ",
|
|
1491
|
-
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1492
|
-
" ",
|
|
1493
|
-
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1494
|
-
" ",
|
|
1495
|
-
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1496
|
-
" "
|
|
1497
|
-
] }
|
|
1498
|
-
)
|
|
1499
|
-
] }
|
|
1500
|
-
)
|
|
1501
|
-
}
|
|
1502
|
-
) }
|
|
1503
|
-
), Gn = ({
|
|
1490
|
+
}, Gn = ({
|
|
1504
1491
|
source: r,
|
|
1505
1492
|
onSearchCallback: l,
|
|
1506
1493
|
isActive: a
|
|
1507
1494
|
}) => {
|
|
1508
1495
|
const [o, u] = G(""), [s, h] = G([]), y = (c, E) => {
|
|
1509
1496
|
if (!c) return [];
|
|
1510
|
-
const g =
|
|
1511
|
-
return E.filter((
|
|
1512
|
-
const
|
|
1513
|
-
if (g.some((
|
|
1514
|
-
const O =
|
|
1515
|
-
const
|
|
1516
|
-
return jt(
|
|
1497
|
+
const g = Qe(c).split(/\s+/);
|
|
1498
|
+
return E.filter((k) => {
|
|
1499
|
+
const Z = Qe(k.label);
|
|
1500
|
+
if (g.some(($) => jt(Z, $))) return !0;
|
|
1501
|
+
const O = Z.split(/\s+/), S = g.some(($) => O.some((V) => V.includes($) || He($, V))), re = typeof k.additionalContent == "string" && g.some(($) => {
|
|
1502
|
+
const V = Qe(k.additionalContent);
|
|
1503
|
+
return jt(V, $) || V.split(/\s+/).some((U) => U.includes($) || He($, U));
|
|
1517
1504
|
});
|
|
1518
|
-
return
|
|
1519
|
-
}).sort((
|
|
1505
|
+
return S || re;
|
|
1506
|
+
}).sort((k, Z) => k.label.localeCompare(Z.label));
|
|
1520
1507
|
}, p = (c) => {
|
|
1521
1508
|
if (u(c), !c) {
|
|
1522
1509
|
h([]);
|
|
@@ -1524,15 +1511,15 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1524
1511
|
}
|
|
1525
1512
|
const E = y(c, r);
|
|
1526
1513
|
h(E), l && l(c, E);
|
|
1527
|
-
},
|
|
1514
|
+
}, j = () => {
|
|
1528
1515
|
u(""), h([]);
|
|
1529
1516
|
};
|
|
1530
|
-
return
|
|
1517
|
+
return J(() => {
|
|
1531
1518
|
a || (u(""), h([]));
|
|
1532
1519
|
}, [a]), {
|
|
1533
1520
|
query: o,
|
|
1534
1521
|
results: s,
|
|
1535
|
-
handleClose:
|
|
1522
|
+
handleClose: j,
|
|
1536
1523
|
handleSearch: p
|
|
1537
1524
|
};
|
|
1538
1525
|
}, Un = (r) => {
|
|
@@ -1540,7 +1527,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1540
1527
|
return r.reduce((a, o) => {
|
|
1541
1528
|
var s;
|
|
1542
1529
|
const u = ((s = o.sections) == null ? void 0 : s.reduce((h, y) => {
|
|
1543
|
-
const p = y.links.filter((
|
|
1530
|
+
const p = y.links.filter((j) => l.has(j.label) || j.isSearchable !== !0 ? !1 : (l.add(j.label), !0));
|
|
1544
1531
|
return [...h, ...p];
|
|
1545
1532
|
}, [])) ?? [];
|
|
1546
1533
|
return [...a, ...u];
|
|
@@ -1555,41 +1542,51 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1555
1542
|
registrationUrl: h,
|
|
1556
1543
|
profileUrl: y = "https://secure.everlywell.com/login",
|
|
1557
1544
|
mobileBottomButtons: p = [],
|
|
1558
|
-
numberOfCartItems:
|
|
1545
|
+
numberOfCartItems: j = 0,
|
|
1559
1546
|
linkComponent: c,
|
|
1560
1547
|
onSearchCallback: E,
|
|
1561
|
-
onLinkClick:
|
|
1548
|
+
onLinkClick: b,
|
|
1562
1549
|
onCategoryOpen: g,
|
|
1563
|
-
onMobileMenuOpen:
|
|
1564
|
-
onBackToMainMenu:
|
|
1565
|
-
onRegisterKitClick:
|
|
1550
|
+
onMobileMenuOpen: k,
|
|
1551
|
+
onBackToMainMenu: Z,
|
|
1552
|
+
onRegisterKitClick: ne,
|
|
1566
1553
|
onProfileClick: O,
|
|
1567
|
-
onLogoClick:
|
|
1568
|
-
shopAllProductsUrl:
|
|
1569
|
-
onShopAllProductsClick:
|
|
1554
|
+
onLogoClick: S,
|
|
1555
|
+
shopAllProductsUrl: re,
|
|
1556
|
+
onShopAllProductsClick: $
|
|
1570
1557
|
}) => {
|
|
1571
|
-
var
|
|
1572
|
-
const [
|
|
1558
|
+
var we, ie, Oe;
|
|
1559
|
+
const [V, U] = G(!1), [q, L] = G(!1), [_, M] = G(null), [_e, ge] = G(!1), [B, K] = G(!1), [X, Se] = G(0), [Te, xe] = G(!1);
|
|
1560
|
+
J(() => {
|
|
1561
|
+
const d = () => xe(!0), T = () => xe(!1);
|
|
1562
|
+
return window.addEventListener(nt, d), window.addEventListener(rt, T), () => {
|
|
1563
|
+
window.removeEventListener(
|
|
1564
|
+
nt,
|
|
1565
|
+
d
|
|
1566
|
+
), window.removeEventListener(rt, T);
|
|
1567
|
+
};
|
|
1568
|
+
}, []);
|
|
1569
|
+
const ke = Fe({
|
|
1573
1570
|
base: !1,
|
|
1574
1571
|
tablet: !1,
|
|
1575
1572
|
largeTablet: !1,
|
|
1576
1573
|
desktop: !0
|
|
1577
1574
|
}) ?? !1;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
}, [
|
|
1575
|
+
J(() => {
|
|
1576
|
+
ee(), M(null);
|
|
1577
|
+
}, [ke]);
|
|
1581
1578
|
const {
|
|
1582
|
-
query:
|
|
1583
|
-
results:
|
|
1584
|
-
handleSearch:
|
|
1579
|
+
query: De,
|
|
1580
|
+
results: se,
|
|
1581
|
+
handleSearch: Ie
|
|
1585
1582
|
} = Gn({
|
|
1586
1583
|
source: Un(r),
|
|
1587
1584
|
onSearchCallback: E,
|
|
1588
|
-
isActive:
|
|
1589
|
-
}),
|
|
1585
|
+
isActive: q
|
|
1586
|
+
}), ve = se.length > 0, me = c || N, Be = pe(re, !!c), be = De && /* @__PURE__ */ t.jsxs(
|
|
1590
1587
|
C,
|
|
1591
|
-
{ gap:
|
|
1592
|
-
|
|
1588
|
+
{ gap: ve ? "6" : 0, direction: "column", children: [
|
|
1589
|
+
ve ? /* @__PURE__ */ t.jsx(A, { color: "tints.uiGrey", children: `${se.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1593
1590
|
C,
|
|
1594
1591
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1595
1592
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1599,11 +1596,11 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1599
1596
|
/* @__PURE__ */ t.jsx(
|
|
1600
1597
|
Rt,
|
|
1601
1598
|
{
|
|
1602
|
-
as:
|
|
1603
|
-
onClick:
|
|
1599
|
+
as: me,
|
|
1600
|
+
onClick: $,
|
|
1604
1601
|
_hover: { textDecoration: "none" },
|
|
1605
1602
|
width: ["100%", null, null, "auto"],
|
|
1606
|
-
...
|
|
1603
|
+
...Be,
|
|
1607
1604
|
children: "Shop all products"
|
|
1608
1605
|
}
|
|
1609
1606
|
)
|
|
@@ -1611,11 +1608,11 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1611
1608
|
),
|
|
1612
1609
|
/* @__PURE__ */ t.jsx(
|
|
1613
1610
|
ln,
|
|
1614
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1615
|
-
(d,
|
|
1611
|
+
{ columns: [1, 1, 1, 4], children: se.map(
|
|
1612
|
+
(d, T) => /* @__PURE__ */ t.jsx(
|
|
1616
1613
|
on,
|
|
1617
1614
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1618
|
-
|
|
1615
|
+
Je,
|
|
1619
1616
|
{
|
|
1620
1617
|
href: d.href,
|
|
1621
1618
|
label: d.label,
|
|
@@ -1623,92 +1620,92 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1623
1620
|
linkComponent: c
|
|
1624
1621
|
}
|
|
1625
1622
|
) },
|
|
1626
|
-
`${d.label}-${
|
|
1623
|
+
`${d.label}-${T}`
|
|
1627
1624
|
)
|
|
1628
1625
|
) }
|
|
1629
1626
|
)
|
|
1630
1627
|
] }
|
|
1631
|
-
),
|
|
1632
|
-
|
|
1633
|
-
},
|
|
1634
|
-
|
|
1635
|
-
},
|
|
1636
|
-
ge(!0),
|
|
1637
|
-
},
|
|
1628
|
+
), ee = () => {
|
|
1629
|
+
U(!1), M(null);
|
|
1630
|
+
}, Y = (d) => "href" in d, je = (d) => {
|
|
1631
|
+
Y(d) ? b == null || b(d.label) : M(d);
|
|
1632
|
+
}, ue = (d) => {
|
|
1633
|
+
ge(!0), L(!1), M(null), !Y(d) && (d.sections || d.spotlightCards) && M(d);
|
|
1634
|
+
}, We = () => {
|
|
1638
1635
|
ge(!1);
|
|
1639
1636
|
};
|
|
1640
|
-
|
|
1641
|
-
const d = (
|
|
1642
|
-
|
|
1637
|
+
J(() => {
|
|
1638
|
+
const d = (T) => {
|
|
1639
|
+
K(T.detail.isHovering);
|
|
1643
1640
|
};
|
|
1644
1641
|
return window.addEventListener(
|
|
1645
|
-
|
|
1642
|
+
tt,
|
|
1646
1643
|
d
|
|
1647
1644
|
), () => {
|
|
1648
1645
|
window.removeEventListener(
|
|
1649
|
-
|
|
1646
|
+
tt,
|
|
1650
1647
|
d
|
|
1651
1648
|
);
|
|
1652
1649
|
};
|
|
1653
|
-
}, []),
|
|
1654
|
-
!_e && !
|
|
1655
|
-
}, [_e,
|
|
1650
|
+
}, []), J(() => {
|
|
1651
|
+
!_e && !B && (M(null), L(!1));
|
|
1652
|
+
}, [_e, B]), J(() => {
|
|
1656
1653
|
let d = window.location.href;
|
|
1657
|
-
const
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
},
|
|
1661
|
-
return window.addEventListener("popstate",
|
|
1662
|
-
window.removeEventListener("popstate",
|
|
1654
|
+
const T = () => {
|
|
1655
|
+
const W = window.location.href;
|
|
1656
|
+
W !== d && (d = W, ee(), M(null));
|
|
1657
|
+
}, H = setInterval(T, 100);
|
|
1658
|
+
return window.addEventListener("popstate", T), () => {
|
|
1659
|
+
window.removeEventListener("popstate", T), clearInterval(H);
|
|
1663
1660
|
};
|
|
1664
1661
|
}, []);
|
|
1665
|
-
const
|
|
1666
|
-
(d,
|
|
1667
|
-
|
|
1662
|
+
const Le = r == null ? void 0 : r.map(
|
|
1663
|
+
(d, T) => /* @__PURE__ */ t.jsx(
|
|
1664
|
+
Me,
|
|
1668
1665
|
{
|
|
1669
1666
|
onMouseEnter: () => {
|
|
1670
|
-
|
|
1667
|
+
ue(d), g == null || g(d.label);
|
|
1671
1668
|
},
|
|
1672
|
-
onMouseLeave:
|
|
1669
|
+
onMouseLeave: We,
|
|
1673
1670
|
isSelected: (_ == null ? void 0 : _.label) === d.label,
|
|
1674
|
-
as:
|
|
1675
|
-
href:
|
|
1676
|
-
onClick:
|
|
1671
|
+
as: Y(d) && me ? me : N,
|
|
1672
|
+
href: Y(d) ? d.href : void 0,
|
|
1673
|
+
onClick: Y(d) ? () => b == null ? void 0 : b(d.label) : void 0,
|
|
1677
1674
|
...d.buttonProps,
|
|
1678
1675
|
children: d.label
|
|
1679
1676
|
},
|
|
1680
|
-
`${d.label}-${
|
|
1677
|
+
`${d.label}-${T}`
|
|
1681
1678
|
)
|
|
1682
|
-
),
|
|
1683
|
-
(d) => !
|
|
1684
|
-
)) == null ? void 0 :
|
|
1685
|
-
const
|
|
1679
|
+
), ze = (we = r.filter(
|
|
1680
|
+
(d) => !Y(d) && d.isMobileTopLink !== !1
|
|
1681
|
+
)) == null ? void 0 : we.map((d, T) => {
|
|
1682
|
+
const H = d;
|
|
1686
1683
|
return /* @__PURE__ */ t.jsx(
|
|
1687
1684
|
m,
|
|
1688
1685
|
{
|
|
1689
1686
|
onClick: () => {
|
|
1690
|
-
|
|
1687
|
+
je(H), g == null || g(H.label);
|
|
1691
1688
|
},
|
|
1692
1689
|
children: /* @__PURE__ */ t.jsx(
|
|
1693
|
-
|
|
1690
|
+
Je,
|
|
1694
1691
|
{
|
|
1695
|
-
label:
|
|
1692
|
+
label: H.label,
|
|
1696
1693
|
role: "link",
|
|
1697
|
-
additionalContent:
|
|
1694
|
+
additionalContent: H.additionalContent,
|
|
1698
1695
|
mainTextFontSize: "3xl",
|
|
1699
1696
|
linkComponent: c
|
|
1700
1697
|
}
|
|
1701
1698
|
)
|
|
1702
1699
|
},
|
|
1703
|
-
`${
|
|
1700
|
+
`${H.label}-${T}`
|
|
1704
1701
|
);
|
|
1705
|
-
}),
|
|
1702
|
+
}), Ne = /* @__PURE__ */ t.jsxs(
|
|
1706
1703
|
t.Fragment,
|
|
1707
1704
|
{ children: [
|
|
1708
1705
|
/* @__PURE__ */ t.jsx(
|
|
1709
|
-
|
|
1706
|
+
Me,
|
|
1710
1707
|
{
|
|
1711
|
-
as:
|
|
1708
|
+
as: N,
|
|
1712
1709
|
href: y,
|
|
1713
1710
|
width: "100%",
|
|
1714
1711
|
backgroundColor: "tints.cream",
|
|
@@ -1717,43 +1714,43 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1717
1714
|
C,
|
|
1718
1715
|
{ gap: "2", children: [
|
|
1719
1716
|
"My Everly",
|
|
1720
|
-
/* @__PURE__ */ t.jsx(
|
|
1717
|
+
/* @__PURE__ */ t.jsx(Q, { as: xt, size: 24 })
|
|
1721
1718
|
] }
|
|
1722
1719
|
)
|
|
1723
1720
|
},
|
|
1724
1721
|
"my-everly"
|
|
1725
1722
|
),
|
|
1726
1723
|
/* @__PURE__ */ t.jsx(
|
|
1727
|
-
|
|
1724
|
+
Me,
|
|
1728
1725
|
{
|
|
1729
|
-
as:
|
|
1726
|
+
as: N,
|
|
1730
1727
|
width: "100%",
|
|
1731
1728
|
href: h,
|
|
1732
1729
|
backgroundColor: "tints.cream",
|
|
1733
|
-
onClick:
|
|
1730
|
+
onClick: ne,
|
|
1734
1731
|
children: /* @__PURE__ */ t.jsxs(
|
|
1735
1732
|
C,
|
|
1736
1733
|
{ gap: "2", children: [
|
|
1737
1734
|
"Register kit",
|
|
1738
|
-
/* @__PURE__ */ t.jsx(
|
|
1735
|
+
/* @__PURE__ */ t.jsx(Q, { as: _n, size: 24 })
|
|
1739
1736
|
] }
|
|
1740
1737
|
)
|
|
1741
1738
|
},
|
|
1742
1739
|
"register-kit"
|
|
1743
1740
|
)
|
|
1744
1741
|
] }
|
|
1745
|
-
),
|
|
1742
|
+
), ce = /* @__PURE__ */ t.jsxs(
|
|
1746
1743
|
C,
|
|
1747
1744
|
{ gap: "2", flexDirection: "column", children: [
|
|
1748
1745
|
p,
|
|
1749
|
-
|
|
1746
|
+
Ne
|
|
1750
1747
|
] }
|
|
1751
|
-
),
|
|
1748
|
+
), le = _ ? /* @__PURE__ */ t.jsx(
|
|
1752
1749
|
C,
|
|
1753
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (
|
|
1754
|
-
const
|
|
1755
|
-
for (let
|
|
1756
|
-
|
|
1750
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (ie = _ == null ? void 0 : _.sections) == null ? void 0 : ie.map((d, T) => {
|
|
1751
|
+
const H = [];
|
|
1752
|
+
for (let W = 0; W < d.links.length; W += 3)
|
|
1753
|
+
H.push(d.links.slice(W, W + 3));
|
|
1757
1754
|
return /* @__PURE__ */ t.jsxs(
|
|
1758
1755
|
m,
|
|
1759
1756
|
{ children: [
|
|
@@ -1771,131 +1768,139 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1771
1768
|
{
|
|
1772
1769
|
flexDirection: ["column", null, null, "row"],
|
|
1773
1770
|
gap: [null, null, null, 8],
|
|
1774
|
-
children:
|
|
1775
|
-
(
|
|
1771
|
+
children: H == null ? void 0 : H.map(
|
|
1772
|
+
(W, Pe) => /* @__PURE__ */ t.jsx(
|
|
1776
1773
|
C,
|
|
1777
1774
|
{
|
|
1778
1775
|
flexDirection: ["column"],
|
|
1779
1776
|
gap: [null, null, null, 5],
|
|
1780
1777
|
marginLeft: [null, null, null, -2],
|
|
1781
|
-
children:
|
|
1782
|
-
(
|
|
1783
|
-
|
|
1778
|
+
children: W == null ? void 0 : W.map(
|
|
1779
|
+
(te, oe) => /* @__PURE__ */ t.jsx(
|
|
1780
|
+
Je,
|
|
1784
1781
|
{
|
|
1785
|
-
label:
|
|
1786
|
-
href:
|
|
1787
|
-
additionalContent:
|
|
1782
|
+
label: te.label,
|
|
1783
|
+
href: te.href,
|
|
1784
|
+
additionalContent: te.additionalContent,
|
|
1788
1785
|
linkComponent: c,
|
|
1789
|
-
onClick: () =>
|
|
1786
|
+
onClick: () => b == null ? void 0 : b(te.label)
|
|
1790
1787
|
},
|
|
1791
|
-
`${
|
|
1788
|
+
`${te.label}-${oe}`
|
|
1792
1789
|
)
|
|
1793
1790
|
)
|
|
1794
1791
|
},
|
|
1795
|
-
|
|
1792
|
+
Pe
|
|
1796
1793
|
)
|
|
1797
1794
|
)
|
|
1798
1795
|
}
|
|
1799
1796
|
)
|
|
1800
1797
|
] },
|
|
1801
|
-
`${d.title}-${
|
|
1798
|
+
`${d.title}-${T}`
|
|
1802
1799
|
);
|
|
1803
1800
|
}) }
|
|
1804
|
-
) : null,
|
|
1805
|
-
(d,
|
|
1801
|
+
) : null, Ae = _ != null && _.spotlightCards ? (Oe = _.spotlightCards) == null ? void 0 : Oe.map(
|
|
1802
|
+
(d, T) => /* @__PURE__ */ t.jsx(Hn, { ...d }, `${d.title}-${T}`)
|
|
1806
1803
|
) : /* @__PURE__ */ t.jsx(m, {});
|
|
1807
1804
|
return /* @__PURE__ */ t.jsxs(
|
|
1808
|
-
|
|
1809
|
-
{
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
onClick:
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1805
|
+
m,
|
|
1806
|
+
{
|
|
1807
|
+
as: "nav",
|
|
1808
|
+
"aria-label": "Main navigation",
|
|
1809
|
+
position: "sticky",
|
|
1810
|
+
top: "0",
|
|
1811
|
+
width: "100%",
|
|
1812
|
+
zIndex: ["sticky", null, null, Te ? "modal" : "sticky"],
|
|
1813
|
+
children: [
|
|
1814
|
+
/* @__PURE__ */ t.jsx(
|
|
1815
|
+
Fn,
|
|
1816
|
+
{
|
|
1817
|
+
desktopTopButtons: Le,
|
|
1818
|
+
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1819
|
+
Me,
|
|
1820
|
+
{
|
|
1821
|
+
as: N,
|
|
1822
|
+
href: h,
|
|
1823
|
+
onClick: ne,
|
|
1824
|
+
backgroundColor: "tints.cream",
|
|
1825
|
+
children: "Register Kit"
|
|
1826
|
+
}
|
|
1827
|
+
),
|
|
1828
|
+
profileElement: /* @__PURE__ */ t.jsx(
|
|
1829
|
+
N,
|
|
1830
|
+
{ href: y, "aria-label": "login", onClick: O, children: /* @__PURE__ */ t.jsx(he, { icon: /* @__PURE__ */ t.jsx(Q, { as: xt }), "aria-label": "Profile" }) }
|
|
1831
|
+
),
|
|
1832
|
+
cartElement: /* @__PURE__ */ t.jsx(
|
|
1833
|
+
Bn,
|
|
1834
|
+
{
|
|
1835
|
+
"aria-label": "Cart",
|
|
1836
|
+
count: j,
|
|
1837
|
+
onClick: l
|
|
1838
|
+
}
|
|
1839
|
+
),
|
|
1840
|
+
onSearchClick: () => {
|
|
1841
|
+
L(!q), s == null || s();
|
|
1842
|
+
},
|
|
1843
|
+
onMenuClick: () => {
|
|
1844
|
+
U(!0), k == null || k();
|
|
1845
|
+
},
|
|
1846
|
+
hasSearch: u,
|
|
1847
|
+
logoLink: o,
|
|
1848
|
+
linkComponent: c,
|
|
1849
|
+
onLogoClick: S,
|
|
1850
|
+
setTopOffset: Se
|
|
1851
|
+
}
|
|
1852
|
+
),
|
|
1853
|
+
/* @__PURE__ */ t.jsxs(
|
|
1854
|
+
m,
|
|
1855
|
+
{ position: "relative", zIndex: "modal", children: [
|
|
1856
|
+
/* @__PURE__ */ t.jsx(
|
|
1857
|
+
qe,
|
|
1858
|
+
{
|
|
1859
|
+
isOpen: V,
|
|
1860
|
+
onClose: ee,
|
|
1861
|
+
title: a,
|
|
1862
|
+
navDrawerLinks: ze,
|
|
1863
|
+
bottomNavButtons: ce,
|
|
1864
|
+
hasBackButton: !1,
|
|
1865
|
+
topOffset: X
|
|
1866
|
+
}
|
|
1867
|
+
),
|
|
1868
|
+
/* @__PURE__ */ t.jsx(
|
|
1869
|
+
qe,
|
|
1870
|
+
{
|
|
1871
|
+
isOpen: !!_,
|
|
1872
|
+
onClose: () => {
|
|
1873
|
+
ee(), M(null);
|
|
1874
|
+
},
|
|
1875
|
+
title: (_ == null ? void 0 : _.label) || "",
|
|
1876
|
+
navDrawerLinks: le,
|
|
1877
|
+
onBackClick: () => M(null),
|
|
1878
|
+
spotlightCards: Ae,
|
|
1879
|
+
hasOnlySpotlightCards: _ == null ? void 0 : _.hasOnlySpotlightCards,
|
|
1880
|
+
bottomButton: _ == null ? void 0 : _.bottomButton,
|
|
1881
|
+
topOffset: X
|
|
1882
|
+
}
|
|
1883
|
+
),
|
|
1884
|
+
/* @__PURE__ */ t.jsx(
|
|
1885
|
+
qe,
|
|
1886
|
+
{
|
|
1887
|
+
isOpen: q,
|
|
1888
|
+
onClose: () => L(!1),
|
|
1889
|
+
title: "Search",
|
|
1890
|
+
navDrawerLinks: be,
|
|
1891
|
+
onSearch: Ie,
|
|
1892
|
+
hasSearch: !0,
|
|
1893
|
+
hasBackButton: !1,
|
|
1894
|
+
topOffset: X
|
|
1895
|
+
}
|
|
1896
|
+
)
|
|
1897
|
+
] }
|
|
1898
|
+
)
|
|
1899
|
+
]
|
|
1900
|
+
}
|
|
1896
1901
|
);
|
|
1897
1902
|
}, yt = ({ links: r, linkComponent: l, onLinkClick: a }) => {
|
|
1898
|
-
const o = l ||
|
|
1903
|
+
const o = l || N, u = (s) => {
|
|
1899
1904
|
a && a(s);
|
|
1900
1905
|
};
|
|
1901
1906
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1931,7 +1936,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1931
1936
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: r }
|
|
1932
1937
|
),
|
|
1933
1938
|
/* @__PURE__ */ t.jsx(
|
|
1934
|
-
|
|
1939
|
+
Q,
|
|
1935
1940
|
{
|
|
1936
1941
|
as: Sn,
|
|
1937
1942
|
size: "sm",
|
|
@@ -1962,7 +1967,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
1962
1967
|
sections: r,
|
|
1963
1968
|
linkComponent: l,
|
|
1964
1969
|
onLinkClick: a
|
|
1965
|
-
}) =>
|
|
1970
|
+
}) => Fe({
|
|
1966
1971
|
base: !1,
|
|
1967
1972
|
tablet: !1,
|
|
1968
1973
|
largeTablet: !0,
|
|
@@ -2037,7 +2042,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2037
2042
|
s && l && (l(s), h(""));
|
|
2038
2043
|
}, p = (c) => {
|
|
2039
2044
|
c.key === "Enter" && y();
|
|
2040
|
-
},
|
|
2045
|
+
}, j = (c) => {
|
|
2041
2046
|
u && u(c);
|
|
2042
2047
|
};
|
|
2043
2048
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -2073,7 +2078,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2073
2078
|
/* @__PURE__ */ t.jsx(
|
|
2074
2079
|
hn,
|
|
2075
2080
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2076
|
-
|
|
2081
|
+
Q,
|
|
2077
2082
|
{
|
|
2078
2083
|
as: Tn,
|
|
2079
2084
|
color: "viridian.lighter",
|
|
@@ -2103,15 +2108,15 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2103
2108
|
C,
|
|
2104
2109
|
{ gap: 3, children: r == null ? void 0 : r.map(
|
|
2105
2110
|
(c) => /* @__PURE__ */ t.jsx(
|
|
2106
|
-
|
|
2111
|
+
N,
|
|
2107
2112
|
{
|
|
2108
2113
|
href: c.href,
|
|
2109
2114
|
target: "_blank",
|
|
2110
2115
|
rel: "noopener noreferrer",
|
|
2111
2116
|
"aria-label": c.name,
|
|
2112
|
-
onClick: () =>
|
|
2117
|
+
onClick: () => j(c.name),
|
|
2113
2118
|
children: Et[c.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2114
|
-
|
|
2119
|
+
Q,
|
|
2115
2120
|
{
|
|
2116
2121
|
as: Et[c.name.toLowerCase()],
|
|
2117
2122
|
color: "white",
|
|
@@ -2133,7 +2138,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2133
2138
|
linkComponent: l,
|
|
2134
2139
|
onLinkClick: a
|
|
2135
2140
|
}) => {
|
|
2136
|
-
const o = l ||
|
|
2141
|
+
const o = l || N, u = (h) => {
|
|
2137
2142
|
a && a(h);
|
|
2138
2143
|
}, s = r == null ? void 0 : r.map(
|
|
2139
2144
|
(h) => /* @__PURE__ */ t.jsx(
|
|
@@ -2188,7 +2193,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2188
2193
|
linkComponent: h,
|
|
2189
2194
|
onEmailSubmit: y,
|
|
2190
2195
|
additionalContent: p,
|
|
2191
|
-
onLinkClick:
|
|
2196
|
+
onLinkClick: j,
|
|
2192
2197
|
onSocialMediaClick: c
|
|
2193
2198
|
}, E) => /* @__PURE__ */ t.jsx(
|
|
2194
2199
|
m,
|
|
@@ -2215,7 +2220,7 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2215
2220
|
{
|
|
2216
2221
|
sections: r,
|
|
2217
2222
|
linkComponent: h,
|
|
2218
|
-
onLinkClick:
|
|
2223
|
+
onLinkClick: j
|
|
2219
2224
|
}
|
|
2220
2225
|
),
|
|
2221
2226
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2273,23 +2278,23 @@ const Ke = 60, bt = 6, Mn = (r) => {
|
|
|
2273
2278
|
disclaimer: l,
|
|
2274
2279
|
links: s,
|
|
2275
2280
|
linkComponent: h,
|
|
2276
|
-
onLinkClick:
|
|
2281
|
+
onLinkClick: j
|
|
2277
2282
|
}
|
|
2278
2283
|
)
|
|
2279
2284
|
] }
|
|
2280
2285
|
) }
|
|
2281
2286
|
));
|
|
2282
2287
|
export {
|
|
2283
|
-
|
|
2288
|
+
Bn as BasketButton,
|
|
2284
2289
|
ir as CategoryLabel,
|
|
2285
2290
|
sr as Footer,
|
|
2286
|
-
|
|
2291
|
+
Me as NavButton,
|
|
2287
2292
|
or as NavSkeleton,
|
|
2288
|
-
|
|
2289
|
-
|
|
2293
|
+
qe as NavbarDrawer,
|
|
2294
|
+
Je as NavbarDrawerLink,
|
|
2290
2295
|
ar as NavigationBar,
|
|
2291
2296
|
Hn as SpotlightCard,
|
|
2292
2297
|
lr as Stepper,
|
|
2293
2298
|
he as TopNavIconButton,
|
|
2294
|
-
|
|
2299
|
+
Fn as TopNavigation
|
|
2295
2300
|
};
|