@everlywell/consumer-ui 1.47.5 → 1.47.6
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 +10 -10
- package/index.mjs +606 -661
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.d.ts.map +1 -1
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.stories.d.ts +0 -6
- package/lib/components/Navbar/NavbarDrawer/NavbarDrawer.stories.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as
|
|
2
|
-
import se, { useEffect as ee, forwardRef as
|
|
3
|
-
import { Text as
|
|
4
|
-
import { CaretRight as
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
1
|
+
import { useSteps as Qt, Box as R, Stepper as qt, Icon as Ce, Flex as T, Text as z, Link as le, Button as St, Image as en, IconButton as tn, theme as G, useMediaQuery as et, VStack as nn, Skeleton as Xe, HStack as gt, SkeletonCircle as He, DrawerContent as kt, DrawerOverlay as Rt, Drawer as _t, DrawerHeader as Dt, DrawerBody as Tt, Grid as rn, GridItem as on, Accordion as an, AccordionItem as ln, AccordionButton as sn, AccordionPanel as cn, InputGroup as un, Input as dn, InputRightElement as fn, Container as pn, DrawerFooter as hn, DrawerCloseButton as gn, Modal as xn, ModalOverlay as vn, ModalContent as bn, ModalHeader as mn, ModalBody as wn, ModalFooter as yn, ModalCloseButton as jn } from "@everlywell/ui-kit";
|
|
2
|
+
import se, { useEffect as ee, forwardRef as It, useRef as Cn, useCallback as Lt, useState as X } from "react";
|
|
3
|
+
import { Text as En, useBreakpointValue as je, Box as Sn, InputGroup as kn, Input as Rn, InputRightElement as _n, Icon as Dn } from "@chakra-ui/react";
|
|
4
|
+
import { CaretRight as xt, Basket as Tn, CaretLeft as In, X as Ot, MagnifyingGlass as Ln, CaretDown as On, ArrowRight as An, InstagramLogo as Pn, LinkedinLogo as Mn, FacebookLogo as $n, TiktokLogo as Fn, XLogo as Hn } from "@phosphor-icons/react";
|
|
5
|
+
import { motion as it, AnimatePresence as Bn } from "framer-motion";
|
|
6
|
+
var tt = { exports: {} }, Te = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,17 +13,17 @@ var rt = { exports: {} }, Te = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var vt;
|
|
17
17
|
function zn() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var n = se,
|
|
21
|
-
function f(d, g,
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
if (d && d.defaultProps) for (
|
|
26
|
-
return { $$typeof:
|
|
18
|
+
if (vt) return Te;
|
|
19
|
+
vt = 1;
|
|
20
|
+
var n = se, o = 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
|
+
function f(d, g, h) {
|
|
22
|
+
var p, C = {}, E = null, v = null;
|
|
23
|
+
h !== void 0 && (E = "" + h), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (v = g.ref);
|
|
24
|
+
for (p in g) i.call(g, p) && !u.hasOwnProperty(p) && (C[p] = g[p]);
|
|
25
|
+
if (d && d.defaultProps) for (p in g = d.defaultProps, g) C[p] === void 0 && (C[p] = g[p]);
|
|
26
|
+
return { $$typeof: o, type: d, key: E, ref: v, props: C, _owner: c.current };
|
|
27
27
|
}
|
|
28
28
|
return Te.Fragment = s, Te.jsx = f, Te.jsxs = f, Te;
|
|
29
29
|
}
|
|
@@ -37,48 +37,48 @@ var Ie = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var bt;
|
|
41
41
|
function Wn() {
|
|
42
|
-
return
|
|
43
|
-
var n = se,
|
|
42
|
+
return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var n = se, o = 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"), h = Symbol.for("react.suspense"), p = 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
44
|
function b(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var r = w && e[w] || e[O];
|
|
48
|
+
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
50
|
var $ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function S(e) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
53
|
+
for (var r = arguments.length, l = new Array(r > 1 ? r - 1 : 0), x = 1; x < r; x++)
|
|
54
54
|
l[x - 1] = arguments[x];
|
|
55
|
-
|
|
55
|
+
y("error", e, l);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function y(e, r, l) {
|
|
59
59
|
{
|
|
60
60
|
var x = $.ReactDebugCurrentFrame, k = x.getStackAddendum();
|
|
61
|
-
k !== "" && (
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
61
|
+
k !== "" && (r += "%s", l = l.concat([k]));
|
|
62
|
+
var D = l.map(function(j) {
|
|
63
|
+
return String(j);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
D.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, D);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var A = !1, H = !1,
|
|
68
|
+
var A = !1, H = !1, U = !1, te = !1, he = !1, ne;
|
|
69
69
|
ne = Symbol.for("react.module.reference");
|
|
70
70
|
function ge(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || he || e === c || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || he || e === c || e === h || e === p || te || e === v || A || H || U || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === C || e.$$typeof === f || e.$$typeof === d || 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
75
|
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function xe(e,
|
|
77
|
+
function xe(e, r, l) {
|
|
78
78
|
var x = e.displayName;
|
|
79
79
|
if (x)
|
|
80
80
|
return x;
|
|
81
|
-
var k =
|
|
81
|
+
var k = r.displayName || r.name || "";
|
|
82
82
|
return k !== "" ? l + "(" + k + ")" : l;
|
|
83
83
|
}
|
|
84
84
|
function oe(e) {
|
|
@@ -100,16 +100,16 @@ function Wn() {
|
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case c:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case p:
|
|
104
|
-
return "Suspense";
|
|
105
103
|
case h:
|
|
104
|
+
return "Suspense";
|
|
105
|
+
case p:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
110
|
case d:
|
|
111
|
-
var
|
|
112
|
-
return oe(
|
|
111
|
+
var r = e;
|
|
112
|
+
return oe(r) + ".Consumer";
|
|
113
113
|
case f:
|
|
114
114
|
var l = e;
|
|
115
115
|
return oe(l._context) + ".Provider";
|
|
@@ -119,9 +119,9 @@ function Wn() {
|
|
|
119
119
|
var x = e.displayName || null;
|
|
120
120
|
return x !== null ? x : B(e.type) || "Memo";
|
|
121
121
|
case E: {
|
|
122
|
-
var k = e,
|
|
122
|
+
var k = e, D = k._payload, j = k._init;
|
|
123
123
|
try {
|
|
124
|
-
return B(
|
|
124
|
+
return B(j(D));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function Wn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var I = Object.assign, J = 0, ae, ie, Le, Oe, Ae, ve, Pe;
|
|
133
133
|
function Se() {
|
|
134
134
|
}
|
|
135
135
|
Se.__reactDisabledLog = !0;
|
|
136
136
|
function ke() {
|
|
137
137
|
{
|
|
138
138
|
if (J === 0) {
|
|
139
|
-
ae = console.log, ie = console.info,
|
|
139
|
+
ae = console.log, ie = console.info, Le = console.warn, Oe = console.error, Ae = console.group, ve = console.groupCollapsed, Pe = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -156,7 +156,7 @@ function Wn() {
|
|
|
156
156
|
J++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function We() {
|
|
160
160
|
{
|
|
161
161
|
if (J--, J === 0) {
|
|
162
162
|
var e = {
|
|
@@ -165,26 +165,26 @@ function Wn() {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: I({}, e, {
|
|
169
169
|
value: ae
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: I({}, e, {
|
|
172
172
|
value: ie
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: I({}, e, {
|
|
175
|
+
value: Le
|
|
176
|
+
}),
|
|
177
|
+
error: I({}, e, {
|
|
175
178
|
value: Oe
|
|
176
179
|
}),
|
|
177
|
-
|
|
180
|
+
group: I({}, e, {
|
|
178
181
|
value: Ae
|
|
179
182
|
}),
|
|
180
|
-
|
|
181
|
-
value: Pe
|
|
182
|
-
}),
|
|
183
|
-
groupCollapsed: T({}, e, {
|
|
183
|
+
groupCollapsed: I({}, e, {
|
|
184
184
|
value: ve
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: I({}, e, {
|
|
187
|
+
value: Pe
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ function Wn() {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var Re = $.ReactCurrentDispatcher, K;
|
|
195
|
-
function be(e,
|
|
195
|
+
function be(e, r, l) {
|
|
196
196
|
{
|
|
197
197
|
if (K === void 0)
|
|
198
198
|
try {
|
|
@@ -210,7 +210,7 @@ function Wn() {
|
|
|
210
210
|
var _e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
me = new _e();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Me(e, r) {
|
|
214
214
|
if (!e || ce)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
@@ -222,31 +222,31 @@ function Wn() {
|
|
|
222
222
|
ce = !0;
|
|
223
223
|
var k = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var D;
|
|
226
|
+
D = Re.current, Re.current = null, ke();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
228
|
+
if (r) {
|
|
229
|
+
var j = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(j.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(j, []);
|
|
239
239
|
} catch (V) {
|
|
240
240
|
x = V;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], j);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
j.call();
|
|
246
246
|
} catch (V) {
|
|
247
247
|
x = V;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(j.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -276,81 +276,81 @@ function Wn() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
ce = !1, Re.current =
|
|
279
|
+
ce = !1, Re.current = D, We(), Error.prepareStackTrace = k;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var ye = e ? e.displayName || e.name : "", pe = ye ? be(ye) : "";
|
|
282
282
|
return typeof e == "function" && me.set(e, pe), pe;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function Ne(e, r, l) {
|
|
285
|
+
return Me(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
287
|
+
function Ve(e) {
|
|
288
|
+
var r = e.prototype;
|
|
289
|
+
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Y(e, r, l) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return Me(e, Ve(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return be(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case p:
|
|
300
|
-
return be("Suspense");
|
|
301
299
|
case h:
|
|
300
|
+
return be("Suspense");
|
|
301
|
+
case p:
|
|
302
302
|
return be("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case g:
|
|
307
|
-
return
|
|
307
|
+
return Ne(e.render);
|
|
308
308
|
case C:
|
|
309
|
-
return
|
|
309
|
+
return Y(e.type, r, l);
|
|
310
310
|
case E: {
|
|
311
|
-
var x = e, k = x._payload,
|
|
311
|
+
var x = e, k = x._payload, D = x._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return Y(D(k), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var ue = Object.prototype.hasOwnProperty,
|
|
320
|
+
var ue = Object.prototype.hasOwnProperty, $e = {}, De = $.ReactDebugCurrentFrame;
|
|
321
321
|
function de(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var
|
|
323
|
+
var r = e._owner, l = Y(e.type, e._source, r ? r.type : null);
|
|
324
324
|
De.setExtraStackFrame(l);
|
|
325
325
|
} else
|
|
326
326
|
De.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Fe(e, r, l, x, k) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
330
|
+
var D = Function.call.bind(ue);
|
|
331
|
+
for (var j in e)
|
|
332
|
+
if (D(e, j)) {
|
|
333
333
|
var m = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var W = Error((x || "React class") + ": " + l + " type `" +
|
|
335
|
+
if (typeof e[j] != "function") {
|
|
336
|
+
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
337
|
throw W.name = "Invariant Violation", W;
|
|
338
338
|
}
|
|
339
|
-
m = e[
|
|
339
|
+
m = e[j](r, j, x, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (P) {
|
|
341
341
|
m = P;
|
|
342
342
|
}
|
|
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,
|
|
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 $e) && ($e[m.message] = !0, de(k), S("Failed %s type: %s", l, m.message), de(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var a = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function _(e) {
|
|
349
349
|
return a(e);
|
|
350
350
|
}
|
|
351
351
|
function L(e) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, l = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
354
|
return l;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -373,34 +373,34 @@ function Wn() {
|
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
}, N,
|
|
377
|
-
|
|
378
|
-
function
|
|
376
|
+
}, N, lt, Ye;
|
|
377
|
+
Ye = {};
|
|
378
|
+
function Pt(e) {
|
|
379
379
|
if (ue.call(e, "ref")) {
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
380
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Mt(e) {
|
|
387
387
|
if (ue.call(e, "key")) {
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
388
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (typeof e.ref == "string" && q.current &&
|
|
394
|
+
function $t(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && q.current && r && q.current.stateNode !== r) {
|
|
396
396
|
var l = B(q.current.type);
|
|
397
|
-
|
|
397
|
+
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
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ft(e, r) {
|
|
401
401
|
{
|
|
402
402
|
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)",
|
|
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)", r));
|
|
404
404
|
};
|
|
405
405
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: l,
|
|
@@ -408,10 +408,10 @@ function Wn() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Ht(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var l = function() {
|
|
414
|
-
|
|
414
|
+
lt || (lt = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
416
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: l,
|
|
@@ -419,17 +419,17 @@ function Wn() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var Bt = function(e, r, l, x, k, D, j) {
|
|
423
423
|
var m = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
|
-
key:
|
|
428
|
+
key: r,
|
|
429
429
|
ref: l,
|
|
430
|
-
props:
|
|
430
|
+
props: j,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: D
|
|
433
433
|
};
|
|
434
434
|
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -448,41 +448,41 @@ function Wn() {
|
|
|
448
448
|
value: k
|
|
449
449
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function zt(e, r, l, x, k) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
l !== void 0 && (Q(l), m = "" + l),
|
|
455
|
-
for (
|
|
456
|
-
ue.call(
|
|
453
|
+
var D, j = {}, m = null, W = null;
|
|
454
|
+
l !== void 0 && (Q(l), m = "" + l), Mt(r) && (Q(r.key), m = "" + r.key), Pt(r) && (W = r.ref, $t(r, k));
|
|
455
|
+
for (D in r)
|
|
456
|
+
ue.call(r, D) && !re.hasOwnProperty(D) && (j[D] = r[D]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var P = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
|
|
459
|
+
for (D in P)
|
|
460
|
+
j[D] === void 0 && (j[D] = P[D]);
|
|
461
461
|
}
|
|
462
462
|
if (m || W) {
|
|
463
463
|
var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
m &&
|
|
464
|
+
m && Ft(j, M), W && Ht(j, M);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return Bt(e, m, W, k, x, q.current, j);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
469
|
+
var Ge = $.ReactCurrentOwner, st = $.ReactDebugCurrentFrame;
|
|
470
470
|
function we(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var
|
|
473
|
-
|
|
472
|
+
var r = e._owner, l = Y(e.type, e._source, r ? r.type : null);
|
|
473
|
+
st.setExtraStackFrame(l);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
st.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
477
|
+
var Ue;
|
|
478
|
+
Ue = !1;
|
|
479
|
+
function Ke(e) {
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ct() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e = B(
|
|
484
|
+
if (Ge.current) {
|
|
485
|
+
var e = B(Ge.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -491,83 +491,83 @@ Check the render method of \`` + e + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Wt(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
497
|
+
var ut = {};
|
|
498
|
+
function Nt(e) {
|
|
499
499
|
{
|
|
500
|
-
var
|
|
501
|
-
if (!
|
|
500
|
+
var r = ct();
|
|
501
|
+
if (!r) {
|
|
502
502
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
-
l && (
|
|
503
|
+
l && (r = `
|
|
504
504
|
|
|
505
505
|
Check the top-level render call using <` + l + ">.");
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return r;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function dt(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 l =
|
|
516
|
-
if (
|
|
515
|
+
var l = Nt(r);
|
|
516
|
+
if (ut[l])
|
|
517
517
|
return;
|
|
518
|
-
|
|
518
|
+
ut[l] = !0;
|
|
519
519
|
var x = "";
|
|
520
|
-
e && e._owner && e._owner !==
|
|
520
|
+
e && e._owner && e._owner !== Ge.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
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function ft(e, r) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
|
-
if (
|
|
527
|
+
if (_(e))
|
|
528
528
|
for (var l = 0; l < e.length; l++) {
|
|
529
529
|
var x = e[l];
|
|
530
|
-
|
|
530
|
+
Ke(x) && dt(x, r);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (Ke(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
535
|
var k = b(e);
|
|
536
536
|
if (typeof k == "function" && k !== e.entries)
|
|
537
|
-
for (var
|
|
538
|
-
|
|
537
|
+
for (var D = k.call(e), j; !(j = D.next()).done; )
|
|
538
|
+
Ke(j.value) && dt(j.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Vt(e) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
544
|
+
var r = e.type;
|
|
545
|
+
if (r == null || typeof r == "string")
|
|
546
546
|
return;
|
|
547
547
|
var l;
|
|
548
|
-
if (typeof
|
|
549
|
-
l =
|
|
550
|
-
else if (typeof
|
|
548
|
+
if (typeof r == "function")
|
|
549
|
+
l = r.propTypes;
|
|
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
|
-
|
|
553
|
-
l =
|
|
552
|
+
r.$$typeof === C))
|
|
553
|
+
l = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if (l) {
|
|
557
|
-
var x = B(
|
|
558
|
-
|
|
559
|
-
} else if (
|
|
560
|
-
|
|
561
|
-
var k = B(
|
|
557
|
+
var x = B(r);
|
|
558
|
+
Fe(l, e.props, "prop", x, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !Ue) {
|
|
560
|
+
Ue = !0;
|
|
561
|
+
var k = B(r);
|
|
562
562
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof
|
|
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 Yt(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var x =
|
|
569
|
+
for (var r = Object.keys(e.props), l = 0; l < r.length; l++) {
|
|
570
|
+
var x = r[l];
|
|
571
571
|
if (x !== "children" && x !== "key") {
|
|
572
572
|
we(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), we(null);
|
|
573
573
|
break;
|
|
@@ -576,82 +576,82 @@ Check the top-level render call using <` + l + ">.");
|
|
|
576
576
|
e.ref !== null && (we(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
579
|
+
var pt = {};
|
|
580
|
+
function ht(e, r, l, x, k, D) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
582
|
+
var j = ge(e);
|
|
583
|
+
if (!j) {
|
|
584
584
|
var m = "";
|
|
585
585
|
(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 +=
|
|
586
|
+
var W = Wt();
|
|
587
|
+
W ? m += W : m += ct();
|
|
588
588
|
var P;
|
|
589
|
-
e === null ? P = "null" :
|
|
589
|
+
e === null ? P = "null" : _(e) ? P = "array" : e !== void 0 && e.$$typeof === o ? (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
590
|
}
|
|
591
|
-
var M =
|
|
591
|
+
var M = zt(e, r, l, k, D);
|
|
592
592
|
if (M == null)
|
|
593
593
|
return M;
|
|
594
|
-
if (
|
|
595
|
-
var Z =
|
|
594
|
+
if (j) {
|
|
595
|
+
var Z = r.children;
|
|
596
596
|
if (Z !== void 0)
|
|
597
597
|
if (x)
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
|
|
598
|
+
if (_(Z)) {
|
|
599
|
+
for (var ye = 0; ye < Z.length; ye++)
|
|
600
|
+
ft(Z[ye], e);
|
|
601
601
|
Object.freeze && Object.freeze(Z);
|
|
602
602
|
} else
|
|
603
603
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
|
|
605
|
+
ft(Z, e);
|
|
606
606
|
}
|
|
607
|
-
if (ue.call(
|
|
608
|
-
var pe = B(e), V = Object.keys(
|
|
609
|
-
return
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
612
|
-
var
|
|
607
|
+
if (ue.call(r, "key")) {
|
|
608
|
+
var pe = B(e), V = Object.keys(r).filter(function(Jt) {
|
|
609
|
+
return Jt !== "key";
|
|
610
|
+
}), Ze = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!pt[pe + Ze]) {
|
|
612
|
+
var Xt = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
613
613
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
618
|
+
<%s key={someKey} {...props} />`, Ze, pe, Xt, pe), pt[pe + Ze] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
return e === i ?
|
|
621
|
+
return e === i ? Yt(M) : Vt(M), M;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
624
|
+
function Gt(e, r, l) {
|
|
625
|
+
return ht(e, r, l, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
627
|
+
function Ut(e, r, l) {
|
|
628
|
+
return ht(e, r, l, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
Ie.Fragment = i, Ie.jsx =
|
|
630
|
+
var Kt = Ut, Zt = Gt;
|
|
631
|
+
Ie.Fragment = i, Ie.jsx = Kt, Ie.jsxs = Zt;
|
|
632
632
|
}()), Ie;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var t =
|
|
636
|
-
const
|
|
634
|
+
process.env.NODE_ENV === "production" ? tt.exports = zn() : tt.exports = Wn();
|
|
635
|
+
var t = tt.exports;
|
|
636
|
+
const Je = 60, mt = 6, Nn = (n) => {
|
|
637
637
|
const {
|
|
638
|
-
activeStepIndex:
|
|
638
|
+
activeStepIndex: o,
|
|
639
639
|
hideIndicators: s = !1,
|
|
640
640
|
steps: i,
|
|
641
641
|
stepperTheme: c = {
|
|
642
642
|
light: "eggplant.light",
|
|
643
643
|
base: "eggplant.base"
|
|
644
644
|
}
|
|
645
|
-
} = n, { activeStep: u, setActiveStep: f } =
|
|
646
|
-
index:
|
|
645
|
+
} = n, { activeStep: u, setActiveStep: f } = Qt({
|
|
646
|
+
index: o,
|
|
647
647
|
count: i.length
|
|
648
648
|
});
|
|
649
649
|
return ee(() => {
|
|
650
|
-
f(
|
|
651
|
-
}, [
|
|
650
|
+
f(o);
|
|
651
|
+
}, [o, f]), /* @__PURE__ */ t.jsx(
|
|
652
652
|
R,
|
|
653
653
|
{ position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
|
|
654
|
-
|
|
654
|
+
qt,
|
|
655
655
|
{
|
|
656
656
|
role: "progressbar",
|
|
657
657
|
index: u,
|
|
@@ -659,16 +659,16 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
661
|
children: i.map((d, g) => {
|
|
662
|
-
const
|
|
663
|
-
let v = `${
|
|
664
|
-
const w = `calc(100% - ((${
|
|
665
|
-
return
|
|
662
|
+
const h = u === g, p = g === 0, C = g === i.length - 1, E = u > g;
|
|
663
|
+
let v = `${Je}px`;
|
|
664
|
+
const w = `calc(100% - ((${Je * (i.length - 1)}px) - (${i.length - 1} * ${mt * 2}px)))`;
|
|
665
|
+
return h ? v = w : (p || C) && (v = `${Je - mt}px`), /* @__PURE__ */ t.jsx(
|
|
666
666
|
R,
|
|
667
667
|
{
|
|
668
668
|
width: v,
|
|
669
|
-
opacity: E ||
|
|
669
|
+
opacity: E || h ? 1 : 0.2,
|
|
670
670
|
paddingRight: C ? "0" : "6px",
|
|
671
|
-
paddingLeft:
|
|
671
|
+
paddingLeft: p ? "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
|
R,
|
|
@@ -699,19 +699,19 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
699
699
|
);
|
|
700
700
|
}, pr = se.memo(Nn), hr = ({
|
|
701
701
|
children: n,
|
|
702
|
-
...
|
|
702
|
+
...o
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
704
|
-
|
|
705
|
-
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...
|
|
706
|
-
), Ee = (n,
|
|
704
|
+
En,
|
|
705
|
+
{ color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: n }
|
|
706
|
+
), Ee = (n, o) => {
|
|
707
707
|
const s = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("mailto"));
|
|
708
|
-
return
|
|
708
|
+
return o && !s ? {
|
|
709
709
|
to: n
|
|
710
710
|
} : {
|
|
711
711
|
href: n
|
|
712
712
|
};
|
|
713
|
-
},
|
|
714
|
-
(n,
|
|
713
|
+
}, Be = It(
|
|
714
|
+
(n, o) => {
|
|
715
715
|
const {
|
|
716
716
|
label: s,
|
|
717
717
|
additionalContent: i,
|
|
@@ -720,12 +720,12 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
720
720
|
href: f,
|
|
721
721
|
forceMobileStyle: d = !1,
|
|
722
722
|
...g
|
|
723
|
-
} = n,
|
|
723
|
+
} = n, h = u || le, p = Ee(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
724
|
return /* @__PURE__ */ t.jsxs(
|
|
725
725
|
R,
|
|
726
726
|
{
|
|
727
|
-
ref:
|
|
728
|
-
as:
|
|
727
|
+
ref: o,
|
|
728
|
+
as: h,
|
|
729
729
|
display: "flex",
|
|
730
730
|
alignItems: "center",
|
|
731
731
|
gap: v,
|
|
@@ -737,14 +737,14 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
737
737
|
borderColor: $,
|
|
738
738
|
width: S,
|
|
739
739
|
cursor: "pointer",
|
|
740
|
-
...
|
|
740
|
+
...p,
|
|
741
741
|
...g,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ t.jsx(
|
|
744
744
|
Ce,
|
|
745
745
|
{
|
|
746
|
-
display:
|
|
747
|
-
as:
|
|
746
|
+
display: y,
|
|
747
|
+
as: xt,
|
|
748
748
|
fontSize: "lg",
|
|
749
749
|
color: "viridian.light",
|
|
750
750
|
role: "img",
|
|
@@ -753,7 +753,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
753
753
|
}
|
|
754
754
|
),
|
|
755
755
|
/* @__PURE__ */ t.jsxs(
|
|
756
|
-
|
|
756
|
+
T,
|
|
757
757
|
{ alignItems: "center", gap: "1", width: A, children: [
|
|
758
758
|
/* @__PURE__ */ t.jsx(
|
|
759
759
|
z,
|
|
@@ -781,7 +781,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
781
781
|
Ce,
|
|
782
782
|
{
|
|
783
783
|
display: H,
|
|
784
|
-
as:
|
|
784
|
+
as: xt,
|
|
785
785
|
fontSize: "2xl",
|
|
786
786
|
color: "tints.uiGrey",
|
|
787
787
|
role: "img",
|
|
@@ -795,13 +795,13 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
797
|
}
|
|
798
|
-
), Vn =
|
|
799
|
-
(n,
|
|
798
|
+
), Vn = It(
|
|
799
|
+
(n, o) => {
|
|
800
800
|
const { children: s, isSelected: i, ...c } = n, u = n.backgroundColor || (i ? "tints.lightCream" : "transparent");
|
|
801
801
|
return /* @__PURE__ */ t.jsx(
|
|
802
|
-
|
|
802
|
+
St,
|
|
803
803
|
{
|
|
804
|
-
ref:
|
|
804
|
+
ref: o,
|
|
805
805
|
borderRadius: "full",
|
|
806
806
|
backgroundColor: u,
|
|
807
807
|
fontSize: "lg !important",
|
|
@@ -839,7 +839,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
839
839
|
}
|
|
840
840
|
), Yn = ({
|
|
841
841
|
title: n,
|
|
842
|
-
description:
|
|
842
|
+
description: o,
|
|
843
843
|
imageSrc: s,
|
|
844
844
|
imageElement: i,
|
|
845
845
|
button: c,
|
|
@@ -847,22 +847,22 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
847
847
|
onClick: f,
|
|
848
848
|
href: d,
|
|
849
849
|
linkComponent: g,
|
|
850
|
-
forceMobileStyle:
|
|
850
|
+
forceMobileStyle: h = !1
|
|
851
851
|
}) => {
|
|
852
|
-
const v = g || le, w = Ee(d, !!g), O =
|
|
852
|
+
const v = g || le, w = Ee(d, !!g), O = je({
|
|
853
853
|
base: !1,
|
|
854
854
|
tablet: !1,
|
|
855
855
|
largeTablet: !1,
|
|
856
856
|
desktop: !0
|
|
857
857
|
});
|
|
858
858
|
return /* @__PURE__ */ t.jsxs(
|
|
859
|
-
|
|
859
|
+
T,
|
|
860
860
|
{
|
|
861
|
-
direction:
|
|
861
|
+
direction: h ? "row" : ["row", null, null, "column"],
|
|
862
862
|
alignItems: "center",
|
|
863
863
|
borderRadius: "xl",
|
|
864
864
|
overflow: "hidden",
|
|
865
|
-
height:
|
|
865
|
+
height: h ? "80px" : ["80px", null, null, "272px"],
|
|
866
866
|
backgroundColor: u,
|
|
867
867
|
onClick: f,
|
|
868
868
|
"data-testid": "spotlight-card",
|
|
@@ -870,30 +870,30 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
870
870
|
transition: "box-shadow 0.2s ease-in-out",
|
|
871
871
|
border: "1px solid",
|
|
872
872
|
borderColor: "transparent",
|
|
873
|
-
minWidth:
|
|
874
|
-
maxWidth:
|
|
873
|
+
minWidth: h ? "100%" : ["100%", null, null, "320px"],
|
|
874
|
+
maxWidth: h ? "100%" : ["100%", null, null, "380px"],
|
|
875
875
|
_hover: {
|
|
876
876
|
boxShadow: "lg",
|
|
877
877
|
textDecoration: "none",
|
|
878
878
|
border: "1px solid",
|
|
879
879
|
borderColor: "tints.white"
|
|
880
880
|
},
|
|
881
|
-
as:
|
|
882
|
-
...
|
|
881
|
+
as: h ? v : O ? T : v,
|
|
882
|
+
...h ? w : O ? {} : w,
|
|
883
883
|
children: [
|
|
884
884
|
/* @__PURE__ */ t.jsx(
|
|
885
885
|
R,
|
|
886
886
|
{
|
|
887
|
-
width:
|
|
888
|
-
height:
|
|
887
|
+
width: h ? "72px" : ["72px", null, null, "100%"],
|
|
888
|
+
height: h ? "100%" : ["100%", null, null, "188px"],
|
|
889
889
|
sx: {
|
|
890
890
|
img: {
|
|
891
|
-
height:
|
|
892
|
-
objectFit:
|
|
891
|
+
height: h ? "100%" : O ? "188px" : "100%",
|
|
892
|
+
objectFit: h ? "cover" : "contain"
|
|
893
893
|
}
|
|
894
894
|
},
|
|
895
895
|
children: s ? /* @__PURE__ */ t.jsx(
|
|
896
|
-
|
|
896
|
+
en,
|
|
897
897
|
{
|
|
898
898
|
src: s,
|
|
899
899
|
objectFit: "cover",
|
|
@@ -904,36 +904,36 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
904
904
|
) : /* @__PURE__ */ t.jsx(
|
|
905
905
|
R,
|
|
906
906
|
{
|
|
907
|
-
height:
|
|
907
|
+
height: h ? 80 : [80, null, null, 188],
|
|
908
908
|
overflow: "hidden",
|
|
909
|
-
...
|
|
909
|
+
...h ? { sx: { div: { height: "100%" } } } : {},
|
|
910
910
|
children: i
|
|
911
911
|
}
|
|
912
912
|
)
|
|
913
913
|
}
|
|
914
914
|
),
|
|
915
915
|
/* @__PURE__ */ t.jsxs(
|
|
916
|
-
|
|
916
|
+
T,
|
|
917
917
|
{
|
|
918
|
-
direction:
|
|
919
|
-
justifyContent:
|
|
920
|
-
alignItems:
|
|
918
|
+
direction: h ? "column" : ["column", null, null, "row"],
|
|
919
|
+
justifyContent: h ? void 0 : [null, null, null, "space-between"],
|
|
920
|
+
alignItems: h ? "left" : ["left", null, null, "center"],
|
|
921
921
|
padding: "4",
|
|
922
|
-
height:
|
|
922
|
+
height: h ? "80px" : [
|
|
923
923
|
"80px",
|
|
924
924
|
null,
|
|
925
925
|
null,
|
|
926
926
|
"84px"
|
|
927
927
|
],
|
|
928
928
|
width: "100%",
|
|
929
|
-
bottom:
|
|
930
|
-
backgroundColor:
|
|
931
|
-
backdropFilter:
|
|
929
|
+
bottom: h ? void 0 : [null, null, null, "0"],
|
|
930
|
+
backgroundColor: h ? void 0 : [null, null, null, `${u}CC`],
|
|
931
|
+
backdropFilter: h ? void 0 : [null, null, null, "blur(8px)"],
|
|
932
932
|
flex: "1",
|
|
933
|
-
gap:
|
|
933
|
+
gap: h ? void 0 : [null, null, null, 3],
|
|
934
934
|
children: [
|
|
935
935
|
/* @__PURE__ */ t.jsxs(
|
|
936
|
-
|
|
936
|
+
T,
|
|
937
937
|
{ direction: "column", justifyContent: "center", height: "100%", children: [
|
|
938
938
|
/* @__PURE__ */ t.jsx(
|
|
939
939
|
z,
|
|
@@ -941,19 +941,19 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
941
941
|
),
|
|
942
942
|
/* @__PURE__ */ t.jsx(
|
|
943
943
|
z,
|
|
944
|
-
{ fontSize: "sm", color: "tints.darkGrey", children:
|
|
944
|
+
{ fontSize: "sm", color: "tints.darkGrey", children: o }
|
|
945
945
|
)
|
|
946
946
|
] }
|
|
947
947
|
),
|
|
948
|
-
|
|
948
|
+
h ? null : O ? /* @__PURE__ */ t.jsx(R, { children: c }) : null
|
|
949
949
|
]
|
|
950
950
|
}
|
|
951
951
|
)
|
|
952
952
|
]
|
|
953
953
|
}
|
|
954
954
|
);
|
|
955
|
-
},
|
|
956
|
-
|
|
955
|
+
}, nt = (n) => /* @__PURE__ */ t.jsx(
|
|
956
|
+
tn,
|
|
957
957
|
{
|
|
958
958
|
size: "sm",
|
|
959
959
|
width: ["40px", null, null, "46px"],
|
|
@@ -973,14 +973,14 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
973
973
|
},
|
|
974
974
|
...n
|
|
975
975
|
}
|
|
976
|
-
),
|
|
977
|
-
color: n =
|
|
978
|
-
width:
|
|
976
|
+
), At = ({
|
|
977
|
+
color: n = G.colors.viridian.base,
|
|
978
|
+
width: o
|
|
979
979
|
}) => /* @__PURE__ */ t.jsx(
|
|
980
|
-
|
|
980
|
+
Sn,
|
|
981
981
|
{
|
|
982
982
|
as: "svg",
|
|
983
|
-
width:
|
|
983
|
+
width: o,
|
|
984
984
|
height: "auto",
|
|
985
985
|
viewBox: "0 0 116 24",
|
|
986
986
|
fill: "none",
|
|
@@ -1003,21 +1003,21 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
), Gn = ({
|
|
1005
1005
|
desktopTopButtons: n,
|
|
1006
|
-
logoLink:
|
|
1006
|
+
logoLink: o = "https://www.everlywell.com",
|
|
1007
1007
|
setTopOffset: s,
|
|
1008
1008
|
linkComponent: i,
|
|
1009
1009
|
onLogoClick: c,
|
|
1010
1010
|
rightSideButtons: u
|
|
1011
1011
|
}) => {
|
|
1012
|
-
const f =
|
|
1012
|
+
const f = Cn(null), [d] = et(`(max-width: ${G.breakpoints.mediumTablet})`), [g] = et(`(max-width: ${G.breakpoints.mediumDesktop})`), h = Lt(() => {
|
|
1013
1013
|
if (f.current) {
|
|
1014
|
-
const
|
|
1015
|
-
s(
|
|
1014
|
+
const p = f.current.getBoundingClientRect();
|
|
1015
|
+
s(p.bottom);
|
|
1016
1016
|
}
|
|
1017
1017
|
}, []);
|
|
1018
1018
|
return ee(() => {
|
|
1019
|
-
|
|
1020
|
-
}, [
|
|
1019
|
+
h();
|
|
1020
|
+
}, [h]), /* @__PURE__ */ t.jsx(
|
|
1021
1021
|
R,
|
|
1022
1022
|
{
|
|
1023
1023
|
ref: f,
|
|
@@ -1027,12 +1027,12 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1027
1027
|
borderColor: "tints.lightCream",
|
|
1028
1028
|
backgroundColor: "tints.white",
|
|
1029
1029
|
width: "100%",
|
|
1030
|
-
onMouseEnter:
|
|
1030
|
+
onMouseEnter: h,
|
|
1031
1031
|
children: /* @__PURE__ */ t.jsxs(
|
|
1032
|
-
|
|
1032
|
+
T,
|
|
1033
1033
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1034
1034
|
/* @__PURE__ */ t.jsxs(
|
|
1035
|
-
|
|
1035
|
+
T,
|
|
1036
1036
|
{ alignItems: "center", gap: "5", children: [
|
|
1037
1037
|
/* @__PURE__ */ t.jsx(
|
|
1038
1038
|
R,
|
|
@@ -1040,18 +1040,18 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1040
1040
|
"aria-label": "Go to homepage",
|
|
1041
1041
|
onClick: c,
|
|
1042
1042
|
as: i || le,
|
|
1043
|
-
...Ee(
|
|
1044
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1043
|
+
...Ee(o, !!i),
|
|
1044
|
+
children: /* @__PURE__ */ t.jsx(At, { width: "116px" })
|
|
1045
1045
|
}
|
|
1046
1046
|
),
|
|
1047
1047
|
/* @__PURE__ */ t.jsx(
|
|
1048
|
-
|
|
1048
|
+
T,
|
|
1049
1049
|
{ display: ["none", null, "none", "none", "flex", "flex"], children: n }
|
|
1050
1050
|
)
|
|
1051
1051
|
] }
|
|
1052
1052
|
),
|
|
1053
1053
|
/* @__PURE__ */ t.jsx(
|
|
1054
|
-
|
|
1054
|
+
T,
|
|
1055
1055
|
{ alignItems: "center", gap: "2", children: u }
|
|
1056
1056
|
)
|
|
1057
1057
|
] }
|
|
@@ -1060,11 +1060,11 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1060
1060
|
);
|
|
1061
1061
|
}, gr = ({
|
|
1062
1062
|
count: n = 0,
|
|
1063
|
-
...
|
|
1063
|
+
...o
|
|
1064
1064
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1065
1065
|
R,
|
|
1066
1066
|
{ position: "relative", display: "inline-block", children: [
|
|
1067
|
-
/* @__PURE__ */ t.jsx(
|
|
1067
|
+
/* @__PURE__ */ t.jsx(nt, { icon: /* @__PURE__ */ t.jsx(Tn, {}), ...o }),
|
|
1068
1068
|
n > 0 && /* @__PURE__ */ t.jsx(
|
|
1069
1069
|
R,
|
|
1070
1070
|
{
|
|
@@ -1089,9 +1089,9 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1089
1089
|
] }
|
|
1090
1090
|
), xr = ({
|
|
1091
1091
|
numDesktopLinks: n = 5,
|
|
1092
|
-
showPromoButton:
|
|
1092
|
+
showPromoButton: o = !1
|
|
1093
1093
|
}) => /* @__PURE__ */ t.jsx(
|
|
1094
|
-
|
|
1094
|
+
nn,
|
|
1095
1095
|
{ spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
|
|
1096
1096
|
R,
|
|
1097
1097
|
{
|
|
@@ -1100,11 +1100,11 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1100
1100
|
borderBottomWidth: "1px",
|
|
1101
1101
|
borderColor: "tints.lightCream",
|
|
1102
1102
|
children: /* @__PURE__ */ t.jsxs(
|
|
1103
|
-
|
|
1103
|
+
T,
|
|
1104
1104
|
{ justify: "space-between", align: "center", children: [
|
|
1105
|
-
/* @__PURE__ */ t.jsx(
|
|
1105
|
+
/* @__PURE__ */ t.jsx(Xe, { w: "120px", h: "48px" }),
|
|
1106
1106
|
/* @__PURE__ */ t.jsxs(
|
|
1107
|
-
|
|
1107
|
+
gt,
|
|
1108
1108
|
{
|
|
1109
1109
|
spacing: 8,
|
|
1110
1110
|
marginLeft: 12,
|
|
@@ -1112,17 +1112,17 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1112
1112
|
"data-testid": "desktop-nav",
|
|
1113
1113
|
children: [
|
|
1114
1114
|
Array.from({ length: n }).map(
|
|
1115
|
-
(s, i) => /* @__PURE__ */ t.jsx(
|
|
1115
|
+
(s, i) => /* @__PURE__ */ t.jsx(Xe, { width: "90px", height: "48px" }, i)
|
|
1116
1116
|
),
|
|
1117
|
-
|
|
1117
|
+
o && /* @__PURE__ */ t.jsx(Xe, { width: "110px", height: "48px", borderRadius: "full" })
|
|
1118
1118
|
]
|
|
1119
1119
|
}
|
|
1120
1120
|
),
|
|
1121
1121
|
/* @__PURE__ */ t.jsxs(
|
|
1122
|
-
|
|
1122
|
+
gt,
|
|
1123
1123
|
{ spacing: 4, ml: "auto", children: [
|
|
1124
1124
|
/* @__PURE__ */ t.jsx(
|
|
1125
|
-
|
|
1125
|
+
He,
|
|
1126
1126
|
{
|
|
1127
1127
|
width: "120px",
|
|
1128
1128
|
height: "48px",
|
|
@@ -1131,11 +1131,11 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
),
|
|
1133
1133
|
" ",
|
|
1134
|
-
/* @__PURE__ */ t.jsx(
|
|
1134
|
+
/* @__PURE__ */ t.jsx(He, { width: "48px", height: "48px" }),
|
|
1135
1135
|
" ",
|
|
1136
|
-
/* @__PURE__ */ t.jsx(
|
|
1136
|
+
/* @__PURE__ */ t.jsx(He, { width: "48px", height: "48px" }),
|
|
1137
1137
|
" ",
|
|
1138
|
-
/* @__PURE__ */ t.jsx(
|
|
1138
|
+
/* @__PURE__ */ t.jsx(He, { width: "48px", height: "48px" }),
|
|
1139
1139
|
" "
|
|
1140
1140
|
] }
|
|
1141
1141
|
)
|
|
@@ -1143,22 +1143,22 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1143
1143
|
)
|
|
1144
1144
|
}
|
|
1145
1145
|
) }
|
|
1146
|
-
), Un = (n,
|
|
1146
|
+
), Un = (n, o) => {
|
|
1147
1147
|
let s;
|
|
1148
1148
|
return (...i) => {
|
|
1149
1149
|
s && clearTimeout(s), s = setTimeout(() => {
|
|
1150
1150
|
n(...i);
|
|
1151
|
-
},
|
|
1151
|
+
}, o);
|
|
1152
1152
|
};
|
|
1153
|
-
},
|
|
1154
|
-
n.length <
|
|
1155
|
-
let s = Array(
|
|
1156
|
-
for (let c = 0; c <=
|
|
1153
|
+
}, Qe = (n) => n.toLowerCase().replace(/['']/g, "").replace(/[^a-z0-9]/g, ""), Kn = (n, o) => {
|
|
1154
|
+
n.length < o.length && ([n, o] = [o, n]);
|
|
1155
|
+
let s = Array(o.length + 1).fill(0), i = Array(o.length + 1).fill(0);
|
|
1156
|
+
for (let c = 0; c <= o.length; c++)
|
|
1157
1157
|
s[c] = c;
|
|
1158
1158
|
for (let c = 1; c <= n.length; c++) {
|
|
1159
1159
|
i[0] = c;
|
|
1160
|
-
for (let u = 1; u <=
|
|
1161
|
-
const f = n[c - 1] ===
|
|
1160
|
+
for (let u = 1; u <= o.length; u++) {
|
|
1161
|
+
const f = n[c - 1] === o[u - 1] ? 0 : 1;
|
|
1162
1162
|
i[u] = Math.min(
|
|
1163
1163
|
i[u - 1] + 1,
|
|
1164
1164
|
// Insertion
|
|
@@ -1170,43 +1170,43 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
[s, i] = [i, s];
|
|
1172
1172
|
}
|
|
1173
|
-
return s[
|
|
1174
|
-
},
|
|
1175
|
-
if (n.length <= 3 ||
|
|
1176
|
-
return n.includes(
|
|
1177
|
-
const i = Kn(n,
|
|
1173
|
+
return s[o.length];
|
|
1174
|
+
}, ze = (n, o, s = 0.6) => {
|
|
1175
|
+
if (n.length <= 3 || o.length <= 3)
|
|
1176
|
+
return n.includes(o) || o.includes(n);
|
|
1177
|
+
const i = Kn(n, o), c = Math.max(n.length, o.length);
|
|
1178
1178
|
return 1 - i / c >= s;
|
|
1179
|
-
},
|
|
1179
|
+
}, wt = (n, o) => {
|
|
1180
1180
|
const s = n.split(/\s+/);
|
|
1181
|
-
return
|
|
1182
|
-
if (
|
|
1181
|
+
return o.length <= 4 ? s.some((i) => i.includes(o)) : s.some((i) => {
|
|
1182
|
+
if (ze(i, o))
|
|
1183
1183
|
return !0;
|
|
1184
|
-
if (i.length >=
|
|
1185
|
-
for (let c = 0; c <= i.length -
|
|
1186
|
-
const u = i.slice(c, c +
|
|
1187
|
-
if (
|
|
1184
|
+
if (i.length >= o.length)
|
|
1185
|
+
for (let c = 0; c <= i.length - o.length; c++) {
|
|
1186
|
+
const u = i.slice(c, c + o.length + 1);
|
|
1187
|
+
if (ze(o, u))
|
|
1188
1188
|
return !0;
|
|
1189
1189
|
}
|
|
1190
1190
|
return !1;
|
|
1191
1191
|
});
|
|
1192
|
-
},
|
|
1192
|
+
}, rt = "nav-drawer-hover", ot = "nav-drawer-animation-start", at = "nav-drawer-animation-end", yt = (n) => {
|
|
1193
1193
|
window.dispatchEvent(
|
|
1194
|
-
new CustomEvent(
|
|
1194
|
+
new CustomEvent(rt, {
|
|
1195
1195
|
detail: { isHovering: n },
|
|
1196
1196
|
bubbles: !0,
|
|
1197
1197
|
cancelable: !0
|
|
1198
1198
|
})
|
|
1199
1199
|
);
|
|
1200
|
-
},
|
|
1200
|
+
}, jt = (n) => {
|
|
1201
1201
|
window.dispatchEvent(
|
|
1202
1202
|
new CustomEvent(n, {
|
|
1203
1203
|
bubbles: !0,
|
|
1204
1204
|
cancelable: !0
|
|
1205
1205
|
})
|
|
1206
1206
|
);
|
|
1207
|
-
}, Zn = (n = !1,
|
|
1207
|
+
}, Zn = (n = !1, o = !1, s = !1) => n || !o ? "column" : "row", Xn = it(kt), Jn = it(Rt), qe = ({
|
|
1208
1208
|
isOpen: n = !1,
|
|
1209
|
-
onClose:
|
|
1209
|
+
onClose: o,
|
|
1210
1210
|
title: s,
|
|
1211
1211
|
navDrawerLinks: i,
|
|
1212
1212
|
bottomNavButtons: c,
|
|
@@ -1214,41 +1214,41 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1214
1214
|
bottomButton: f,
|
|
1215
1215
|
hasBackButton: d = !0,
|
|
1216
1216
|
onBackClick: g,
|
|
1217
|
-
hasOnlySpotlightCards:
|
|
1218
|
-
hasSearch:
|
|
1217
|
+
hasOnlySpotlightCards: h = !1,
|
|
1218
|
+
hasSearch: p = !1,
|
|
1219
1219
|
onSearch: C = () => ({}),
|
|
1220
1220
|
topOffset: E,
|
|
1221
1221
|
forceMobilePlacement: v = !1
|
|
1222
1222
|
}) => {
|
|
1223
1223
|
var he, ne, ge, xe, oe, B;
|
|
1224
|
-
const w =
|
|
1224
|
+
const w = je({
|
|
1225
1225
|
base: !1,
|
|
1226
1226
|
tablet: !1,
|
|
1227
1227
|
largeTablet: !1,
|
|
1228
1228
|
mediumDesktop: !0,
|
|
1229
1229
|
desktop: !0,
|
|
1230
1230
|
fullDesktop: !0
|
|
1231
|
-
}) ?? !1, O = v ? "right" : w ? "top" : "right", b = O === "right", [$, S] = X(0), [
|
|
1232
|
-
S((
|
|
1233
|
-
},
|
|
1234
|
-
Un((
|
|
1235
|
-
C(
|
|
1231
|
+
}) ?? !1, O = v ? "right" : w ? "top" : "right", b = O === "right", [$, S] = X(0), [y, A] = X(!1), H = () => {
|
|
1232
|
+
S((I) => I + 1);
|
|
1233
|
+
}, U = Lt(
|
|
1234
|
+
Un((I) => {
|
|
1235
|
+
C(I), H();
|
|
1236
1236
|
}, 100),
|
|
1237
1237
|
[]
|
|
1238
1238
|
);
|
|
1239
1239
|
ee(() => {
|
|
1240
|
-
n && (A(!0),
|
|
1240
|
+
n && (A(!0), jt(ot));
|
|
1241
1241
|
}, [n]);
|
|
1242
1242
|
const te = () => {
|
|
1243
|
-
n || (A(!1),
|
|
1243
|
+
n || (A(!1), o()), jt(at);
|
|
1244
1244
|
};
|
|
1245
1245
|
return /* @__PURE__ */ t.jsx(
|
|
1246
|
-
|
|
1246
|
+
_t,
|
|
1247
1247
|
{
|
|
1248
|
-
isOpen:
|
|
1248
|
+
isOpen: y || n,
|
|
1249
1249
|
closeOnOverlayClick: !0,
|
|
1250
1250
|
onClose: () => {
|
|
1251
|
-
|
|
1251
|
+
y && !b || o();
|
|
1252
1252
|
},
|
|
1253
1253
|
placement: O,
|
|
1254
1254
|
blockScrollOnMount: !1,
|
|
@@ -1256,14 +1256,14 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1256
1256
|
...b ? {
|
|
1257
1257
|
styleConfig: {
|
|
1258
1258
|
baseStyle: {
|
|
1259
|
-
...
|
|
1259
|
+
...G.components.Drawer.baseStyle,
|
|
1260
1260
|
dialogContainer: {
|
|
1261
|
-
...(ne = (he =
|
|
1261
|
+
...(ne = (he = G.components.Drawer) == null ? void 0 : he.baseStyle) == null ? void 0 : ne.dialogContainer,
|
|
1262
1262
|
// Higher z-index for drawer content to be above overlay and navigation
|
|
1263
1263
|
zIndex: "popover"
|
|
1264
1264
|
},
|
|
1265
1265
|
dialog: {
|
|
1266
|
-
...(xe = (ge =
|
|
1266
|
+
...(xe = (ge = G.components.Drawer) == null ? void 0 : ge.baseStyle) == null ? void 0 : xe.dialog,
|
|
1267
1267
|
// Ensure mobile drawer doesn't expand to full width
|
|
1268
1268
|
maxW: "560px",
|
|
1269
1269
|
width: "auto"
|
|
@@ -1273,9 +1273,9 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1273
1273
|
} : {
|
|
1274
1274
|
styleConfig: {
|
|
1275
1275
|
baseStyle: {
|
|
1276
|
-
...
|
|
1276
|
+
...G.components.Drawer.baseStyle,
|
|
1277
1277
|
dialogContainer: {
|
|
1278
|
-
...(B = (oe =
|
|
1278
|
+
...(B = (oe = G.components.Drawer) == null ? void 0 : oe.baseStyle) == null ? void 0 : B.dialogContainer,
|
|
1279
1279
|
// Push the drawer down by the top offset on desktop to not cover the top navigation
|
|
1280
1280
|
top: `${E}px`,
|
|
1281
1281
|
// Lower index on desktop to make sure the drawer is below the top navigation
|
|
@@ -1311,15 +1311,15 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1311
1311
|
/* @__PURE__ */ t.jsxs(
|
|
1312
1312
|
Xn,
|
|
1313
1313
|
{
|
|
1314
|
-
onClick: (
|
|
1315
|
-
const ae =
|
|
1316
|
-
ae && ae.href === window.location.href &&
|
|
1314
|
+
onClick: (I) => {
|
|
1315
|
+
const ae = I.target.closest("a");
|
|
1316
|
+
ae && ae.href === window.location.href && o();
|
|
1317
1317
|
},
|
|
1318
1318
|
onMouseEnter: () => {
|
|
1319
|
-
b ||
|
|
1319
|
+
b || yt(!0);
|
|
1320
1320
|
},
|
|
1321
|
-
onMouseLeave: (
|
|
1322
|
-
b || (!
|
|
1321
|
+
onMouseLeave: (I) => {
|
|
1322
|
+
b || (!p || p && (I.target === I.currentTarget || !I.currentTarget.contains(I.target) && !y)) && yt(!1);
|
|
1323
1323
|
},
|
|
1324
1324
|
paddingTop: "4",
|
|
1325
1325
|
paddingX: b ? "4" : "12",
|
|
@@ -1342,137 +1342,82 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1342
1342
|
transition: { duration: 0.3 }
|
|
1343
1343
|
},
|
|
1344
1344
|
children: [
|
|
1345
|
-
/* @__PURE__ */ t.
|
|
1346
|
-
|
|
1347
|
-
{
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
alignItems: "center",
|
|
1362
|
-
children: [
|
|
1363
|
-
d ? /* @__PURE__ */ t.jsx(
|
|
1364
|
-
Le,
|
|
1365
|
-
{
|
|
1366
|
-
icon: /* @__PURE__ */ t.jsx(Ln, {}),
|
|
1367
|
-
onClick: () => {
|
|
1368
|
-
g && g();
|
|
1369
|
-
},
|
|
1370
|
-
"aria-label": "Back"
|
|
1371
|
-
}
|
|
1372
|
-
) : null,
|
|
1373
|
-
/* @__PURE__ */ t.jsx(
|
|
1374
|
-
z,
|
|
1375
|
-
{
|
|
1376
|
-
as: "h2",
|
|
1377
|
-
color: "tints.uiGrey",
|
|
1378
|
-
fontSize: "xl",
|
|
1379
|
-
children: s
|
|
1380
|
-
}
|
|
1381
|
-
),
|
|
1382
|
-
/* @__PURE__ */ t.jsx(
|
|
1383
|
-
Le,
|
|
1384
|
-
{
|
|
1385
|
-
icon: /* @__PURE__ */ t.jsx(We, {}),
|
|
1386
|
-
onClick: r,
|
|
1387
|
-
"aria-label": "Close"
|
|
1388
|
-
}
|
|
1389
|
-
)
|
|
1390
|
-
]
|
|
1391
|
-
}
|
|
1392
|
-
),
|
|
1393
|
-
h && /* @__PURE__ */ t.jsxs(
|
|
1394
|
-
vt,
|
|
1395
|
-
{ width: "100%", children: [
|
|
1396
|
-
/* @__PURE__ */ t.jsx(
|
|
1397
|
-
bt,
|
|
1398
|
-
{
|
|
1399
|
-
onChange: (T) => {
|
|
1400
|
-
Y(T.target.value);
|
|
1401
|
-
},
|
|
1402
|
-
placeholder: "Search",
|
|
1403
|
-
autoFocus: !0,
|
|
1404
|
-
width: "full",
|
|
1405
|
-
type: "search"
|
|
1406
|
-
}
|
|
1407
|
-
),
|
|
1408
|
-
/* @__PURE__ */ t.jsx(
|
|
1409
|
-
mt,
|
|
1410
|
-
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(wt, { as: yt, color: "gray.500" }) }
|
|
1411
|
-
)
|
|
1412
|
-
] }
|
|
1413
|
-
)
|
|
1414
|
-
]
|
|
1415
|
-
}
|
|
1416
|
-
)
|
|
1417
|
-
) : h ? (
|
|
1418
|
-
/* Desktop + search: search input and close button in one row */
|
|
1419
|
-
/* @__PURE__ */ t.jsxs(
|
|
1420
|
-
_,
|
|
1421
|
-
{ width: "100%", alignItems: "center", gap: "2", children: [
|
|
1422
|
-
/* @__PURE__ */ t.jsxs(
|
|
1423
|
-
vt,
|
|
1424
|
-
{ flex: "1", children: [
|
|
1425
|
-
/* @__PURE__ */ t.jsx(
|
|
1426
|
-
bt,
|
|
1345
|
+
!p && !b ? null : /* @__PURE__ */ t.jsxs(
|
|
1346
|
+
Dt,
|
|
1347
|
+
{
|
|
1348
|
+
padding: "0",
|
|
1349
|
+
flexDirection: p ? "column" : "row",
|
|
1350
|
+
gap: p ? "4" : "0",
|
|
1351
|
+
children: [
|
|
1352
|
+
b ? /* @__PURE__ */ t.jsxs(
|
|
1353
|
+
T,
|
|
1354
|
+
{
|
|
1355
|
+
width: "100%",
|
|
1356
|
+
justifyContent: "space-between",
|
|
1357
|
+
alignItems: "center",
|
|
1358
|
+
children: [
|
|
1359
|
+
d ? /* @__PURE__ */ t.jsx(
|
|
1360
|
+
nt,
|
|
1427
1361
|
{
|
|
1428
|
-
|
|
1429
|
-
|
|
1362
|
+
icon: /* @__PURE__ */ t.jsx(In, {}),
|
|
1363
|
+
onClick: () => {
|
|
1364
|
+
g && g();
|
|
1430
1365
|
},
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1366
|
+
"aria-label": "Back"
|
|
1367
|
+
}
|
|
1368
|
+
) : null,
|
|
1369
|
+
/* @__PURE__ */ t.jsx(
|
|
1370
|
+
z,
|
|
1371
|
+
{
|
|
1372
|
+
as: "h2",
|
|
1373
|
+
color: "tints.uiGrey",
|
|
1374
|
+
fontSize: "xl",
|
|
1375
|
+
children: s
|
|
1435
1376
|
}
|
|
1436
1377
|
),
|
|
1437
1378
|
/* @__PURE__ */ t.jsx(
|
|
1438
|
-
|
|
1439
|
-
{
|
|
1379
|
+
nt,
|
|
1380
|
+
{
|
|
1381
|
+
icon: /* @__PURE__ */ t.jsx(Ot, {}),
|
|
1382
|
+
onClick: o,
|
|
1383
|
+
"aria-label": "Close"
|
|
1384
|
+
}
|
|
1440
1385
|
)
|
|
1441
|
-
]
|
|
1442
|
-
),
|
|
1443
|
-
/* @__PURE__ */ t.jsx(
|
|
1444
|
-
Le,
|
|
1445
|
-
{
|
|
1446
|
-
icon: /* @__PURE__ */ t.jsx(We, {}),
|
|
1447
|
-
onClick: r,
|
|
1448
|
-
"aria-label": "Close"
|
|
1449
|
-
}
|
|
1450
|
-
)
|
|
1451
|
-
] }
|
|
1452
|
-
)
|
|
1453
|
-
) : (
|
|
1454
|
-
/* Desktop + no search (category/menu drawer): close button at right */
|
|
1455
|
-
/* @__PURE__ */ t.jsx(
|
|
1456
|
-
_,
|
|
1457
|
-
{ justifyContent: "flex-end", width: "100%", children: /* @__PURE__ */ t.jsx(
|
|
1458
|
-
Le,
|
|
1459
|
-
{
|
|
1460
|
-
icon: /* @__PURE__ */ t.jsx(We, {}),
|
|
1461
|
-
onClick: r,
|
|
1462
|
-
"aria-label": "Close"
|
|
1386
|
+
]
|
|
1463
1387
|
}
|
|
1464
|
-
)
|
|
1465
|
-
|
|
1466
|
-
|
|
1388
|
+
) : null,
|
|
1389
|
+
p && /* @__PURE__ */ t.jsxs(
|
|
1390
|
+
kn,
|
|
1391
|
+
{ width: "100%", children: [
|
|
1392
|
+
/* @__PURE__ */ t.jsx(
|
|
1393
|
+
Rn,
|
|
1394
|
+
{
|
|
1395
|
+
onChange: (I) => {
|
|
1396
|
+
U(I.target.value);
|
|
1397
|
+
},
|
|
1398
|
+
placeholder: "Search",
|
|
1399
|
+
autoFocus: !0,
|
|
1400
|
+
width: "full",
|
|
1401
|
+
type: "search"
|
|
1402
|
+
}
|
|
1403
|
+
),
|
|
1404
|
+
/* @__PURE__ */ t.jsx(
|
|
1405
|
+
_n,
|
|
1406
|
+
{ pointerEvents: "none", children: /* @__PURE__ */ t.jsx(Dn, { as: Ln, color: "gray.500" }) }
|
|
1407
|
+
)
|
|
1408
|
+
] }
|
|
1409
|
+
)
|
|
1410
|
+
]
|
|
1411
|
+
}
|
|
1467
1412
|
),
|
|
1468
1413
|
/* @__PURE__ */ t.jsx(
|
|
1469
|
-
|
|
1414
|
+
Tt,
|
|
1470
1415
|
{
|
|
1471
1416
|
paddingX: "0",
|
|
1472
1417
|
paddingBottom: b ? "6" : "4",
|
|
1473
1418
|
"data-testid": `navbar-drawer-body-${s.toLowerCase()}`,
|
|
1474
1419
|
children: /* @__PURE__ */ t.jsxs(
|
|
1475
|
-
|
|
1420
|
+
it.div,
|
|
1476
1421
|
{
|
|
1477
1422
|
...b ? {} : {
|
|
1478
1423
|
initial: { opacity: 0, y: -5 },
|
|
@@ -1492,21 +1437,21 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1492
1437
|
style: {
|
|
1493
1438
|
display: "flex",
|
|
1494
1439
|
flexDirection: Zn(
|
|
1495
|
-
|
|
1440
|
+
h,
|
|
1496
1441
|
!b,
|
|
1497
|
-
|
|
1442
|
+
p
|
|
1498
1443
|
),
|
|
1499
1444
|
gap: "24px",
|
|
1500
1445
|
justifyContent: "space-between"
|
|
1501
1446
|
},
|
|
1502
1447
|
children: [
|
|
1503
1448
|
/* @__PURE__ */ t.jsxs(
|
|
1504
|
-
|
|
1449
|
+
T,
|
|
1505
1450
|
{
|
|
1506
1451
|
position: b ? void 0 : "relative",
|
|
1507
1452
|
flexDirection: "column",
|
|
1508
1453
|
gap: "6",
|
|
1509
|
-
width: b ? "100%" :
|
|
1454
|
+
width: b ? "100%" : p ? void 0 : "auto",
|
|
1510
1455
|
children: [
|
|
1511
1456
|
i ? /* @__PURE__ */ t.jsx(R, { children: i }) : null,
|
|
1512
1457
|
c && b ? /* @__PURE__ */ t.jsx(R, { children: c }) : null,
|
|
@@ -1552,29 +1497,29 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1552
1497
|
);
|
|
1553
1498
|
}, Qn = ({
|
|
1554
1499
|
source: n,
|
|
1555
|
-
onSearchCallback:
|
|
1500
|
+
onSearchCallback: o,
|
|
1556
1501
|
isActive: s
|
|
1557
1502
|
}) => {
|
|
1558
|
-
const [i, c] = X(""), [u, f] = X([]), d = (
|
|
1559
|
-
if (!
|
|
1560
|
-
const v =
|
|
1503
|
+
const [i, c] = X(""), [u, f] = X([]), d = (p, C) => {
|
|
1504
|
+
if (!p) return [];
|
|
1505
|
+
const v = Qe(p).split(/\s+/);
|
|
1561
1506
|
return C.filter((w) => {
|
|
1562
|
-
const O =
|
|
1563
|
-
if (v.some((A) =>
|
|
1564
|
-
const $ = O.split(/\s+/), S = v.some((A) => $.some((H) => H.includes(A) ||
|
|
1565
|
-
const H =
|
|
1566
|
-
return
|
|
1507
|
+
const O = Qe(w.label);
|
|
1508
|
+
if (v.some((A) => wt(O, A))) return !0;
|
|
1509
|
+
const $ = O.split(/\s+/), S = v.some((A) => $.some((H) => H.includes(A) || ze(A, H))), y = typeof w.additionalContent == "string" && v.some((A) => {
|
|
1510
|
+
const H = Qe(w.additionalContent);
|
|
1511
|
+
return wt(H, A) || H.split(/\s+/).some((U) => U.includes(A) || ze(A, U));
|
|
1567
1512
|
});
|
|
1568
|
-
return S ||
|
|
1513
|
+
return S || y;
|
|
1569
1514
|
}).sort((w, O) => w.label.localeCompare(O.label));
|
|
1570
|
-
}, g = (
|
|
1571
|
-
if (c(
|
|
1515
|
+
}, g = (p) => {
|
|
1516
|
+
if (c(p), !p) {
|
|
1572
1517
|
f([]);
|
|
1573
1518
|
return;
|
|
1574
1519
|
}
|
|
1575
|
-
const C = d(
|
|
1576
|
-
f(C),
|
|
1577
|
-
},
|
|
1520
|
+
const C = d(p, n);
|
|
1521
|
+
f(C), o && o(p, C);
|
|
1522
|
+
}, h = () => {
|
|
1578
1523
|
c(""), f([]);
|
|
1579
1524
|
};
|
|
1580
1525
|
return ee(() => {
|
|
@@ -1582,21 +1527,21 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1582
1527
|
}, [s]), {
|
|
1583
1528
|
query: i,
|
|
1584
1529
|
results: u,
|
|
1585
|
-
handleClose:
|
|
1530
|
+
handleClose: h,
|
|
1586
1531
|
handleSearch: g
|
|
1587
1532
|
};
|
|
1588
1533
|
}, qn = (n) => {
|
|
1589
|
-
const
|
|
1534
|
+
const o = /* @__PURE__ */ new Set();
|
|
1590
1535
|
return n.reduce((s, i) => {
|
|
1591
1536
|
var u;
|
|
1592
1537
|
const c = ((u = i.sections) == null ? void 0 : u.reduce((f, d) => {
|
|
1593
|
-
const g = d.links.filter((
|
|
1538
|
+
const g = d.links.filter((h) => o.has(h.label) || h.isSearchable !== !0 ? !1 : (o.add(h.label), !0));
|
|
1594
1539
|
return [...f, ...g];
|
|
1595
1540
|
}, [])) ?? [];
|
|
1596
1541
|
return [...s, ...c];
|
|
1597
1542
|
}, []);
|
|
1598
1543
|
}, er = () => {
|
|
1599
|
-
const [n,
|
|
1544
|
+
const [n, o] = X(!1), [s, i] = X(!1), [c, u] = X(null);
|
|
1600
1545
|
return {
|
|
1601
1546
|
isMainMenuOpen: n,
|
|
1602
1547
|
isSearchOpen: s,
|
|
@@ -1604,16 +1549,16 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1604
1549
|
clearSelectedCategory: () => u(null),
|
|
1605
1550
|
handleSelectCategory: (v) => u(v),
|
|
1606
1551
|
closeMainMenu: () => {
|
|
1607
|
-
|
|
1552
|
+
o(!1), u(null);
|
|
1608
1553
|
},
|
|
1609
1554
|
closeSearch: () => i(!1),
|
|
1610
1555
|
toggleSearch: () => i((v) => !v),
|
|
1611
|
-
openMainMenu: () =>
|
|
1556
|
+
openMainMenu: () => o(!0),
|
|
1612
1557
|
openSearch: () => i(!0)
|
|
1613
1558
|
};
|
|
1614
1559
|
}, tr = "#28724F", vr = ({
|
|
1615
1560
|
categories: n = [],
|
|
1616
|
-
mainCategoryLabel:
|
|
1561
|
+
mainCategoryLabel: o = "Menu",
|
|
1617
1562
|
logoLink: s = "https://www.everlywell.com",
|
|
1618
1563
|
mobileBottomButtons: i = [],
|
|
1619
1564
|
linkComponent: c,
|
|
@@ -1621,54 +1566,54 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1621
1566
|
onLinkClick: f,
|
|
1622
1567
|
onCategoryOpen: d,
|
|
1623
1568
|
onLogoClick: g,
|
|
1624
|
-
shopAllProductsUrl:
|
|
1625
|
-
onShopAllProductsClick:
|
|
1569
|
+
shopAllProductsUrl: h,
|
|
1570
|
+
onShopAllProductsClick: p,
|
|
1626
1571
|
hideableButtons: C,
|
|
1627
1572
|
children: E
|
|
1628
1573
|
}) => {
|
|
1629
|
-
var De, de,
|
|
1574
|
+
var De, de, Fe;
|
|
1630
1575
|
const v = er(), {
|
|
1631
1576
|
isMainMenuOpen: w,
|
|
1632
1577
|
isSearchOpen: O,
|
|
1633
1578
|
closeMainMenu: b,
|
|
1634
1579
|
closeSearch: $,
|
|
1635
1580
|
clearSelectedCategory: S,
|
|
1636
|
-
selectedCategory:
|
|
1581
|
+
selectedCategory: y,
|
|
1637
1582
|
handleSelectCategory: A
|
|
1638
|
-
} = v, [H,
|
|
1583
|
+
} = v, [H, U] = X(!1), [te, he] = X(!1), [ne, ge] = X(0), [xe, oe] = X(!1), [B, I] = X(!1), J = se.useRef(!1);
|
|
1639
1584
|
ee(() => {
|
|
1640
1585
|
const a = () => {
|
|
1641
1586
|
J.current = !0;
|
|
1642
|
-
},
|
|
1587
|
+
}, _ = () => {
|
|
1643
1588
|
J.current = !1;
|
|
1644
1589
|
};
|
|
1645
|
-
return document.addEventListener("keydown", a, !0), document.addEventListener("mousedown",
|
|
1646
|
-
document.removeEventListener("keydown", a, !0), document.removeEventListener("mousedown",
|
|
1590
|
+
return document.addEventListener("keydown", a, !0), document.addEventListener("mousedown", _, !0), () => {
|
|
1591
|
+
document.removeEventListener("keydown", a, !0), document.removeEventListener("mousedown", _, !0);
|
|
1647
1592
|
};
|
|
1648
1593
|
}, []), ee(() => {
|
|
1649
|
-
const a = () => oe(!0),
|
|
1650
|
-
return window.addEventListener(
|
|
1594
|
+
const a = () => oe(!0), _ = () => oe(!1);
|
|
1595
|
+
return window.addEventListener(ot, a), window.addEventListener(at, _), () => {
|
|
1651
1596
|
window.removeEventListener(
|
|
1652
|
-
|
|
1597
|
+
ot,
|
|
1653
1598
|
a
|
|
1654
|
-
), window.removeEventListener(
|
|
1599
|
+
), window.removeEventListener(at, _);
|
|
1655
1600
|
};
|
|
1656
1601
|
}, []);
|
|
1657
|
-
const ae =
|
|
1602
|
+
const ae = je({
|
|
1658
1603
|
base: !1,
|
|
1659
1604
|
tablet: !1,
|
|
1660
1605
|
largeTablet: !1,
|
|
1661
1606
|
mediumDesktop: !0,
|
|
1662
1607
|
desktop: !0,
|
|
1663
1608
|
fullDesktop: !0
|
|
1664
|
-
}) ?? !1, ie =
|
|
1609
|
+
}) ?? !1, ie = je({
|
|
1665
1610
|
base: !1,
|
|
1666
1611
|
tablet: !1,
|
|
1667
1612
|
largeTablet: !1,
|
|
1668
1613
|
mediumDesktop: !1,
|
|
1669
1614
|
desktop: !1,
|
|
1670
1615
|
fullDesktop: !0
|
|
1671
|
-
}) ?? !1,
|
|
1616
|
+
}) ?? !1, Le = !ie, Oe = je({
|
|
1672
1617
|
base: !0,
|
|
1673
1618
|
tablet: !0,
|
|
1674
1619
|
largeTablet: !0,
|
|
@@ -1680,43 +1625,43 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1680
1625
|
b(), S();
|
|
1681
1626
|
}, [ae]);
|
|
1682
1627
|
const {
|
|
1683
|
-
query:
|
|
1628
|
+
query: Ae,
|
|
1684
1629
|
results: ve,
|
|
1685
|
-
handleSearch:
|
|
1630
|
+
handleSearch: Pe
|
|
1686
1631
|
} = Qn({
|
|
1687
1632
|
source: qn(n),
|
|
1688
1633
|
onSearchCallback: u,
|
|
1689
1634
|
isActive: O
|
|
1690
|
-
}), Se = ve.length > 0, ke = c || le,
|
|
1691
|
-
|
|
1635
|
+
}), Se = ve.length > 0, ke = c || le, We = Ee(h, !!c), Re = Ae && /* @__PURE__ */ t.jsxs(
|
|
1636
|
+
T,
|
|
1692
1637
|
{ gap: Se ? "6" : 0, direction: "column", children: [
|
|
1693
1638
|
Se ? /* @__PURE__ */ t.jsx(z, { color: "tints.uiGrey", children: `${ve.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1694
|
-
|
|
1639
|
+
T,
|
|
1695
1640
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1696
1641
|
/* @__PURE__ */ t.jsx(
|
|
1697
1642
|
z,
|
|
1698
1643
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1699
1644
|
),
|
|
1700
1645
|
/* @__PURE__ */ t.jsx(
|
|
1701
|
-
|
|
1646
|
+
St,
|
|
1702
1647
|
{
|
|
1703
1648
|
as: ke,
|
|
1704
|
-
onClick:
|
|
1649
|
+
onClick: p,
|
|
1705
1650
|
_hover: { textDecoration: "none" },
|
|
1706
1651
|
width: ["100%", null, null, "auto"],
|
|
1707
|
-
...
|
|
1652
|
+
...We,
|
|
1708
1653
|
children: "Shop all products"
|
|
1709
1654
|
}
|
|
1710
1655
|
)
|
|
1711
1656
|
] }
|
|
1712
1657
|
),
|
|
1713
1658
|
/* @__PURE__ */ t.jsx(
|
|
1714
|
-
|
|
1659
|
+
rn,
|
|
1715
1660
|
{ columns: [1, 1, 1, 4], children: ve.map(
|
|
1716
|
-
(a,
|
|
1717
|
-
|
|
1661
|
+
(a, _) => /* @__PURE__ */ t.jsx(
|
|
1662
|
+
on,
|
|
1718
1663
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1719
|
-
|
|
1664
|
+
Be,
|
|
1720
1665
|
{
|
|
1721
1666
|
href: a.href,
|
|
1722
1667
|
label: a.label,
|
|
@@ -1725,46 +1670,46 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1725
1670
|
forceMobileStyle: !ae
|
|
1726
1671
|
}
|
|
1727
1672
|
) },
|
|
1728
|
-
`${a.label}-${
|
|
1673
|
+
`${a.label}-${_}`
|
|
1729
1674
|
)
|
|
1730
1675
|
) }
|
|
1731
1676
|
)
|
|
1732
1677
|
] }
|
|
1733
1678
|
), K = (a) => "href" in a, be = (a) => {
|
|
1734
|
-
K(a) ? f == null || f(a.label) : (
|
|
1679
|
+
K(a) ? f == null || f(a.label) : (I(w || !ie), A(a));
|
|
1735
1680
|
}, ce = (a) => {
|
|
1736
|
-
|
|
1681
|
+
U(!0), $(), S(), !K(a) && (a.sections || a.spotlightCards) && (I(!1), A(a));
|
|
1737
1682
|
}, me = () => {
|
|
1738
|
-
|
|
1683
|
+
U(!1);
|
|
1739
1684
|
};
|
|
1740
1685
|
ee(() => {
|
|
1741
|
-
const a = (
|
|
1742
|
-
he(
|
|
1686
|
+
const a = (_) => {
|
|
1687
|
+
he(_.detail.isHovering);
|
|
1743
1688
|
};
|
|
1744
1689
|
return window.addEventListener(
|
|
1745
|
-
|
|
1690
|
+
rt,
|
|
1746
1691
|
a
|
|
1747
1692
|
), () => {
|
|
1748
1693
|
window.removeEventListener(
|
|
1749
|
-
|
|
1694
|
+
rt,
|
|
1750
1695
|
a
|
|
1751
1696
|
);
|
|
1752
1697
|
};
|
|
1753
1698
|
}, []), ee(() => {
|
|
1754
|
-
!H && !te && (S(), $(), !w && ie &&
|
|
1699
|
+
!H && !te && (S(), $(), !w && ie && I(!1));
|
|
1755
1700
|
}, [H, te, w, ie]), ee(() => {
|
|
1756
1701
|
let a = window.location.href;
|
|
1757
|
-
const
|
|
1702
|
+
const _ = () => {
|
|
1758
1703
|
const F = window.location.href;
|
|
1759
1704
|
F !== a && (a = F, b(), S());
|
|
1760
|
-
}, L = setInterval(
|
|
1761
|
-
return window.addEventListener("popstate",
|
|
1762
|
-
window.removeEventListener("popstate",
|
|
1705
|
+
}, L = setInterval(_, 100);
|
|
1706
|
+
return window.addEventListener("popstate", _), () => {
|
|
1707
|
+
window.removeEventListener("popstate", _), clearInterval(L);
|
|
1763
1708
|
};
|
|
1764
1709
|
}, []);
|
|
1765
|
-
const _e = (a) => K(a) && (!a.buttonProps || Object.keys(a.buttonProps).length === 0 || a.buttonProps === void 0),
|
|
1710
|
+
const _e = (a) => K(a) && (!a.buttonProps || Object.keys(a.buttonProps).length === 0 || a.buttonProps === void 0), Me = n == null ? void 0 : n.map((a, _) => {
|
|
1766
1711
|
var Q, q;
|
|
1767
|
-
const L = C.includes(a.label), F = !K(a), fe = (
|
|
1712
|
+
const L = C.includes(a.label), F = !K(a), fe = (y == null ? void 0 : y.label) === a.label;
|
|
1768
1713
|
return /* @__PURE__ */ t.jsx(
|
|
1769
1714
|
Vn,
|
|
1770
1715
|
{
|
|
@@ -1812,20 +1757,20 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1812
1757
|
...((q = a == null ? void 0 : a.context) == null ? void 0 : q.desktop) !== "link" && a.buttonProps,
|
|
1813
1758
|
children: a.label
|
|
1814
1759
|
},
|
|
1815
|
-
`${a.label}-${
|
|
1760
|
+
`${a.label}-${_}`
|
|
1816
1761
|
);
|
|
1817
|
-
}),
|
|
1762
|
+
}), Ne = (De = n.filter(
|
|
1818
1763
|
(a) => {
|
|
1819
|
-
var
|
|
1820
|
-
return ((
|
|
1764
|
+
var _;
|
|
1765
|
+
return ((_ = a == null ? void 0 : a.context) == null ? void 0 : _.mobile) === "link" || (!K(a) && a.isMobileTopLink !== !1 || _e(a)) && (Le && C.includes(a.label) || Oe);
|
|
1821
1766
|
}
|
|
1822
|
-
)) == null ? void 0 : De.map((a,
|
|
1767
|
+
)) == null ? void 0 : De.map((a, _) => {
|
|
1823
1768
|
var F;
|
|
1824
1769
|
const L = a;
|
|
1825
1770
|
return _e(L) || ((F = L == null ? void 0 : L.context) == null ? void 0 : F.mobile) === "link" ? /* @__PURE__ */ t.jsx(
|
|
1826
1771
|
R,
|
|
1827
1772
|
{ children: /* @__PURE__ */ t.jsx(
|
|
1828
|
-
|
|
1773
|
+
Be,
|
|
1829
1774
|
{
|
|
1830
1775
|
label: L.label,
|
|
1831
1776
|
role: "link",
|
|
@@ -1835,7 +1780,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1835
1780
|
forceMobileStyle: !0
|
|
1836
1781
|
}
|
|
1837
1782
|
) },
|
|
1838
|
-
`${L.label}-${
|
|
1783
|
+
`${L.label}-${_}`
|
|
1839
1784
|
) : /* @__PURE__ */ t.jsx(
|
|
1840
1785
|
R,
|
|
1841
1786
|
{
|
|
@@ -1843,7 +1788,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1843
1788
|
be(L), d == null || d(L.label);
|
|
1844
1789
|
},
|
|
1845
1790
|
children: /* @__PURE__ */ t.jsx(
|
|
1846
|
-
|
|
1791
|
+
Be,
|
|
1847
1792
|
{
|
|
1848
1793
|
label: L.label,
|
|
1849
1794
|
role: "link",
|
|
@@ -1854,14 +1799,14 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1854
1799
|
}
|
|
1855
1800
|
)
|
|
1856
1801
|
},
|
|
1857
|
-
`${L.label}-${
|
|
1802
|
+
`${L.label}-${_}`
|
|
1858
1803
|
);
|
|
1859
|
-
}),
|
|
1860
|
-
|
|
1804
|
+
}), Ve = /* @__PURE__ */ t.jsx(
|
|
1805
|
+
T,
|
|
1861
1806
|
{ gap: "2", flexDirection: "column", children: i }
|
|
1862
|
-
),
|
|
1863
|
-
|
|
1864
|
-
{ direction:
|
|
1807
|
+
), Y = B || w, ue = y ? /* @__PURE__ */ t.jsx(
|
|
1808
|
+
T,
|
|
1809
|
+
{ direction: Y ? "column" : ["column", null, null, "row"], gap: "8", children: (de = y == null ? void 0 : y.sections) == null ? void 0 : de.map((a, _) => {
|
|
1865
1810
|
const L = [];
|
|
1866
1811
|
for (let F = 0; F < a.links.length; F += 3)
|
|
1867
1812
|
L.push(a.links.slice(F, F + 3));
|
|
@@ -1874,31 +1819,31 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1874
1819
|
as: "h2",
|
|
1875
1820
|
fontSize: "md",
|
|
1876
1821
|
color: "tints.uiGrey",
|
|
1877
|
-
marginBottom:
|
|
1822
|
+
marginBottom: Y ? 0 : [0, null, null, 6],
|
|
1878
1823
|
children: a.title
|
|
1879
1824
|
}
|
|
1880
1825
|
),
|
|
1881
1826
|
/* @__PURE__ */ t.jsx(
|
|
1882
|
-
|
|
1827
|
+
T,
|
|
1883
1828
|
{
|
|
1884
|
-
flexDirection:
|
|
1885
|
-
gap:
|
|
1829
|
+
flexDirection: Y ? "column" : ["column", null, null, "row"],
|
|
1830
|
+
gap: Y ? void 0 : [null, null, null, 8],
|
|
1886
1831
|
children: L == null ? void 0 : L.map(
|
|
1887
1832
|
(F, fe) => /* @__PURE__ */ t.jsx(
|
|
1888
|
-
|
|
1833
|
+
T,
|
|
1889
1834
|
{
|
|
1890
1835
|
flexDirection: "column",
|
|
1891
|
-
gap:
|
|
1892
|
-
marginLeft:
|
|
1836
|
+
gap: Y ? void 0 : [null, null, null, 5],
|
|
1837
|
+
marginLeft: Y ? void 0 : [null, null, null, -2],
|
|
1893
1838
|
children: F == null ? void 0 : F.map(
|
|
1894
1839
|
(Q, q) => /* @__PURE__ */ t.jsx(
|
|
1895
|
-
|
|
1840
|
+
Be,
|
|
1896
1841
|
{
|
|
1897
1842
|
label: Q.label,
|
|
1898
1843
|
href: Q.href,
|
|
1899
1844
|
additionalContent: Q.additionalContent,
|
|
1900
1845
|
linkComponent: c,
|
|
1901
|
-
forceMobileStyle:
|
|
1846
|
+
forceMobileStyle: Y,
|
|
1902
1847
|
onClick: () => f == null ? void 0 : f(Q.label)
|
|
1903
1848
|
},
|
|
1904
1849
|
`${Q.label}-${q}`
|
|
@@ -1911,17 +1856,17 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1911
1856
|
}
|
|
1912
1857
|
)
|
|
1913
1858
|
] },
|
|
1914
|
-
`${a.title}-${
|
|
1859
|
+
`${a.title}-${_}`
|
|
1915
1860
|
);
|
|
1916
1861
|
}) }
|
|
1917
|
-
) : null,
|
|
1918
|
-
(a,
|
|
1862
|
+
) : null, $e = y != null && y.spotlightCards ? (Fe = y.spotlightCards) == null ? void 0 : Fe.map(
|
|
1863
|
+
(a, _) => /* @__PURE__ */ t.jsx(
|
|
1919
1864
|
Yn,
|
|
1920
1865
|
{
|
|
1921
1866
|
...a,
|
|
1922
|
-
forceMobileStyle:
|
|
1867
|
+
forceMobileStyle: Y
|
|
1923
1868
|
},
|
|
1924
|
-
`${a.title}-${
|
|
1869
|
+
`${a.title}-${_}`
|
|
1925
1870
|
)
|
|
1926
1871
|
) : /* @__PURE__ */ t.jsx(R, {});
|
|
1927
1872
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -1937,7 +1882,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1937
1882
|
/* @__PURE__ */ t.jsx(
|
|
1938
1883
|
Gn,
|
|
1939
1884
|
{
|
|
1940
|
-
desktopTopButtons:
|
|
1885
|
+
desktopTopButtons: Me,
|
|
1941
1886
|
logoLink: s,
|
|
1942
1887
|
linkComponent: c,
|
|
1943
1888
|
onLogoClick: g,
|
|
@@ -1949,46 +1894,46 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1949
1894
|
R,
|
|
1950
1895
|
{ position: "relative", zIndex: "modal", children: [
|
|
1951
1896
|
/* @__PURE__ */ t.jsx(
|
|
1952
|
-
|
|
1897
|
+
qe,
|
|
1953
1898
|
{
|
|
1954
1899
|
isOpen: w,
|
|
1955
1900
|
onClose: b,
|
|
1956
|
-
title:
|
|
1957
|
-
navDrawerLinks:
|
|
1958
|
-
bottomNavButtons:
|
|
1901
|
+
title: o,
|
|
1902
|
+
navDrawerLinks: Ne,
|
|
1903
|
+
bottomNavButtons: Ve,
|
|
1959
1904
|
hasBackButton: !1,
|
|
1960
1905
|
topOffset: ne,
|
|
1961
1906
|
forceMobilePlacement: !0
|
|
1962
1907
|
}
|
|
1963
1908
|
),
|
|
1964
1909
|
/* @__PURE__ */ t.jsx(
|
|
1965
|
-
|
|
1910
|
+
qe,
|
|
1966
1911
|
{
|
|
1967
|
-
isOpen: !!
|
|
1912
|
+
isOpen: !!y,
|
|
1968
1913
|
onClose: () => {
|
|
1969
|
-
b(), S(), w ||
|
|
1914
|
+
b(), S(), w || I(!1);
|
|
1970
1915
|
},
|
|
1971
|
-
title: (
|
|
1916
|
+
title: (y == null ? void 0 : y.label) || "",
|
|
1972
1917
|
navDrawerLinks: ue,
|
|
1973
1918
|
onBackClick: () => {
|
|
1974
|
-
S(), w ||
|
|
1919
|
+
S(), w || I(!1);
|
|
1975
1920
|
},
|
|
1976
|
-
spotlightCards:
|
|
1977
|
-
hasOnlySpotlightCards:
|
|
1978
|
-
bottomButton:
|
|
1921
|
+
spotlightCards: $e,
|
|
1922
|
+
hasOnlySpotlightCards: y == null ? void 0 : y.hasOnlySpotlightCards,
|
|
1923
|
+
bottomButton: y == null ? void 0 : y.bottomButton,
|
|
1979
1924
|
topOffset: ne,
|
|
1980
1925
|
forceMobilePlacement: B || w || // Below 1400px, if main menu is open, always use mobile closing
|
|
1981
1926
|
w && !ie
|
|
1982
1927
|
}
|
|
1983
1928
|
),
|
|
1984
1929
|
/* @__PURE__ */ t.jsx(
|
|
1985
|
-
|
|
1930
|
+
qe,
|
|
1986
1931
|
{
|
|
1987
1932
|
isOpen: O,
|
|
1988
1933
|
onClose: () => $(),
|
|
1989
1934
|
title: "Search",
|
|
1990
1935
|
navDrawerLinks: Re,
|
|
1991
|
-
onSearch:
|
|
1936
|
+
onSearch: Pe,
|
|
1992
1937
|
hasSearch: !0,
|
|
1993
1938
|
hasBackButton: !1,
|
|
1994
1939
|
topOffset: ne
|
|
@@ -1999,17 +1944,17 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
1999
1944
|
]
|
|
2000
1945
|
}
|
|
2001
1946
|
);
|
|
2002
|
-
},
|
|
1947
|
+
}, Ct = ({
|
|
2003
1948
|
links: n,
|
|
2004
|
-
linkComponent:
|
|
1949
|
+
linkComponent: o,
|
|
2005
1950
|
onLinkClick: s,
|
|
2006
1951
|
footerTheme: i
|
|
2007
1952
|
}) => {
|
|
2008
|
-
const c =
|
|
1953
|
+
const c = o || le, u = (f) => {
|
|
2009
1954
|
s && s(f);
|
|
2010
1955
|
};
|
|
2011
1956
|
return /* @__PURE__ */ t.jsx(
|
|
2012
|
-
|
|
1957
|
+
T,
|
|
2013
1958
|
{ direction: "column", gap: 6, children: n.map(
|
|
2014
1959
|
(f) => /* @__PURE__ */ t.jsx(
|
|
2015
1960
|
z,
|
|
@@ -2019,22 +1964,22 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2019
1964
|
size: "lg",
|
|
2020
1965
|
_hover: { color: "viridian.lighter", textDecoration: "none" },
|
|
2021
1966
|
onClick: () => u(f.label),
|
|
2022
|
-
...Ee(f.href, !!
|
|
1967
|
+
...Ee(f.href, !!o),
|
|
2023
1968
|
children: f.label
|
|
2024
1969
|
},
|
|
2025
1970
|
f.label
|
|
2026
1971
|
)
|
|
2027
1972
|
) }
|
|
2028
1973
|
);
|
|
2029
|
-
}, nr = ({ title: n, links:
|
|
2030
|
-
const i = s ? "transparent" : `${
|
|
2031
|
-
return
|
|
2032
|
-
|
|
1974
|
+
}, nr = ({ title: n, links: o, isLast: s }) => {
|
|
1975
|
+
const i = s ? "transparent" : `${G.colors.viridian.lighter}20`;
|
|
1976
|
+
return o ? /* @__PURE__ */ t.jsx(
|
|
1977
|
+
ln,
|
|
2033
1978
|
{ borderColor: i, children: ({ isExpanded: c }) => /* @__PURE__ */ t.jsxs(
|
|
2034
1979
|
t.Fragment,
|
|
2035
1980
|
{ children: [
|
|
2036
1981
|
/* @__PURE__ */ t.jsxs(
|
|
2037
|
-
|
|
1982
|
+
sn,
|
|
2038
1983
|
{ paddingX: 0, paddingY: 4, _hover: { bg: "transparent" }, children: [
|
|
2039
1984
|
/* @__PURE__ */ t.jsx(
|
|
2040
1985
|
z,
|
|
@@ -2053,17 +1998,17 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2053
1998
|
] }
|
|
2054
1999
|
),
|
|
2055
2000
|
/* @__PURE__ */ t.jsx(
|
|
2056
|
-
|
|
2057
|
-
{ pb: 4, px: 0, children:
|
|
2001
|
+
cn,
|
|
2002
|
+
{ pb: 4, px: 0, children: o }
|
|
2058
2003
|
)
|
|
2059
2004
|
] }
|
|
2060
2005
|
) }
|
|
2061
2006
|
) : null;
|
|
2062
2007
|
}, rr = ({
|
|
2063
2008
|
title: n,
|
|
2064
|
-
links:
|
|
2009
|
+
links: o,
|
|
2065
2010
|
footerTheme: s
|
|
2066
|
-
}) =>
|
|
2011
|
+
}) => o ? /* @__PURE__ */ t.jsxs(
|
|
2067
2012
|
R,
|
|
2068
2013
|
{ children: [
|
|
2069
2014
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2075,22 +2020,22 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2075
2020
|
children: n
|
|
2076
2021
|
}
|
|
2077
2022
|
),
|
|
2078
|
-
|
|
2023
|
+
o
|
|
2079
2024
|
] }
|
|
2080
2025
|
) : null, or = ({
|
|
2081
2026
|
sections: n,
|
|
2082
|
-
linkComponent:
|
|
2027
|
+
linkComponent: o,
|
|
2083
2028
|
onLinkClick: s,
|
|
2084
2029
|
footerTheme: i
|
|
2085
|
-
}) =>
|
|
2030
|
+
}) => je({
|
|
2086
2031
|
base: !1,
|
|
2087
2032
|
tablet: !1,
|
|
2088
2033
|
largeTablet: !0,
|
|
2089
2034
|
desktop: !0
|
|
2090
2035
|
}) ? /* @__PURE__ */ t.jsx(
|
|
2091
|
-
|
|
2036
|
+
T,
|
|
2092
2037
|
{ justify: "space-between", align: "flex-start", children: /* @__PURE__ */ t.jsx(
|
|
2093
|
-
|
|
2038
|
+
T,
|
|
2094
2039
|
{ gap: 120, children: n.map(
|
|
2095
2040
|
({ title: u, links: f }) => /* @__PURE__ */ t.jsx(
|
|
2096
2041
|
rr,
|
|
@@ -2098,10 +2043,10 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2098
2043
|
footerTheme: i,
|
|
2099
2044
|
title: u,
|
|
2100
2045
|
links: /* @__PURE__ */ t.jsx(
|
|
2101
|
-
|
|
2046
|
+
Ct,
|
|
2102
2047
|
{
|
|
2103
2048
|
links: f,
|
|
2104
|
-
linkComponent:
|
|
2049
|
+
linkComponent: o,
|
|
2105
2050
|
onLinkClick: s,
|
|
2106
2051
|
footerTheme: i
|
|
2107
2052
|
}
|
|
@@ -2112,7 +2057,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2112
2057
|
) }
|
|
2113
2058
|
) }
|
|
2114
2059
|
) : /* @__PURE__ */ t.jsx(
|
|
2115
|
-
|
|
2060
|
+
an,
|
|
2116
2061
|
{
|
|
2117
2062
|
allowMultiple: !0,
|
|
2118
2063
|
defaultIndex: [0],
|
|
@@ -2125,10 +2070,10 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2125
2070
|
{
|
|
2126
2071
|
title: u,
|
|
2127
2072
|
links: /* @__PURE__ */ t.jsx(
|
|
2128
|
-
|
|
2073
|
+
Ct,
|
|
2129
2074
|
{
|
|
2130
2075
|
links: f,
|
|
2131
|
-
linkComponent:
|
|
2076
|
+
linkComponent: o,
|
|
2132
2077
|
onLinkClick: s,
|
|
2133
2078
|
footerTheme: i
|
|
2134
2079
|
}
|
|
@@ -2139,7 +2084,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2139
2084
|
)
|
|
2140
2085
|
)
|
|
2141
2086
|
}
|
|
2142
|
-
),
|
|
2087
|
+
), Et = {
|
|
2143
2088
|
instagram: Pn,
|
|
2144
2089
|
linkedin: Mn,
|
|
2145
2090
|
facebook: $n,
|
|
@@ -2147,17 +2092,17 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2147
2092
|
x: Hn
|
|
2148
2093
|
}, ar = ({
|
|
2149
2094
|
socialLinks: n,
|
|
2150
|
-
onEmailSubmit:
|
|
2095
|
+
onEmailSubmit: o,
|
|
2151
2096
|
socialMediaLabel: s,
|
|
2152
2097
|
newsletterLabel: i,
|
|
2153
2098
|
onLinkClick: c,
|
|
2154
2099
|
showNewsletter: u = !0,
|
|
2155
2100
|
footerTheme: f
|
|
2156
2101
|
}) => {
|
|
2157
|
-
const d = f === "dark", [g,
|
|
2158
|
-
g &&
|
|
2102
|
+
const d = f === "dark", [g, h] = se.useState(""), p = () => {
|
|
2103
|
+
g && o && (o(g), h(""));
|
|
2159
2104
|
}, C = (v) => {
|
|
2160
|
-
v.key === "Enter" &&
|
|
2105
|
+
v.key === "Enter" && p();
|
|
2161
2106
|
}, E = (v) => {
|
|
2162
2107
|
c && c(v);
|
|
2163
2108
|
};
|
|
@@ -2177,10 +2122,10 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2177
2122
|
}
|
|
2178
2123
|
),
|
|
2179
2124
|
/* @__PURE__ */ t.jsxs(
|
|
2180
|
-
|
|
2125
|
+
un,
|
|
2181
2126
|
{ children: [
|
|
2182
2127
|
/* @__PURE__ */ t.jsx(
|
|
2183
|
-
|
|
2128
|
+
dn,
|
|
2184
2129
|
{
|
|
2185
2130
|
"aria-label": "Email address",
|
|
2186
2131
|
type: "email",
|
|
@@ -2196,12 +2141,12 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2196
2141
|
height: "52px",
|
|
2197
2142
|
pr: "48px",
|
|
2198
2143
|
value: g,
|
|
2199
|
-
onChange: (v) =>
|
|
2144
|
+
onChange: (v) => h(v.target.value),
|
|
2200
2145
|
onKeyPress: C
|
|
2201
2146
|
}
|
|
2202
2147
|
),
|
|
2203
2148
|
/* @__PURE__ */ t.jsx(
|
|
2204
|
-
|
|
2149
|
+
fn,
|
|
2205
2150
|
{ h: "52px", pr: 4, children: /* @__PURE__ */ t.jsx(
|
|
2206
2151
|
Ce,
|
|
2207
2152
|
{
|
|
@@ -2211,7 +2156,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2211
2156
|
height: "24px",
|
|
2212
2157
|
opacity: 0.66,
|
|
2213
2158
|
cursor: "pointer",
|
|
2214
|
-
onClick:
|
|
2159
|
+
onClick: p,
|
|
2215
2160
|
"data-testid": "arrow-right-icon",
|
|
2216
2161
|
role: "button",
|
|
2217
2162
|
"aria-label": "Submit"
|
|
@@ -2235,7 +2180,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2235
2180
|
}
|
|
2236
2181
|
),
|
|
2237
2182
|
/* @__PURE__ */ t.jsx(
|
|
2238
|
-
|
|
2183
|
+
T,
|
|
2239
2184
|
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2240
2185
|
(v) => /* @__PURE__ */ t.jsx(
|
|
2241
2186
|
le,
|
|
@@ -2245,10 +2190,10 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2245
2190
|
rel: "noopener noreferrer",
|
|
2246
2191
|
"aria-label": v.name,
|
|
2247
2192
|
onClick: () => E(v.name),
|
|
2248
|
-
children:
|
|
2193
|
+
children: Et[v.name.toLowerCase()] && /* @__PURE__ */ t.jsx(
|
|
2249
2194
|
Ce,
|
|
2250
2195
|
{
|
|
2251
|
-
as:
|
|
2196
|
+
as: Et[v.name.toLowerCase()],
|
|
2252
2197
|
color: d ? "white" : "viridian.base",
|
|
2253
2198
|
width: ["48px", null, "24px", null],
|
|
2254
2199
|
height: ["48px", null, "24px", null]
|
|
@@ -2265,33 +2210,33 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2265
2210
|
);
|
|
2266
2211
|
}, ir = ({
|
|
2267
2212
|
links: n,
|
|
2268
|
-
linkComponent:
|
|
2213
|
+
linkComponent: o,
|
|
2269
2214
|
onLinkClick: s,
|
|
2270
2215
|
footerTheme: i
|
|
2271
2216
|
}) => {
|
|
2272
|
-
const c =
|
|
2217
|
+
const c = o || le, u = i === "dark", [f, d] = se.useState(() => (/* @__PURE__ */ new Date()).getFullYear());
|
|
2273
2218
|
se.useEffect(() => {
|
|
2274
2219
|
d((/* @__PURE__ */ new Date()).getFullYear());
|
|
2275
2220
|
}, []);
|
|
2276
|
-
const g = (
|
|
2277
|
-
s && s(
|
|
2278
|
-
},
|
|
2279
|
-
(
|
|
2221
|
+
const g = (p) => {
|
|
2222
|
+
s && s(p);
|
|
2223
|
+
}, h = n == null ? void 0 : n.map(
|
|
2224
|
+
(p) => /* @__PURE__ */ t.jsx(
|
|
2280
2225
|
z,
|
|
2281
2226
|
{
|
|
2282
2227
|
as: c,
|
|
2283
2228
|
color: u ? "viridian.lighter" : "viridian.base",
|
|
2284
2229
|
size: "sm",
|
|
2285
2230
|
_hover: { color: u ? "white" : "viridian.lighter", textDecoration: "none" },
|
|
2286
|
-
onClick: () => g(
|
|
2287
|
-
...Ee(
|
|
2288
|
-
children:
|
|
2231
|
+
onClick: () => g(p.label),
|
|
2232
|
+
...Ee(p.href, !!o),
|
|
2233
|
+
children: p.label
|
|
2289
2234
|
},
|
|
2290
|
-
|
|
2235
|
+
p.label
|
|
2291
2236
|
)
|
|
2292
2237
|
);
|
|
2293
2238
|
return /* @__PURE__ */ t.jsxs(
|
|
2294
|
-
|
|
2239
|
+
T,
|
|
2295
2240
|
{
|
|
2296
2241
|
direction: ["column", "column", "row"],
|
|
2297
2242
|
justify: "space-between",
|
|
@@ -2299,13 +2244,13 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2299
2244
|
gap: [6, 6, 0],
|
|
2300
2245
|
children: [
|
|
2301
2246
|
/* @__PURE__ */ t.jsx(
|
|
2302
|
-
|
|
2247
|
+
T,
|
|
2303
2248
|
{
|
|
2304
2249
|
direction: "row",
|
|
2305
2250
|
flexWrap: "wrap",
|
|
2306
2251
|
gap: [4, 6, 10],
|
|
2307
2252
|
width: ["100%", "auto"],
|
|
2308
|
-
children:
|
|
2253
|
+
children: h
|
|
2309
2254
|
}
|
|
2310
2255
|
),
|
|
2311
2256
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2324,7 +2269,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2324
2269
|
);
|
|
2325
2270
|
}, br = se.forwardRef(({
|
|
2326
2271
|
navigationSections: n = [],
|
|
2327
|
-
disclaimer:
|
|
2272
|
+
disclaimer: o,
|
|
2328
2273
|
newsletterLabel: s,
|
|
2329
2274
|
socialMediaLabel: i,
|
|
2330
2275
|
socialLinks: c,
|
|
@@ -2332,8 +2277,8 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2332
2277
|
linkComponent: f,
|
|
2333
2278
|
onEmailSubmit: d,
|
|
2334
2279
|
additionalContent: g,
|
|
2335
|
-
onLinkClick:
|
|
2336
|
-
onSocialMediaClick:
|
|
2280
|
+
onLinkClick: h,
|
|
2281
|
+
onSocialMediaClick: p,
|
|
2337
2282
|
showNewsletter: C = !0,
|
|
2338
2283
|
footerTheme: E = "dark"
|
|
2339
2284
|
}, v) => {
|
|
@@ -2347,23 +2292,23 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2347
2292
|
px: [4, 6],
|
|
2348
2293
|
ref: v,
|
|
2349
2294
|
children: /* @__PURE__ */ t.jsxs(
|
|
2350
|
-
|
|
2295
|
+
pn,
|
|
2351
2296
|
{ size: "fluid", children: [
|
|
2352
2297
|
/* @__PURE__ */ t.jsxs(
|
|
2353
|
-
|
|
2298
|
+
T,
|
|
2354
2299
|
{ direction: "column", gap: [8, 12], children: [
|
|
2355
2300
|
/* @__PURE__ */ t.jsx(
|
|
2356
2301
|
R,
|
|
2357
2302
|
{ children: /* @__PURE__ */ t.jsx(
|
|
2358
|
-
|
|
2303
|
+
At,
|
|
2359
2304
|
{
|
|
2360
2305
|
width: ["150px", "202px"],
|
|
2361
|
-
color: w ? "white" :
|
|
2306
|
+
color: w ? "white" : G.colors.viridian.base
|
|
2362
2307
|
}
|
|
2363
2308
|
) }
|
|
2364
2309
|
),
|
|
2365
2310
|
/* @__PURE__ */ t.jsxs(
|
|
2366
|
-
|
|
2311
|
+
T,
|
|
2367
2312
|
{
|
|
2368
2313
|
direction: ["column", null, null, "row"],
|
|
2369
2314
|
justify: "space-between",
|
|
@@ -2375,7 +2320,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2375
2320
|
{
|
|
2376
2321
|
sections: n,
|
|
2377
2322
|
linkComponent: f,
|
|
2378
|
-
onLinkClick:
|
|
2323
|
+
onLinkClick: h,
|
|
2379
2324
|
footerTheme: E
|
|
2380
2325
|
}
|
|
2381
2326
|
),
|
|
@@ -2386,7 +2331,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2386
2331
|
newsletterLabel: s,
|
|
2387
2332
|
socialMediaLabel: i,
|
|
2388
2333
|
onEmailSubmit: d,
|
|
2389
|
-
onLinkClick:
|
|
2334
|
+
onLinkClick: p,
|
|
2390
2335
|
showNewsletter: C,
|
|
2391
2336
|
footerTheme: E
|
|
2392
2337
|
}
|
|
@@ -2395,7 +2340,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2395
2340
|
}
|
|
2396
2341
|
),
|
|
2397
2342
|
/* @__PURE__ */ t.jsxs(
|
|
2398
|
-
|
|
2343
|
+
T,
|
|
2399
2344
|
{
|
|
2400
2345
|
direction: ["column", "column", "row"],
|
|
2401
2346
|
justify: "space-between",
|
|
@@ -2403,13 +2348,13 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2403
2348
|
align: ["flex-start", "flex-start", "center"],
|
|
2404
2349
|
gap: [6, 6, 0],
|
|
2405
2350
|
children: [
|
|
2406
|
-
typeof
|
|
2351
|
+
typeof o == "string" ? /* @__PURE__ */ t.jsx(
|
|
2407
2352
|
z,
|
|
2408
2353
|
{
|
|
2409
2354
|
color: w ? "viridian.lighter" : "tints.uiGrey",
|
|
2410
2355
|
fontSize: "sm",
|
|
2411
2356
|
maxWidth: ["100%", "100%", "1024px"],
|
|
2412
|
-
dangerouslySetInnerHTML: { __html:
|
|
2357
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
2413
2358
|
sx: {
|
|
2414
2359
|
"a:hover": {
|
|
2415
2360
|
color: w ? "viridian.light" : "viridian.base",
|
|
@@ -2417,7 +2362,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2417
2362
|
}
|
|
2418
2363
|
}
|
|
2419
2364
|
}
|
|
2420
|
-
) :
|
|
2365
|
+
) : o,
|
|
2421
2366
|
g
|
|
2422
2367
|
]
|
|
2423
2368
|
}
|
|
@@ -2428,7 +2373,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2428
2373
|
R,
|
|
2429
2374
|
{
|
|
2430
2375
|
borderTop: "1px solid",
|
|
2431
|
-
borderColor: w ? `${
|
|
2376
|
+
borderColor: w ? `${G.colors.viridian.lighter}20` : "tints.darkCream",
|
|
2432
2377
|
marginTop: "10",
|
|
2433
2378
|
marginBottom: "8"
|
|
2434
2379
|
}
|
|
@@ -2438,7 +2383,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2438
2383
|
{
|
|
2439
2384
|
links: u,
|
|
2440
2385
|
linkComponent: f,
|
|
2441
|
-
onLinkClick:
|
|
2386
|
+
onLinkClick: h,
|
|
2442
2387
|
footerTheme: E
|
|
2443
2388
|
}
|
|
2444
2389
|
)
|
|
@@ -2447,24 +2392,24 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2447
2392
|
}
|
|
2448
2393
|
);
|
|
2449
2394
|
}), lr = (n) => n ? {
|
|
2450
|
-
Container:
|
|
2451
|
-
Overlay:
|
|
2452
|
-
Content:
|
|
2453
|
-
Header:
|
|
2454
|
-
Body:
|
|
2455
|
-
Footer:
|
|
2456
|
-
CloseButton:
|
|
2395
|
+
Container: _t,
|
|
2396
|
+
Overlay: Rt,
|
|
2397
|
+
Content: kt,
|
|
2398
|
+
Header: Dt,
|
|
2399
|
+
Body: Tt,
|
|
2400
|
+
Footer: hn,
|
|
2401
|
+
CloseButton: gn
|
|
2457
2402
|
} : {
|
|
2458
|
-
Container:
|
|
2459
|
-
Overlay:
|
|
2460
|
-
Content:
|
|
2461
|
-
Header:
|
|
2462
|
-
Body:
|
|
2463
|
-
Footer:
|
|
2464
|
-
CloseButton:
|
|
2403
|
+
Container: xn,
|
|
2404
|
+
Overlay: vn,
|
|
2405
|
+
Content: bn,
|
|
2406
|
+
Header: mn,
|
|
2407
|
+
Body: wn,
|
|
2408
|
+
Footer: yn,
|
|
2409
|
+
CloseButton: jn
|
|
2465
2410
|
}, mr = ({
|
|
2466
2411
|
isOpen: n,
|
|
2467
|
-
onClose:
|
|
2412
|
+
onClose: o,
|
|
2468
2413
|
children: s,
|
|
2469
2414
|
header: i,
|
|
2470
2415
|
footer: c,
|
|
@@ -2472,10 +2417,10 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2472
2417
|
bodyProps: f,
|
|
2473
2418
|
footerProps: d,
|
|
2474
2419
|
contentProps: g,
|
|
2475
|
-
...
|
|
2420
|
+
...h
|
|
2476
2421
|
}) => {
|
|
2477
|
-
var
|
|
2478
|
-
const [
|
|
2422
|
+
var y, A, H, U, te;
|
|
2423
|
+
const [p] = et(`(max-width: ${G.breakpoints.tablet})`), C = (te = (U = (H = (A = (y = G) == 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, {
|
|
2479
2424
|
Container: E,
|
|
2480
2425
|
Overlay: v,
|
|
2481
2426
|
Content: w,
|
|
@@ -2483,25 +2428,25 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2483
2428
|
Body: b,
|
|
2484
2429
|
Footer: $,
|
|
2485
2430
|
CloseButton: S
|
|
2486
|
-
} = lr(
|
|
2431
|
+
} = lr(p);
|
|
2487
2432
|
return /* @__PURE__ */ t.jsxs(
|
|
2488
2433
|
E,
|
|
2489
2434
|
{
|
|
2490
|
-
...
|
|
2435
|
+
...h,
|
|
2491
2436
|
isOpen: n,
|
|
2492
|
-
onClose:
|
|
2437
|
+
onClose: o,
|
|
2493
2438
|
size: "xl",
|
|
2494
|
-
...
|
|
2439
|
+
...p ? { placement: "bottom" } : {},
|
|
2495
2440
|
children: [
|
|
2496
2441
|
/* @__PURE__ */ t.jsx(v, { backdropFilter: "auto", backgroundColor: C }),
|
|
2497
2442
|
/* @__PURE__ */ t.jsxs(
|
|
2498
2443
|
w,
|
|
2499
2444
|
{
|
|
2500
2445
|
backgroundColor: "tints.white",
|
|
2501
|
-
borderRadius:
|
|
2446
|
+
borderRadius: p ? "20px 20px 0 0" : "20px",
|
|
2502
2447
|
overflowY: "auto",
|
|
2503
2448
|
gap: 0,
|
|
2504
|
-
...i &&
|
|
2449
|
+
...i && p && { paddingTop: 0 },
|
|
2505
2450
|
...g,
|
|
2506
2451
|
children: [
|
|
2507
2452
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -2519,7 +2464,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2519
2464
|
zIndex: "modal",
|
|
2520
2465
|
backgroundColor: "tints.white",
|
|
2521
2466
|
paddingInline: 4,
|
|
2522
|
-
...
|
|
2467
|
+
...p ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
|
|
2523
2468
|
...u,
|
|
2524
2469
|
children: [
|
|
2525
2470
|
i,
|
|
@@ -2535,7 +2480,7 @@ const qe = 60, St = 6, Nn = (n) => {
|
|
|
2535
2480
|
fontSize: "1rem"
|
|
2536
2481
|
}
|
|
2537
2482
|
},
|
|
2538
|
-
children: /* @__PURE__ */ t.jsx(Ce, { as:
|
|
2483
|
+
children: /* @__PURE__ */ t.jsx(Ce, { as: Ot, weight: "light" })
|
|
2539
2484
|
}
|
|
2540
2485
|
)
|
|
2541
2486
|
]
|
|
@@ -2565,12 +2510,12 @@ export {
|
|
|
2565
2510
|
br as Footer,
|
|
2566
2511
|
Vn as NavButton,
|
|
2567
2512
|
xr as NavSkeleton,
|
|
2568
|
-
|
|
2569
|
-
|
|
2513
|
+
qe as NavbarDrawer,
|
|
2514
|
+
Be as NavbarDrawerLink,
|
|
2570
2515
|
vr as NavigationBar,
|
|
2571
2516
|
Yn as SpotlightCard,
|
|
2572
2517
|
pr as Stepper,
|
|
2573
|
-
|
|
2518
|
+
nt as TopNavIconButton,
|
|
2574
2519
|
Gn as TopNavigation,
|
|
2575
2520
|
er as useNavigationBar
|
|
2576
2521
|
};
|