@everlywell/consumer-ui 1.41.4 → 1.41.7
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 tn, Box as C, Stepper as nn, Icon as
|
|
2
|
-
import Ae, { useEffect as
|
|
3
|
-
import { Text as _n, useBreakpointValue as
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
1
|
+
import { useSteps as tn, Box as C, Stepper as nn, Icon as q, Flex as k, Text as W, Link as K, Button as It, Image as rn, IconButton as on, theme as X, useMediaQuery as at, VStack as ln, Skeleton as rt, HStack as wt, SkeletonCircle as We, DrawerContent as Lt, DrawerOverlay as Ot, Drawer as Pt, DrawerHeader as At, DrawerBody as $t, Grid as an, GridItem as sn, Accordion as cn, AccordionItem as un, AccordionButton as dn, AccordionPanel as fn, InputGroup as pn, Input as hn, InputRightElement as gn, Container as xn, DrawerFooter as vn, DrawerCloseButton as mn, Modal as bn, ModalOverlay as wn, ModalContent as jn, ModalHeader as Cn, ModalBody as yn, ModalFooter as En, ModalCloseButton as kn } from "@everlywell/ui-kit";
|
|
2
|
+
import Ae, { useEffect as oe, forwardRef as Mt, useRef as Rn, useCallback as Ht, useState as Z } from "react";
|
|
3
|
+
import { Text as _n, useBreakpointValue as Ee, Box as Sn, InputGroup as Tn, Input as Dn, InputRightElement as In, Icon as Ln } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as jt, MagnifyingGlass as Ft, List as On, Basket as Pn, CaretLeft as An, X as Bt, User as Ct, QrCode as $n, CaretDown as Mn, ArrowRight as Hn, InstagramLogo as Fn, LinkedinLogo as Bn, FacebookLogo as zn, TiktokLogo as Wn, XLogo as Nn } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as ft, AnimatePresence as Vn } from "framer-motion";
|
|
6
|
+
var st = { exports: {} }, Oe = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +13,21 @@ var ut = { exports: {} }, Le = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var yt;
|
|
17
17
|
function Yn() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var n = Ae, o = Symbol.for("react.element"),
|
|
18
|
+
if (yt) return Oe;
|
|
19
|
+
yt = 1;
|
|
20
|
+
var n = Ae, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function p(v, x, f) {
|
|
22
22
|
var d, g = {}, w = null, y = null;
|
|
23
23
|
f !== void 0 && (w = "" + f), x.key !== void 0 && (w = "" + x.key), x.ref !== void 0 && (y = x.ref);
|
|
24
24
|
for (d in x) a.call(x, d) && !u.hasOwnProperty(d) && (g[d] = x[d]);
|
|
25
25
|
if (v && v.defaultProps) for (d in x = v.defaultProps, x) g[d] === void 0 && (g[d] = x[d]);
|
|
26
|
-
return { $$typeof: o, type: v, key: w, ref: y, props: g, _owner:
|
|
26
|
+
return { $$typeof: o, type: v, key: w, ref: y, props: g, _owner: c.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return Oe.Fragment = s, Oe.jsx = p, Oe.jsxs = p, Oe;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Pe = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,17 +37,17 @@ var Oe = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var Et;
|
|
41
41
|
function Gn() {
|
|
42
|
-
return
|
|
43
|
-
var n = Ae, o = Symbol.for("react.element"),
|
|
42
|
+
return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = Ae, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), v = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), R = Symbol.iterator, O = "@@iterator";
|
|
44
44
|
function m(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var r = R && e[R] || e[O];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var F = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function S(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0), h = 1; h < r; h++)
|
|
@@ -57,7 +57,7 @@ function Gn() {
|
|
|
57
57
|
}
|
|
58
58
|
function V(e, r, l) {
|
|
59
59
|
{
|
|
60
|
-
var h =
|
|
60
|
+
var h = F.ReactDebugCurrentFrame, E = h.getStackAddendum();
|
|
61
61
|
E !== "" && (r += "%s", l = l.concat([E]));
|
|
62
62
|
var _ = l.map(function(j) {
|
|
63
63
|
return String(j);
|
|
@@ -65,14 +65,14 @@ function Gn() {
|
|
|
65
65
|
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
68
|
+
var A = !1, B = !1, M = !1, ee = !1, ie = !1, J;
|
|
69
|
+
J = Symbol.for("react.module.reference");
|
|
70
70
|
function T(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === u ||
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || ie || e === c || e === f || e === d || ee || e === y || A || B || M || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === g || e.$$typeof === p || e.$$typeof === v || e.$$typeof === x || // 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.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === J || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function Y(e, r, l) {
|
|
78
78
|
var h = e.displayName;
|
|
@@ -81,7 +81,7 @@ function Gn() {
|
|
|
81
81
|
var E = r.displayName || r.name || "";
|
|
82
82
|
return E !== "" ? l + "(" + E + ")" : l;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function le(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
87
|
function z(e) {
|
|
@@ -94,11 +94,11 @@ function Gn() {
|
|
|
94
94
|
switch (e) {
|
|
95
95
|
case a:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case s:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case u:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case c:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case f:
|
|
104
104
|
return "Suspense";
|
|
@@ -109,10 +109,10 @@ function Gn() {
|
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
110
|
case v:
|
|
111
111
|
var r = e;
|
|
112
|
-
return
|
|
112
|
+
return le(r) + ".Consumer";
|
|
113
113
|
case p:
|
|
114
114
|
var l = e;
|
|
115
|
-
return
|
|
115
|
+
return le(l._context) + ".Provider";
|
|
116
116
|
case x:
|
|
117
117
|
return Y(e, e.render, "ForwardRef");
|
|
118
118
|
case g:
|
|
@@ -129,18 +129,18 @@ function Gn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var L = Object.assign, te = 0, ne,
|
|
133
|
-
function
|
|
132
|
+
var L = Object.assign, te = 0, ne, $e, Me, _e, Se, ae, Te;
|
|
133
|
+
function se() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
se.__reactDisabledLog = !0;
|
|
136
136
|
function Ge() {
|
|
137
137
|
{
|
|
138
138
|
if (te === 0) {
|
|
139
|
-
ne = console.log,
|
|
139
|
+
ne = console.log, $e = console.info, Me = console.warn, _e = console.error, Se = console.group, ae = console.groupCollapsed, Te = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: se,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -169,49 +169,49 @@ function Gn() {
|
|
|
169
169
|
value: ne
|
|
170
170
|
}),
|
|
171
171
|
info: L({}, e, {
|
|
172
|
-
value:
|
|
172
|
+
value: $e
|
|
173
173
|
}),
|
|
174
174
|
warn: L({}, e, {
|
|
175
|
-
value:
|
|
175
|
+
value: Me
|
|
176
176
|
}),
|
|
177
177
|
error: L({}, e, {
|
|
178
|
-
value:
|
|
178
|
+
value: _e
|
|
179
179
|
}),
|
|
180
180
|
group: L({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: Se
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: L({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: ae
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: L({}, e, {
|
|
187
|
-
value:
|
|
187
|
+
value: Te
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
te < 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 De = F.ReactCurrentDispatcher, de;
|
|
195
|
+
function ge(e, r, l) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (de === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
200
|
} catch (E) {
|
|
201
201
|
var h = E.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
-
|
|
202
|
+
de = h && h[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + de + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var xe = !1, ce;
|
|
209
209
|
{
|
|
210
210
|
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
ce = new Ze();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!e ||
|
|
213
|
+
function He(e, r) {
|
|
214
|
+
if (!e || xe)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
217
|
var l = ce.get(e);
|
|
@@ -219,11 +219,11 @@ function Gn() {
|
|
|
219
219
|
return l;
|
|
220
220
|
}
|
|
221
221
|
var h;
|
|
222
|
-
|
|
222
|
+
xe = !0;
|
|
223
223
|
var E = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var _;
|
|
226
|
-
_ =
|
|
226
|
+
_ = De.current, De.current = null, Ge();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var j = function() {
|
|
@@ -260,74 +260,74 @@ function Gn() {
|
|
|
260
260
|
if (G && h && typeof G.stack == "string") {
|
|
261
261
|
for (var b = G.stack.split(`
|
|
262
262
|
`), N = h.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), P = b.length - 1, $ = N.length - 1; P >= 1 && $ >= 0 && b[P] !== N[$]; )
|
|
264
264
|
$--;
|
|
265
|
-
for (;
|
|
266
|
-
if (b[
|
|
267
|
-
if (
|
|
265
|
+
for (; P >= 1 && $ >= 0; P--, $--)
|
|
266
|
+
if (b[P] !== N[$]) {
|
|
267
|
+
if (P !== 1 || $ !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (P--, $--, $ < 0 || b[P] !== N[$]) {
|
|
270
270
|
var U = `
|
|
271
|
-
` + b[
|
|
271
|
+
` + b[P].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, U), U;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (P >= 1 && $ >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
xe = !1, De.current = _, Ue(), Error.prepareStackTrace = E;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" && ce.set(e,
|
|
281
|
+
var ye = e ? e.displayName || e.name : "", he = ye ? ge(ye) : "";
|
|
282
|
+
return typeof e == "function" && ce.set(e, he), he;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function ve(e, r, l) {
|
|
285
|
+
return He(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function re(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function me(e, r, l) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return He(e, re(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return ge(e);
|
|
298
298
|
switch (e) {
|
|
299
299
|
case f:
|
|
300
|
-
return
|
|
300
|
+
return ge("Suspense");
|
|
301
301
|
case d:
|
|
302
|
-
return
|
|
302
|
+
return ge("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case x:
|
|
307
|
-
return
|
|
307
|
+
return ve(e.render);
|
|
308
308
|
case g:
|
|
309
|
-
return
|
|
309
|
+
return me(e.type, r, l);
|
|
310
310
|
case w: {
|
|
311
311
|
var h = e, E = h._payload, _ = h._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return me(_(E), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var fe = Object.prototype.hasOwnProperty, Fe = {}, be = F.ReactDebugCurrentFrame;
|
|
321
|
+
function we(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner, l =
|
|
324
|
-
|
|
323
|
+
var r = e._owner, l = me(e.type, e._source, r ? r.type : null);
|
|
324
|
+
be.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
be.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ke(e, r, l, h, E) {
|
|
329
329
|
{
|
|
330
|
-
var _ = Function.call.bind(
|
|
330
|
+
var _ = Function.call.bind(fe);
|
|
331
331
|
for (var j in e)
|
|
332
332
|
if (_(e, j)) {
|
|
333
333
|
var b = void 0;
|
|
@@ -337,70 +337,70 @@ function Gn() {
|
|
|
337
337
|
throw N.name = "Invariant Violation", N;
|
|
338
338
|
}
|
|
339
339
|
b = e[j](r, j, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (
|
|
341
|
-
b =
|
|
340
|
+
} catch (P) {
|
|
341
|
+
b = P;
|
|
342
342
|
}
|
|
343
|
-
b && !(b instanceof Error) && (
|
|
343
|
+
b && !(b instanceof Error) && (we(E), 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).", h || "React class", l, j, typeof b), we(null)), b instanceof Error && !(b.message in Fe) && (Fe[b.message] = !0, we(E), S("Failed %s type: %s", l, b.message), we(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
347
|
+
var Xe = Array.isArray;
|
|
348
|
+
function Ie(e) {
|
|
349
|
+
return Xe(e);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Q(e) {
|
|
352
352
|
{
|
|
353
353
|
var r = typeof Symbol == "function" && Symbol.toStringTag, l = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
354
|
return l;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Je(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Be(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Be(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
367
|
+
function Le(e) {
|
|
368
|
+
if (Je(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.", Q(e)), Be(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var ue = F.ReactCurrentOwner, ze = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
376
|
+
}, i, D, I;
|
|
377
|
+
I = {};
|
|
378
|
+
function H(e) {
|
|
379
|
+
if (fe.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function je(e) {
|
|
387
|
+
if (fe.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e.ref == "string" &&
|
|
396
|
-
var l = z(
|
|
397
|
-
|
|
394
|
+
function pe(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && ue.current && r && ue.current.stateNode !== r) {
|
|
396
|
+
var l = z(ue.current.type);
|
|
397
|
+
I[l] || (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', z(ue.current.type), e.ref), I[l] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Qe(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var l = function() {
|
|
403
|
-
|
|
403
|
+
i || (i = !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)", r));
|
|
404
404
|
};
|
|
405
405
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: l,
|
|
@@ -408,10 +408,10 @@ function Gn() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Wt(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var l = function() {
|
|
414
|
-
|
|
414
|
+
D || (D = !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)", r));
|
|
415
415
|
};
|
|
416
416
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: l,
|
|
@@ -451,38 +451,38 @@ function Gn() {
|
|
|
451
451
|
function Vt(e, r, l, h, E) {
|
|
452
452
|
{
|
|
453
453
|
var _, j = {}, b = null, N = null;
|
|
454
|
-
l !== void 0 && (
|
|
454
|
+
l !== void 0 && (Le(l), b = "" + l), je(r) && (Le(r.key), b = "" + r.key), H(r) && (N = r.ref, pe(r, E));
|
|
455
455
|
for (_ in r)
|
|
456
|
-
|
|
456
|
+
fe.call(r, _) && !ze.hasOwnProperty(_) && (j[_] = r[_]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (_ in
|
|
460
|
-
j[_] === void 0 && (j[_] =
|
|
458
|
+
var P = e.defaultProps;
|
|
459
|
+
for (_ in P)
|
|
460
|
+
j[_] === void 0 && (j[_] = P[_]);
|
|
461
461
|
}
|
|
462
462
|
if (b || N) {
|
|
463
463
|
var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
b &&
|
|
464
|
+
b && Qe(j, $), N && Wt(j, $);
|
|
465
465
|
}
|
|
466
|
-
return Nt(e, b, N, E, h,
|
|
466
|
+
return Nt(e, b, N, E, h, ue.current, j);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
469
|
+
var qe = F.ReactCurrentOwner, pt = F.ReactDebugCurrentFrame;
|
|
470
|
+
function Ce(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner, l =
|
|
473
|
-
|
|
472
|
+
var r = e._owner, l = me(e.type, e._source, r ? r.type : null);
|
|
473
|
+
pt.setExtraStackFrame(l);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
pt.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var et;
|
|
478
|
+
et = !1;
|
|
479
|
+
function tt(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ht() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e = z(
|
|
484
|
+
if (qe.current) {
|
|
485
|
+
var e = z(qe.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -494,10 +494,10 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
function Yt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var gt = {};
|
|
498
498
|
function Gt(e) {
|
|
499
499
|
{
|
|
500
|
-
var r =
|
|
500
|
+
var r = ht();
|
|
501
501
|
if (!r) {
|
|
502
502
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
503
|
l && (r = `
|
|
@@ -507,35 +507,35 @@ Check the top-level render call using <` + l + ">.");
|
|
|
507
507
|
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function xt(e, r) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
515
|
var l = Gt(r);
|
|
516
|
-
if (
|
|
516
|
+
if (gt[l])
|
|
517
517
|
return;
|
|
518
|
-
|
|
518
|
+
gt[l] = !0;
|
|
519
519
|
var h = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
520
|
+
e && e._owner && e._owner !== qe.current && (h = " It was passed a child from " + z(e._owner.type) + "."), Ce(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.', l, h), Ce(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function vt(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
|
-
if (
|
|
527
|
+
if (Ie(e))
|
|
528
528
|
for (var l = 0; l < e.length; l++) {
|
|
529
529
|
var h = e[l];
|
|
530
|
-
|
|
530
|
+
tt(h) && xt(h, r);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (tt(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
535
|
var E = m(e);
|
|
536
536
|
if (typeof E == "function" && E !== e.entries)
|
|
537
537
|
for (var _ = E.call(e), j; !(j = _.next()).done; )
|
|
538
|
-
|
|
538
|
+
tt(j.value) && xt(j.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -555,9 +555,9 @@ Check the top-level render call using <` + l + ">.");
|
|
|
555
555
|
return;
|
|
556
556
|
if (l) {
|
|
557
557
|
var h = z(r);
|
|
558
|
-
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !
|
|
560
|
-
|
|
558
|
+
Ke(l, e.props, "prop", h, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !et) {
|
|
560
|
+
et = !0;
|
|
561
561
|
var E = z(r);
|
|
562
562
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
563
563
|
}
|
|
@@ -569,24 +569,24 @@ Check the top-level render call using <` + l + ">.");
|
|
|
569
569
|
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
570
570
|
var h = r[l];
|
|
571
571
|
if (h !== "children" && h !== "key") {
|
|
572
|
-
|
|
572
|
+
Ce(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), Ce(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (
|
|
576
|
+
e.ref !== null && (Ce(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
579
|
+
var mt = {};
|
|
580
|
+
function bt(e, r, l, h, E, _) {
|
|
581
581
|
{
|
|
582
582
|
var j = T(e);
|
|
583
583
|
if (!j) {
|
|
584
584
|
var b = "";
|
|
585
585
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " 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
586
|
var N = Yt();
|
|
587
|
-
N ? b += N : b +=
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
587
|
+
N ? b += N : b += ht();
|
|
588
|
+
var P;
|
|
589
|
+
e === null ? P = "null" : Ie(e) ? P = "array" : e !== void 0 && e.$$typeof === o ? (P = "<" + (z(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : P = 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", P, b);
|
|
590
590
|
}
|
|
591
591
|
var $ = Vt(e, r, l, E, _);
|
|
592
592
|
if ($ == null)
|
|
@@ -595,50 +595,50 @@ Check the top-level render call using <` + l + ">.");
|
|
|
595
595
|
var U = r.children;
|
|
596
596
|
if (U !== void 0)
|
|
597
597
|
if (h)
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
|
|
598
|
+
if (Ie(U)) {
|
|
599
|
+
for (var ye = 0; ye < U.length; ye++)
|
|
600
|
+
vt(U[ye], e);
|
|
601
601
|
Object.freeze && Object.freeze(U);
|
|
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
|
-
|
|
605
|
+
vt(U, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
607
|
+
if (fe.call(r, "key")) {
|
|
608
|
+
var he = z(e), G = Object.keys(r).filter(function(en) {
|
|
609
609
|
return en !== "key";
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
610
|
+
}), nt = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!mt[he + nt]) {
|
|
612
612
|
var qt = G.length > 0 ? "{" + G.join(": ..., ") + ": ...}" : "{}";
|
|
613
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} />`, nt, he, qt, he), mt[he + nt] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
return e === a ? Zt($) : Ut($), $;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function Xt(e, r, l) {
|
|
625
|
-
return Ct(e, r, l, !0);
|
|
626
|
-
}
|
|
627
624
|
function Kt(e, r, l) {
|
|
628
|
-
return
|
|
625
|
+
return bt(e, r, l, !0);
|
|
626
|
+
}
|
|
627
|
+
function Xt(e, r, l) {
|
|
628
|
+
return bt(e, r, l, !1);
|
|
629
629
|
}
|
|
630
|
-
var Jt =
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var Jt = Xt, Qt = Kt;
|
|
631
|
+
Pe.Fragment = a, Pe.jsx = Jt, Pe.jsxs = Qt;
|
|
632
|
+
}()), Pe;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var t =
|
|
636
|
-
const
|
|
634
|
+
process.env.NODE_ENV === "production" ? st.exports = Yn() : st.exports = Gn();
|
|
635
|
+
var t = st.exports;
|
|
636
|
+
const ot = 60, kt = 6, Un = (n) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: o,
|
|
639
|
-
hideIndicators:
|
|
639
|
+
hideIndicators: s = !1,
|
|
640
640
|
steps: a,
|
|
641
|
-
stepperTheme:
|
|
641
|
+
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
@@ -646,7 +646,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
646
646
|
index: o,
|
|
647
647
|
count: a.length
|
|
648
648
|
});
|
|
649
|
-
return
|
|
649
|
+
return oe(() => {
|
|
650
650
|
p(o);
|
|
651
651
|
}, [o, p]), /* @__PURE__ */ t.jsx(
|
|
652
652
|
C,
|
|
@@ -660,9 +660,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
661
|
children: a.map((v, x) => {
|
|
662
662
|
const f = u === x, d = x === 0, g = x === a.length - 1, w = u > x;
|
|
663
|
-
let y = `${
|
|
664
|
-
const R = `calc(100% - ((${
|
|
665
|
-
return f ? y = R : (d || g) && (y = `${
|
|
663
|
+
let y = `${ot}px`;
|
|
664
|
+
const R = `calc(100% - ((${ot * (a.length - 1)}px) - (${a.length - 1} * ${kt * 2}px)))`;
|
|
665
|
+
return f ? y = R : (d || g) && (y = `${ot - kt}px`), /* @__PURE__ */ t.jsx(
|
|
666
666
|
C,
|
|
667
667
|
{
|
|
668
668
|
width: y,
|
|
@@ -673,7 +673,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
674
674
|
C,
|
|
675
675
|
{
|
|
676
|
-
paddingTop:
|
|
676
|
+
paddingTop: s ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -682,8 +682,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor: w ?
|
|
686
|
-
height:
|
|
685
|
+
backgroundColor: w ? c.light : c.base,
|
|
686
|
+
height: s ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
689
689
|
}
|
|
@@ -703,24 +703,24 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
704
|
_n,
|
|
705
705
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
|
-
),
|
|
707
|
-
const
|
|
708
|
-
return o && !
|
|
706
|
+
), Re = (n, o) => {
|
|
707
|
+
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
|
+
return o && !s ? {
|
|
709
709
|
to: n
|
|
710
710
|
} : {
|
|
711
711
|
href: n
|
|
712
712
|
};
|
|
713
|
-
}, Ne =
|
|
713
|
+
}, Ne = Mt(
|
|
714
714
|
(n, o) => {
|
|
715
715
|
const {
|
|
716
|
-
label:
|
|
716
|
+
label: s,
|
|
717
717
|
additionalContent: a,
|
|
718
|
-
mainTextFontSize:
|
|
718
|
+
mainTextFontSize: c,
|
|
719
719
|
linkComponent: u,
|
|
720
720
|
href: p,
|
|
721
721
|
forceMobileStyle: v = !1,
|
|
722
722
|
...x
|
|
723
|
-
} = n, f = u ||
|
|
723
|
+
} = n, f = u || K, d = Re(p, !!u), g = v ? c || "xl" : [c || "xl", null, null, "lg"], w = v ? "xl" : ["xl", null, null, "lg"], y = v ? void 0 : [null, null, null, 1], R = v ? void 0 : [null, null, null, "space-between"], O = v ? "3" : [3, null, null, 0], m = v ? "1px" : ["1px", null, null, "unset"], F = v ? "tints.cream" : ["tints.cream", null, null, "unset"], S = v ? "100%" : ["100%", null, null, "fit-content"], V = v ? "none" : ["none", null, null, "block"], A = v ? "100%" : ["100%", null, null, "auto"], B = v ? "block" : ["block", null, null, "none"];
|
|
724
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
725
|
C,
|
|
726
726
|
{
|
|
@@ -734,17 +734,17 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
734
734
|
color: "tints.black",
|
|
735
735
|
_hover: { color: "viridian.base", textDecoration: "none" },
|
|
736
736
|
borderBottom: m,
|
|
737
|
-
borderColor:
|
|
737
|
+
borderColor: F,
|
|
738
738
|
width: S,
|
|
739
739
|
cursor: "pointer",
|
|
740
740
|
...d,
|
|
741
741
|
...x,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ t.jsx(
|
|
744
|
-
|
|
744
|
+
q,
|
|
745
745
|
{
|
|
746
746
|
display: V,
|
|
747
|
-
as:
|
|
747
|
+
as: jt,
|
|
748
748
|
fontSize: "lg",
|
|
749
749
|
color: "viridian.light",
|
|
750
750
|
role: "img",
|
|
@@ -754,13 +754,13 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
754
754
|
),
|
|
755
755
|
/* @__PURE__ */ t.jsxs(
|
|
756
756
|
k,
|
|
757
|
-
{ alignItems: "center", gap: "1", width:
|
|
757
|
+
{ alignItems: "center", gap: "1", width: A, children: [
|
|
758
758
|
/* @__PURE__ */ t.jsx(
|
|
759
759
|
W,
|
|
760
760
|
{
|
|
761
761
|
fontSize: g,
|
|
762
762
|
fontWeight: "medium",
|
|
763
|
-
children:
|
|
763
|
+
children: s
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
a && (typeof a == "string" ? /* @__PURE__ */ t.jsx(
|
|
@@ -778,10 +778,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
778
778
|
}
|
|
779
779
|
) : a),
|
|
780
780
|
/* @__PURE__ */ t.jsx(
|
|
781
|
-
|
|
781
|
+
q,
|
|
782
782
|
{
|
|
783
783
|
display: B,
|
|
784
|
-
as:
|
|
784
|
+
as: jt,
|
|
785
785
|
fontSize: "2xl",
|
|
786
786
|
color: "tints.uiGrey",
|
|
787
787
|
role: "img",
|
|
@@ -795,11 +795,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
|
-
), Ve =
|
|
798
|
+
), Ve = Mt(
|
|
799
799
|
(n, o) => {
|
|
800
|
-
const { children:
|
|
800
|
+
const { children: s, isSelected: a, ...c } = n, u = n.backgroundColor || (a ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
|
-
|
|
802
|
+
It,
|
|
803
803
|
{
|
|
804
804
|
ref: o,
|
|
805
805
|
borderRadius: "full",
|
|
@@ -825,24 +825,24 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
825
825
|
textDecoration: "none",
|
|
826
826
|
filter: "brightness(0.95)"
|
|
827
827
|
},
|
|
828
|
-
...
|
|
829
|
-
children:
|
|
828
|
+
...c,
|
|
829
|
+
children: s
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
833
|
), Zn = ({
|
|
834
834
|
title: n,
|
|
835
835
|
description: o,
|
|
836
|
-
imageSrc:
|
|
836
|
+
imageSrc: s,
|
|
837
837
|
imageElement: a,
|
|
838
|
-
button:
|
|
838
|
+
button: c,
|
|
839
839
|
backgroundColor: u = "viridian.wash",
|
|
840
840
|
onClick: p,
|
|
841
841
|
href: v,
|
|
842
842
|
linkComponent: x,
|
|
843
843
|
forceMobileStyle: f = !1
|
|
844
844
|
}) => {
|
|
845
|
-
const y = x ||
|
|
845
|
+
const y = x || K, R = Re(v, !!x), O = Ee({
|
|
846
846
|
base: !1,
|
|
847
847
|
tablet: !1,
|
|
848
848
|
largeTablet: !1,
|
|
@@ -885,10 +885,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
885
885
|
objectFit: f ? "cover" : "contain"
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
|
-
children:
|
|
888
|
+
children: s ? /* @__PURE__ */ t.jsx(
|
|
889
889
|
rn,
|
|
890
890
|
{
|
|
891
|
-
src:
|
|
891
|
+
src: s,
|
|
892
892
|
objectFit: "cover",
|
|
893
893
|
width: "100%",
|
|
894
894
|
alt: "",
|
|
@@ -938,14 +938,14 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
938
938
|
)
|
|
939
939
|
] }
|
|
940
940
|
),
|
|
941
|
-
f ? null : O ? /* @__PURE__ */ t.jsx(C, { children:
|
|
941
|
+
f ? null : O ? /* @__PURE__ */ t.jsx(C, { children: c }) : null
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
944
|
)
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
|
-
},
|
|
948
|
+
}, ke = (n) => /* @__PURE__ */ t.jsx(
|
|
949
949
|
on,
|
|
950
950
|
{
|
|
951
951
|
size: "sm",
|
|
@@ -966,8 +966,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
966
966
|
},
|
|
967
967
|
...n
|
|
968
968
|
}
|
|
969
|
-
),
|
|
970
|
-
color: n =
|
|
969
|
+
), zt = ({
|
|
970
|
+
color: n = X.colors.viridian.base,
|
|
971
971
|
width: o
|
|
972
972
|
}) => /* @__PURE__ */ t.jsx(
|
|
973
973
|
Sn,
|
|
@@ -994,12 +994,12 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
994
994
|
) }
|
|
995
995
|
)
|
|
996
996
|
}
|
|
997
|
-
),
|
|
997
|
+
), Kn = ({
|
|
998
998
|
desktopTopButtons: n,
|
|
999
999
|
kitRegistrationElement: o,
|
|
1000
|
-
profileElement:
|
|
1000
|
+
profileElement: s,
|
|
1001
1001
|
cartElement: a,
|
|
1002
|
-
onSearchClick:
|
|
1002
|
+
onSearchClick: c,
|
|
1003
1003
|
onMenuClick: u,
|
|
1004
1004
|
hasSearch: p = !1,
|
|
1005
1005
|
logoLink: v = "https://www.everlywell.com",
|
|
@@ -1007,13 +1007,13 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1007
1007
|
linkComponent: f,
|
|
1008
1008
|
onLogoClick: d
|
|
1009
1009
|
}) => {
|
|
1010
|
-
const g = Rn(null), [w] =
|
|
1010
|
+
const g = Rn(null), [w] = at(`(max-width: ${X.breakpoints.mediumTablet})`), [y] = at(`(max-width: ${X.breakpoints.mediumDesktop})`), R = Ht(() => {
|
|
1011
1011
|
if (g.current) {
|
|
1012
1012
|
const O = g.current.getBoundingClientRect();
|
|
1013
1013
|
x(O.bottom);
|
|
1014
1014
|
}
|
|
1015
1015
|
}, []);
|
|
1016
|
-
return
|
|
1016
|
+
return oe(() => {
|
|
1017
1017
|
R();
|
|
1018
1018
|
}, [R]), /* @__PURE__ */ t.jsx(
|
|
1019
1019
|
C,
|
|
@@ -1037,9 +1037,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1037
1037
|
{
|
|
1038
1038
|
"aria-label": "Go to homepage",
|
|
1039
1039
|
onClick: d,
|
|
1040
|
-
as: f ||
|
|
1041
|
-
...
|
|
1042
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1040
|
+
as: f || K,
|
|
1041
|
+
...Re(v, !!f),
|
|
1042
|
+
children: /* @__PURE__ */ t.jsx(zt, { width: "116px" })
|
|
1043
1043
|
}
|
|
1044
1044
|
),
|
|
1045
1045
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1055,44 +1055,25 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1055
1055
|
C,
|
|
1056
1056
|
{ display: ["none", null, "none", "none", "none", "block"], children: o }
|
|
1057
1057
|
),
|
|
1058
|
-
p ?
|
|
1059
|
-
|
|
1058
|
+
p ? /* @__PURE__ */ t.jsx(
|
|
1059
|
+
ke,
|
|
1060
1060
|
{
|
|
1061
|
-
"aria-label": "
|
|
1062
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1063
|
-
onClick:
|
|
1064
|
-
backgroundColor: "
|
|
1065
|
-
color: "
|
|
1061
|
+
"aria-label": "Search",
|
|
1062
|
+
icon: /* @__PURE__ */ t.jsx(q, { as: Ft }),
|
|
1063
|
+
onClick: c,
|
|
1064
|
+
backgroundColor: "tints.cream",
|
|
1065
|
+
color: "tints.black",
|
|
1066
1066
|
_hover: {
|
|
1067
|
-
backgroundColor: "
|
|
1067
|
+
backgroundColor: "tints.cream",
|
|
1068
1068
|
filter: "brightness(0.95)"
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
|
-
) : /* @__PURE__ */ t.jsxs(
|
|
1072
|
-
ht,
|
|
1073
|
-
{
|
|
1074
|
-
"aria-label": "Ask or Search",
|
|
1075
|
-
onClick: s,
|
|
1076
|
-
backgroundColor: "eggplant.wash",
|
|
1077
|
-
color: "eggplant.base",
|
|
1078
|
-
height: "48px",
|
|
1079
|
-
paddingX: "16px !important",
|
|
1080
|
-
fontSize: "lg",
|
|
1081
|
-
_hover: {
|
|
1082
|
-
backgroundColor: "eggplant.wash",
|
|
1083
|
-
filter: "brightness(0.95)"
|
|
1084
|
-
},
|
|
1085
|
-
children: [
|
|
1086
|
-
/* @__PURE__ */ t.jsx(J, { as: ct }),
|
|
1087
|
-
"Ask or Search"
|
|
1088
|
-
]
|
|
1089
|
-
}
|
|
1090
1071
|
) : null,
|
|
1091
1072
|
a,
|
|
1092
1073
|
/* @__PURE__ */ t.jsx(
|
|
1093
1074
|
C,
|
|
1094
1075
|
{ display: ["flex", null, null, "flex", "flex", "flex", "none"], children: /* @__PURE__ */ t.jsx(
|
|
1095
|
-
|
|
1076
|
+
ke,
|
|
1096
1077
|
{
|
|
1097
1078
|
icon: /* @__PURE__ */ t.jsx(On, {}),
|
|
1098
1079
|
"aria-label": "menu",
|
|
@@ -1101,20 +1082,20 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1101
1082
|
}
|
|
1102
1083
|
) }
|
|
1103
1084
|
),
|
|
1104
|
-
/* @__PURE__ */ t.jsx(C, { display: ["none", null, null, "none", "none", "none", "block"], children:
|
|
1085
|
+
/* @__PURE__ */ t.jsx(C, { display: ["none", null, null, "none", "none", "none", "block"], children: s })
|
|
1105
1086
|
] }
|
|
1106
1087
|
)
|
|
1107
1088
|
] }
|
|
1108
1089
|
)
|
|
1109
1090
|
}
|
|
1110
1091
|
);
|
|
1111
|
-
},
|
|
1092
|
+
}, Xn = ({
|
|
1112
1093
|
count: n = 0,
|
|
1113
1094
|
...o
|
|
1114
1095
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1115
1096
|
C,
|
|
1116
1097
|
{ position: "relative", display: "inline-block", children: [
|
|
1117
|
-
/* @__PURE__ */ t.jsx(
|
|
1098
|
+
/* @__PURE__ */ t.jsx(ke, { icon: /* @__PURE__ */ t.jsx(Pn, {}), ...o }),
|
|
1118
1099
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1119
1100
|
C,
|
|
1120
1101
|
{
|
|
@@ -1152,9 +1133,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1152
1133
|
children: /* @__PURE__ */ t.jsxs(
|
|
1153
1134
|
k,
|
|
1154
1135
|
{ justify: "space-between", align: "center", children: [
|
|
1155
|
-
/* @__PURE__ */ t.jsx(
|
|
1136
|
+
/* @__PURE__ */ t.jsx(rt, { w: "120px", h: "48px" }),
|
|
1156
1137
|
/* @__PURE__ */ t.jsxs(
|
|
1157
|
-
|
|
1138
|
+
wt,
|
|
1158
1139
|
{
|
|
1159
1140
|
spacing: 8,
|
|
1160
1141
|
marginLeft: 12,
|
|
@@ -1162,14 +1143,14 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1162
1143
|
"data-testid": "desktop-nav",
|
|
1163
1144
|
children: [
|
|
1164
1145
|
Array.from({ length: n }).map(
|
|
1165
|
-
(
|
|
1146
|
+
(s, a) => /* @__PURE__ */ t.jsx(rt, { width: "90px", height: "48px" }, a)
|
|
1166
1147
|
),
|
|
1167
|
-
o && /* @__PURE__ */ t.jsx(
|
|
1148
|
+
o && /* @__PURE__ */ t.jsx(rt, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1168
1149
|
]
|
|
1169
1150
|
}
|
|
1170
1151
|
),
|
|
1171
1152
|
/* @__PURE__ */ t.jsxs(
|
|
1172
|
-
|
|
1153
|
+
wt,
|
|
1173
1154
|
{ spacing: 4, ml: "auto", children: [
|
|
1174
1155
|
/* @__PURE__ */ t.jsx(
|
|
1175
1156
|
We,
|
|
@@ -1194,72 +1175,72 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1194
1175
|
}
|
|
1195
1176
|
) }
|
|
1196
1177
|
), Jn = (n, o) => {
|
|
1197
|
-
let
|
|
1178
|
+
let s;
|
|
1198
1179
|
return (...a) => {
|
|
1199
|
-
|
|
1180
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
1200
1181
|
n(...a);
|
|
1201
1182
|
}, o);
|
|
1202
1183
|
};
|
|
1203
|
-
},
|
|
1184
|
+
}, it = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Qn = (n, o) => {
|
|
1204
1185
|
n.length < o.length && ([n, o] = [o, n]);
|
|
1205
|
-
let
|
|
1206
|
-
for (let
|
|
1207
|
-
c
|
|
1208
|
-
for (let
|
|
1209
|
-
a[0] =
|
|
1186
|
+
let s = Array(o.length + 1).fill(0), a = Array(o.length + 1).fill(0);
|
|
1187
|
+
for (let c = 0; c <= o.length; c++)
|
|
1188
|
+
s[c] = c;
|
|
1189
|
+
for (let c = 1; c <= n.length; c++) {
|
|
1190
|
+
a[0] = c;
|
|
1210
1191
|
for (let u = 1; u <= o.length; u++) {
|
|
1211
|
-
const p = n[
|
|
1192
|
+
const p = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1212
1193
|
a[u] = Math.min(
|
|
1213
1194
|
a[u - 1] + 1,
|
|
1214
1195
|
// Insertion
|
|
1215
|
-
|
|
1196
|
+
s[u] + 1,
|
|
1216
1197
|
// Deletion
|
|
1217
|
-
|
|
1198
|
+
s[u - 1] + p
|
|
1218
1199
|
// Substitution
|
|
1219
1200
|
);
|
|
1220
1201
|
}
|
|
1221
|
-
[
|
|
1202
|
+
[s, a] = [a, s];
|
|
1222
1203
|
}
|
|
1223
|
-
return
|
|
1224
|
-
}, Ye = (n, o,
|
|
1204
|
+
return s[o.length];
|
|
1205
|
+
}, Ye = (n, o, s = 0.6) => {
|
|
1225
1206
|
if (n.length <= 3 || o.length <= 3)
|
|
1226
1207
|
return n.includes(o) || o.includes(n);
|
|
1227
|
-
const a = Qn(n, o),
|
|
1228
|
-
return 1 - a /
|
|
1229
|
-
},
|
|
1230
|
-
const
|
|
1231
|
-
return o.length <= 4 ?
|
|
1208
|
+
const a = Qn(n, o), c = Math.max(n.length, o.length);
|
|
1209
|
+
return 1 - a / c >= s;
|
|
1210
|
+
}, Rt = (n, o) => {
|
|
1211
|
+
const s = n.split(/\s+/);
|
|
1212
|
+
return o.length <= 4 ? s.some((a) => a.includes(o)) : s.some((a) => {
|
|
1232
1213
|
if (Ye(a, o))
|
|
1233
1214
|
return !0;
|
|
1234
1215
|
if (a.length >= o.length)
|
|
1235
|
-
for (let
|
|
1236
|
-
const u = a.slice(
|
|
1216
|
+
for (let c = 0; c <= a.length - o.length; c++) {
|
|
1217
|
+
const u = a.slice(c, c + o.length + 1);
|
|
1237
1218
|
if (Ye(o, u))
|
|
1238
1219
|
return !0;
|
|
1239
1220
|
}
|
|
1240
1221
|
return !1;
|
|
1241
1222
|
});
|
|
1242
|
-
},
|
|
1223
|
+
}, ct = "nav-drawer-hover", ut = "nav-drawer-animation-start", dt = "nav-drawer-animation-end", _t = (n) => {
|
|
1243
1224
|
window.dispatchEvent(
|
|
1244
|
-
new CustomEvent(
|
|
1225
|
+
new CustomEvent(ct, {
|
|
1245
1226
|
detail: { isHovering: n },
|
|
1246
1227
|
bubbles: !0,
|
|
1247
1228
|
cancelable: !0
|
|
1248
1229
|
})
|
|
1249
1230
|
);
|
|
1250
|
-
},
|
|
1231
|
+
}, St = (n) => {
|
|
1251
1232
|
window.dispatchEvent(
|
|
1252
1233
|
new CustomEvent(n, {
|
|
1253
1234
|
bubbles: !0,
|
|
1254
1235
|
cancelable: !0
|
|
1255
1236
|
})
|
|
1256
1237
|
);
|
|
1257
|
-
}, qn = (n = !1, o = !1,
|
|
1238
|
+
}, qn = (n = !1, o = !1, s = !1) => n || !o ? "column" : s ? "row" : "row-reverse", er = ft(Lt), tr = ft(Ot), lt = ({
|
|
1258
1239
|
isOpen: n = !1,
|
|
1259
1240
|
onClose: o,
|
|
1260
|
-
title:
|
|
1241
|
+
title: s,
|
|
1261
1242
|
navDrawerLinks: a,
|
|
1262
|
-
bottomNavButtons:
|
|
1243
|
+
bottomNavButtons: c,
|
|
1263
1244
|
spotlightCards: u,
|
|
1264
1245
|
bottomButton: p,
|
|
1265
1246
|
hasBackButton: v = !0,
|
|
@@ -1270,30 +1251,30 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1270
1251
|
topOffset: w,
|
|
1271
1252
|
forceMobilePlacement: y = !1
|
|
1272
1253
|
}) => {
|
|
1273
|
-
var
|
|
1274
|
-
const R =
|
|
1254
|
+
var ie, J, T, Y, le, z;
|
|
1255
|
+
const R = Ee({
|
|
1275
1256
|
base: !1,
|
|
1276
1257
|
tablet: !1,
|
|
1277
1258
|
largeTablet: !1,
|
|
1278
1259
|
mediumDesktop: !0,
|
|
1279
1260
|
desktop: !0,
|
|
1280
1261
|
fullDesktop: !0
|
|
1281
|
-
}) ?? !1, O = y ? "right" : R ? "top" : "right", m = O === "right", [
|
|
1262
|
+
}) ?? !1, O = y ? "right" : R ? "top" : "right", m = O === "right", [F, S] = Z(0), [V, A] = Z(!1), B = () => {
|
|
1282
1263
|
S((L) => L + 1);
|
|
1283
|
-
}, M =
|
|
1264
|
+
}, M = Ht(
|
|
1284
1265
|
Jn((L) => {
|
|
1285
1266
|
g(L), B();
|
|
1286
1267
|
}, 100),
|
|
1287
1268
|
[]
|
|
1288
1269
|
);
|
|
1289
|
-
|
|
1290
|
-
n && (
|
|
1270
|
+
oe(() => {
|
|
1271
|
+
n && (A(!0), St(ut));
|
|
1291
1272
|
}, [n]);
|
|
1292
1273
|
const ee = () => {
|
|
1293
|
-
n || (
|
|
1274
|
+
n || (A(!1), o()), St(dt);
|
|
1294
1275
|
};
|
|
1295
1276
|
return /* @__PURE__ */ t.jsx(
|
|
1296
|
-
|
|
1277
|
+
Pt,
|
|
1297
1278
|
{
|
|
1298
1279
|
isOpen: V || n,
|
|
1299
1280
|
closeOnOverlayClick: !0,
|
|
@@ -1306,14 +1287,14 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1306
1287
|
...m ? {
|
|
1307
1288
|
styleConfig: {
|
|
1308
1289
|
baseStyle: {
|
|
1309
|
-
...
|
|
1290
|
+
...X.components.Drawer.baseStyle,
|
|
1310
1291
|
dialogContainer: {
|
|
1311
|
-
...(
|
|
1292
|
+
...(J = (ie = X.components.Drawer) == null ? void 0 : ie.baseStyle) == null ? void 0 : J.dialogContainer,
|
|
1312
1293
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1313
1294
|
zIndex: "popover"
|
|
1314
1295
|
},
|
|
1315
1296
|
dialog: {
|
|
1316
|
-
...(Y = (T =
|
|
1297
|
+
...(Y = (T = X.components.Drawer) == null ? void 0 : T.baseStyle) == null ? void 0 : Y.dialog,
|
|
1317
1298
|
// Ensure mobile drawer doesn't expand to full width
|
|
1318
1299
|
maxW: "560px",
|
|
1319
1300
|
width: "auto"
|
|
@@ -1323,9 +1304,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1323
1304
|
} : {
|
|
1324
1305
|
styleConfig: {
|
|
1325
1306
|
baseStyle: {
|
|
1326
|
-
...
|
|
1307
|
+
...X.components.Drawer.baseStyle,
|
|
1327
1308
|
dialogContainer: {
|
|
1328
|
-
...(z = (
|
|
1309
|
+
...(z = (le = X.components.Drawer) == null ? void 0 : le.baseStyle) == null ? void 0 : z.dialogContainer,
|
|
1329
1310
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1330
1311
|
top: `${w}px`,
|
|
1331
1312
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
@@ -1366,10 +1347,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1366
1347
|
ne && ne.href === window.location.href && o();
|
|
1367
1348
|
},
|
|
1368
1349
|
onMouseEnter: () => {
|
|
1369
|
-
m ||
|
|
1350
|
+
m || _t(!0);
|
|
1370
1351
|
},
|
|
1371
1352
|
onMouseLeave: (L) => {
|
|
1372
|
-
m || (!d || d && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !V)) &&
|
|
1353
|
+
m || (!d || d && (L.target === L.currentTarget || !L.currentTarget.contains(L.target) && !V)) && _t(!1);
|
|
1373
1354
|
},
|
|
1374
1355
|
paddingTop: "4",
|
|
1375
1356
|
paddingX: m ? "4" : "12",
|
|
@@ -1393,7 +1374,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1393
1374
|
},
|
|
1394
1375
|
children: [
|
|
1395
1376
|
!d && !m ? null : /* @__PURE__ */ t.jsxs(
|
|
1396
|
-
|
|
1377
|
+
At,
|
|
1397
1378
|
{
|
|
1398
1379
|
padding: "0",
|
|
1399
1380
|
flexDirection: d ? "column" : "row",
|
|
@@ -1407,9 +1388,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1407
1388
|
alignItems: "center",
|
|
1408
1389
|
children: [
|
|
1409
1390
|
v ? /* @__PURE__ */ t.jsx(
|
|
1410
|
-
|
|
1391
|
+
ke,
|
|
1411
1392
|
{
|
|
1412
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1393
|
+
icon: /* @__PURE__ */ t.jsx(An, {}),
|
|
1413
1394
|
onClick: () => {
|
|
1414
1395
|
x && x();
|
|
1415
1396
|
},
|
|
@@ -1421,13 +1402,13 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1421
1402
|
{
|
|
1422
1403
|
color: "tints.uiGrey",
|
|
1423
1404
|
fontSize: "xl",
|
|
1424
|
-
children:
|
|
1405
|
+
children: s
|
|
1425
1406
|
}
|
|
1426
1407
|
),
|
|
1427
1408
|
/* @__PURE__ */ t.jsx(
|
|
1428
|
-
|
|
1409
|
+
ke,
|
|
1429
1410
|
{
|
|
1430
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1411
|
+
icon: /* @__PURE__ */ t.jsx(Bt, {}),
|
|
1431
1412
|
onClick: o,
|
|
1432
1413
|
"aria-label": "Close"
|
|
1433
1414
|
}
|
|
@@ -1452,7 +1433,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1452
1433
|
),
|
|
1453
1434
|
/* @__PURE__ */ t.jsx(
|
|
1454
1435
|
In,
|
|
1455
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Ln, { as:
|
|
1436
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Ln, { as: Ft, color: "gray.500" }) }
|
|
1456
1437
|
)
|
|
1457
1438
|
] }
|
|
1458
1439
|
)
|
|
@@ -1460,13 +1441,13 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1460
1441
|
}
|
|
1461
1442
|
),
|
|
1462
1443
|
/* @__PURE__ */ t.jsx(
|
|
1463
|
-
|
|
1444
|
+
$t,
|
|
1464
1445
|
{
|
|
1465
1446
|
paddingX: "0",
|
|
1466
1447
|
paddingBottom: m ? "6" : "4",
|
|
1467
|
-
"data-testid": `navbar-drawer-body-${
|
|
1448
|
+
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1468
1449
|
children: /* @__PURE__ */ t.jsxs(
|
|
1469
|
-
|
|
1450
|
+
ft.div,
|
|
1470
1451
|
{
|
|
1471
1452
|
...m ? {} : {
|
|
1472
1453
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1516,7 +1497,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1516
1497
|
width: m ? "100%" : d ? void 0 : "auto",
|
|
1517
1498
|
children: [
|
|
1518
1499
|
a ? /* @__PURE__ */ t.jsx(C, { children: a }) : null,
|
|
1519
|
-
|
|
1500
|
+
c && m ? /* @__PURE__ */ t.jsx(C, { children: c }) : null,
|
|
1520
1501
|
p ? /* @__PURE__ */ t.jsx(
|
|
1521
1502
|
C,
|
|
1522
1503
|
{
|
|
@@ -1532,7 +1513,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1532
1513
|
)
|
|
1533
1514
|
]
|
|
1534
1515
|
},
|
|
1535
|
-
|
|
1516
|
+
F
|
|
1536
1517
|
)
|
|
1537
1518
|
}
|
|
1538
1519
|
)
|
|
@@ -1547,33 +1528,33 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1547
1528
|
}, nr = ({
|
|
1548
1529
|
source: n,
|
|
1549
1530
|
onSearchCallback: o,
|
|
1550
|
-
isActive:
|
|
1531
|
+
isActive: s
|
|
1551
1532
|
}) => {
|
|
1552
|
-
const [a,
|
|
1533
|
+
const [a, c] = Z(""), [u, p] = Z([]), v = (d, g) => {
|
|
1553
1534
|
if (!d) return [];
|
|
1554
|
-
const y =
|
|
1535
|
+
const y = it(d).split(/\s+/);
|
|
1555
1536
|
return g.filter((R) => {
|
|
1556
|
-
const O =
|
|
1557
|
-
if (y.some((
|
|
1558
|
-
const
|
|
1559
|
-
const B =
|
|
1560
|
-
return
|
|
1537
|
+
const O = it(R.label);
|
|
1538
|
+
if (y.some((A) => Rt(O, A))) return !0;
|
|
1539
|
+
const F = O.split(/\s+/), S = y.some((A) => F.some((B) => B.includes(A) || Ye(A, B))), V = typeof R.additionalContent == "string" && y.some((A) => {
|
|
1540
|
+
const B = it(R.additionalContent);
|
|
1541
|
+
return Rt(B, A) || B.split(/\s+/).some((M) => M.includes(A) || Ye(A, M));
|
|
1561
1542
|
});
|
|
1562
1543
|
return S || V;
|
|
1563
1544
|
}).sort((R, O) => R.label.localeCompare(O.label));
|
|
1564
1545
|
}, x = (d) => {
|
|
1565
|
-
if (
|
|
1546
|
+
if (c(d), !d) {
|
|
1566
1547
|
p([]);
|
|
1567
1548
|
return;
|
|
1568
1549
|
}
|
|
1569
1550
|
const g = v(d, n);
|
|
1570
1551
|
p(g), o && o(d, g);
|
|
1571
1552
|
}, f = () => {
|
|
1572
|
-
|
|
1553
|
+
c(""), p([]);
|
|
1573
1554
|
};
|
|
1574
|
-
return
|
|
1575
|
-
|
|
1576
|
-
}, [
|
|
1555
|
+
return oe(() => {
|
|
1556
|
+
s || (c(""), p([]));
|
|
1557
|
+
}, [s]), {
|
|
1577
1558
|
query: a,
|
|
1578
1559
|
results: u,
|
|
1579
1560
|
handleClose: f,
|
|
@@ -1581,20 +1562,20 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1581
1562
|
};
|
|
1582
1563
|
}, rr = (n) => {
|
|
1583
1564
|
const o = /* @__PURE__ */ new Set();
|
|
1584
|
-
return n.reduce((
|
|
1565
|
+
return n.reduce((s, a) => {
|
|
1585
1566
|
var u;
|
|
1586
|
-
const
|
|
1567
|
+
const c = ((u = a.sections) == null ? void 0 : u.reduce((p, v) => {
|
|
1587
1568
|
const x = v.links.filter((f) => o.has(f.label) || f.isSearchable !== !0 ? !1 : (o.add(f.label), !0));
|
|
1588
1569
|
return [...p, ...x];
|
|
1589
1570
|
}, [])) ?? [];
|
|
1590
|
-
return [...
|
|
1571
|
+
return [...s, ...c];
|
|
1591
1572
|
}, []);
|
|
1592
1573
|
}, mr = ({
|
|
1593
1574
|
categories: n = [],
|
|
1594
1575
|
onCartClick: o,
|
|
1595
|
-
mainCategoryLabel:
|
|
1576
|
+
mainCategoryLabel: s = "Menu",
|
|
1596
1577
|
logoLink: a = "https://www.everlywell.com",
|
|
1597
|
-
hasSearch:
|
|
1578
|
+
hasSearch: c = !0,
|
|
1598
1579
|
onSearchClick: u,
|
|
1599
1580
|
registrationUrl: p,
|
|
1600
1581
|
profileUrl: v = "https://secure.everlywell.com/login",
|
|
@@ -1607,38 +1588,38 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1607
1588
|
onMobileMenuOpen: R,
|
|
1608
1589
|
onBackToMainMenu: O,
|
|
1609
1590
|
onRegisterKitClick: m,
|
|
1610
|
-
onProfileClick:
|
|
1591
|
+
onProfileClick: F,
|
|
1611
1592
|
onLogoClick: S,
|
|
1612
1593
|
shopAllProductsUrl: V,
|
|
1613
|
-
onShopAllProductsClick:
|
|
1594
|
+
onShopAllProductsClick: A,
|
|
1614
1595
|
hideableButtons: B
|
|
1615
1596
|
}) => {
|
|
1616
|
-
var
|
|
1617
|
-
const [M, ee] = Z(!1), [
|
|
1618
|
-
|
|
1619
|
-
const i = () =>
|
|
1620
|
-
return window.addEventListener(
|
|
1597
|
+
var Le, ue, ze;
|
|
1598
|
+
const [M, ee] = Z(!1), [ie, J] = Z(!1), [T, Y] = Z(null), [le, z] = Z(!1), [L, te] = Z(!1), [ne, $e] = Z(0), [Me, _e] = Z(!1), [Se, ae] = Z(!1);
|
|
1599
|
+
oe(() => {
|
|
1600
|
+
const i = () => _e(!0), D = () => _e(!1);
|
|
1601
|
+
return window.addEventListener(ut, i), window.addEventListener(dt, D), () => {
|
|
1621
1602
|
window.removeEventListener(
|
|
1622
|
-
|
|
1603
|
+
ut,
|
|
1623
1604
|
i
|
|
1624
|
-
), window.removeEventListener(
|
|
1605
|
+
), window.removeEventListener(dt, D);
|
|
1625
1606
|
};
|
|
1626
1607
|
}, []);
|
|
1627
|
-
const
|
|
1608
|
+
const Te = Ee({
|
|
1628
1609
|
base: !1,
|
|
1629
1610
|
tablet: !1,
|
|
1630
1611
|
largeTablet: !1,
|
|
1631
1612
|
mediumDesktop: !0,
|
|
1632
1613
|
desktop: !0,
|
|
1633
1614
|
fullDesktop: !0
|
|
1634
|
-
}) ?? !1,
|
|
1615
|
+
}) ?? !1, se = Ee({
|
|
1635
1616
|
base: !1,
|
|
1636
1617
|
tablet: !1,
|
|
1637
1618
|
largeTablet: !1,
|
|
1638
1619
|
mediumDesktop: !1,
|
|
1639
1620
|
desktop: !1,
|
|
1640
1621
|
fullDesktop: !0
|
|
1641
|
-
}) ?? !1, Ge = !
|
|
1622
|
+
}) ?? !1, Ge = !se, Ue = Ee({
|
|
1642
1623
|
base: !0,
|
|
1643
1624
|
tablet: !0,
|
|
1644
1625
|
largeTablet: !0,
|
|
@@ -1646,21 +1627,21 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1646
1627
|
desktop: !1,
|
|
1647
1628
|
fullDesktop: !1
|
|
1648
1629
|
}) ?? !0;
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
}, [
|
|
1630
|
+
oe(() => {
|
|
1631
|
+
ve(), Y(null);
|
|
1632
|
+
}, [Te]);
|
|
1652
1633
|
const {
|
|
1653
|
-
query:
|
|
1654
|
-
results:
|
|
1655
|
-
handleSearch:
|
|
1634
|
+
query: De,
|
|
1635
|
+
results: de,
|
|
1636
|
+
handleSearch: ge
|
|
1656
1637
|
} = nr({
|
|
1657
1638
|
source: rr(n),
|
|
1658
1639
|
onSearchCallback: g,
|
|
1659
|
-
isActive:
|
|
1660
|
-
}),
|
|
1640
|
+
isActive: ie
|
|
1641
|
+
}), xe = de.length > 0, ce = d || K, Ze = Re(V, !!d), He = De && /* @__PURE__ */ t.jsxs(
|
|
1661
1642
|
k,
|
|
1662
|
-
{ gap:
|
|
1663
|
-
|
|
1643
|
+
{ gap: xe ? "6" : 0, direction: "column", children: [
|
|
1644
|
+
xe ? /* @__PURE__ */ t.jsx(W, { color: "tints.uiGrey", children: `${de.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1664
1645
|
k,
|
|
1665
1646
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1666
1647
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1668,10 +1649,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1668
1649
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1669
1650
|
),
|
|
1670
1651
|
/* @__PURE__ */ t.jsx(
|
|
1671
|
-
|
|
1652
|
+
It,
|
|
1672
1653
|
{
|
|
1673
1654
|
as: ce,
|
|
1674
|
-
onClick:
|
|
1655
|
+
onClick: A,
|
|
1675
1656
|
_hover: { textDecoration: "none" },
|
|
1676
1657
|
width: ["100%", null, null, "auto"],
|
|
1677
1658
|
...Ze,
|
|
@@ -1682,7 +1663,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1682
1663
|
),
|
|
1683
1664
|
/* @__PURE__ */ t.jsx(
|
|
1684
1665
|
an,
|
|
1685
|
-
{ columns: [1, 1, 1, 4], children:
|
|
1666
|
+
{ columns: [1, 1, 1, 4], children: de.map(
|
|
1686
1667
|
(i, D) => /* @__PURE__ */ t.jsx(
|
|
1687
1668
|
sn,
|
|
1688
1669
|
{ children: /* @__PURE__ */ t.jsx(
|
|
@@ -1692,7 +1673,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1692
1673
|
label: i.label,
|
|
1693
1674
|
additionalContent: i == null ? void 0 : i.additionalContent,
|
|
1694
1675
|
linkComponent: d,
|
|
1695
|
-
forceMobileStyle: !
|
|
1676
|
+
forceMobileStyle: !Te
|
|
1696
1677
|
}
|
|
1697
1678
|
) },
|
|
1698
1679
|
`${i.label}-${D}`
|
|
@@ -1700,78 +1681,80 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1700
1681
|
) }
|
|
1701
1682
|
)
|
|
1702
1683
|
] }
|
|
1703
|
-
),
|
|
1684
|
+
), ve = () => {
|
|
1704
1685
|
ee(!1), Y(null);
|
|
1705
|
-
},
|
|
1706
|
-
|
|
1707
|
-
},
|
|
1708
|
-
z(!0),
|
|
1686
|
+
}, re = (i) => "href" in i, me = (i) => {
|
|
1687
|
+
re(i) ? w == null || w(i.label) : (ae(M || !se), Y(i));
|
|
1688
|
+
}, fe = (i) => {
|
|
1689
|
+
z(!0), J(!1), Y(null), !re(i) && (i.sections || i.spotlightCards) && (ae(!1), Y(i));
|
|
1709
1690
|
}, Fe = () => {
|
|
1710
1691
|
z(!1);
|
|
1711
1692
|
};
|
|
1712
|
-
|
|
1693
|
+
oe(() => {
|
|
1713
1694
|
const i = (D) => {
|
|
1714
1695
|
te(D.detail.isHovering);
|
|
1715
1696
|
};
|
|
1716
1697
|
return window.addEventListener(
|
|
1717
|
-
|
|
1698
|
+
ct,
|
|
1718
1699
|
i
|
|
1719
1700
|
), () => {
|
|
1720
1701
|
window.removeEventListener(
|
|
1721
|
-
|
|
1702
|
+
ct,
|
|
1722
1703
|
i
|
|
1723
1704
|
);
|
|
1724
1705
|
};
|
|
1725
|
-
}, []),
|
|
1726
|
-
!
|
|
1727
|
-
}, [
|
|
1706
|
+
}, []), oe(() => {
|
|
1707
|
+
!le && !L && (Y(null), J(!1), !M && se && ae(!1));
|
|
1708
|
+
}, [le, L, M, se]), oe(() => {
|
|
1728
1709
|
let i = window.location.href;
|
|
1729
1710
|
const D = () => {
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1711
|
+
const H = window.location.href;
|
|
1712
|
+
H !== i && (i = H, ve(), Y(null));
|
|
1732
1713
|
}, I = setInterval(D, 100);
|
|
1733
1714
|
return window.addEventListener("popstate", D), () => {
|
|
1734
1715
|
window.removeEventListener("popstate", D), clearInterval(I);
|
|
1735
1716
|
};
|
|
1736
1717
|
}, []);
|
|
1737
|
-
const
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
},
|
|
1748
|
-
onMouseLeave: Fe,
|
|
1749
|
-
isSelected: (T == null ? void 0 : T.label) === i.label,
|
|
1750
|
-
as: oe(i) && ce ? ce : X,
|
|
1751
|
-
href: oe(i) ? i.href : void 0,
|
|
1752
|
-
onClick: oe(i) ? () => w == null ? void 0 : w(i.label) : void 0,
|
|
1753
|
-
...((I = i == null ? void 0 : i.context) == null ? void 0 : I.desktop) === "link" || we(i) ? {
|
|
1754
|
-
_hover: {
|
|
1755
|
-
backgroundColor: "tints.lightCream",
|
|
1756
|
-
textDecoration: "none",
|
|
1757
|
-
filter: "brightness(0.95)"
|
|
1758
|
-
}
|
|
1759
|
-
} : {},
|
|
1760
|
-
...((F = i == null ? void 0 : i.context) == null ? void 0 : F.desktop) !== "link" && i.buttonProps,
|
|
1761
|
-
children: i.label
|
|
1718
|
+
const be = (i) => re(i) && (!i.buttonProps || Object.keys(i.buttonProps).length === 0 || i.buttonProps === void 0), we = n == null ? void 0 : n.map((i, D) => {
|
|
1719
|
+
var H, je;
|
|
1720
|
+
const I = B.includes(i.label);
|
|
1721
|
+
return /* @__PURE__ */ t.jsx(
|
|
1722
|
+
Ve,
|
|
1723
|
+
{
|
|
1724
|
+
height: "48px",
|
|
1725
|
+
paddingInline: "16px !important",
|
|
1726
|
+
onMouseEnter: () => {
|
|
1727
|
+
fe(i), y == null || y(i.label);
|
|
1762
1728
|
},
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1729
|
+
onMouseLeave: Fe,
|
|
1730
|
+
isSelected: (T == null ? void 0 : T.label) === i.label,
|
|
1731
|
+
as: re(i) && ce ? ce : K,
|
|
1732
|
+
href: re(i) ? i.href : void 0,
|
|
1733
|
+
onClick: re(i) ? () => w == null ? void 0 : w(i.label) : void 0,
|
|
1734
|
+
...I && {
|
|
1735
|
+
display: { base: "none", fullDesktop: "flex" }
|
|
1736
|
+
},
|
|
1737
|
+
...((H = i == null ? void 0 : i.context) == null ? void 0 : H.desktop) === "link" || be(i) ? {
|
|
1738
|
+
_hover: {
|
|
1739
|
+
backgroundColor: "tints.lightCream",
|
|
1740
|
+
textDecoration: "none",
|
|
1741
|
+
filter: "brightness(0.95)"
|
|
1742
|
+
}
|
|
1743
|
+
} : {},
|
|
1744
|
+
...((je = i == null ? void 0 : i.context) == null ? void 0 : je.desktop) !== "link" && i.buttonProps,
|
|
1745
|
+
children: i.label
|
|
1746
|
+
},
|
|
1747
|
+
`${i.label}-${D}`
|
|
1748
|
+
);
|
|
1749
|
+
}), Ke = (Le = n.filter(
|
|
1767
1750
|
(i) => {
|
|
1768
1751
|
var D;
|
|
1769
|
-
return ((D = i == null ? void 0 : i.context) == null ? void 0 : D.mobile) === "link" || (!
|
|
1752
|
+
return ((D = i == null ? void 0 : i.context) == null ? void 0 : D.mobile) === "link" || (!re(i) && i.isMobileTopLink !== !1 || be(i)) && (Ge && B.includes(i.label) || Ue);
|
|
1770
1753
|
}
|
|
1771
|
-
)) == null ? void 0 :
|
|
1772
|
-
var
|
|
1754
|
+
)) == null ? void 0 : Le.map((i, D) => {
|
|
1755
|
+
var H;
|
|
1773
1756
|
const I = i;
|
|
1774
|
-
return
|
|
1757
|
+
return be(I) || ((H = I == null ? void 0 : I.context) == null ? void 0 : H.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1775
1758
|
C,
|
|
1776
1759
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1777
1760
|
Ne,
|
|
@@ -1789,7 +1772,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1789
1772
|
C,
|
|
1790
1773
|
{
|
|
1791
1774
|
onClick: () => {
|
|
1792
|
-
|
|
1775
|
+
me(I), y == null || y(I.label);
|
|
1793
1776
|
},
|
|
1794
1777
|
children: /* @__PURE__ */ t.jsx(
|
|
1795
1778
|
Ne,
|
|
@@ -1805,22 +1788,22 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1805
1788
|
},
|
|
1806
1789
|
`${I.label}-${D}`
|
|
1807
1790
|
);
|
|
1808
|
-
}),
|
|
1791
|
+
}), Xe = /* @__PURE__ */ t.jsxs(
|
|
1809
1792
|
t.Fragment,
|
|
1810
1793
|
{ children: [
|
|
1811
1794
|
/* @__PURE__ */ t.jsx(
|
|
1812
1795
|
Ve,
|
|
1813
1796
|
{
|
|
1814
|
-
as:
|
|
1797
|
+
as: K,
|
|
1815
1798
|
href: v,
|
|
1816
1799
|
width: "100%",
|
|
1817
1800
|
backgroundColor: "tints.cream",
|
|
1818
|
-
onClick:
|
|
1801
|
+
onClick: F,
|
|
1819
1802
|
children: /* @__PURE__ */ t.jsxs(
|
|
1820
1803
|
k,
|
|
1821
1804
|
{ gap: "2", children: [
|
|
1822
1805
|
"Log in to My Everly",
|
|
1823
|
-
/* @__PURE__ */ t.jsx(
|
|
1806
|
+
/* @__PURE__ */ t.jsx(q, { as: Ct, size: 24 })
|
|
1824
1807
|
] }
|
|
1825
1808
|
)
|
|
1826
1809
|
},
|
|
@@ -1829,7 +1812,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1829
1812
|
/* @__PURE__ */ t.jsx(
|
|
1830
1813
|
Ve,
|
|
1831
1814
|
{
|
|
1832
|
-
as:
|
|
1815
|
+
as: K,
|
|
1833
1816
|
width: "100%",
|
|
1834
1817
|
href: p,
|
|
1835
1818
|
backgroundColor: "tints.cream",
|
|
@@ -1838,25 +1821,25 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1838
1821
|
k,
|
|
1839
1822
|
{ gap: "2", children: [
|
|
1840
1823
|
"Register kit",
|
|
1841
|
-
/* @__PURE__ */ t.jsx(
|
|
1824
|
+
/* @__PURE__ */ t.jsx(q, { as: $n, size: 24 })
|
|
1842
1825
|
] }
|
|
1843
1826
|
)
|
|
1844
1827
|
},
|
|
1845
1828
|
"register-kit"
|
|
1846
1829
|
)
|
|
1847
1830
|
] }
|
|
1848
|
-
),
|
|
1831
|
+
), Ie = /* @__PURE__ */ t.jsxs(
|
|
1849
1832
|
k,
|
|
1850
1833
|
{ gap: "2", flexDirection: "column", children: [
|
|
1851
1834
|
x,
|
|
1852
|
-
|
|
1835
|
+
Xe
|
|
1853
1836
|
] }
|
|
1854
|
-
),
|
|
1837
|
+
), Q = Se || M, Je = T ? /* @__PURE__ */ t.jsx(
|
|
1855
1838
|
k,
|
|
1856
|
-
{ direction:
|
|
1839
|
+
{ direction: Q ? "column" : ["column", null, null, "row"], gap: "8", children: (ue = T == null ? void 0 : T.sections) == null ? void 0 : ue.map((i, D) => {
|
|
1857
1840
|
const I = [];
|
|
1858
|
-
for (let
|
|
1859
|
-
I.push(i.links.slice(
|
|
1841
|
+
for (let H = 0; H < i.links.length; H += 3)
|
|
1842
|
+
I.push(i.links.slice(H, H + 3));
|
|
1860
1843
|
return /* @__PURE__ */ t.jsxs(
|
|
1861
1844
|
C,
|
|
1862
1845
|
{ children: [
|
|
@@ -1865,38 +1848,38 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1865
1848
|
{
|
|
1866
1849
|
fontSize: "md",
|
|
1867
1850
|
color: "tints.uiGrey",
|
|
1868
|
-
marginBottom:
|
|
1851
|
+
marginBottom: Q ? 0 : [0, null, null, 6],
|
|
1869
1852
|
children: i.title
|
|
1870
1853
|
}
|
|
1871
1854
|
),
|
|
1872
1855
|
/* @__PURE__ */ t.jsx(
|
|
1873
1856
|
k,
|
|
1874
1857
|
{
|
|
1875
|
-
flexDirection:
|
|
1876
|
-
gap:
|
|
1858
|
+
flexDirection: Q ? "column" : ["column", null, null, "row"],
|
|
1859
|
+
gap: Q ? void 0 : [null, null, null, 8],
|
|
1877
1860
|
children: I == null ? void 0 : I.map(
|
|
1878
|
-
(
|
|
1861
|
+
(H, je) => /* @__PURE__ */ t.jsx(
|
|
1879
1862
|
k,
|
|
1880
1863
|
{
|
|
1881
1864
|
flexDirection: "column",
|
|
1882
|
-
gap:
|
|
1883
|
-
marginLeft:
|
|
1884
|
-
children:
|
|
1885
|
-
(
|
|
1865
|
+
gap: Q ? void 0 : [null, null, null, 5],
|
|
1866
|
+
marginLeft: Q ? void 0 : [null, null, null, -2],
|
|
1867
|
+
children: H == null ? void 0 : H.map(
|
|
1868
|
+
(pe, Qe) => /* @__PURE__ */ t.jsx(
|
|
1886
1869
|
Ne,
|
|
1887
1870
|
{
|
|
1888
|
-
label:
|
|
1889
|
-
href:
|
|
1890
|
-
additionalContent:
|
|
1871
|
+
label: pe.label,
|
|
1872
|
+
href: pe.href,
|
|
1873
|
+
additionalContent: pe.additionalContent,
|
|
1891
1874
|
linkComponent: d,
|
|
1892
|
-
forceMobileStyle:
|
|
1893
|
-
onClick: () => w == null ? void 0 : w(
|
|
1875
|
+
forceMobileStyle: Q,
|
|
1876
|
+
onClick: () => w == null ? void 0 : w(pe.label)
|
|
1894
1877
|
},
|
|
1895
|
-
`${
|
|
1878
|
+
`${pe.label}-${Qe}`
|
|
1896
1879
|
)
|
|
1897
1880
|
)
|
|
1898
1881
|
},
|
|
1899
|
-
|
|
1882
|
+
je
|
|
1900
1883
|
)
|
|
1901
1884
|
)
|
|
1902
1885
|
}
|
|
@@ -1905,12 +1888,12 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1905
1888
|
`${i.title}-${D}`
|
|
1906
1889
|
);
|
|
1907
1890
|
}) }
|
|
1908
|
-
) : null, Be = T != null && T.spotlightCards ? (
|
|
1891
|
+
) : null, Be = T != null && T.spotlightCards ? (ze = T.spotlightCards) == null ? void 0 : ze.map(
|
|
1909
1892
|
(i, D) => /* @__PURE__ */ t.jsx(
|
|
1910
1893
|
Zn,
|
|
1911
1894
|
{
|
|
1912
1895
|
...i,
|
|
1913
|
-
forceMobileStyle:
|
|
1896
|
+
forceMobileStyle: Q
|
|
1914
1897
|
},
|
|
1915
1898
|
`${i.title}-${D}`
|
|
1916
1899
|
)
|
|
@@ -1923,16 +1906,16 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1923
1906
|
position: "sticky",
|
|
1924
1907
|
top: "0",
|
|
1925
1908
|
width: "100%",
|
|
1926
|
-
zIndex: ["sticky", null, null,
|
|
1909
|
+
zIndex: ["sticky", null, null, Me ? "modal" : "sticky"],
|
|
1927
1910
|
children: [
|
|
1928
1911
|
/* @__PURE__ */ t.jsx(
|
|
1929
|
-
|
|
1912
|
+
Kn,
|
|
1930
1913
|
{
|
|
1931
|
-
desktopTopButtons:
|
|
1914
|
+
desktopTopButtons: we,
|
|
1932
1915
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1933
1916
|
Ve,
|
|
1934
1917
|
{
|
|
1935
|
-
as:
|
|
1918
|
+
as: K,
|
|
1936
1919
|
height: "48px",
|
|
1937
1920
|
paddingInline: "16px !important",
|
|
1938
1921
|
href: p,
|
|
@@ -1942,11 +1925,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1942
1925
|
}
|
|
1943
1926
|
),
|
|
1944
1927
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1945
|
-
|
|
1946
|
-
{ href: v, "aria-label": "login", onClick:
|
|
1928
|
+
K,
|
|
1929
|
+
{ href: v, "aria-label": "login", onClick: F, children: /* @__PURE__ */ t.jsx(ke, { icon: /* @__PURE__ */ t.jsx(q, { as: Ct }), "aria-label": "Profile" }) }
|
|
1947
1930
|
),
|
|
1948
1931
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1949
|
-
|
|
1932
|
+
Xn,
|
|
1950
1933
|
{
|
|
1951
1934
|
"aria-label": "Cart",
|
|
1952
1935
|
count: f,
|
|
@@ -1954,62 +1937,62 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
1954
1937
|
}
|
|
1955
1938
|
),
|
|
1956
1939
|
onSearchClick: () => {
|
|
1957
|
-
|
|
1940
|
+
J(!ie), u == null || u();
|
|
1958
1941
|
},
|
|
1959
1942
|
onMenuClick: () => {
|
|
1960
1943
|
ee(!0), R == null || R();
|
|
1961
1944
|
},
|
|
1962
|
-
hasSearch:
|
|
1945
|
+
hasSearch: c,
|
|
1963
1946
|
logoLink: a,
|
|
1964
1947
|
linkComponent: d,
|
|
1965
1948
|
onLogoClick: S,
|
|
1966
|
-
setTopOffset:
|
|
1949
|
+
setTopOffset: $e
|
|
1967
1950
|
}
|
|
1968
1951
|
),
|
|
1969
1952
|
/* @__PURE__ */ t.jsxs(
|
|
1970
1953
|
C,
|
|
1971
1954
|
{ position: "relative", zIndex: "modal", children: [
|
|
1972
1955
|
/* @__PURE__ */ t.jsx(
|
|
1973
|
-
|
|
1956
|
+
lt,
|
|
1974
1957
|
{
|
|
1975
1958
|
isOpen: M,
|
|
1976
|
-
onClose:
|
|
1977
|
-
title:
|
|
1959
|
+
onClose: ve,
|
|
1960
|
+
title: s,
|
|
1978
1961
|
navDrawerLinks: Ke,
|
|
1979
|
-
bottomNavButtons:
|
|
1962
|
+
bottomNavButtons: Ie,
|
|
1980
1963
|
hasBackButton: !1,
|
|
1981
1964
|
topOffset: ne,
|
|
1982
1965
|
forceMobilePlacement: !0
|
|
1983
1966
|
}
|
|
1984
1967
|
),
|
|
1985
1968
|
/* @__PURE__ */ t.jsx(
|
|
1986
|
-
|
|
1969
|
+
lt,
|
|
1987
1970
|
{
|
|
1988
1971
|
isOpen: !!T,
|
|
1989
1972
|
onClose: () => {
|
|
1990
|
-
|
|
1973
|
+
ve(), Y(null), M || ae(!1);
|
|
1991
1974
|
},
|
|
1992
1975
|
title: (T == null ? void 0 : T.label) || "",
|
|
1993
|
-
navDrawerLinks:
|
|
1976
|
+
navDrawerLinks: Je,
|
|
1994
1977
|
onBackClick: () => {
|
|
1995
|
-
Y(null), M ||
|
|
1978
|
+
Y(null), M || ae(!1);
|
|
1996
1979
|
},
|
|
1997
1980
|
spotlightCards: Be,
|
|
1998
1981
|
hasOnlySpotlightCards: T == null ? void 0 : T.hasOnlySpotlightCards,
|
|
1999
1982
|
bottomButton: T == null ? void 0 : T.bottomButton,
|
|
2000
1983
|
topOffset: ne,
|
|
2001
|
-
forceMobilePlacement:
|
|
2002
|
-
M && !
|
|
1984
|
+
forceMobilePlacement: Se || M || // Below 1400px, if main menu is open, always use mobile closing
|
|
1985
|
+
M && !se
|
|
2003
1986
|
}
|
|
2004
1987
|
),
|
|
2005
1988
|
/* @__PURE__ */ t.jsx(
|
|
2006
|
-
|
|
1989
|
+
lt,
|
|
2007
1990
|
{
|
|
2008
|
-
isOpen:
|
|
2009
|
-
onClose: () =>
|
|
1991
|
+
isOpen: ie,
|
|
1992
|
+
onClose: () => J(!1),
|
|
2010
1993
|
title: "Search",
|
|
2011
|
-
navDrawerLinks:
|
|
2012
|
-
onSearch:
|
|
1994
|
+
navDrawerLinks: He,
|
|
1995
|
+
onSearch: ge,
|
|
2013
1996
|
hasSearch: !0,
|
|
2014
1997
|
hasBackButton: !1,
|
|
2015
1998
|
topOffset: ne
|
|
@@ -2020,9 +2003,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2020
2003
|
]
|
|
2021
2004
|
}
|
|
2022
2005
|
);
|
|
2023
|
-
},
|
|
2024
|
-
const a = o ||
|
|
2025
|
-
|
|
2006
|
+
}, Tt = ({ links: n, linkComponent: o, onLinkClick: s }) => {
|
|
2007
|
+
const a = o || K, c = (u) => {
|
|
2008
|
+
s && s(u);
|
|
2026
2009
|
};
|
|
2027
2010
|
return /* @__PURE__ */ t.jsx(
|
|
2028
2011
|
k,
|
|
@@ -2034,19 +2017,19 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2034
2017
|
color: "white",
|
|
2035
2018
|
size: "lg",
|
|
2036
2019
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
2037
|
-
onClick: () =>
|
|
2038
|
-
...
|
|
2020
|
+
onClick: () => c(u.label),
|
|
2021
|
+
...Re(u.href, !!o),
|
|
2039
2022
|
children: u.label
|
|
2040
2023
|
},
|
|
2041
2024
|
u.label
|
|
2042
2025
|
)
|
|
2043
2026
|
) }
|
|
2044
2027
|
);
|
|
2045
|
-
}, or = ({ title: n, links: o, isLast:
|
|
2046
|
-
const a =
|
|
2028
|
+
}, or = ({ title: n, links: o, isLast: s }) => {
|
|
2029
|
+
const a = s ? "transparent" : `${X.colors.viridian.lighter}20`;
|
|
2047
2030
|
return o ? /* @__PURE__ */ t.jsx(
|
|
2048
2031
|
un,
|
|
2049
|
-
{ borderColor: a, children: ({ isExpanded:
|
|
2032
|
+
{ borderColor: a, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
2050
2033
|
t.Fragment,
|
|
2051
2034
|
{ children: [
|
|
2052
2035
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2057,12 +2040,12 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2057
2040
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
2058
2041
|
),
|
|
2059
2042
|
/* @__PURE__ */ t.jsx(
|
|
2060
|
-
|
|
2043
|
+
q,
|
|
2061
2044
|
{
|
|
2062
2045
|
as: Mn,
|
|
2063
2046
|
size: "sm",
|
|
2064
2047
|
color: "viridian.lighter",
|
|
2065
|
-
transform:
|
|
2048
|
+
transform: c ? "rotate(-180deg)" : "rotate(0deg)",
|
|
2066
2049
|
transition: "transform 0.3s ease"
|
|
2067
2050
|
}
|
|
2068
2051
|
)
|
|
@@ -2087,8 +2070,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2087
2070
|
) : null, lr = ({
|
|
2088
2071
|
sections: n,
|
|
2089
2072
|
linkComponent: o,
|
|
2090
|
-
onLinkClick:
|
|
2091
|
-
}) =>
|
|
2073
|
+
onLinkClick: s
|
|
2074
|
+
}) => Ee({
|
|
2092
2075
|
base: !1,
|
|
2093
2076
|
tablet: !1,
|
|
2094
2077
|
largeTablet: !0,
|
|
@@ -2101,20 +2084,20 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2101
2084
|
children: /* @__PURE__ */ t.jsx(
|
|
2102
2085
|
k,
|
|
2103
2086
|
{ gap: 120, children: n.map(
|
|
2104
|
-
({ title:
|
|
2087
|
+
({ title: c, links: u }) => /* @__PURE__ */ t.jsx(
|
|
2105
2088
|
ir,
|
|
2106
2089
|
{
|
|
2107
|
-
title:
|
|
2090
|
+
title: c,
|
|
2108
2091
|
links: /* @__PURE__ */ t.jsx(
|
|
2109
|
-
|
|
2092
|
+
Tt,
|
|
2110
2093
|
{
|
|
2111
2094
|
links: u,
|
|
2112
2095
|
linkComponent: o,
|
|
2113
|
-
onLinkClick:
|
|
2096
|
+
onLinkClick: s
|
|
2114
2097
|
}
|
|
2115
2098
|
)
|
|
2116
2099
|
},
|
|
2117
|
-
|
|
2100
|
+
c
|
|
2118
2101
|
)
|
|
2119
2102
|
) }
|
|
2120
2103
|
)
|
|
@@ -2128,26 +2111,26 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2128
2111
|
display: "flex",
|
|
2129
2112
|
flexDirection: "column",
|
|
2130
2113
|
children: n.map(
|
|
2131
|
-
({ title:
|
|
2114
|
+
({ title: c, links: u }, p) => /* @__PURE__ */ t.jsx(
|
|
2132
2115
|
or,
|
|
2133
2116
|
{
|
|
2134
|
-
title:
|
|
2117
|
+
title: c,
|
|
2135
2118
|
links: /* @__PURE__ */ t.jsx(
|
|
2136
|
-
|
|
2119
|
+
Tt,
|
|
2137
2120
|
{
|
|
2138
2121
|
links: u,
|
|
2139
2122
|
linkComponent: o,
|
|
2140
|
-
onLinkClick:
|
|
2123
|
+
onLinkClick: s
|
|
2141
2124
|
}
|
|
2142
2125
|
),
|
|
2143
2126
|
isLast: p === n.length - 1
|
|
2144
2127
|
},
|
|
2145
|
-
|
|
2128
|
+
c
|
|
2146
2129
|
)
|
|
2147
2130
|
)
|
|
2148
2131
|
}
|
|
2149
|
-
),
|
|
2150
|
-
instagram:
|
|
2132
|
+
), Dt = {
|
|
2133
|
+
instagram: Fn,
|
|
2151
2134
|
linkedin: Bn,
|
|
2152
2135
|
facebook: zn,
|
|
2153
2136
|
tiktok: Wn,
|
|
@@ -2155,9 +2138,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2155
2138
|
}, ar = ({
|
|
2156
2139
|
socialLinks: n,
|
|
2157
2140
|
onEmailSubmit: o,
|
|
2158
|
-
socialMediaLabel:
|
|
2141
|
+
socialMediaLabel: s,
|
|
2159
2142
|
newsletterLabel: a,
|
|
2160
|
-
onLinkClick:
|
|
2143
|
+
onLinkClick: c,
|
|
2161
2144
|
showNewsletter: u = !0
|
|
2162
2145
|
}) => {
|
|
2163
2146
|
const [p, v] = Ae.useState(""), x = () => {
|
|
@@ -2165,7 +2148,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2165
2148
|
}, f = (g) => {
|
|
2166
2149
|
g.key === "Enter" && x();
|
|
2167
2150
|
}, d = (g) => {
|
|
2168
|
-
|
|
2151
|
+
c && c(g);
|
|
2169
2152
|
};
|
|
2170
2153
|
return /* @__PURE__ */ t.jsxs(
|
|
2171
2154
|
C,
|
|
@@ -2200,9 +2183,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2200
2183
|
/* @__PURE__ */ t.jsx(
|
|
2201
2184
|
gn,
|
|
2202
2185
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2203
|
-
|
|
2186
|
+
q,
|
|
2204
2187
|
{
|
|
2205
|
-
as:
|
|
2188
|
+
as: Hn,
|
|
2206
2189
|
color: "viridian.lighter",
|
|
2207
2190
|
width: "24px",
|
|
2208
2191
|
height: "24px",
|
|
@@ -2224,23 +2207,23 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2224
2207
|
{ children: [
|
|
2225
2208
|
/* @__PURE__ */ t.jsx(
|
|
2226
2209
|
W,
|
|
2227
|
-
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children:
|
|
2210
|
+
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children: s }
|
|
2228
2211
|
),
|
|
2229
2212
|
/* @__PURE__ */ t.jsx(
|
|
2230
2213
|
k,
|
|
2231
2214
|
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2232
2215
|
(g) => /* @__PURE__ */ t.jsx(
|
|
2233
|
-
|
|
2216
|
+
K,
|
|
2234
2217
|
{
|
|
2235
2218
|
href: g.href,
|
|
2236
2219
|
target: "_blank",
|
|
2237
2220
|
rel: "noopener noreferrer",
|
|
2238
2221
|
"aria-label": g.name,
|
|
2239
2222
|
onClick: () => d(g.name),
|
|
2240
|
-
children:
|
|
2241
|
-
|
|
2223
|
+
children: Dt[g.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2224
|
+
q,
|
|
2242
2225
|
{
|
|
2243
|
-
as:
|
|
2226
|
+
as: Dt[g.name.toLowerCase()],
|
|
2244
2227
|
color: "white",
|
|
2245
2228
|
width: ["48px", null, "24px", null],
|
|
2246
2229
|
height: ["48px", null, "24px", null]
|
|
@@ -2258,10 +2241,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2258
2241
|
}, sr = ({
|
|
2259
2242
|
links: n,
|
|
2260
2243
|
linkComponent: o,
|
|
2261
|
-
onLinkClick:
|
|
2244
|
+
onLinkClick: s
|
|
2262
2245
|
}) => {
|
|
2263
|
-
const a = o ||
|
|
2264
|
-
|
|
2246
|
+
const a = o || K, c = (p) => {
|
|
2247
|
+
s && s(p);
|
|
2265
2248
|
}, u = n == null ? void 0 : n.map(
|
|
2266
2249
|
(p) => /* @__PURE__ */ t.jsx(
|
|
2267
2250
|
W,
|
|
@@ -2270,8 +2253,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2270
2253
|
color: "viridian.lighter",
|
|
2271
2254
|
size: "sm",
|
|
2272
2255
|
_hover: { color: "white", textDecoration: "none" },
|
|
2273
|
-
onClick: () =>
|
|
2274
|
-
...
|
|
2256
|
+
onClick: () => c(p.label),
|
|
2257
|
+
...Re(p.href, !!o),
|
|
2275
2258
|
children: p.label
|
|
2276
2259
|
},
|
|
2277
2260
|
p.label
|
|
@@ -2308,9 +2291,9 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2308
2291
|
}, br = Ae.forwardRef(({
|
|
2309
2292
|
navigationSections: n = [],
|
|
2310
2293
|
disclaimer: o,
|
|
2311
|
-
newsletterLabel:
|
|
2294
|
+
newsletterLabel: s,
|
|
2312
2295
|
socialMediaLabel: a,
|
|
2313
|
-
socialLinks:
|
|
2296
|
+
socialLinks: c,
|
|
2314
2297
|
complianceLinks: u,
|
|
2315
2298
|
linkComponent: p,
|
|
2316
2299
|
onEmailSubmit: v,
|
|
@@ -2328,7 +2311,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2328
2311
|
{ direction: "column", gap: [8, 12], children: [
|
|
2329
2312
|
/* @__PURE__ */ t.jsx(
|
|
2330
2313
|
C,
|
|
2331
|
-
{ children: /* @__PURE__ */ t.jsx(
|
|
2314
|
+
{ children: /* @__PURE__ */ t.jsx(zt, { width: ["150px", "202px"], color: "white" }) }
|
|
2332
2315
|
),
|
|
2333
2316
|
/* @__PURE__ */ t.jsxs(
|
|
2334
2317
|
k,
|
|
@@ -2349,8 +2332,8 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2349
2332
|
/* @__PURE__ */ t.jsx(
|
|
2350
2333
|
ar,
|
|
2351
2334
|
{
|
|
2352
|
-
socialLinks:
|
|
2353
|
-
newsletterLabel:
|
|
2335
|
+
socialLinks: c,
|
|
2336
|
+
newsletterLabel: s,
|
|
2354
2337
|
socialMediaLabel: a,
|
|
2355
2338
|
onEmailSubmit: v,
|
|
2356
2339
|
onLinkClick: d,
|
|
@@ -2391,7 +2374,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2391
2374
|
C,
|
|
2392
2375
|
{
|
|
2393
2376
|
borderTop: "1px solid",
|
|
2394
|
-
borderColor: `${
|
|
2377
|
+
borderColor: `${X.colors.viridian.lighter}20`,
|
|
2395
2378
|
marginTop: "10",
|
|
2396
2379
|
marginBottom: "8"
|
|
2397
2380
|
}
|
|
@@ -2408,11 +2391,11 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2408
2391
|
] }
|
|
2409
2392
|
) }
|
|
2410
2393
|
)), cr = (n) => n ? {
|
|
2411
|
-
Container:
|
|
2412
|
-
Overlay:
|
|
2413
|
-
Content:
|
|
2414
|
-
Header:
|
|
2415
|
-
Body:
|
|
2394
|
+
Container: Pt,
|
|
2395
|
+
Overlay: Ot,
|
|
2396
|
+
Content: Lt,
|
|
2397
|
+
Header: At,
|
|
2398
|
+
Body: $t,
|
|
2416
2399
|
Footer: vn,
|
|
2417
2400
|
CloseButton: mn
|
|
2418
2401
|
} : {
|
|
@@ -2426,23 +2409,23 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2426
2409
|
}, wr = ({
|
|
2427
2410
|
isOpen: n,
|
|
2428
2411
|
onClose: o,
|
|
2429
|
-
children:
|
|
2412
|
+
children: s,
|
|
2430
2413
|
header: a,
|
|
2431
|
-
footer:
|
|
2414
|
+
footer: c,
|
|
2432
2415
|
headerProps: u,
|
|
2433
2416
|
bodyProps: p,
|
|
2434
2417
|
footerProps: v,
|
|
2435
2418
|
contentProps: x,
|
|
2436
2419
|
...f
|
|
2437
2420
|
}) => {
|
|
2438
|
-
var V,
|
|
2439
|
-
const [d] =
|
|
2421
|
+
var V, A, B, M, ee;
|
|
2422
|
+
const [d] = at(`(max-width: ${X.breakpoints.tablet})`), g = (ee = (M = (B = (A = (V = X) == null ? void 0 : V.components) == null ? void 0 : A.Modal) == null ? void 0 : B.baseStyle) == null ? void 0 : M.overlay) == null ? void 0 : ee.background, {
|
|
2440
2423
|
Container: w,
|
|
2441
2424
|
Overlay: y,
|
|
2442
2425
|
Content: R,
|
|
2443
2426
|
Header: O,
|
|
2444
2427
|
Body: m,
|
|
2445
|
-
Footer:
|
|
2428
|
+
Footer: F,
|
|
2446
2429
|
CloseButton: S
|
|
2447
2430
|
} = cr(d);
|
|
2448
2431
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -2496,7 +2479,7 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2496
2479
|
fontSize: "1rem"
|
|
2497
2480
|
}
|
|
2498
2481
|
},
|
|
2499
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2482
|
+
children: /* @__PURE__ */ t.jsx(q, { as: Bt, weight: "light" })
|
|
2500
2483
|
}
|
|
2501
2484
|
)
|
|
2502
2485
|
]
|
|
@@ -2508,10 +2491,10 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2508
2491
|
color: "tints.darkGrey",
|
|
2509
2492
|
paddingInline: 4,
|
|
2510
2493
|
...p,
|
|
2511
|
-
children:
|
|
2494
|
+
children: s
|
|
2512
2495
|
}
|
|
2513
2496
|
),
|
|
2514
|
-
/* @__PURE__ */ t.jsx(
|
|
2497
|
+
/* @__PURE__ */ t.jsx(F, { paddingInline: 4, ...v, children: c })
|
|
2515
2498
|
]
|
|
2516
2499
|
}
|
|
2517
2500
|
)
|
|
@@ -2520,17 +2503,17 @@ const it = 60, St = 6, Un = (n) => {
|
|
|
2520
2503
|
);
|
|
2521
2504
|
};
|
|
2522
2505
|
export {
|
|
2523
|
-
|
|
2506
|
+
Xn as BasketButton,
|
|
2524
2507
|
xr as CategoryLabel,
|
|
2525
2508
|
wr as DrawerModal,
|
|
2526
2509
|
br as Footer,
|
|
2527
2510
|
Ve as NavButton,
|
|
2528
2511
|
vr as NavSkeleton,
|
|
2529
|
-
|
|
2512
|
+
lt as NavbarDrawer,
|
|
2530
2513
|
Ne as NavbarDrawerLink,
|
|
2531
2514
|
mr as NavigationBar,
|
|
2532
2515
|
Zn as SpotlightCard,
|
|
2533
2516
|
gr as Stepper,
|
|
2534
|
-
|
|
2535
|
-
|
|
2517
|
+
ke as TopNavIconButton,
|
|
2518
|
+
Kn as TopNavigation
|
|
2536
2519
|
};
|