@everlywell/consumer-ui 1.42.2 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/index.mjs +537 -524
- package/lib/components/Navbar/TopNavigation/TopNavigation.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useSteps as
|
|
2
|
-
import Pe, { useEffect as oe, forwardRef as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { CaretRight as Et, MagnifyingGlass as
|
|
5
|
-
import { motion as gt, AnimatePresence as
|
|
1
|
+
import { useSteps as tn, Box as j, Stepper as nn, Icon as ee, Flex as k, Text as z, Link as X, Button as ht, Image as rn, IconButton as on, theme as K, useMediaQuery as ct, VStack as ln, Skeleton as it, HStack as yt, SkeletonCircle as Ye, DrawerContent as At, DrawerOverlay as Pt, Drawer as $t, DrawerHeader as Mt, DrawerBody as Ht, 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 Cn, ModalContent as wn, ModalHeader as jn, ModalBody as yn, ModalFooter as En, ModalCloseButton as kn } from "@everlywell/ui-kit";
|
|
2
|
+
import Pe, { useEffect as oe, forwardRef as Ft, useRef as Rn, useCallback as Bt, useState as Z } from "react";
|
|
3
|
+
import { Text as _n, useBreakpointValue as je, Box as Sn, InputGroup as Tn, Input as Dn, InputRightElement as In, Icon as Ln } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as Et, MagnifyingGlass as zt, List as On, Basket as An, CaretLeft as Pn, X as Wt, User as kt, 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 gt, AnimatePresence as Vn } from "framer-motion";
|
|
6
6
|
var ut = { exports: {} }, Oe = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
@@ -14,16 +14,16 @@ var ut = { exports: {} }, Oe = {};
|
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
16
|
var Rt;
|
|
17
|
-
function
|
|
17
|
+
function Yn() {
|
|
18
18
|
if (Rt) return Oe;
|
|
19
19
|
Rt = 1;
|
|
20
|
-
var n = Pe, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"),
|
|
20
|
+
var n = Pe, 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, g, d) {
|
|
22
|
-
var f, x = {},
|
|
23
|
-
d !== void 0 && (
|
|
24
|
-
for (f in g)
|
|
22
|
+
var f, x = {}, y = null, R = null;
|
|
23
|
+
d !== void 0 && (y = "" + d), g.key !== void 0 && (y = "" + g.key), g.ref !== void 0 && (R = g.ref);
|
|
24
|
+
for (f in g) a.call(g, f) && !u.hasOwnProperty(f) && (x[f] = g[f]);
|
|
25
25
|
if (v && v.defaultProps) for (f in g = v.defaultProps, g) x[f] === void 0 && (x[f] = g[f]);
|
|
26
|
-
return { $$typeof: o, type: v, key:
|
|
26
|
+
return { $$typeof: o, type: v, key: y, ref: R, props: x, _owner: c.current };
|
|
27
27
|
}
|
|
28
28
|
return Oe.Fragment = s, Oe.jsx = p, Oe.jsxs = p, Oe;
|
|
29
29
|
}
|
|
@@ -38,48 +38,48 @@ var Ae = {};
|
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
40
|
var _t;
|
|
41
|
-
function
|
|
41
|
+
function Gn() {
|
|
42
42
|
return _t || (_t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var n = Pe, o = Symbol.for("react.element"), s = Symbol.for("react.portal"),
|
|
44
|
-
function
|
|
43
|
+
var n = Pe, 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"), g = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), b = Symbol.iterator, _ = "@@iterator";
|
|
44
|
+
function m(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = b && e[b] || e[_];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var F = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function S(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var r = arguments.length,
|
|
54
|
-
|
|
55
|
-
W("error", e,
|
|
53
|
+
for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0), h = 1; h < r; h++)
|
|
54
|
+
l[h - 1] = arguments[h];
|
|
55
|
+
W("error", e, l);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function W(e, r,
|
|
58
|
+
function W(e, r, l) {
|
|
59
59
|
{
|
|
60
60
|
var h = F.ReactDebugCurrentFrame, E = h.getStackAddendum();
|
|
61
|
-
E !== "" && (r += "%s",
|
|
62
|
-
var D =
|
|
63
|
-
return String(
|
|
61
|
+
E !== "" && (r += "%s", l = l.concat([E]));
|
|
62
|
+
var D = l.map(function(w) {
|
|
63
|
+
return String(w);
|
|
64
64
|
});
|
|
65
65
|
D.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, D);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var $ = !1, B = !1, J = !1, te = !1, V = !1,
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
68
|
+
var $ = !1, B = !1, J = !1, te = !1, V = !1, ie;
|
|
69
|
+
ie = Symbol.for("react.module.reference");
|
|
70
|
+
function le(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === u || V || e === c || e === d || e === f || te || e === R || $ || B || J || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === x || e.$$typeof === p || e.$$typeof === v || e.$$typeof === g || // 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 === ie || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function ne(e, r,
|
|
77
|
+
function ne(e, r, l) {
|
|
78
78
|
var h = e.displayName;
|
|
79
79
|
if (h)
|
|
80
80
|
return h;
|
|
81
81
|
var E = r.displayName || r.name || "";
|
|
82
|
-
return E !== "" ?
|
|
82
|
+
return E !== "" ? l + "(" + E + ")" : l;
|
|
83
83
|
}
|
|
84
84
|
function T(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -92,7 +92,7 @@ function Un() {
|
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case a:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case s:
|
|
98
98
|
return "Portal";
|
|
@@ -111,17 +111,17 @@ function Un() {
|
|
|
111
111
|
var r = e;
|
|
112
112
|
return T(r) + ".Consumer";
|
|
113
113
|
case p:
|
|
114
|
-
var
|
|
115
|
-
return T(
|
|
114
|
+
var l = e;
|
|
115
|
+
return T(l._context) + ".Provider";
|
|
116
116
|
case g:
|
|
117
117
|
return ne(e, e.render, "ForwardRef");
|
|
118
118
|
case x:
|
|
119
119
|
var h = e.displayName || null;
|
|
120
120
|
return h !== null ? h : L(e.type) || "Memo";
|
|
121
|
-
case
|
|
122
|
-
var E = e, D = E._payload,
|
|
121
|
+
case y: {
|
|
122
|
+
var E = e, D = E._payload, w = E._init;
|
|
123
123
|
try {
|
|
124
|
-
return L(
|
|
124
|
+
return L(w(D));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function Un() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var O = Object.assign, q = 0,
|
|
132
|
+
var O = Object.assign, q = 0, ae, $e, he, Me, He, ke, Re;
|
|
133
133
|
function se() {
|
|
134
134
|
}
|
|
135
135
|
se.__reactDisabledLog = !0;
|
|
136
136
|
function Fe() {
|
|
137
137
|
{
|
|
138
138
|
if (q === 0) {
|
|
139
|
-
|
|
139
|
+
ae = console.log, $e = console.info, he = console.warn, Me = console.error, He = console.group, ke = console.groupCollapsed, Re = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -166,13 +166,13 @@ function Un() {
|
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
168
|
log: O({}, e, {
|
|
169
|
-
value:
|
|
169
|
+
value: ae
|
|
170
170
|
}),
|
|
171
171
|
info: O({}, e, {
|
|
172
172
|
value: $e
|
|
173
173
|
}),
|
|
174
174
|
warn: O({}, e, {
|
|
175
|
-
value:
|
|
175
|
+
value: he
|
|
176
176
|
}),
|
|
177
177
|
error: O({}, e, {
|
|
178
178
|
value: Me
|
|
@@ -192,7 +192,7 @@ function Un() {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var _e = F.ReactCurrentDispatcher, Se;
|
|
195
|
-
function
|
|
195
|
+
function ge(e, r, l) {
|
|
196
196
|
{
|
|
197
197
|
if (Se === void 0)
|
|
198
198
|
try {
|
|
@@ -205,18 +205,18 @@ function Un() {
|
|
|
205
205
|
` + Se + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var ue = !1,
|
|
208
|
+
var ue = !1, xe;
|
|
209
209
|
{
|
|
210
210
|
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
-
|
|
211
|
+
xe = new Be();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function ve(e, r) {
|
|
214
214
|
if (!e || ue)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var l = xe.get(e);
|
|
218
|
+
if (l !== void 0)
|
|
219
|
+
return l;
|
|
220
220
|
}
|
|
221
221
|
var h;
|
|
222
222
|
ue = !0;
|
|
@@ -226,27 +226,27 @@ function Un() {
|
|
|
226
226
|
D = _e.current, _e.current = null, Fe();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var w = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(w, []);
|
|
239
239
|
} catch (Y) {
|
|
240
240
|
h = Y;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], w);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
w.call();
|
|
246
246
|
} catch (Y) {
|
|
247
247
|
h = Y;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(w.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -258,18 +258,18 @@ function Un() {
|
|
|
258
258
|
}
|
|
259
259
|
} catch (Y) {
|
|
260
260
|
if (Y && h && typeof Y.stack == "string") {
|
|
261
|
-
for (var
|
|
261
|
+
for (var C = Y.stack.split(`
|
|
262
262
|
`), N = h.stack.split(`
|
|
263
|
-
`), P =
|
|
263
|
+
`), P = C.length - 1, M = N.length - 1; P >= 1 && M >= 0 && C[P] !== N[M]; )
|
|
264
264
|
M--;
|
|
265
265
|
for (; P >= 1 && M >= 0; P--, M--)
|
|
266
|
-
if (
|
|
266
|
+
if (C[P] !== N[M]) {
|
|
267
267
|
if (P !== 1 || M !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (P--, M--, M < 0 ||
|
|
269
|
+
if (P--, M--, M < 0 || C[P] !== N[M]) {
|
|
270
270
|
var U = `
|
|
271
|
-
` +
|
|
272
|
-
return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
271
|
+
` + C[P].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && xe.set(e, U), U;
|
|
273
273
|
}
|
|
274
274
|
while (P >= 1 && M >= 0);
|
|
275
275
|
break;
|
|
@@ -278,39 +278,39 @@ function Un() {
|
|
|
278
278
|
} finally {
|
|
279
279
|
ue = !1, _e.current = D, ce(), Error.prepareStackTrace = E;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var we = e ? e.displayName || e.name : "", pe = we ? ge(we) : "";
|
|
282
|
+
return typeof e == "function" && xe.set(e, pe), pe;
|
|
283
283
|
}
|
|
284
|
-
function Xe(e, r,
|
|
285
|
-
return
|
|
284
|
+
function Xe(e, r, l) {
|
|
285
|
+
return ve(e, !1);
|
|
286
286
|
}
|
|
287
287
|
function Ke(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function re(e, r,
|
|
291
|
+
function re(e, r, l) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return ve(e, Ke(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return ge(e);
|
|
298
298
|
switch (e) {
|
|
299
299
|
case d:
|
|
300
|
-
return
|
|
300
|
+
return ge("Suspense");
|
|
301
301
|
case f:
|
|
302
|
-
return
|
|
302
|
+
return ge("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case g:
|
|
307
307
|
return Xe(e.render);
|
|
308
308
|
case x:
|
|
309
|
-
return re(e.type, r,
|
|
310
|
-
case
|
|
309
|
+
return re(e.type, r, l);
|
|
310
|
+
case y: {
|
|
311
311
|
var h = e, E = h._payload, D = h._init;
|
|
312
312
|
try {
|
|
313
|
-
return re(D(E), r,
|
|
313
|
+
return re(D(E), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -320,27 +320,27 @@ function Un() {
|
|
|
320
320
|
var G = Object.prototype.hasOwnProperty, ze = {}, We = F.ReactDebugCurrentFrame;
|
|
321
321
|
function me(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner,
|
|
324
|
-
We.setExtraStackFrame(
|
|
323
|
+
var r = e._owner, l = re(e.type, e._source, r ? r.type : null);
|
|
324
|
+
We.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
326
|
We.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Te(e, r,
|
|
328
|
+
function Te(e, r, l, h, E) {
|
|
329
329
|
{
|
|
330
330
|
var D = Function.call.bind(G);
|
|
331
|
-
for (var
|
|
332
|
-
if (D(e,
|
|
333
|
-
var
|
|
331
|
+
for (var w in e)
|
|
332
|
+
if (D(e, w)) {
|
|
333
|
+
var C = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var N = Error((h || "React class") + ": " +
|
|
335
|
+
if (typeof e[w] != "function") {
|
|
336
|
+
var N = Error((h || "React class") + ": " + l + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw N.name = "Invariant Violation", N;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
C = e[w](r, w, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (P) {
|
|
341
|
-
|
|
341
|
+
C = P;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
C && !(C instanceof Error) && (me(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, w, typeof C), me(null)), C instanceof Error && !(C.message in ze) && (ze[C.message] = !0, me(E), S("Failed %s type: %s", l, C.message), me(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -350,8 +350,8 @@ function Un() {
|
|
|
350
350
|
}
|
|
351
351
|
function Qe(e) {
|
|
352
352
|
{
|
|
353
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
354
|
-
return
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, l = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return l;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
function qe(e) {
|
|
@@ -373,8 +373,8 @@ function Un() {
|
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
}, Ie, Le,
|
|
377
|
-
|
|
376
|
+
}, Ie, Le, i;
|
|
377
|
+
i = {};
|
|
378
378
|
function I(e) {
|
|
379
379
|
if (G.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -393,84 +393,84 @@ function Un() {
|
|
|
393
393
|
}
|
|
394
394
|
function H(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && de.current && r && de.current.stateNode !== r) {
|
|
396
|
-
var
|
|
397
|
-
l
|
|
396
|
+
var l = L(de.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', L(de.current.type), e.ref), i[l] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function be(e, r) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
402
|
+
var l = function() {
|
|
403
403
|
Ie || (Ie = !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
|
-
|
|
406
|
-
get:
|
|
405
|
+
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: l,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function fe(e, r) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
413
|
+
var l = function() {
|
|
414
414
|
Le || (Le = !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
|
-
|
|
417
|
-
get:
|
|
416
|
+
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: l,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var et = function(e, r,
|
|
423
|
-
var
|
|
422
|
+
var et = function(e, r, l, h, E, D, w) {
|
|
423
|
+
var C = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
429
|
+
ref: l,
|
|
430
|
+
props: w,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: D
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(C, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
443
|
value: h
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(C, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
448
|
value: E
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function Vt(e, r, l, h, E) {
|
|
452
452
|
{
|
|
453
|
-
var D,
|
|
454
|
-
|
|
453
|
+
var D, w = {}, C = null, N = null;
|
|
454
|
+
l !== void 0 && (Ne(l), C = "" + l), A(r) && (Ne(r.key), C = "" + r.key), I(r) && (N = r.ref, H(r, E));
|
|
455
455
|
for (D in r)
|
|
456
|
-
G.call(r, D) && !Ve.hasOwnProperty(D) && (
|
|
456
|
+
G.call(r, D) && !Ve.hasOwnProperty(D) && (w[D] = r[D]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var P = e.defaultProps;
|
|
459
459
|
for (D in P)
|
|
460
|
-
|
|
460
|
+
w[D] === void 0 && (w[D] = P[D]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
462
|
+
if (C || N) {
|
|
463
463
|
var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
|
|
464
|
+
C && be(w, M), N && fe(w, M);
|
|
465
465
|
}
|
|
466
|
-
return et(e,
|
|
466
|
+
return et(e, C, N, E, h, de.current, w);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var tt = F.ReactCurrentOwner, xt = F.ReactDebugCurrentFrame;
|
|
470
|
-
function
|
|
470
|
+
function Ce(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner,
|
|
473
|
-
xt.setExtraStackFrame(
|
|
472
|
+
var r = e._owner, l = re(e.type, e._source, r ? r.type : null);
|
|
473
|
+
xt.setExtraStackFrame(l);
|
|
474
474
|
} else
|
|
475
475
|
xt.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
@@ -491,33 +491,33 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Yt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
497
|
+
var mt = {};
|
|
498
|
+
function Gt(e) {
|
|
499
499
|
{
|
|
500
500
|
var r = vt();
|
|
501
501
|
if (!r) {
|
|
502
|
-
var
|
|
503
|
-
|
|
502
|
+
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
l && (r = `
|
|
504
504
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
505
|
+
Check the top-level render call using <` + l + ">.");
|
|
506
506
|
}
|
|
507
507
|
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function bt(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
|
-
var
|
|
516
|
-
if (
|
|
515
|
+
var l = Gt(r);
|
|
516
|
+
if (mt[l])
|
|
517
517
|
return;
|
|
518
|
-
|
|
518
|
+
mt[l] = !0;
|
|
519
519
|
var h = "";
|
|
520
|
-
e && e._owner && e._owner !== tt.current && (h = " It was passed a child from " + L(e._owner.type) + "."),
|
|
520
|
+
e && e._owner && e._owner !== tt.current && (h = " It was passed a child from " + L(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
523
|
function Ct(e, r) {
|
|
@@ -525,37 +525,37 @@ Check the top-level render call using <` + a + ">.");
|
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
527
|
if (De(e))
|
|
528
|
-
for (var
|
|
529
|
-
var h = e[
|
|
530
|
-
rt(h) &&
|
|
528
|
+
for (var l = 0; l < e.length; l++) {
|
|
529
|
+
var h = e[l];
|
|
530
|
+
rt(h) && bt(h, r);
|
|
531
531
|
}
|
|
532
532
|
else if (rt(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var E =
|
|
535
|
+
var E = m(e);
|
|
536
536
|
if (typeof E == "function" && E !== e.entries)
|
|
537
|
-
for (var D = E.call(e),
|
|
538
|
-
rt(
|
|
537
|
+
for (var D = E.call(e), w; !(w = D.next()).done; )
|
|
538
|
+
rt(w.value) && bt(w.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ut(e) {
|
|
543
543
|
{
|
|
544
544
|
var r = e.type;
|
|
545
545
|
if (r == null || typeof r == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
547
|
+
var l;
|
|
548
548
|
if (typeof r == "function")
|
|
549
|
-
|
|
549
|
+
l = r.propTypes;
|
|
550
550
|
else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
552
|
r.$$typeof === x))
|
|
553
|
-
|
|
553
|
+
l = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
556
|
+
if (l) {
|
|
557
557
|
var h = L(r);
|
|
558
|
-
Te(
|
|
558
|
+
Te(l, e.props, "prop", h, e);
|
|
559
559
|
} else if (r.PropTypes !== void 0 && !nt) {
|
|
560
560
|
nt = !0;
|
|
561
561
|
var E = L(r);
|
|
@@ -564,40 +564,40 @@ Check the top-level render call using <` + a + ">.");
|
|
|
564
564
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Zt(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var r = Object.keys(e.props),
|
|
570
|
-
var h = r[
|
|
569
|
+
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
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
579
|
var wt = {};
|
|
580
|
-
function jt(e, r,
|
|
580
|
+
function jt(e, r, l, h, E, D) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
586
|
-
var N =
|
|
587
|
-
N ?
|
|
582
|
+
var w = le(e);
|
|
583
|
+
if (!w) {
|
|
584
|
+
var C = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (C += " 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 N = Yt();
|
|
587
|
+
N ? C += N : C += vt();
|
|
588
588
|
var P;
|
|
589
|
-
e === null ? P = "null" : De(e) ? P = "array" : e !== void 0 && e.$$typeof === o ? (P = "<" + (L(e.type) || "Unknown") + " />",
|
|
589
|
+
e === null ? P = "null" : De(e) ? P = "array" : e !== void 0 && e.$$typeof === o ? (P = "<" + (L(e.type) || "Unknown") + " />", C = " 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, C);
|
|
590
590
|
}
|
|
591
|
-
var M =
|
|
591
|
+
var M = Vt(e, r, l, E, D);
|
|
592
592
|
if (M == null)
|
|
593
593
|
return M;
|
|
594
|
-
if (
|
|
594
|
+
if (w) {
|
|
595
595
|
var U = r.children;
|
|
596
596
|
if (U !== void 0)
|
|
597
597
|
if (h)
|
|
598
598
|
if (De(U)) {
|
|
599
|
-
for (var
|
|
600
|
-
Ct(U[
|
|
599
|
+
for (var we = 0; we < U.length; we++)
|
|
600
|
+
Ct(U[we], 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.");
|
|
@@ -605,84 +605,84 @@ Check the top-level render call using <` + a + ">.");
|
|
|
605
605
|
Ct(U, e);
|
|
606
606
|
}
|
|
607
607
|
if (G.call(r, "key")) {
|
|
608
|
-
var pe = L(e), Y = Object.keys(r).filter(function(
|
|
609
|
-
return
|
|
608
|
+
var pe = L(e), Y = Object.keys(r).filter(function(en) {
|
|
609
|
+
return en !== "key";
|
|
610
610
|
}), ot = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!wt[pe + ot]) {
|
|
612
|
-
var
|
|
612
|
+
var qt = Y.length > 0 ? "{" + Y.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} />`, ot, pe,
|
|
618
|
+
<%s key={someKey} {...props} />`, ot, pe, qt, pe), wt[pe + ot] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === a ? Zt(M) : Ut(M), M;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return jt(e, r,
|
|
624
|
+
function Xt(e, r, l) {
|
|
625
|
+
return jt(e, r, l, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return jt(e, r,
|
|
627
|
+
function Kt(e, r, l) {
|
|
628
|
+
return jt(e, r, l, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
Ae.Fragment =
|
|
630
|
+
var Jt = Kt, Qt = Xt;
|
|
631
|
+
Ae.Fragment = a, Ae.jsx = Jt, Ae.jsxs = Qt;
|
|
632
632
|
}()), Ae;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ? ut.exports =
|
|
634
|
+
process.env.NODE_ENV === "production" ? ut.exports = Yn() : ut.exports = Gn();
|
|
635
635
|
var t = ut.exports;
|
|
636
|
-
const
|
|
636
|
+
const lt = 60, St = 6, Un = (n) => {
|
|
637
637
|
const {
|
|
638
638
|
activeStepIndex: o,
|
|
639
639
|
hideIndicators: s = !1,
|
|
640
|
-
steps:
|
|
640
|
+
steps: a,
|
|
641
641
|
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
|
-
} = n, { activeStep: u, setActiveStep: p } =
|
|
645
|
+
} = n, { activeStep: u, setActiveStep: p } = tn({
|
|
646
646
|
index: o,
|
|
647
|
-
count:
|
|
647
|
+
count: a.length
|
|
648
648
|
});
|
|
649
649
|
return oe(() => {
|
|
650
650
|
p(o);
|
|
651
651
|
}, [o, p]), /* @__PURE__ */ t.jsx(
|
|
652
|
-
|
|
652
|
+
j,
|
|
653
653
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
|
-
|
|
654
|
+
nn,
|
|
655
655
|
{
|
|
656
656
|
role: "progressbar",
|
|
657
657
|
index: u,
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children:
|
|
662
|
-
const d = u === g, f = g === 0, x = g ===
|
|
663
|
-
let R = `${
|
|
664
|
-
const
|
|
665
|
-
return d ? R =
|
|
666
|
-
|
|
661
|
+
children: a.map((v, g) => {
|
|
662
|
+
const d = u === g, f = g === 0, x = g === a.length - 1, y = u > g;
|
|
663
|
+
let R = `${lt}px`;
|
|
664
|
+
const b = `calc(100% - ((${lt * (a.length - 1)}px) - (${a.length - 1} * ${St * 2}px)))`;
|
|
665
|
+
return d ? R = b : (f || x) && (R = `${lt - St}px`), /* @__PURE__ */ t.jsx(
|
|
666
|
+
j,
|
|
667
667
|
{
|
|
668
668
|
width: R,
|
|
669
|
-
opacity:
|
|
669
|
+
opacity: y || d ? 1 : 0.2,
|
|
670
670
|
paddingRight: x ? "0" : "6px",
|
|
671
671
|
paddingLeft: f ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
674
|
-
|
|
674
|
+
j,
|
|
675
675
|
{
|
|
676
676
|
paddingTop: s ? 2 : 5,
|
|
677
677
|
position: "relative",
|
|
678
678
|
width: "100%",
|
|
679
679
|
children: /* @__PURE__ */ t.jsx(
|
|
680
|
-
|
|
680
|
+
j,
|
|
681
681
|
{
|
|
682
682
|
width: "100%",
|
|
683
683
|
position: "absolute",
|
|
684
684
|
top: "0",
|
|
685
|
-
backgroundColor:
|
|
685
|
+
backgroundColor: y ? c.light : c.base,
|
|
686
686
|
height: s ? "4px" : "8px",
|
|
687
687
|
borderRadius: "4",
|
|
688
688
|
left: "0"
|
|
@@ -697,11 +697,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
},
|
|
700
|
+
}, vr = Pe.memo(Un), mr = ({
|
|
701
701
|
children: n,
|
|
702
702
|
...o
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
|
-
|
|
704
|
+
_n,
|
|
705
705
|
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
706
|
), Ee = (n, o) => {
|
|
707
707
|
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
@@ -710,30 +710,30 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
710
710
|
} : {
|
|
711
711
|
href: n
|
|
712
712
|
};
|
|
713
|
-
}, Ge =
|
|
713
|
+
}, Ge = Ft(
|
|
714
714
|
(n, o) => {
|
|
715
715
|
const {
|
|
716
716
|
label: s,
|
|
717
|
-
additionalContent:
|
|
717
|
+
additionalContent: a,
|
|
718
718
|
mainTextFontSize: c,
|
|
719
719
|
linkComponent: u,
|
|
720
720
|
href: p,
|
|
721
721
|
forceMobileStyle: v = !1,
|
|
722
722
|
...g
|
|
723
|
-
} = n, d = u || X, f = Ee(p, !!u), x = v ? c || "xl" : [c || "xl", null, null, "lg"],
|
|
723
|
+
} = n, d = u || X, f = Ee(p, !!u), x = v ? c || "xl" : [c || "xl", null, null, "lg"], y = v ? "xl" : ["xl", null, null, "lg"], R = v ? void 0 : [null, null, null, 1], b = v ? void 0 : [null, null, null, "space-between"], _ = 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"], W = v ? "none" : ["none", null, null, "block"], $ = v ? "100%" : ["100%", null, null, "auto"], B = v ? "block" : ["block", null, null, "none"];
|
|
724
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
|
-
|
|
725
|
+
j,
|
|
726
726
|
{
|
|
727
727
|
ref: o,
|
|
728
728
|
as: d,
|
|
729
729
|
display: "flex",
|
|
730
730
|
alignItems: "center",
|
|
731
731
|
gap: R,
|
|
732
|
-
justifyContent:
|
|
732
|
+
justifyContent: b,
|
|
733
733
|
paddingY: _,
|
|
734
734
|
color: "tints.black",
|
|
735
735
|
_hover: { color: "viridian.base", textDecoration: "none" },
|
|
736
|
-
borderBottom:
|
|
736
|
+
borderBottom: m,
|
|
737
737
|
borderColor: F,
|
|
738
738
|
width: S,
|
|
739
739
|
cursor: "pointer",
|
|
@@ -763,10 +763,10 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
763
763
|
children: s
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
|
-
|
|
766
|
+
a && (typeof a == "string" ? /* @__PURE__ */ t.jsx(
|
|
767
767
|
z,
|
|
768
768
|
{
|
|
769
|
-
fontSize:
|
|
769
|
+
fontSize: y,
|
|
770
770
|
fontWeight: "medium",
|
|
771
771
|
color: "tints.uiGrey",
|
|
772
772
|
sx: {
|
|
@@ -774,9 +774,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
774
774
|
color: "viridian.base"
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
|
-
children:
|
|
777
|
+
children: a
|
|
778
778
|
}
|
|
779
|
-
) :
|
|
779
|
+
) : a),
|
|
780
780
|
/* @__PURE__ */ t.jsx(
|
|
781
781
|
ee,
|
|
782
782
|
{
|
|
@@ -795,9 +795,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
|
-
), Ue =
|
|
798
|
+
), Ue = Ft(
|
|
799
799
|
(n, o) => {
|
|
800
|
-
const { children: s, isSelected:
|
|
800
|
+
const { children: s, isSelected: a, ...c } = n, u = n.backgroundColor || (a ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
802
|
ht,
|
|
803
803
|
{
|
|
@@ -830,11 +830,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
|
-
),
|
|
833
|
+
), Zn = ({
|
|
834
834
|
title: n,
|
|
835
835
|
description: o,
|
|
836
836
|
imageSrc: s,
|
|
837
|
-
imageElement:
|
|
837
|
+
imageElement: a,
|
|
838
838
|
button: c,
|
|
839
839
|
backgroundColor: u = "viridian.wash",
|
|
840
840
|
onClick: p,
|
|
@@ -842,7 +842,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
842
842
|
linkComponent: g,
|
|
843
843
|
forceMobileStyle: d = !1
|
|
844
844
|
}) => {
|
|
845
|
-
const R = g || X,
|
|
845
|
+
const R = g || X, b = Ee(v, !!g), _ = je({
|
|
846
846
|
base: !1,
|
|
847
847
|
tablet: !1,
|
|
848
848
|
largeTablet: !1,
|
|
@@ -872,10 +872,10 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
872
872
|
borderColor: "tints.white"
|
|
873
873
|
},
|
|
874
874
|
as: d ? R : _ ? k : R,
|
|
875
|
-
...d ?
|
|
875
|
+
...d ? b : _ ? {} : b,
|
|
876
876
|
children: [
|
|
877
877
|
/* @__PURE__ */ t.jsx(
|
|
878
|
-
|
|
878
|
+
j,
|
|
879
879
|
{
|
|
880
880
|
width: d ? "72px" : ["72px", null, null, "100%"],
|
|
881
881
|
height: d ? "100%" : ["100%", null, null, "188px"],
|
|
@@ -886,7 +886,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
children: s ? /* @__PURE__ */ t.jsx(
|
|
889
|
-
|
|
889
|
+
rn,
|
|
890
890
|
{
|
|
891
891
|
src: s,
|
|
892
892
|
objectFit: "cover",
|
|
@@ -895,12 +895,12 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
895
895
|
"data-testid": "spotlight-card-image"
|
|
896
896
|
}
|
|
897
897
|
) : /* @__PURE__ */ t.jsx(
|
|
898
|
-
|
|
898
|
+
j,
|
|
899
899
|
{
|
|
900
900
|
height: d ? 80 : [80, null, null, 188],
|
|
901
901
|
overflow: "hidden",
|
|
902
902
|
...d ? { sx: { div: { height: "100%" } } } : {},
|
|
903
|
-
children:
|
|
903
|
+
children: a
|
|
904
904
|
}
|
|
905
905
|
)
|
|
906
906
|
}
|
|
@@ -938,15 +938,15 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
938
938
|
)
|
|
939
939
|
] }
|
|
940
940
|
),
|
|
941
|
-
d ? null : _ ? /* @__PURE__ */ t.jsx(
|
|
941
|
+
d ? null : _ ? /* @__PURE__ */ t.jsx(j, { children: c }) : null
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
944
|
)
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
|
-
},
|
|
949
|
-
|
|
948
|
+
}, ye = (n) => /* @__PURE__ */ t.jsx(
|
|
949
|
+
on,
|
|
950
950
|
{
|
|
951
951
|
size: "sm",
|
|
952
952
|
width: ["40px", null, null, "46px"],
|
|
@@ -966,11 +966,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
966
966
|
},
|
|
967
967
|
...n
|
|
968
968
|
}
|
|
969
|
-
),
|
|
969
|
+
), Nt = ({
|
|
970
970
|
color: n = K.colors.viridian.base,
|
|
971
971
|
width: o
|
|
972
972
|
}) => /* @__PURE__ */ t.jsx(
|
|
973
|
-
|
|
973
|
+
Sn,
|
|
974
974
|
{
|
|
975
975
|
as: "svg",
|
|
976
976
|
width: o,
|
|
@@ -994,7 +994,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
994
994
|
) }
|
|
995
995
|
)
|
|
996
996
|
}
|
|
997
|
-
),
|
|
997
|
+
), Xn = () => /* @__PURE__ */ t.jsxs(
|
|
998
998
|
"svg",
|
|
999
999
|
{
|
|
1000
1000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1030,11 +1030,33 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1030
1030
|
)
|
|
1031
1031
|
]
|
|
1032
1032
|
}
|
|
1033
|
-
), Kn =
|
|
1033
|
+
), Kn = {
|
|
1034
|
+
"&::before": {
|
|
1035
|
+
content: '""',
|
|
1036
|
+
position: "absolute",
|
|
1037
|
+
top: 0,
|
|
1038
|
+
left: "-100%",
|
|
1039
|
+
width: "100%",
|
|
1040
|
+
height: "100%",
|
|
1041
|
+
background: "linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent)",
|
|
1042
|
+
animation: "shimmer 5s infinite"
|
|
1043
|
+
},
|
|
1044
|
+
"@keyframes shimmer": {
|
|
1045
|
+
"0%": {
|
|
1046
|
+
left: "-100%"
|
|
1047
|
+
},
|
|
1048
|
+
"100%": {
|
|
1049
|
+
left: "100%"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"&:hover::before": {
|
|
1053
|
+
animation: "shimmer 5s infinite"
|
|
1054
|
+
}
|
|
1055
|
+
}, Jn = ({
|
|
1034
1056
|
desktopTopButtons: n,
|
|
1035
1057
|
kitRegistrationElement: o,
|
|
1036
1058
|
profileElement: s,
|
|
1037
|
-
cartElement:
|
|
1059
|
+
cartElement: a,
|
|
1038
1060
|
onSearchClick: c,
|
|
1039
1061
|
onMenuClick: u,
|
|
1040
1062
|
hasSearch: p = !1,
|
|
@@ -1043,27 +1065,27 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1043
1065
|
logoLink: d = "https://www.everlywell.com",
|
|
1044
1066
|
setTopOffset: f,
|
|
1045
1067
|
linkComponent: x,
|
|
1046
|
-
onLogoClick:
|
|
1068
|
+
onLogoClick: y
|
|
1047
1069
|
}) => {
|
|
1048
|
-
const R =
|
|
1070
|
+
const R = Rn(null), [b] = ct(`(max-width: ${K.breakpoints.mediumTablet})`), [_] = ct(`(max-width: ${K.breakpoints.mediumDesktop})`), m = Bt(() => {
|
|
1049
1071
|
if (R.current) {
|
|
1050
1072
|
const F = R.current.getBoundingClientRect();
|
|
1051
1073
|
f(F.bottom);
|
|
1052
1074
|
}
|
|
1053
1075
|
}, []);
|
|
1054
1076
|
return oe(() => {
|
|
1055
|
-
|
|
1056
|
-
}, [
|
|
1057
|
-
|
|
1077
|
+
m();
|
|
1078
|
+
}, [m]), /* @__PURE__ */ t.jsx(
|
|
1079
|
+
j,
|
|
1058
1080
|
{
|
|
1059
1081
|
ref: R,
|
|
1060
1082
|
paddingY: "4",
|
|
1061
|
-
paddingX:
|
|
1083
|
+
paddingX: b ? 4 : _ ? 6 : 8,
|
|
1062
1084
|
borderBottom: "1px solid",
|
|
1063
1085
|
borderColor: "tints.lightCream",
|
|
1064
1086
|
backgroundColor: "tints.white",
|
|
1065
1087
|
width: "100%",
|
|
1066
|
-
onMouseEnter:
|
|
1088
|
+
onMouseEnter: m,
|
|
1067
1089
|
children: /* @__PURE__ */ t.jsxs(
|
|
1068
1090
|
k,
|
|
1069
1091
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
@@ -1071,13 +1093,13 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1071
1093
|
k,
|
|
1072
1094
|
{ alignItems: "center", gap: "5", children: [
|
|
1073
1095
|
/* @__PURE__ */ t.jsx(
|
|
1074
|
-
|
|
1096
|
+
j,
|
|
1075
1097
|
{
|
|
1076
1098
|
"aria-label": "Go to homepage",
|
|
1077
|
-
onClick:
|
|
1099
|
+
onClick: y,
|
|
1078
1100
|
as: x || X,
|
|
1079
1101
|
...Ee(d, !!x),
|
|
1080
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1102
|
+
children: /* @__PURE__ */ t.jsx(Nt, { width: "116px" })
|
|
1081
1103
|
}
|
|
1082
1104
|
),
|
|
1083
1105
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1090,47 +1112,38 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1090
1112
|
k,
|
|
1091
1113
|
{ alignItems: "center", gap: "2", children: [
|
|
1092
1114
|
/* @__PURE__ */ t.jsx(
|
|
1093
|
-
|
|
1115
|
+
j,
|
|
1094
1116
|
{ display: ["none", null, "none", "none", "none", "block"], children: o }
|
|
1095
1117
|
),
|
|
1096
|
-
p ? g ?
|
|
1097
|
-
he,
|
|
1098
|
-
{
|
|
1099
|
-
"aria-label": "Search",
|
|
1100
|
-
icon: /* @__PURE__ */ t.jsx(Tt, {}),
|
|
1101
|
-
onClick: v,
|
|
1102
|
-
backgroundColor: "eggplant.wash",
|
|
1103
|
-
fill: "eggplant.base",
|
|
1104
|
-
_hover: {
|
|
1105
|
-
backgroundColor: "eggplant.wash",
|
|
1106
|
-
filter: "brightness(0.95)"
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
) : /* @__PURE__ */ t.jsxs(
|
|
1118
|
+
p ? g ? /* @__PURE__ */ t.jsxs(
|
|
1110
1119
|
ht,
|
|
1111
1120
|
{
|
|
1112
|
-
height: "48px",
|
|
1113
|
-
paddingX: "16px !important",
|
|
1114
|
-
fontSize: "lg",
|
|
1115
|
-
color: "
|
|
1121
|
+
height: b ? "40px" : "48px",
|
|
1122
|
+
paddingX: b ? "12px !important" : "16px !important",
|
|
1123
|
+
fontSize: b ? "12px" : "lg",
|
|
1124
|
+
color: "violet.dark",
|
|
1116
1125
|
backgroundColor: "eggplant.wash",
|
|
1117
1126
|
_hover: {
|
|
1118
1127
|
backgroundColor: "eggplant.wash",
|
|
1119
1128
|
filter: "brightness(0.95)"
|
|
1120
1129
|
},
|
|
1121
1130
|
fill: "eggplant.base",
|
|
1122
|
-
gap: 2,
|
|
1131
|
+
gap: b ? 1 : 2,
|
|
1123
1132
|
onClick: v,
|
|
1133
|
+
position: "relative",
|
|
1134
|
+
overflow: "hidden",
|
|
1135
|
+
borderRadius: "full",
|
|
1136
|
+
sx: Kn,
|
|
1124
1137
|
children: [
|
|
1125
|
-
/* @__PURE__ */ t.jsx(
|
|
1126
|
-
/* @__PURE__ */ t.jsx("span", { children: "Ask or Search" })
|
|
1138
|
+
/* @__PURE__ */ t.jsx(Xn, {}),
|
|
1139
|
+
/* @__PURE__ */ t.jsx("span", { children: b ? "AI Search" : "Ask or Search" })
|
|
1127
1140
|
]
|
|
1128
1141
|
}
|
|
1129
1142
|
) : /* @__PURE__ */ t.jsx(
|
|
1130
|
-
|
|
1143
|
+
ye,
|
|
1131
1144
|
{
|
|
1132
1145
|
"aria-label": "Search",
|
|
1133
|
-
icon: /* @__PURE__ */ t.jsx(ee, { as:
|
|
1146
|
+
icon: /* @__PURE__ */ t.jsx(ee, { as: zt }),
|
|
1134
1147
|
onClick: c,
|
|
1135
1148
|
backgroundColor: "tints.cream",
|
|
1136
1149
|
color: "tints.black",
|
|
@@ -1140,13 +1153,13 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1140
1153
|
}
|
|
1141
1154
|
}
|
|
1142
1155
|
) : null,
|
|
1143
|
-
|
|
1156
|
+
a,
|
|
1144
1157
|
/* @__PURE__ */ t.jsx(
|
|
1145
|
-
|
|
1158
|
+
j,
|
|
1146
1159
|
{ display: ["flex", null, null, "flex", "flex", "flex", "none"], children: /* @__PURE__ */ t.jsx(
|
|
1147
|
-
|
|
1160
|
+
ye,
|
|
1148
1161
|
{
|
|
1149
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1162
|
+
icon: /* @__PURE__ */ t.jsx(On, {}),
|
|
1150
1163
|
"aria-label": "menu",
|
|
1151
1164
|
"data-testid": "menu-button",
|
|
1152
1165
|
onClick: u
|
|
@@ -1154,7 +1167,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1154
1167
|
) }
|
|
1155
1168
|
),
|
|
1156
1169
|
/* @__PURE__ */ t.jsx(
|
|
1157
|
-
|
|
1170
|
+
j,
|
|
1158
1171
|
{ display: ["none", null, null, "none", "none", "none", "block"], children: s }
|
|
1159
1172
|
)
|
|
1160
1173
|
] }
|
|
@@ -1163,15 +1176,15 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1163
1176
|
)
|
|
1164
1177
|
}
|
|
1165
1178
|
);
|
|
1166
|
-
},
|
|
1179
|
+
}, Qn = ({
|
|
1167
1180
|
count: n = 0,
|
|
1168
1181
|
...o
|
|
1169
1182
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1170
|
-
|
|
1183
|
+
j,
|
|
1171
1184
|
{ position: "relative", display: "inline-block", children: [
|
|
1172
|
-
/* @__PURE__ */ t.jsx(
|
|
1185
|
+
/* @__PURE__ */ t.jsx(ye, { icon: /* @__PURE__ */ t.jsx(An, {}), ...o }),
|
|
1173
1186
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1174
|
-
|
|
1187
|
+
j,
|
|
1175
1188
|
{
|
|
1176
1189
|
display: "flex",
|
|
1177
1190
|
minWidth: "20px",
|
|
@@ -1196,9 +1209,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1196
1209
|
numDesktopLinks: n = 5,
|
|
1197
1210
|
showPromoButton: o = !1
|
|
1198
1211
|
}) => /* @__PURE__ */ t.jsx(
|
|
1199
|
-
|
|
1212
|
+
ln,
|
|
1200
1213
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1201
|
-
|
|
1214
|
+
j,
|
|
1202
1215
|
{
|
|
1203
1216
|
paddingY: 4,
|
|
1204
1217
|
paddingX: 6,
|
|
@@ -1207,7 +1220,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1207
1220
|
children: /* @__PURE__ */ t.jsxs(
|
|
1208
1221
|
k,
|
|
1209
1222
|
{ justify: "space-between", align: "center", children: [
|
|
1210
|
-
/* @__PURE__ */ t.jsx(
|
|
1223
|
+
/* @__PURE__ */ t.jsx(it, { w: "120px", h: "48px" }),
|
|
1211
1224
|
/* @__PURE__ */ t.jsxs(
|
|
1212
1225
|
yt,
|
|
1213
1226
|
{
|
|
@@ -1217,9 +1230,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1217
1230
|
"data-testid": "desktop-nav",
|
|
1218
1231
|
children: [
|
|
1219
1232
|
Array.from({ length: n }).map(
|
|
1220
|
-
(s,
|
|
1233
|
+
(s, a) => /* @__PURE__ */ t.jsx(it, { width: "90px", height: "48px" }, a)
|
|
1221
1234
|
),
|
|
1222
|
-
o && /* @__PURE__ */ t.jsx(
|
|
1235
|
+
o && /* @__PURE__ */ t.jsx(it, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1223
1236
|
]
|
|
1224
1237
|
}
|
|
1225
1238
|
),
|
|
@@ -1248,24 +1261,24 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1248
1261
|
)
|
|
1249
1262
|
}
|
|
1250
1263
|
) }
|
|
1251
|
-
),
|
|
1264
|
+
), qn = (n, o) => {
|
|
1252
1265
|
let s;
|
|
1253
|
-
return (...
|
|
1266
|
+
return (...a) => {
|
|
1254
1267
|
s && clearTimeout(s), s = setTimeout(() => {
|
|
1255
|
-
n(...
|
|
1268
|
+
n(...a);
|
|
1256
1269
|
}, o);
|
|
1257
1270
|
};
|
|
1258
|
-
},
|
|
1271
|
+
}, at = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), er = (n, o) => {
|
|
1259
1272
|
n.length < o.length && ([n, o] = [o, n]);
|
|
1260
|
-
let s = Array(o.length + 1).fill(0),
|
|
1273
|
+
let s = Array(o.length + 1).fill(0), a = Array(o.length + 1).fill(0);
|
|
1261
1274
|
for (let c = 0; c <= o.length; c++)
|
|
1262
1275
|
s[c] = c;
|
|
1263
1276
|
for (let c = 1; c <= n.length; c++) {
|
|
1264
|
-
|
|
1277
|
+
a[0] = c;
|
|
1265
1278
|
for (let u = 1; u <= o.length; u++) {
|
|
1266
1279
|
const p = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1267
|
-
|
|
1268
|
-
|
|
1280
|
+
a[u] = Math.min(
|
|
1281
|
+
a[u - 1] + 1,
|
|
1269
1282
|
// Insertion
|
|
1270
1283
|
s[u] + 1,
|
|
1271
1284
|
// Deletion
|
|
@@ -1273,28 +1286,28 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1273
1286
|
// Substitution
|
|
1274
1287
|
);
|
|
1275
1288
|
}
|
|
1276
|
-
[s,
|
|
1289
|
+
[s, a] = [a, s];
|
|
1277
1290
|
}
|
|
1278
1291
|
return s[o.length];
|
|
1279
1292
|
}, Ze = (n, o, s = 0.6) => {
|
|
1280
1293
|
if (n.length <= 3 || o.length <= 3)
|
|
1281
1294
|
return n.includes(o) || o.includes(n);
|
|
1282
|
-
const
|
|
1283
|
-
return 1 -
|
|
1284
|
-
},
|
|
1295
|
+
const a = er(n, o), c = Math.max(n.length, o.length);
|
|
1296
|
+
return 1 - a / c >= s;
|
|
1297
|
+
}, Tt = (n, o) => {
|
|
1285
1298
|
const s = n.split(/\s+/);
|
|
1286
|
-
return o.length <= 4 ? s.some((
|
|
1287
|
-
if (Ze(
|
|
1299
|
+
return o.length <= 4 ? s.some((a) => a.includes(o)) : s.some((a) => {
|
|
1300
|
+
if (Ze(a, o))
|
|
1288
1301
|
return !0;
|
|
1289
|
-
if (
|
|
1290
|
-
for (let c = 0; c <=
|
|
1291
|
-
const u =
|
|
1302
|
+
if (a.length >= o.length)
|
|
1303
|
+
for (let c = 0; c <= a.length - o.length; c++) {
|
|
1304
|
+
const u = a.slice(c, c + o.length + 1);
|
|
1292
1305
|
if (Ze(o, u))
|
|
1293
1306
|
return !0;
|
|
1294
1307
|
}
|
|
1295
1308
|
return !1;
|
|
1296
1309
|
});
|
|
1297
|
-
}, dt = "nav-drawer-hover", ft = "nav-drawer-animation-start", pt = "nav-drawer-animation-end",
|
|
1310
|
+
}, dt = "nav-drawer-hover", ft = "nav-drawer-animation-start", pt = "nav-drawer-animation-end", Dt = (n) => {
|
|
1298
1311
|
window.dispatchEvent(
|
|
1299
1312
|
new CustomEvent(dt, {
|
|
1300
1313
|
detail: { isHovering: n },
|
|
@@ -1302,18 +1315,18 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1302
1315
|
cancelable: !0
|
|
1303
1316
|
})
|
|
1304
1317
|
);
|
|
1305
|
-
},
|
|
1318
|
+
}, It = (n) => {
|
|
1306
1319
|
window.dispatchEvent(
|
|
1307
1320
|
new CustomEvent(n, {
|
|
1308
1321
|
bubbles: !0,
|
|
1309
1322
|
cancelable: !0
|
|
1310
1323
|
})
|
|
1311
1324
|
);
|
|
1312
|
-
},
|
|
1325
|
+
}, tr = (n = !1, o = !1, s = !1) => n || !o ? "column" : s ? "row" : "row-reverse", nr = gt(At), rr = gt(Pt), st = ({
|
|
1313
1326
|
isOpen: n = !1,
|
|
1314
1327
|
onClose: o,
|
|
1315
1328
|
title: s,
|
|
1316
|
-
navDrawerLinks:
|
|
1329
|
+
navDrawerLinks: a,
|
|
1317
1330
|
bottomNavButtons: c,
|
|
1318
1331
|
spotlightCards: u,
|
|
1319
1332
|
bottomButton: p,
|
|
@@ -1322,53 +1335,53 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1322
1335
|
hasOnlySpotlightCards: d = !1,
|
|
1323
1336
|
hasSearch: f = !1,
|
|
1324
1337
|
onSearch: x = () => ({}),
|
|
1325
|
-
topOffset:
|
|
1338
|
+
topOffset: y,
|
|
1326
1339
|
forceMobilePlacement: R = !1
|
|
1327
1340
|
}) => {
|
|
1328
|
-
var V,
|
|
1329
|
-
const
|
|
1341
|
+
var V, ie, le, ne, T, L;
|
|
1342
|
+
const b = je({
|
|
1330
1343
|
base: !1,
|
|
1331
1344
|
tablet: !1,
|
|
1332
1345
|
largeTablet: !1,
|
|
1333
1346
|
mediumDesktop: !0,
|
|
1334
1347
|
desktop: !0,
|
|
1335
1348
|
fullDesktop: !0
|
|
1336
|
-
}) ?? !1, _ = R ? "right" :
|
|
1349
|
+
}) ?? !1, _ = R ? "right" : b ? "top" : "right", m = _ === "right", [F, S] = Z(0), [W, $] = Z(!1), B = () => {
|
|
1337
1350
|
S((O) => O + 1);
|
|
1338
|
-
}, J =
|
|
1339
|
-
|
|
1351
|
+
}, J = Bt(
|
|
1352
|
+
qn((O) => {
|
|
1340
1353
|
x(O), B();
|
|
1341
1354
|
}, 100),
|
|
1342
1355
|
[]
|
|
1343
1356
|
);
|
|
1344
1357
|
oe(() => {
|
|
1345
|
-
n && ($(!0),
|
|
1358
|
+
n && ($(!0), It(ft));
|
|
1346
1359
|
}, [n]);
|
|
1347
1360
|
const te = () => {
|
|
1348
|
-
n || ($(!1), o()),
|
|
1361
|
+
n || ($(!1), o()), It(pt);
|
|
1349
1362
|
};
|
|
1350
1363
|
return /* @__PURE__ */ t.jsx(
|
|
1351
|
-
|
|
1364
|
+
$t,
|
|
1352
1365
|
{
|
|
1353
1366
|
isOpen: W || n,
|
|
1354
1367
|
closeOnOverlayClick: !0,
|
|
1355
1368
|
onClose: () => {
|
|
1356
|
-
W && !
|
|
1369
|
+
W && !m || o();
|
|
1357
1370
|
},
|
|
1358
1371
|
placement: _,
|
|
1359
1372
|
blockScrollOnMount: !1,
|
|
1360
1373
|
autoFocus: !1,
|
|
1361
|
-
...
|
|
1374
|
+
...m ? {
|
|
1362
1375
|
styleConfig: {
|
|
1363
1376
|
baseStyle: {
|
|
1364
1377
|
...K.components.Drawer.baseStyle,
|
|
1365
1378
|
dialogContainer: {
|
|
1366
|
-
...(
|
|
1379
|
+
...(ie = (V = K.components.Drawer) == null ? void 0 : V.baseStyle) == null ? void 0 : ie.dialogContainer,
|
|
1367
1380
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1368
1381
|
zIndex: "popover"
|
|
1369
1382
|
},
|
|
1370
1383
|
dialog: {
|
|
1371
|
-
...(ne = (
|
|
1384
|
+
...(ne = (le = K.components.Drawer) == null ? void 0 : le.baseStyle) == null ? void 0 : ne.dialog,
|
|
1372
1385
|
// Ensure mobile drawer doesn't expand to full width
|
|
1373
1386
|
maxW: "560px",
|
|
1374
1387
|
width: "auto"
|
|
@@ -1382,7 +1395,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1382
1395
|
dialogContainer: {
|
|
1383
1396
|
...(L = (T = K.components.Drawer) == null ? void 0 : T.baseStyle) == null ? void 0 : L.dialogContainer,
|
|
1384
1397
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1385
|
-
top: `${
|
|
1398
|
+
top: `${y}px`,
|
|
1386
1399
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
1387
1400
|
zIndex: "overlay"
|
|
1388
1401
|
}
|
|
@@ -1390,18 +1403,18 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1390
1403
|
}
|
|
1391
1404
|
},
|
|
1392
1405
|
children: /* @__PURE__ */ t.jsx(
|
|
1393
|
-
|
|
1406
|
+
Vn,
|
|
1394
1407
|
{ children: n ? /* @__PURE__ */ t.jsxs(
|
|
1395
1408
|
t.Fragment,
|
|
1396
1409
|
{ children: [
|
|
1397
1410
|
/* @__PURE__ */ t.jsx(
|
|
1398
|
-
|
|
1411
|
+
rr,
|
|
1399
1412
|
{
|
|
1400
1413
|
backgroundColor: "tints.black",
|
|
1401
|
-
top:
|
|
1402
|
-
opacity:
|
|
1403
|
-
zIndex:
|
|
1404
|
-
...
|
|
1414
|
+
top: m ? "0" : `${y}px`,
|
|
1415
|
+
opacity: m ? "0.4 !important" : void 0,
|
|
1416
|
+
zIndex: m ? "modal" : "overlay",
|
|
1417
|
+
...m ? {} : {
|
|
1405
1418
|
initial: { opacity: 0 },
|
|
1406
1419
|
animate: { opacity: 0.4 },
|
|
1407
1420
|
exit: { opacity: 0 },
|
|
@@ -1414,28 +1427,28 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1414
1427
|
}
|
|
1415
1428
|
),
|
|
1416
1429
|
/* @__PURE__ */ t.jsxs(
|
|
1417
|
-
|
|
1430
|
+
nr,
|
|
1418
1431
|
{
|
|
1419
1432
|
onClick: (O) => {
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1433
|
+
const ae = O.target.closest("a");
|
|
1434
|
+
ae && ae.href === window.location.href && o();
|
|
1422
1435
|
},
|
|
1423
1436
|
onMouseEnter: () => {
|
|
1424
|
-
|
|
1437
|
+
m || Dt(!0);
|
|
1425
1438
|
},
|
|
1426
1439
|
onMouseLeave: (O) => {
|
|
1427
|
-
|
|
1440
|
+
m || (!f || f && (O.target === O.currentTarget || !O.currentTarget.contains(O.target) && !W)) && Dt(!1);
|
|
1428
1441
|
},
|
|
1429
1442
|
paddingTop: "4",
|
|
1430
|
-
paddingX:
|
|
1443
|
+
paddingX: m ? "4" : "12",
|
|
1431
1444
|
paddingBottom: "24",
|
|
1432
|
-
overflow:
|
|
1445
|
+
overflow: m ? "auto" : "hidden",
|
|
1433
1446
|
maxHeight: "100vh",
|
|
1434
1447
|
position: "relative",
|
|
1435
|
-
top:
|
|
1448
|
+
top: m ? void 0 : `${y}px !important`,
|
|
1436
1449
|
onAnimationComplete: te,
|
|
1437
1450
|
boxShadow: "none",
|
|
1438
|
-
...
|
|
1451
|
+
...m ? {
|
|
1439
1452
|
// Mobile drawers should use slide animation, not height expansion
|
|
1440
1453
|
initial: !1,
|
|
1441
1454
|
animate: !1,
|
|
@@ -1447,14 +1460,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1447
1460
|
transition: { duration: 0.3 }
|
|
1448
1461
|
},
|
|
1449
1462
|
children: [
|
|
1450
|
-
!f && !
|
|
1451
|
-
|
|
1463
|
+
!f && !m ? null : /* @__PURE__ */ t.jsxs(
|
|
1464
|
+
Mt,
|
|
1452
1465
|
{
|
|
1453
1466
|
padding: "0",
|
|
1454
1467
|
flexDirection: f ? "column" : "row",
|
|
1455
1468
|
gap: f ? "4" : "0",
|
|
1456
1469
|
children: [
|
|
1457
|
-
|
|
1470
|
+
m ? /* @__PURE__ */ t.jsxs(
|
|
1458
1471
|
k,
|
|
1459
1472
|
{
|
|
1460
1473
|
width: "100%",
|
|
@@ -1462,9 +1475,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1462
1475
|
alignItems: "center",
|
|
1463
1476
|
children: [
|
|
1464
1477
|
v ? /* @__PURE__ */ t.jsx(
|
|
1465
|
-
|
|
1478
|
+
ye,
|
|
1466
1479
|
{
|
|
1467
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1480
|
+
icon: /* @__PURE__ */ t.jsx(Pn, {}),
|
|
1468
1481
|
onClick: () => {
|
|
1469
1482
|
g && g();
|
|
1470
1483
|
},
|
|
@@ -1480,9 +1493,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1480
1493
|
}
|
|
1481
1494
|
),
|
|
1482
1495
|
/* @__PURE__ */ t.jsx(
|
|
1483
|
-
|
|
1496
|
+
ye,
|
|
1484
1497
|
{
|
|
1485
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1498
|
+
icon: /* @__PURE__ */ t.jsx(Wt, {}),
|
|
1486
1499
|
onClick: o,
|
|
1487
1500
|
"aria-label": "Close"
|
|
1488
1501
|
}
|
|
@@ -1491,10 +1504,10 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1491
1504
|
}
|
|
1492
1505
|
) : null,
|
|
1493
1506
|
f && /* @__PURE__ */ t.jsxs(
|
|
1494
|
-
|
|
1507
|
+
Tn,
|
|
1495
1508
|
{ width: "100%", children: [
|
|
1496
1509
|
/* @__PURE__ */ t.jsx(
|
|
1497
|
-
|
|
1510
|
+
Dn,
|
|
1498
1511
|
{
|
|
1499
1512
|
onChange: (O) => {
|
|
1500
1513
|
J(O.target.value);
|
|
@@ -1506,8 +1519,8 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1506
1519
|
}
|
|
1507
1520
|
),
|
|
1508
1521
|
/* @__PURE__ */ t.jsx(
|
|
1509
|
-
|
|
1510
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1522
|
+
In,
|
|
1523
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Ln, { as: zt, color: "gray.500" }) }
|
|
1511
1524
|
)
|
|
1512
1525
|
] }
|
|
1513
1526
|
)
|
|
@@ -1515,15 +1528,15 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1515
1528
|
}
|
|
1516
1529
|
),
|
|
1517
1530
|
/* @__PURE__ */ t.jsx(
|
|
1518
|
-
|
|
1531
|
+
Ht,
|
|
1519
1532
|
{
|
|
1520
1533
|
paddingX: "0",
|
|
1521
|
-
paddingBottom:
|
|
1534
|
+
paddingBottom: m ? "6" : "4",
|
|
1522
1535
|
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1523
1536
|
children: /* @__PURE__ */ t.jsxs(
|
|
1524
1537
|
gt.div,
|
|
1525
1538
|
{
|
|
1526
|
-
...
|
|
1539
|
+
...m ? {} : {
|
|
1527
1540
|
initial: { opacity: 0, y: -5 },
|
|
1528
1541
|
animate: { opacity: 1, y: 0 },
|
|
1529
1542
|
exit: { opacity: 0, y: -5 },
|
|
@@ -1540,9 +1553,9 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1540
1553
|
},
|
|
1541
1554
|
style: {
|
|
1542
1555
|
display: "flex",
|
|
1543
|
-
flexDirection:
|
|
1556
|
+
flexDirection: tr(
|
|
1544
1557
|
d,
|
|
1545
|
-
!
|
|
1558
|
+
!m,
|
|
1546
1559
|
f
|
|
1547
1560
|
),
|
|
1548
1561
|
gap: "24px",
|
|
@@ -1550,14 +1563,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1550
1563
|
},
|
|
1551
1564
|
children: [
|
|
1552
1565
|
u ? /* @__PURE__ */ t.jsx(
|
|
1553
|
-
|
|
1566
|
+
j,
|
|
1554
1567
|
{
|
|
1555
|
-
gap:
|
|
1568
|
+
gap: m ? "3" : "6",
|
|
1556
1569
|
display: "flex",
|
|
1557
|
-
justifyContent:
|
|
1570
|
+
justifyContent: m ? void 0 : "center",
|
|
1558
1571
|
sx: {
|
|
1559
1572
|
flexWrap: "wrap",
|
|
1560
|
-
flexDirection:
|
|
1573
|
+
flexDirection: m ? "column" : "row"
|
|
1561
1574
|
},
|
|
1562
1575
|
children: u
|
|
1563
1576
|
}
|
|
@@ -1565,20 +1578,20 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1565
1578
|
/* @__PURE__ */ t.jsxs(
|
|
1566
1579
|
k,
|
|
1567
1580
|
{
|
|
1568
|
-
position:
|
|
1581
|
+
position: m ? void 0 : "relative",
|
|
1569
1582
|
flexDirection: "column",
|
|
1570
1583
|
gap: "6",
|
|
1571
|
-
width:
|
|
1584
|
+
width: m ? "100%" : f ? void 0 : "auto",
|
|
1572
1585
|
children: [
|
|
1573
|
-
|
|
1574
|
-
c &&
|
|
1586
|
+
a ? /* @__PURE__ */ t.jsx(j, { children: a }) : null,
|
|
1587
|
+
c && m ? /* @__PURE__ */ t.jsx(j, { children: c }) : null,
|
|
1575
1588
|
p ? /* @__PURE__ */ t.jsx(
|
|
1576
|
-
|
|
1589
|
+
j,
|
|
1577
1590
|
{
|
|
1578
1591
|
width: "100%",
|
|
1579
|
-
position:
|
|
1580
|
-
bottom:
|
|
1581
|
-
...
|
|
1592
|
+
position: m ? void 0 : "absolute",
|
|
1593
|
+
bottom: m ? void 0 : 0,
|
|
1594
|
+
...m ? { sx: { a: { width: "100%" } } } : {},
|
|
1582
1595
|
children: p
|
|
1583
1596
|
}
|
|
1584
1597
|
) : null
|
|
@@ -1599,23 +1612,23 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1599
1612
|
)
|
|
1600
1613
|
}
|
|
1601
1614
|
);
|
|
1602
|
-
},
|
|
1615
|
+
}, or = ({
|
|
1603
1616
|
source: n,
|
|
1604
1617
|
onSearchCallback: o,
|
|
1605
1618
|
isActive: s
|
|
1606
1619
|
}) => {
|
|
1607
|
-
const [
|
|
1620
|
+
const [a, c] = Z(""), [u, p] = Z([]), v = (f, x) => {
|
|
1608
1621
|
if (!f) return [];
|
|
1609
|
-
const R =
|
|
1610
|
-
return x.filter((
|
|
1611
|
-
const _ =
|
|
1612
|
-
if (R.some(($) =>
|
|
1613
|
-
const F = _.split(/\s+/), S = R.some(($) => F.some((B) => B.includes($) || Ze($, B))), W = typeof
|
|
1614
|
-
const B =
|
|
1615
|
-
return
|
|
1622
|
+
const R = at(f).split(/\s+/);
|
|
1623
|
+
return x.filter((b) => {
|
|
1624
|
+
const _ = at(b.label);
|
|
1625
|
+
if (R.some(($) => Tt(_, $))) return !0;
|
|
1626
|
+
const F = _.split(/\s+/), S = R.some(($) => F.some((B) => B.includes($) || Ze($, B))), W = typeof b.additionalContent == "string" && R.some(($) => {
|
|
1627
|
+
const B = at(b.additionalContent);
|
|
1628
|
+
return Tt(B, $) || B.split(/\s+/).some((J) => J.includes($) || Ze($, J));
|
|
1616
1629
|
});
|
|
1617
1630
|
return S || W;
|
|
1618
|
-
}).sort((
|
|
1631
|
+
}).sort((b, _) => b.label.localeCompare(_.label));
|
|
1619
1632
|
}, g = (f) => {
|
|
1620
1633
|
if (c(f), !f) {
|
|
1621
1634
|
p([]);
|
|
@@ -1629,26 +1642,26 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1629
1642
|
return oe(() => {
|
|
1630
1643
|
s || (c(""), p([]));
|
|
1631
1644
|
}, [s]), {
|
|
1632
|
-
query:
|
|
1645
|
+
query: a,
|
|
1633
1646
|
results: u,
|
|
1634
1647
|
handleClose: d,
|
|
1635
1648
|
handleSearch: g
|
|
1636
1649
|
};
|
|
1637
|
-
},
|
|
1650
|
+
}, ir = (n) => {
|
|
1638
1651
|
const o = /* @__PURE__ */ new Set();
|
|
1639
|
-
return n.reduce((s,
|
|
1652
|
+
return n.reduce((s, a) => {
|
|
1640
1653
|
var u;
|
|
1641
|
-
const c = ((u =
|
|
1654
|
+
const c = ((u = a.sections) == null ? void 0 : u.reduce((p, v) => {
|
|
1642
1655
|
const g = v.links.filter((d) => o.has(d.label) || d.isSearchable !== !0 ? !1 : (o.add(d.label), !0));
|
|
1643
1656
|
return [...p, ...g];
|
|
1644
1657
|
}, [])) ?? [];
|
|
1645
1658
|
return [...s, ...c];
|
|
1646
1659
|
}, []);
|
|
1647
|
-
},
|
|
1660
|
+
}, Cr = ({
|
|
1648
1661
|
categories: n = [],
|
|
1649
1662
|
onCartClick: o,
|
|
1650
1663
|
mainCategoryLabel: s = "Menu",
|
|
1651
|
-
logoLink:
|
|
1664
|
+
logoLink: a = "https://www.everlywell.com",
|
|
1652
1665
|
hasSearch: c = !0,
|
|
1653
1666
|
hasEvaEnabled: u = !1,
|
|
1654
1667
|
onEvaClick: p,
|
|
@@ -1657,11 +1670,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1657
1670
|
profileUrl: d = "https://secure.everlywell.com/login",
|
|
1658
1671
|
mobileBottomButtons: f = [],
|
|
1659
1672
|
numberOfCartItems: x = 0,
|
|
1660
|
-
linkComponent:
|
|
1673
|
+
linkComponent: y,
|
|
1661
1674
|
onSearchCallback: R,
|
|
1662
|
-
onLinkClick:
|
|
1675
|
+
onLinkClick: b,
|
|
1663
1676
|
onCategoryOpen: _,
|
|
1664
|
-
onMobileMenuOpen:
|
|
1677
|
+
onMobileMenuOpen: m,
|
|
1665
1678
|
onBackToMainMenu: F,
|
|
1666
1679
|
onRegisterKitClick: S,
|
|
1667
1680
|
onProfileClick: W,
|
|
@@ -1671,31 +1684,31 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1671
1684
|
hideableButtons: te
|
|
1672
1685
|
}) => {
|
|
1673
1686
|
var Ve, Ie, Le;
|
|
1674
|
-
const [V,
|
|
1687
|
+
const [V, ie] = Z(!1), [le, ne] = Z(!1), [T, L] = Z(null), [O, q] = Z(!1), [ae, $e] = Z(!1), [he, Me] = Z(0), [He, ke] = Z(!1), [Re, se] = Z(!1);
|
|
1675
1688
|
oe(() => {
|
|
1676
|
-
const
|
|
1677
|
-
return window.addEventListener(ft,
|
|
1689
|
+
const i = () => ke(!0), I = () => ke(!1);
|
|
1690
|
+
return window.addEventListener(ft, i), window.addEventListener(pt, I), () => {
|
|
1678
1691
|
window.removeEventListener(
|
|
1679
1692
|
ft,
|
|
1680
|
-
|
|
1693
|
+
i
|
|
1681
1694
|
), window.removeEventListener(pt, I);
|
|
1682
1695
|
};
|
|
1683
1696
|
}, []);
|
|
1684
|
-
const Fe =
|
|
1697
|
+
const Fe = je({
|
|
1685
1698
|
base: !1,
|
|
1686
1699
|
tablet: !1,
|
|
1687
1700
|
largeTablet: !1,
|
|
1688
1701
|
mediumDesktop: !0,
|
|
1689
1702
|
desktop: !0,
|
|
1690
1703
|
fullDesktop: !0
|
|
1691
|
-
}) ?? !1, ce =
|
|
1704
|
+
}) ?? !1, ce = je({
|
|
1692
1705
|
base: !1,
|
|
1693
1706
|
tablet: !1,
|
|
1694
1707
|
largeTablet: !1,
|
|
1695
1708
|
mediumDesktop: !1,
|
|
1696
1709
|
desktop: !1,
|
|
1697
1710
|
fullDesktop: !0
|
|
1698
|
-
}) ?? !1, _e = !ce, Se =
|
|
1711
|
+
}) ?? !1, _e = !ce, Se = je({
|
|
1699
1712
|
base: !0,
|
|
1700
1713
|
tablet: !0,
|
|
1701
1714
|
largeTablet: !0,
|
|
@@ -1707,14 +1720,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1707
1720
|
re(), L(null);
|
|
1708
1721
|
}, [Fe]);
|
|
1709
1722
|
const {
|
|
1710
|
-
query:
|
|
1723
|
+
query: ge,
|
|
1711
1724
|
results: ue,
|
|
1712
|
-
handleSearch:
|
|
1713
|
-
} =
|
|
1714
|
-
source:
|
|
1725
|
+
handleSearch: xe
|
|
1726
|
+
} = or({
|
|
1727
|
+
source: ir(n),
|
|
1715
1728
|
onSearchCallback: R,
|
|
1716
|
-
isActive:
|
|
1717
|
-
}), Be = ue.length > 0,
|
|
1729
|
+
isActive: le
|
|
1730
|
+
}), Be = ue.length > 0, ve = y || X, Xe = Ee(B, !!y), Ke = ge && /* @__PURE__ */ t.jsxs(
|
|
1718
1731
|
k,
|
|
1719
1732
|
{ gap: Be ? "6" : 0, direction: "column", children: [
|
|
1720
1733
|
Be ? /* @__PURE__ */ t.jsx(z, { color: "tints.uiGrey", children: `${ue.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
@@ -1727,7 +1740,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1727
1740
|
/* @__PURE__ */ t.jsx(
|
|
1728
1741
|
ht,
|
|
1729
1742
|
{
|
|
1730
|
-
as:
|
|
1743
|
+
as: ve,
|
|
1731
1744
|
onClick: J,
|
|
1732
1745
|
_hover: { textDecoration: "none" },
|
|
1733
1746
|
width: ["100%", null, null, "auto"],
|
|
@@ -1738,100 +1751,100 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1738
1751
|
] }
|
|
1739
1752
|
),
|
|
1740
1753
|
/* @__PURE__ */ t.jsx(
|
|
1741
|
-
|
|
1754
|
+
an,
|
|
1742
1755
|
{ columns: [1, 1, 1, 4], children: ue.map(
|
|
1743
|
-
(
|
|
1744
|
-
|
|
1756
|
+
(i, I) => /* @__PURE__ */ t.jsx(
|
|
1757
|
+
sn,
|
|
1745
1758
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1746
1759
|
Ge,
|
|
1747
1760
|
{
|
|
1748
|
-
href:
|
|
1749
|
-
label:
|
|
1750
|
-
additionalContent:
|
|
1751
|
-
linkComponent:
|
|
1761
|
+
href: i.href,
|
|
1762
|
+
label: i.label,
|
|
1763
|
+
additionalContent: i == null ? void 0 : i.additionalContent,
|
|
1764
|
+
linkComponent: y,
|
|
1752
1765
|
forceMobileStyle: !Fe
|
|
1753
1766
|
}
|
|
1754
1767
|
) },
|
|
1755
|
-
`${
|
|
1768
|
+
`${i.label}-${I}`
|
|
1756
1769
|
)
|
|
1757
1770
|
) }
|
|
1758
1771
|
)
|
|
1759
1772
|
] }
|
|
1760
1773
|
), re = () => {
|
|
1761
|
-
|
|
1762
|
-
}, G = (
|
|
1763
|
-
G(
|
|
1764
|
-
}, We = (
|
|
1765
|
-
q(!0), ne(!1), L(null), !G(
|
|
1774
|
+
ie(!1), L(null);
|
|
1775
|
+
}, G = (i) => "href" in i, ze = (i) => {
|
|
1776
|
+
G(i) ? b == null || b(i.label) : (se(V || !ce), L(i));
|
|
1777
|
+
}, We = (i) => {
|
|
1778
|
+
q(!0), ne(!1), L(null), !G(i) && (i.sections || i.spotlightCards) && (se(!1), L(i));
|
|
1766
1779
|
}, me = () => {
|
|
1767
1780
|
q(!1);
|
|
1768
1781
|
};
|
|
1769
1782
|
oe(() => {
|
|
1770
|
-
const
|
|
1783
|
+
const i = (I) => {
|
|
1771
1784
|
$e(I.detail.isHovering);
|
|
1772
1785
|
};
|
|
1773
1786
|
return window.addEventListener(
|
|
1774
1787
|
dt,
|
|
1775
|
-
|
|
1788
|
+
i
|
|
1776
1789
|
), () => {
|
|
1777
1790
|
window.removeEventListener(
|
|
1778
1791
|
dt,
|
|
1779
|
-
|
|
1792
|
+
i
|
|
1780
1793
|
);
|
|
1781
1794
|
};
|
|
1782
1795
|
}, []), oe(() => {
|
|
1783
|
-
!O && !
|
|
1784
|
-
}, [O,
|
|
1785
|
-
let
|
|
1796
|
+
!O && !ae && (L(null), ne(!1), !V && ce && se(!1));
|
|
1797
|
+
}, [O, ae, V, ce]), oe(() => {
|
|
1798
|
+
let i = window.location.href;
|
|
1786
1799
|
const I = () => {
|
|
1787
1800
|
const H = window.location.href;
|
|
1788
|
-
H !==
|
|
1801
|
+
H !== i && (i = H, re(), L(null));
|
|
1789
1802
|
}, A = setInterval(I, 100);
|
|
1790
1803
|
return window.addEventListener("popstate", I), () => {
|
|
1791
1804
|
window.removeEventListener("popstate", I), clearInterval(A);
|
|
1792
1805
|
};
|
|
1793
1806
|
}, []);
|
|
1794
|
-
const Te = (
|
|
1795
|
-
var H,
|
|
1796
|
-
const A = te.includes(
|
|
1807
|
+
const Te = (i) => G(i) && (!i.buttonProps || Object.keys(i.buttonProps).length === 0 || i.buttonProps === void 0), Je = n == null ? void 0 : n.map((i, I) => {
|
|
1808
|
+
var H, be;
|
|
1809
|
+
const A = te.includes(i.label);
|
|
1797
1810
|
return /* @__PURE__ */ t.jsx(
|
|
1798
1811
|
Ue,
|
|
1799
1812
|
{
|
|
1800
1813
|
height: "48px",
|
|
1801
1814
|
paddingInline: "16px !important",
|
|
1802
1815
|
onMouseEnter: () => {
|
|
1803
|
-
We(
|
|
1816
|
+
We(i), _ == null || _(i.label);
|
|
1804
1817
|
},
|
|
1805
1818
|
onMouseLeave: me,
|
|
1806
|
-
isSelected: (T == null ? void 0 : T.label) ===
|
|
1807
|
-
as: G(
|
|
1808
|
-
href: G(
|
|
1809
|
-
onClick: G(
|
|
1819
|
+
isSelected: (T == null ? void 0 : T.label) === i.label,
|
|
1820
|
+
as: G(i) && ve ? ve : X,
|
|
1821
|
+
href: G(i) ? i.href : void 0,
|
|
1822
|
+
onClick: G(i) ? () => b == null ? void 0 : b(i.label) : void 0,
|
|
1810
1823
|
...A && {
|
|
1811
1824
|
display: { base: "none", fullDesktop: "flex" }
|
|
1812
1825
|
},
|
|
1813
|
-
...((H =
|
|
1826
|
+
...((H = i == null ? void 0 : i.context) == null ? void 0 : H.desktop) === "link" || Te(i) ? {
|
|
1814
1827
|
_hover: {
|
|
1815
1828
|
backgroundColor: "tints.lightCream",
|
|
1816
1829
|
textDecoration: "none",
|
|
1817
1830
|
filter: "brightness(0.95)"
|
|
1818
1831
|
}
|
|
1819
1832
|
} : {},
|
|
1820
|
-
...((
|
|
1821
|
-
children:
|
|
1833
|
+
...((be = i == null ? void 0 : i.context) == null ? void 0 : be.desktop) !== "link" && i.buttonProps,
|
|
1834
|
+
children: i.label
|
|
1822
1835
|
},
|
|
1823
|
-
`${
|
|
1836
|
+
`${i.label}-${I}`
|
|
1824
1837
|
);
|
|
1825
1838
|
}), De = (Ve = n.filter(
|
|
1826
|
-
(
|
|
1839
|
+
(i) => {
|
|
1827
1840
|
var I;
|
|
1828
|
-
return ((I =
|
|
1841
|
+
return ((I = i == null ? void 0 : i.context) == null ? void 0 : I.mobile) === "link" || (!G(i) && i.isMobileTopLink !== !1 || Te(i)) && (_e && te.includes(i.label) || Se);
|
|
1829
1842
|
}
|
|
1830
|
-
)) == null ? void 0 : Ve.map((
|
|
1843
|
+
)) == null ? void 0 : Ve.map((i, I) => {
|
|
1831
1844
|
var H;
|
|
1832
|
-
const A =
|
|
1845
|
+
const A = i;
|
|
1833
1846
|
return Te(A) || ((H = A == null ? void 0 : A.context) == null ? void 0 : H.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1834
|
-
|
|
1847
|
+
j,
|
|
1835
1848
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1836
1849
|
Ge,
|
|
1837
1850
|
{
|
|
@@ -1839,13 +1852,13 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1839
1852
|
role: "link",
|
|
1840
1853
|
href: A.href,
|
|
1841
1854
|
mainTextFontSize: "3xl",
|
|
1842
|
-
linkComponent:
|
|
1855
|
+
linkComponent: y,
|
|
1843
1856
|
forceMobileStyle: !0
|
|
1844
1857
|
}
|
|
1845
1858
|
) },
|
|
1846
1859
|
`${A.label}-${I}`
|
|
1847
1860
|
) : /* @__PURE__ */ t.jsx(
|
|
1848
|
-
|
|
1861
|
+
j,
|
|
1849
1862
|
{
|
|
1850
1863
|
onClick: () => {
|
|
1851
1864
|
ze(A), _ == null || _(A.label);
|
|
@@ -1857,7 +1870,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1857
1870
|
role: "link",
|
|
1858
1871
|
additionalContent: A.additionalContent,
|
|
1859
1872
|
mainTextFontSize: "3xl",
|
|
1860
|
-
linkComponent:
|
|
1873
|
+
linkComponent: y,
|
|
1861
1874
|
forceMobileStyle: !0
|
|
1862
1875
|
}
|
|
1863
1876
|
)
|
|
@@ -1897,7 +1910,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1897
1910
|
k,
|
|
1898
1911
|
{ gap: "2", children: [
|
|
1899
1912
|
"Register kit",
|
|
1900
|
-
/* @__PURE__ */ t.jsx(ee, { as:
|
|
1913
|
+
/* @__PURE__ */ t.jsx(ee, { as: $n, size: 24 })
|
|
1901
1914
|
] }
|
|
1902
1915
|
)
|
|
1903
1916
|
},
|
|
@@ -1912,12 +1925,12 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1912
1925
|
] }
|
|
1913
1926
|
), Q = Re || V, Ne = T ? /* @__PURE__ */ t.jsx(
|
|
1914
1927
|
k,
|
|
1915
|
-
{ direction: Q ? "column" : ["column", null, null, "row"], gap: "8", children: (Ie = T == null ? void 0 : T.sections) == null ? void 0 : Ie.map((
|
|
1928
|
+
{ direction: Q ? "column" : ["column", null, null, "row"], gap: "8", children: (Ie = T == null ? void 0 : T.sections) == null ? void 0 : Ie.map((i, I) => {
|
|
1916
1929
|
const A = [];
|
|
1917
|
-
for (let H = 0; H <
|
|
1918
|
-
A.push(
|
|
1930
|
+
for (let H = 0; H < i.links.length; H += 3)
|
|
1931
|
+
A.push(i.links.slice(H, H + 3));
|
|
1919
1932
|
return /* @__PURE__ */ t.jsxs(
|
|
1920
|
-
|
|
1933
|
+
j,
|
|
1921
1934
|
{ children: [
|
|
1922
1935
|
/* @__PURE__ */ t.jsx(
|
|
1923
1936
|
z,
|
|
@@ -1925,7 +1938,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1925
1938
|
fontSize: "md",
|
|
1926
1939
|
color: "tints.uiGrey",
|
|
1927
1940
|
marginBottom: Q ? 0 : [0, null, null, 6],
|
|
1928
|
-
children:
|
|
1941
|
+
children: i.title
|
|
1929
1942
|
}
|
|
1930
1943
|
),
|
|
1931
1944
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1934,7 +1947,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1934
1947
|
flexDirection: Q ? "column" : ["column", null, null, "row"],
|
|
1935
1948
|
gap: Q ? void 0 : [null, null, null, 8],
|
|
1936
1949
|
children: A == null ? void 0 : A.map(
|
|
1937
|
-
(H,
|
|
1950
|
+
(H, be) => /* @__PURE__ */ t.jsx(
|
|
1938
1951
|
k,
|
|
1939
1952
|
{
|
|
1940
1953
|
flexDirection: "column",
|
|
@@ -1947,35 +1960,35 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1947
1960
|
label: fe.label,
|
|
1948
1961
|
href: fe.href,
|
|
1949
1962
|
additionalContent: fe.additionalContent,
|
|
1950
|
-
linkComponent:
|
|
1963
|
+
linkComponent: y,
|
|
1951
1964
|
forceMobileStyle: Q,
|
|
1952
|
-
onClick: () =>
|
|
1965
|
+
onClick: () => b == null ? void 0 : b(fe.label)
|
|
1953
1966
|
},
|
|
1954
1967
|
`${fe.label}-${et}`
|
|
1955
1968
|
)
|
|
1956
1969
|
)
|
|
1957
1970
|
},
|
|
1958
|
-
|
|
1971
|
+
be
|
|
1959
1972
|
)
|
|
1960
1973
|
)
|
|
1961
1974
|
}
|
|
1962
1975
|
)
|
|
1963
1976
|
] },
|
|
1964
|
-
`${
|
|
1977
|
+
`${i.title}-${I}`
|
|
1965
1978
|
);
|
|
1966
1979
|
}) }
|
|
1967
1980
|
) : null, de = T != null && T.spotlightCards ? (Le = T.spotlightCards) == null ? void 0 : Le.map(
|
|
1968
|
-
(
|
|
1969
|
-
|
|
1981
|
+
(i, I) => /* @__PURE__ */ t.jsx(
|
|
1982
|
+
Zn,
|
|
1970
1983
|
{
|
|
1971
|
-
...
|
|
1984
|
+
...i,
|
|
1972
1985
|
forceMobileStyle: Q
|
|
1973
1986
|
},
|
|
1974
|
-
`${
|
|
1987
|
+
`${i.title}-${I}`
|
|
1975
1988
|
)
|
|
1976
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1989
|
+
) : /* @__PURE__ */ t.jsx(j, {});
|
|
1977
1990
|
return /* @__PURE__ */ t.jsxs(
|
|
1978
|
-
|
|
1991
|
+
j,
|
|
1979
1992
|
{
|
|
1980
1993
|
as: "nav",
|
|
1981
1994
|
"aria-label": "Main navigation",
|
|
@@ -1985,7 +1998,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
1985
1998
|
zIndex: ["sticky", null, null, He ? "modal" : "sticky"],
|
|
1986
1999
|
children: [
|
|
1987
2000
|
/* @__PURE__ */ t.jsx(
|
|
1988
|
-
|
|
2001
|
+
Jn,
|
|
1989
2002
|
{
|
|
1990
2003
|
desktopTopButtons: Je,
|
|
1991
2004
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
@@ -2002,10 +2015,10 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2002
2015
|
),
|
|
2003
2016
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
2004
2017
|
X,
|
|
2005
|
-
{ href: d, "aria-label": "login", onClick: W, children: /* @__PURE__ */ t.jsx(
|
|
2018
|
+
{ href: d, "aria-label": "login", onClick: W, children: /* @__PURE__ */ t.jsx(ye, { icon: /* @__PURE__ */ t.jsx(ee, { as: kt }), "aria-label": "Profile" }) }
|
|
2006
2019
|
),
|
|
2007
2020
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
2008
|
-
|
|
2021
|
+
Qn,
|
|
2009
2022
|
{
|
|
2010
2023
|
"aria-label": "Cart",
|
|
2011
2024
|
count: x,
|
|
@@ -2013,22 +2026,22 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2013
2026
|
}
|
|
2014
2027
|
),
|
|
2015
2028
|
onSearchClick: () => {
|
|
2016
|
-
ne(!
|
|
2029
|
+
ne(!le), v == null || v();
|
|
2017
2030
|
},
|
|
2018
2031
|
onMenuClick: () => {
|
|
2019
|
-
|
|
2032
|
+
ie(!0), m == null || m();
|
|
2020
2033
|
},
|
|
2021
2034
|
hasSearch: c,
|
|
2022
2035
|
hasEvaEnabled: u,
|
|
2023
2036
|
onEvaClick: p,
|
|
2024
|
-
logoLink:
|
|
2025
|
-
linkComponent:
|
|
2037
|
+
logoLink: a,
|
|
2038
|
+
linkComponent: y,
|
|
2026
2039
|
onLogoClick: $,
|
|
2027
2040
|
setTopOffset: Me
|
|
2028
2041
|
}
|
|
2029
2042
|
),
|
|
2030
2043
|
/* @__PURE__ */ t.jsxs(
|
|
2031
|
-
|
|
2044
|
+
j,
|
|
2032
2045
|
{ position: "relative", zIndex: "modal", children: [
|
|
2033
2046
|
/* @__PURE__ */ t.jsx(
|
|
2034
2047
|
st,
|
|
@@ -2039,7 +2052,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2039
2052
|
navDrawerLinks: De,
|
|
2040
2053
|
bottomNavButtons: qe,
|
|
2041
2054
|
hasBackButton: !1,
|
|
2042
|
-
topOffset:
|
|
2055
|
+
topOffset: he,
|
|
2043
2056
|
forceMobilePlacement: !0
|
|
2044
2057
|
}
|
|
2045
2058
|
),
|
|
@@ -2058,7 +2071,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2058
2071
|
spotlightCards: de,
|
|
2059
2072
|
hasOnlySpotlightCards: T == null ? void 0 : T.hasOnlySpotlightCards,
|
|
2060
2073
|
bottomButton: T == null ? void 0 : T.bottomButton,
|
|
2061
|
-
topOffset:
|
|
2074
|
+
topOffset: he,
|
|
2062
2075
|
forceMobilePlacement: Re || V || // Below 1400px, if main menu is open, always use mobile closing
|
|
2063
2076
|
V && !ce
|
|
2064
2077
|
}
|
|
@@ -2066,14 +2079,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2066
2079
|
/* @__PURE__ */ t.jsx(
|
|
2067
2080
|
st,
|
|
2068
2081
|
{
|
|
2069
|
-
isOpen:
|
|
2082
|
+
isOpen: le,
|
|
2070
2083
|
onClose: () => ne(!1),
|
|
2071
2084
|
title: "Search",
|
|
2072
2085
|
navDrawerLinks: Ke,
|
|
2073
|
-
onSearch:
|
|
2086
|
+
onSearch: xe,
|
|
2074
2087
|
hasSearch: !0,
|
|
2075
2088
|
hasBackButton: !1,
|
|
2076
|
-
topOffset:
|
|
2089
|
+
topOffset: he
|
|
2077
2090
|
}
|
|
2078
2091
|
)
|
|
2079
2092
|
] }
|
|
@@ -2081,8 +2094,8 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2081
2094
|
]
|
|
2082
2095
|
}
|
|
2083
2096
|
);
|
|
2084
|
-
},
|
|
2085
|
-
const
|
|
2097
|
+
}, Lt = ({ links: n, linkComponent: o, onLinkClick: s }) => {
|
|
2098
|
+
const a = o || X, c = (u) => {
|
|
2086
2099
|
s && s(u);
|
|
2087
2100
|
};
|
|
2088
2101
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -2091,7 +2104,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2091
2104
|
(u) => /* @__PURE__ */ t.jsx(
|
|
2092
2105
|
z,
|
|
2093
2106
|
{
|
|
2094
|
-
as:
|
|
2107
|
+
as: a,
|
|
2095
2108
|
color: "white",
|
|
2096
2109
|
size: "lg",
|
|
2097
2110
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
@@ -2104,14 +2117,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2104
2117
|
) }
|
|
2105
2118
|
);
|
|
2106
2119
|
}, lr = ({ title: n, links: o, isLast: s }) => {
|
|
2107
|
-
const
|
|
2120
|
+
const a = s ? "transparent" : `${K.colors.viridian.lighter}20`;
|
|
2108
2121
|
return o ? /* @__PURE__ */ t.jsx(
|
|
2109
|
-
|
|
2110
|
-
{ borderColor:
|
|
2122
|
+
un,
|
|
2123
|
+
{ borderColor: a, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
2111
2124
|
t.Fragment,
|
|
2112
2125
|
{ children: [
|
|
2113
2126
|
/* @__PURE__ */ t.jsxs(
|
|
2114
|
-
|
|
2127
|
+
dn,
|
|
2115
2128
|
{ paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
|
|
2116
2129
|
/* @__PURE__ */ t.jsx(
|
|
2117
2130
|
z,
|
|
@@ -2120,7 +2133,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2120
2133
|
/* @__PURE__ */ t.jsx(
|
|
2121
2134
|
ee,
|
|
2122
2135
|
{
|
|
2123
|
-
as:
|
|
2136
|
+
as: Mn,
|
|
2124
2137
|
size: "sm",
|
|
2125
2138
|
color: "viridian.lighter",
|
|
2126
2139
|
transform: c ? "rotate(-180deg)" : "rotate(0deg)",
|
|
@@ -2130,14 +2143,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2130
2143
|
] }
|
|
2131
2144
|
),
|
|
2132
2145
|
/* @__PURE__ */ t.jsx(
|
|
2133
|
-
|
|
2146
|
+
fn,
|
|
2134
2147
|
{ pb: 4, px: 0, children: o }
|
|
2135
2148
|
)
|
|
2136
2149
|
] }
|
|
2137
2150
|
) }
|
|
2138
2151
|
) : null;
|
|
2139
2152
|
}, ar = ({ title: n, links: o }) => o ? /* @__PURE__ */ t.jsxs(
|
|
2140
|
-
|
|
2153
|
+
j,
|
|
2141
2154
|
{ children: [
|
|
2142
2155
|
/* @__PURE__ */ t.jsx(
|
|
2143
2156
|
z,
|
|
@@ -2145,11 +2158,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2145
2158
|
),
|
|
2146
2159
|
o
|
|
2147
2160
|
] }
|
|
2148
|
-
) : null,
|
|
2161
|
+
) : null, sr = ({
|
|
2149
2162
|
sections: n,
|
|
2150
2163
|
linkComponent: o,
|
|
2151
2164
|
onLinkClick: s
|
|
2152
|
-
}) =>
|
|
2165
|
+
}) => je({
|
|
2153
2166
|
base: !1,
|
|
2154
2167
|
tablet: !1,
|
|
2155
2168
|
largeTablet: !0,
|
|
@@ -2167,7 +2180,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2167
2180
|
{
|
|
2168
2181
|
title: c,
|
|
2169
2182
|
links: /* @__PURE__ */ t.jsx(
|
|
2170
|
-
|
|
2183
|
+
Lt,
|
|
2171
2184
|
{
|
|
2172
2185
|
links: u,
|
|
2173
2186
|
linkComponent: o,
|
|
@@ -2181,7 +2194,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2181
2194
|
)
|
|
2182
2195
|
}
|
|
2183
2196
|
) : /* @__PURE__ */ t.jsx(
|
|
2184
|
-
|
|
2197
|
+
cn,
|
|
2185
2198
|
{
|
|
2186
2199
|
allowMultiple: !0,
|
|
2187
2200
|
defaultIndex: [0],
|
|
@@ -2194,7 +2207,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2194
2207
|
{
|
|
2195
2208
|
title: c,
|
|
2196
2209
|
links: /* @__PURE__ */ t.jsx(
|
|
2197
|
-
|
|
2210
|
+
Lt,
|
|
2198
2211
|
{
|
|
2199
2212
|
links: u,
|
|
2200
2213
|
linkComponent: o,
|
|
@@ -2207,17 +2220,17 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2207
2220
|
)
|
|
2208
2221
|
)
|
|
2209
2222
|
}
|
|
2210
|
-
),
|
|
2211
|
-
instagram:
|
|
2212
|
-
linkedin:
|
|
2213
|
-
facebook:
|
|
2214
|
-
tiktok:
|
|
2215
|
-
x:
|
|
2216
|
-
},
|
|
2223
|
+
), Ot = {
|
|
2224
|
+
instagram: Fn,
|
|
2225
|
+
linkedin: Bn,
|
|
2226
|
+
facebook: zn,
|
|
2227
|
+
tiktok: Wn,
|
|
2228
|
+
x: Nn
|
|
2229
|
+
}, cr = ({
|
|
2217
2230
|
socialLinks: n,
|
|
2218
2231
|
onEmailSubmit: o,
|
|
2219
2232
|
socialMediaLabel: s,
|
|
2220
|
-
newsletterLabel:
|
|
2233
|
+
newsletterLabel: a,
|
|
2221
2234
|
onLinkClick: c,
|
|
2222
2235
|
showNewsletter: u = !0
|
|
2223
2236
|
}) => {
|
|
@@ -2229,20 +2242,20 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2229
2242
|
c && c(x);
|
|
2230
2243
|
};
|
|
2231
2244
|
return /* @__PURE__ */ t.jsxs(
|
|
2232
|
-
|
|
2245
|
+
j,
|
|
2233
2246
|
{ width: ["100%", null, null, "440px"], children: [
|
|
2234
2247
|
u && /* @__PURE__ */ t.jsxs(
|
|
2235
|
-
|
|
2248
|
+
j,
|
|
2236
2249
|
{ mb: [8, 10], children: [
|
|
2237
2250
|
/* @__PURE__ */ t.jsx(
|
|
2238
2251
|
z,
|
|
2239
|
-
{ color: "viridian.lighter", mb: 6, size: "lg", children:
|
|
2252
|
+
{ color: "viridian.lighter", mb: 6, size: "lg", children: a }
|
|
2240
2253
|
),
|
|
2241
2254
|
/* @__PURE__ */ t.jsxs(
|
|
2242
|
-
|
|
2255
|
+
pn,
|
|
2243
2256
|
{ children: [
|
|
2244
2257
|
/* @__PURE__ */ t.jsx(
|
|
2245
|
-
|
|
2258
|
+
hn,
|
|
2246
2259
|
{
|
|
2247
2260
|
placeholder: "Enter your email",
|
|
2248
2261
|
bg: "transparent",
|
|
@@ -2259,11 +2272,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2259
2272
|
}
|
|
2260
2273
|
),
|
|
2261
2274
|
/* @__PURE__ */ t.jsx(
|
|
2262
|
-
|
|
2275
|
+
gn,
|
|
2263
2276
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2264
2277
|
ee,
|
|
2265
2278
|
{
|
|
2266
|
-
as:
|
|
2279
|
+
as: Hn,
|
|
2267
2280
|
color: "viridian.lighter",
|
|
2268
2281
|
width: "24px",
|
|
2269
2282
|
height: "24px",
|
|
@@ -2281,7 +2294,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2281
2294
|
] }
|
|
2282
2295
|
),
|
|
2283
2296
|
/* @__PURE__ */ t.jsxs(
|
|
2284
|
-
|
|
2297
|
+
j,
|
|
2285
2298
|
{ children: [
|
|
2286
2299
|
/* @__PURE__ */ t.jsx(
|
|
2287
2300
|
z,
|
|
@@ -2298,10 +2311,10 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2298
2311
|
rel: "noopener noreferrer",
|
|
2299
2312
|
"aria-label": x.name,
|
|
2300
2313
|
onClick: () => f(x.name),
|
|
2301
|
-
children:
|
|
2314
|
+
children: Ot[x.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2302
2315
|
ee,
|
|
2303
2316
|
{
|
|
2304
|
-
as:
|
|
2317
|
+
as: Ot[x.name.toLowerCase()],
|
|
2305
2318
|
color: "white",
|
|
2306
2319
|
width: ["48px", null, "24px", null],
|
|
2307
2320
|
height: ["48px", null, "24px", null]
|
|
@@ -2316,18 +2329,18 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2316
2329
|
)
|
|
2317
2330
|
] }
|
|
2318
2331
|
);
|
|
2319
|
-
},
|
|
2332
|
+
}, ur = ({
|
|
2320
2333
|
links: n,
|
|
2321
2334
|
linkComponent: o,
|
|
2322
2335
|
onLinkClick: s
|
|
2323
2336
|
}) => {
|
|
2324
|
-
const
|
|
2337
|
+
const a = o || X, c = (p) => {
|
|
2325
2338
|
s && s(p);
|
|
2326
2339
|
}, u = n == null ? void 0 : n.map(
|
|
2327
2340
|
(p) => /* @__PURE__ */ t.jsx(
|
|
2328
2341
|
z,
|
|
2329
2342
|
{
|
|
2330
|
-
as:
|
|
2343
|
+
as: a,
|
|
2331
2344
|
color: "viridian.lighter",
|
|
2332
2345
|
size: "sm",
|
|
2333
2346
|
_hover: { color: "white", textDecoration: "none" },
|
|
@@ -2366,11 +2379,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2366
2379
|
]
|
|
2367
2380
|
}
|
|
2368
2381
|
);
|
|
2369
|
-
},
|
|
2382
|
+
}, wr = Pe.forwardRef(({
|
|
2370
2383
|
navigationSections: n = [],
|
|
2371
2384
|
disclaimer: o,
|
|
2372
2385
|
newsletterLabel: s,
|
|
2373
|
-
socialMediaLabel:
|
|
2386
|
+
socialMediaLabel: a,
|
|
2374
2387
|
socialLinks: c,
|
|
2375
2388
|
complianceLinks: u,
|
|
2376
2389
|
linkComponent: p,
|
|
@@ -2379,17 +2392,17 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2379
2392
|
onLinkClick: d,
|
|
2380
2393
|
onSocialMediaClick: f,
|
|
2381
2394
|
showNewsletter: x = !0
|
|
2382
|
-
},
|
|
2383
|
-
|
|
2384
|
-
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref:
|
|
2385
|
-
|
|
2395
|
+
}, y) => /* @__PURE__ */ t.jsx(
|
|
2396
|
+
j,
|
|
2397
|
+
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: y, children: /* @__PURE__ */ t.jsxs(
|
|
2398
|
+
xn,
|
|
2386
2399
|
{ size: "fluid", children: [
|
|
2387
2400
|
/* @__PURE__ */ t.jsxs(
|
|
2388
2401
|
k,
|
|
2389
2402
|
{ direction: "column", gap: [8, 12], children: [
|
|
2390
2403
|
/* @__PURE__ */ t.jsx(
|
|
2391
|
-
|
|
2392
|
-
{ children: /* @__PURE__ */ t.jsx(
|
|
2404
|
+
j,
|
|
2405
|
+
{ children: /* @__PURE__ */ t.jsx(Nt, { width: ["150px", "202px"], color: "white" }) }
|
|
2393
2406
|
),
|
|
2394
2407
|
/* @__PURE__ */ t.jsxs(
|
|
2395
2408
|
k,
|
|
@@ -2400,7 +2413,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2400
2413
|
gap: [8, 8, 8, 0],
|
|
2401
2414
|
children: [
|
|
2402
2415
|
/* @__PURE__ */ t.jsx(
|
|
2403
|
-
|
|
2416
|
+
sr,
|
|
2404
2417
|
{
|
|
2405
2418
|
sections: n,
|
|
2406
2419
|
linkComponent: p,
|
|
@@ -2408,11 +2421,11 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2408
2421
|
}
|
|
2409
2422
|
),
|
|
2410
2423
|
/* @__PURE__ */ t.jsx(
|
|
2411
|
-
|
|
2424
|
+
cr,
|
|
2412
2425
|
{
|
|
2413
2426
|
socialLinks: c,
|
|
2414
2427
|
newsletterLabel: s,
|
|
2415
|
-
socialMediaLabel:
|
|
2428
|
+
socialMediaLabel: a,
|
|
2416
2429
|
onEmailSubmit: v,
|
|
2417
2430
|
onLinkClick: f,
|
|
2418
2431
|
showNewsletter: x
|
|
@@ -2449,7 +2462,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2449
2462
|
] }
|
|
2450
2463
|
),
|
|
2451
2464
|
/* @__PURE__ */ t.jsx(
|
|
2452
|
-
|
|
2465
|
+
j,
|
|
2453
2466
|
{
|
|
2454
2467
|
borderTop: "1px solid",
|
|
2455
2468
|
borderColor: `${K.colors.viridian.lighter}20`,
|
|
@@ -2458,7 +2471,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2458
2471
|
}
|
|
2459
2472
|
),
|
|
2460
2473
|
/* @__PURE__ */ t.jsx(
|
|
2461
|
-
|
|
2474
|
+
ur,
|
|
2462
2475
|
{
|
|
2463
2476
|
disclaimer: o,
|
|
2464
2477
|
links: u,
|
|
@@ -2468,27 +2481,27 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2468
2481
|
)
|
|
2469
2482
|
] }
|
|
2470
2483
|
) }
|
|
2471
|
-
)),
|
|
2472
|
-
Container:
|
|
2473
|
-
Overlay:
|
|
2474
|
-
Content:
|
|
2475
|
-
Header:
|
|
2476
|
-
Body:
|
|
2477
|
-
Footer:
|
|
2484
|
+
)), dr = (n) => n ? {
|
|
2485
|
+
Container: $t,
|
|
2486
|
+
Overlay: Pt,
|
|
2487
|
+
Content: At,
|
|
2488
|
+
Header: Mt,
|
|
2489
|
+
Body: Ht,
|
|
2490
|
+
Footer: vn,
|
|
2478
2491
|
CloseButton: mn
|
|
2479
2492
|
} : {
|
|
2480
|
-
Container:
|
|
2481
|
-
Overlay:
|
|
2482
|
-
Content:
|
|
2483
|
-
Header:
|
|
2484
|
-
Body:
|
|
2485
|
-
Footer:
|
|
2486
|
-
CloseButton:
|
|
2487
|
-
},
|
|
2493
|
+
Container: bn,
|
|
2494
|
+
Overlay: Cn,
|
|
2495
|
+
Content: wn,
|
|
2496
|
+
Header: jn,
|
|
2497
|
+
Body: yn,
|
|
2498
|
+
Footer: En,
|
|
2499
|
+
CloseButton: kn
|
|
2500
|
+
}, jr = ({
|
|
2488
2501
|
isOpen: n,
|
|
2489
2502
|
onClose: o,
|
|
2490
2503
|
children: s,
|
|
2491
|
-
header:
|
|
2504
|
+
header: a,
|
|
2492
2505
|
footer: c,
|
|
2493
2506
|
headerProps: u,
|
|
2494
2507
|
bodyProps: p,
|
|
@@ -2498,16 +2511,16 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2498
2511
|
}) => {
|
|
2499
2512
|
var W, $, B, J, te;
|
|
2500
2513
|
const [f] = ct(`(max-width: ${K.breakpoints.tablet})`), x = (te = (J = (B = ($ = (W = K) == null ? void 0 : W.components) == null ? void 0 : $.Modal) == null ? void 0 : B.baseStyle) == null ? void 0 : J.overlay) == null ? void 0 : te.background, {
|
|
2501
|
-
Container:
|
|
2514
|
+
Container: y,
|
|
2502
2515
|
Overlay: R,
|
|
2503
|
-
Content:
|
|
2516
|
+
Content: b,
|
|
2504
2517
|
Header: _,
|
|
2505
|
-
Body:
|
|
2518
|
+
Body: m,
|
|
2506
2519
|
Footer: F,
|
|
2507
2520
|
CloseButton: S
|
|
2508
|
-
} =
|
|
2521
|
+
} = dr(f);
|
|
2509
2522
|
return /* @__PURE__ */ t.jsxs(
|
|
2510
|
-
|
|
2523
|
+
y,
|
|
2511
2524
|
{
|
|
2512
2525
|
...d,
|
|
2513
2526
|
isOpen: n,
|
|
@@ -2517,13 +2530,13 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2517
2530
|
children: [
|
|
2518
2531
|
/* @__PURE__ */ t.jsx(R, { backdropFilter: "auto", backgroundColor: x }),
|
|
2519
2532
|
/* @__PURE__ */ t.jsxs(
|
|
2520
|
-
|
|
2533
|
+
b,
|
|
2521
2534
|
{
|
|
2522
2535
|
backgroundColor: "tints.white",
|
|
2523
2536
|
borderRadius: f ? "20px 20px 0 0" : "20px",
|
|
2524
2537
|
overflowY: "auto",
|
|
2525
2538
|
gap: 0,
|
|
2526
|
-
...
|
|
2539
|
+
...a && f && { paddingTop: 0 },
|
|
2527
2540
|
...g,
|
|
2528
2541
|
children: [
|
|
2529
2542
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2544,7 +2557,7 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2544
2557
|
...f ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
|
|
2545
2558
|
...u,
|
|
2546
2559
|
children: [
|
|
2547
|
-
|
|
2560
|
+
a,
|
|
2548
2561
|
/* @__PURE__ */ t.jsx(
|
|
2549
2562
|
S,
|
|
2550
2563
|
{
|
|
@@ -2557,14 +2570,14 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2557
2570
|
fontSize: "1rem"
|
|
2558
2571
|
}
|
|
2559
2572
|
},
|
|
2560
|
-
children: /* @__PURE__ */ t.jsx(ee, { as:
|
|
2573
|
+
children: /* @__PURE__ */ t.jsx(ee, { as: Wt, weight: "light" })
|
|
2561
2574
|
}
|
|
2562
2575
|
)
|
|
2563
2576
|
]
|
|
2564
2577
|
}
|
|
2565
2578
|
),
|
|
2566
2579
|
/* @__PURE__ */ t.jsx(
|
|
2567
|
-
|
|
2580
|
+
m,
|
|
2568
2581
|
{
|
|
2569
2582
|
color: "tints.darkGrey",
|
|
2570
2583
|
paddingInline: 4,
|
|
@@ -2581,17 +2594,17 @@ const at = 60, St = 6, Zn = (n) => {
|
|
|
2581
2594
|
);
|
|
2582
2595
|
};
|
|
2583
2596
|
export {
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2597
|
+
Qn as BasketButton,
|
|
2598
|
+
mr as CategoryLabel,
|
|
2599
|
+
jr as DrawerModal,
|
|
2600
|
+
wr as Footer,
|
|
2588
2601
|
Ue as NavButton,
|
|
2589
2602
|
br as NavSkeleton,
|
|
2590
2603
|
st as NavbarDrawer,
|
|
2591
2604
|
Ge as NavbarDrawerLink,
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2605
|
+
Cr as NavigationBar,
|
|
2606
|
+
Zn as SpotlightCard,
|
|
2607
|
+
vr as Stepper,
|
|
2608
|
+
ye as TopNavIconButton,
|
|
2609
|
+
Jn as TopNavigation
|
|
2597
2610
|
};
|