@everlywell/consumer-ui 1.47.7 → 1.47.8
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 +469 -444
- package/lib/components/Footer/Footer/Footer.d.ts.map +1 -1
- package/lib/components/Navbar/types.d.ts.map +1 -1
- package/lib/utils/sanitize.d.ts +20 -0
- package/lib/utils/sanitize.d.ts.map +1 -0
- package/lib/utils/testHelpers/setupTests.d.ts +0 -5
- package/lib/utils/testHelpers/setupTests.d.ts.map +1 -1
- package/package.json +4 -2
package/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useSteps as
|
|
2
|
-
import se, { useEffect as ee, forwardRef as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { useSteps as en, Box as R, Stepper as tn, Icon as Ee, Flex as T, Text as z, Link as le, Button as Rt, Image as nn, IconButton as rn, theme as Y, useMediaQuery as tt, VStack as on, Skeleton as Je, HStack as xt, SkeletonCircle as Be, DrawerContent as _t, DrawerOverlay as Dt, Drawer as Tt, DrawerHeader as It, DrawerBody as Lt, Grid as an, GridItem as ln, Accordion as sn, AccordionItem as cn, AccordionButton as un, AccordionPanel as dn, InputGroup as fn, Input as pn, InputRightElement as hn, Container as gn, DrawerFooter as xn, DrawerCloseButton as vn, Modal as bn, ModalOverlay as mn, ModalContent as wn, ModalHeader as yn, ModalBody as jn, ModalFooter as Cn, ModalCloseButton as En } from "@everlywell/ui-kit";
|
|
2
|
+
import se, { useEffect as ee, forwardRef as Ot, useRef as Sn, useCallback as At, useState as X } from "react";
|
|
3
|
+
import { Text as kn, useBreakpointValue as Ce, Box as Rn, InputGroup as _n, Input as Dn, InputRightElement as Tn, Icon as In } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as vt, Basket as Ln, CaretLeft as On, X as Pt, MagnifyingGlass as An, CaretDown as Pn, ArrowRight as Mn, InstagramLogo as $n, LinkedinLogo as Fn, FacebookLogo as Hn, TiktokLogo as Bn, XLogo as zn } from "@phosphor-icons/react";
|
|
5
|
+
import bt from "dompurify";
|
|
6
|
+
import { motion as lt, AnimatePresence as Wn } from "framer-motion";
|
|
7
|
+
var nt = { exports: {} }, Ie = {};
|
|
7
8
|
/**
|
|
8
9
|
* @license React
|
|
9
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +14,21 @@ var tt = { exports: {} }, Te = {};
|
|
|
13
14
|
* This source code is licensed under the MIT license found in the
|
|
14
15
|
* LICENSE file in the root directory of this source tree.
|
|
15
16
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var n = se,
|
|
17
|
+
var mt;
|
|
18
|
+
function Nn() {
|
|
19
|
+
if (mt) return Ie;
|
|
20
|
+
mt = 1;
|
|
21
|
+
var n = se, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = 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
22
|
function f(d, g, p) {
|
|
22
23
|
var h, C = {}, E = null, v = null;
|
|
23
24
|
p !== void 0 && (E = "" + p), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (v = g.ref);
|
|
24
25
|
for (h in g) i.call(g, h) && !u.hasOwnProperty(h) && (C[h] = g[h]);
|
|
25
26
|
if (d && d.defaultProps) for (h in g = d.defaultProps, g) C[h] === void 0 && (C[h] = g[h]);
|
|
26
|
-
return { $$typeof:
|
|
27
|
+
return { $$typeof: r, type: d, key: E, ref: v, props: C, _owner: c.current };
|
|
27
28
|
}
|
|
28
|
-
return
|
|
29
|
+
return Ie.Fragment = s, Ie.jsx = f, Ie.jsxs = f, Ie;
|
|
29
30
|
}
|
|
30
|
-
var
|
|
31
|
+
var Le = {};
|
|
31
32
|
/**
|
|
32
33
|
* @license React
|
|
33
34
|
* react-jsx-runtime.development.js
|
|
@@ -37,32 +38,32 @@ var Ie = {};
|
|
|
37
38
|
* This source code is licensed under the MIT license found in the
|
|
38
39
|
* LICENSE file in the root directory of this source tree.
|
|
39
40
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var n = se,
|
|
41
|
+
var wt;
|
|
42
|
+
function Vn() {
|
|
43
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var n = se, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), w = Symbol.iterator, O = "@@iterator";
|
|
44
45
|
function b(e) {
|
|
45
46
|
if (e === null || typeof e != "object")
|
|
46
47
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
48
|
+
var o = w && e[w] || e[O];
|
|
49
|
+
return typeof o == "function" ? o : null;
|
|
49
50
|
}
|
|
50
51
|
var $ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
52
|
function S(e) {
|
|
52
53
|
{
|
|
53
|
-
for (var
|
|
54
|
+
for (var o = arguments.length, l = new Array(o > 1 ? o - 1 : 0), x = 1; x < o; x++)
|
|
54
55
|
l[x - 1] = arguments[x];
|
|
55
56
|
y("error", e, l);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
function y(e,
|
|
59
|
+
function y(e, o, l) {
|
|
59
60
|
{
|
|
60
61
|
var x = $.ReactDebugCurrentFrame, k = x.getStackAddendum();
|
|
61
|
-
k !== "" && (
|
|
62
|
+
k !== "" && (o += "%s", l = l.concat([k]));
|
|
62
63
|
var D = l.map(function(j) {
|
|
63
64
|
return String(j);
|
|
64
65
|
});
|
|
65
|
-
D.unshift("Warning: " +
|
|
66
|
+
D.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, D);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
var A = !1, H = !1, U = !1, te = !1, he = !1, ne;
|
|
@@ -74,11 +75,11 @@ function Wn() {
|
|
|
74
75
|
// with.
|
|
75
76
|
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
76
77
|
}
|
|
77
|
-
function xe(e,
|
|
78
|
+
function xe(e, o, l) {
|
|
78
79
|
var x = e.displayName;
|
|
79
80
|
if (x)
|
|
80
81
|
return x;
|
|
81
|
-
var k =
|
|
82
|
+
var k = o.displayName || o.name || "";
|
|
82
83
|
return k !== "" ? l + "(" + k + ")" : l;
|
|
83
84
|
}
|
|
84
85
|
function oe(e) {
|
|
@@ -108,8 +109,8 @@ function Wn() {
|
|
|
108
109
|
if (typeof e == "object")
|
|
109
110
|
switch (e.$$typeof) {
|
|
110
111
|
case d:
|
|
111
|
-
var
|
|
112
|
-
return oe(
|
|
112
|
+
var o = e;
|
|
113
|
+
return oe(o) + ".Consumer";
|
|
113
114
|
case f:
|
|
114
115
|
var l = e;
|
|
115
116
|
return oe(l._context) + ".Provider";
|
|
@@ -129,18 +130,18 @@ function Wn() {
|
|
|
129
130
|
}
|
|
130
131
|
return null;
|
|
131
132
|
}
|
|
132
|
-
var I = Object.assign, J = 0, ae, ie,
|
|
133
|
-
function Se() {
|
|
134
|
-
}
|
|
135
|
-
Se.__reactDisabledLog = !0;
|
|
133
|
+
var I = Object.assign, J = 0, ae, ie, Oe, Ae, Pe, ve, Me;
|
|
136
134
|
function ke() {
|
|
135
|
+
}
|
|
136
|
+
ke.__reactDisabledLog = !0;
|
|
137
|
+
function Re() {
|
|
137
138
|
{
|
|
138
139
|
if (J === 0) {
|
|
139
|
-
ae = console.log, ie = console.info,
|
|
140
|
+
ae = console.log, ie = console.info, Oe = console.warn, Ae = console.error, Pe = console.group, ve = console.groupCollapsed, Me = console.groupEnd;
|
|
140
141
|
var e = {
|
|
141
142
|
configurable: !0,
|
|
142
143
|
enumerable: !0,
|
|
143
|
-
value:
|
|
144
|
+
value: ke,
|
|
144
145
|
writable: !0
|
|
145
146
|
};
|
|
146
147
|
Object.defineProperties(console, {
|
|
@@ -156,7 +157,7 @@ function Wn() {
|
|
|
156
157
|
J++;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function Ne() {
|
|
160
161
|
{
|
|
161
162
|
if (J--, J === 0) {
|
|
162
163
|
var e = {
|
|
@@ -172,27 +173,27 @@ function Wn() {
|
|
|
172
173
|
value: ie
|
|
173
174
|
}),
|
|
174
175
|
warn: I({}, e, {
|
|
175
|
-
value:
|
|
176
|
+
value: Oe
|
|
176
177
|
}),
|
|
177
178
|
error: I({}, e, {
|
|
178
|
-
value:
|
|
179
|
+
value: Ae
|
|
179
180
|
}),
|
|
180
181
|
group: I({}, e, {
|
|
181
|
-
value:
|
|
182
|
+
value: Pe
|
|
182
183
|
}),
|
|
183
184
|
groupCollapsed: I({}, e, {
|
|
184
185
|
value: ve
|
|
185
186
|
}),
|
|
186
187
|
groupEnd: I({}, e, {
|
|
187
|
-
value:
|
|
188
|
+
value: Me
|
|
188
189
|
})
|
|
189
190
|
});
|
|
190
191
|
}
|
|
191
192
|
J < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
var
|
|
195
|
-
function be(e,
|
|
195
|
+
var _e = $.ReactCurrentDispatcher, K;
|
|
196
|
+
function be(e, o, l) {
|
|
196
197
|
{
|
|
197
198
|
if (K === void 0)
|
|
198
199
|
try {
|
|
@@ -207,10 +208,10 @@ function Wn() {
|
|
|
207
208
|
}
|
|
208
209
|
var ce = !1, me;
|
|
209
210
|
{
|
|
210
|
-
var
|
|
211
|
-
me = new
|
|
211
|
+
var De = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
me = new De();
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function $e(e, o) {
|
|
214
215
|
if (!e || ce)
|
|
215
216
|
return "";
|
|
216
217
|
{
|
|
@@ -223,9 +224,9 @@ function Wn() {
|
|
|
223
224
|
var k = Error.prepareStackTrace;
|
|
224
225
|
Error.prepareStackTrace = void 0;
|
|
225
226
|
var D;
|
|
226
|
-
D =
|
|
227
|
+
D = _e.current, _e.current = null, Re();
|
|
227
228
|
try {
|
|
228
|
-
if (
|
|
229
|
+
if (o) {
|
|
229
230
|
var j = function() {
|
|
230
231
|
throw Error();
|
|
231
232
|
};
|
|
@@ -276,23 +277,23 @@ function Wn() {
|
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
279
|
} finally {
|
|
279
|
-
ce = !1,
|
|
280
|
+
ce = !1, _e.current = D, Ne(), Error.prepareStackTrace = k;
|
|
280
281
|
}
|
|
281
282
|
var ye = e ? e.displayName || e.name : "", pe = ye ? be(ye) : "";
|
|
282
283
|
return typeof e == "function" && me.set(e, pe), pe;
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
285
|
+
function Ve(e, o, l) {
|
|
286
|
+
return $e(e, !1);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
288
|
+
function Ge(e) {
|
|
289
|
+
var o = e.prototype;
|
|
290
|
+
return !!(o && o.isReactComponent);
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
+
function G(e, o, l) {
|
|
292
293
|
if (e == null)
|
|
293
294
|
return "";
|
|
294
295
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
296
|
+
return $e(e, Ge(e));
|
|
296
297
|
if (typeof e == "string")
|
|
297
298
|
return be(e);
|
|
298
299
|
switch (e) {
|
|
@@ -304,28 +305,28 @@ function Wn() {
|
|
|
304
305
|
if (typeof e == "object")
|
|
305
306
|
switch (e.$$typeof) {
|
|
306
307
|
case g:
|
|
307
|
-
return
|
|
308
|
+
return Ve(e.render);
|
|
308
309
|
case C:
|
|
309
|
-
return
|
|
310
|
+
return G(e.type, o, l);
|
|
310
311
|
case E: {
|
|
311
312
|
var x = e, k = x._payload, D = x._init;
|
|
312
313
|
try {
|
|
313
|
-
return
|
|
314
|
+
return G(D(k), o, l);
|
|
314
315
|
} catch {
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
return "";
|
|
319
320
|
}
|
|
320
|
-
var ue = Object.prototype.hasOwnProperty,
|
|
321
|
+
var ue = Object.prototype.hasOwnProperty, Fe = {}, Te = $.ReactDebugCurrentFrame;
|
|
321
322
|
function de(e) {
|
|
322
323
|
if (e) {
|
|
323
|
-
var
|
|
324
|
-
|
|
324
|
+
var o = e._owner, l = G(e.type, e._source, o ? o.type : null);
|
|
325
|
+
Te.setExtraStackFrame(l);
|
|
325
326
|
} else
|
|
326
|
-
|
|
327
|
+
Te.setExtraStackFrame(null);
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function He(e, o, l, x, k) {
|
|
329
330
|
{
|
|
330
331
|
var D = Function.call.bind(ue);
|
|
331
332
|
for (var j in e)
|
|
@@ -336,11 +337,11 @@ function Wn() {
|
|
|
336
337
|
var W = Error((x || "React class") + ": " + l + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
338
|
throw W.name = "Invariant Violation", W;
|
|
338
339
|
}
|
|
339
|
-
m = e[j](
|
|
340
|
+
m = e[j](o, j, x, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
341
|
} catch (P) {
|
|
341
342
|
m = P;
|
|
342
343
|
}
|
|
343
|
-
m && !(m instanceof Error) && (de(k), 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).", x || "React class", l, j, typeof m), de(null)), m instanceof Error && !(m.message in
|
|
344
|
+
m && !(m instanceof Error) && (de(k), 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).", x || "React class", l, j, typeof m), de(null)), m instanceof Error && !(m.message in Fe) && (Fe[m.message] = !0, de(k), S("Failed %s type: %s", l, m.message), de(null));
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
}
|
|
@@ -350,7 +351,7 @@ function Wn() {
|
|
|
350
351
|
}
|
|
351
352
|
function L(e) {
|
|
352
353
|
{
|
|
353
|
-
var
|
|
354
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, l = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
355
|
return l;
|
|
355
356
|
}
|
|
356
357
|
}
|
|
@@ -373,34 +374,34 @@ function Wn() {
|
|
|
373
374
|
ref: !0,
|
|
374
375
|
__self: !0,
|
|
375
376
|
__source: !0
|
|
376
|
-
}, N,
|
|
377
|
+
}, N, st, Ye;
|
|
377
378
|
Ye = {};
|
|
378
|
-
function
|
|
379
|
+
function $t(e) {
|
|
379
380
|
if (ue.call(e, "ref")) {
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
381
|
+
var o = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
|
+
if (o && o.isReactWarning)
|
|
382
383
|
return !1;
|
|
383
384
|
}
|
|
384
385
|
return e.ref !== void 0;
|
|
385
386
|
}
|
|
386
|
-
function
|
|
387
|
+
function Ft(e) {
|
|
387
388
|
if (ue.call(e, "key")) {
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
389
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
|
+
if (o && o.isReactWarning)
|
|
390
391
|
return !1;
|
|
391
392
|
}
|
|
392
393
|
return e.key !== void 0;
|
|
393
394
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e.ref == "string" && q.current &&
|
|
395
|
+
function Ht(e, o) {
|
|
396
|
+
if (typeof e.ref == "string" && q.current && o && q.current.stateNode !== o) {
|
|
396
397
|
var l = B(q.current.type);
|
|
397
398
|
Ye[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', B(q.current.type), e.ref), Ye[l] = !0);
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function Bt(e, o) {
|
|
401
402
|
{
|
|
402
403
|
var l = function() {
|
|
403
|
-
N || (N = !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)",
|
|
404
|
+
N || (N = !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)", o));
|
|
404
405
|
};
|
|
405
406
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
407
|
get: l,
|
|
@@ -408,10 +409,10 @@ function Wn() {
|
|
|
408
409
|
});
|
|
409
410
|
}
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function zt(e, o) {
|
|
412
413
|
{
|
|
413
414
|
var l = function() {
|
|
414
|
-
|
|
415
|
+
st || (st = !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)", o));
|
|
415
416
|
};
|
|
416
417
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
418
|
get: l,
|
|
@@ -419,13 +420,13 @@ function Wn() {
|
|
|
419
420
|
});
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
|
-
var
|
|
423
|
+
var Wt = function(e, o, l, x, k, D, j) {
|
|
423
424
|
var m = {
|
|
424
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
426
|
+
$$typeof: r,
|
|
426
427
|
// Built-in properties that belong on the element
|
|
427
428
|
type: e,
|
|
428
|
-
key:
|
|
429
|
+
key: o,
|
|
429
430
|
ref: l,
|
|
430
431
|
props: j,
|
|
431
432
|
// Record the component responsible for creating this element.
|
|
@@ -448,12 +449,12 @@ function Wn() {
|
|
|
448
449
|
value: k
|
|
449
450
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
450
451
|
};
|
|
451
|
-
function
|
|
452
|
+
function Nt(e, o, l, x, k) {
|
|
452
453
|
{
|
|
453
454
|
var D, j = {}, m = null, W = null;
|
|
454
|
-
l !== void 0 && (Q(l), m = "" + l),
|
|
455
|
-
for (D in
|
|
456
|
-
ue.call(
|
|
455
|
+
l !== void 0 && (Q(l), m = "" + l), Ft(o) && (Q(o.key), m = "" + o.key), $t(o) && (W = o.ref, Ht(o, k));
|
|
456
|
+
for (D in o)
|
|
457
|
+
ue.call(o, D) && !re.hasOwnProperty(D) && (j[D] = o[D]);
|
|
457
458
|
if (e && e.defaultProps) {
|
|
458
459
|
var P = e.defaultProps;
|
|
459
460
|
for (D in P)
|
|
@@ -461,28 +462,28 @@ function Wn() {
|
|
|
461
462
|
}
|
|
462
463
|
if (m || W) {
|
|
463
464
|
var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
m &&
|
|
465
|
+
m && Bt(j, M), W && zt(j, M);
|
|
465
466
|
}
|
|
466
|
-
return
|
|
467
|
+
return Wt(e, m, W, k, x, q.current, j);
|
|
467
468
|
}
|
|
468
469
|
}
|
|
469
|
-
var
|
|
470
|
+
var Ue = $.ReactCurrentOwner, ct = $.ReactDebugCurrentFrame;
|
|
470
471
|
function we(e) {
|
|
471
472
|
if (e) {
|
|
472
|
-
var
|
|
473
|
-
|
|
473
|
+
var o = e._owner, l = G(e.type, e._source, o ? o.type : null);
|
|
474
|
+
ct.setExtraStackFrame(l);
|
|
474
475
|
} else
|
|
475
|
-
|
|
476
|
+
ct.setExtraStackFrame(null);
|
|
476
477
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
478
|
+
var Ke;
|
|
479
|
+
Ke = !1;
|
|
480
|
+
function Ze(e) {
|
|
481
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
481
482
|
}
|
|
482
|
-
function
|
|
483
|
+
function ut() {
|
|
483
484
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e = B(
|
|
485
|
+
if (Ue.current) {
|
|
486
|
+
var e = B(Ue.current.type);
|
|
486
487
|
if (e)
|
|
487
488
|
return `
|
|
488
489
|
|
|
@@ -491,83 +492,83 @@ Check the render method of \`` + e + "`.";
|
|
|
491
492
|
return "";
|
|
492
493
|
}
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function Vt(e) {
|
|
495
496
|
return "";
|
|
496
497
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
498
|
+
var dt = {};
|
|
499
|
+
function Gt(e) {
|
|
499
500
|
{
|
|
500
|
-
var
|
|
501
|
-
if (!
|
|
501
|
+
var o = ut();
|
|
502
|
+
if (!o) {
|
|
502
503
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
-
l && (
|
|
504
|
+
l && (o = `
|
|
504
505
|
|
|
505
506
|
Check the top-level render call using <` + l + ">.");
|
|
506
507
|
}
|
|
507
|
-
return
|
|
508
|
+
return o;
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
+
function ft(e, o) {
|
|
511
512
|
{
|
|
512
513
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
514
|
return;
|
|
514
515
|
e._store.validated = !0;
|
|
515
|
-
var l =
|
|
516
|
-
if (
|
|
516
|
+
var l = Gt(o);
|
|
517
|
+
if (dt[l])
|
|
517
518
|
return;
|
|
518
|
-
|
|
519
|
+
dt[l] = !0;
|
|
519
520
|
var x = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
521
|
+
e && e._owner && e._owner !== Ue.current && (x = " It was passed a child from " + B(e._owner.type) + "."), we(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, x), we(null);
|
|
521
522
|
}
|
|
522
523
|
}
|
|
523
|
-
function
|
|
524
|
+
function pt(e, o) {
|
|
524
525
|
{
|
|
525
526
|
if (typeof e != "object")
|
|
526
527
|
return;
|
|
527
528
|
if (_(e))
|
|
528
529
|
for (var l = 0; l < e.length; l++) {
|
|
529
530
|
var x = e[l];
|
|
530
|
-
|
|
531
|
+
Ze(x) && ft(x, o);
|
|
531
532
|
}
|
|
532
|
-
else if (
|
|
533
|
+
else if (Ze(e))
|
|
533
534
|
e._store && (e._store.validated = !0);
|
|
534
535
|
else if (e) {
|
|
535
536
|
var k = b(e);
|
|
536
537
|
if (typeof k == "function" && k !== e.entries)
|
|
537
538
|
for (var D = k.call(e), j; !(j = D.next()).done; )
|
|
538
|
-
|
|
539
|
+
Ze(j.value) && ft(j.value, o);
|
|
539
540
|
}
|
|
540
541
|
}
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
+
function Yt(e) {
|
|
543
544
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
545
|
+
var o = e.type;
|
|
546
|
+
if (o == null || typeof o == "string")
|
|
546
547
|
return;
|
|
547
548
|
var l;
|
|
548
|
-
if (typeof
|
|
549
|
-
l =
|
|
550
|
-
else if (typeof
|
|
549
|
+
if (typeof o == "function")
|
|
550
|
+
l = o.propTypes;
|
|
551
|
+
else if (typeof o == "object" && (o.$$typeof === g || // Note: Memo only checks outer props here.
|
|
551
552
|
// Inner props are checked in the reconciler.
|
|
552
|
-
|
|
553
|
-
l =
|
|
553
|
+
o.$$typeof === C))
|
|
554
|
+
l = o.propTypes;
|
|
554
555
|
else
|
|
555
556
|
return;
|
|
556
557
|
if (l) {
|
|
557
|
-
var x = B(
|
|
558
|
-
|
|
559
|
-
} else if (
|
|
560
|
-
|
|
561
|
-
var k = B(
|
|
558
|
+
var x = B(o);
|
|
559
|
+
He(l, e.props, "prop", x, e);
|
|
560
|
+
} else if (o.PropTypes !== void 0 && !Ke) {
|
|
561
|
+
Ke = !0;
|
|
562
|
+
var k = B(o);
|
|
562
563
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
563
564
|
}
|
|
564
|
-
typeof
|
|
565
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
566
|
}
|
|
566
567
|
}
|
|
567
|
-
function
|
|
568
|
+
function Ut(e) {
|
|
568
569
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var x =
|
|
570
|
+
for (var o = Object.keys(e.props), l = 0; l < o.length; l++) {
|
|
571
|
+
var x = o[l];
|
|
571
572
|
if (x !== "children" && x !== "key") {
|
|
572
573
|
we(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), we(null);
|
|
573
574
|
break;
|
|
@@ -576,82 +577,82 @@ Check the top-level render call using <` + l + ">.");
|
|
|
576
577
|
e.ref !== null && (we(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
|
|
577
578
|
}
|
|
578
579
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
580
|
+
var ht = {};
|
|
581
|
+
function gt(e, o, l, x, k, D) {
|
|
581
582
|
{
|
|
582
583
|
var j = ge(e);
|
|
583
584
|
if (!j) {
|
|
584
585
|
var m = "";
|
|
585
586
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " 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 W =
|
|
587
|
-
W ? m += W : m +=
|
|
587
|
+
var W = Vt();
|
|
588
|
+
W ? m += W : m += ut();
|
|
588
589
|
var P;
|
|
589
|
-
e === null ? P = "null" : _(e) ? P = "array" : e !== void 0 && e.$$typeof ===
|
|
590
|
+
e === null ? P = "null" : _(e) ? P = "array" : e !== void 0 && e.$$typeof === r ? (P = "<" + (B(e.type) || "Unknown") + " />", m = " 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, m);
|
|
590
591
|
}
|
|
591
|
-
var M =
|
|
592
|
+
var M = Nt(e, o, l, k, D);
|
|
592
593
|
if (M == null)
|
|
593
594
|
return M;
|
|
594
595
|
if (j) {
|
|
595
|
-
var Z =
|
|
596
|
+
var Z = o.children;
|
|
596
597
|
if (Z !== void 0)
|
|
597
598
|
if (x)
|
|
598
599
|
if (_(Z)) {
|
|
599
600
|
for (var ye = 0; ye < Z.length; ye++)
|
|
600
|
-
|
|
601
|
+
pt(Z[ye], e);
|
|
601
602
|
Object.freeze && Object.freeze(Z);
|
|
602
603
|
} else
|
|
603
604
|
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
605
|
else
|
|
605
|
-
|
|
606
|
+
pt(Z, e);
|
|
606
607
|
}
|
|
607
|
-
if (ue.call(
|
|
608
|
-
var pe = B(e), V = Object.keys(
|
|
609
|
-
return
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
612
|
-
var
|
|
608
|
+
if (ue.call(o, "key")) {
|
|
609
|
+
var pe = B(e), V = Object.keys(o).filter(function(qt) {
|
|
610
|
+
return qt !== "key";
|
|
611
|
+
}), Xe = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
+
if (!ht[pe + Xe]) {
|
|
613
|
+
var Qt = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
613
614
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
614
615
|
let props = %s;
|
|
615
616
|
<%s {...props} />
|
|
616
617
|
React keys must be passed directly to JSX without using spread:
|
|
617
618
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
619
|
+
<%s key={someKey} {...props} />`, Xe, pe, Qt, pe), ht[pe + Xe] = !0;
|
|
619
620
|
}
|
|
620
621
|
}
|
|
621
|
-
return e === i ?
|
|
622
|
+
return e === i ? Ut(M) : Yt(M), M;
|
|
622
623
|
}
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
625
|
+
function Kt(e, o, l) {
|
|
626
|
+
return gt(e, o, l, !0);
|
|
626
627
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
628
|
+
function Zt(e, o, l) {
|
|
629
|
+
return gt(e, o, l, !1);
|
|
629
630
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
631
|
+
var Xt = Zt, Jt = Kt;
|
|
632
|
+
Le.Fragment = i, Le.jsx = Xt, Le.jsxs = Jt;
|
|
633
|
+
}()), Le;
|
|
633
634
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var t =
|
|
636
|
-
const
|
|
635
|
+
process.env.NODE_ENV === "production" ? nt.exports = Nn() : nt.exports = Vn();
|
|
636
|
+
var t = nt.exports;
|
|
637
|
+
const Qe = 60, yt = 6, Gn = (n) => {
|
|
637
638
|
const {
|
|
638
|
-
activeStepIndex:
|
|
639
|
+
activeStepIndex: r,
|
|
639
640
|
hideIndicators: s = !1,
|
|
640
641
|
steps: i,
|
|
641
642
|
stepperTheme: c = {
|
|
642
643
|
light: "eggplant.light",
|
|
643
644
|
base: "eggplant.base"
|
|
644
645
|
}
|
|
645
|
-
} = n, { activeStep: u, setActiveStep: f } =
|
|
646
|
-
index:
|
|
646
|
+
} = n, { activeStep: u, setActiveStep: f } = en({
|
|
647
|
+
index: r,
|
|
647
648
|
count: i.length
|
|
648
649
|
});
|
|
649
650
|
return ee(() => {
|
|
650
|
-
f(
|
|
651
|
-
}, [
|
|
651
|
+
f(r);
|
|
652
|
+
}, [r, f]), /* @__PURE__ */ t.jsx(
|
|
652
653
|
R,
|
|
653
654
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
|
-
|
|
655
|
+
tn,
|
|
655
656
|
{
|
|
656
657
|
role: "progressbar",
|
|
657
658
|
index: u,
|
|
@@ -660,9 +661,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
660
661
|
flexWrap: "nowrap",
|
|
661
662
|
children: i.map((d, g) => {
|
|
662
663
|
const p = u === g, h = g === 0, C = g === i.length - 1, E = u > g;
|
|
663
|
-
let v = `${
|
|
664
|
-
const w = `calc(100% - ((${
|
|
665
|
-
return p ? v = w : (h || C) && (v = `${
|
|
664
|
+
let v = `${Qe}px`;
|
|
665
|
+
const w = `calc(100% - ((${Qe * (i.length - 1)}px) - (${i.length - 1} * ${yt * 2}px)))`;
|
|
666
|
+
return p ? v = w : (h || C) && (v = `${Qe - yt}px`), /* @__PURE__ */ t.jsx(
|
|
666
667
|
R,
|
|
667
668
|
{
|
|
668
669
|
width: v,
|
|
@@ -697,21 +698,45 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
697
698
|
}
|
|
698
699
|
) }
|
|
699
700
|
);
|
|
700
|
-
},
|
|
701
|
+
}, yr = se.memo(Gn), jr = ({
|
|
701
702
|
children: n,
|
|
702
|
-
...
|
|
703
|
+
...r
|
|
703
704
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
|
-
|
|
705
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...
|
|
706
|
-
),
|
|
705
|
+
kn,
|
|
706
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...r, children: n }
|
|
707
|
+
), Yn = {
|
|
708
|
+
ALLOWED_TAGS: ["a", "b", "i", "em", "strong", "u", "br", "p", "span", "ul", "ol", "li", "sub", "sup", "small"],
|
|
709
|
+
ALLOWED_ATTR: ["href", "target", "rel", "class", "style"]
|
|
710
|
+
};
|
|
711
|
+
let je;
|
|
712
|
+
const Un = () => {
|
|
713
|
+
if (je)
|
|
714
|
+
return je;
|
|
715
|
+
if (typeof window < "u")
|
|
716
|
+
return je = bt(window), je;
|
|
717
|
+
const {
|
|
718
|
+
JSDOM: n
|
|
719
|
+
} = require("jsdom");
|
|
720
|
+
return je = bt(new n("").window), je;
|
|
721
|
+
}, Kn = (n) => Un().sanitize(n, Yn), Zn = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel"]), Xn = (n) => {
|
|
722
|
+
if (!n) return !1;
|
|
723
|
+
const r = n.replace(/[\u0000-\u0020\u007f\u0085\u00a0\u1680\u2000-\u200f\u2028\u2029\u202f\u205f\u2060\u3000\ufeff]/g, "");
|
|
724
|
+
if (!r) return !1;
|
|
725
|
+
const s = r.match(/^([a-z][a-z0-9+.-]*):/i);
|
|
726
|
+
return s ? !Zn.has(s[1].toLowerCase()) : !1;
|
|
727
|
+
}, Se = (n, r) => {
|
|
728
|
+
if (Xn(n))
|
|
729
|
+
return {
|
|
730
|
+
href: void 0
|
|
731
|
+
};
|
|
707
732
|
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
|
-
return
|
|
733
|
+
return r && !s ? {
|
|
709
734
|
to: n
|
|
710
735
|
} : {
|
|
711
736
|
href: n
|
|
712
737
|
};
|
|
713
|
-
},
|
|
714
|
-
(n,
|
|
738
|
+
}, ze = Ot(
|
|
739
|
+
(n, r) => {
|
|
715
740
|
const {
|
|
716
741
|
label: s,
|
|
717
742
|
additionalContent: i,
|
|
@@ -720,11 +745,11 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
720
745
|
href: f,
|
|
721
746
|
forceMobileStyle: d = !1,
|
|
722
747
|
...g
|
|
723
|
-
} = n, p = u || le, h =
|
|
748
|
+
} = n, p = u || le, h = Se(f, !!u), C = d ? c || "xl" : [c || "xl", null, null, "lg"], E = d ? "xl" : ["xl", null, null, "lg"], v = d ? void 0 : [null, null, null, 1], w = d ? void 0 : [null, null, null, "space-between"], O = d ? "3" : [3, null, null, 0], b = d ? "1px" : ["1px", null, null, "unset"], $ = d ? "tints.cream" : ["tints.cream", null, null, "unset"], S = d ? "100%" : ["100%", null, null, "fit-content"], y = d ? "none" : ["none", null, null, "block"], A = d ? "100%" : ["100%", null, null, "auto"], H = d ? "block" : ["block", null, null, "none"];
|
|
724
749
|
return /* @__PURE__ */ t.jsxs(
|
|
725
750
|
R,
|
|
726
751
|
{
|
|
727
|
-
ref:
|
|
752
|
+
ref: r,
|
|
728
753
|
as: p,
|
|
729
754
|
display: "flex",
|
|
730
755
|
alignItems: "center",
|
|
@@ -741,10 +766,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
741
766
|
...g,
|
|
742
767
|
children: [
|
|
743
768
|
/* @__PURE__ */ t.jsx(
|
|
744
|
-
|
|
769
|
+
Ee,
|
|
745
770
|
{
|
|
746
771
|
display: y,
|
|
747
|
-
as:
|
|
772
|
+
as: vt,
|
|
748
773
|
fontSize: "lg",
|
|
749
774
|
color: "viridian.light",
|
|
750
775
|
"aria-hidden": "true",
|
|
@@ -777,10 +802,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
777
802
|
}
|
|
778
803
|
) : i),
|
|
779
804
|
/* @__PURE__ */ t.jsx(
|
|
780
|
-
|
|
805
|
+
Ee,
|
|
781
806
|
{
|
|
782
807
|
display: H,
|
|
783
|
-
as:
|
|
808
|
+
as: vt,
|
|
784
809
|
fontSize: "2xl",
|
|
785
810
|
color: "tints.uiGrey",
|
|
786
811
|
"aria-hidden": "true",
|
|
@@ -793,13 +818,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
793
818
|
}
|
|
794
819
|
);
|
|
795
820
|
}
|
|
796
|
-
),
|
|
797
|
-
(n,
|
|
821
|
+
), Jn = Ot(
|
|
822
|
+
(n, r) => {
|
|
798
823
|
const { children: s, isSelected: i, ...c } = n, u = n.backgroundColor || (i ? "tints.lightCream" : "transparent");
|
|
799
824
|
return /* @__PURE__ */ t.jsx(
|
|
800
|
-
|
|
825
|
+
Rt,
|
|
801
826
|
{
|
|
802
|
-
ref:
|
|
827
|
+
ref: r,
|
|
803
828
|
borderRadius: "full",
|
|
804
829
|
backgroundColor: u,
|
|
805
830
|
fontSize: "lg !important",
|
|
@@ -835,9 +860,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
835
860
|
}
|
|
836
861
|
);
|
|
837
862
|
}
|
|
838
|
-
),
|
|
863
|
+
), Qn = ({
|
|
839
864
|
title: n,
|
|
840
|
-
description:
|
|
865
|
+
description: r,
|
|
841
866
|
imageSrc: s,
|
|
842
867
|
imageElement: i,
|
|
843
868
|
button: c,
|
|
@@ -847,7 +872,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
847
872
|
linkComponent: g,
|
|
848
873
|
forceMobileStyle: p = !1
|
|
849
874
|
}) => {
|
|
850
|
-
const v = g || le, w =
|
|
875
|
+
const v = g || le, w = Se(d, !!g), O = Ce({
|
|
851
876
|
base: !1,
|
|
852
877
|
tablet: !1,
|
|
853
878
|
largeTablet: !1,
|
|
@@ -892,7 +917,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
892
917
|
}
|
|
893
918
|
},
|
|
894
919
|
children: s ? /* @__PURE__ */ t.jsx(
|
|
895
|
-
|
|
920
|
+
nn,
|
|
896
921
|
{
|
|
897
922
|
src: s,
|
|
898
923
|
objectFit: "cover",
|
|
@@ -940,7 +965,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
940
965
|
),
|
|
941
966
|
/* @__PURE__ */ t.jsx(
|
|
942
967
|
z,
|
|
943
|
-
{ fontSize: "sm", color: "tints.darkGrey", children:
|
|
968
|
+
{ fontSize: "sm", color: "tints.darkGrey", children: r }
|
|
944
969
|
)
|
|
945
970
|
] }
|
|
946
971
|
),
|
|
@@ -951,8 +976,8 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
951
976
|
]
|
|
952
977
|
}
|
|
953
978
|
);
|
|
954
|
-
},
|
|
955
|
-
|
|
979
|
+
}, rt = (n) => /* @__PURE__ */ t.jsx(
|
|
980
|
+
rn,
|
|
956
981
|
{
|
|
957
982
|
size: "sm",
|
|
958
983
|
width: ["40px", null, null, "46px"],
|
|
@@ -972,14 +997,14 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
972
997
|
},
|
|
973
998
|
...n
|
|
974
999
|
}
|
|
975
|
-
),
|
|
976
|
-
color: n =
|
|
977
|
-
width:
|
|
1000
|
+
), Mt = ({
|
|
1001
|
+
color: n = Y.colors.viridian.base,
|
|
1002
|
+
width: r
|
|
978
1003
|
}) => /* @__PURE__ */ t.jsx(
|
|
979
|
-
|
|
1004
|
+
Rn,
|
|
980
1005
|
{
|
|
981
1006
|
as: "svg",
|
|
982
|
-
width:
|
|
1007
|
+
width: r,
|
|
983
1008
|
height: "auto",
|
|
984
1009
|
viewBox: "0 0 116 24",
|
|
985
1010
|
fill: "none",
|
|
@@ -1000,15 +1025,15 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1000
1025
|
) }
|
|
1001
1026
|
)
|
|
1002
1027
|
}
|
|
1003
|
-
),
|
|
1028
|
+
), qn = ({
|
|
1004
1029
|
desktopTopButtons: n,
|
|
1005
|
-
logoLink:
|
|
1030
|
+
logoLink: r = "https://www.everlywell.com",
|
|
1006
1031
|
setTopOffset: s,
|
|
1007
1032
|
linkComponent: i,
|
|
1008
1033
|
onLogoClick: c,
|
|
1009
1034
|
rightSideButtons: u
|
|
1010
1035
|
}) => {
|
|
1011
|
-
const f =
|
|
1036
|
+
const f = Sn(null), [d] = tt(`(max-width: ${Y.breakpoints.mediumTablet})`), [g] = tt(`(max-width: ${Y.breakpoints.mediumDesktop})`), p = At(() => {
|
|
1012
1037
|
if (f.current) {
|
|
1013
1038
|
const h = f.current.getBoundingClientRect();
|
|
1014
1039
|
s(h.bottom);
|
|
@@ -1039,8 +1064,8 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1039
1064
|
"aria-label": "Go to homepage",
|
|
1040
1065
|
onClick: c,
|
|
1041
1066
|
as: i || le,
|
|
1042
|
-
...
|
|
1043
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1067
|
+
...Se(r, !!i),
|
|
1068
|
+
children: /* @__PURE__ */ t.jsx(Mt, { width: "116px" })
|
|
1044
1069
|
}
|
|
1045
1070
|
),
|
|
1046
1071
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1057,13 +1082,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1057
1082
|
)
|
|
1058
1083
|
}
|
|
1059
1084
|
);
|
|
1060
|
-
},
|
|
1085
|
+
}, Cr = ({
|
|
1061
1086
|
count: n = 0,
|
|
1062
|
-
...
|
|
1087
|
+
...r
|
|
1063
1088
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1064
1089
|
R,
|
|
1065
1090
|
{ position: "relative", display: "inline-block", children: [
|
|
1066
|
-
/* @__PURE__ */ t.jsx(
|
|
1091
|
+
/* @__PURE__ */ t.jsx(rt, { icon: /* @__PURE__ */ t.jsx(Ln, {}), ...r }),
|
|
1067
1092
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1068
1093
|
R,
|
|
1069
1094
|
{
|
|
@@ -1086,11 +1111,11 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1086
1111
|
}
|
|
1087
1112
|
)
|
|
1088
1113
|
] }
|
|
1089
|
-
),
|
|
1114
|
+
), Er = ({
|
|
1090
1115
|
numDesktopLinks: n = 5,
|
|
1091
|
-
showPromoButton:
|
|
1116
|
+
showPromoButton: r = !1
|
|
1092
1117
|
}) => /* @__PURE__ */ t.jsx(
|
|
1093
|
-
|
|
1118
|
+
on,
|
|
1094
1119
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1095
1120
|
R,
|
|
1096
1121
|
{
|
|
@@ -1101,9 +1126,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1101
1126
|
children: /* @__PURE__ */ t.jsxs(
|
|
1102
1127
|
T,
|
|
1103
1128
|
{ justify: "space-between", align: "center", children: [
|
|
1104
|
-
/* @__PURE__ */ t.jsx(
|
|
1129
|
+
/* @__PURE__ */ t.jsx(Je, { w: "120px", h: "48px" }),
|
|
1105
1130
|
/* @__PURE__ */ t.jsxs(
|
|
1106
|
-
|
|
1131
|
+
xt,
|
|
1107
1132
|
{
|
|
1108
1133
|
spacing: 8,
|
|
1109
1134
|
marginLeft: 12,
|
|
@@ -1111,17 +1136,17 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1111
1136
|
"data-testid": "desktop-nav",
|
|
1112
1137
|
children: [
|
|
1113
1138
|
Array.from({ length: n }).map(
|
|
1114
|
-
(s, i) => /* @__PURE__ */ t.jsx(
|
|
1139
|
+
(s, i) => /* @__PURE__ */ t.jsx(Je, { width: "90px", height: "48px" }, i)
|
|
1115
1140
|
),
|
|
1116
|
-
|
|
1141
|
+
r && /* @__PURE__ */ t.jsx(Je, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1117
1142
|
]
|
|
1118
1143
|
}
|
|
1119
1144
|
),
|
|
1120
1145
|
/* @__PURE__ */ t.jsxs(
|
|
1121
|
-
|
|
1146
|
+
xt,
|
|
1122
1147
|
{ spacing: 4, ml: "auto", children: [
|
|
1123
1148
|
/* @__PURE__ */ t.jsx(
|
|
1124
|
-
|
|
1149
|
+
Be,
|
|
1125
1150
|
{
|
|
1126
1151
|
width: "120px",
|
|
1127
1152
|
height: "48px",
|
|
@@ -1130,11 +1155,11 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1130
1155
|
}
|
|
1131
1156
|
),
|
|
1132
1157
|
" ",
|
|
1133
|
-
/* @__PURE__ */ t.jsx(
|
|
1158
|
+
/* @__PURE__ */ t.jsx(Be, { width: "48px", height: "48px" }),
|
|
1134
1159
|
" ",
|
|
1135
|
-
/* @__PURE__ */ t.jsx(
|
|
1160
|
+
/* @__PURE__ */ t.jsx(Be, { width: "48px", height: "48px" }),
|
|
1136
1161
|
" ",
|
|
1137
|
-
/* @__PURE__ */ t.jsx(
|
|
1162
|
+
/* @__PURE__ */ t.jsx(Be, { width: "48px", height: "48px" }),
|
|
1138
1163
|
" "
|
|
1139
1164
|
] }
|
|
1140
1165
|
)
|
|
@@ -1142,22 +1167,22 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1142
1167
|
)
|
|
1143
1168
|
}
|
|
1144
1169
|
) }
|
|
1145
|
-
),
|
|
1170
|
+
), er = (n, r) => {
|
|
1146
1171
|
let s;
|
|
1147
1172
|
return (...i) => {
|
|
1148
1173
|
s && clearTimeout(s), s = setTimeout(() => {
|
|
1149
1174
|
n(...i);
|
|
1150
|
-
},
|
|
1175
|
+
}, r);
|
|
1151
1176
|
};
|
|
1152
|
-
},
|
|
1153
|
-
n.length <
|
|
1154
|
-
let s = Array(
|
|
1155
|
-
for (let c = 0; c <=
|
|
1177
|
+
}, qe = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), tr = (n, r) => {
|
|
1178
|
+
n.length < r.length && ([n, r] = [r, n]);
|
|
1179
|
+
let s = Array(r.length + 1).fill(0), i = Array(r.length + 1).fill(0);
|
|
1180
|
+
for (let c = 0; c <= r.length; c++)
|
|
1156
1181
|
s[c] = c;
|
|
1157
1182
|
for (let c = 1; c <= n.length; c++) {
|
|
1158
1183
|
i[0] = c;
|
|
1159
|
-
for (let u = 1; u <=
|
|
1160
|
-
const f = n[c - 1] ===
|
|
1184
|
+
for (let u = 1; u <= r.length; u++) {
|
|
1185
|
+
const f = n[c - 1] === r[u - 1] ? 0 : 1;
|
|
1161
1186
|
i[u] = Math.min(
|
|
1162
1187
|
i[u - 1] + 1,
|
|
1163
1188
|
// Insertion
|
|
@@ -1169,43 +1194,43 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1169
1194
|
}
|
|
1170
1195
|
[s, i] = [i, s];
|
|
1171
1196
|
}
|
|
1172
|
-
return s[
|
|
1173
|
-
},
|
|
1174
|
-
if (n.length <= 3 ||
|
|
1175
|
-
return n.includes(
|
|
1176
|
-
const i =
|
|
1197
|
+
return s[r.length];
|
|
1198
|
+
}, We = (n, r, s = 0.6) => {
|
|
1199
|
+
if (n.length <= 3 || r.length <= 3)
|
|
1200
|
+
return n.includes(r) || r.includes(n);
|
|
1201
|
+
const i = tr(n, r), c = Math.max(n.length, r.length);
|
|
1177
1202
|
return 1 - i / c >= s;
|
|
1178
|
-
},
|
|
1203
|
+
}, jt = (n, r) => {
|
|
1179
1204
|
const s = n.split(/\s+/);
|
|
1180
|
-
return
|
|
1181
|
-
if (
|
|
1205
|
+
return r.length <= 4 ? s.some((i) => i.includes(r)) : s.some((i) => {
|
|
1206
|
+
if (We(i, r))
|
|
1182
1207
|
return !0;
|
|
1183
|
-
if (i.length >=
|
|
1184
|
-
for (let c = 0; c <= i.length -
|
|
1185
|
-
const u = i.slice(c, c +
|
|
1186
|
-
if (
|
|
1208
|
+
if (i.length >= r.length)
|
|
1209
|
+
for (let c = 0; c <= i.length - r.length; c++) {
|
|
1210
|
+
const u = i.slice(c, c + r.length + 1);
|
|
1211
|
+
if (We(r, u))
|
|
1187
1212
|
return !0;
|
|
1188
1213
|
}
|
|
1189
1214
|
return !1;
|
|
1190
1215
|
});
|
|
1191
|
-
},
|
|
1216
|
+
}, ot = "nav-drawer-hover", at = "nav-drawer-animation-start", it = "nav-drawer-animation-end", Ct = (n) => {
|
|
1192
1217
|
window.dispatchEvent(
|
|
1193
|
-
new CustomEvent(
|
|
1218
|
+
new CustomEvent(ot, {
|
|
1194
1219
|
detail: { isHovering: n },
|
|
1195
1220
|
bubbles: !0,
|
|
1196
1221
|
cancelable: !0
|
|
1197
1222
|
})
|
|
1198
1223
|
);
|
|
1199
|
-
},
|
|
1224
|
+
}, Et = (n) => {
|
|
1200
1225
|
window.dispatchEvent(
|
|
1201
1226
|
new CustomEvent(n, {
|
|
1202
1227
|
bubbles: !0,
|
|
1203
1228
|
cancelable: !0
|
|
1204
1229
|
})
|
|
1205
1230
|
);
|
|
1206
|
-
},
|
|
1231
|
+
}, nr = (n = !1, r = !1, s = !1) => n || !r ? "column" : "row", rr = lt(_t), or = lt(Dt), et = ({
|
|
1207
1232
|
isOpen: n = !1,
|
|
1208
|
-
onClose:
|
|
1233
|
+
onClose: r,
|
|
1209
1234
|
title: s,
|
|
1210
1235
|
navDrawerLinks: i,
|
|
1211
1236
|
bottomNavButtons: c,
|
|
@@ -1220,7 +1245,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1220
1245
|
forceMobilePlacement: v = !1
|
|
1221
1246
|
}) => {
|
|
1222
1247
|
var he, ne, ge, xe, oe, B;
|
|
1223
|
-
const w =
|
|
1248
|
+
const w = Ce({
|
|
1224
1249
|
base: !1,
|
|
1225
1250
|
tablet: !1,
|
|
1226
1251
|
largeTablet: !1,
|
|
@@ -1229,25 +1254,25 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1229
1254
|
fullDesktop: !0
|
|
1230
1255
|
}) ?? !1, O = v ? "right" : w ? "top" : "right", b = O === "right", [$, S] = X(0), [y, A] = X(!1), H = () => {
|
|
1231
1256
|
S((I) => I + 1);
|
|
1232
|
-
}, U =
|
|
1233
|
-
|
|
1257
|
+
}, U = At(
|
|
1258
|
+
er((I) => {
|
|
1234
1259
|
C(I), H();
|
|
1235
1260
|
}, 100),
|
|
1236
1261
|
[]
|
|
1237
1262
|
);
|
|
1238
1263
|
ee(() => {
|
|
1239
|
-
n && (A(!0),
|
|
1264
|
+
n && (A(!0), Et(at));
|
|
1240
1265
|
}, [n]);
|
|
1241
1266
|
const te = () => {
|
|
1242
|
-
n || (A(!1),
|
|
1267
|
+
n || (A(!1), r()), Et(it);
|
|
1243
1268
|
};
|
|
1244
1269
|
return /* @__PURE__ */ t.jsx(
|
|
1245
|
-
|
|
1270
|
+
Tt,
|
|
1246
1271
|
{
|
|
1247
1272
|
isOpen: y || n,
|
|
1248
1273
|
closeOnOverlayClick: !0,
|
|
1249
1274
|
onClose: () => {
|
|
1250
|
-
y && !b ||
|
|
1275
|
+
y && !b || r();
|
|
1251
1276
|
},
|
|
1252
1277
|
placement: O,
|
|
1253
1278
|
blockScrollOnMount: !1,
|
|
@@ -1255,14 +1280,14 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1255
1280
|
...b ? {
|
|
1256
1281
|
styleConfig: {
|
|
1257
1282
|
baseStyle: {
|
|
1258
|
-
...
|
|
1283
|
+
...Y.components.Drawer.baseStyle,
|
|
1259
1284
|
dialogContainer: {
|
|
1260
|
-
...(ne = (he =
|
|
1285
|
+
...(ne = (he = Y.components.Drawer) == null ? void 0 : he.baseStyle) == null ? void 0 : ne.dialogContainer,
|
|
1261
1286
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1262
1287
|
zIndex: "popover"
|
|
1263
1288
|
},
|
|
1264
1289
|
dialog: {
|
|
1265
|
-
...(xe = (ge =
|
|
1290
|
+
...(xe = (ge = Y.components.Drawer) == null ? void 0 : ge.baseStyle) == null ? void 0 : xe.dialog,
|
|
1266
1291
|
// Ensure mobile drawer doesn't expand to full width
|
|
1267
1292
|
maxW: "560px",
|
|
1268
1293
|
width: "auto"
|
|
@@ -1272,9 +1297,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1272
1297
|
} : {
|
|
1273
1298
|
styleConfig: {
|
|
1274
1299
|
baseStyle: {
|
|
1275
|
-
...
|
|
1300
|
+
...Y.components.Drawer.baseStyle,
|
|
1276
1301
|
dialogContainer: {
|
|
1277
|
-
...(B = (oe =
|
|
1302
|
+
...(B = (oe = Y.components.Drawer) == null ? void 0 : oe.baseStyle) == null ? void 0 : B.dialogContainer,
|
|
1278
1303
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1279
1304
|
top: `${E}px`,
|
|
1280
1305
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
@@ -1284,12 +1309,12 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1284
1309
|
}
|
|
1285
1310
|
},
|
|
1286
1311
|
children: /* @__PURE__ */ t.jsx(
|
|
1287
|
-
|
|
1312
|
+
Wn,
|
|
1288
1313
|
{ children: n ? /* @__PURE__ */ t.jsxs(
|
|
1289
1314
|
t.Fragment,
|
|
1290
1315
|
{ children: [
|
|
1291
1316
|
/* @__PURE__ */ t.jsx(
|
|
1292
|
-
|
|
1317
|
+
or,
|
|
1293
1318
|
{
|
|
1294
1319
|
backgroundColor: "tints.black",
|
|
1295
1320
|
top: b ? "0" : `${E}px`,
|
|
@@ -1308,17 +1333,17 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1308
1333
|
}
|
|
1309
1334
|
),
|
|
1310
1335
|
/* @__PURE__ */ t.jsxs(
|
|
1311
|
-
|
|
1336
|
+
rr,
|
|
1312
1337
|
{
|
|
1313
1338
|
onClick: (I) => {
|
|
1314
1339
|
const ae = I.target.closest("a");
|
|
1315
|
-
ae && ae.href === window.location.href &&
|
|
1340
|
+
ae && ae.href === window.location.href && r();
|
|
1316
1341
|
},
|
|
1317
1342
|
onMouseEnter: () => {
|
|
1318
|
-
b ||
|
|
1343
|
+
b || Ct(!0);
|
|
1319
1344
|
},
|
|
1320
1345
|
onMouseLeave: (I) => {
|
|
1321
|
-
b || (!h || h && (I.target === I.currentTarget || !I.currentTarget.contains(I.target) && !y)) &&
|
|
1346
|
+
b || (!h || h && (I.target === I.currentTarget || !I.currentTarget.contains(I.target) && !y)) && Ct(!1);
|
|
1322
1347
|
},
|
|
1323
1348
|
paddingTop: "4",
|
|
1324
1349
|
paddingX: b ? "4" : "12",
|
|
@@ -1342,7 +1367,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1342
1367
|
},
|
|
1343
1368
|
children: [
|
|
1344
1369
|
!h && !b ? null : /* @__PURE__ */ t.jsxs(
|
|
1345
|
-
|
|
1370
|
+
It,
|
|
1346
1371
|
{
|
|
1347
1372
|
padding: "0",
|
|
1348
1373
|
flexDirection: h ? "column" : "row",
|
|
@@ -1356,9 +1381,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1356
1381
|
alignItems: "center",
|
|
1357
1382
|
children: [
|
|
1358
1383
|
d ? /* @__PURE__ */ t.jsx(
|
|
1359
|
-
|
|
1384
|
+
rt,
|
|
1360
1385
|
{
|
|
1361
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1386
|
+
icon: /* @__PURE__ */ t.jsx(On, {}),
|
|
1362
1387
|
onClick: () => {
|
|
1363
1388
|
g && g();
|
|
1364
1389
|
},
|
|
@@ -1375,10 +1400,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1375
1400
|
}
|
|
1376
1401
|
),
|
|
1377
1402
|
/* @__PURE__ */ t.jsx(
|
|
1378
|
-
|
|
1403
|
+
rt,
|
|
1379
1404
|
{
|
|
1380
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
1381
|
-
onClick:
|
|
1405
|
+
icon: /* @__PURE__ */ t.jsx(Pt, {}),
|
|
1406
|
+
onClick: r,
|
|
1382
1407
|
"aria-label": "Close"
|
|
1383
1408
|
}
|
|
1384
1409
|
)
|
|
@@ -1386,10 +1411,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1386
1411
|
}
|
|
1387
1412
|
) : null,
|
|
1388
1413
|
h && /* @__PURE__ */ t.jsxs(
|
|
1389
|
-
|
|
1414
|
+
_n,
|
|
1390
1415
|
{ width: "100%", children: [
|
|
1391
1416
|
/* @__PURE__ */ t.jsx(
|
|
1392
|
-
|
|
1417
|
+
Dn,
|
|
1393
1418
|
{
|
|
1394
1419
|
onChange: (I) => {
|
|
1395
1420
|
U(I.target.value);
|
|
@@ -1401,8 +1426,8 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1401
1426
|
}
|
|
1402
1427
|
),
|
|
1403
1428
|
/* @__PURE__ */ t.jsx(
|
|
1404
|
-
|
|
1405
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(
|
|
1429
|
+
Tn,
|
|
1430
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(In, { as: An, color: "gray.500" }) }
|
|
1406
1431
|
)
|
|
1407
1432
|
] }
|
|
1408
1433
|
)
|
|
@@ -1410,13 +1435,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1410
1435
|
}
|
|
1411
1436
|
),
|
|
1412
1437
|
/* @__PURE__ */ t.jsx(
|
|
1413
|
-
|
|
1438
|
+
Lt,
|
|
1414
1439
|
{
|
|
1415
1440
|
paddingX: "0",
|
|
1416
1441
|
paddingBottom: b ? "6" : "4",
|
|
1417
1442
|
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1418
1443
|
children: /* @__PURE__ */ t.jsxs(
|
|
1419
|
-
|
|
1444
|
+
lt.div,
|
|
1420
1445
|
{
|
|
1421
1446
|
...b ? {} : {
|
|
1422
1447
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1435,7 +1460,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1435
1460
|
},
|
|
1436
1461
|
style: {
|
|
1437
1462
|
display: "flex",
|
|
1438
|
-
flexDirection:
|
|
1463
|
+
flexDirection: nr(
|
|
1439
1464
|
p,
|
|
1440
1465
|
!b,
|
|
1441
1466
|
h
|
|
@@ -1494,20 +1519,20 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1494
1519
|
)
|
|
1495
1520
|
}
|
|
1496
1521
|
);
|
|
1497
|
-
},
|
|
1522
|
+
}, ar = ({
|
|
1498
1523
|
source: n,
|
|
1499
|
-
onSearchCallback:
|
|
1524
|
+
onSearchCallback: r,
|
|
1500
1525
|
isActive: s
|
|
1501
1526
|
}) => {
|
|
1502
1527
|
const [i, c] = X(""), [u, f] = X([]), d = (h, C) => {
|
|
1503
1528
|
if (!h) return [];
|
|
1504
|
-
const v =
|
|
1529
|
+
const v = qe(h).split(/\s+/);
|
|
1505
1530
|
return C.filter((w) => {
|
|
1506
|
-
const O =
|
|
1507
|
-
if (v.some((A) =>
|
|
1508
|
-
const $ = O.split(/\s+/), S = v.some((A) => $.some((H) => H.includes(A) ||
|
|
1509
|
-
const H =
|
|
1510
|
-
return
|
|
1531
|
+
const O = qe(w.label);
|
|
1532
|
+
if (v.some((A) => jt(O, A))) return !0;
|
|
1533
|
+
const $ = O.split(/\s+/), S = v.some((A) => $.some((H) => H.includes(A) || We(A, H))), y = typeof w.additionalContent == "string" && v.some((A) => {
|
|
1534
|
+
const H = qe(w.additionalContent);
|
|
1535
|
+
return jt(H, A) || H.split(/\s+/).some((U) => U.includes(A) || We(A, U));
|
|
1511
1536
|
});
|
|
1512
1537
|
return S || y;
|
|
1513
1538
|
}).sort((w, O) => w.label.localeCompare(O.label));
|
|
@@ -1517,7 +1542,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1517
1542
|
return;
|
|
1518
1543
|
}
|
|
1519
1544
|
const C = d(h, n);
|
|
1520
|
-
f(C),
|
|
1545
|
+
f(C), r && r(h, C);
|
|
1521
1546
|
}, p = () => {
|
|
1522
1547
|
c(""), f([]);
|
|
1523
1548
|
};
|
|
@@ -1529,18 +1554,18 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1529
1554
|
handleClose: p,
|
|
1530
1555
|
handleSearch: g
|
|
1531
1556
|
};
|
|
1532
|
-
},
|
|
1533
|
-
const
|
|
1557
|
+
}, ir = (n) => {
|
|
1558
|
+
const r = /* @__PURE__ */ new Set();
|
|
1534
1559
|
return n.reduce((s, i) => {
|
|
1535
1560
|
var u;
|
|
1536
1561
|
const c = ((u = i.sections) == null ? void 0 : u.reduce((f, d) => {
|
|
1537
|
-
const g = d.links.filter((p) =>
|
|
1562
|
+
const g = d.links.filter((p) => r.has(p.label) || p.isSearchable !== !0 ? !1 : (r.add(p.label), !0));
|
|
1538
1563
|
return [...f, ...g];
|
|
1539
1564
|
}, [])) ?? [];
|
|
1540
1565
|
return [...s, ...c];
|
|
1541
1566
|
}, []);
|
|
1542
|
-
},
|
|
1543
|
-
const [n,
|
|
1567
|
+
}, lr = () => {
|
|
1568
|
+
const [n, r] = X(!1), [s, i] = X(!1), [c, u] = X(null);
|
|
1544
1569
|
return {
|
|
1545
1570
|
isMainMenuOpen: n,
|
|
1546
1571
|
isSearchOpen: s,
|
|
@@ -1548,16 +1573,16 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1548
1573
|
clearSelectedCategory: () => u(null),
|
|
1549
1574
|
handleSelectCategory: (v) => u(v),
|
|
1550
1575
|
closeMainMenu: () => {
|
|
1551
|
-
|
|
1576
|
+
r(!1), u(null);
|
|
1552
1577
|
},
|
|
1553
1578
|
closeSearch: () => i(!1),
|
|
1554
1579
|
toggleSearch: () => i((v) => !v),
|
|
1555
|
-
openMainMenu: () =>
|
|
1580
|
+
openMainMenu: () => r(!0),
|
|
1556
1581
|
openSearch: () => i(!0)
|
|
1557
1582
|
};
|
|
1558
|
-
},
|
|
1583
|
+
}, sr = "#28724F", Sr = ({
|
|
1559
1584
|
categories: n = [],
|
|
1560
|
-
mainCategoryLabel:
|
|
1585
|
+
mainCategoryLabel: r = "Menu",
|
|
1561
1586
|
logoLink: s = "https://www.everlywell.com",
|
|
1562
1587
|
mobileBottomButtons: i = [],
|
|
1563
1588
|
linkComponent: c,
|
|
@@ -1570,8 +1595,8 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1570
1595
|
hideableButtons: C,
|
|
1571
1596
|
children: E
|
|
1572
1597
|
}) => {
|
|
1573
|
-
var
|
|
1574
|
-
const v =
|
|
1598
|
+
var Te, de, He;
|
|
1599
|
+
const v = lr(), {
|
|
1575
1600
|
isMainMenuOpen: w,
|
|
1576
1601
|
isSearchOpen: O,
|
|
1577
1602
|
closeMainMenu: b,
|
|
@@ -1591,28 +1616,28 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1591
1616
|
};
|
|
1592
1617
|
}, []), ee(() => {
|
|
1593
1618
|
const a = () => oe(!0), _ = () => oe(!1);
|
|
1594
|
-
return window.addEventListener(
|
|
1619
|
+
return window.addEventListener(at, a), window.addEventListener(it, _), () => {
|
|
1595
1620
|
window.removeEventListener(
|
|
1596
|
-
|
|
1621
|
+
at,
|
|
1597
1622
|
a
|
|
1598
|
-
), window.removeEventListener(
|
|
1623
|
+
), window.removeEventListener(it, _);
|
|
1599
1624
|
};
|
|
1600
1625
|
}, []);
|
|
1601
|
-
const ae =
|
|
1626
|
+
const ae = Ce({
|
|
1602
1627
|
base: !1,
|
|
1603
1628
|
tablet: !1,
|
|
1604
1629
|
largeTablet: !1,
|
|
1605
1630
|
mediumDesktop: !0,
|
|
1606
1631
|
desktop: !0,
|
|
1607
1632
|
fullDesktop: !0
|
|
1608
|
-
}) ?? !1, ie =
|
|
1633
|
+
}) ?? !1, ie = Ce({
|
|
1609
1634
|
base: !1,
|
|
1610
1635
|
tablet: !1,
|
|
1611
1636
|
largeTablet: !1,
|
|
1612
1637
|
mediumDesktop: !1,
|
|
1613
1638
|
desktop: !1,
|
|
1614
1639
|
fullDesktop: !0
|
|
1615
|
-
}) ?? !1,
|
|
1640
|
+
}) ?? !1, Oe = !ie, Ae = Ce({
|
|
1616
1641
|
base: !0,
|
|
1617
1642
|
tablet: !0,
|
|
1618
1643
|
largeTablet: !0,
|
|
@@ -1624,17 +1649,17 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1624
1649
|
b(), S();
|
|
1625
1650
|
}, [ae]);
|
|
1626
1651
|
const {
|
|
1627
|
-
query:
|
|
1652
|
+
query: Pe,
|
|
1628
1653
|
results: ve,
|
|
1629
|
-
handleSearch:
|
|
1630
|
-
} =
|
|
1631
|
-
source:
|
|
1654
|
+
handleSearch: Me
|
|
1655
|
+
} = ar({
|
|
1656
|
+
source: ir(n),
|
|
1632
1657
|
onSearchCallback: u,
|
|
1633
1658
|
isActive: O
|
|
1634
|
-
}),
|
|
1659
|
+
}), ke = ve.length > 0, Re = c || le, Ne = Se(p, !!c), _e = Pe && /* @__PURE__ */ t.jsxs(
|
|
1635
1660
|
T,
|
|
1636
|
-
{ gap:
|
|
1637
|
-
|
|
1661
|
+
{ gap: ke ? "6" : 0, direction: "column", children: [
|
|
1662
|
+
ke ? /* @__PURE__ */ t.jsx(z, { color: "tints.uiGrey", children: `${ve.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1638
1663
|
T,
|
|
1639
1664
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1640
1665
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1642,25 +1667,25 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1642
1667
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1643
1668
|
),
|
|
1644
1669
|
/* @__PURE__ */ t.jsx(
|
|
1645
|
-
|
|
1670
|
+
Rt,
|
|
1646
1671
|
{
|
|
1647
|
-
as:
|
|
1672
|
+
as: Re,
|
|
1648
1673
|
onClick: h,
|
|
1649
1674
|
_hover: { textDecoration: "none" },
|
|
1650
1675
|
width: ["100%", null, null, "auto"],
|
|
1651
|
-
...
|
|
1676
|
+
...Ne,
|
|
1652
1677
|
children: "Shop all products"
|
|
1653
1678
|
}
|
|
1654
1679
|
)
|
|
1655
1680
|
] }
|
|
1656
1681
|
),
|
|
1657
1682
|
/* @__PURE__ */ t.jsx(
|
|
1658
|
-
|
|
1683
|
+
an,
|
|
1659
1684
|
{ columns: [1, 1, 1, 4], children: ve.map(
|
|
1660
1685
|
(a, _) => /* @__PURE__ */ t.jsx(
|
|
1661
|
-
|
|
1686
|
+
ln,
|
|
1662
1687
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1663
|
-
|
|
1688
|
+
ze,
|
|
1664
1689
|
{
|
|
1665
1690
|
href: a.href,
|
|
1666
1691
|
label: a.label,
|
|
@@ -1686,11 +1711,11 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1686
1711
|
he(_.detail.isHovering);
|
|
1687
1712
|
};
|
|
1688
1713
|
return window.addEventListener(
|
|
1689
|
-
|
|
1714
|
+
ot,
|
|
1690
1715
|
a
|
|
1691
1716
|
), () => {
|
|
1692
1717
|
window.removeEventListener(
|
|
1693
|
-
|
|
1718
|
+
ot,
|
|
1694
1719
|
a
|
|
1695
1720
|
);
|
|
1696
1721
|
};
|
|
@@ -1706,11 +1731,11 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1706
1731
|
window.removeEventListener("popstate", _), clearInterval(L);
|
|
1707
1732
|
};
|
|
1708
1733
|
}, []);
|
|
1709
|
-
const
|
|
1734
|
+
const De = (a) => K(a) && (!a.buttonProps || Object.keys(a.buttonProps).length === 0 || a.buttonProps === void 0), $e = n == null ? void 0 : n.map((a, _) => {
|
|
1710
1735
|
var Q, q;
|
|
1711
1736
|
const L = C.includes(a.label), F = !K(a), fe = (y == null ? void 0 : y.label) === a.label;
|
|
1712
1737
|
return /* @__PURE__ */ t.jsx(
|
|
1713
|
-
|
|
1738
|
+
Jn,
|
|
1714
1739
|
{
|
|
1715
1740
|
height: "48px",
|
|
1716
1741
|
paddingInline: "16px !important",
|
|
@@ -1719,7 +1744,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1719
1744
|
},
|
|
1720
1745
|
onMouseLeave: me,
|
|
1721
1746
|
isSelected: fe,
|
|
1722
|
-
as: K(a) &&
|
|
1747
|
+
as: K(a) && Re ? Re : le,
|
|
1723
1748
|
href: K(a) ? a.href : void 0,
|
|
1724
1749
|
onClick: K(a) ? () => f == null ? void 0 : f(a.label) : () => {
|
|
1725
1750
|
ce(a), d == null || d(a.label);
|
|
@@ -1736,7 +1761,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1736
1761
|
// focus-visible polyfill entirely — nothing can override them.
|
|
1737
1762
|
onFocus: (re) => {
|
|
1738
1763
|
const N = re.currentTarget;
|
|
1739
|
-
J.current && (N.style.outline = `3px solid ${
|
|
1764
|
+
J.current && (N.style.outline = `3px solid ${sr}`, N.style.outlineOffset = "2px", N.style.boxShadow = "0 0 0 5px rgba(255,255,255,0.9)", N.style.borderRadius = "9999px", N.style.zIndex = "1");
|
|
1740
1765
|
},
|
|
1741
1766
|
onBlur: (re) => {
|
|
1742
1767
|
const N = re.currentTarget;
|
|
@@ -1746,7 +1771,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1746
1771
|
...L && {
|
|
1747
1772
|
display: { base: "none", fullDesktop: "flex" }
|
|
1748
1773
|
},
|
|
1749
|
-
...((Q = a == null ? void 0 : a.context) == null ? void 0 : Q.desktop) === "link" ||
|
|
1774
|
+
...((Q = a == null ? void 0 : a.context) == null ? void 0 : Q.desktop) === "link" || De(a) ? {
|
|
1750
1775
|
_hover: {
|
|
1751
1776
|
backgroundColor: "tints.lightCream",
|
|
1752
1777
|
textDecoration: "none",
|
|
@@ -1758,18 +1783,18 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1758
1783
|
},
|
|
1759
1784
|
`${a.label}-${_}`
|
|
1760
1785
|
);
|
|
1761
|
-
}),
|
|
1786
|
+
}), Ve = (Te = n.filter(
|
|
1762
1787
|
(a) => {
|
|
1763
1788
|
var _;
|
|
1764
|
-
return ((_ = a == null ? void 0 : a.context) == null ? void 0 : _.mobile) === "link" || (!K(a) && a.isMobileTopLink !== !1 ||
|
|
1789
|
+
return ((_ = a == null ? void 0 : a.context) == null ? void 0 : _.mobile) === "link" || (!K(a) && a.isMobileTopLink !== !1 || De(a)) && (Oe && C.includes(a.label) || Ae);
|
|
1765
1790
|
}
|
|
1766
|
-
)) == null ? void 0 :
|
|
1791
|
+
)) == null ? void 0 : Te.map((a, _) => {
|
|
1767
1792
|
var F;
|
|
1768
1793
|
const L = a;
|
|
1769
|
-
return
|
|
1794
|
+
return De(L) || ((F = L == null ? void 0 : L.context) == null ? void 0 : F.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1770
1795
|
R,
|
|
1771
1796
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1772
|
-
|
|
1797
|
+
ze,
|
|
1773
1798
|
{
|
|
1774
1799
|
label: L.label,
|
|
1775
1800
|
role: "link",
|
|
@@ -1787,7 +1812,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1787
1812
|
be(L), d == null || d(L.label);
|
|
1788
1813
|
},
|
|
1789
1814
|
children: /* @__PURE__ */ t.jsx(
|
|
1790
|
-
|
|
1815
|
+
ze,
|
|
1791
1816
|
{
|
|
1792
1817
|
label: L.label,
|
|
1793
1818
|
role: "link",
|
|
@@ -1800,12 +1825,12 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1800
1825
|
},
|
|
1801
1826
|
`${L.label}-${_}`
|
|
1802
1827
|
);
|
|
1803
|
-
}),
|
|
1828
|
+
}), Ge = /* @__PURE__ */ t.jsx(
|
|
1804
1829
|
T,
|
|
1805
1830
|
{ gap: "2", flexDirection: "column", children: i }
|
|
1806
|
-
),
|
|
1831
|
+
), G = B || w, ue = y ? /* @__PURE__ */ t.jsx(
|
|
1807
1832
|
T,
|
|
1808
|
-
{ direction:
|
|
1833
|
+
{ direction: G ? "column" : ["column", null, null, "row"], gap: "8", children: (de = y == null ? void 0 : y.sections) == null ? void 0 : de.map((a, _) => {
|
|
1809
1834
|
const L = [];
|
|
1810
1835
|
for (let F = 0; F < a.links.length; F += 3)
|
|
1811
1836
|
L.push(a.links.slice(F, F + 3));
|
|
@@ -1818,31 +1843,31 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1818
1843
|
as: "h2",
|
|
1819
1844
|
fontSize: "md",
|
|
1820
1845
|
color: "tints.uiGrey",
|
|
1821
|
-
marginBottom:
|
|
1846
|
+
marginBottom: G ? 0 : [0, null, null, 6],
|
|
1822
1847
|
children: a.title
|
|
1823
1848
|
}
|
|
1824
1849
|
),
|
|
1825
1850
|
/* @__PURE__ */ t.jsx(
|
|
1826
1851
|
T,
|
|
1827
1852
|
{
|
|
1828
|
-
flexDirection:
|
|
1829
|
-
gap:
|
|
1853
|
+
flexDirection: G ? "column" : ["column", null, null, "row"],
|
|
1854
|
+
gap: G ? void 0 : [null, null, null, 8],
|
|
1830
1855
|
children: L == null ? void 0 : L.map(
|
|
1831
1856
|
(F, fe) => /* @__PURE__ */ t.jsx(
|
|
1832
1857
|
T,
|
|
1833
1858
|
{
|
|
1834
1859
|
flexDirection: "column",
|
|
1835
|
-
gap:
|
|
1836
|
-
marginLeft:
|
|
1860
|
+
gap: G ? void 0 : [null, null, null, 5],
|
|
1861
|
+
marginLeft: G ? void 0 : [null, null, null, -2],
|
|
1837
1862
|
children: F == null ? void 0 : F.map(
|
|
1838
1863
|
(Q, q) => /* @__PURE__ */ t.jsx(
|
|
1839
|
-
|
|
1864
|
+
ze,
|
|
1840
1865
|
{
|
|
1841
1866
|
label: Q.label,
|
|
1842
1867
|
href: Q.href,
|
|
1843
1868
|
additionalContent: Q.additionalContent,
|
|
1844
1869
|
linkComponent: c,
|
|
1845
|
-
forceMobileStyle:
|
|
1870
|
+
forceMobileStyle: G,
|
|
1846
1871
|
onClick: () => f == null ? void 0 : f(Q.label)
|
|
1847
1872
|
},
|
|
1848
1873
|
`${Q.label}-${q}`
|
|
@@ -1858,12 +1883,12 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1858
1883
|
`${a.title}-${_}`
|
|
1859
1884
|
);
|
|
1860
1885
|
}) }
|
|
1861
|
-
) : null,
|
|
1886
|
+
) : null, Fe = y != null && y.spotlightCards ? (He = y.spotlightCards) == null ? void 0 : He.map(
|
|
1862
1887
|
(a, _) => /* @__PURE__ */ t.jsx(
|
|
1863
|
-
|
|
1888
|
+
Qn,
|
|
1864
1889
|
{
|
|
1865
1890
|
...a,
|
|
1866
|
-
forceMobileStyle:
|
|
1891
|
+
forceMobileStyle: G
|
|
1867
1892
|
},
|
|
1868
1893
|
`${a.title}-${_}`
|
|
1869
1894
|
)
|
|
@@ -1879,9 +1904,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1879
1904
|
zIndex: ["sticky", null, null, xe ? "modal" : "sticky"],
|
|
1880
1905
|
children: [
|
|
1881
1906
|
/* @__PURE__ */ t.jsx(
|
|
1882
|
-
|
|
1907
|
+
qn,
|
|
1883
1908
|
{
|
|
1884
|
-
desktopTopButtons:
|
|
1909
|
+
desktopTopButtons: $e,
|
|
1885
1910
|
logoLink: s,
|
|
1886
1911
|
linkComponent: c,
|
|
1887
1912
|
onLogoClick: g,
|
|
@@ -1893,20 +1918,20 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1893
1918
|
R,
|
|
1894
1919
|
{ position: "relative", zIndex: "modal", children: [
|
|
1895
1920
|
/* @__PURE__ */ t.jsx(
|
|
1896
|
-
|
|
1921
|
+
et,
|
|
1897
1922
|
{
|
|
1898
1923
|
isOpen: w,
|
|
1899
1924
|
onClose: b,
|
|
1900
|
-
title:
|
|
1901
|
-
navDrawerLinks:
|
|
1902
|
-
bottomNavButtons:
|
|
1925
|
+
title: r,
|
|
1926
|
+
navDrawerLinks: Ve,
|
|
1927
|
+
bottomNavButtons: Ge,
|
|
1903
1928
|
hasBackButton: !1,
|
|
1904
1929
|
topOffset: ne,
|
|
1905
1930
|
forceMobilePlacement: !0
|
|
1906
1931
|
}
|
|
1907
1932
|
),
|
|
1908
1933
|
/* @__PURE__ */ t.jsx(
|
|
1909
|
-
|
|
1934
|
+
et,
|
|
1910
1935
|
{
|
|
1911
1936
|
isOpen: !!y,
|
|
1912
1937
|
onClose: () => {
|
|
@@ -1917,7 +1942,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1917
1942
|
onBackClick: () => {
|
|
1918
1943
|
S(), w || I(!1);
|
|
1919
1944
|
},
|
|
1920
|
-
spotlightCards:
|
|
1945
|
+
spotlightCards: Fe,
|
|
1921
1946
|
hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
|
|
1922
1947
|
bottomButton: y == null ? void 0 : y.bottomButton,
|
|
1923
1948
|
topOffset: ne,
|
|
@@ -1926,13 +1951,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1926
1951
|
}
|
|
1927
1952
|
),
|
|
1928
1953
|
/* @__PURE__ */ t.jsx(
|
|
1929
|
-
|
|
1954
|
+
et,
|
|
1930
1955
|
{
|
|
1931
1956
|
isOpen: O,
|
|
1932
1957
|
onClose: () => $(),
|
|
1933
1958
|
title: "Search",
|
|
1934
|
-
navDrawerLinks:
|
|
1935
|
-
onSearch:
|
|
1959
|
+
navDrawerLinks: _e,
|
|
1960
|
+
onSearch: Me,
|
|
1936
1961
|
hasSearch: !0,
|
|
1937
1962
|
hasBackButton: !1,
|
|
1938
1963
|
topOffset: ne
|
|
@@ -1943,13 +1968,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1943
1968
|
]
|
|
1944
1969
|
}
|
|
1945
1970
|
);
|
|
1946
|
-
},
|
|
1971
|
+
}, St = ({
|
|
1947
1972
|
links: n,
|
|
1948
|
-
linkComponent:
|
|
1973
|
+
linkComponent: r,
|
|
1949
1974
|
onLinkClick: s,
|
|
1950
1975
|
footerTheme: i
|
|
1951
1976
|
}) => {
|
|
1952
|
-
const c =
|
|
1977
|
+
const c = r || le, u = (f) => {
|
|
1953
1978
|
s && s(f);
|
|
1954
1979
|
};
|
|
1955
1980
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1963,31 +1988,31 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1963
1988
|
size: "lg",
|
|
1964
1989
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
1965
1990
|
onClick: () => u(f.label),
|
|
1966
|
-
...
|
|
1991
|
+
...Se(f.href, !!r),
|
|
1967
1992
|
children: f.label
|
|
1968
1993
|
},
|
|
1969
1994
|
f.label
|
|
1970
1995
|
)
|
|
1971
1996
|
) }
|
|
1972
1997
|
);
|
|
1973
|
-
},
|
|
1974
|
-
const i = s ? "transparent" : `${
|
|
1975
|
-
return
|
|
1976
|
-
|
|
1998
|
+
}, cr = ({ title: n, links: r, isLast: s }) => {
|
|
1999
|
+
const i = s ? "transparent" : `${Y.colors.viridian.lighter}20`;
|
|
2000
|
+
return r ? /* @__PURE__ */ t.jsx(
|
|
2001
|
+
cn,
|
|
1977
2002
|
{ borderColor: i, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
1978
2003
|
t.Fragment,
|
|
1979
2004
|
{ children: [
|
|
1980
2005
|
/* @__PURE__ */ t.jsxs(
|
|
1981
|
-
|
|
2006
|
+
un,
|
|
1982
2007
|
{ paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
|
|
1983
2008
|
/* @__PURE__ */ t.jsx(
|
|
1984
2009
|
z,
|
|
1985
2010
|
{ color: "viridian.lighter", size: "lg", flex: "1", textAlign: "left", children: n }
|
|
1986
2011
|
),
|
|
1987
2012
|
/* @__PURE__ */ t.jsx(
|
|
1988
|
-
|
|
2013
|
+
Ee,
|
|
1989
2014
|
{
|
|
1990
|
-
as:
|
|
2015
|
+
as: Pn,
|
|
1991
2016
|
size: "sm",
|
|
1992
2017
|
color: "viridian.lighter",
|
|
1993
2018
|
transform: c ? "rotate(-180deg)" : "rotate(0deg)",
|
|
@@ -1997,17 +2022,17 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1997
2022
|
] }
|
|
1998
2023
|
),
|
|
1999
2024
|
/* @__PURE__ */ t.jsx(
|
|
2000
|
-
|
|
2001
|
-
{ pb: 4, px: 0, children:
|
|
2025
|
+
dn,
|
|
2026
|
+
{ pb: 4, px: 0, children: r }
|
|
2002
2027
|
)
|
|
2003
2028
|
] }
|
|
2004
2029
|
) }
|
|
2005
2030
|
) : null;
|
|
2006
|
-
},
|
|
2031
|
+
}, ur = ({
|
|
2007
2032
|
title: n,
|
|
2008
|
-
links:
|
|
2033
|
+
links: r,
|
|
2009
2034
|
footerTheme: s
|
|
2010
|
-
}) =>
|
|
2035
|
+
}) => r ? /* @__PURE__ */ t.jsxs(
|
|
2011
2036
|
R,
|
|
2012
2037
|
{ children: [
|
|
2013
2038
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2019,14 +2044,14 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2019
2044
|
children: n
|
|
2020
2045
|
}
|
|
2021
2046
|
),
|
|
2022
|
-
|
|
2047
|
+
r
|
|
2023
2048
|
] }
|
|
2024
|
-
) : null,
|
|
2049
|
+
) : null, dr = ({
|
|
2025
2050
|
sections: n,
|
|
2026
|
-
linkComponent:
|
|
2051
|
+
linkComponent: r,
|
|
2027
2052
|
onLinkClick: s,
|
|
2028
2053
|
footerTheme: i
|
|
2029
|
-
}) =>
|
|
2054
|
+
}) => Ce({
|
|
2030
2055
|
base: !1,
|
|
2031
2056
|
tablet: !1,
|
|
2032
2057
|
largeTablet: !0,
|
|
@@ -2037,15 +2062,15 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2037
2062
|
T,
|
|
2038
2063
|
{ gap: 120, children: n.map(
|
|
2039
2064
|
({ title: u, links: f }) => /* @__PURE__ */ t.jsx(
|
|
2040
|
-
|
|
2065
|
+
ur,
|
|
2041
2066
|
{
|
|
2042
2067
|
footerTheme: i,
|
|
2043
2068
|
title: u,
|
|
2044
2069
|
links: /* @__PURE__ */ t.jsx(
|
|
2045
|
-
|
|
2070
|
+
St,
|
|
2046
2071
|
{
|
|
2047
2072
|
links: f,
|
|
2048
|
-
linkComponent:
|
|
2073
|
+
linkComponent: r,
|
|
2049
2074
|
onLinkClick: s,
|
|
2050
2075
|
footerTheme: i
|
|
2051
2076
|
}
|
|
@@ -2056,7 +2081,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2056
2081
|
) }
|
|
2057
2082
|
) }
|
|
2058
2083
|
) : /* @__PURE__ */ t.jsx(
|
|
2059
|
-
|
|
2084
|
+
sn,
|
|
2060
2085
|
{
|
|
2061
2086
|
allowMultiple: !0,
|
|
2062
2087
|
defaultIndex: [0],
|
|
@@ -2065,14 +2090,14 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2065
2090
|
flexDirection: "column",
|
|
2066
2091
|
children: n.map(
|
|
2067
2092
|
({ title: u, links: f }, d) => /* @__PURE__ */ t.jsx(
|
|
2068
|
-
|
|
2093
|
+
cr,
|
|
2069
2094
|
{
|
|
2070
2095
|
title: u,
|
|
2071
2096
|
links: /* @__PURE__ */ t.jsx(
|
|
2072
|
-
|
|
2097
|
+
St,
|
|
2073
2098
|
{
|
|
2074
2099
|
links: f,
|
|
2075
|
-
linkComponent:
|
|
2100
|
+
linkComponent: r,
|
|
2076
2101
|
onLinkClick: s,
|
|
2077
2102
|
footerTheme: i
|
|
2078
2103
|
}
|
|
@@ -2083,15 +2108,15 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2083
2108
|
)
|
|
2084
2109
|
)
|
|
2085
2110
|
}
|
|
2086
|
-
),
|
|
2087
|
-
instagram:
|
|
2088
|
-
linkedin:
|
|
2089
|
-
facebook:
|
|
2090
|
-
tiktok:
|
|
2091
|
-
x:
|
|
2092
|
-
},
|
|
2111
|
+
), kt = {
|
|
2112
|
+
instagram: $n,
|
|
2113
|
+
linkedin: Fn,
|
|
2114
|
+
facebook: Hn,
|
|
2115
|
+
tiktok: Bn,
|
|
2116
|
+
x: zn
|
|
2117
|
+
}, fr = ({
|
|
2093
2118
|
socialLinks: n,
|
|
2094
|
-
onEmailSubmit:
|
|
2119
|
+
onEmailSubmit: r,
|
|
2095
2120
|
socialMediaLabel: s,
|
|
2096
2121
|
newsletterLabel: i,
|
|
2097
2122
|
onLinkClick: c,
|
|
@@ -2099,7 +2124,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2099
2124
|
footerTheme: f
|
|
2100
2125
|
}) => {
|
|
2101
2126
|
const d = f === "dark", [g, p] = se.useState(""), h = () => {
|
|
2102
|
-
g &&
|
|
2127
|
+
g && r && (r(g), p(""));
|
|
2103
2128
|
}, C = (v) => {
|
|
2104
2129
|
v.key === "Enter" && h();
|
|
2105
2130
|
}, E = (v) => {
|
|
@@ -2121,10 +2146,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2121
2146
|
}
|
|
2122
2147
|
),
|
|
2123
2148
|
/* @__PURE__ */ t.jsxs(
|
|
2124
|
-
|
|
2149
|
+
fn,
|
|
2125
2150
|
{ children: [
|
|
2126
2151
|
/* @__PURE__ */ t.jsx(
|
|
2127
|
-
|
|
2152
|
+
pn,
|
|
2128
2153
|
{
|
|
2129
2154
|
"aria-label": "Email address",
|
|
2130
2155
|
type: "email",
|
|
@@ -2145,11 +2170,11 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2145
2170
|
}
|
|
2146
2171
|
),
|
|
2147
2172
|
/* @__PURE__ */ t.jsx(
|
|
2148
|
-
|
|
2173
|
+
hn,
|
|
2149
2174
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2150
|
-
|
|
2175
|
+
Ee,
|
|
2151
2176
|
{
|
|
2152
|
-
as:
|
|
2177
|
+
as: Mn,
|
|
2153
2178
|
color: d ? "viridian.lighter" : "viridian.base",
|
|
2154
2179
|
width: "24px",
|
|
2155
2180
|
height: "24px",
|
|
@@ -2189,10 +2214,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2189
2214
|
rel: "noopener noreferrer",
|
|
2190
2215
|
"aria-label": v.name,
|
|
2191
2216
|
onClick: () => E(v.name),
|
|
2192
|
-
children:
|
|
2193
|
-
|
|
2217
|
+
children: kt[v.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2218
|
+
Ee,
|
|
2194
2219
|
{
|
|
2195
|
-
as:
|
|
2220
|
+
as: kt[v.name.toLowerCase()],
|
|
2196
2221
|
color: d ? "white" : "viridian.base",
|
|
2197
2222
|
width: ["48px", null, "24px", null],
|
|
2198
2223
|
height: ["48px", null, "24px", null]
|
|
@@ -2207,13 +2232,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2207
2232
|
)
|
|
2208
2233
|
] }
|
|
2209
2234
|
);
|
|
2210
|
-
},
|
|
2235
|
+
}, pr = ({
|
|
2211
2236
|
links: n,
|
|
2212
|
-
linkComponent:
|
|
2237
|
+
linkComponent: r,
|
|
2213
2238
|
onLinkClick: s,
|
|
2214
2239
|
footerTheme: i
|
|
2215
2240
|
}) => {
|
|
2216
|
-
const c =
|
|
2241
|
+
const c = r || le, u = i === "dark", [f, d] = se.useState(() => (/* @__PURE__ */ new Date()).getFullYear());
|
|
2217
2242
|
se.useEffect(() => {
|
|
2218
2243
|
d((/* @__PURE__ */ new Date()).getFullYear());
|
|
2219
2244
|
}, []);
|
|
@@ -2228,7 +2253,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2228
2253
|
size: "sm",
|
|
2229
2254
|
_hover: { color: u ? "white" : "viridian.lighter", textDecoration: "none" },
|
|
2230
2255
|
onClick: () => g(h.label),
|
|
2231
|
-
...
|
|
2256
|
+
...Se(h.href, !!r),
|
|
2232
2257
|
children: h.label
|
|
2233
2258
|
},
|
|
2234
2259
|
h.label
|
|
@@ -2266,9 +2291,9 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2266
2291
|
]
|
|
2267
2292
|
}
|
|
2268
2293
|
);
|
|
2269
|
-
},
|
|
2294
|
+
}, kr = se.forwardRef(({
|
|
2270
2295
|
navigationSections: n = [],
|
|
2271
|
-
disclaimer:
|
|
2296
|
+
disclaimer: r,
|
|
2272
2297
|
newsletterLabel: s,
|
|
2273
2298
|
socialMediaLabel: i,
|
|
2274
2299
|
socialLinks: c,
|
|
@@ -2291,7 +2316,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2291
2316
|
px: [4, 6],
|
|
2292
2317
|
ref: v,
|
|
2293
2318
|
children: /* @__PURE__ */ t.jsxs(
|
|
2294
|
-
|
|
2319
|
+
gn,
|
|
2295
2320
|
{ size: "fluid", children: [
|
|
2296
2321
|
/* @__PURE__ */ t.jsxs(
|
|
2297
2322
|
T,
|
|
@@ -2299,10 +2324,10 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2299
2324
|
/* @__PURE__ */ t.jsx(
|
|
2300
2325
|
R,
|
|
2301
2326
|
{ children: /* @__PURE__ */ t.jsx(
|
|
2302
|
-
|
|
2327
|
+
Mt,
|
|
2303
2328
|
{
|
|
2304
2329
|
width: ["150px", "202px"],
|
|
2305
|
-
color: w ? "white" :
|
|
2330
|
+
color: w ? "white" : Y.colors.viridian.base
|
|
2306
2331
|
}
|
|
2307
2332
|
) }
|
|
2308
2333
|
),
|
|
@@ -2315,7 +2340,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2315
2340
|
gap: [8, 8, 8, 0],
|
|
2316
2341
|
children: [
|
|
2317
2342
|
/* @__PURE__ */ t.jsx(
|
|
2318
|
-
|
|
2343
|
+
dr,
|
|
2319
2344
|
{
|
|
2320
2345
|
sections: n,
|
|
2321
2346
|
linkComponent: f,
|
|
@@ -2324,7 +2349,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2324
2349
|
}
|
|
2325
2350
|
),
|
|
2326
2351
|
/* @__PURE__ */ t.jsx(
|
|
2327
|
-
|
|
2352
|
+
fr,
|
|
2328
2353
|
{
|
|
2329
2354
|
socialLinks: c,
|
|
2330
2355
|
newsletterLabel: s,
|
|
@@ -2347,13 +2372,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2347
2372
|
align: ["flex-start", "flex-start", "center"],
|
|
2348
2373
|
gap: [6, 6, 0],
|
|
2349
2374
|
children: [
|
|
2350
|
-
typeof
|
|
2375
|
+
typeof r == "string" ? /* @__PURE__ */ t.jsx(
|
|
2351
2376
|
z,
|
|
2352
2377
|
{
|
|
2353
2378
|
color: w ? "viridian.lighter" : "tints.uiGrey",
|
|
2354
2379
|
fontSize: "sm",
|
|
2355
2380
|
maxWidth: ["100%", "100%", "1024px"],
|
|
2356
|
-
dangerouslySetInnerHTML: { __html:
|
|
2381
|
+
dangerouslySetInnerHTML: { __html: Kn(r) },
|
|
2357
2382
|
sx: {
|
|
2358
2383
|
"a:hover": {
|
|
2359
2384
|
color: w ? "viridian.light" : "viridian.base",
|
|
@@ -2361,7 +2386,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2361
2386
|
}
|
|
2362
2387
|
}
|
|
2363
2388
|
}
|
|
2364
|
-
) :
|
|
2389
|
+
) : r,
|
|
2365
2390
|
g
|
|
2366
2391
|
]
|
|
2367
2392
|
}
|
|
@@ -2372,13 +2397,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2372
2397
|
R,
|
|
2373
2398
|
{
|
|
2374
2399
|
borderTop: "1px solid",
|
|
2375
|
-
borderColor: w ? `${
|
|
2400
|
+
borderColor: w ? `${Y.colors.viridian.lighter}20` : "tints.darkCream",
|
|
2376
2401
|
marginTop: "10",
|
|
2377
2402
|
marginBottom: "8"
|
|
2378
2403
|
}
|
|
2379
2404
|
),
|
|
2380
2405
|
/* @__PURE__ */ t.jsx(
|
|
2381
|
-
|
|
2406
|
+
pr,
|
|
2382
2407
|
{
|
|
2383
2408
|
links: u,
|
|
2384
2409
|
linkComponent: f,
|
|
@@ -2390,25 +2415,25 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2390
2415
|
)
|
|
2391
2416
|
}
|
|
2392
2417
|
);
|
|
2393
|
-
}),
|
|
2394
|
-
Container:
|
|
2395
|
-
Overlay:
|
|
2396
|
-
Content:
|
|
2397
|
-
Header:
|
|
2398
|
-
Body:
|
|
2399
|
-
Footer:
|
|
2400
|
-
CloseButton:
|
|
2418
|
+
}), hr = (n) => n ? {
|
|
2419
|
+
Container: Tt,
|
|
2420
|
+
Overlay: Dt,
|
|
2421
|
+
Content: _t,
|
|
2422
|
+
Header: It,
|
|
2423
|
+
Body: Lt,
|
|
2424
|
+
Footer: xn,
|
|
2425
|
+
CloseButton: vn
|
|
2401
2426
|
} : {
|
|
2402
|
-
Container:
|
|
2403
|
-
Overlay:
|
|
2404
|
-
Content:
|
|
2405
|
-
Header:
|
|
2406
|
-
Body:
|
|
2407
|
-
Footer:
|
|
2408
|
-
CloseButton:
|
|
2409
|
-
},
|
|
2427
|
+
Container: bn,
|
|
2428
|
+
Overlay: mn,
|
|
2429
|
+
Content: wn,
|
|
2430
|
+
Header: yn,
|
|
2431
|
+
Body: jn,
|
|
2432
|
+
Footer: Cn,
|
|
2433
|
+
CloseButton: En
|
|
2434
|
+
}, Rr = ({
|
|
2410
2435
|
isOpen: n,
|
|
2411
|
-
onClose:
|
|
2436
|
+
onClose: r,
|
|
2412
2437
|
children: s,
|
|
2413
2438
|
header: i,
|
|
2414
2439
|
footer: c,
|
|
@@ -2419,7 +2444,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2419
2444
|
...p
|
|
2420
2445
|
}) => {
|
|
2421
2446
|
var y, A, H, U, te;
|
|
2422
|
-
const [h] =
|
|
2447
|
+
const [h] = tt(`(max-width: ${Y.breakpoints.tablet})`), C = (te = (U = (H = (A = (y = Y) == null ? void 0 : y.components) == null ? void 0 : A.Modal) == null ? void 0 : H.baseStyle) == null ? void 0 : U.overlay) == null ? void 0 : te.background, {
|
|
2423
2448
|
Container: E,
|
|
2424
2449
|
Overlay: v,
|
|
2425
2450
|
Content: w,
|
|
@@ -2427,13 +2452,13 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2427
2452
|
Body: b,
|
|
2428
2453
|
Footer: $,
|
|
2429
2454
|
CloseButton: S
|
|
2430
|
-
} =
|
|
2455
|
+
} = hr(h);
|
|
2431
2456
|
return /* @__PURE__ */ t.jsxs(
|
|
2432
2457
|
E,
|
|
2433
2458
|
{
|
|
2434
2459
|
...p,
|
|
2435
2460
|
isOpen: n,
|
|
2436
|
-
onClose:
|
|
2461
|
+
onClose: r,
|
|
2437
2462
|
size: "xl",
|
|
2438
2463
|
...h ? { placement: "bottom" } : {},
|
|
2439
2464
|
children: [
|
|
@@ -2479,7 +2504,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2479
2504
|
fontSize: "1rem"
|
|
2480
2505
|
}
|
|
2481
2506
|
},
|
|
2482
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2507
|
+
children: /* @__PURE__ */ t.jsx(Ee, { as: Pt, weight: "light" })
|
|
2483
2508
|
}
|
|
2484
2509
|
)
|
|
2485
2510
|
]
|
|
@@ -2503,18 +2528,18 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
2503
2528
|
);
|
|
2504
2529
|
};
|
|
2505
2530
|
export {
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2531
|
+
Cr as BasketButton,
|
|
2532
|
+
jr as CategoryLabel,
|
|
2533
|
+
Rr as DrawerModal,
|
|
2534
|
+
kr as Footer,
|
|
2535
|
+
Jn as NavButton,
|
|
2536
|
+
Er as NavSkeleton,
|
|
2537
|
+
et as NavbarDrawer,
|
|
2538
|
+
ze as NavbarDrawerLink,
|
|
2539
|
+
Sr as NavigationBar,
|
|
2540
|
+
Qn as SpotlightCard,
|
|
2541
|
+
yr as Stepper,
|
|
2542
|
+
rt as TopNavIconButton,
|
|
2543
|
+
qn as TopNavigation,
|
|
2544
|
+
lr as useNavigationBar
|
|
2520
2545
|
};
|